vlan0表示優先級標示幀,一直記得這個概念,但不能理解
啥是優先級幀?交換機中怎麼使用?怎麼轉發?這幾個問題搜索下,發現還是外文網站解釋的清晰,特地記錄一下。
首先解釋爲啥要有優先級幀
802.1Q定義了vlan的標準,包括type(16bit)、priority(3bit)、cfi(1bit)、vlan(12bit)
802.1P是802.1Q的子標準,定義了priority的值含義。想象一下,如果我發出一個報文,不知道自己所屬的vlan,只想帶802.1P優先級信息,應該怎麼辦?
這時候vlan0就有用武之地了,發出去一個vlan0的tag報文。當交換機收到一個vid爲0的報文,就可以認爲vlan值無效,不能用於轉發,而priority的3bit有效,可以用於優先級映射和調度。
交換機中對vlan的轉發處理,各個廠商實現都有差異,一般來說認爲是untag,加上端口的pvid後進行轉發處理:
CISCO:When these frames are received at the ISP end, the header is stripped off and the frame is processed as per the configuration of the 802.1P priority bits.
一句話,vlan0報文是隻帶有優先級信息,而無vlan id的報文。