10-4
Catalyst 3550 Multilayer Switch Software Configuration Guide
78-11194-03
Chapter10 Configuring STP
Understanding Basic STP Features
The removal of loops in the switched network by blocking Layer 2 interfaces conne cted to redundant
links
For each VLAN, the switch with the highest switch priority (the lowest numerical priority value) is
elected as the root switch. If all switches are configured with the default pr iority (32768), the switch wi th
the lowest MAC address in the VLAN becomes the root switch. The switch priority value occupies the
most significant bits of the bridge ID.
When you change the switch priority value, you change the probability that the switch will be elected as
the root switch. Configuring a higher value increases the probability; a lower value decreases the
probability.
The root switch is the logical center of the STP topology in a switched network. All paths that are not
needed to reach the root switch from anywhere in the swi tche d ne two rk are pla ced in STP bloc king
mode.
BPDUs contain information about the sending switch and its ports, including switch and MAC
addresses, switch priority, port priority, and p ath c o st. STP uses this information to elect the root switch
and root port for the switched network and the root port and designated port for each swit ched segment.
Bridge Protocol Data Units
The stable, active STP topology of a switched network is det ermi n ed by t hes e e lem en ts:
The unique bridge ID (switch priority and MAC address) associated with each VLAN on each
switch
The STP path cost to the root switch
The port identifier (port priority and MAC address) associated with each Layer 2 interface
The BPDUs are sent in one direction from the root switch, and each sw itch sends configuration BPDUs
to communicate and to compute the STP topology. Each configuration BPDU con tains this information:
The unique bridge ID of the switch that the sending switch identifies as the root switch
The STP path cost to the root
The bridge ID of the sending switch
Message age
The identifier of the sending interface
Values for the hello, forward delay, and max-age protocol timers
When a switch sends a BPDU frame, all switches connected to the LAN on which the frame is sent
receive the BPDU. When a switch receives a BPDU, it does not forward the frame but instead uses the
information in the frame to calculate a BPDU, and, if the topology changes , start s a BP DU trans missi on.
A BPDU exchange results in these actions:
One switch is elected as the root switch.
The shortest distance to the root switch is calculated for e ach swit ch ba se d on t he pa th co st.
A designated switch for each LAN segment is selected. The designated switch is the one closest to
the root switch through which frames are forwarded to the root.
A root port is selected. This port provides the best path from the switch to the root switch.
Interfaces included in the spanning-tree instance are selected.
All interfaces not included in the spanning tree are blocked.