2009年12月29日火曜日

BPDU パケット フォーマット

PVST+ が有効な 802.1Q トランクポートの BPDU をキャプチャしてみました。
結果、VLAN1 の BPDU として、802.1d BPDU と PVST+ BPDU (802.1Q の native VLAN) の両方でキャプチャできました。
他の VLAN は、802.1Q のタグ付きで、PVST+ BPDU がキャプチャできました。

宛先 MAC アドレスは、802.1d BPDU は、01:80:c2:00:00:00 です。
PVST+ BPDU は、01:00:0c:cc:cc:cd です。


802.1d BPDU フォーマット (VLAN1)

+[22] IEEE 802.3 Ethernet
│ [06] Destination: Spanning-tree (01:80:c2:00:00:00)
│ [06] Source
│ [02] Length: 38
│ [08] Trailer
+[03] Logical-Link Control
│ [01] DSAP: Spanning Tree BPDU (0x42)
│ [01] SSAP: Spanning Tree BPDU (0x42)
│ [01] Control field: UI (0x03)
+[35] Spanning Tree Protocol
│ [02] Protocol Identifier: Spanning Tree Protocol (0x0000)
│ [01] Protocol Version Identifier: Spanning Tree (0)
│ [01] BPDU Type Configuration (config bpdu = 0x00, tcn bpdu = 0x80)
│ [01] BPDU flags
│ [08] Root Identifier (Root Bridge Priority + Root Bridge System ID)
│ [04] Root Path Cost
│ [08] Bridge Identifier (Bridge Priority + Bridge System ID)
│ [02] Port Identifier
│ [02] Message Age
│ [02] Max Age: 20sec (0x1400)
│ [02] Hello Time: 2sec (0x0200)
│ [02] Forward Delay: 15sec (0f00)


PVST+ BPDU フォーマット

+[14] IEEE 802.3 Ethernet
│ [06] Destination: PVST+ (01:00:0c:cc:cc:cd)
│ [06] Source
│ [02] Type: 802.1Q Virtual LAN (0x8100)
+[04] 802.1Q Virtual LAN
│ [02] Priority / CFI / ID
│ [02] Length: 50
+[08] Logical-Link Control
│ [01] DSAP: SNAP (0xaa)
│ [01] SSAP: SNAP (0xaa)
│ [01] Control field: UI (0x03)
│ [03] Organization Code: Cisco (0x00000c)
│ [02] PID: PVSTP+ (0x010b)
+[42] Spanning Tree Protocol
│ [02] Protocol Identifier: Spanning Tree Protocol (0x0000)
│ [01] Protocol Version Identifier: Spanning Tree (0)
│ [01] BPDU Type Configuration (config bpdu = 0x00, tcn bpdu = 0x80)
│ [01] BPDU flags
│ [08] Root Identifier (Root Bridge Priority + Root Bridge System ID)
│ [04] Root Path Cost
│ [08] Bridge Identifier (Bridge Priority + Bridge System ID)
│ [02] Port Identifier
│ [02] Message Age
│ [02] Max Age: 20sec (0x1400)
│ [02] Hello Time: 2sec (0x0200)
│ [02] Forward Delay: 15sec (0f00)
│ [07] ????


参考

0 件のコメント: