Types of Spanning Tree Protocol (STP) (original) (raw)

Last Updated : 9 Dec, 2025

In Ethernet networks, switches use frames to forward data between devices. However, if there are multiple active paths between switches (such as when switches are interconnected), a loop can occur, causing frames to circulate indefinitely. This loop results in broadcast storms, high CPU utilization, and network congestion, severely affecting performance. **Spanning Tree Protocol (STP) is a network protocol used to prevent loops in such Ethernet networks.

It uses a tree-like structure where switches elect one root switch and then calculate the shortest path to this root. The network topology is adjusted to create a loop-free path structure while the redundant paths are put in a standby state.

**Types of Spanning Tree Protocol (STP)

Several variations of STP are used to address different network requirements, each with specific enhancements and optimizations over the original standard. The most common types of STP include:

**Protocol **IEEE Standard **Key Difference **Used In / Vendor
**Spanning Tree Protocol (STP) IEEE 802.1D Single spanning tree for entire network; slow convergence. STP
**Rapid Spanning Tree Protocol (RSTP) IEEE 802.1w Faster convergence than STP; still one spanning tree. RSTP
**Multiple Spanning Tree Protocol (MSTP) IEEE 802.1s Supports multiple spanning trees by grouping VLANs; load balancing. MSTP
**Per VLAN Spanning Tree Plus (PVST+) Cisco (based on 802.1D) Maintains separate STP instance per VLAN; better path optimization but slower convergence. PVST+
**Rapid Per VLAN Spanning Tree Plus (RPVST+) Cisco (based on 802.1w) Rapid convergence with separate RSTP instances per VLAN. RPVST+

**IEEE 802.1D

This is also known as CST (Common Spanning Tree). It is a spanning tree standard developed by IEEE which elects only one root bridge per whole topology. All the traffic flows over the same path (the best path to the root bridge) but this doesn't hold good always as there can be scenarios in which the optimised path to reach a VLAN is different than the path obtained on electing the root bridge. CST prevents loops by blocking redundant paths and allowing only one active path between any two switches. However, it is slow to react to changes, taking up to 32 seconds to converge.

**Advantages:

**Disadvantages:

**Rapid Spanning Tree Protocol (RSTP)

It is a spanning standard developed on IEEE 802.1w which provides faster convergence than CST but holds the same idea of finding a single root bridge in the topology. RSTP prevents loops by quickly detecting link failures and using rapid state transitions on ports to block redundant paths, allowing only loop-free active paths. The bridge resources needed in RSTP is higher than CST but less than PVST+ .

**Advantages:

**Disadvantages:

**Multiple STP (MSTP)

This standard is developed by IEEE in which grouping of VLANs is done and for each single group, RSTP is run. This is basically a Spanning Tree Protocol running over another Spanning Tree Protocol. It prevents loops by creating multiple spanning tree instances that block redundant paths within each VLAN group, ensuring loop-free and efficient forwarding across the network.

**Advantages:

**Disadvantages:

**Per VLAN Spanning Tree + (PVST+)

It is a spanning tree standard developed by Cisco for its devices which finds the root bridge per VLAN. It is a Cisco default version of STP. It finds separate 802.1d spanning tree instance for each VLAN. It also provides backward compatibility with 802.1d or CST. It prevents loops by blocking redundant paths within each VLAN’s spanning tree instance, allowing only one active path per VLAN. This approach optimizes path selection for each VLAN but converges as slowly as CST.

**Advantages:

**Disadvantages:

**Rapid Per VLAN Spanning Tree + (RPVST+)

This Spanning Tree standard is developed by Cisco which provides faster convergence than PVST+ and finds separate instance of 802.1w per VLAN. It prevents loops by quickly blocking redundant paths within each VLAN’s spanning tree instance, allowing only one active loop-free path per VLAN. However, it requires more CPU and memory resources than other STP standards.

**Advantages:

  1. RPVST+ provides quicker recovery from network changes compared to older protocols like PVST+, reducing downtime.
  2. It runs a separate spanning tree instance for each VLAN, allowing more efficient and flexible load balancing across the network.

**Disadvantages:

  1. It requires more CPU power and memory because it maintains a separate spanning tree for each VLAN.
  2. Managing multiple spanning trees for many VLANs can be complex and harder to troubleshoot.
  3. Limited compatibility with non-Cisco devices, which may cause interoperability issues in mixed vendor networks.