Professional Documents
Culture Documents
Spanning-Tree Protocol
Redundant Topologies
Spanning-Tree Protocol
Redundancy
• Increase uptime by having backup media/
network devices
• If a switch fails the redundant switch can take
over
• Adds cost to a network design –
– is the cost in lost sales/lost production/reduced
productivity greater than the additional cost of
hardware?
Redundant Topologies 1
• Khan can reach 10BaseT Ports (12)
Baran via 2 A
paths Host Kahn A
• If the link Hub 00-90-27-76-96-93
00-90-27-76-5D-FE
Redundant Topologies 2
Problem! 10BaseT Ports (12)
• Khan sends an A
ARP broadcast to
find destination Host Kahn A
MAC of Baran Hub 00-90-27-76-96-93
• Frame is
10BaseT Ports (12) A
broadcast by
Khan, Switch A B
(all ports), Switch 1 2 100BaseT
B (all ports) – Host Baran Ports
BROADCAST
STORM 00-90-27-76-5D-FE
Redundant Topologies 3
Another Problem! 10BaseT Ports (12)
• Port A on Switch A
A might think that A
Host Kahn
Host Baran is
Hub
connected to it 00-90-27-76-96-93
00-90-27-76-5D-FE
Loop Prevention
• In networks that have several switches and/or
bridges, there might be physical path loops.
• Physical path loops occur when network devices
are connected to one another by two or more
physical media links.
• The physical loops are desirable for network
fault tolerance because if one path fails, another
will be available. Consider the network layout
shown in Figure 7-8 on the next slide.
Chapter 7 – Spanning-Tree Protocol
CISCO NETWORKING ACADEMY PROGRAM
Logical Loop
• Assume that Host 1, which is attached to Switch
A, sends out a packet addressed to the MAC
address of Host 5.
• There are actually two routes the packet can
travel. The packet can be sent from Switch A to
Bridge C or Bridge D.
• From there, it can be sent to Switch B where it
can be forwarded to Host 5.
Spanning-Tree Protocol
• IEEE standard 802.1D
• Root bridge elected – lowest priority wins based
on bridge priority and MAC address
• 1 path to the root bridge is calculated using
lowest cost link – root port
• Cost based on bandwidth
• Other paths are blocked
• Bridge Protocol Data Units used to carry STP
information
STP states
• Blocking
• Listening
• Learning
• Forwarding
• Disabled
STP Example 1
• Port marked x is 10BaseT Ports (12)
shut down – A
why? Host Kahn A
Hub 00-90-27-76-96-93
00-90-27-76-5D-FE
Port States
• The ports on a switch or bridge can be
configured for different states (stable or
transitory), depending on the configuration of the
network and the events occurring on the
network.
• Stable states are the normal operational states
of ports when the root bridge is available and all
paths are functioning as expected.
STP Example 2
• Why is CAT A
the root bridge?
• Why have the
links marked x
been blocked?
Transitory States
• STP devices use the transitory states on ports
while a new root bridge is being selected.
• During the listening state, STP devices are
configured to receive only the BPDUs that inform
it of network status.
• STP devices use the learning state as a
transition once the new root has been selected,
but all the bridging or switching tables are still
being updated.
Chapter 7 – Spanning-Tree Protocol
CISCO NETWORKING ACADEMY PROGRAM