Lab 3 walked through the 802.1D election. Same algorithm runs in production today — but nobody runs the original timing. After a link failure, classic STP holds the network in listening / learning states for 30 to 50 seconds before traffic flows again. That was acceptable in 1998. It is not acceptable now.

Rapid Spanning Tree (802.1w, 2001) keeps the entire election logic and replaces the timers with a proposal / agreement handshake between switches. Edge ports skip the delay states entirely. The result: a topology change reconverges in well under a second on point-to-point links — fast enough that a continuous ping doesn't drop a single packet on a healthy LAN.

This lab builds a 3-switch triangle in Packet Tracer, enables Rapid-PVST+, and uses Simulation Mode + a continuous ping to watch RSTP reconverge in real time when you shut down the active path.

RSTP lab topology — 3 Cisco 2960-24TT switches in a triangle (SW1 on top, SW2 left, SW3 right) with PC0 hanging off SW2 Fa0/3 and PC1 off SW3 Fa0/3. SW1 Fa0/1↔SW2 Fa0/1, SW1 Fa0/2↔SW3 Fa0/1, SW2 Fa0/2↔SW3 Fa0/2.
[ FIG 1 — RSTP lab topology shipped with the .pkt file ]

★ WHAT'S DIFFERENT FROM 802.1D

[ ROLES ] Root Port — same as STP, best path to root
Designated Port — same as STP, best port on a segment
Alternate Port — pre-computed backup for the Root Port (replaces "Blocking" in this case)
Backup Port — pre-computed backup for a Designated Port on a shared segment (rare — only on hubs)
[ STATES ] Three states instead of five:
Discarding — collapses 802.1D's Disabled, Blocking, and Listening
Learning — building MAC table, no forwarding
Forwarding — fully operational
[ THE FAST PATH ] On a point-to-point link (full duplex switch-to-switch), RSTP uses a proposal / agreement BPDU exchange. The new RP transitions to forwarding the moment its upstream switch agrees — no Forward Delay timer. Convergence: typically <1 second.

On shared segments (half-duplex / hubs), RSTP falls back to legacy timers. Modern LANs are full duplex everywhere, so this rarely matters.

★ TOPOLOGY

[ DEVICES ] SW1 — Cisco 2960-24TT (will be Root Bridge)
SW2 — Cisco 2960-24TT
SW3 — Cisco 2960-24TT
PC0 — connected to SW2
PC1 — connected to SW3
[ CONNECTIONS — TRIANGLE OF SWITCHES + 2 PCs ] SW1 Fa0/1 ↔ SW2 Fa0/1  (trunk)
SW1 Fa0/2 ↔ SW3 Fa0/1  (trunk)
SW2 Fa0/2 ↔ SW3 Fa0/2  (trunk — this becomes the redundant path)
SW2 Fa0/3 → PC0  (access — edge port)
SW3 Fa0/3 → PC1  (access — edge port)
[ ⚠ WHY A TRIANGLE ] Three switches with all three pairs cabled creates exactly one loop — STP/RSTP must block one port. That blocked (Alternate) port is what reactivates when you shut the active path. Anything simpler than a triangle has no loop and no convergence to demo.

★ IP ADDRESSING

One subnet, default VLAN 1. Keep it simple — this lab is about the spanning tree, not IP design.

DEVICE IP ADDRESS SUBNET CONNECTED TO
PC0192.168.1.10/24SW2 Fa0/3
PC1192.168.1.20/24SW3 Fa0/3

★ STEP 1 — CABLE THE TOPOLOGY

In Packet Tracer, drop in 3x 2960-24TT switches, 2x PCs. Use straight-through copper for PC-to-switch and switch-to-switch (Packet Tracer auto-negotiates the right cable type with auto-MDIX). Wait for the link lights to come up green on the switch ports — that takes the 30-second 802.1D listening / learning before STP allows forwarding, which by itself is a good demo of why we're upgrading to RSTP.

[ ⚠ DEFAULT MODE IS NOT RSTP ] Cisco IOS defaults to PVST+ (legacy 802.1D per VLAN) on a 2960. You must explicitly set Rapid-PVST+ or you'll get classic STP behavior. Verify with show spanning-tree summary before you start the convergence demo.

★ STEP 2 — ENABLE RAPID-PVST ON ALL SWITCHES

Run on SW1, SW2, and SW3:

Switch> enable Switch# configure terminal Switch(config)# hostname SW1 ! repeat for SW2, SW3 with their names SW1(config)# spanning-tree mode rapid-pvst

That single command flips every VLAN's STP instance from 802.1D to 802.1w on this switch. The switch immediately starts sending RSTP-format BPDUs and negotiates with neighbours.

★ STEP 3 — FORCE SW1 AS ROOT BRIDGE

Without configuration, the lowest MAC wins — effectively random. Pin SW1 as root so the topology is predictable for the demo.

SW1(config)# spanning-tree vlan 1 priority 4096 ! Optional — Cisco macro that picks priority 24576 automatically ! Either approach works; explicit priority is cleanest for a lab. ! SW1(config)# spanning-tree vlan 1 root primary

With SW1 at priority 4096 and the others at the default 32768, SW1 has the lowest Bridge ID and wins the election regardless of MAC.

★ STEP 4 — TRUNK THE SWITCH-TO-SWITCH LINKS

RSTP works on access ports too, but trunks are the realistic case and they make the link-type point-to-point detection unambiguous. Run on the appropriate ports of each switch.

SW1(config)# interface range fa0/1 - 2 SW1(config-if-range)# switchport mode trunk SW2(config)# interface range fa0/1 - 2 SW2(config-if-range)# switchport mode trunk SW3(config)# interface range fa0/1 - 2 SW3(config-if-range)# switchport mode trunk

★ STEP 5 — DECLARE EDGE PORTS (PORTFAST)

The PC ports should be edge ports. An edge port is RSTP's name for a port that connects to an end device — it skips Discarding and Learning entirely and goes straight to Forwarding the instant the link comes up. This is what eliminates the classic 30-second wait for a PC to get DHCP.

SW2(config)# interface fa0/3 SW2(config-if)# switchport mode access SW2(config-if)# spanning-tree portfast SW3(config)# interface fa0/3 SW3(config-if)# switchport mode access SW3(config-if)# spanning-tree portfast
[ ⚠ NEVER PORTFAST A SWITCH-TO-SWITCH LINK ] PortFast tells the port "skip the discarding state — there's no chance of a loop here." If you portfast a link to another switch and that switch creates a loop, you've just bypassed the protection that prevents a broadcast storm. Use it only on access ports facing end devices. Cisco offers spanning-tree bpduguard enable as a safety net — if any BPDU is ever seen on a portfast port, the port shuts down.

★ STEP 6 — ASSIGN IPs AND VERIFY ELECTION

Click each PC (PC0 and PC1), open the Desktop tab → IP Configuration, set the static address from the table above. Then verify the spanning tree on each switch.

SW1# show spanning-tree summary ! Should show: Switch is in rapid-pvst mode SW1# show spanning-tree vlan 1 ! Confirms SW1 is root, all its ports are Designated
SW2# show spanning-tree vlan 1 ! Identify which port is the Root Port (best path to SW1) ! The other inter-switch port is either Designated or Alternate SW3# show spanning-tree vlan 1

Read the role column carefully. RSTP labels the redundant blocked port as Altn (Alternate), not BLK. The state column shows DIS for discarding rather than BLK for blocking.

[ EXPECTED OUTCOME ] SW1 — Root Bridge. Fa0/1 = DP (to SW2), Fa0/2 = DP (to SW3).
SW2 — Fa0/1 = RP (toward SW1, cost 19), Fa0/2 = either DP or Altn (one of SW2/SW3 wins the SW2↔SW3 segment by lower MAC).
SW3 — Fa0/1 = RP, Fa0/2 = whichever role SW2 didn't take.

Note which switch ended up with the Alternate port — that's the switch you'll use to time the convergence demo.

★ STEP 7 — WATCHING RSTP CONVERGE

This is the part the lab is built around. You're going to start a continuous ping that traverses the active path, then break the active path and time how long it takes the alternate to take over.

SETUP THE PING

On PC0, open Desktop → Command Prompt:

PC> ping 192.168.1.20 -t ! -t makes the ping run continuously until you Ctrl-C it. ! Leave this window open and visible.

You should see Reply from 192.168.1.20 ... every second. The ping is currently traversing whatever path RSTP elected — most likely PC0 → SW2 → SW1 → SW3 → PC1.

OPEN SIMULATION MODE TO SEE THE BPDUs

Bottom-right corner of Packet Tracer, switch from Realtime to Simulation. In the Event List filters, click Edit FiltersEDIT ACL FILTERS → check STP only (uncheck everything else). Hit Auto Capture / Play.

You'll see RSTP BPDUs flow between switches every 2 seconds (Hello timer). Click any BPDU envelope in the topology to inspect the OSI layer breakdown — the Type field shows 0x02 for RSTP (vs 0x00 for legacy STP). This is also how you confirm visually that you're actually running RSTP and not classic STP.

TRIGGER THE FAILURE

Switch back to Realtime mode so the ping keeps flowing. Identify the switch holding the active path to root — let's say SW2's Fa0/1 is the Root Port. Open SW2's CLI:

SW2(config)# interface fa0/1 SW2(config-if)# shutdown

The instant you hit Enter, watch the ping window. With Rapid-PVST+, you should see at most one or two timed-out replies before the ping resumes. RSTP detected the link loss, the Alternate port on SW3 (or SW2, depending on the election) immediately transitioned to Root Port and Forwarding state via the proposal / agreement exchange.

BRING IT BACK AND COMPARE TO LEGACY STP

Re-enable the link, then flip the switches back to legacy mode and repeat the demo:

SW2(config)# interface fa0/1 SW2(config-if)# no shutdown ! Now switch all 3 switches back to legacy 802.1D PVST+ SW1(config)# spanning-tree mode pvst SW2(config)# spanning-tree mode pvst SW3(config)# spanning-tree mode pvst ! Wait ~30 seconds for the topology to settle, then re-run the failure demo. SW2(config)# interface fa0/1 SW2(config-if)# shutdown

This time count the ping timeouts. You'll see roughly 15 to 30 seconds of dropped packets as the topology runs Max Age + Listening + Learning before the alternate path forwards. That's the exact problem RSTP solves.

[ ✓ THE WHOLE POINT ] RSTP failover: 0–2 dropped pings (<1 second).
802.1D failover: 15–30 dropped pings (15–30 seconds).

Same topology. Same physical recovery path. The only thing that changed was the protocol's willingness to skip the safety timers when it has pre-computed alternates.

★ OTHER WAYS TO TRIGGER CONVERGENCE

Once the lab is built, you can keep poking it. Each of these prompts a different RSTP behavior:

[ TRIGGERS ] Pull the cable — In PT, hover the cable, right-click → Delete. Same effect as shutdown but tests physical loss-of-light detection.

Force a re-election — Lower another switch's priority below SW1's: spanning-tree vlan 1 priority 0. Whole tree rebuilds.

Test PortFast — Power-cycle a PC (right-click → power button). With portfast, the switch port goes straight to forwarding. Without portfast, watch the ~30s wait.

Use the Time slider — In Simulation mode, the timeline at the bottom shows exact frame timing. Step through the proposal / agreement BPDU exchange one packet at a time after a failure.

★ VERIFICATION CHEAT SHEET

! Confirm RSTP is running SW1# show spanning-tree summary | include mode ! See full per-VLAN tree with port roles SW1# show spanning-tree vlan 1 ! Check a specific interface's STP state SW1# show spanning-tree interface fa0/1 detail ! Look for edge port flag (PortFast) SW2# show spanning-tree interface fa0/3 portfast ! Watch BPDU counters live SW1# show spanning-tree detail | include executions|ieee|received

★ COMMON GOTCHAS

[ ⚠ MIXED-MODE NETWORKS ] RSTP is backwards-compatible with 802.1D — but only on a per-port basis. A switch that sees a legacy BPDU on one port falls back to 802.1D timing for that port, losing the fast-convergence benefit on that link. In a real network, set every switch to rapid-pvst at the same time during a maintenance window.
[ ⚠ HALF-DUPLEX KILLS RSTP ] Proposal / agreement only works on point-to-point links. Anything half-duplex (or that the switch can't auto-detect as full duplex) is treated as a shared segment, and RSTP reverts to the slow legacy timers on that link. Hardcode duplex if you suspect mismatches: duplex full.
[ ⚠ PORTFAST + NO BPDU GUARD = FOOTGUN ] A user plugging a switch into a portfast access port can take down your spanning tree. Pair PortFast with BPDU Guard everywhere: spanning-tree bpduguard enable per-port, or globally with spanning-tree portfast bpduguard default.

★ LAB DOWNLOAD

Built and tested in Packet Tracer 8.x. Drop the .pkt file, hit play, and run through Steps 5–7 to see RSTP do its thing.

► PACKET TRACER LAB — RAPID SPANNING TREE 3 switches · 2 PCs · 1 triangle · sub-second convergence demo
Includes pre-built topology, Step 7 ready to trigger
INTERMEDIATE FREE PACKET TRACER
⬇ DOWNLOAD .PKT
[ ★ STUDY RESOURCES ]