Jeremy’s IT Lab lecture video:

Day 22 - Rapid Spanning Tree Protocol (3)


Commands


Rapid Spanning Tree Information

The protocol version identifier for RSTP is 2

Spanning Tree Versions

Spanning Tree has industry-standard (IEEE) versions and Cisco proprietary versions.

  1. Industry Standards (IEEE)
    • Spanning Tree Protocol (802.1D)
      • The original STP.
      • All VLANs share one STP instance. Therefore, cannot load balance.
    • Rapid Spanning Tree Protocol (802.1w)
      • Much faster at converging/adapting to network changes than 802.1D.
      • All VLANs share one STP instance. Therefore, cannot load balance.
    • Multiple Spanning Tree Protocol (802.1s)
      • Uses modified RSTP mechanics.
      • Can group multiple VLANs into different instances (ie. VLANs 1-5 in instance 1, VLANs 6-10 in instance 2) to perform load balancing.
  2. Cisco proprietary
    • Per-VLAN Spanning Tree Plus (PVST+)
      • Cisco’s upgrade to 802.1D.
      • Each VLAN has its own STP instance.
      • Can load balance by blocking different ports in each VLAN.
    • Rapid Per-VLAN Spanning Tree Plus (Rapid PVST+)
      • Cisco’s upgrade to 802.1w
      • Each VLAN has its own STP instance.
      • Can load balance by blocking different ports in each VLAN.

Similarities between STP and RSTP

  • RSTP has the same purpose as STP.
  • RSTP elects a root bridge with the same rules.
  • RSTP elects root ports with the same rules.
  • RSTP elects designated ports with the same rules.

RSTP Port States

  • If a port is administratively disabled (with shutdown command), it’s in a discarding state.
  • If a port is enabled, but blocking traffic to prevent Layer 2 loops, it’s in a discarding state.

RSTP Port Roles

  • The root port role remains unchanged in RSTP.
  • The designated port role remains unchanged in RSTP.
  • The non-designated port is split into two separate roles in RSTP:
    1. Alternate port
      • The alternate port role is a discarding port that receives a superior BPDU from another switch.
      • It serves as a backup to the root port. If the root port fails, the switch can immediately change to its best alternate port to forwarding.
    2. Backup port
      • The backup port is discarding port that receives a superior BPDU from another interface on the same switch. (This only happens when two interfaces are connected to the same collision domain through a hub)
      • It serves as a backup to the designated port.
      • The interface with the lowest Port ID will be selected as the designated port, and the other will be the backup port.

RSTP New Built-in Functionalities

  1. UplinkFast
    • When a root port goes down, the switch changes to the alternate port for forwarding. This feature is similar to the classic STP optional feature, UplinkFast.
  2. BackboneFast
    • BackboneFast allows switches to expire the max age timer on interfaces and rapidly forward superior BPDUs to other switches.

RSTP BPDUs

In classic STP, only the root bridge sent BPDUs and other switches forwarded them. In RSTP, all switches running RSTP send their own BPDUs every hello time (2 seconds by default) from their designated ports.

  • In classic STP, a switch waits 10 hello intervals (20 seconds) before considering a neighbor to be lost.
  • In RSTP, a switch considers a neighbor lost if it misses 3 BPDUs (6 seconds). It will then flush all MAC addresses learned on that interface.

There are 3 different link types:

  1. Edge
    • A port that is connected to an end host. Moves directly to forwarding, without negotiation.
  2. Point-to-point
    • Direct connection between two switches. Operates in full-duplex.
  3. Shared
    • Connection to a hub. Must operate in half-duplex.