Spanning Tree-At-A-Glance: Courtesy of Cisco Enterprise Marketing
Spanning Tree-At-A-Glance: Courtesy of Cisco Enterprise Marketing
Broadcast Storms
A broadcast storm refers to the indefinite flooding of frames.
Broadcast storms can quickly shut down a network.
An example of a broadcast storm is shown below.
Original Broadcast
Secondary
Broadcast
Loop 2
Port Roles
Spanning-Tree works by assigning roles to switches and ports to
ensure only one path through the switched network at any one time.
Segment 1
Designated
Port
Root
Switch Switch
Root
Port
Non-Root
Bridge
Bridge
A
B
There is only one
Designated
Nondesignated
root bridge in any
Port
Port
loop and only one
Segment 2
designated port in
any one segment. On
the root bridge, all ports are
designated. The selection of the root bridge is based on either an
assigned number or on an arbitrary number such as a MAC
address.
PORT STATES
When a link goes down, spanning tree will activate a previously
blocked redundant link. To avoid temporary loops while the network
recalculates paths, the switches will avoid sending traffic until the
network converges on the new information. At any given time, all
switch ports will be in one of the states shown in blue below:
LinkUp Listening
20 seconds
(max-age)
Blocking
15 seconds
(fwd-delay)
802.1D
(STP)
State Transition
Learning
15 seconds
Forwarding
Every port must go through this sequence before it can be set to the
forwarding (traffic passing) state. This process can take up to 50
seconds (a very long time for a switch). In situations where it is
critical to have instantaneous failovers, tools are available that
allow the switch port to immediately go from the blocking state to
the forwarding state (see the Rapid Spanning Tree section below).
On the root bridge, all ports are set to the forwarding state. For the
nonroot bridge, only the root port is set to the forwarding state.
Recalculating Paths
When a link fails, the
Designated
Designated Port
network topology must
Port
Root
XPort
BDPU Not Received
change. Connectivity is
Root
Non-Root
X
Bridge
reestablished by placing Bridge Switch
Switch
A
B
critical blocked ports in
Designated Port
the forwarding state.
Nondesignated
Designated
Port
Port
For example, if the
BDPU is not received
after a timer expires, spanning tree will begin recalculating the network. In the example above, switch B is now the root bridge.
RAPID SPANNING TREE
Looking again at the diagram in the Port States section above,
spanning tree can take up to 50 seconds to converge. Emerging
real-time applications such as voice and video, however, cannot
tolerate such a delay. Rapid Spanning Tree Protocol (RSTP) is the
solution to this problem.
RSTP significantly speeds up the recalculation process after a topology
change occurs in the network. RSTP works by designating an
alternate port and a backup port. These ports are allowed to immediately enter the forwarding state rather than passively waiting for
the network to converge. Edge-port and linktype are new
variables defined in RSTP.
Copyright 2004 Cisco Systems, Inc. All rights reserved. Cisco, Cisco IOS, Cisco Systems, and the
Cisco Systems logo are registered trademarks of Cisco Systems, Inc. and/or its affiliates in the United
States and certain other countries. All other trademarks mentioned in this document or Web site are
the property of their respective owners. The use of the word partner does not imply a partnership
He/LW5810 0304
relationship between Cisco and any other company. (0402R)