|

[ACSA Training #25] Spanning Tree Protocol

⏱️ Estimated reading time: Approx. 4 minutes (4 min read)

Last time Talking about network redundancyWe also discussed the potential loops that can arise from this. As an alternative, we briefly mentioned Spanning Tree Protocol (STP).

So today, let's take a closer look at the Spanning Tree Protocol.

Spanning Tree Protocol (STP) Overview

STP The standard version of (Spanning Tree Protocol) IEEE 802.1dwas developed to build and maintain a loop-free network while providing a redundant environment. STP eliminates single-path failures while avoiding loops and MAC table instability. STP automatically disables the backup link for redundancy, creating a loop-free topology.

[ACSA 교육#25] Spanning Tree Protocol - image 11
Loop-free Layer 2 topology

The figure above is an example of an advanced redundant network configuration for resiliency and fault tolerance.

This redundant configuration can lead to loops and related issues. However, with STP, redundant links are automatically disabled. This eliminates potential loop sources in advance, allowing the network to operate without issues like broadcast storms or MAC address table instability.
However, these disabled links will still be used to provide redundancy as needed.

To eliminate these loops and achieve the goal of redundancy, one switch in the STP domain is selected as the Root Switch or Root Bridge. Just as a tree branches out from the ground to its roots, with a single trunk and numerous branches, the Root Switch is designated as the Spanning Switch. TreeIt becomes the root that grows into a tree called .
The remaining switches are called Non-root Bridges or Non-root Switches, and are also sometimes called Designated Switches.

In a loop-free path, it extends from the root to the rest (Non-Root).

※ reference: Today's switches are upgraded versions of the devices previously called "bridges," offering faster speeds and multiple ports. Therefore, the term "bridge" often appears in discussions of STP, and in some contexts, it's perfectly acceptable to use the terms "switch" and "bridge" interchangeably.

STP algorithm

[ACSA 교육#25] Spanning Tree Protocol - image 15

The STP algorithm runs on all switches, and redundant links are activated to prevent loops. However, if a failure occurs, STP converges on the newly activated link's topology and uses it to forward frames. This process maintains a loop-free topology.

※ On the network ConvergeThe term "converge" is interpreted as "all network devices have agreed on a new topological environment," contrary to its original meaning of "converge.".

Comparison of STP technologies

[ACSA 교육#25] Spanning Tree Protocol - image 16
STP (Spanning Tree Protocol)

Original standard(IEEE 802.1d) detects failures based on a timer. By default, the root switch generates a “Hello” packet every two seconds. This “Hello” packet is forwarded to all other switches.

If a switch far from the root switch stops receiving "Hello" packets for 20 seconds (the default Max Age Timer), the connection is considered lost, and all switches transition to a new topology environment. The duration of this process is determined by the Forward Delay Timer, which defaults to 15 seconds.

This method is considered very old and outdated and is no longer used in modern network environments.

RSTP (Rapid Spanning Tree Protocol)

RSTP was developed in 1998 to speed up convergence.

Instead of only the root switch generating "Hello" packets, all switches can now do so. This means RSTP now has a mechanism to maintain persistent connections while responding within seconds (or less).

RSTP no longer requires the old and slow Max Age and Forward Delay Timers.

RSTP is backwards compatible with the original standard 802.1d.
However, some of the benefits of RSTP are lost in order to maintain this functionality.

MSTP (Multiple Spanning Tree Protocol)

802.1s or MSTP improves overall protocol performance by implementing multiple loop-free topologies or instances to distribute traffic load across all links. This helps create optimal paths.


AOS-CX switches operate under MSTP by default. However, without any special configuration, they operate like RSTP. The reasons for this behavior will be discussed in detail in the next post.

Similar Posts

  • [acp-dc training#10] vsx (2)

    ⏱️ Estimated reading time: Approx. 8 minutes (8 min read) In the previous post, we explored VSX, the virtualization technology of HPE Aruba Networking AOS-CX switches. We explained the components of VSX, the differences from VSF, and its advantages. Today, we would like to cover the practical aspects. We will examine how to actually utilize VSX to perform live software upgrades and look at technologies such as Split Brain… .

  • [ACP-DC Training #1] Introduction to Data Center Networks

    ⏱️ Estimated read time: Approx. 14 minutes (14 min read) The HPE Aruba Networking Certified Professional – Data Center (ACP-DC) certification tests the knowledge and skills required to design, deploy, and manage secure, scalable, resilient, high-performance data center network infrastructure based on HPE Aruba Networking data center products. Virtualized…

  • [ACSA Training #36] Routing Protocols

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) Before learning about routing protocols, we need to understand an AS (Autonomous System). An Autonomous System can be described as a collection of routers under a management domain. In other words, an ISP (Internet Service Provider) owns its own internal network. And the ISP extends to the routers within that network…

  • [ACSA Education #39] Stacking

    ⏱️ Estimated read time: Approx. 15 minutes (15 min read) Stacking technology is necessary to design, implement, and configure more resilient and stable high-performance networks. In this post, we will explore this stacking technology and examine Aruba switches' stacking technologies, VSF (Virtual Switching Framework) and VSX (Virtual Switching eXtension). Operation Plane – Data…

  • [APSC Training #3] Using Aruba Central

    ⏱️ Estimated reading time: Approx. 4 minutes (4 min read) Continuing from the previous post, this time we will explore the various ways to use Aruba Central. Basically, Aruba Central is a cloud-based SaaS solution, but it offers various options to meet customer environments and requirements. In addition, the licensing structure has been simplified to make customer selection easier. Desired…

  • [Monitoring with Icinga Part 1] Basic Integration with Icinga 2 – SNMP & REST API

    ⏱️ Estimated Reading Time: Approx. 6 minutes (6 min read) 1. Introduction: Infrastructure Monitoring, Why Icinga 2? When operating enterprise networks and infrastructure, Zabbix is by far the most familiar open-source monitoring tool to engineers in Korea. Thanks to its intuitive web GUI, various default templates, and an all-in-one environment consisting of a single package, numerous enterprise…