CCNA 200-301Chapter 185 of 260Objective 2.5

STP vs RSTP: Convergence Comparison

In the CCNA 200-301 exam, understanding the convergence differences between Spanning Tree Protocol (STP, IEEE 802.1D) and Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) is critical for both troubleshooting and design. While both prevent Layer 2 loops, RSTP converges in seconds instead of the 30-50 seconds of classic STP. This chapter dissects the exact mechanisms, timers, and state transitions that separate these two protocols, giving you the knowledge to answer exam scenario questions and build resilient networks.

25 min read
Intermediate
Updated May 31, 2026

The Town Meeting vs. The Emergency Broadcast

Imagine a town where every house is connected by roads, but you need to avoid traffic circles (loops) that cause gridlock. In the old STP system (802.1D), when a road is blocked and suddenly needs to open, the mayor sends a messenger on horseback to every house saying 'I'm thinking about changing the traffic pattern.' The messenger takes 20 seconds to reach each house, then the mayor waits another 15 seconds to be sure everyone got the message, and only then does the traffic light change. That's 35 seconds of cars honking and going nowhere. In the RSTP system (802.1w), the mayor uses a radio broadcast: 'Road 3 is open, immediate effect!' Every house hears it at nearly the same time, and within a second or two, all traffic lights adjust. The key difference: STP relies on time-based timers (waiting for messages to expire), while RSTP uses explicit handshakes (proposal-agreement) that propagate quickly. Also, in the old system, a house that hears a change must wait to make sure no other house has a different idea (listening -> learning -> forwarding). In RSTP, a house can immediately agree to a change because the handshake confirms the topology. This mirrors how RSTP's port roles (root, designated, alternate, backup) instantly know their function without waiting for timers.

How It Actually Works

What STP and RSTP Are and Why They Exist

Spanning Tree Protocol (STP, IEEE 802.1D) and Rapid Spanning Tree Protocol (RSTP, IEEE 802.1w) are Layer 2 protocols that prevent loops in Ethernet networks with redundant links. Without them, broadcast storms, multiple frame copies, and MAC table instability would cripple a switched network. Both protocols create a loop-free logical topology by blocking certain ports while keeping all physical links available for redundancy. The fundamental difference is convergence speed: STP relies on timers (up to 50 seconds), while RSTP uses active handshakes and port role assignments to converge in a few seconds (often under 2 seconds).

How STP Works Step by Step

STP elects a single root bridge based on the lowest bridge ID (priority + MAC address). Each non-root bridge selects one root port (the port with the lowest path cost to the root). On each segment (collision domain), the bridge with the lowest path cost to the root becomes the designated port; all other ports on that segment become non-designated (blocked). The process uses Bridge Protocol Data Units (BPDUs) sent every 2 seconds (Hello timer) by the root bridge, relayed by other bridges.

STP port states: - Blocking: Port is administratively down or loop prevention; no data forwarding, no MAC learning; receives BPDUs but does not send them (except to indicate presence). - Listening: Port transitions from blocking; listens for BPDUs to determine its role; no data forwarding, no MAC learning; duration = Forward Delay (15 seconds by default). - Learning: Port learns MAC addresses from incoming frames but still does not forward data; duration = Forward Delay (15 seconds). - Forwarding: Port forwards data and learns MAC addresses normally. - Disabled: Port is administratively shutdown.

Timers: - Hello: 2 seconds (default) – interval between BPDUs sent by root. - Forward Delay: 15 seconds (default) – time spent in listening and learning states. - Max Age: 20 seconds (default) – time a bridge waits without hearing a BPDU before re-evaluating root.

Convergence: When a topology change occurs (e.g., link failure), the bridge detecting the change sends a Topology Change Notification (TCN) BPDU toward the root. The root acknowledges and sets the Topology Change flag in its BPDUs for a period (Forward Delay + Max Age). All bridges then shorten their MAC address aging time from 300 seconds to Forward Delay seconds (15). Meanwhile, the affected ports go through blocking -> listening (15s) -> learning (15s) -> forwarding. Total convergence can be up to 50 seconds (20s Max Age + 15s listening + 15s learning).

How RSTP Works Step by Step

RSTP (802.1w) maintains the same root election and path cost logic but changes port roles and states. RSTP port roles: - Root Port: Best path to root bridge. - Designated Port: Best path from a segment to the root; forwards traffic. - Alternate Port: Backup to the root port; provides an alternate path to the root; immediately transitions to forwarding if the root port fails (without timers). - Backup Port: Backup to a designated port on the same segment (rare in switched networks); provides redundancy for the designated port.

RSTP port states are reduced to three operational states: Discarding, Learning, and Forwarding. The old blocking, listening, and disabled states are all condensed into Discarding.

RSTP convergence uses a proposal-agreement handshake between bridges. When a port is elected as a designated port, it sends a proposal BPDU (with the proposal flag set) to the neighbor. The neighbor, if it agrees, sets its port to the root port and sends an agreement BPDU back. This handshake propagates rapidly from the root outward, typically converging in a few seconds. Edge ports (ports connected to end hosts) can be configured to transition directly to forwarding without handshake, using the spanning-tree portfast command.

RSTP also handles topology changes differently: a bridge detecting a link failure immediately sends a BPDU with the topology change flag set, and all bridges age out MAC entries quickly (topology change timer = 2 x Hello time, typically 4 seconds).

Key States, Timers, and Defaults

STP defaults:

Hello: 2 seconds

Forward Delay: 15 seconds

Max Age: 20 seconds

Bridge priority: 32768 (default)

Path cost: 100 for 100 Mbps, 19 for 1 Gbps, 4 for 10 Gbps (older cost values; newer 802.1t uses 200,000/bandwidth)

RSTP defaults:

Hello: 2 seconds (same)

Forward Delay: 15 seconds (still used if BPDUs are lost, but not for normal convergence)

Max Age: 20 seconds (still used)

Bridge priority: 32768 (same)

Path cost: same as STP

Edge port: PortFast disabled by default on all ports

IOS CLI Verification Commands

Switch# show spanning-tree
VLAN0001
  Spanning tree enabled protocol ieee
  Root ID    Priority    32769
             Address     0011.2233.4455
             Cost        19
             Port        1 (GigabitEthernet0/1)
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)
             Address     0011.2233.4466
             Hello Time  2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface        Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Gi0/1            Root FWD 19        128.1    P2p
Gi0/2            Desg FWD 19        128.2    P2p
Gi0/3            Altn BLK 19        128.3    P2p

For RSTP, the output shows "protocol ieee" but the port states reflect RSTP roles (Altn, Back, etc.). To verify RSTP is active, use:

Switch# show spanning-tree detail
 VLAN0001
   Spanning tree enabled protocol rstp

Interaction with Related Protocols

RSTP is backward-compatible with STP: if a port receives an STP BPDU, it falls back to STP mode on that port (using STP timers). This can cause suboptimal convergence if a legacy switch is in the network. Also, RSTP interacts with VLANs via PVST+ (Per-VLAN Spanning Tree) or Rapid PVST+. In Cisco switches, Rapid PVST+ runs an instance of RSTP per VLAN, which is the default on newer switches. MST (Multiple Spanning Tree) uses RSTP for rapid convergence within instances.

Walk-Through

1

Identify Current STP Mode

Use `show spanning-tree` or `show spanning-tree detail` to see if the switch is running STP (802.1D) or RSTP. Look for "protocol ieee" and "protocol rstp" in the output. If it says "ieee", the switch is using classic STP. If it says "rstp", it is using Rapid PVST+ (which uses RSTP per VLAN). On Cisco switches, the default spanning-tree mode for newer IOS is Rapid PVST+. To check globally: `show spanning-tree summary` shows the mode (e.g., "Mode: PVST+" or "Mode: Rapid-PVST+").

2

Compare Port State Transitions

In STP, a port transitioning from blocking to forwarding goes through blocking (20s Max Age if no BPDU), listening (15s), learning (15s) – total up to 50 seconds. In RSTP, a port can go from discarding to forwarding in a few seconds via proposal-agreement. Use `debug spanning-tree events` to see the state changes. On the exam, recognize that STP's 30-50 second convergence is a key weakness. RSTP's edge ports (PortFast) transition immediately to forwarding – this is a common exam point.

3

Analyze BPDU Handling

STP relies on timers: the root sends BPDUs every Hello (2s). If a bridge misses Max Age (20s) of BPDUs, it assumes root is gone and triggers reconvergence. RSTP uses BPDUs as keepalives but also uses explicit handshakes. In RSTP, every bridge sends BPDUs every Hello (2s) even if it is not the root. Use `show spanning-tree interface <interface>` to see BPDU statistics. In the exam, remember that STP only sends BPDUs from the root (relayed), while RSTP sends from all bridges.

4

Examine Port Roles

STP has three port roles: root, designated, and blocked (non-designated). RSTP adds alternate and backup roles. An alternate port provides a backup to the root port and can transition to forwarding immediately if the root port fails. A backup port is a backup to a designated port on the same segment. Use `show spanning-tree` to see the Role column: Root, Desg, Altn, Back. On the exam, be able to identify which port becomes forwarding after a root port failure – in RSTP, the alternate port takes over instantly.

5

Configure RSTP and Verify Convergence

To enable Rapid PVST+ (Cisco's implementation of RSTP per VLAN), use `spanning-tree mode rapid-pvst` in global configuration mode. Then, configure edge ports with `spanning-tree portfast` on access ports. Verify with `show spanning-tree summary` and `show spanning-tree vlan 1`. Test convergence by disconnecting a link and measuring the time to reach forwarding state. For exam simulation, know that `spanning-tree mode pvst` sets classic STP, while `rapid-pvst` sets RSTP. The default on many switches is now `rapid-pvst`.

6

Troubleshoot Convergence Issues

If convergence is slow, check if all switches run RSTP. A single STP switch in the network causes all switches on that segment to revert to STP timers for that port. Use `show spanning-tree interface` to see the port's operational mode (e.g., "OperMode: rstp" vs "OperMode: stp"). Also verify that PortFast is configured on edge ports – without it, a host connection causes a 30-second delay. In the exam, a common trap is thinking RSTP is faster only because of PortFast, but the real speed comes from proposal-agreement.

What This Looks Like on the Job

In enterprise networks, the choice between STP and RSTP directly impacts application availability. Consider a campus network with redundant distribution switches. With classic STP, a link failure between an access switch and a distribution switch causes 30-50 seconds of convergence – enough to drop VoIP calls, disrupt database transactions, and cause TCP timeouts. In one real scenario, a hospital network using STP experienced a 45-second outage during a link failure, affecting patient monitoring systems. After migrating to RSTP, convergence dropped to under 2 seconds.

Another common deployment is in data center topologies. Many data centers use RSTP (or MST with RSTP) for server access layer redundancy. For example, a top-of-rack (ToR) switch connecting to two leaf switches. With RSTP, the alternate port immediately takes over if the root port fails, providing sub-second failover. Network engineers often combine RSTP with features like UplinkFast (Cisco proprietary, now obsolete in RSTP) and BackboneFast (also obsolete in RSTP) – but these are unnecessary with proper RSTP.

A frequent misconfiguration is forgetting to set PortFast on edge ports. An engineer might connect a server to a switch port and wonder why it takes 30 seconds to get an IP address via DHCP. The fix is spanning-tree portfast on that port. Also, mixing STP and RSTP in the same network causes all switches to run STP on the mixed segment, negating RSTP's speed. In large networks, engineers must ensure all switches run Rapid PVST+ or MST.

Performance considerations: RSTP scales well up to hundreds of switches per VLAN, but the proposal-agreement handshake can cause CPU spikes during reconvergence in very large topologies. MST (Multiple Spanning Tree) reduces the number of instances, improving scalability. When misconfigured (e.g., inconsistent port roles due to incorrect path costs), RSTP can still converge quickly but may create temporary loops if BPDUs are lost – though the handshake minimizes this risk.

How CCNA 200-301 Actually Tests This

The CCNA 200-301 exam tests STP vs RSTP under objective 2.5 (Spanning Tree Protocol). Expect 2-3 questions on convergence differences, port roles, and configuration commands. The most common wrong answers candidates choose are:

1.

"RSTP uses the same timers as STP but shorter." Wrong – RSTP does not rely on timers for convergence; it uses handshakes. Timers are only fallbacks.

2.

"RSTP has no blocked ports." Wrong – RSTP has discarding ports (equivalent to blocked) that can be alternate or backup.

3.

"PortFast is required for RSTP to work." Wrong – PortFast speeds up edge ports but is not required for RSTP's core convergence.

4.

"RSTP converges faster because it reduces Forward Delay to 4 seconds." Wrong – Forward Delay is still 15 seconds by default; it is only used if BPDUs are lost.

Specific values to memorize:

STP convergence: up to 50 seconds (20s Max Age + 15s listening + 15s learning)

RSTP convergence: typically under 2 seconds (proposal-agreement)

STP port states: Blocking, Listening, Learning, Forwarding, Disabled

RSTP port states: Discarding, Learning, Forwarding

RSTP port roles: Root, Designated, Alternate, Backup

STP port roles: Root, Designated, Blocked (non-designated)

Command outputs that appear on the exam: show spanning-tree showing Role and Sts columns. For RSTP, the Role may show "Altn" or "Back".

Decision rule for scenario questions: If the question asks about convergence time and mentions a network with all Cisco switches running default config, assume Rapid PVST+ (RSTP) unless told otherwise. If a legacy switch is present, convergence will be STP-like. If a link failure occurs and an alternate port exists, RSTP will failover in under a second. If the question mentions "listening" and "learning" states, it's STP – RSTP doesn't use those terms.

Key Takeaways

STP convergence can take up to 50 seconds (20s Max Age + 15s listening + 15s learning).

RSTP converges in under 2 seconds using proposal-agreement handshakes, not timers.

RSTP port roles include Alternate (backup to root port) and Backup (backup to designated port).

STP port states: Blocking, Listening, Learning, Forwarding, Disabled. RSTP states: Discarding, Learning, Forwarding.

Cisco default spanning-tree mode on modern switches is Rapid PVST+ (RSTP per VLAN).

PortFast causes an edge port to transition directly to forwarding, bypassing listening/learning.

RSTP is backward-compatible with STP; if a port receives an STP BPDU, it reverts to STP timers on that port.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

STP (802.1D)

Convergence up to 50 seconds (timer-based)

Port states: Blocking, Listening, Learning, Forwarding, Disabled

Port roles: Root, Designated, Blocked

BPDUs sent only by root bridge (relayed by others)

Topology change notification uses TCN BPDU, slow propagation

RSTP (802.1w)

Convergence typically under 2 seconds (handshake-based)

Port states: Discarding, Learning, Forwarding

Port roles: Root, Designated, Alternate, Backup

All bridges send BPDUs every Hello time

Immediate propagation of topology change via BPDU flags

Watch Out for These

Mistake

RSTP is just STP with shorter timers.

Correct

RSTP uses a fundamentally different convergence mechanism: explicit proposal-agreement handshakes instead of timer-based listening/learning. Timers (Forward Delay, Max Age) are only fallbacks if BPDUs are lost.

Candidates see that both use BPDUs and timers, and assume RSTP simply reduces those timers.

Mistake

RSTP eliminates all blocked ports.

Correct

RSTP still has discarding ports (equivalent to blocked) that serve as alternate or backup ports. These ports do not forward traffic but can transition to forwarding immediately if needed.

The term 'rapid' suggests no waiting, but the loop-free topology still requires some ports to be discarding.

Mistake

PortFast is required for RSTP to achieve rapid convergence.

Correct

PortFast is only for edge ports (connected to end hosts) and bypasses the handshake. RSTP's rapid convergence between switches works without PortFast via proposal-agreement.

Many CCNA labs configure PortFast and see instant transitions, leading to the belief it is necessary for all RSTP ports.

Mistake

RSTP does not use BPDUs.

Correct

RSTP uses BPDUs extensively: every switch sends BPDUs every Hello time (2s) to maintain neighbor relationships and propagate topology changes. BPDUs are modified with proposal/agreement flags.

Candidates think RSTP is 'faster' because it uses less overhead, but actually it uses more frequent BPDUs.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

What is the difference between STP and RSTP convergence time?

STP convergence can take up to 50 seconds (20 seconds Max Age + 15 seconds listening + 15 seconds learning). RSTP converges in under 2 seconds typically, using proposal-agreement handshakes. The key exam point: STP relies on timers; RSTP relies on explicit handshakes. If a question says 'convergence in seconds' without specifying, assume RSTP if all switches support it.

Does RSTP use the same BPDU format as STP?

RSTP uses the same BPDU format (type 0x02) but utilizes flags (proposal, agreement, learning, forwarding, topology change) that were unused in STP. RSTP BPDUs are sent every Hello time (2s) by all bridges, not just the root. On the exam, know that RSTP BPDUs have the same structure but with different flag usage.

What is the purpose of PortFast in RSTP?

PortFast is configured on edge ports (ports connected to end hosts) to bypass the proposal-agreement handshake and immediately transition to forwarding. This prevents the 30-second delay when a host connects. In RSTP, PortFast is not required for rapid convergence between switches; it only speeds up host connectivity. Exam tip: PortFast should never be used on ports connecting to other switches.

How does RSTP handle topology changes?

When a bridge detects a link state change (e.g., port going down), it immediately sends a BPDU with the topology change flag set. All bridges receiving this flag age out their MAC entries quickly (topology change timer = 2 x Hello time, typically 4 seconds). This is faster than STP, where the root must be notified via TCN and then set the TC flag in its BPDUs for a longer period.

Can RSTP and STP switches work together?

Yes, RSTP is backward-compatible with STP. If an RSTP switch receives an STP BPDU on a port, it reverts to STP mode on that port (using STP timers). This means the entire segment runs STP, losing RSTP's rapid convergence. Exam scenario: mixing old and new switches can cause slow convergence despite RSTP support on newer switches.

What is the difference between PVST+ and Rapid PVST+?

PVST+ is Cisco's implementation of classic STP (802.1D) per VLAN. Rapid PVST+ uses RSTP (802.1w) per VLAN. The default on modern Cisco switches is Rapid PVST+. Configuration: `spanning-tree mode rapid-pvst`. Exam tip: PVST+ still uses 802.1D timers; Rapid PVST+ uses RSTP handshakes.

What are the RSTP port states and roles?

RSTP port states: Discarding (no data, no MAC learning), Learning (MAC learning, no data), Forwarding (data and MAC learning). Port roles: Root (best path to root), Designated (best path from segment), Alternate (backup to root port), Backup (backup to designated port). On the exam, be able to identify roles from `show spanning-tree` output.

Terms Worth Knowing

Ready to put this to the test?

You've just covered STP vs RSTP: Convergence Comparison — now see how well it sticks with free CCNA 200-301 practice questions. Full explanations included, no account needed.

Done with this chapter?