I'm reading a book that talks about STP.
They give a diagram of 3 switches that are competing for root bridge status. My question is when does the election end exactly? The book talks about the process of exchanging BPDU's with each switch advertising themselves as root bridge. Then after they realize their buddy next to them has a better a bridge ID they advertise him as the root bridge.
So now we have all three switches realizing one of them is root bridge. When does the election end exactly? After they receive 5 consecutive BPDU's stating that SW1(switch 1) is root bridge? Are their timers? It never mentions exactly how it ends. It just says SW1 wins!!! How did they decide SW1 wins?