The Complete Solutions Guide to a Redundant Switched Topology – Pt. 2
by PivIT Global on Jul 19, 2022 7:12:00 AM
We've all experienced the frustrations of a popular application, such as Slack, Microsoft Teams, or other SaaS products going down due to network issues. Many of these applications and services have stringent network requirements, so their networks must support uninterrupted communications at all costs.
Implementing redundancy in a network is essential to providing active paths between communicating devices during device/link failures.
In Part Two of this article, we will explore:
- additional advanced types of standard STPs,
- the Cisco proprietary STP enhancements for switches,
- and the benefits of the STP enhancements.
If you're looking to purchase new switches, view some of our comparison guides:
- Comparing the Cisco 3560, 3850, and 9300 Switches
- Deep Dive Comparison: Cisco's Catalyst 6500 & 6800 Switches
- Head-To-Head With the Cisco Catalyst 4500 vs. 9400 Chassis Switches
Types of Spanning Tree Protocols
The STP is a Layer 2 protocol that ensures a loop-free and reliable redundant topology and is enabled by default on all Cisco switches. Since its development in the 1980s, the STP has received many improvements to satisfy modern network requirements.
Some improvements were required to speed up slow convergence or simplify the operational approach for switches with limited hardware resources. Also, some upgrades addressed network segmentation due to common multi-VLAN implementations.
Several different types of STPs exist today:
- Spanning Tree Protocol (STP)
- Per VLAN Spanning Tree Protocol (PVST+)
- Rapid Spanning Tree Protocol (RSTP)
- Rapid Per VLAN Spanning Tree Protocol (Rapid PVST+)
- Multiple Spanning Tree Protocol (MSTP)
Let's look at each STP variant and get a better picture of its functionalities, benefits, and limitations.
Spanning Tree Protocol (STP)
STP is the legacy standard protocol that provides a loop-free topology in a network with redundant links. STP works by creating a single Common Spanning Tree (CST) instance for the entire bridged network, regardless of the number of VLANs configured on the switches.
As a result of using just a single process or instance, there is only one root bridge in the calculations, and the same spanning tree applies to all VLANs. Therefore, traffic for all VLANs travels over the same path, which does not always provide the most optimal traffic flow.
However, on the flip side, fewer CPU and memory resources are required because of the single instance used. Because this is the oldest protocol, it is also the slowest one, with a convergence time between 30 to 50 seconds, which is considered unacceptable today.
As you can see from the image above, PC 1 (VLAN 3) uses a suboptimal path through SW1 (root bridge) to reach the server instead of going directly through SW3.
Hardware Options For You
We make it easy for you to find the switches that will ensure you fix looping issues. Click below for hardware options or reach out to us and share the project you are currently working on.
Per VLAN Spanning Tree Protocol (PVST+)
PVST+ is a Cisco enhancement of the legacy STP that improves the limitations of suboptimal traffic flows. It provides a separate spanning-tree instance for each VLAN configured on the switches. As a result, it allows per-VLAN root bridges, leading to different calculations being performed for each instance so that the most optimal paths are used.
As you can see from the image above, PC 1 now uses the most optimal path through SW3 (root bridge for VLAN 3) to reach the server instead of going through SW1 (root bridge for VLAN 2) like in the previous example.
Although the use of PVST+ provides the ability to load balance traffic per VLAN, using an instance for each VLAN increases the CPU and memory requirements. Therefore, you should be very cautious with this STP type.
Multiple Spanning Tree Protocol (MSTP)
To overcome the limitations of the PVST+, Cisco developed Multi-Instance STP, which later became a standard STP protocol called Multiple Spanning Tree Protocol. The main goal of this protocol is to reduce the number of STP instances that can lead to full resource consumption when many VLANs are configured on the switches.
MSTP enables you to map many VLANs into the same spanning-tree instance for which only a single root bridge is required. As you can see from the image above, SW1 operates as a root bridge for the first instance containing VLANs 2, 3, 4, and 5, while SW3 operates as a root bridge for the second instance with VLANs 10, 11, and 12. As a result, instead of having seven instances running simultaneously, this implementation of MSTP uses only two.
When implementing MSTP on Cisco switches, you can create up to 16 instances containing as many VLANs as you need. Because of this approach, the CPU and memory requirements of MSTP are lower than the requirements of PVST+. Usually, MSTP is used in extremely large networks, such as campuses or service providers, where the number of VLANs is counted in the hundreds or even thousands.
Rapid Spanning Tree Protocol (RSTP)
To fulfill the requirements for faster convergence in a network, the Rapid Spanning Tree Protocol was developed. However, RSTP uses only a single instance regardless of the number of VLANs configured on the switches, which leads to suboptimal traffic flow issues.
On the other hand, RSTP provides a much faster convergence time than STP and PVST+, so instead of waiting for 30 to 50 seconds for a disabled port to activate, it needs less than a second.
Do you have older switches that are coming up on their end-of-sale date? Roll those right onto our OneCall maintenance strategy, where you get dedicated spares so you can protect your critical infrastructure.
Rapid Per VLAN Spanning Tree Protocol (Rapid PVST+)
To overcome the instance limitations of RSTP, Cisco developed the Rapid PVST+ protocol. It combines the convergence functionality of RSTP and the multi-instance approach of PVST+.
This provides optimal traffic flow by using a different spanning-tree instance for each VLAN configured on the switches while converging fast when a port fails. Because of these functionalities, Rapid PVST+ has the largest CPU and memory requirements among all STP variants.
Each one of the STP variants has advantages and disadvantages, but all provide a loop-free redundant topology. Arguably, the most popular STP variant in networks today is RSTP or Rapid PVST+ because of the fast convergence and support for using the most optimal traffic paths.
EXTEND SmartHands Offering
Short on team resources to configure your gear? We know teams can sometimes be stretched thin and don't always have the resources or headcount to configure your gear at the speed you'd like.
PivIT's EXTEND offering can step in to augment your team and remote in to configure your gear with expert-level engineers (SmartHands | EXTEND). If you need someone on-site, we have field services ready at a moment's notice.
No Comments Yet
Let us know what you think