Study guide

5.2 Spanning Tree Protocols: STP, RSTP, and MSTP

HPE Aruba Networking Certified Associate - Campus Access HPE6-A85

Track your progress as you read

Finished sections get a check mark.

1 Introduction: HPE6-A85 Exam Overview

HPE6-A85 Exam Facts and Current Blueprint

2 Chapter 1: Network Stack Fundamentals

1.1 OSI Reference Model and Encapsulation 1.2 TCP/IP Protocol Suite and IP Headers 1.3 Layer 2 Operation, ARP, and 802.1Q Tagging

3 Chapter 2: Physical Connectivity and Host Addressing

2.1 Ethernet Media and Transceiver Standards 2.2 Power over Ethernet (PoE, PoE+, PoE++) Standards and Budgeting 2.3 LLDP, LLDP-MED, and Voice VLAN Configuration 2.4 Host IP Addressing and DHCP Relay Operations

4 Chapter 3: Network Resiliency and Virtualization

3.1 Virtual Switching Framework (VSF) Architecture and Topologies 3.2 VSF Split Detection, Failover, and Auto-Stacking 3.3 Virtual Switching Extension (VSX) Architecture and Operations 3.4 High-Availability Gateways: VRRP and VSX Active-Gateway

5 Chapter 4: AOS-CX Architecture and Switch Operation

4.1 AOS-CX Hardware Portfolio and State Database Architecture 4.2 Network Analytics Engine (NAE) and Automated Telemetry 4.3 AOS-CX Interface Configuration and Port Control 4.4 Link Aggregation (LAG) and LACP Configuration

6 Chapter 5: Layer 2 Protocols and Spanning Tree

5.1 AOS-CX VLAN Configuration and Native VLAN Handling 5.2 Spanning Tree Protocols: STP, RSTP, and MSTP 5.3 Spanning Tree Protections and Loop Prevention 5.4 MAC Address Table Learning, Aging, and Forwarding

7 Chapter 6: Wireless Fundamentals, Standards, and RF

6.1 IEEE 802.11 Standards and Wi-Fi Generations 6.2 RF Fundamentals, Signal Propagation, and Channel Design 6.3 Aruba Access Point Hardware Portfolio and Suffix Conventions 6.4 WLAN Topologies, BSSID/ESSID, and Roaming Standards

8 Chapter 7: Aruba Wireless Architecture and Management

7.1 AOS 10 Architecture and Aruba Central Integration 7.2 Wireless Forwarding Modes: Bridge vs Tunnel Mode 7.3 Automated RF and Client Optimization: AirMatch and ClientMatch 7.4 Secure Wireless Access: WPA3, SAE, and MPSK Implementation

9 Chapter 8: IP Routing Fundamentals and OSPF

8.1 IP Routing Principles and Packet Forwarding 8.2 OSPFv2 Protocol Mechanics and Adjacency Formation 8.3 OSPF Designated Routers and Multi-Area Deployments 8.4 ECMP, Static Routing, and VRF Isolation

10 Chapter 9: Campus Network Security and Segmentation

9.1 DHCP Snooping and Dynamic ARP Inspection 9.2 Port Security and MAC Address Limiting 9.3 ClearPass Policy Management and RADIUS Change of Authorization 9.4 Dynamic Segmentation, User-Based Tunneling, and Policy Enforcement

11 Chapter 10: Authentication, Authorization, and Accounting

10.1 The AAA Framework and Architecture 10.2 802.1X Authentication and EAP Methods 10.3 MAC Authentication and Captive Portal Onboarding 10.4 Administrative Access Control: RADIUS vs TACACS+

12 Chapter 11: Network Management and Telemetry

11.1 Aruba Central Cloud Architecture and Group Configuration 11.2 Zero-Touch Provisioning (ZTP) and Aruba Activate 11.3 AI Insights and Aruba User Experience Insight (UXI) 11.4 Network Telemetry, Streaming APIs, and SNMP/Syslog

13 Chapter 12: Troubleshooting the Solution

12.1 Structured Troubleshooting Methodologies and Scope Isolation 12.2 AOS-CX Layer 2 and Interface Diagnostic Commands 12.3 Layer 3, IP Services, and End-to-End Diagnostics 12.4 Physical-Layer Troubleshooting 12.5 Troubleshooting Wireless Clients and Network Access

14 Chapter 13: Optimizing Performance: QoS, Baselines, and Comparisons

13.1 Quality of Service (QoS) Classification and Marking 13.2 Queuing Algorithms and Congestion Management 13.3 Traffic Policing, Shaping, and Broadcast Rate Limiting 13.4 Establishing a Performance Baseline 13.5 Comparing Results to the Baseline

15 Chapter 14: Plan the Solution

14.1 Analyzing the Current Environment 14.2 Interpreting an Architect's High-Level Design 14.3 Creating a Low-Level Design 14.4 Preparing for Implementation

16 Chapter 15: Validate and Operate the Solution

15.1 Validating the Solution 15.2 Performing Firmware Updates 15.3 Making Basic Ongoing Configuration Changes 15.4 Maintaining Network Documentation

5.2 Spanning Tree Protocols: STP, RSTP, and MSTP

Key Takeaways Explain This Topic AI

Layer 2 loops cause broadcast storms, MAC address table thrashing, and duplicate frame delivery because Ethernet frame headers lack a Time-to-Live (TTL) field.

Legacy IEEE 802.1D STP relies on rigid timers resulting in 30-50 second convergence, whereas IEEE 802.1w Rapid STP (RSTP) achieves sub-second failover using an active Proposal/Agreement handshake.

Aruba AOS-CX switches run IEEE 802.1s Multiple Spanning Tree Protocol (MSTP) by default, mapping multiple VLANs to logical instances to conserve switch CPU and hardware resources.

The Root Bridge has the lowest Bridge ID (priority plus System ID Extension, then MAC); AOS-CX sets priority as a multiplier from 0 to 15 (default 8 = 32768), so spanning-tree priority 0 makes a switch the preferred root.

RSTP and MSTP define three operational port states (Discarding, Learning, Forwarding) and four port roles (Root, Designated, Alternate, Backup).

Last updated: October 2026

Spanning Tree Protocols: STP, RSTP, and MSTP

Quick Summary: In modern enterprise campus topologies, redundant physical cabling between access, aggregation, and core switches is essential to eliminate single points of failure. However, redundant Layer 2 links inevitably form physical bridging loops. Because Ethernet frame headers lack a Time-to-Live (TTL) mechanism, unmanaged Layer 2 loops trigger catastrophic broadcast storms, MAC address table thrashing, and duplicate packet delivery within milliseconds. Spanning Tree protocols mathematically calculate a loop-free, active logical tree topology by dynamically blocking redundant backup links. While legacy IEEE 802.1D STP converges slowly (30–50 seconds), IEEE 802.1w Rapid STP (RSTP) delivers sub-second convergence, and IEEE 802.1s Multiple STP (MSTP)—the default on Aruba AOS-CX—groups VLANs into instances to achieve scalable load balancing across uplinks.

The Hazards of Layer 2 Redundancy

At Layer 3 (the Network layer), both IPv4 and IPv6 packets feature loop-mitigation headers: the IPv4 Time-to-Live (TTL) field and the IPv6 Hop Limit field. Each router decrements this value by 1; if the counter reaches 0, the router discards the packet. In sharp contrast, standard Layer 2 Ethernet frames contain no TTL or hop counter . Once an Ethernet frame enters a physical loop, it circulates indefinitely until physical links are unplugged or switch hardware crashes.

An uncontrolled Layer 2 loop produces three devastating network failures:

Broadcast Storms: Broadcast frames (e.g., ARP requests, DHCP Discover) are flooded out every active port in a VLAN. In a physical loop (such as three switches connected in a triangle), each switch receives the broadcast frame, duplicates it, and floods it to neighboring switches. Within seconds, millions of circulating broadcast frames consume 100% of link bandwidth, saturating switch backplanes and exhausting control plane CPUs.

MAC Address Table Thrashing (Flapping): Layer 2 switches learn endpoint locations by examining the Source MAC address of incoming frames. When a broadcast or flooded unicast frame circulates rapidly around a loop, the switch receives identical source MAC addresses alternately across different physical interfaces (e.g., port 1/1/1, then port 1/1/2, then port 1/1/1 again). The switch continuously overwrites its MAC address table (CAM table), rendering unicast forwarding completely dysfunctional.

Multiple Frame Transmission: End-user devices receive identical, duplicate copies of unicast frames, corrupting upper-layer application dialogues and crashing client operating systems.

Evolution of Spanning Tree Standards: 802.1D, 802.1w, and 802.1s

To prevent loops while maintaining redundant physical cabling, the IEEE developed a progression of open-standard protocols:

Standard Protocol Name Convergence Speed VLAN Architecture Operational Characteristics

IEEE 802.1D Legacy STP Very Slow (30 to 50 seconds) Single Common Spanning Tree (CST) Uses timer-based state transitions (Listening and Learning). All VLANs share one logical tree. Obsolete in modern campus networks.

IEEE 802.1w Rapid STP (RSTP) Very Fast (Sub-second, ~tens of ms) Single Spanning Tree (or Per-VLAN via Cisco RPVST+) Uses active Proposal/Agreement synchronization instead of timers. Merges blocking/listening states into Discarding.

IEEE 802.1s Multiple STP (MSTP) Very Fast (Sub-second) Multiple Spanning Tree Instances (MSTIs) Maps multiple VLANs to a manageable number of STP instances (e.g., Instance 1 for odd VLANs, Instance 2 for even VLANs). Default mode on Aruba AOS-CX.

RPVST+ Rapid PVST+ Very Fast (Sub-second) One RSTP instance per VLAN Proprietary Cisco standard supported on AOS-CX for multi-vendor interoperability. High CPU/memory consumption in networks with hundreds of VLANs.

Root Bridge Election Mechanics and Bridge ID Structure

Every Spanning Tree topology converges around a single central reference point known as the Root Bridge . The election of the Root Bridge is fully deterministic, governed by the Bridge Identifier (BID) .

Under modern IEEE standards (including 802.1w and 802.1s), the 8-byte (64-bit) Bridge Identifier consists of three components: +-----------------------------------------------------------------------------------+

  • | BRIDGE IDENTIFIER (BID) |
  • | |
  • | |<----------------- 2 Bytes (16 bits) ------------------>|<-- 6 Bytes (48b) -->| |
  • | +---------------------------+----------------------------+---------------------+ |
  • | | Bridge Priority (4 bits) | System ID Extension (12b) | Base MAC Address | |
  • | | Multiples of 4096 | VLAN ID or MSTP Instance ID| Switch Chassis MAC | |
  • | +---------------------------+----------------------------+---------------------+ |
  • +-----------------------------------------------------------------------------------+

Bridge Priority (4 bits): Configured by the network administrator. Because only the 4 most significant bits are used, priority values can only be set in multiples of 4096 (0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768 [factory default] , 36864, 40960, 45056, 49152, 53248, 57344, 61440).

System ID Extension (12 bits): Encodes the specific VLAN ID (in PVST+) or MSTP Instance ID (in MSTP). This allows a single switch chassis with one base MAC address to generate unique BIDs for multiple spanning tree instances.

Base MAC Address (48 bits / 6 bytes): The unique hardware MAC address burned into the switch backplane or chassis management module.

The Election Hierarchy

All switches periodically transmit Bridge Protocol Data Units (BPDUs) advertising their BID:

Lowest Priority Wins: The switch advertising the lowest numerical Bridge Priority is elected Root Bridge (e.g., a priority of 0 or 4096 defeats the factory default of 32768 ).

MAC Address Tiebreaker: If two or more switches share the exact same lowest configured priority, the switch with the lowest numerical base MAC address wins the election.

Enterprise Design Principle: Never leave Spanning Tree priority at the factory default of 32768. An unconfigured access switch with an older, numerically lower MAC address could inadvertently win the election, pulling all campus transit traffic through a low-speed access switch. Core/aggregation switches should be explicitly configured as the primary root (priority 0) and secondary root (priority 4096).

AOS-CX syntax: the command takes a multiplier of 4096 , from 0 to 15 (default 8). spanning-tree priority 0 gives priority 0, and spanning-tree priority 1 gives 4096.

Spanning Tree Port Roles and Operational States

Once the Root Bridge is elected, Spanning Tree calculates the shortest loop-free path from every non-root switch back to the Root Bridge based on Root Path Cost (calculated from link speeds: 10 Gbps = cost 2,000; 1 Gbps = cost 20,000; 100 Mbps = cost 200,000 under the 802.1t path cost standard).

Port Roles in RSTP / MSTP

Every switch interface in the spanning tree topology is assigned one of four distinct roles:

Root Port (RP): The single port on a non-root switch that has the lowest administrative Path Cost to the Root Bridge. Each non-root switch has exactly one Root Port. Root Ports actively forward user data.

Designated Port (DP): The port on a physical network segment (link) that advertises the lowest Path Cost back to the Root Bridge. Every link has exactly one Designated Port. All active ports on the Root Bridge are Designated Ports. Designated Ports actively forward user data.

Alternate Port (AP): An interface that provides an alternate, redundant path to the Root Bridge, discarding data traffic. An Alternate Port receives superior BPDUs from a neighboring switch. If the local Root Port fails, the Alternate Port immediately transitions to the Root Port role.

Backup Port (BP): An interface that provides a redundant path to the same shared segment, receiving superior BPDUs from the same switch. Rare in switched full-duplex topologies.

Port States Comparison

While legacy 802.1D used five states (Disabled, Blocking, Listening, Learning, Forwarding), RSTP and MSTP streamline operation into three states :

Operational Function 802.1D State 802.1w / 802.1s State Learns MAC Addresses? Forwards User Data Frames?

  • Interface disabled or link down Disabled Discarding No No
  • Redundant port blocking traffic Blocking Discarding No No
  • Transitioning, negotiating topology Listening Discarding No No
  • Populating MAC table, preparing to forward Learning Learning Yes No
  • Active operational forwarding Forwarding Forwarding Yes Yes
  • The RSTP Proposal/Agreement Handshake

In legacy 802.1D, moving a port from Blocking to Forwarding required waiting through the Listening timer (15 seconds) and Learning timer (15 seconds), taking 30 to 50 seconds to converge. RSTP eliminates these timers on point-to-point full-duplex links through the Proposal/Agreement handshake :

A switch port coming up sends a BPDU with the Proposal flag set.

The downstream switch performs a Sync operation, temporarily setting all non-edge designated ports to Discarding to prevent temporary loops.

The downstream switch immediately returns a BPDU with the Agreement flag set.

The upstream port transitions directly from Discarding to Forwarding within milliseconds .

Ports connected to end-user workstations do not participate in handshakes; administrators designate them as Edge Ports ( spanning-tree port-type admin-edge ), allowing them to transition directly to Forwarding with zero delay.

MSTP Architecture: Regions, Instances, and CIST

While running a separate spanning tree instance for every individual VLAN (Per-VLAN Spanning Tree) provides traffic engineering, it severely degrades switch performance in campus environments with hundreds of VLANs because the switch CPU must generate and process hundreds of distinct BPDU streams every two seconds.

Multiple Spanning Tree Protocol (MSTP - IEEE 802.1s) solves this by decoupling VLANs from spanning tree instances. Administrators group hundreds of VLANs into a small number of logical Multiple Spanning Tree Instances (MSTIs) —typically two to four instances.

MSTP Region Requirements

An MSTP Region is an interconnected collection of switches that view and execute the same instance mappings. For two or more switches to reside in the same MSTP Region , three attributes must match identically :

Configuration Name ( config-name ): An alphanumeric string (up to 32 characters) identifying the region.

Configuration Revision Number ( config-revision ): A 16-bit integer (0 to 65535) used to track administrative revisions.

VLAN-to-Instance Mapping Table: The exact assignment of VLAN IDs to MST instances.

If any of these three parameters differ between two neighboring switches, they treat each other as residing in different MSTP regions. Communication between different regions, or between an MSTP region and a legacy 802.1D/802.1w network, is managed seamlessly by the Common and Internal Spanning Tree (CIST) and the Internal Spanning Tree (IST / Instance 0) .

Uplink Load Balancing with Multiple Instances

By configuring two MST instances, network architects achieve active-active uplink load balancing:

Instance 1 (VLANs 10, 20): Aggregation Switch A is Root Bridge (Priority 0); Aggregation Switch B is Secondary (Priority 4096). Traffic for VLANs 10 and 20 flows primarily through Switch A.

Instance 2 (VLANs 30, 40): Aggregation Switch B is Root Bridge (Priority 0); Aggregation Switch A is Secondary (Priority 4096). Traffic for VLANs 30 and 40 flows primarily through Switch B.

AOS-CX Spanning Tree Configuration and Tuning

AOS-CX switches enable MSTP globally by default. The following commands configure an AOS-CX switch as the Primary Root Bridge for MST Instance 1 (priority multiplier 0 = 0) and Secondary Root for MST Instance 2 (multiplier 1 = 4096) within an enterprise region: switch# configure terminal

  • ! Step 1: Enable Spanning Tree globally and verify MSTP mode
  • switch(config)# spanning-tree
  • switch(config)# spanning-tree mode mstp
  • ! Step 2: Configure MSTP Region Parameters
  • switch(config)# spanning-tree config-name CAMPUS-CORE
  • switch(config)# spanning-tree config-revision 1
  • switch(config)# spanning-tree instance 1 vlan 10,20
  • switch(config)# spanning-tree instance 2 vlan 30,40
  • ! Step 3: Configure Root Bridge Priorities for Instances
  • switch(config)# spanning-tree priority 0
  • switch(config)# spanning-tree instance 1 priority 0
  • switch(config)# spanning-tree instance 2 priority 1
  • ! Step 4: Configure Access Edge Ports for Host Interfaces
  • switch(config)# interface 1/1/1-1/1/24
  • switch(config-if-<1/1/1-1/1/24>)# spanning-tree port-type admin-edge
  • switch(config-if-<1/1/1-1/1/24>)# exit
  • Essential Verification Commands

Command Output and Operational Purpose

show spanning-tree Shows global spanning tree status, mode (MSTP/RPVST), Root Bridge BID, local BID, and hello/forward-delay timers.

show spanning-tree mst-config Displays current MST region name, revision number, and the active VLAN-to-instance mapping table.

show spanning-tree mst 1 Displays the Root Bridge BID, path cost, Root Port, and port roles/states specifically for MST Instance 1.

show spanning-tree detail Provides granular, per-interface metrics including BPDU transmission counters, transition times, and link types.

Common Exam Traps

Priority Multiplier Syntax: STP priorities are multiples of 4096 (0-61440). AOS-CX expects the multiplier (0-15), so spanning-tree priority 1000 is rejected and spanning-tree priority 1 means 4096.

MSTP Region Mismatch: If two switches have identical configuration names and revision numbers but differ by even one VLAN in their instance mapping (e.g., Switch A maps VLAN 10-20 to Instance 1 while Switch B maps VLAN 10-21), they will not form a single MSTP region. Instead, they will communicate across the boundary via CIST/IST.

Default Mode Awareness: The factory default spanning tree mode on Aruba AOS-CX is MSTP , whereas older legacy systems or other vendors often default to PVST+ or RPVST+.

Alternate vs. Backup Role: An Alternate Port blocks traffic because it receives a superior BPDU from another switch (providing an alternate path to root). A Backup Port blocks traffic because it receives a superior BPDU from the same switch across a shared collision domain (hub).

Loading diagram... Spanning Tree Port Roles and MSTP Instance Load Balancing