Spanning Tree Protocol operation
Select a root bridge.
Determine the least cost paths to the root bridge.
Disable all other root paths.
Modifications in case of ties.
In summary, the sequence of events to determine the best received BPDU (which is your best path to the root) is
- Lowest root bridge ID - Determines the root bridge
- Lowest cost to the root bridge - Favors the upstream switch with the least cost to root
- Lowest sender bridge ID - Serves as a tie breaker if multiple upstream switches have equal cost to root
- Lowest sender port ID - Serves as a tie breaker if a switch has multiple (non-Etherchannel) links to a single upstream switch
Bridge ID = priority (16 bits) + ID [MAC address] ( 48bits)
default bridge priority is 32768
Port ID = priority (4 bits) + ID [Interface number] ( 12bits)
default port priority is 128
Data rate and STP path cost
The table below shows the default cost of an interface for a given data rate.http://en.wikipedia.org/wiki/Spanning_Tree_Protocol
http://packetlife.net/blog/2008/may/5/spanning-tree-protocol-priorities/
http://www.cisco.com/warp/public/473/spanning_tree1.swf
No comments:
Post a Comment