|

[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

  • Configuring RoCE in AOS-CX (2) – Hands-on

    ⏱️ Estimated read time: Approx. 11 minutes (11 min read) In the previous post, we looked at what RoCE is and why it is necessary. Now, let's explore how to implement RoCE on AOS-CX switches. To configure RoCEv2 on HPE Aruba Networking CX switches, the following items are required. As of March 2025, the supported switches are CX…

  • [ACSA Education #31] Static & Dynamic LAG

    ⏱️ Estimated reading time: Approx. 6 minutes (6 min read) In the previous post, we briefly looked at LAG (Link Aggregation Group). LAG has two operating modes: Static LAG and Dynamic LAG. Let's take a look at them in turn. Static LAG In Static Link Aggregation mode, there is some kind of control between devices…

  • IPv6-ready switches: HPE Aruba Networking switches

    ⏱️ Estimated reading time: Approx. 3 minutes (3 min read) Veteran network administrators likely remember the simple network days of the past, when there were few devices required for internet access and connections were static. As the number of network devices increased, to tag them with unique identifiers (i.e., addresses) and to enable management, routing, and security, the Internet…

  • AOS-CX CLI Commands (1)

    ⏱️ Estimated read time: Approx. 5 minutes (5 min read) HPE Aruba Networking's wired mainstream is the AOS-CX switch. It is a product that goes beyond traditional switching capabilities and aims for cloud-native through a microservices architecture. Not only can it monitor and analyze various metrics and logs in real-time through its own internal database, but regarding all switch functions…

  • [ACP-DC Training#7] Deploying Data Center Switches

    ⏱️ Estimated read time: Approx. 16 minutes (16 min read) Deploying data center switches may look similar to installing campus switches, but there are unique aspects specific to data centers. In particular, data center switches often undergo a 'staging' process to prepare their configurations before being brought into the field. Today, we will look at what switch staging is, and two…

  • [APSC Training #5] Aruba Central Subscription Management

    ⏱️ Estimated reading time: Approx. 3 minutes (3 min read) In the previous post, we looked at adding Aruba devices to the cloud. Now, to actually operate them, we need to map subscription licenses to the devices. Let's take a look at subscription assignment and key management. HPE GreenLake Device Assignment HPE GreenLake is HPE's common…