Use it to read show spanning-tree detail or a capture, and to work out why one port was preferred over another.
STP / RSTP BPDU Field Reference
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.
1. show spanning-tree vlan <id> detail — do all ports report the same designated root?
2. Compare designated path cost on the candidate ports.
3. Equal → compare designated bridge, then designated port ID.
4. A port with a different root → an unexpected switch is claiming it.
5. No BPDUs received on an inter-switch link → filtered, or the VLAN is missing on the trunk.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show spanning-tree vlan 10 detailVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show spanning-tree vlan 10 detail
show spanning-tree vlan 10
show spanning-tree interface GigabitEthernet1/0/1 detail
For each port, the detail view prints "Designated root has priority …, address …", "Designated bridge has priority …, address …", "Designated port id is …, designated path cost …" — the root ID, bridge ID, port ID and cost of the best BPDU on that port — along with the timers and the count of BPDUs sent and received.
In a capture, filter on stp and compare the root ID, cost and bridge ID in the BPDUs arriving on two ports to see why one was chosen.
Known-good: all ports report the same designated root, the cost shown on the root port plus that port's own cost equals the switch's root path cost, and BPDU counters increase on the expected side of each link.
Step 2 Failure isolation workflow Narrow the fault
- A port reports a different root from the rest. A better BPDU arrives there — an unexpected switch claims to be root.
- No BPDUs are received on a link between switches. They are filtered, the VLAN is not on the trunk, or the link works one way only.
- A port's role is not the expected one. Compare cost first, then the neighbour's bridge ID and port ID, in that order.
- Timers were changed on a switch without effect. Only the root's timers are used.
- Information ages out at the edge of a large network. The message age reaches max age after too many hops.
- Per-VLAN BPDUs do not cross another vendor's switch. It does not forward the Cisco multicast address.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
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.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Switches run spanning tree by exchanging bridge protocol data units (BPDUs). A BPDU is a small frame in which a switch states which root it knows, how far away the root is, and who it is itself. Everything spanning tree decides comes from comparing these fields.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
The lines in show spanning-tree … detail — designated root, designated bridge, designated port, cost — are the fields of the last BPDU received on each port. Knowing the fields explains why a port has its role, and what a switch means when it calls a BPDU "superior".
ReferenceHow it works1 section · depth on demand
How it works
| Field | Size | Meaning |
|---|---|---|
| Protocol ID | 2 bytes | Always 0 |
| Version | 1 byte | 0 = STP, 2 = RSTP, 3 = MST |
| BPDU type | 1 byte | 0x00 configuration, 0x80 topology change notification, 0x02 RSTP/MST |
| Flags | 1 byte | Topology change bits; in RSTP also port role, state and the proposal/agreement handshake |
| Root ID | 8 bytes | Bridge ID of the root the sender believes in |
| Root path cost | 4 bytes | The sender's cost to that root |
| Bridge ID | 8 bytes | The sender's own bridge ID: priority and MAC address |
| Port ID | 2 bytes | The sending port: priority and port number |
| Message age | 2 bytes | How many hops the information has travelled from the root |
| Max age | 2 bytes | When the information expires (20 s by default) |
| Hello time | 2 bytes | Interval between BPDUs (2 s) |
| Forward delay | 2 bytes | Time spent in listening and in learning (15 s) |
Comparing two BPDUs. The better — "superior" — one has, in this order: the lower root ID, then the lower root path cost, then the lower sender bridge ID, then the lower sender port ID. A switch keeps the best BPDU it has heard on each port, and its best overall determines its root port.
Cost is added on receipt. A switch adds the cost of the receiving port to the root path cost in the BPDU; that sum is what it advertises onwards.
The timers come from the root. Max age, hello time and forward delay in the BPDU are the root's values, and all switches use them. Changing timers anywhere else has no effect.
Who sends. In classic STP only the root originates BPDUs and the others relay them. In RSTP every switch sends its own BPDU each hello time; missing three in a row means the neighbour is gone.
BPDUs are sent to the multicast address 01:80:C2:00:00:00. Cisco's per-VLAN variants additionally send one per VLAN to 01:00:0C:CC:CC:CD, tagged with the VLAN.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
BPDU fields: what is inside a configuration BPDU
The Catalyst 9300 STP guide lists BPDU contents: root bridge ID, root path cost, sender bridge ID, message age, sending port ID, and the hello, forward-delay and max-age timers. Cisco's RSTP document adds that RSTP BPDUs are type 2, version 2, so legacy 802.1D bridges drop them, and that RSTP uses the full flags byte.
| Field | Size | Content |
|---|---|---|
| Protocol ID | 2 bytes | 0x0000 |
| Version | 1 byte | 0 = STP, 2 = RSTP, 3 = MSTP |
| BPDU type | 1 byte | 0x00 config (STP), 0x80 TCN (STP), 0x02 RST/MST |
| Flags | 1 byte | TC, proposal, port role, learning, forwarding, agreement, TCA |
| Root ID | 8 bytes | Priority (with extended system ID) + MAC of the root |
| Root path cost | 4 bytes | Sender's cost to the root |
| Bridge ID | 8 bytes | Sender's bridge ID |
| Port ID | 2 bytes | Port priority + port number |
| Message age | 2 bytes | Age since the root generated the information (1/256 s units) |
| Max age, hello time, forward delay | 2 bytes each | Timers from the root |
| Version 1 length | 1 byte | 0 (RSTP and MST) |
MST BPDUs add an MST extension with the region configuration identifier and M-records for each instance.
Destination addresses
| BPDU type | Destination MAC |
|---|---|
| IEEE STP, RSTP, MST | 01:80:C2:00:00:00 |
| Cisco PVST+ / Rapid PVST+ (non-native VLANs) | 01:00:0C:CC:CC:CD, with an 802.1Q tag and a SNAP header |
C9300# show spanning-tree interface Te1/1/1 detail | include Designated|Timers|BPDU
Designated root has priority 24596, address a0f8.4912.3400
Designated bridge has priority 24596, address a0f8.4912.3400
Timers: message age 16, forward delay 0, hold 0
BPDU: sent 6, received 412883
$ tshark -i ens192 -Y stp -O stp -c 1
Capturing on a SPAN port with a protocol analyser shows every field. Filter on stp in Wireshark, or on the PVST+ multicast MAC for per-VLAN BPDUs.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → STP / RSTP BPDU Field Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.