Share this
A Guide to Optimize Network Performance by Configuring Rapid PVST+
by Darin Knobbe on Aug 27, 2020 1:45:00 PM
Cisco built the next-generation data center-class operating system (NX-OS) to be designed for maximum scalability and application availability. The NX-OS data center-class operating system was built with modularity, resiliency, and serviceability at its foundation. As a major OS in the world of Cisco, there is endless amounts of information to help understand the system and how it can best work for you. For example, a new feature allows you to upgrade NX-OS software while the Nexus Switch continues to forward traffic. Our goal is to decrease the complexity of the system. Below are basic configurations to improve your network.
Today, we will put focus on the Layer 2 topology of your switching network, specifically the Rapid PVST+ protocol. As an IEEE 802.1w standard Rapid Spanning Tree Protocol (RSTP), Rapid PVST+ is an enhanced version of PVST+ and allows for spanning-tree calculation and convergence in response to Layer 2 topology changes. Below we will give a brief overview of the protocol itself as well as key configurations and functionality. Let's dive in!
Rapid Per-VLAN Spanning Tree Protocol
Each Rapid PVST+ protocol on a VLAN is a single root switch. Although Rapid PVST+ is the default STP mode for the switch, we can enable or disable Rapid PVST+. The protocol uses point-to-point wiring to provide rapid convergence of the spanning tree.
Convergence
A quicker convergence happens when using Rapid PVST+, STP. By default, each designated or root port in the STP sends a Bridge Protocol Data Unit (BDPU) every 2 seconds. If topology changes, the device initiates a BPDU exchange resulting in the following:
- One network device is elected as the root bridge
- The shortest distance to the root bridge is calculated for each network device based on the path cost (configuration below).
- A designated bridge for each LAN segment is selected. This network device is closest to the root bridge through which frames are forwarded to the root.
- A root port is elected. This port provides the best path from the bridge to the root bridge.
- Ports included in the spanning tree are selected.
The reconfiguration, based on the point-to-point wiring, is able to occur in less than 1 second as opposed to the 50 seconds with 802.1D STP. This can happen so quickly due to a designated or root port in the topology. For example, if hello messages are missed three consecutive times or if the maximum age expires, the port immediately flushes all protocol information in the table. Cisco highlights a port that considers that it loses connectivity to its direct neighbor root or designated port if it misses three BPDUs or if the maximum age expires. This rapid aging of the protocol information allows quick failure detection. The switch automatically checks the PVID.
Rapid PVST+ provides for rapid recovery of connectivity following the failure of a network device, switch port, and a LAN. The following is a description of each ports connectivity:
- Edge ports— when you design a port as an edge port on a RSTP switch, the edge port quickly changes to the sending state. Configurations should only occur on ports that connect to a single end station as edge ports. More configuration info below.
- Root ports— if Rapid PVST+ selects a new root port, it blocks the old root port and immediately transitions the new root port to the forwarding state.
- Point-to-Point links— if you connect a port to another through point-to-point links and the local port becomes a designated port, it then negotiates a rapid transition with the other port. It uses a proposal-agreement handshake to ensure a loop-free topology.
Before we continue, ask yourself a couple of questions:
Do I have the time to handle configurations?
Do I have the bandwidth to configure my devices?
If you answered "No" to these questions, let PivIT handle the OSPF configuration on your network with EXTEND. Hire an engineer to take on these basic configurations and more. Click below to learn more about SmartHands.
Configuring Rapid PVST+ in Your Network
The below configurations best set you up to run Rapid PVST+. To see a full configurations list, check out the full data sheet.
Enable Rapid PVST+
This feature is disable by default on all the switches so, we need to enable feature by under mentioned command.
Per VLAN enable PVST+
We can both enable and disable rapid PVST+ on all the VLAN. Under below is the commands to enable PVST+ within VLAN.
To disable Rapid PVST+ per VLAN
Configuring the Root Bridge ID
To configure a VLAN instance to become the root bridge, modify the bridge priority from the default value (32768) to a significantly lower value. When you enter the spanning-tree vlan (number value) root command, the switch checks the bridge priority of the current root bridges for each VLAN. The switch sets the bridge priority for the specified VLANs to 24576 if this value will cause the switch to become the root for the specified VLANs. If any root bridge for the specified VLANs has a bridge priority lower than 24576, the switch sets the bridge priority for the specified VLANs to 4096 less than the lowest bridge priority. In the below example we use spanning-tree vlan 5 root command with a primary diameter of 4 bridge hops between any two end stations.
Configuring a Secondary Root Bridge
When you configure a software switch as the secondary root, the STP bridge priority is modified from the default value (32768) so that the switch is likely to become the root bridge for the specified VLANs if the primary root bridge fails (assuming the other switches in the network use the default bridge priority of 32768). STP sets the bridge priority to 28672. Below you'll see the secondary diameter keyword is set to 4 again, to specify the number of bridge hops between any two end stations in your network.
Configuring the Rapid PVST+ Port Priority
You can allocate lower values to LAN ports that you want Rapid PVST+ to choose first and higher need esteems to LAN ports that you want Rapid PVST+ to choose last. If all LAN ports have the same value, Rapid PVST+ puts the LAN port with the lowest LAN port number as priority.
Configuring the Rapid PVST+ Path Cost Method and Port Cost
On access ports, you assign port cost by the port. On trunk ports, you assign the port cost by VLAN; you can configure the same port cost on all the VLANs on a trunk.
Configuring the Rapid PVST+ Bridge Priority of a VLAN
Valid bridge priority values of a VLAN are 0, 4096, 8192 (used in example), 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440. The default value is 32768. It is recommended to configure the primary root and secondary root to modify the bridge priority.
Configuring the Rapid PVST+ Hello Time for a VLAN
This example of configuring the hello time of a VLAN is 7 seconds. You can configure this anywhere from 1 to 10 seconds with the default being 2 seconds.
Today we highlighted various configurations we've seen clients ask for in the past although this is not the full extensive list. Let us know if you are looking for a specific configuration or want to chat more about Rapid PVST+ and the benefits it can bring to your network!
About PivIT Global
PivIT Global provides the support you need through infrastructure, maintenance, and professional services. Contact us today to chat more about the configurations or how we can support you through our third-party maintenance and professional services offerings.
Share this
- Configuration Guides (46)
- Cisco Routers (29)
- Switches (27)
- Network Security (22)
- Routing Protocols (21)
- Cisco Switches (20)
- Routers (20)
- Product Comparisons (19)
- Cisco (18)
- Cisco Technical Information (17)
- Firewall (17)
- Network Protocols (17)
- Wireless (17)
- Cisco Security (16)
- Security (15)
- cisco asa (12)
- Cisco Wireless (11)
- Router Protocols (11)
- Servers (11)
- IT Hardware Solutions (10)
- Cisco UCS (9)
- OneCall (9)
- Cisco Catalyst (8)
- Upgrading Network (8)
- Access Control Lists (7)
- Cisco Servers (7)
- Fortinet (7)
- Product Highlight (7)
- Access Points (6)
- Arista Networks (6)
- OSPF (6)
- Server Comparisons (6)
- Wireless APs (6)
- Cisco ASR (5)
- HPE-Aruba Wireless (5)
- Juniper Mist (5)
- Network Management (5)
- SD-WAN (5)
- Switch Comparison (5)
- Back To Basics (4)
- Cloud Solutions (4)
- Cybersecurity (4)
- EIGRP (4)
- HSRP (4)
- Juniper Networks (4)
- Network Automation (4)
- OEM Comparison (4)
- Aruba Central (3)
- Cisco Telephony (3)
- DHCP (3)
- DHCP Snooping (3)
- Dell EMC PowerEdge (3)
- Firewall Architecture (3)
- Internet (3)
- Maintenance Renewal (3)
- Network Accessories (3)
- Storage (3)
- Telephony (3)
- aruba (3)
- Cisco NX-OS (2)
- Cisco Nexus (2)
- Dell Servers (2)
- Fortinet NGFWs (2)
- LAN Networks (2)
- Network Time Protocol (2)
- Palo Alto NGFWs (2)
- Rapid PVST+ (2)
- Remote Configuration (2)
- Software Defined Networking (2)
- WLAN (2)
- fortigate (2)
- Asset Management (1)
- CPU Usage (1)
- Cisco AIR-CT (1)
- Cisco Aironet (1)
- Cisco DNA (1)
- Cisco ISR (1)
- Cisco Supervisor Engines (1)
- Cisco UCS Manager (1)
- Cognitive Campus (1)
- Cost of Downtime (1)
- Dell EMC Data Domain (1)
- Edge Switches (1)
- Fabric Extenders (1)
- GRE Tunnel (1)
- HPE BL (1)
- IT Trends (1)
- Juniper SRX (1)
- Maintenance (1)
- Network Servers (1)
- Nexus Switches (1)
- Nutanix (1)
- Optics (1)
- PowerEdge R740xd (1)
- STP Extension (1)
- Sparing Integrity Program (1)
- Switched Virtual Interface (1)
- TCP (1)
- TPM (1)
- UCS Fabric Interconnects (1)
- Ways to Save (1)
- hyperconverge (1)
- September 2023 (1)
- August 2023 (5)
- July 2023 (2)
- June 2023 (4)
- May 2023 (5)
- April 2023 (8)
- March 2023 (7)
- February 2023 (5)
- January 2023 (2)
- December 2022 (3)
- November 2022 (3)
- October 2022 (8)
- September 2022 (9)
- August 2022 (9)
- July 2022 (8)
- June 2022 (9)
- May 2022 (5)
- April 2022 (3)
- March 2022 (1)
- February 2022 (2)
- November 2021 (2)
- October 2021 (1)
- September 2021 (2)
- August 2021 (2)
- July 2021 (3)
- June 2021 (2)
- May 2021 (4)
- April 2021 (4)
- March 2021 (2)
- February 2021 (1)
- January 2021 (2)
- December 2020 (2)
- November 2020 (2)
- October 2020 (2)
- September 2020 (2)
- August 2020 (4)
- July 2020 (5)
- June 2020 (4)
- May 2020 (6)
- April 2020 (2)
- March 2020 (1)
- February 2020 (2)
- January 2020 (2)
- December 2019 (1)
- May 2019 (2)
- April 2019 (5)
- February 2019 (1)
- January 2019 (3)
- December 2018 (1)
No Comments Yet
Let us know what you think