![]() |
VOOZH | about |
RSTP is the more improved and advanced version of STP which is a layer 2 protocol that prevents bridge loops and broadcast storms in local networks with redundant connections. Rapid spanning tree protocol has faster convergence and it is also backward-compatible with STP. To make sure a loop-free topology, the Rapid Spanning Tree Protocol (RSTP) precludes some of the connections which permit only a single active path between any two devices. All these disabled connections can be used as backup paths in case an active connection fails. The IEEE standard for Rapid spanning tree protocol is 802.1w.
Similarities between STP and RSTP:
RSTP follows a strict set of rules by which the switches decide the best way to forward the traffic on the network free from any redundancy. When RSPT is enabled on a network, the spanning tree algorithm decides the configuration of the spanning tree automatically.
The topmost bridge of the spanning tree is the Root bridge in RSTP and it is in charge of sending all the network topology information to other switches present in the network. This plays an important role when hardware failures occur, or some other topology changes occur. So, the most efficient alternate paths are established without any delay.
There are four-port roles in RSTP
Rapid spanning tree protocol supports three port states.
At first, a switch port starts in a discarding state, a discarding port does not forward any frames nor does it learn MAC addresses, and it also listens for BPDUs. Backup and alternate ports remain discarding.
In RSTP if a port is elected as a Root port or Designated port, the transition will directly take place from a discarding state to a learning state. Hence, RSTP doesn’t need a listening state. A learning port adds MAC addresses into the Content addressable memory table; However, it can not forward frames.
In the next phase, a learning port transitions into a forwarding state. A forwarding port is completely functional i.e., it learns MAC addresses, sends and listens for BPDUs, and forwards frames.
In STP BPDUs are generated only by the root bridge. If a non-root bridge receives a BPDU from the root bridge on its root port, it will pass on the BPDU downstream to its neighbors. This Convergence process is slower and STP relies on forwarding delay timers to make sure a loop-free environment, this takes a lot of time.
In RSTP, switches just handshake directly with their neighboring switches, this allows quick synchronization in the topology. This lets ports promptly change from a discarding state to a forwarding state without a delay timer.
There are three types of ports in RSTP
RSTP algorithm follows some general steps: