Definition – Rapid Spanning Tree Protocol (RSTP)
Rapid Spanning Tree Protocol (RSTP) is a network protocol standardized by IEEE 802.1w that improves upon the original Spanning Tree Protocol (STP) by significantly reducing the time it takes to reconfigure the network topology after a change or failure. While STP can take up to 50 seconds to converge and establish a stable topology, RSTP can achieve convergence in a matter of a few seconds.
RSTP enhances the network’s ability to rapidly transition ports to the forwarding state, bypassing the traditional listening and learning states used in STP. It introduces new port roles such as alternate and backup, which provide immediate alternative paths in case the primary path fails. This rapid transition capability ensures minimal downtime and faster recovery from network disruptions.
In addition to faster convergence, RSTP is fully compatible with STP, allowing for seamless integration into existing network infrastructures. It maintains backward compatibility by interoperating with STP devices, ensuring that networks can gradually transition to the enhanced protocol without disrupting operations.
Overall, RSTP provides a more resilient and efficient network topology management solution, making it ideal for modern networks that demand high availability and rapid recovery from faults. Its improvements over STP help maintain continuous network service and minimize disruptions.

Election Process of Rapid Spanning Tree Protocol (RSTP)
In Rapid Spanning Tree Protocol (RSTP), the election process is streamlined compared to the original Spanning Tree Protocol (STP). RSTP simplifies the process by introducing new port roles and states, leading to faster convergence times. However, RSTP still involves the selection of a root bridge and the determination of root ports and designated ports. Here’s a breakdown of the election process and the various states involved in RSTP:
- Root Bridge Election:
- RSTP still elects a root bridge as the central reference point for the network. The root bridge is the switch with the lowest Bridge ID (BID), which is a combination of the Bridge Priority and the MAC Address.
- Each switch in the network participates in the root bridge election process by exchanging Bridge Protocol Data Units (BPDUs) and comparing Bridge IDs.
- The switch with the lowest Bridge ID becomes the root bridge, and all other switches in the network calculate the shortest path to reach the root bridge.
- Port Roles:
- RSTP introduces new port roles to optimize the network topology:
- Root Port (RP): The port on a non-root bridge that has the lowest path cost to the root bridge.
- Designated Port (DP): The port on a network segment that provides the best path from that segment to the root bridge.
- Alternate Port (AP): A backup port that provides an alternate path to reach the root bridge in case the current root port fails.
- Backup Port (BP): A port that provides a backup path to reach the root bridge in case the current root port or designated port fails.
- RSTP introduces new port roles to optimize the network topology:
- Port States:
- RSTP ports transition through various states based on their role and the current network conditions. The main states are:
- Discarding State: Ports do not forward data frames but can still receive and process BPDU messages.
- Learning State: Ports continue to participate in the spanning tree algorithm and learn MAC addresses by observing source addresses of incoming frames.
- Forwarding State: Ports forward data frames and actively participate in network traffic.
- Blocking State: Ports are in a blocking state to prevent loops in the network and are not actively forwarding frames.
- RSTP ports transition through various states based on their role and the current network conditions. The main states are:
- Topology Changes:
- When there are topology changes, such as link failures or additions, RSTP quickly adjusts the port roles and states to converge to the new topology.
- RSTP uses the proposal/agreement mechanism to rapidly transition ports to the Forwarding state without waiting for the full Forward Delay timer to expire.
Summary – Rapid Spanning Tree Protocol (RSTP)
Overall, RSTP’s election process and state transitions are designed to achieve faster convergence times and improve network efficiency compared to the original STP. The introduction of new port roles and states allows for more efficient utilization of network resources and better adaptation to changes in the network topology.
Useful Links
https://www.cisco.com/c/en/us/tech/lan-switching/spanning-tree-protocol/index.html
https://sanchitgurukul.com/switch
https://sanchitgurukul.com/tutorials-cat
