|

[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

  • Installing EVE-NG on Hyper-V

    ⏱️ Estimated reading time: Approx. 6 minutes (6 min read) In the previous post, I introduced the AOS-CX simulator. The AOS-CX simulator can be run through emulators such as EVE-NG or GNS3. Today, I would like to look into the installation using EVE-NG. EVE-NG is a very powerful network virtualization emulator that simulates network equipment from various manufacturers as if it were actual equipment…

  • [ACP-DC Training #12] Virtual Routing and Forwarding (VRF)

    ⏱️ Estimated read time: Approx. 10 minutes (10 min read) Virtual Routing and Forwarding (VRF) is an L3 (Network Layer) isolation technology used to build a Virtual Private Network (VPN). VRF isolates routing tables from other VPNs within the system and allows the use of redundant IP addresses. In other words, VRF allows multiple routing tables within a single router…

  • [ACSA Education #16] Show Command

    ⏱️ Estimated reading time: Approx. 5 minutes (5 min read) In today's post, we will explore the general functions of networking equipment along with very basic commands that help you check networking devices. This information is the most important knowledge you can learn during the entry-level course, and in the future, excellent network engineers and administrators will [regard] network connections’…

  • Complex data center networks? ‘Wizards' solve it!

    Enterprise data centers have evolved into complex fabric structures, posing operational challenges for administrators. HPE Aruba Networking Fabric Composer simplifies this complexity and provides network automation and visual management capabilities, enhancing data center agility and operational efficiency.

  • Putting a container image on a switch

    ⏱️ Estimated read time: Approx. 7 minutes (7 min read) Starting with AOS-CX version 10.13, a new feature called the Feature Pack has been introduced. Advanced features can now be accessed through an additional software license subscription called the Feature Pack. There are two types of Feature Packs: Advanced and Premium. The Premium pack includes the NAT and IPSec functions of the CX 10000 switch…

  • Essential infrastructure for the AI era: CX 9300 Switches

    With the advancement of artificial intelligence and machine learning, 400GbE is becoming essential infrastructure for data center networks. The HPE Aruba Networking CX 9300 Switch meets the demands of AI workloads, and its integration with HPE systems maximizes efficiency and reduces operational complexity. This is the optimal solution for the future AI era.