Spanning Tree – Root Bridge
Every spanning tree switched network or broadcast domain has a switch designated as the root bridge. The root bridge serves as the reference point for all spanning-tree enabled switches. The spanning tree algorithm determines which redundant paths to block. It is selected as an election process.
The figure below illustrates the bridge ID (BID) fields. BID is a unique identity when the switch is the part of a network. It is a 64 bits field which is divided into three parts. The first part is 4 bits Bridge Priority field, the second field is 12 bits extended system ID while the third part is the 48 bits MAC address of the switch. The Bridge Priority is configurable while the MAC address is unique among all switches and the sum of these two ensure a unique Bridge ID.
Root Bridge election
All switches in the broadcast domain join the election process. When switches complete their booting process, it begins sending out BPDU frames every two seconds containing the switch BID and the root ID. The adjacent switches receive the BPDU frames and read the root ID information from the BPDU frames. If the root ID of BPDU sending switch is lower than the root ID on the receiving switch, then the receiving switch updates its root ID, identifying the adjacent switch as the root bridge.
It doesn’t need to be the adjacent switch. It could be any other switch in the broadcast domain. The switch then sends out new BPDU frames with the lower root ID to the other adjacent switches. Finally, the switch with the lowest BID ends up being selected as the root bridge for the spanning-tree instance.
Now look the election process at another angle. Before configuring the bridge priority manually all the switches have a default priority, therefore, it is a tie based on priority. Now, the switch with the lowest Mac address will become a root bridge. In the figure below switch-3 is elected as Root Bridge because the bridge priority ID is default which is 32769, So the switches elect root bridge based on MAC address. The switch-3 is the lowest MAC address, so all the ports of the root bridge become in the forwarding state i.e. designated port.
Spanning Tree Algorithm - Path Cost » Networkustad
October 19, 2019 @ 6:29 pm
[…] is determined using the sum of the individual port costs along the path from the destination to the root bridge. Each “destination” is a switch port. The default port costs are defined from the speed of the […]
802.1D Bridge Protocol Data Unit (BPDU) Frame Format » Networkustad
October 22, 2019 @ 2:06 am
[…] spanning tree algorithm exchange Bridge Protocol Data Unit (BPDU) to elect Root Bridge. It is a frame containing 12 different fields with different information. The information in the […]
Types of Spanning-Tree Protocols » Networkustad
October 24, 2019 @ 2:56 pm
[…] of using only one Root Bridge, the CPU and memory requirements for CST are lower than for the other protocols. However, because […]
Spanning-Tree Bridge ID configuration » Networkustad
October 27, 2019 @ 5:24 pm
[…] configuring a specific switch as Root Bridge, the bridge ID priority value must be adjusted to make sure as lower than all the bridge priority […]
PVST+ Load Balancing » Networkustad
October 29, 2019 @ 6:07 pm
[…] configured in the network, VLAN 100 and 200. The purpose is to configure Switch-1 as the primary root bridge for VLAN 100 and the secondary root bridge for VLAN 200 and Switch-2 as the primary root bridge for […]