1-4Table 1-2 Selection of the optimum configuration BPDUStep Actions1Upon receiving a configuration BPDU on a port, the device performs the following:z If the received configuration BPDU has a lower priority than that of theconfiguration BPDU generated by the port, the device discards the receivedconfiguration BPDU and does not process the configuration BPDU of this port.z If the received configuration BPDU has a higher priority than that of theconfiguration BPDU generated by the port, the device replaces the content ofthe configuration BPDU generated by the port with the content of the receivedconfiguration BPDU.2 The device compares the configuration BPDUs of all the ports and chooses theoptimum configuration BPDU.The following are the principles of configuration BPDU comparison:z The configuration BPDU that has the lowest root bridge ID has the highest priority.z If all the configuration BPDUs have the same root bridge ID, their root path costs are compared.Assume that the root path cost in a configuration BPDU plus the path cost of a receiving port is S.The configuration BPDU with the smallest S value has the highest priority.z If all configuration BPDUs have the same S value, their designated bridge IDs, designated port IDs,and the IDs of the receiving ports are compared in sequence. The configuration BPDU containing asmaller ID wins out.z Selection of the root bridgeInitially, each STP-enabled device on the network assumes itself to be the root bridge, with the rootbridge ID being its own device ID. By exchanging configuration BPDUs, the devices compare their rootbridge IDs to elect the device with the smallest root bridge ID as the root bridge.z Selection of the root port and designated ports on a non-root deviceThe process of selecting the root port and designated ports is as follows:Table 1-3 Selection of the root port and designated portsStep Description1 A non-root device regards the port on which it received the optimum configurationBPDU as the root port.2Based on the configuration BPDU and the path cost of the root port, the devicecalculates a designated port configuration BPDU for each of the rest ports.z The root bridge ID is replaced with that of the configuration BPDU of the rootport.z The root path cost is replaced with that of the configuration BPDU of the rootport plus the path cost of the root port.z The designated bridge ID is replaced with the ID of this device.z The designated port ID is replaced with the ID of this port.