Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

RSTP — 802.1w

Direct answer

RSTP converges rapidly when neighboring bridges can synchronize their non-edge ports and complete the proposal/agreement handshake on point-to-point links while preserving a loop-free tree.

When to use this

Use it when a Rapid-PVST+/RSTP link converges slowly, proposal/agreement behavior is suspected, or classic timer-based reasoning does not explain the observed transition.

First 30 seconds

1. RSTP converges with proposal/agreement instead of timers.

2. Roles: root, designated, alternate, backup.

3. Edge ports (PortFast) go forwarding immediately.

4. Point-to-point links needed for fast transition.

5. Compatible with 802.1D but slower then.

Operational verification

proposal → agreement → sync → forwarding quickly

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 · Cisco IOS XE
Key commandshow spanning-tree detail
Scope / prerequisiteUse it when a Rapid-PVST+/RSTP link converges slowly, proposal/agreement behavior is suspected, or classic timer-based …
Show · 1
What next?3 suggested next steps
Child topics (this level)1
Catalog command links1
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

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

5 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

For one topology change, map each relevant interface to RSTP role, state, edge status and point-to-point classification. Verify BPDUs are exchanged continuously and identify which link should be eligible for proposal/agreement. Trigger a controlled failure or restoration and observe whether the alternate/root/designated roles transition without long timer waits. If a legacy neighbor is present, show whether the port is operating in compatibility behavior. Known-good is a loop-free transition with bounded loss and roles that match the physical topology, not merely a configured rapid-pvst mode string.

Step 2 Verification and output interpretation Verify boundary

Use show spanning-tree for the relevant VLAN/instance and read the root identity, local bridge identity, root port, root path cost, per-port role and state together. A healthy output is internally consistent: the expected root is elected, the expected uplink is the root port, redundant links have intentional alternate roles, and endpoint ports are edge where designed. After a controlled topology event, observe which alternate becomes forwarding and whether the new root path matches the design. Interface up/down state alone is insufficient because an operational Ethernet link can legitimately be discarding under STP. Correlate STP state with EtherChannel state when a logical port-channel is present; STP should reason about the aggregate rather than accidentally independent members.

Step 3 Verification & troubleshooting Narrow the fault

Verify active spanning-tree mode, root/roles/states and whether edge/point-to-point assumptions match the physical design.

Step 4 Failure signatures and troubleshooting branches Narrow the fault

Slow convergence on an RSTP-configured switch can come from legacy STP compatibility, a shared/non-point-to-point link, incorrect edge behavior, BPDU loss, or an inconsistent port that prevents normal role selection. If a proposal is sent but the peer cannot synchronize, investigate downstream forwarding state rather than reducing timers. An edge port receiving BPDUs should be treated as a topology/safety signal. If root identity itself is unstable, resolve election or Layer-2 reachability before blaming proposal/agreement mechanics.

Step 5 When the problem is really fixed Narrow the fault

Repeat the same controlled link event and show the intended alternate/root/designated transition occurs rapidly without a temporary loop. Verify application or ping continuity only as an end consequence after the STP role/state chain is understood. Restore the link and confirm stable reconvergence with no repeated topology-change storm. Captured BPDUs can substantiate proposal/agreement only when actually collected; the Topic does not fabricate packet evidence or claim a handshake occurred in production.

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
Drill down

Subtopics

Go one level deeper into this subject.

Key points

Rapid transition requires eligibility. Shared links, edge misclassification, inconsistent role/state, compatibility with legacy STP, or missing BPDUs can force slower behavior.

Key checks
  • show spanning-tree summary — mode rapid-pvst
  • show spanning-tree vlan <vlan> — roles (Altn, Desg, Root)
  • show spanning-tree detail | include changes — topology changes
ReferenceWhat it is1 section · depth on demand

What it is

Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) accelerates convergence compared with classic 802.1D by using explicit port roles, rapid proposal/agreement behavior and edge-port concepts.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Use RSTP-based modes when fast Layer 2 convergence is required while preserving spanning-tree loop prevention.

ReferenceHow it works1 section · depth on demand

How RSTP works

The root bridge and the best paths are chosen exactly as before: lowest bridge ID wins the root, lowest path cost wins the root port. What RSTP changes is how ports get into forwarding.

Port roles.

RoleMeaning
RootThe switch's best path to the root bridge
DesignatedThe port that serves a segment — forwards towards switches and devices further out
AlternateA blocked port with another path to the root; takes over at once if the root port fails
BackupA blocked second connection to the same segment; rare

Port states. Three, down from five: discarding, learning, forwarding.

Three mechanisms make it fast.

  • Handshake. On a point-to-point link between two RSTP switches, the two agree directly that the link can forward, without waiting for timers.
  • Alternate ports. The backup path is worked out in advance, so losing the root port causes an immediate switchover.
  • Edge ports. Ports to end devices, configured with spanning-tree portfast, forward as soon as they come up and do not disturb the rest of the network.

Failure detection is quicker too: every switch sends a BPDU every two seconds, and three missed in a row — six seconds — means the neighbour is gone.

Compatibility. RSTP works alongside classic STP. A port that hears old-format BPDUs falls back to the old behaviour, timers included, on that port only. Cisco's Rapid PVST+ runs one RSTP instance per VLAN.

ReferenceImportant terms & boundaries6 sections · depth on demand

Key points

RSTP uses Root, Designated, Alternate and Backup roles and simplifies states to Discarding, Learning and Forwarding. Rapid transition depends on topology/port type and protocol agreement, not merely on timers.

RSTP roles and states

RSTP separates role (Root, Designated, Alternate, Backup) from state (Discarding, Learning, Forwarding). Role explains why the port exists in the tree; state explains whether it currently forwards/learns. Fast convergence comes from protocol handshakes and edge/point-to-point behavior, not simply shorter timer values.

In depth

RSTP (IEEE 802.1w): spanning tree that converges in about a second

The Catalyst 9300 MSTP/RSTP guide states that RSTP can reconfigure in under one second, compared with about 50 seconds for 802.1D with default settings. It does so with explicit handshakes between neighbours instead of waiting for timers.

Changes from 802.1D (documented)

Area802.1DRSTP
Port statesBlocking, listening, learning, forwardingDiscarding, learning, forwarding
Port rolesRoot, designatedRoot, designated, alternate, backup
Moving to forwardingTimer-basedProposal/agreement on point-to-point links
Topology changeTCN BPDUs to the rootTC flag set in BPDUs, flooded directly
BPDU version02

Proposal and agreement

1. A designated port sends a BPDU with the proposal flag.

2. The neighbour makes the receiving port its root port, blocks all its non-edge ports (sync), and replies with the agreement flag.

3. The proposer moves its port to forwarding at once.

4. The process repeats outwards from the root towards the edges.

This only works on point-to-point links. The guide notes that link type is derived from duplex (full duplex = point-to-point), and can be set with spanning-tree link-type point-to-point.

C9300(config)# spanning-tree mode rapid-pvst
C9300(config)# interface TenGigabitEthernet1/1/1
C9300(config-if)# spanning-tree link-type point-to-point
C9300# show spanning-tree vlan 10 | include protocol|P2p
  Spanning tree enabled protocol rstp
Po10                Root FWD 2         128.2081 P2p
Po11                Altn BLK 2         128.2082 P2p
C9300# show spanning-tree detail | include changes|occurred

Topology changes (from the guide)

Only a non-edge port moving from blocking to forwarding triggers a topology change. Edge ports going up or down don't. The switch then flushes learned MAC addresses on its non-edge ports.

Interoperability

RSTP falls back to 802.1D on ports where it hears legacy BPDUs. The port doesn't return to RSTP by itself; use clear spanning-tree detected-protocols after the legacy switch is gone.

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.

Mechanics and state ownership

IEEE 802.1w RSTP preserves root election but adds richer port roles and a handshake that can safely move designated point-to-point links to forwarding without waiting through classic listening/learning timers. A designated bridge can send a proposal; the neighbor synchronizes other non-edge ports as required, selects the proposing port as root if appropriate, and returns an agreement. Edge ports can transition immediately because they are assumed not to create loops, while alternate ports provide precomputed backup paths. Compatibility with legacy 802.1D neighbors or links that are not point-to-point can remove rapid-transition opportunities and fall back to slower semantics. This section is authored reference guidance for RSTP — 802.1w in the RSTP context.

State model and protocol mechanics

RSTP still elects a root bridge and derives a loop-free tree, but it expresses topology with clearer port roles and a synchronization process designed for rapid transitions. Root and designated ports normally forward; alternate ports provide a precomputed backup path toward the root; backup ports are a same-segment special case. On point-to-point full-duplex links, a designated bridge can propose a forwarding relationship and the neighbor can synchronize its other non-edge ports before sending agreement, allowing the selected link to move rapidly to forwarding without relying on the classic listening/learning timer sequence. Edge ports are a separate optimization: they can enter forwarding immediately because the design asserts no downstream bridge exists. Receiving a BPDU can cause an edge assumption to be withdrawn depending on implementation and feature configuration.

Limits and common misconceptions

RSTP forwarding shows a port is allowed by spanning tree, but it does not show VLAN carriage, MAC learning, gateway reachability or application health. An alternate/discarding port is often the healthy state that prevents a loop, not a failed link. Fast transition depends on correct edge or point-to-point assumptions and valid BPDU exchange; convergence can slow when those assumptions are not met. A topology-change indication is not automatically a fault—legitimate link or endpoint changes can trigger it—but persistent unexpected topology changes deserve correlation with interface events and MAC movement. Keep election state, port role, forwarding state and end-to-end service as separate evidence layers.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Design begins with deterministic root placement rather than default bridge priorities. Select the intended root and secondary root per VLAN or spanning-tree instance, then align link costs and port priorities only where the physical topology requires a specific path choice. Mark true endpoint-facing ports as edge/PortFast and pair that intent with protective controls such as BPDU Guard where appropriate. Avoid treating rapid convergence as permission to leave ambiguous Layer 2 loops in the design: RSTP converges quickly when its topology assumptions and BPDU exchange are intact, but redundant links still need deliberate roles. Where multiple VLANs share the same physical topology, decide whether per-VLAN trees or MST aggregation better matches the scale and path-control requirements.

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 → RSTP — 802.1w. 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%
2026-09-13 · vendor docCisco Catalyst 9000 / IOS XE current

Official Cisco vendor documentation reviewed for bounded reference claims: RSTP role/state behavior and convergence concepts. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.

Basis: https://www.cisco.com/c/en/us/td/docs/switches/lan/c9000/lyr2-fwd/stp/stp-configuration-guide/m-stp.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
rstp802.1w
Embedded reference data

Quick lookup tables

RSTP role and state map

Separate why a port exists in the tree from whether it forwards

RoleTypical purposeCommon stable state
RootBest path toward rootForwarding
DesignatedBest port for a segmentForwarding
AlternateRedundant path through another bridgeDiscarding
BackupRedundant port to same shared segmentDiscarding
StateLearns MAC?Forwards user frames?
---------
DiscardingNoNo
LearningYesNo
ForwardingYesYes

RSTP — 802.1w · operational reference

Compact state and interpretation boundaries for fast lookup.

RSTP conceptMeaningHealthy interpretation
Root portBest local path toward rootOne expected root port per non-root bridge/instance
Designated portForwarding representative for a segmentExpected downstream/segment-facing role
AlternateBackup path toward rootDiscaring can be intentional and healthy
EdgeEndpoint-facing rapid-forward portUse only where no bridge is expected

RSTP — 802.1w operational reference

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

CheckKnown-goodFailure signatureNext boundary
ModeRSTP/Rapid-PVST+ activeLegacy compatibility unexpectedProtocol boundary
Link typePoint-to-point when expectedShared/unknownRapid eligibility
RolesRoot/designated/alternate stableRole instabilityTopology
HandshakeRapid synchronization possibleFallback/blocked transitionProposal/agreement
ConvergenceBounded loss, no loopTimer-like delay/oscillationControl-plane health
Confirmation

Confirm action

Continue?