Pcornel
Networking · Switching › STP › Spanning Tree Fundamentals

BPDU

Cheat sheet · https://pcornel.dk/topic.php?topic=1025

Back to the Topic

Answer

A BPDU (Bridge Protocol Data Unit) is the spanning-tree message switches exchange. Configuration BPDUs carry the root ID, root path cost, sender bridge ID and port ID; topology change notifications report changes.

Remember

The root originates BPDUs every 2 seconds (hello); with RSTP every switch sends its own. A port that stops receiving BPDUs assumes it is designated and may forward — the cause of many loops. BPDU guard err-disables a port that receives any BPDU; BPDU filter stops sending and receiving them.

First checks

  • show spanning-tree vlan <id> — root ID, local bridge ID, and each port's role, state and cost.
  • show spanning-tree root — the root bridge, root cost and root port per VLAN.
  • show spanning-tree vlan <id> detail — BPDUs sent and received, topology changes and their source.
  • show spanning-tree summary — mode, enabled features and port counts per state.
  • show spanning-tree inconsistentports — ports blocked by root guard, loop guard or type inconsistency.

Commands

show spanning-tree

Verify in this order

root and switches send BPDUs on designated ports → neighbours receive them → best BPDU per port stored → roles computed → topology changes signalled with TCN/TC flags

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

BPDU operational reference

BPDU field/stateKnown-goodFailure signatureNext boundary
Root IDIntended bridgeUnexpected/oscillating rootPriority / rogue bridge
Root path costConsistent with topologySudden lower/higher pathLink cost/topology
Sender bridge/portExpected neighborUnknown/unexpected senderL2 neighbor
BPDU presencePeriodic/expectedMissing on active linkFiltering/guard/link
Resulting roleMatches superior infoCalculation mismatchTie-break/state

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1025

Confirmation

Confirm action

Continue?