Sub topic 12
Rapid STP: faster convergence with the same tree logic
This chapter assumes you know how classic 802.1D elects a root bridge, how path costs decide root and designated ports, and what the blocking, listening, learning and forwarding states do. Rapid STP (RSTP, IEEE 802.1w) keeps all of that logic. It changes how switches move ports to forwarding.
What stays the same
RSTP elects the root bridge with the same bridge ID comparison. It uses the same path costs and the same tie-breakers. A topology that 802.1D resolves into one tree gets the same tree under RSTP. The difference is the time it takes to get there.
Classic STP waits on timers. A port moves through listening and learning for 15 seconds each, and a failure can take up to 50 seconds to recover from (max age plus two forward delays). RSTP replaces most of that waiting with direct communication between neighbors.
What changes
RSTP has three changes that matter in practice.
- Fewer states. Blocking, listening and disabled merge into a single discarding state. The states are discarding, learning and forwarding.
- Port roles that predict failover. The alternate port is a ready backup path to the root. The backup port is a spare path to the same segment. When the root port fails, an alternate port can become the root port at once, with no timer.
- Every switch sends BPDUs. Each switch sends its own BPDU every hello interval (2 seconds). It does not just relay the root's BPDU. A neighbor that misses three hellos is declared lost, so failure is detected in about 6 seconds, or immediately when the link goes down.
| Feature | 802.1D | 802.1w (RSTP) |
|---|---|---|
| Port states | Blocking, listening, learning, forwarding | Discarding, learning, forwarding |
| Who sends BPDUs | Root originates, others relay | Every switch, every hello |
| Typical failover | 30 to 50 seconds | Under 1 second on point-to-point links |
| Backup path roles | None | Alternate and backup |
How a link comes up quickly
On point-to-point links, a switch does not wait for timers. It uses a proposal/agreement handshake. A designated port sends a proposal. The neighbor blocks its other non-edge ports to avoid a loop, then replies with an agreement. The designated port then moves to forwarding at once. This repeats outward from the root, one link at a time.
Link type matters here. RSTP infers it from duplex: full duplex means point-to-point, and half duplex means shared. Shared links fall back to timer-based behavior. Ports with PortFast (edge ports) go straight to forwarding and do not take part in the handshake.
Enabling it
On Cisco IOS, Rapid PVST+ runs RSTP per VLAN.
configure terminal
spanning-tree mode rapid-pvst
end
show spanning-tree vlan 10In the output, look for the Role column (Root, Desg, Altn, Back) and the Sts column (FWD, LRN, BLK). IOS still shows BLK for discarding ports.
Exercise
A switch's root port fails. It has another port with an alternate role that also leads to the root. In RSTP, what happens, and why is this faster than in 802.1D?
Show answer
The alternate port becomes the new root port immediately and moves to forwarding, with no listening or learning timers. In 802.1D, the blocked port must wait for max age to expire and then pass through listening and learning, which takes up to 50 seconds.