RSTP(Rapid Spanning Tree Protocol)



RSTP(Rapid Spanning Tree Protocol)

Rapid Spanning Tree Protocol (RSTP) is an evolution of the Spanning Tree Protocol (STP) standardized by the IEEE 802.1w standard. RSTP improves the convergence time of the spanning tree after a topology change occurs in the network. Here's a deeper dive into its workings:

Port Roles:

  • RSTP introduces three port roles: designated, root, and alternate. These roles determine how traffic flows through the network.
  • Designated ports are responsible for forwarding traffic on a segment.
  • Root ports are those that have the best path to the root bridge.
  • Alternate ports are backup paths to the root bridge in case the root port fails.

Port States:

  • RSTP simplifies the port states compared to STP. It has only three states: Discarding, Learning, and Forwarding.
  • Discarding: The port doesn't forward frames but still listens to BPDUs to determine the network topology.
  • Learning: The port listens to BPDUs and starts populating its MAC address table but doesn't forward user traffic.
  • Forwarding: The port is fully operational, forwarding both BPDUs and user traffic.

Fast Convergence:

  • RSTP speeds up the convergence process compared to traditional STP. Convergence time is typically in the order of a few seconds, rather than the 30 to 50 seconds required by STP.
  • This is achieved through mechanisms like rapid transition to the forwarding state on designated ports and the elimination of the Listening and Learning states.

BPDU Timers:

  • RSTP optimizes the BPDU (Bridge Protocol Data Unit) exchange process. It uses faster BPDU timers, such as the hello time and the max age, to speed up the convergence.
  • Hello Time: Interval at which BPDUs are sent.
  • Max Age: Maximum time a switch waits to receive a BPDU before it considers its own configuration expired.

Proposal/Agreement Mechanism:

  • RSTP introduces a proposal/agreement mechanism to synchronize the spanning tree topology changes more efficiently.
  • When a port detects a topology change, it sends a proposal to the adjacent switch. If the adjacent switch agrees, the port immediately transitions to the forwarding state.

Port Costs:

  • RSTP retains the concept of port costs, which are used to select the best path to the root bridge. Lower costs indicate better paths.
  • Port costs are calculated based on the link speed. Higher-speed links have lower costs.
Backward Compatibility:
  • RSTP is backward compatible with traditional STP. If a switch running RSTP detects an STP-enabled switch on a link, it falls back to STP operation on that link to maintain interoperability.

RSTP significantly improves the efficiency and convergence time of spanning tree networks, making it suitable for modern high-speed Ethernet networks.


Configuration 

RSTP is typically enabled by default on modern switches. However, you may need to explicitly enable it if it's not already enabled. This is usually done in the switch's global configuration mode.


Enter Global Configuration Mode:


Configure Interface 1/1/1

Configure Portfast

  1. Purpose:

    1. PortFast is designed to allow access ports to bypass the usual spanning tree listening and learning states, immediately transitioning to the forwarding state.
    2. It's used primarily for ports where you know there will be no switches or loops connected, such as ports connecting to end-user devices.
  2. Functionality:

    1. When PortFast is enabled on a port, it goes directly from the blocking state to the forwarding state.
    2. This allows devices connected to the port to immediately begin sending and receiving traffic without waiting for the normal spanning tree convergence process.
  3. Usage Scenarios:
    1. End-user devices like computers, printers, and servers are typical candidates for PortFast-enabled ports.
    2. Any port where you're confident there won't be any switch-to-switch connections can benefit from PortFast.



















network source

Previous Post Next Post