[問答] 有關VLAN的封包格式問題

看板Network作者 (鄉民)時間15年前 (2010/11/13 22:58), 編輯推噓1(108)
留言9則, 2人參與, 最新討論串1/1
之前在網路上 有看到VLAN Tag的格式 在這個連結可以看到: http://en.wikipedia.org/wiki/IEEE_802.1Q VLAN Tag裡面有一個欄位叫做CFI, 全名是Canonical Format Indicator, 根據上面那個網頁對CFI的描述, 似乎我們平常在乙太網路上發送封包時, CFI bit都設為0 . 問題一: 我們平常用網路時,在什麼樣的情況下, 才會發送有附帶VLAN Tag而且CFI bit=1的封包? 我有去查一下相關文件, 內容如下: There are three cases where a Tagged Frame will carry an E-RIF: a) It is a Transparent frame that carries E-N or L-N information; b) It is a Source-Routed frame that carries E-N or L-N information; c) It is a Source-Routed frame that carries L-C information. 問題二: Transparent frame跟Source-Routed frame的定義跟用途為何呢? 知道的還麻煩請不吝惜指教 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.135.248.33

11/14 22:40, , 1F
問題一看起來像是使用token-ring時CFI才會設成1
11/14 22:40, 1F

11/15 00:23, , 2F
是喔~謝謝指教!
11/15 00:23, 2F

11/15 00:23, , 3F
不過...為何使用token ring時 CFI要設成1呢?
11/15 00:23, 3F

11/15 21:24, , 4F
CFI=1代表non-canonical format
11/15 21:24, 4F

11/15 21:26, , 5F
代表address的每個byte再傳送時由MSB先傳
11/15 21:26, 5F

11/15 21:26, , 6F
ethernet是canonical format LSB先傳 所以設成0
11/15 21:26, 6F

11/15 21:28, , 7F
11/15 21:28, 7F

11/15 21:28, , 8F
的 Bit-reversed notation 章節
11/15 21:28, 8F

11/15 21:29, , 9F
有錯請指正
11/15 21:29, 9F
文章代碼(AID): #1CtgUGHX (Network)
文章代碼(AID): #1CtgUGHX (Network)