Module 04 LAN Switching
Chapter 15
Trang 2Objectives
Upon completion of this chapter, you will be able to perform the following tasks:
Describe redundancy in switched networkDescribe how STP works
Trang 3Redundant Topology
Redundant topology eliminates single points of failure
Redundant topology causes broadcast storms, multiple frame copies, and MAC address table instability problems
Segment 1
Segment 2
Trang 5Multiple Frame Copies
•Host X sends an unicast frame to Router Y
•Router Y MAC Address has not been learned by either Switch yet
Trang 6MAC Database Instability
•Host X sends an unicast frame to Router Y
Trang 7MAC Database Instability
•Host X sends an unicast frame to Router Y
•Router Y MAC Address has not been learned by either Switch yet
•Switch A and B learn Host X MAC address on port 0
•Frame to Router Y is flooded
Trang 9Solution: Spanning-Tree Protocol
Provides a loop free redundant network topology by placing certain ports in the blocking state
Block
Trang 10Spanning-Tree Operations
Spanning-Tree Operations
•One root bridge per network
•One root port per nonroot bridge
•One designated port per segment
x
Designated port (F) Root port (F)
Designated port (F)Nondesignated port (B)
Root bridgeSW XSW YNonroot bridge100baseT
Trang 11Switch YDefault priority 32768 (8000 hex)MAC 0c0022222222Switch XDefault priority 32768 (8000 hex) MAC 0c0011111111
Spanning-Tree Protocol Root Bridge Selection
Spanning-Tree Protocol Root Bridge Selection
BPDU
BPDU = Bridge protocol data unit
(default = sent every 2 seconds)
Root bridge = Bridge with the lowest bridge IDBridge ID = Bridge priority + bridge MAC address
Trang 13Spanning-Tree Protocol Path Cost
Trang 14Switch YMAC 0c0022222222Default priority 32768Switch XMAC 0c0011111111Default priority 32768 Port 0Port 1Port 0Port 1Switch ZMac 0c0011110000Default priority 32768Port 0
Can you figure out:
• What is the root bridge?
• What are the designated, nondesignated, and root ports?100baseT
100baseT
Trang 15Switch YMAC 0c0022222222Default priority 32768Switch XMAC 0c0011111111Default priority 32768 Port 0Port 1Port 0Port 1Switch ZMac 0c0011110000Default priority 32768Port 0
Can you figure out:
• What is the root bridge?
Trang 16Blocking (20 sec)Listening (15 sec) Learning (15 sec)Forwarding
Spanning-Tree Port States
Spanning-Tree PortStates
Trang 17Reacting to Network Change
Trang 19Key Issue: Time to Convergence
•Convergence occurs when all the switch and bridge ports have transitioned to
either the forwarding or blocking state
•When network topology changes,
switches and bridges must recompute the Spanning-Tree Protocol, which
Trang 20Optional to SPT Features
Etherchanel
• Etherchanel provides a way to prevent STP
convergence from being needed when only one port or cable failed
•Etherchanel combines from 2 to 8 parallel
ethernet trunks between the same pair of switches-> etherchanel
Trang 21Optional to SPT Features
Portfast
• Portfast allows a switch to place a port in forwading state immediately when the port becomes physically active.
• The port should not connect to bridges, switches or other STP speaking device•The Cisco BPDU Guard feature, if
Trang 22Rapid Spanning Tree
Pt-pt link
Share link
Trang 23Summary
Upon completion of this chapter, you will be able to perform the following tasks:
Describe redundancy in switched networkDescribe how STP works