Score:1

In the STP root bridge election process, how do switches advertise themselves as the root bridge if all of the ports start in the blocking state?

pl flag
dor

In the STP root bridge election process, all of the switches advertise themselves as the root bridge until they receive a superior BPDU. Every source about STP says that after initialisation all of the ports start in the Blocking state. If the ports are in blocking state, which means they cant forward any frames, how can the switches forward their bridge id in order for the root bridge election process to happen?

Score:1
ar flag

Because Blocked means blocked to user frames. From wikipedia:

A port that would cause a switching loop if it were active. To prevent the use of looped paths, no user data is sent or received over a blocking port. BPDU data is still received in blocking state. A blocked port may go into forwarding mode if the other links in use fail and the spanning tree algorithm determines the port may transition to the forwarding state.

The purpose of STP is to avoid loops in the network, by blocking links that would form a loop. This means blocking frames destined for hosts.

BPDU frames can still be received by a port in the block state.

dor avatar
pl flag
dor
i understand BPDU frames can be recieved, but lets say that we have connected 2 switches in a loop. We turn them on for the first time, if all the ports are only listening for BPDUs and no one can sends any BPDUs, how can a root bridge be elected/
vidarlo avatar
ar flag
One of the switches enters forwarding state as the timer runs down. It starts sending bdpu. The other switch learns about it. Done.
dor avatar
pl flag
dor
thank you vidarlo
Score:0
pl flag
dor

The root bridge election process occurs when the ports are in the listening state. after the default time the ports will transition from blocking to listening, then they would be able to send and receive BPDUs, in order to advertise themselves as the root bridge

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.