On an STP network, the root bridge, root port, and designated port are selected based on the BPDU priority vector {root ID, root path cost, sender BID, PID}, as described in Table 1.
Field |
Description |
---|---|
Root ID |
ID of the root bridge. |
Root path cost |
Path cost to the root bridge. The distance between the port sending the configuration BPDU and the root bridge determines the path cost. |
Sender BID |
BID of the device that sends configuration BPDUs. |
PID |
PID of the port that sends configuration BPDUs. |
Upon receipt of a configuration BPDU, a device on an STP network compares the fields listed in Table 1 with its own values. The compared information is as follows:
After the root bridge, root port, and designated ports are selected successfully, a tree topology is set up on the entire network. When the topology is stable, only the root port and designated ports forward traffic. The other ports are in Blocking state; they only receive STP BPDUs and do not forward user traffic.