STP / RSTP BPDU Field Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=268
Answer
A BPDU is the small frame in which a switch states which root it believes in, its cost to that root, and its own bridge and port ID. Everything spanning tree decides comes from comparing these fields.
Remember
A better BPDU has, in order: lower root ID, lower root path cost, lower sender bridge ID, lower sender port ID. Cost is added by the receiving port. The timers in the BPDU are the root's, and all switches use them.
First checks
show spanning-tree vlan <id> detail— per port: designated root, designated bridge, designated port ID and path cost, plus BPDUs sent and received.show spanning-tree vlan <id>— the resulting roles.- Capture filter
stp— the fields as sent.
Commands
show spanning-tree … detail
Verify in this order
BPDU received on a port → root ID compared → root path cost (plus the port's own cost) compared → sender bridge ID → sender port ID → best BPDU per port stored → best overall decides the root port
Where it usually breaks
physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=268