Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

STP / RSTP BPDU Field Reference

Direct 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.

When to use this

Use it to read show spanning-tree detail or a capture, and to work out why one port was preferred over another.

First 30 seconds

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.

Operational verification

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

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Key commandshow spanning-tree vlan 10 detail
Scope / prerequisiteUse it to read show spanning-tree detail or a capture, and to work out why one port was preferred over another.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key 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.
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

FieldSizeMeaning
Protocol ID2 bytesAlways 0
Version1 byte0 = STP, 2 = RSTP, 3 = MST
BPDU type1 byte0x00 configuration, 0x80 topology change notification, 0x02 RSTP/MST
Flags1 byteTopology change bits; in RSTP also port role, state and the proposal/agreement handshake
Root ID8 bytesBridge ID of the root the sender believes in
Root path cost4 bytesThe sender's cost to that root
Bridge ID8 bytesThe sender's own bridge ID: priority and MAC address
Port ID2 bytesThe sending port: priority and port number
Message age2 bytesHow many hops the information has travelled from the root
Max age2 bytesWhen the information expires (20 s by default)
Hello time2 bytesInterval between BPDUs (2 s)
Forward delay2 bytesTime 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.

FieldSizeContent
Protocol ID2 bytes0x0000
Version1 byte0 = STP, 2 = RSTP, 3 = MSTP
BPDU type1 byte0x00 config (STP), 0x80 TCN (STP), 0x02 RST/MST
Flags1 byteTC, proposal, port role, learning, forwarding, agreement, TCA
Root ID8 bytesPriority (with extended system ID) + MAC of the root
Root path cost4 bytesSender's cost to the root
Bridge ID8 bytesSender's bridge ID
Port ID2 bytesPort priority + port number
Message age2 bytesAge since the root generated the information (1/256 s units)
Max age, hello time, forward delay2 bytes eachTimers from the root
Version 1 length1 byte0 (RSTP and MST)

MST BPDUs add an MST extension with the region configuration identifier and M-records for each instance.

Destination addresses

BPDU typeDestination MAC
IEEE STP, RSTP, MST01: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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
bpdu fieldsstp root id fieldroot path cost fieldrstp flags
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

STP BPDU Field Decoder

Explain root/port decisions from BPDU vector fields.

Order of evidence: Root ID → Root Path Cost → sender Bridge ID → Port ID. Also inspect RSTP flags and timers.

Confirmation

Confirm action

Continue?