Free Cisco CCNA, CCNP, CCENT Tutorial on Switching, Spanning-Tree Protocol (STP)

A Layer 2 switch, which functions as abefore they are opened for use, and redundant
transparent bridge, offers no additional links forlinks are shut down to prevent the loops from
redundancy purposes. To add redundancy, aforming. STP is communicated between all
second switch must be added. Now two switchesconnected switches on a network. Each switch
offer the transparent bridging function in parallel.executes the Spanning-Tree Algorithm
LAN designs with redundant links introduce the(STA)based on information received from other
possibility that frames might loop around theneighboring switches. The algorithm chooses a
network forever. These looping frames wouldreference point in the network and calculates all
cause network performance problems.the redundant paths to that reference point.
For example, when the switches receive anWhen redundant paths are found, STA picks one
unknown unicast, both will flood the frame out allpath to forward frames with and disables or
their available ports, including the ports that link toblocks forwarding on the other redundant paths.
the other switch, resulting in what is known as aSTP computes a tree structure that spans all
bridging loop, as the frame is forwarded aroundswitches in a subnet or network. Redundant paths
and around between two switches. This occursare placed in a blocking or standby state to
because parallel switches are unaware of eachprevent frame forwarding. The switched network
other. The Spanning-Tree Protocol (STP), whichis then in a loop-free condition. However, if a
allows the redundant LAN links to be used whileforwarding port fails or becomes disconnected,
preventing frames from looping around the LANthe STA will run again to recomputed the
indefinitely through those redundant links, wasSpanning-Tree topology so that blocked links can
developed to overcome the possibility of bridgingbe reactivated. By default, STP is enabled on all
loops. It enables switches to become aware ofports of a switch. STP should remain enabled in a
each otherso that they can negotiate a loop-freenetwork to prevent bridging loops from forming.
path through the network. Loops are discovered