MSTP Overview 199
Figure 53 A schematic diagram of designated bridges and designated ports
Path cost
Path cost is a reference value used for link selection in STP. By calculating the path
cost, STP selects relatively “robust” links and blocks redundant links, and finally
prunes the network into loop-free tree structure.
n
All the ports on the root bridge are designated ports.
How STP works
STP identifies the network topology by transmitting configuration BPDUs between
network devices. Configuration BPDUs contain sufficient information for network
devices to complete the spanning tree calculation. Important fields in a
configuration BPDU include:
■ Root bridge ID: consisting of root bridge priority and MAC address.
■ Root path cost: the cost of the shortest path to the root bridge.
■ Designated bridge ID: designated bridge priority plus MAC address.
■ Designated port ID, designated port priority plus port name.
■ Message age: age of the configuration BPDU while it propagates in the
network.
■ Max age: maximum age of the configuration BPDU maintained in the device.
■ Hello time: configuration BPDU interval.
■ Forward delay: forward delay of the port.
n
For the convenience of description, the description and examples below involve
only four parts of a configuration BPDU
■ Root bridge ID (in the form of device priority)
■ Root path cost
■ Designated bridge ID (in the form of device priority)
LAN
Device A
Device B Device C
AP 2
BP 1
BP 2
CP 1
CP 2
AP 1