|

[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

  • [ACSA Training #2] OSI 7 Layers

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) As computers rapidly advanced in the mid-1980s, all manufacturers attempted to implement their own proprietary communication protocols. As a result, compatibility issues arose between products from different manufacturers, leading to unreliable communication. Therefore, the International Organization for Standardization (ISO) [established] standard communication for computing devices…

  • AOS-CX CLI Commands (2)

    ⏱️ Estimated reading time: Approx. 10 minutes (10 min read) Continuing from the previous post, I would like to cover some more in-depth content this time. We will look at the commands needed to configure the functions required for actual network operations in the field. VLAN Configuration The method for creating and configuring VLANs and VLAN interfaces in AOS-CX is as follows. While it is possible to configure a single VLAN,…

  • [ACSA Education #34] VRRP

    ⏱️ Estimated reading time: Approx. 10 minutes (10 min read) In the previous post, we looked at the Default Gateway. An endpoint can have only one Default Gateway. And it can be a single point of failure. Looking at the figure below, if Core-1 fails, PC-1 and others using Core-1 as the Default Gateway…

  • [ACSA Education #26] RSTP Elements

    ⏱️ Estimated read time: Approx. 6 minutes (6 min read) Continuing from last time, we would like to explore STP (Spanning Tree Protocol), specifically RSTP (Rapid STP). We will examine the key factors that the RSTP algorithm uses to determine which ports to use for traffic delivery and which not. Bridge Identifier Bridge Protocol Data Unit Rapid Spanning Tree…

  • Announcing the ArubaCX 10000 Series

    ⏱️ Estimated read time: Approx. 4 minutes (4 min read) Aruba has announced the ArubaOS-CX 10000 Series Switch, the industry's first distributed service switch family. Distributed service switches help enterprises today deploy Software-defined Stateful services where data is generated and processed. This enables legacy appliances or host-based software…

  • [ACP-DC Training #13] Spine-Leaf Architecture

    ⏱️ Estimated read time: Approx. 8 minutes (8 min read) The Spine-Leaf architecture consists of Spine switches acting as the core, Leaf switches serving as the access layer, and numerous endpoints responsible for the data center's computing and storage resources. This structure is highly scalable and efficient, and is optimized for low-latency communication, making it suitable for modern data centers requiring high-performance networks…