Professional Documents
Culture Documents
1D
• Spanning Tree protocol is a loop-prevention protocol that prevents loop formation by detecting
redundant links and disabling them until needed.
• Broadcasts and Layer 2 loops can be a dangerous. Loops can occur any time if there is a
redundant path in the bridge network.
• The switches will flip flop the MAC address table entries (creating extremely high CPU
utilization).
• The purpose of STP is to prevent loops in the network by negotiating a loop-free path through a
root bridge.
• STP determines where there are loops and blocks links that are redundant.
• Ensures that there will be only one active path to every destination.
• STP executes an algorithm called Spanning Tree Algorithm (STA). STA chooses a root bridge
then determines the available paths to that root bridge. If more than two paths exists, STA picks
the best path and blocks the rest.
• STP calculations make use of two key concepts in creating a loop-free topology:
• Bridge ID
• Path Cost
Bridge ID (BID)
• If all devices have the same priority, the bridge with the lowest MAC address becomes the root
bridge.
• STP uses the concepts of root bridges, root ports, designated, and non-designated ports to
establish a loop-free path through the network.
• STP forces certain ports into a standby state so that they do not listen to, forward, or flood data
frames. The overall effect is that there is only one path to each network segment that is active
at any time.
The STP algorithm uses three simple steps to converge on a loop-free topology:
• Only one bridge acts as the root bridge in a given network per VLAN.
If the priority for all switches is equal, the switch with lower MAC address becomes the root bridge.
• Specifically, bridges track the Root Path Cost, the cumulative cost of all links to the Root Bridge.
• Non-Designated Ports are put in blocking mode. This is the loop prevention part of STP.
Each Layer 2 port on a switch running STP exists in one of these five port states:
• Blocking: The Layer 2 port is a non-designated port and does not participate in frame
forwarding. Receives only BPDU. Until continuous loop is detected.
• Listening: The port can participate in frame forwarding according to the BPDUs that the
switch has received so far. Builds active topology. Forward delay 15 sec
• Learning: The Layer 2 port prepares to participate in frame forwarding and begins to
building bridging table. Forward delay 15 sec
• Forwarding: The Layer 2 port is considered part of the active topology; it forwards
frames and also sends and receives BPDUs. continuous if up and no loop is detected
• Disabled: The Layer 2 port does not participate in spanning tree and does not forward
frames. Administratively shutdown. until no shutdown is issued
Rapid Spanning Tree Protocol (RSTP) 802.1w is a standards-based, nonproprietary way of speeding STP
convergence.
• RSTP is based on IEEE 802.1w standard.
• IEEE 802.1w took 802.1D’s principle concepts and made convergence faster.
• RSTP (802.1w) supersedes 802.1D, while still remaining backward compatible.
• RSTP BPDU format is the same as the IEEE 802.1D BPDU format, except that the Version field is
set to 2 to indicate RSTP.
• The RSTP spanning tree algorithm (STA) elects a root bridge in exactly the same way as
802.1D elects a root.
• RSTP defines the additional port roles of Alternate and Backup and defines port states as
discarding, learning, or forwarding.