2014年9月24日 星期三

VLAN Tag

virtual local area network, virtual LAN, VLAN:將一個 Layer 2 網路分成多個獨立的廣播域。

VLAN Tag:0x8100 + 3-bit PCP + 1-bit DEI + 12-bit VID
  • PCP (Priority Code Point):優先權
  • DEI (Drop Eligible Indicator):可獨立使用或和 PCP 搭用,表示 congestion 時可以 drop。
    • 先前是CFI (Canonical Format Indicator, 制式格式指示):一般 CFI = 0,使用「制式格式」(Canonical format),也就是 MAC 位址是是最高位元 (most significant bit) 先傳送。CFI = 1 則包含有 RIF 欄位 (Routing Information Field) ,其中 NCFI 旗標值決定 MAC 位址傳送是否使用「制式格式」,非制式格式是最低位元 (least significant bit) 先傳送。
  • VID (虛擬網路辨識碼)
    • = 0:Priority-tagged 封包,只有 priority 資訊,不作為 VLAN ID 使用。
    • = 1:bridge 內部使用,當 ingress frame 沒有 VID 時的預設 Port VID。
    • = 4095:預留,可以用在網管或資料庫過濾時代表任何 VID。
VLAN成員指定方式
  • Port-based – 依照機器所接到的 switch port 決定它屬於哪個VLAN,在這個 port 的所有機器只能在同一個 VLAN 下。
  • MAC-based – 依照機器的 MAC address 決定它屬於哪個VLAN。switch 會有個 MAC address 對應到VLAN的表。
  • Protocol-based – 依照封包的協定決定屬於哪個 VLAN。
  • Authentication based – 經由 802.1x 認證決定屬於哪個 VLAN。
參考來源
  1. http://en.wikipedia.org/wiki/Virtual_LAN
  2. 802.1Q

沒有留言:

張貼留言

SIP header Via

所有 SIP 訊息 都要有 Via,縮寫 v。一開始的 UAC 和後續途經的每個 proxy 都會疊加一個 Via 放傳送的位址,依序作為回應的路徑。 格式 sent-protocol sent-by [ ;branch= branch ][ ; 參數 ...] s...