spanning tree protocol stp stp 1. 2 3 4 5 a broadcast storm occurs when there are so many broadcast...
TRANSCRIPT
Spanning Tree ProtocolSpanning Tree Protocol
STPSTP
1
TopicsTopics
2
• REDUNDANT LINKSREDUNDANT LINKS
• Issues (layer2 loop - broadcast storm - Duplicate Unicast Issues (layer2 loop - broadcast storm - Duplicate Unicast frame)frame)
• Spanning tree algorithmSpanning tree algorithm
• Choose the root bridgeChoose the root bridge
• Select root portsSelect root ports
REDUNDANT LINKSREDUNDANT LINKS
3
layer2 looplayer2 loop
4
broadcast stormbroadcast storm
5
A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available bandwidth is consumed.
1
2
12
1
2
3
1
1
2
2
Duplicate Unicast frameDuplicate Unicast frame
6
BPDUBPDU
7
3276932769 000A00222222000A00222222
BRIDGE PROTOCOL DATA BRIDGE PROTOCOL DATA UNITUNIT
Choose the root bridgeChoose the root bridge
8
• Each switch has a bridge ID (BID) of priority value followed by MAC address
• Switches exchange Bridge Protocol Data Units (BPDUs) to compare bridge IDs
• The switch with the lowest bridge ID becomes the root bridge
• Administrator can set the priority to fix the selection
Spanning tree algorithmSpanning tree algorithm
9
The switches use this algorithm to decide which ports should be shut down.
1. Choose one switch to be “root bridge”
2. Choose a “root port” on each other switch
3. Choose a “designated port” on each segment.
4. Close down all other ports.
• Every non-root bridge (Switch) selects a root port
• This is the port with the lowest cost path to the root bridge
Select root portsSelect root ports
Set by IEEE
Choose the port on the switch with the lower bridge ID.
Suppose this is switch B.
If the cost is same and Close down If the cost is same and Close down redundant linksredundant links
Best pathBest path
13
Video
14
https://www.youtube.com/watch?v=ihF_78oIaDI