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)

Reached from

Lower layerSelectorValue
llcdsap66 (0x42)

Fields

FieldTypeDefaultAutoDescription
protocol_iduint(16)0Spanning Tree protocol identifier (always 0).
protocol_versionenum(8)0 (stp)Protocol version (0 = STP, 2 = RSTP, 3 = MSTP).
bpdu_typeenum(8)0 (config)BPDU type (0 = configuration, 2 = RST/MST, 0x80 = TCN).
flagsflags(8)0x0BPDU flags (topology change, proposal, role, learning, forwarding, agreement, TCA).
root_priorityuint(16)32768Root bridge priority and system-id extension.
root_macmac00:00:00:00:00:00Root bridge MAC address.
root_path_costuint(32)0Cost of the path to the root bridge.
bridge_priorityuint(16)32768Sending bridge priority and system-id extension.
bridge_macmac00:00:00:00:00:00Sending bridge MAC address.
port_iduint(16)32769Sending port identifier (priority + number).
message_ageuint(16)0Age of the BPDU, in 1/256 seconds.
max_ageuint(16)5120Maximum BPDU age before timeout, in 1/256 seconds.
hello_timeuint(16)512Interval between configuration BPDUs, in 1/256 seconds.
forward_delayuint(16)3840Forwarding delay timer, in 1/256 seconds.
trailerbytes — rest of the PDU""RSTP / MSTP extension (version-1 length, v3 length, MSTI records); opaque octets.

protocol_version

ValueName
0 (0x00)stp
2 (0x02)rstp
3 (0x03)mstp

bpdu_type

ValueName
0 (0x00)config
2 (0x02)rapid
128 (0x80)topology_change

flags

BitMaskName
01 (0x01)topology_change
12 (0x02)proposal
416 (0x10)learning
532 (0x20)forwarding
664 (0x40)agreement
7128 (0x80)topology_change_ack

Constraints

LevelRule
warningprotocol_id = 0

Sample templates

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