根据下面的算法,描述交换机的工作原理.
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/20 23:19:32
根据下面的算法,描述交换机的工作原理.
if entry found for destination
then {
if dest on segment from which frame arrived
then drop the frame
else forward the frame on interface indicated
}
else flood
if entry found for destination
then {
if dest on segment from which frame arrived
then drop the frame
else forward the frame on interface indicated
}
else flood
![根据下面的算法,描述交换机的工作原理.](/uploads/image/z/5868856-64-6.jpg?t=%E6%A0%B9%E6%8D%AE%E4%B8%8B%E9%9D%A2%E7%9A%84%E7%AE%97%E6%B3%95%2C%E6%8F%8F%E8%BF%B0%E4%BA%A4%E6%8D%A2%E6%9C%BA%E7%9A%84%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86.)
当交换机接口收到一个数据帧,
如果CAM表有这个MAC地址,继续检查,如果该帧来自同一个部分(如同一个接口)则丢弃该帧,否则转发帧到指定的接口;
如果CAM表没有这个MAC地址,则泛洪,发送广播帧到所有接口.
如果CAM表有这个MAC地址,继续检查,如果该帧来自同一个部分(如同一个接口)则丢弃该帧,否则转发帧到指定的接口;
如果CAM表没有这个MAC地址,则泛洪,发送广播帧到所有接口.