Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

STP BPDU (stp)

下位レイヤからの到達

下位レイヤ判別フィールド値
llcdsap66 (0x42)

フィールド

フィールド型既定値Auto説明
protocol_iduint(16)0スパニングツリープロトコル識別子 (常に 0)。
protocol_versionenum(8)0 (stp)プロトコルバージョン (0 = STP、2 = RSTP、3 = MSTP)。
bpdu_typeenum(8)0 (config)BPDU 種別 (0 = Configuration、2 = RST/MST、0x80 = TCN)。
flagsflags(8)0x0BPDU フラグ (トポロジ変更、Proposal、ロール、Learning、Forwarding、Agreement、TCA)。
root_priorityuint(16)32768ルートブリッジの優先度とシステム ID 拡張。
root_macmac00:00:00:00:00:00ルートブリッジの MAC アドレス。
root_path_costuint(32)0ルートブリッジまでの経路コスト。
bridge_priorityuint(16)32768送信ブリッジの優先度とシステム ID 拡張。
bridge_macmac00:00:00:00:00:00送信ブリッジの MAC アドレス。
port_iduint(16)32769送信ポート識別子 (優先度 + 番号)。
message_ageuint(16)0BPDU の経過時間 (1/256 秒)。
max_ageuint(16)5120タイムアウトまでの最大 BPDU 経過時間 (1/256 秒)。
hello_timeuint(16)512Configuration BPDU の送信間隔 (1/256 秒)。
forward_delayuint(16)3840転送遅延タイマ (1/256 秒)。
trailerbytes — PDU の残りすべて""RSTP / MSTP 拡張 (version1 長、v3 長、MSTI レコード)。不透明オクテット。

protocol_version

値名前
0 (0x00)stp
2 (0x02)rstp
3 (0x03)mstp

bpdu_type

値名前
0 (0x00)config
2 (0x02)rapid
128 (0x80)topology_change

flags

ビットマスク名前
01 (0x01)topology_change
12 (0x02)proposal
416 (0x10)learning
532 (0x20)forwarding
664 (0x40)agreement
7128 (0x80)topology_change_ack

制約

レベル規則
警告protocol_id が 0

サンプルテンプレート

  • stp — templates/protocols/l2/stp.wpg.yaml