VLAN-unaware :
就算封包有VLAN Tag也不管,Tag會留在frame中,直接轉發到目的地MAC。
The virtual switch ignores VLAN tags in frames or packets. Any VLAN tagging that exists is ignored and remains in the frame. The virtual switch does not strip the tag from the frames (Ethernet mode), so if the virtual switch receives a tagged frame, the frame is delivered tagged to the destination MAC.
VLAN-aware :
看的懂VLAN Tag並依照其訊息轉發。
The port type definition for the destination MAC determines whether the frames are delivered (tagged or untagged). All inbound (ingress) and outbound (egress) frames or packets are processed according to the defined rules.
802.1Q :
或稱dot1q,標頭為32bits。
TPID(Tag protocol identifier)為0x8100
PCP(Priority code point)為3個bit,0~7的優先順序用來對資料流(音訊、影像、檔案等等)作傳輸的優先順序。
DEI (Drop eligible indicator,之前稱作CFI) 為1個 bit。
VID(VLAN identifier)為12bit,4096個扣掉0x000和0xFFF為保留值,有4094個可以用。
QinQ (802.1Q-in-802.1Q)(802.1ad) :
兩層VLAN Tag,用來拓展VLAN ID僅能有4094的極限,可以使帶有VLAN Tag的私有網域封包經由公開網路傳送。
外部(S-TAG)(service tag)(outer, next to Source MAC and representing ISP VLAN)標籤會先於內部(C-TAG)(customer tag)標籤。
外部標籤依照不同設備商使用可變的TPID,在16進位值可能為9100、9200或是9300。有下列幾種類型,思科路由器使用0x88A8,Extreme Networks switches使用0x9100,Juniper路由器使用0x9200。
內部標籤(CTAG)又稱為用戶標籤,外部標籤(STAG)又稱為ISP(Service Provider)標籤
參考資料 :
https://cshihong.github.io/2017/11/19/QinQ%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/
https://www.twblogs.net/a/5b84f8662b71775d1cd297e2
https://cshihong.github.io/2017/11/19/QinQ%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/
https://www.hillstonenet.com/support/4.5/en/config_qos_intro.html