Difference between Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP) (original) (raw)

Last Updated : 23 Jul, 2025

Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP) are used in Ethernet networks to stop loops from forming. They help create a stable, loop-free network and prevent problems like broadcast storms. Both are meant to make networks more reliable, but they differ in how fast they work, how they function, and how flexible they are in the use.

**Spanning Tree Protocol (STP)

STP is also known as spanning tree protocol is a layer 2 (Data link layer) protocol, it runs on switches and bridges. The IEEE standard of STP is 802.1D. STP is a feature used to prevent loops when using redundant switches. For example, we have three switches they are all linked together and without STP a loop could form causing several problems like it can blocked the network, broadcast storm, etc. eventually it can even lead to failure of the switches.

**Advantages of STP

**Disadvantages of STP

**Rapid Spanning Tree Protocol (RSTP)

Rapid Spanning Tree Protocol (RSTP) is an improved version of the original Spanning Tree Protocol (STP). It is defined by the IEEE standard **802.1w. RSTP shares many features with STP and is also backward compatible, meaning it can work with devices that still use STP. Like STP, RSTP prevents network loops by blocking unnecessary ports, but it does so much faster and more efficiently.

**Advantages of RSTP

**Disadvantages of RSTP

**Similarities between STP and RSTP

There are many similarities between the STP and RSTP protocols as discussed below :

**Difference between STP and RSTP

**STP **RSTP
Its IEEE standard is 802.1D. Its IEEE standard is 802.1W.
In STP only the root bridge sends BPDU (Bridge protocol data unit) and it is transferred by others. In RSTP all bridges can forward BPDUs.
STP has three port roles (i.e., Root Port, Designated Port, Blocked Port). RSTP has four-port roles (i.e., Root Port, Designated Port, Alternate Port, Backup Port).
STP has five port states (i.e., Forwarding, Learning, Listening, Blocking, Disabled). RSTP has three port states (i.e., Forwarding, Learning, Discarding).
It doesn’t have any link type. It has Two link types i.e., Shared link and Point to point link.
STP provides slower network convergence in response. RSTP provides significantly faster network convergence.
Flag bits used in STP are Bit 0 for TCN (Topology Change Notification) and Bit 7 for TCA (Topology Change Acknowledgement). Flag bits used in RSTP are Bit 0 for TCN, Bit 1 for Proposal, Bit 2 and 3 for Port role, Bit 4 for Learning, Bit 5 for forwarding, Bit 6 for Agreement, and Bit 7 for TCN.