|

[ACSA Education #26] RSTP Elements

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

Continuing from last time, I would like to learn about STP (Spanning Tree Protocol), and specifically RSTP (Rapid STP).
Let's look at the key factors that determine which ports the RSTP algorithm will use to forward traffic and which ports it won't.

  • Bridge Identifier
  • Bridge Protocol Data Unit
  • Rapid Spanning Tree Port States
  • Rapid Spanning Tree Port Cost
  • Rapid Spanning Tree Port Roles

Bridge Identifier

Spanning Tree assigns each switch a unique identifier called a Bride ID.

This identifier consists of 2 bytes indicating the priority and 6 bytes indicating the MAC address.
The default priority is 32,768, so basically all switches have the same priority. However, each switch has a unique MAC address, so Each Bridge ID (BID) is unique.It will be done.

[ACSA 교육#26] RSTP 요소 - image 23

The default priority value for AOS-CX switches is 32,768no see.

Bridge Protocol Data Unit

All switches participating in the Spanning Tree algorithm exchange control messages called Bridge Protocol Data Units (BPDUs).

In the original 802.1d standard, BPDUs were generated only by the root switch and had to be propagated to other switches. This required slow Max Age and Forward Delay timers.

In RSTP, every switch generates a BPDU with current information every 2 seconds (the default Hello-time period).
Therefore, if a port does not receive a BPDU for three Hello-Timer cycles, the switch immediately recognizes that the connection with the neighboring device has been lost, expires the protocol information, and transitions to a new topology.

Since each switch initiates BPDUs, this becomes a true keep-alive mechanism. This ensures that fault detection takes no more than six seconds.

Port States

When building a Spanning Tree or applying a new topology after a failure, the switch must decide which ports should forward data and which ports should be disabled to prevent Layer 2 loops.

Spanning Tree uses port states to transition from a blocking port to a forwarding port. The table below summarizes the port states and their specific actions.

[ACSA 교육#26] RSTP 요소 - image 17

This table compares the Port States used in 802.1d and 802.1w.
The 802.1d standard takes 30 seconds to transition from Blocking to Forwarding: 15 seconds in the Listening state and 15 seconds in the Learning state.

One reason RSTP is more efficient than 802.1d is that ports transition from Discarding to Learning to Forwarding states more quickly.

※ reference: Blocking and Listening states are also deprecated in MSTP.

※ reference: In RSTP, the Learning state is temporary and is only used when a topology change occurs and the protocol needs to be re-implemented. Typical states are Discarding and Forwarding.

Path Cost

RSTP can have multiple paths from the root switch to the remaining switches (non-root switches). The cost varies depending on the link speed, and the optimal path is selected based on this cost.

The following table shows the default Cost values per port for AOS-CX.

[ACSA 교육#26] RSTP 요소 - image 18

Considering the example in the following figure, intuitively, the best path for Access-1 might be considered the Direct Path. However, this is a 1Gbps link with a cost of 20,000.

[ACSA 교육#26] RSTP 요소 - image 19

The Indirect Path that connects Access-1 via Core-2 has two 10Gbps links, each with a Cost of 2,000.
That is, 2,000 + 2,000 = 4,000이 20,000Since there are far fewer of them, the Indirect Path is the best route.

Port Role – Designated and Root

Switches using 802.1w RSTP do not have a view of the overall topology. Therefore, each switch exchanges BPDUs indicating its proximity to the root switch to establish and maintain a loop-free topology.

Here, BPDUs help the switch calculate the correct port role for each port.

All ports on the root switch are designated ports. The root switch acts as the "boss" of the domain and does not block any ports. Only non-designated ports need to be addressed.

The figure below is an example topology for the role of each port.

[ACSA 교육#26] RSTP 요소 - image 22

The roles of each port are summarized with pictures as follows.

  • Designated Port (DP)
    • Port closest to the root switch
    • All ports on the root switch
    • Port State: Forwarding
  • Root Port (RP)
    • A port on a switch that is closer to the root switch
    • Port located on the best path to the root switch
    • Port State: Forwarding
  • Alternative Port (ALT)
    • A port that is not the port closest to the root switch (RP) on the link
    • This link does not provide the best path to Root on the switch.
    • Ports are not connected to the same switch – there is no loop on its own.
    • If there is a problem with the Active link, change to Root Port (RP).
    • Port State: Discarding
  • Backup Port
    • A port that is not the port closest to the root switch (RP) on the link
    • This link does not provide the best path to Root on the switch.
    • Ports are connected to the same switch – a loop exists due to a switch or Layer 1 Hub
    • If there is a problem with the existing Designated Port, the Backup Port is changed to the Designated Port (DP).

When a Layer 1 Hub is placed in a topology, loops may occur.

※reference: Care must be taken not to place Layer 1 Hubs in an RSTP topology.

Similar Posts

  • [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…

  • 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 #32] Layer 3 Fundamentals

    ⏱️ Estimated reading time: Approx. 7 minutes (7 min read) Having conducted about 30 training posts related to ACSA, I have covered content centered on Layer 2. Now, I would like to move up a step from Layer 2 and discuss Layer 3 content. We will examine Layer 3 topics such as IP packets, routing, and gateways. So, let's start by...

  • [ACP-DC Training#8] 2-Tier Design for Small Data Centers

    ⏱️ Estimated read time: Approx. 13 minutes (13 min read) Layer 2 two-tier designs are simple to deploy, operate, and troubleshoot because they use existing traditional protocols. They can be handled without specialized knowledge of overlay protocols or complex designs. This architecture is suitable for small to medium-sized data centers, but in larger environments, at the data center POD level…

  • AOS-CX Security Settings Guide (1)

    ⏱️ Estimated reading time: Approx. 11 minutes (11 min read) Awareness of network security is growing. Traditional network security mostly involved configuring IP address-based firewalls. However, as many applications and systems are now connecting to networks, the security of network switches is also becoming increasingly important. As networks become more complex and interconnected…

  • AOS-CX CLI Commands (3)

    ⏱️ Estimated reading time: Approx. 6 minutes (6 min read) In the last two posts, we explored the basic settings of the AOS-CX switch product family and how to check entered commands. This time, we will look at the commands necessary for switch maintenance. As I have already provided the maintenance commands while writing ACSA training content…