Use it when a port should block but forwards, a guard triggers, or topology changes keep happening.
BPDU
1. show spanning-tree interface <if> detail — BPDUs sent and received increasing?
2. Received 0 on an inter-switch link → BPDU filter, a unidirectional link or a device dropping BPDUs.
3. show spanning-tree vlan <id> detail | include occurr|from — topology changes and where they come from.
4. Many changes from one port → an access port without PortFast flapping.
5. show spanning-tree inconsistentports — guards acting on BPDUs.
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
Compare packet fields with switch STP output and peer configuration.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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 and known-good state Verify boundary
Operational verification starts by fixing the exact VLAN or STP instance. Identify the expected root bridge and its bridge ID, then inspect the local root ID and root path cost. On a suspect interface, determine which neighbor is sending BPDUs and whether that information is superior to the local alternative. Compare port priority/ID and path cost when a tie-break matters. If raw capture is available, use it to validate that BPDUs actually arrive with the expected root/sender information; use show spanning-tree to confirm how the switch interpreted them. Known-good means the control message, calculation and resulting port role all agree. This section is authored reference guidance for BPDU in the STP context.
Step 2 Verification & troubleshooting Narrow the fault
Use STP detail output and, when needed, packet capture filtered for STP BPDUs. Correlate topology-change counters/timestamps with interface events.
Step 3 Branching troubleshooting Narrow the fault
Concrete boundaries: physical/link/VLAN → BPDU reception → root/instance calculation → port role → forwarding state → MAC learning → target VLAN path → original frame/return path.
Step 4 Common mistakes Narrow the fault
- Filtering BPDUs on links to switches.
- BPDUs received on access ports without BPDU Guard.
Step 5 Failure signatures and troubleshooting branches Narrow the fault
If the switch claims itself as root when another bridge should be root, determine whether expected BPDUs are absent or inferior. Missing BPDUs can result from an L2 break, filtering, unidirectional path or protection feature. If an unexpected bridge becomes root, inspect bridge priority/MAC and the path carrying its superior BPDU. If a port role is surprising while root identity is correct, examine path cost, port priority and tie-break values. Topology changes should be correlated with the exact port and timestamp; do not attribute every MAC-table flush to “STP instability” without seeing the control-plane transition. This section is authored reference guidance for BPDU in the STP context.
Step 6 When the problem is really fixed Narrow the fault
After remediation, verify the intended root ID persists through a reconvergence interval, expected BPDUs arrive on the correct links, root path costs are stable and every relevant port has the intended role/state. Replay traffic across the previously affected VLAN and verify redundant links remain loop-free. Check a neighboring VLAN/instance when shared trunks are involved. A captured BPDU or stable show spanning-tree snapshot is still only boundary evidence; durable closure requires the original forwarding problem to be resolved as well. This section is authored reference guidance for BPDU in the STP context.
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.
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.
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.
ReferenceWhat it is1 section · depth on demand
What it is
Bridge Protocol Data Units (BPDUs) carry spanning-tree control information such as root identity, root path cost, sender bridge/port data and topology flags.
ReferenceWhy it matters2 sections · depth on demand
Why it matters
Use BPDU evidence to understand root election, role changes and guard-feature reactions.
Internals and state
STP/RSTP/MST receives BPDUs per port/VLAN or instance, elects a root and root path, assigns port roles, and places ports into forwarding/discarding states.
ReferenceImportant terms & boundaries4 sections · depth on demand
Key points
If expected BPDUs disappear or superior/unexpected BPDUs arrive, the tree can reconverge or protection features can block/disable ports. Data-plane link-up alone is not enough evidence of STP health.
In depth
BPDUs carry the information every switch uses to build the tree
Bridge Protocol Data Units are sent by designated ports. The Catalyst 9300 guide lists their content: the root bridge ID, the path cost to the root, the sender's bridge ID, message age, the sending interface ID, and the hello, forward-delay and max-age timer values. Default timers are hello 2 s, forward delay 15 s and max age 20 s, with a transmit hold count of 6 BPDUs.
C9300# show spanning-tree interface Te1/1/1 detail
Port 49 (TenGigabitEthernet1/1/1) of VLAN0020 is root forwarding
Port path cost 2, Port priority 128, Port Identifier 128.49.
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
Link type is point-to-point by default
BPDU: sent 6, received 412883
C9300# debug spanning-tree bpdu receive ! lab only
BPDU flow in normal operation
| Port role | Sends | Receives |
|---|---|---|
| Designated | Yes, every hello time | Almost none |
| Root | Few (RSTP agreements) | Continuously from upstream |
| Alternate | No | Continuously |
| Edge (PortFast) | Yes | None expected; BPDU guard reacts if one arrives |
Per-VLAN BPDUs
Rapid PVST+ sends a BPDU per VLAN on trunks, using Cisco's PVST+ format. The native VLAN also sends IEEE-format BPDUs for interoperability. Hundreds of VLANs on many trunks mean many BPDUs, which counts against CPU and CoPP limits for Layer 2 control traffic.
Using BPDU counters
| Observation | Meaning |
|---|---|
| A root or alternate port's received counter stops increasing | Upstream stopped sending: a unidirectional link or a failure |
| An edge port receives BPDUs | A switch was connected; BPDU guard should err-disable it |
| Very high sent counts on access ports | Normal: designated ports towards hosts send every 2 s |
Never filter BPDUs on links between switches. Without BPDUs, STP can't detect loops.
Documented example, not captured output.
Quick reference
BPDUs (Bridge Protocol Data Units) are the messages switches exchange to build the spanning tree. Configuration BPDUs carry the root bridge ID, root path cost, sender bridge ID, port ID and timers; RSTP BPDUs add role and proposal/agreement flags.
| Field | Use |
|---|---|
| Root ID | Which switch the sender believes is root |
| Root path cost | Sender's cost to root |
| Bridge ID / Port ID | Tie-breakers |
| Flags (RSTP) | Proposal, agreement, role, TC |
| Timers | Hello 2 s, Max Age 20 s, Forward Delay 15 s |
BPDUs are sent to 01:80:c2:00:00:00 (IEEE) or 01:00:0c:cc:cc:cd (Cisco PVST+).
Mechanics and state ownership
STP uses Bridge Protocol Data Units to distribute a candidate view of the Layer-2 tree. A BPDU identifies the root bridge believed by the sender, the sender’s accumulated root path cost, the sender bridge and port identity, plus flags/timer fields. Each switch compares received information against its own candidate information to decide which path toward the root is superior. The resulting decisions select a root bridge globally within an STP instance, one root port on each non-root bridge and a designated port for each segment, while redundant alternatives do not forward user frames. Because PVST/Rapid-PVST style implementations can maintain state per VLAN, the same physical port can participate in different logical trees. This section is authored reference guidance for BPDU in the STP context.
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 Switching → STP → Spanning Tree Fundamentals → BPDU. 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%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.
Quick lookup tables
BPDU operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| BPDU field/state | Known-good | Failure signature | Next boundary |
|---|---|---|---|
| Root ID | Intended bridge | Unexpected/oscillating root | Priority / rogue bridge |
| Root path cost | Consistent with topology | Sudden lower/higher path | Link cost/topology |
| Sender bridge/port | Expected neighbor | Unknown/unexpected sender | L2 neighbor |
| BPDU presence | Periodic/expected | Missing on active link | Filtering/guard/link |
| Resulting role | Matches superior info | Calculation mismatch | Tie-break/state |