LESSON PURPOSE |
Build a practical understanding of how EtherChannel combines multiple physical links into one logical connection using LACP, and how Spanning Tree Protocol prevents Layer 2 loops. Develop the ability to configure, verify, and troubleshoot LACP Ether Channels and Rapid PVST+ in a switched enterprise network. |
1. Lesson Overview
Enterprise switches often use redundant links for bandwidth and resiliency, but parallel Layer 2 paths can create switching loops. EtherChannel solves the bandwidth problem by bundling compatible physical interfaces into a single logical port-channel, while LACP dynamically negotiates the bundle. STP and Rapid PVST+ protect the topology from loops by electing a root bridge and selecting forwarding and alternate paths. Together, these technologies provide high availability, efficient link utilization, and predictable Layer 2 forwarding.vvvvvv
Learning Objectives
• Explain what EtherChannel and how a port-channel provides additional bandwidth and link redundancy.
• Describe LACP operation and the meaning of active and passive negotiation modes.
• Identify EtherChannel consistency requirements such as speed, duplex, switchport mode, VLAN, native VLAN, and allowed-VLAN settings.
• Configure and verify Layer 2 EtherChannel using LACP and a Port-Channel interface.
• Interpret show EtherChannel summary, show interfaces port-channel, and related verification output.
• Explain the Layer 2 problems caused by redundant paths, including broadcast storms, duplicate frames, and MAC-table instability.
• Describe STP root-bridge election using bridge priority and MAC address.
• Identify root ports, designated ports, alternate ports, and the forwarding/discarding behavior used to create a loop-free topology.
• Explain Rapid PVST+ operation and how rapid convergence differs from traditional 802.1D STP.
• Configure and verify Rapid PVST+, root bridge primary/secondary behavior, and interface-level spanning-tree settings.
• Explain and apply Port Fast, BPDU Guard, Root Guard, and Loop Guard in appropriate Layer 2 scenarios.
• Troubleshoot EtherChannel and Rapid PVST+ problems using Cisco IOS show commands, interface status, logs, and topology information.
CCNA ALIGNMENT |
Cisco 200-301 CCNA v2.0 includes Layer 2/Layer 3 LACP port-channel/EtherChannel connectivity and configuration of Rapid PVST+. The Rapid PVST+ objectives include root bridge and root-port selection, port roles and states, Port Fast, Root Guard, Loop Guard, and BPDU Guard. Traditional STP concepts are included as the foundation needed to understand Rapid PVST+ behavior and troubleshooting. |
|
2. EtherChannel Fundamentals |
2.1 Why EtherChannel Is Used
EtherChannel groups multiple physical Ethernet interfaces into one logical Port-Channel interface. Instead of STP blocking one of several parallel links, the switches can use all member links as one logical path when the bundle is formed correctly.
If four 1-Gbps links are bundled, the aggregate can provide up to 4 Gbps of total forwarding capacity across multiple traffic flows. A single flow is normally hashed onto one member link, so a single conversation does not usually consume the sum of all member-link bandwidth.
• Bandwidth: multiple links contribute capacity to the logical port-channel.
• Redundancy: if one member link fails, the remaining members can continue forwarding.
• Simplified STP: spanning tree sees the Port-Channel as one logical interface.
• Simplified configuration: many Layer 2 or Layer 3 settings are applied to the Port-Channel rather than managed independently on each member.
• Load distribution: traffic flows are distributed across member links using a hashing algorithm; a single flow is normally kept on one member to avoid frame reordering.
Figure 2 — LACP creates a logical EtherChannel from compatible physical links.
|
CCNA memory rule: Multiple physical links → one logical Port-channel. Member links must have compatible characteristics on both sides. |
2.2 Why not use four independent links?
If multiple parallel Layer 2 links are connected between two switches without EtherChannel, STP normally blocks one or more redundant links to prevent a Layer 2 loop. EtherChannel bundles those links so STP can treat them as one logical path and use the physical links together.
Logical view versus physical view
|
Physical links: SW1 Gi1/0/1 ================= Gi1/0/1 SW2 SW1 Gi1/0/2 ================= Gi1/0/2 SW2
Logical view: SW1 Port-channel1 =============== Port-channel1 SW2 |
EtherChannel terminology
|
Term |
Meaning |
|
Member link |
A physical Ethernet interface participating in the bundle. |
|
Port-channel |
The logical interface representing the EtherChannel. |
|
Channel group |
The local group number used to associate physical interfaces with a Port-channel. |
|
LAG |
Generic term: Link Aggregation Group. |
|
LACP |
IEEE standards-based negotiation protocol. |
|
PAgP |
Cisco proprietary negotiation protocol. |
|
Static/on |
No negotiation protocol; links are forced into a channel when both sides are correctly configured. |
2.3 EtherChannel Protocols and Negotiation Modes
LACP — Link Aggregation Control Protocol
LACP is the IEEE standards-based EtherChannel negotiation protocol and is the preferred choice when multi-vendor interoperability or open standards are important.
|
LACP mode |
Behavior |
|
active |
Actively sends LACP negotiation messages and attempts to form a channel. |
|
passive |
Waits for the other side to initiate LACP negotiation. |
|
Side A |
Side B |
Port Channel Forms? |
|
active |
active |
Yes |
|
active |
passive |
Yes |
|
passive |
active |
Yes |
|
passive |
passive |
No |
PAgP — Port Aggregation Protocol
PAgP is Cisco proprietary. It can automatically negotiate an EtherChannel between compatible Cisco devices.
|
PAgP mode |
Behavior |
|
desirable |
Actively attempts to negotiate a PAgP EtherChannel. |
|
auto |
Waits for the other side to initiate PAgP negotiation. |
|
Side A |
Side B |
Port Channel Forms? |
|
desirable |
desirable |
Yes |
|
desirable |
auto |
Yes |
|
auto |
desirable |
Yes |
|
auto |
auto |
No |
2.4 Configure and Verify Layer 2 / Layer 3 EtherChannel
Static EtherChannel — mode on
Static mode does not use LACP or PAgP. Both sides are forced into the bundle. Because there is no negotiation to detect certain inconsistencies, the configuration must match carefully on both ends.
|
Side A |
Side B |
Result |
|
on |
on |
Static channel can form when interface settings are compatible. |
|
on |
active/passive/desirable/auto |
Do not mix static mode with a negotiation protocol. |
|
Exam tip: LACP: active initiates, passive waits. PAgP: desirable initiates, auto waits. Two passive LACP sides or two auto PAgP sides do not negotiate a channel. |
2.5 EtherChannel Compatibility Requirements
EtherChannel requires physical member interfaces to be sufficiently consistent. A mismatch can prevent interfaces from joining the bundle or place them in suspended/stand-alone states.
- Speed and duplex should be compatible.
- All Layer 2 member interfaces should use compatible access or trunk mode.
- If access ports are bundled, the access VLAN should match.
- If trunk ports are bundled, native VLAN and allowed VLAN lists should be consistent.
- The negotiation protocol/mode must be compatible between peers.
- Layer 3 EtherChannel members must be routed ports (no switchport) and should not carry individual IP addresses.
- Do not mix interfaces that belong to different logical designs in the same channel group.
|
Operational principle: Configure the physical members consistently, then configure the logical Port-channel consistently. The Port-channel is the interface you treat as the logical link after the bundle forms. |
2.6a Layer 2 LACP EtherChannel Configuration
Example: SW1 and SW2 use Gi1/0/1 and Gi1/0/2 to build Port-Channel 1. The logical link is an 802.1Q trunk carrying VLANs 10, 20, and 30.
SW1(config)# interface range GigabitEthernet1/0/1-2 | |
SW2# configure terminal |
LACP Verification |
SW1# show etherchannel summary Number of channel-groups in use: 1 Group Port-channel Protocol Ports 1 Po1(SU) LACP Gi1/0/1(P) Gi1/0/2(P) SW1# show lacp neighbor SW1# show lacp counters SW1# show interfaces port-channel 1 SW1# show etherchannel 1 detail |
2.6b Layer 2 PAgP EtherChannel Configuration
SW1 — PAgP Desirable |
SW1# configure terminal |
SW2 — PAgP Auto |
SW2# configure terminal |
PAgP Verification |
SW1# show etherchannel summary SW1# show interfaces port-channel 1 SW1# show etherchannel 1 detail |
2.7a Layer 3 EtherChannel Using LACP
The preferred standards-based example uses LACP active on both multilayer switches.
DIST1 |
DIST1(config)# interface range GigabitEthernet1/0/3-4 |
DIST2 |
DIST2(config)# interface range GigabitEthernet1/0/3-4 |
2.7b Layer 3 EtherChannel Using PAgP
On supported Cisco platforms, a routed EtherChannel can also use PAgP. The routed design remains the same: physical members and the Port-Channel use `no switchport`, and only the logical Port-Channel receives the Layer 3 address.
DIST1 — PAgP Desirable |
DIST1(config)# interface range GigabitEthernet1/0/3-4 |
DIST2 — PAgP Auto |
DIST2(config)# interface range GigabitEthernet1/0/3-4 |
2.7c Layer 3 EtherChannel Verification
DIST1# show etherchannel summary |
LAYER 3 ETHERCHANNEL KEY POINT |
EtherChannel combines multiple physical interfaces into one logical Port-Channel, but traffic is not normally sent round-robin frame by frame across every member link.
Instead, the switch uses a load-distribution/hash algorithm to select which physical member carries a particular traffic flow.
EtherChannel does not usually split a single frame stream packet-by-packet across all links. A hashing algorithm maps a flow to a member link using fields such as source/destination MAC address or source/destination IP address, depending on platform and configuration.
SW1# show etherchannel load-balance |
The objective is to:
- Use multiple member links efficiently.
- Keep packets belonging to the same conversation on the same physical link.
- Avoid packet reordering.
- Provide predictable forwarding behavior.
IMPORTANT |
|
2.9 Common problems and symptoms
Common problems and symptoms
|
Problem |
Likely symptom |
Check |
|
LACP passive/passive |
Channel does not negotiate |
show etherchannel summary; change at least one side to active |
|
PAgP auto/auto |
Channel does not negotiate |
Use desirable on at least one side |
|
Trunk/access mismatch |
Members may fail to bundle or traffic fails |
show interfaces switchport |
|
Allowed VLAN mismatch |
Some VLANs fail across channel |
show interfaces trunk |
|
Layer 3 member still switchport |
Routed EtherChannel fails/misconfigures |
show run interface; use no switchport |
|
IP on physical members |
Incorrect Layer 3 design |
Move IP to Port-channel |
|
Different protocol on each side |
No negotiation |
Use LACP on both, PAgP on both, or static on both |
|
One cable/NIC failure |
One member down, Po may remain up |
show interfaces; show etherchannel summary |
3. Spanning Tree Protocol (STP) |
3.1 STP Overview - Why Spanning Tree Exists
Problem: Ethernet loops
Redundant links improve availability, but a Layer 2 topology with more than one active path can form a loop. Ethernet frames do not carry an IP-style TTL field. Broadcasts, unknown unicasts, and some multicasts can therefore be replicated and circulate repeatedly.
- Broadcast storm: switches repeatedly replicate broadcasts until links and CPUs are saturated.
- Duplicate frames: the same user frame can arrive multiple times through different looped paths.
- MAC address flapping: a switch repeatedly learns the same source MAC on different interfaces.
- Unstable applications and severe packet loss because the LAN spends most of its capacity forwarding looped traffic.
Figure 3.1: A redundant triangle is resilient, but one redundant Layer 2 path must be made non-forwarding to prevent a loop.
CCNA memory rule: STP does not physically remove a redundant link. It creates a logical loop-free tree by allowing selected ports to forward and keeping redundant ports ready in a non-forwarding state. |
3.1a What STP does
1. Switches exchange Bridge Protocol Data Units (BPDUs).
2. The switches elect one Root Bridge for the spanning-tree instance.
3. Every non-root switch chooses one Root Port: its best path toward the root.
4. Each Layer 2 segment chooses one Designated Port: the best forwarding port for that segment.
5. Ports that are neither Root nor Designated are placed into a non-forwarding state to break the loop.
6. If the topology changes, STP recalculates and can activate a previously blocked path.
3.2 STP Control Plane - BPDUs in Detail
What is a BPDU?
A Bridge Protocol Data Unit (BPDU) is an STP control frame used by switches to advertise spanning-tree information. BPDUs allow all switches to agree on the same root and compare paths. Classic IEEE STP uses the reserved bridge-group multicast destination 01:80:C2:00:00:00 for standard BPDUs.
Important Configuration BPDU fields
3.2: Classic STP configuration BPDU: the fields used to identify the root, compare paths, identify the sender, and carry timer values.
|
Field |
Purpose |
|
Protocol Identifier |
Identifies the spanning-tree protocol. |
|
Version |
Classic STP uses protocol version 0. |
|
BPDU Type |
Identifies a Configuration BPDU or topology-change notification type. |
|
Flags |
Includes Topology Change (TC) and Topology Change Acknowledgment (TCA) bits in classic STP. |
|
Root Bridge ID |
The Root ID the sender currently believes is best. |
|
Root Path Cost |
The sender's accumulated cost to the root. |
|
Sender Bridge ID |
Identifies the bridge transmitting the BPDU. |
|
Sender Port ID |
Identifies the transmitting switch port. |
|
Message Age |
Age of the spanning-tree information. |
|
Max Age |
Maximum lifetime of classic STP information before it is considered stale. |
|
Hello Time |
BPDU generation interval advertised by the root. |
|
Forward Delay |
Timer used by classic STP during Listening and Learning transitions. |
Superior and inferior BPDUs
STP repeatedly compares received information. A BPDU is considered superior when it represents a better spanning-tree path according to the ordered comparison rules. A simplified memory order is:
|
1. Lowest Root Bridge ID 2. Lowest Root Path Cost 3. Lowest Sender Bridge ID 4. Lowest Sender Port ID |
The comparison is lexicographic: STP compares the first item; only if it ties does it compare the next item.
Two classic BPDU purposes
|
BPDU / indication |
Classic STP purpose |
|
Configuration BPDU |
Carries root, cost, sender, port, and timer information used to calculate the spanning tree. |
|
TCN BPDU |
A non-root bridge can send a Topology Change Notification toward the root when a relevant forwarding topology change occurs. The root later advertises the TC indication in configuration BPDUs. |
|
Important distinction: The separate classic TCN workflow belongs to 802.1D STP. Rapid spanning-tree protocols handle topology changes differently; those protocols are outside this standalone STP document. |
3.3 Root Bridge Election - Step by Step
Bridge ID (BID)
STP identifies each bridge using a Bridge ID. The lowest Bridge ID becomes the Root Bridge. In the original 802.1D concept the BID contains a bridge priority and MAC address. Cisco VLAN-aware spanning-tree implementations use the extended system ID so the displayed priority includes the VLAN ID.
|
Bridge ID comparison Configured bridge priority (lower is better) + VLAN / Extended System ID on Cisco per-VLAN STP + MAC address as the final bridge tie-breaker |
Default and configurable priority
The commonly seen default configurable bridge-priority component is 32768. Cisco priority values are normally configured in increments of 4096 because lower bits are used by the extended system ID in VLAN-aware spanning tree.
|
Common priority values |
|
0 |
|
4096 |
|
8192 |
|
12288 |
|
16384 |
|
20480 |
|
24576 |
|
28672 |
|
32768 |
|
36864 |
|
40960 |
|
... |
Election example
|
SW1: priority 32768, MAC 0000.0000.0001 SW2: priority 32768, MAC 0000.0000.0002 SW3: priority 32768, MAC 0000.0000.0003
All priorities tie. Lowest MAC wins. Result: SW1 becomes the Root Bridge. |
Root election uses the lowest Bridge ID; later port decisions compare path cost and sender information.
Full root election process
1. At startup, each switch may initially advertise itself as the root with a root path cost of 0.
2. Switches receive BPDUs from neighbors and compare Root IDs.
3. A switch that receives a superior Root ID stops claiming to be root and records the better root.
4. The switch adds its local link cost when advertising root-path information downstream.
5. Eventually all switches in the instance agree on the same Root Bridge.
6. The Root Bridge has a root path cost of 0 and has no Root Port.
|
Exam tip: If bridge priorities tie, the lower MAC address wins the Root Bridge election. If you want deterministic behavior in production, configure root priority instead of relying on MAC addresses. |
3.4 Root Port Selection - The Best Path Toward the Root
What is a Root Port?
Every non-root switch selects exactly one Root Port (RP) for each classic STP instance. It is the port that provides the best path toward the Root Bridge. The Root Bridge itself has no Root Port.
Root Port decision sequence
|
Choose the port receiving the best BPDU: 1. Lowest Root Bridge ID 2. Lowest total Root Path Cost 3. Lowest upstream / sender Bridge ID 4. Lowest upstream / sender Port ID 5. If required, local Port ID can break a final local tie |
STP path cost
STP prefers the path with the lowest accumulated cost. A switch adds the cost of the incoming interface to the root-path cost advertised in the received BPDU. Cisco can use a classic short path-cost method or a long path-cost method; verify the platform and the values shown by the switch.
|
Speed |
Classic short cost |
Long cost reference |
|
10 Mbps |
100 |
2,000,000 |
|
100 Mbps |
19 |
200,000 |
|
1 Gbps |
4 |
20,000 |
|
10 Gbps |
2 |
2,000 |
|
100 Gbps |
- |
200 |
|
CCNA focus: Many CCNA examples use the classic short values 100 / 19 / 4 / 2. Real platforms can display the long cost method, so always read the actual show output instead of memorizing one table as universal. |
Root Port tie-break example
|
SW3 receives two BPDUs advertising the same Root ID. Path through SW1 cost = 4 Path through SW2 cost = 8
SW3 chooses the SW1-facing interface as the Root Port.
If both path costs = 4: - compare sender Bridge IDs - if still tied, compare sender Port IDs |
3.5 Designated Ports and Blocked Ports
Designated Port (DP)
Every Layer 2 segment has one Designated Port. It is the port that advertises the best STP information onto that segment. On the Root Bridge, active ports are Designated Ports for their attached segments because the root has a root path cost of 0.
Designated Port election
|
For a shared segment, prefer the port advertising: 1. Lowest Root Bridge ID 2. Lowest Root Path Cost 3. Lowest Bridge ID 4. Lowest Port ID |
Blocked / non-designated port
A redundant port that is neither selected as the Root Port nor as the Designated Port for its segment remains in Blocking in classic STP. It does not forward normal user frames, but it continues to receive and process BPDUs so it can participate if the topology changes.
Classic STP roles in a redundant triangle: Root Bridge, Root Ports, Designated Ports, and the redundant non-forwarding path.
3.6 One complete role-selection walkthrough
1. Elect the Root Bridge using the lowest Bridge ID.
2. Mark the Root Bridge ports as Designated for their segments.
3. On each non-root switch, choose the one Root Port with the best path toward the root.
4. On the remaining inter-switch segment, compare which switch advertises the superior BPDU. Its port becomes Designated.
5. The losing port on that redundant segment remains Blocking.
6. The physical topology remains redundant, while the logical forwarding topology becomes loop-free.
3.7 Classic STP Port States - What Each State Actually Does
Five classic states
|
State |
BPDU processing |
MAC learning |
User-data forwarding |
Purpose |
|
Blocking |
Yes |
No |
No |
Prevent loops while monitoring STP information. |
|
Listening |
Yes |
No |
No |
Participate in topology calculation before learning/forwarding. |
|
Learning |
Yes |
Yes |
No |
Populate the MAC table before forwarding. |
|
Forwarding |
Yes |
Yes |
Yes |
Normal Layer 2 forwarding. |
|
Disabled |
No normal STP forwarding |
No |
No |
Interface is not participating. |
Normal classic transition
|
Blocking | v Listening (Forward Delay, typically 15 s) | v Learning (Forward Delay, typically 15 s) | v Forwarding |
The deliberate delay protects the network. A port must not suddenly forward while the rest of the topology may still have an inconsistent view of the spanning tree.
What happens in each transition?
Blocking -> Listening: the port has been selected to become active but still forwards no user traffic.
Listening -> Learning: STP calculations are stable enough to begin learning source MAC addresses.
Learning -> Forwarding: after another Forward Delay, the port begins forwarding normal frames.
3.8 STP Timers and Convergence
Default timer values
Classic STP convergence is timer-driven. The default Hello, Max Age, and Forward Delay values explain why recovery can be slow.
|
Timer |
Typical default |
Function |
|
Hello Time |
2 seconds |
Root Bridge generates configuration BPDU information at this interval. |
|
Max Age |
20 seconds |
Maximum age of classic STP information before it is considered stale. |
|
Forward Delay |
15 seconds |
Used for Listening and Learning transitions. |
Direct failure versus indirect failure
If an interface physically goes down, the switch can detect the loss immediately. However, a replacement blocked port still follows classic state transitions before forwarding. If the physical link remains up but superior BPDUs stop arriving because of an indirect failure, the switch may wait for Max Age before treating the old information as invalid.
Typical convergence timing
|
Direct transition of a blocked backup path: Listening 15 s + Learning 15 s ~= 30 s
Indirect failure can involve: Max Age 20 s + Listening 15 s + Learning 15 s ~= 50 s worst case with defaults |
|
Important: These are conceptual/default-timer examples. Actual convergence depends on the failure type, topology, platform, and whether enhancements such as PortFast or rapid spanning-tree protocols are used. |
Why STP does not simply make all links Forwarding
The purpose of the timers and blocked path is safety. If two redundant paths simultaneously forward in a Layer 2 loop, a broadcast storm can disrupt the entire broadcast domain. STP accepts slower failover in exchange for loop-free operation.
3.9 Topology Changes and TCN BPDUs
Why a topology change matters
When a forwarding path changes, MAC address tables can contain entries learned through an old path. Classic STP includes a topology-change process so switches age stale dynamic MAC information faster and relearn destinations on the new path.
Classic TCN process
1. A non-root switch detects a relevant topology change, such as a non-edge port moving to or from Forwarding.
2. The switch sends a Topology Change Notification (TCN) BPDU toward the Root Bridge through its Root Port.
3. Each upstream bridge acknowledges the notification and continues relaying the TCN toward the root.
4. The Root Bridge sets the Topology Change flag in its configuration BPDUs.
5. Switches receiving the TC indication temporarily reduce the effective aging time of dynamic MAC entries, allowing stale mappings to disappear faster.
Why this helps
Suppose Server-A used to be reachable through a port that is now blocked after reconvergence. If the old MAC entry remains for too long, the switch could keep sending traffic toward the wrong port. Faster aging forces the network to relearn the server through the new active path.
3.10 Root Bridge Design - Primary and Secondary Root
Do not leave root election to chance
If all switches use the default priority, the root can be selected by the lowest MAC address, which may place the root in an access layer or other undesirable location. Production design normally makes the intended distribution/core switch the root by configuring a lower priority.
Deterministic STP design: choose an intended primary root and a secondary root instead of relying on MAC-address tie-breakers.
Cisco root primary / secondary macros
|
! On intended primary root spanning-tree vlan 10 root primary
! On intended backup root spanning-tree vlan 10 root secondary |
These commands choose bridge-priority values intended to make the selected switch primary or secondary for the VLAN. You can also configure the priority directly.
|
spanning-tree vlan 10 priority 24576 |
Design guidance
Place the root near the Layer 3 gateway/distribution function when practical so Layer 2 forwarding aligns with the intended traffic path.
Configure a secondary root on a redundant peer.
Use explicit priorities so hardware replacement or MAC-address differences do not unexpectedly change the root.
Verify root placement for every relevant VLAN when using Cisco per-VLAN classic STP behavior.
3.11 Port Fast - Fast Edge-Port Forwarding
Why Port Fast exists
A normal classic STP access port can spend roughly 30 seconds in Listening and Learning before it forwards traffic. End devices such as PCs and servers normally do not create redundant switch-to-switch Layer 2 paths, so waiting through the full transition can delay DHCP, authentication, or application startup.
PortFast is intended for endpoint-facing access ports; BPDU Guard protects the edge if a switch is connected unexpectedly.
PortFast behavior
PortFast allows an eligible edge/access port to enter Forwarding immediately when the link comes up instead of waiting through the classic Listening and Learning delays. The port still participates in STP control behavior; PortFast is not the same as disabling STP.
|
interface GigabitEthernet1/0/10 switchport mode access spanning-tree portfast |
Where to use PortFast
|
Appropriate |
Usually inappropriate |
|
PC / workstation |
Switch-to-switch trunk |
|
Server |
Redundant Layer 2 bridge link |
|
Printer |
Unknown network appliance that may bridge traffic |
|
IP phone / endpoint edge design |
Any link where a Layer 2 loop could be created |
|
Safety rule: Use PortFast only where you know the link is an edge link. Pairing PortFast with BPDU Guard is a common protection pattern. |
3.12 STP Protection Features
STP protection features address different failure or misuse scenarios: unexpected roots, lost BPDUs, and edge-port BPDUs.
BPDU Guard
BPDU Guard protects an edge/PortFast interface. If the port receives a BPDU, the switch treats that as evidence that another bridge may have been connected and can place the port into an error-disabled condition.
|
interface GigabitEthernet1/0/10 spanning-tree portfast spanning-tree bpduguard enable |
Root Guard
Root Guard is used on a port where a downstream switch must never become the root. If the port receives superior BPDUs that would cause it to become a Root Port, the port enters a root-inconsistent state and stops forwarding until the superior BPDUs disappear.
|
interface GigabitEthernet1/0/20 spanning-tree guard root |
Loop Guard
Loop Guard protects certain non-designated/root-port scenarios where BPDUs unexpectedly stop arriving but the physical link remains up. Instead of allowing the port to transition to forwarding based on stale information, Loop Guard can place it into a loop-inconsistent condition.
|
interface GigabitEthernet1/0/24 spanning-tree guard loop |
BPDU Filter
BPDU Filter suppresses BPDU sending and/or processing depending on how it is configured. Interface-level BPDU Filter can effectively remove STP protection from a link and can create a loop if misused. It is not a general-purpose security feature.
|
interface GigabitEthernet1/0/10 spanning-tree bpdufilter enable |
|
Warning: Do not treat BPDU Filter as a safer version of BPDU Guard. BPDU Guard shuts down/protects when BPDUs appear; BPDU Filter suppresses STP control behavior and can be dangerous. |
Protection comparison
|
Feature |
Protects against |
Typical result |
|
BPDU Guard |
Unexpected bridge/BPDU on an edge port |
Port is commonly error-disabled. |
|
Root Guard |
Downstream switch trying to become root |
Port becomes root-inconsistent while superior BPDUs are present. |
|
Loop Guard |
Loss of expected BPDUs on a protected non-designated/root path |
Port becomes loop-inconsistent instead of incorrectly forwarding. |
|
BPDU Filter |
Suppresses STP BPDUs |
STP visibility/protection can be removed; use only with clear design intent. |
3.13 Cisco STP Configuration - Step by Step
Enable classic Cisco per-VLAN STP mode
On Cisco IOS/IOS XE, classic 802.1D-style per-VLAN operation is configured with PVST mode. The underlying STP election/state/timer logic taught in this document applies to each VLAN instance.
|
configure terminal spanning-tree mode pvst end |
Configure root primary and secondary
|
! SW1 - intended primary for VLAN 10 configure terminal spanning-tree vlan 10 root primary end
! SW2 - intended secondary for VLAN 10 configure terminal spanning-tree vlan 10 root secondary end |
Configure priority directly
|
configure terminal spanning-tree vlan 10 priority 24576 end |
Tune path cost and port priority
|
interface GigabitEthernet1/0/1 spanning-tree vlan 10 cost 10 spanning-tree vlan 10 port-priority 64 |
Configure PortFast and BPDU Guard
|
interface range GigabitEthernet1/0/1 - 20 switchport mode access spanning-tree portfast spanning-tree bpduguard enable |
Configure Root Guard / Loop Guard
|
interface GigabitEthernet1/0/23 spanning-tree guard root
interface GigabitEthernet1/0/24 spanning-tree guard loop |
3.14 Verify STP - Read the Output
Primary verification commands
|
show spanning-tree show spanning-tree vlan 10 show spanning-tree root show spanning-tree summary show spanning-tree interface gigabitEthernet1/0/1 detail show mac address-table dynamic show interfaces status |
Example output
|
SW2# show spanning-tree vlan 10
VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 24586 Address 0011.2233.4455 Cost 4 Port 1 (GigabitEthernet1/0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 00aa.bbcc.ddee
Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- ---------------- Gi1/0/1 Root FWD 4 128.1 P2p Gi1/0/2 Desg FWD 4 128.2 P2p Gi1/0/3 Altn BLK 4 128.3 P2p |
How to interpret it
|
Output field |
Interpretation |
|
Spanning tree enabled protocol ieee |
Classic IEEE-style STP behavior is in use for this VLAN. |
|
Root ID |
Identity of the current root. If Root ID equals local Bridge ID, this switch is root. |
|
Root Cost |
Local switch's total cost toward the root. |
|
Root Port |
Local interface used as the best path to the root. |
|
Bridge ID |
Local switch identity for this VLAN instance. |
|
Role Root |
Root Port. |
|
Role Desg |
Designated Port. |
|
Sts FWD |
Forwarding state. |
|
Sts BLK |
Non-forwarding/blocked state shown by Cisco output. |
4. Rapid Spanning Tree Protocol (RSTP) and Rapid PVST+ |
Rapid PVST+ applies rapid spanning-tree behavior independently to each VLAN so root placement and forwarding paths can differ by VLAN.
|
1. Overview - From STP to RSTP and Rapid PVST+ |
1.1 Why rapid spanning tree was needed
Classic IEEE 802.1D STP prevents Layer 2 loops, but many topology changes depend on timers such as Max Age and Forward Delay. That can make convergence noticeably slow. RSTP was created to keep the same loop-prevention objective while allowing safe links and backup paths to transition much more quickly.
- RSTP keeps the same basic root election and path-cost logic as STP.
- RSTP reduces the number of port states and adds explicit Alternate and Backup roles.
- RSTP treats BPDUs as a direct conversation between neighboring switches.
- RSTP can rapidly transition point-to-point links using Proposal/Agreement synchronization.
- Cisco Rapid PVST+ runs rapid spanning-tree behavior independently for each VLAN.
1.2 Relationship between RSTP and Rapid PVST+
|
Technology |
Meaning |
Main idea |
|
RSTP |
Rapid Spanning Tree Protocol, IEEE 802.1w |
Rapid convergence for a spanning-tree instance. |
|
Rapid PVST+ |
Cisco per-VLAN implementation using RSTP behavior |
One rapid spanning-tree instance per VLAN, with independent roots and port roles. |
|
PVST+ |
Cisco per-VLAN classic STP behavior |
Per-VLAN trees but classic STP convergence behavior. |
|
STP |
IEEE 802.1D classic spanning tree |
Loop prevention using classic states and timers. |
|
CCNA viewpoint: On common Cisco Catalyst IOS/IOS XE platforms, the practical configuration you normally see is spanning-tree mode rapid-pvst. There is not usually a separate generic "spanning-tree mode rstp" command; Rapid PVST+ is the Cisco per-VLAN way to deploy 802.1w-style rapid behavior. |
|
2. RSTP Fundamentals - IEEE 802.1w |
2.1 What RSTP changes - and what it keeps
RSTP does not replace the spanning-tree election logic. It keeps the Root Bridge concept, the best-path calculation, and the need to leave a loop-free forwarding topology. Its major change is how switches communicate and how ports safely transition after topology changes.
|
Kept from STP |
Improved by RSTP |
|
Lowest Bridge ID becomes root. |
Every RSTP bridge sends BPDUs regularly rather than simply relaying root information. |
|
Lowest path cost selects the best path to the root. |
Alternate and Backup roles identify standby paths explicitly. |
|
Designated port is selected per segment. |
Proposal/Agreement permits rapid forwarding on point-to-point links. |
|
Loop-free topology remains the goal. |
Edge ports can immediately enter Forwarding. |
|
Timer fields remain in BPDUs. |
Many transitions no longer wait through classic Listening and Learning timer delays. |
2.2 RSTP root election
RSTP elects the Root Bridge using the same Bridge ID logic as classic STP. The best BPDU is selected in the same comparison order. Therefore, learning STP root election is directly reusable in RSTP.
|
Best BPDU comparison order 1. Lowest Root Bridge ID 2. Lowest Root Path Cost 3. Lowest Sender Bridge ID 4. Lowest Sender Port ID
Root Bridge election itself: Lowest bridge priority -> if tied -> lowest bridge MAC address |
|
Important: Rapid convergence does not mean a different root-election algorithm. RSTP is faster mainly because of how port roles, BPDUs, and transitions are handled. |
RSTP identifies active forwarding ports and precomputed backup roles so a redundant path can be used quickly.
|
Role |
Purpose |
Typical state |
|
Root Port |
Best path from a non-root bridge toward the Root Bridge. |
Forwarding |
|
Designated Port |
Best port for a Layer 2 segment; sends the best BPDU onto that segment. |
Forwarding |
|
Alternate Port |
Backup path toward the root through another bridge. |
Discarding until needed |
|
Backup Port |
Backup to a Designated Port on the same shared segment; rare in modern switched networks. |
Discarding |
|
3. RSTP Port States and Link Types |
3.1 The three RSTP port states
|
RSTP State |
Forwards user frames? |
Learns MACs? |
Meaning |
|
Discarding |
No |
No |
Combines classic Blocking, Listening, and Disabled concepts. BPDUs can still be processed. |
|
Learning |
No |
Yes |
Builds MAC table but does not yet forward user traffic. |
|
Forwarding |
Yes |
Yes |
Normal active state for Root and Designated ports. |
3.2 Mapping STP to RSTP states
|
STP |
RSTP |
|
Disabled |
Discarding |
|
Blocking |
Discarding |
|
Listening |
Discarding |
|
Learning |
Learning |
|
Forwarding |
Forwarding |
3.3 Link types and edge ports
RSTP uses edge, point-to-point, and shared-link behavior. Proposal/Agreement is designed for point-to-point links.
Edge port: connected to an endpoint such as a PC, server, phone, or printer. It can enter Forwarding immediately. Cisco PortFast provides this behavior.
Point-to-point port: normally a full-duplex switch-to-switch link. It can use Proposal/Agreement for rapid transition.
Shared port: historically associated with half-duplex/shared Ethernet. It does not receive the same rapid point-to-point transition behavior.
|
interface GigabitEthernet1/0/24 spanning-tree link-type point-to-point |
|
Platform note: On modern full-duplex Ethernet links, Cisco normally recognizes point-to-point behavior automatically. The command is useful when the link type must be explicitly controlled. |
|
4. RSTP BPDUs - Packet Behavior and Flags |
4.1 RSTP BPDU behavior
RSTP uses BPDU version 2 and BPDU type 2. Unlike classic STP, where non-root switches conceptually relay root-generated configuration information, every RSTP switch transmits its own BPDUs at the Hello interval. This makes the relationship between directly connected switches more like a keepalive conversation.
Default Hello Time is commonly 2 seconds.
A bridge expects regular BPDUs from its direct RSTP neighbor.
If multiple consecutive BPDUs are missed, RSTP can age the neighbor information much faster than waiting a full classic Max Age interval in many cases.
RSTP retains timer fields such as Hello, Max Age, and Forward Delay for operation and backward compatibility, but rapid transitions do not depend on waiting through the complete classic timer sequence.
4.2 Important RSTP BPDU fields
|
Field |
Purpose |
|
Protocol ID |
Identifies spanning-tree protocol. |
|
Version |
RSTP uses version 2. |
|
BPDU Type |
RSTP BPDU type is 2. |
|
Flags |
TC, Proposal, Port Role, Learning, Forwarding, Agreement, and TCA bits. |
|
Root ID |
Current Root Bridge information. |
|
Root Path Cost |
Sender cost toward the root. |
|
Bridge ID |
Sender bridge. |
|
Port ID |
Sender port. |
|
Timers |
Message Age, Max Age, Hello Time, Forward Delay. |
The RSTP Flags octet carries state, role, proposal/agreement, and topology-change information used for rapid convergence.
4.3 RSTP flag meanings
|
Flag |
Meaning |
|
TC |
Topology Change. |
|
Proposal |
Requests rapid synchronization on a point-to-point link. |
|
Port Role bits |
Advertise the sender role. |
|
Learning |
Sender port is in Learning. |
|
Forwarding |
Sender port is in Forwarding. |
|
Agreement |
Confirms synchronization and permits rapid transition. |
|
TCA |
Retained for compatibility with classic spanning-tree semantics. |
|
5. RSTP Proposal / Agreement - Full Working Process |
5.1 Why Proposal/Agreement is important
Classic STP often waits through timer-based transitional states. RSTP can move a safe point-to-point link into forwarding much faster by first proving that the downstream switch has synchronized its other non-edge paths and cannot create a temporary loop.
Proposal/Agreement is a synchronization handshake. It is not simply a shorter timer.
5.2 Step-by-step process
1. A Designated Port sends a superior RSTP BPDU with the Proposal flag set on a point-to-point link.
2. The downstream switch receives the superior information and decides that the receiving interface should become its Root Port.
3. Before agreeing, the downstream switch synchronizes its topology by placing other non-edge Designated ports into Discarding as required. Root and Alternate ports are already safe; edge ports do not need to be synchronized in the same way.
4. The downstream switch sends an RSTP BPDU with the Agreement flag set.
5. The upstream Designated Port can rapidly transition to Forwarding, and the downstream Root Port can also transition rapidly without waiting through the classic Listening plus Learning timer sequence.
|
Critical idea: Rapid transition is allowed only after synchronization makes the topology safe. RSTP speed comes from explicit roles and handshake logic, not from ignoring loop prevention. |
5.3 Where rapid transition does not apply
Shared links do not use the same point-to-point Proposal/Agreement behavior.
A port communicating with a legacy 802.1D STP neighbor must use compatibility behavior and can converge more slowly.
Failure-detection time still matters. A direct physical link-down event is normally recognized faster than a silent one-way failure or BPDU loss.
|
6. RSTP Edge Ports, PortFast, and Failure Detection |
6.1 RSTP edge port
An edge port is expected to connect to an endpoint, not another bridge. Because an endpoint cannot create a switching loop by forwarding BPDUs between LAN segments, an edge port can move directly to Forwarding.
|
interface GigabitEthernet1/0/10 switchport mode access spanning-tree portfast |
If an edge/PortFast port receives a BPDU, RSTP removes the edge assumption. BPDU Guard is commonly added to protect user-facing ports from an accidentally connected switch.
6.2 Failure detection
Physical link-down: the switch can react immediately when the interface reports loss of carrier.
RSTP neighbor/BPDU loss: RSTP treats BPDUs as neighbor keepalives; with default Hello 2 seconds, missing several expected BPDUs can cause information to age much faster than classic timer-only behavior.
Alternate path available: an Alternate port can become the new Root Port rapidly when it already represents a valid backup path.
Rapid spanning tree
can activate an Alternate path quickly after the active root path fails.
|
7. RSTP Topology Changes and MAC Table Handling |
7.1 What triggers an RSTP topology change
RSTP topology-change handling is different from classic 802.1D TCN processing. A significant event is a non-edge port moving into Forwarding. Edge-port transitions are intentionally excluded because normal endpoint connect/disconnect events should not repeatedly trigger network-wide topology-change processing.
7.2 How RSTP propagates the change
1. A bridge detects a relevant forwarding topology change.
2. It starts a topology-change period and sets the TC flag in its regular RSTP BPDUs.
3. Neighboring bridges propagate the topology-change indication through their RSTP BPDUs.
4. Switches rapidly remove or age affected dynamically learned MAC information so traffic can be relearned on the new forwarding path.
|
Difference from classic STP: RSTP does not rely on the classic separate TCN-to-root and TCA workflow for normal rapid topology changes. It carries topology-change information directly in RSTP BPDUs. |
|
8. RSTP Interoperability with Classic STP |
8.1 Legacy neighbor detection
RSTP was designed to coexist with older 802.1D bridges. If an RSTP port receives legacy STP BPDUs, that port can operate using STP-compatible behavior for the segment. Rapid Proposal/Agreement cannot be used with a neighbor that does not understand RSTP.
RSTP remains active elsewhere in the topology.
The legacy-facing segment can converge more slowly.
After legacy BPDUs disappear, the platform can migrate back to rapid behavior according to its migration logic.
|
Useful verification show spanning-tree interface GigabitEthernet1/0/1 detail show spanning-tree vlan 10 show spanning-tree summary |
|
Troubleshooting clue: If a port unexpectedly behaves like classic STP, check whether the neighbor is sending legacy BPDUs or whether an older switch is connected. |
|
9. Rapid PVST+ - Cisco Per-VLAN Rapid Spanning Tree |
9.1 What is Rapid PVST+?
Rapid PVST+ is Cisco's per-VLAN spanning-tree implementation based on RSTP behavior. Instead of one rapid tree for the entire Layer 2 network, each VLAN runs its own rapid spanning-tree instance.
|
VLAN 10 -> independent rapid spanning-tree instance VLAN 20 -> independent rapid spanning-tree instance VLAN 30 -> independent rapid spanning-tree instance |
Different VLANs can elect different roots and use different preferred uplinks even though they share the same physical trunks.
9.2 Why use a separate tree per VLAN?
Deterministic root placement per VLAN.
Layer 2 load distribution: VLAN 10 can prefer one distribution switch while VLAN 20 prefers another.
Independent port roles and states for each VLAN.
A topology event can affect one VLAN differently from another because each VLAN has its own spanning-tree calculation.
9.3 Scaling consideration
Per-VLAN operation is easy to understand and useful for many campus designs, but a very large number of VLANs creates more spanning-tree instances and more control-plane work. Multiple Spanning Tree (MST) is often used in larger designs to map many VLANs into fewer spanning-tree instances. MST is a separate topic.
|
10. Rapid PVST+ Full Working Process - Step by Step |
1. Rapid PVST+ is enabled globally on the switch.
2. For each VLAN, switches exchange rapid spanning-tree BPDUs and compare Bridge IDs.
3. Each VLAN independently elects a Root Bridge.
4. Every non-root switch selects a Root Port for that VLAN using root path cost and normal spanning-tree tie-breakers.
5. Each Layer 2 segment selects a Designated Port for that VLAN.
6. Redundant paths become Alternate or Backup roles and remain Discarding.
7. Point-to-point links use Proposal/Agreement where applicable for rapid transition.
8. If a forwarding path fails, an Alternate path can become active rapidly.
9. Topology-change information is propagated using RSTP-style TC signaling for the affected VLAN.
10.1 Root election is per VLAN
|
Example VLAN 10: DIST-1 priority 24576, DIST-2 priority 28672 -> DIST-1 root VLAN 20: DIST-1 priority 28672, DIST-2 priority 24576 -> DIST-2 root |
This creates predictable load sharing. Traffic in VLAN 10 prefers the path toward DIST-1, while VLAN 20 prefers DIST-2.
10.2 Roles can differ by VLAN on the same physical port
Because each VLAN has an independent spanning-tree instance, the same trunk interface may be a Root Port for one VLAN and a Designated or Alternate port for another VLAN. Always troubleshoot Rapid PVST+ in the context of a specific VLAN.
|
11. Rapid PVST+ Root Primary / Secondary Design |
11.1 Recommended deterministic design
Do not rely on default priorities and switch MAC addresses to decide the root accidentally. Choose primary and secondary roots intentionally, usually on distribution or core switches that provide the desired Layer 2 forwarding path.
|
DIST-1 spanning-tree vlan 10 root primary spanning-tree vlan 20 root secondary
DIST-2 spanning-tree vlan 20 root primary spanning-tree vlan 10 root secondary |
11.2 Manual priority method
|
DIST-1 spanning-tree vlan 10 priority 24576 spanning-tree vlan 20 priority 28672
DIST-2 spanning-tree vlan 10 priority 28672 spanning-tree vlan 20 priority 24576 |
Lower bridge priority is preferred. Cisco spanning-tree priority is normally configured in increments of 4096.
|
12. Cisco Configuration - Enable and Tune Rapid PVST+ |
12.1 Enable Rapid PVST+
|
SW1# configure terminal SW1(config)# spanning-tree mode rapid-pvst SW1(config)# end |
|
Scope: This command changes the switch spanning-tree mode. Plan production changes carefully because the mode applies globally and can reconverge Layer 2 topology. |
12.2 Create VLANs and trunks
|
vlan 10 name USERS vlan 20 name VOICE ! interface GigabitEthernet1/0/24 switchport mode trunk switchport trunk allowed vlan 10,20 |
12.3 Configure root primary and secondary
|
! DIST-1 spanning-tree vlan 10 root primary spanning-tree vlan 20 root secondary
! DIST-2 spanning-tree vlan 20 root primary spanning-tree vlan 10 root secondary |
12.4 Tune path cost
|
interface GigabitEthernet1/0/1 spanning-tree vlan 10 cost 10 |
Lower total root path cost is preferred. Cost is usually tuned only when the natural link-speed-based path is not the desired path.
12.5 Tune port priority
|
interface GigabitEthernet1/0/1 spanning-tree vlan 10 port-priority 64 |
Port priority is a later tie-breaker. Lower values are preferred. Cost is normally the more direct way to influence path selection.
|
13. PortFast and RSTP Protection Features |
13.1 PortFast / edge ports
|
interface range GigabitEthernet1/0/1 - 20 switchport mode access spanning-tree portfast |
PortFast makes an access port behave as an RSTP edge port and enter Forwarding immediately. Use it on endpoint-facing ports, not ordinary switch-to-switch links.
13.2 BPDU Guard
|
interface GigabitEthernet1/0/10 spanning-tree bpduguard enable |
If the port receives a BPDU, BPDU Guard can place the interface into an error-disabled condition. This is ideal for protecting edge ports from an unexpected switch.
13.3 Global edge protection
|
spanning-tree portfast default spanning-tree portfast bpduguard default |
These commands can apply PortFast and BPDU Guard defaults to eligible access ports, depending on platform behavior and interface configuration.
13.4 Root Guard
|
interface GigabitEthernet1/0/24 spanning-tree guard root |
Root Guard prevents a downstream switch from becoming root through that port. Superior BPDUs place the port into a root-inconsistent condition until the superior information disappears.
13.5 Loop Guard
|
interface GigabitEthernet1/0/23 spanning-tree guard loop |
Loop Guard protects non-designated paths from incorrectly becoming Designated/Forwarding if expected BPDUs stop arriving. A protected port can enter loop-inconsistent instead of creating a loop.
13.6 BPDU Filter
|
interface GigabitEthernet1/0/10 spanning-tree bpdufilter enable |
Interface-level BPDU Filter can effectively suppress spanning-tree protection on that link and is dangerous when misused. It should not be treated as a general security feature.
|
14. Verification - Read Rapid PVST+ Output Correctly |
14.1 Verify global mode
|
SW1# show spanning-tree summary Switch is in rapid-pvst mode |
14.2 Verify one VLAN
|
SW1# show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol rstp
Root ID Priority 24586 Address 0011.2233.4455 Cost 4 Port 25 (GigabitEthernet1/0/24)
Bridge ID Priority 32778 Address 00aa.bbcc.ddee
Interface Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- ---------------- Gi1/0/24 Root FWD 4 128.24 P2p Gi1/0/23 Altn BLK 4 128.23 P2p Gi1/0/10 Desg FWD 4 128.10 P2p Edge |
|
Output |
Interpretation |
|
protocol rstp |
The VLAN is using rapid spanning-tree behavior. |
|
Root ID |
Identity of the Root Bridge for this VLAN. |
|
Bridge ID |
Identity of the local switch for this VLAN. |
|
Root |
This interface is the Root Port. |
|
Desg |
Designated Port. |
|
Altn |
Alternate Port. |
|
FWD |
Forwarding state. |
|
BLK |
Cisco display shorthand showing the port is not forwarding; in RSTP the state concept is Discarding. |
|
P2p |
Point-to-point RSTP link type. |
|
Edge |
Port is operating as an edge/PortFast port. |
14.3 Useful commands
|
show spanning-tree summary show spanning-tree vlan 10 show spanning-tree root show spanning-tree interface GigabitEthernet1/0/24 detail show spanning-tree inconsistentports show interfaces trunk show vlan brief |
|
15. Failure Scenarios - How RSTP / Rapid PVST+ Reconverges |
15.1 Direct Root Port failure
1. Root Port link goes physically down.
2. The switch removes that path immediately.
3. If an Alternate port already offers a valid path to the root, it can become the new Root Port rapidly.
4. The new Root Port transitions to Forwarding without the full classic Listening plus Learning delay.
15.2 BPDU loss without physical link-down
A one-way failure can be more dangerous because the interface may remain physically up while control information stops arriving. RSTP ages the neighbor information based on missed BPDUs, while Loop Guard can prevent a non-designated port from becoming Forwarding merely because BPDUs disappeared.
15.3 New superior root appears
If a switch with a better Bridge ID is connected, RSTP/Rapid PVST+ can elect it as root and reconverge. Root Guard is used on ports where that should never be allowed.
15.4 Edge port receives a BPDU
An RSTP edge assumption is no longer valid when a BPDU is received. The port can lose edge behavior. If BPDU Guard is enabled, the interface is typically error-disabled instead, protecting the access layer from an unexpected switch.
|
16. RSTP vs Rapid PVST+ vs Classic STP / PVST+ |
|
Feature |
Classic STP / PVST+ |
RSTP |
Rapid PVST+ |
|
Base |
802.1D / Cisco per-VLAN classic behavior |
IEEE 802.1w |
Cisco per-VLAN rapid behavior |
|
Root election |
Bridge ID |
Same |
Same per VLAN |
|
Port states |
Blocking, Listening, Learning, Forwarding, Disabled |
Discarding, Learning, Forwarding |
Discarding, Learning, Forwarding per VLAN |
|
Roles |
Root, Designated, non-designated/blocked |
Root, Designated, Alternate, Backup |
Same RSTP roles per VLAN |
|
BPDUs |
Classic configuration BPDUs; classic TCN process |
Every bridge sends RSTP BPDUs regularly |
RSTP-style BPDU behavior independently per VLAN |
|
Rapid handshake |
No |
Proposal/Agreement on point-to-point links |
Yes per VLAN |
|
Edge concept |
PortFast is Cisco enhancement |
Native edge-port concept |
Cisco PortFast maps to edge behavior |
|
Topology change |
TCN/TCA workflow |
TC flag in regular RSTP BPDUs; rapid MAC relearning |
Same RSTP-style handling per VLAN |
|
Convergence |
Timer-dependent and slower |
Rapid where topology permits |
Rapid per VLAN |
|
Typical Cisco mode |
pvst |
Underlying protocol mechanics |
rapid-pvst |
|
One-line memory: STP prevents loops; RSTP prevents loops faster; Rapid PVST+ runs that rapid behavior independently for each VLAN. |
Quick knowledge check
1. Which LACP modes successfully negotiate when paired?
Answer: active/active or active/passive.
2. What happens to aggregate bandwidth if one member fails but the channel stays up?
Answer: It decreases; traffic is redistributed over remaining operational members.
3. What decides the Root Bridge?
Answer: The lowest Bridge ID; priority is compared before the MAC address.
4. What is a Designated Port?
Answer: The port that advertises the best spanning-tree information for a Layer 2 segment.
5. What is the purpose of an Alternate Port?
Answer: It provides a backup path toward the Root Bridge through another bridge.
