完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
NUC980的网口接收 0x01-0x0E-0xCF-0x00-0x00-0x00这类MAC地址时,为什么在MAC地址和协议类型之间插入 4字节数据 观察发现是 0x81 00 00 00 ,这个可以在哪里禁止插入?
Whether the receiver removes the Q tag right away or keeps it for further processing is its own decision. On a switch, this depends on whether the VLAN ID in question is tagged on the destination port (trunk port) or untagged/native (access port). Even on an untagged port, the Q tag may sometimes still be present to preserve PCP priority but with a zeroed VLAN ID field - depending on switch and port configuration. ===================================================================================== What do switches do to tagged and untagged VLAN packets? Switches strip or add tags depending on the port's settings. Your hypothetical packet tagged VLAN 10 ingressing on port 1 would have its tag stripped and when it egressed port 2 (or port 3, because both are untagged members of VLAN 10). Similarly, when a packet ingresses port 2 it will be tagged VLAN 10 before egressing port 1, as per the second part of your question. I know of at least one Ethernet switch implementation that tags frames on ingress on an untagged port, moves all frames around inside the switch as tagged frames. That particualr switch strips tags only when frames egress an untagged port. I would assume that this type of behavior is probably fairly common, seeing as how the switch needs some way to keep track of the origin VLAN of frames as they move around inside the switch. Since I only know the low-level details of one (now very outdated and no longer manufactured) switch, though, I won't make sweeping generalizations that I can't back up. Differences between switch and gateway SWITCH GATEWAY It works as multi-port bridge between networks. It works as a passage between two networks. It works in data link layer. It works in all networks layers. It performs error checking before forwarding packets. It does not perform error checking. It does not work as protocol converter. While it works as protocol converter. Packet filtering is provided in switch. Packet filtering is not provided in gateway. It is less complex. It is more complex than switch. It connects devices that work on same network model. It connects two networks working on different models. The format of packet is not changed. Packet format is changed. Adding and Removing VLAN Tags |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
3311 浏览 9 评论
2994 浏览 16 评论
3493 浏览 1 评论
9058 浏览 16 评论
4087 浏览 18 评论
1176浏览 3评论
604浏览 2评论
const uint16_t Tab[10]={0}; const uint16_t *p; p = Tab;//报错是怎么回事?
598浏览 2评论
用NUC131单片机UART3作为打印口,但printf没有输出东西是什么原因?
2334浏览 2评论
NUC980DK61YC启动随机性出现Err-DDR是为什么?
1895浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 19:57 , Processed in 0.935680 second(s), Total 45, Slave 35 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号