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?

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?


Solution 1:

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.