Lesson 31: Rapid Spanning Tree Protocol (RSTP)
Traditional STP (802.1D) convergence can take 30 to 50 seconds (Listening and Learning states). RSTP (802.1w) dramatically reduces this time, often to under one second.
RSTP Improvements
- Faster Convergence: RSTP uses explicit acknowledgments (proposals and agreements) instead of timers.
- New Port States: RSTP simplifies the 802.1D states into three:
- Discarding: (Combines Blocking, Listening, Learning).
- Learning: Still processes BPDUs and learns MAC addresses.
- Forwarding: Sends and receives user data.
PortFast
PortFast is a critical feature configured on ports connected to end devices (PCs, servers, phones). These ports should never lead to a loop.
- Function: Immediately transitions the port to the Forwarding state, bypassing the Listening/Learning states.
- Configuration (Interface Mode):
spanning-tree portfast
Caution: Never enable PortFast on a port connected to another switch or a hub, as this would immediately create a loop.