Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BPDU

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

When to use this

Use it when a port should block but forwards, a guard triggers, or topology changes keep happening.

First 30 seconds

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.

Operational verification

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

Evidence · next step

Compare packet fields with switch STP output and peer configuration.

Continue only after interpreting the current observation.
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 · IOS/IOS XE
Scope / prerequisiteUse it when a port should block but forwards, a guard triggers, or topology changes keep happening.
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.

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

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

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.

Key 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.
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 roleSendsReceives
DesignatedYes, every hello timeAlmost none
RootFew (RSTP agreements)Continuously from upstream
AlternateNoContinuously
Edge (PortFast)YesNone 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

ObservationMeaning
A root or alternate port's received counter stops increasingUpstream stopped sending: a unidirectional link or a failure
An edge port receives BPDUsA switch was connected; BPDU guard should err-disable it
Very high sent counts on access portsNormal: 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

FieldUse
Root IDWhich switch the sender believes is root
Root path costSender's cost to root
Bridge ID / Port IDTie-breakers
Flags (RSTP)Proposal, agreement, role, TC
TimersHello 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+).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
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 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%
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
Embedded reference data

Quick lookup tables

BPDU operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

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
Confirmation

Confirm action

Continue?