RSTP (Rapid Spanning Tree Protocol)
What RSTP fixes
STP prevents loops but converges slowly: after a link failure, recovery takes 30-50 seconds (15 listening plus 15 learning).
Traffic is interrupted for those 30 seconds. For voice, storage or databases, a 30-second interruption is an outage.
RSTP (802.1w) cuts recovery to 1-3 seconds and uses the same frame format as STP, with version number 2.
Why it converges fast
(1) Handshake instead of timers: neighbouring switches use the proposal / agreement bits in the BPDU to confirm directly that a port may forward, instead of waiting for timers to expire.
(2) Edge ports forward immediately: a port facing an endpoint does not wait on the spanning tree and forwards as soon as it is connected.
(3) A pre-determined backup port: the new Alternate port role is determined in advance as the backup for the root port, so when the active path fails it takes over without recomputing the whole tree.
Common misconceptions
RSTP and STP can run together. An RSTP switch falls back to STP BPDUs on ports facing STP devices, and convergence on that segment drops back to STP speed.
RSTP is fast only if endpoint-facing ports are configured as edge. Otherwise host ports still wait; this is the most common reason for "RSTP is still slow" in the field.
RSTP still blocks ports. It only shortens convergence; with dual uplinks, half the uplink bandwidth still sits idle.