04-10-2020 03:28 AM
When a switch enabled with STP boots up, all switch ports transition through a series of STP port states before finally reaching a forwarding state (for those that can without causing a loop).
Crucially, all these ports start out in the blocking state and lasts for 20 seconds by default.
Switching, Catalyst 2000
As I've read in numerous networking books on STP that cover the original IEEE 802.1D specification and PVST/PVST+, ports in the blocking STP state receive/process incoming BPDUs to the port, but do not send BPDUs.
These same sources also mention that when switches enabled with STP start up, they will all start claiming to be the root switch by sending out BPDUs that lists their BID in both the Sender BID and Root ID fields.
I can't see how both above points can be true, unless the point at which a switch claims to be the root after boot up occurs during the listening state that follows the blocking state (when a port can both forward and receive BPDUs). Unless this is just an exception to the rule for the blocking state...
Hoping someone can clarify for me please!
Thanks
04-10-2020 05:23 AM
It's been a bit, so I hope I can do this well enough.
Here's the point I get from the document here https://www.cisco.com/c/en/us/td/docs/routers/access/3200/software/wireless/SpanningTree.html#wp1040546 :
Also, there is this in the same document:
When the bridges in a network are powered up, each bridge functions as the STP root. The bridges send configuration BPDUs through the Ethernet and radio ports.
So, yes, I believe this fits your exception to the rule assumption.
04-14-2020 08:03 PM - edited 04-14-2020 08:06 PM
well, It's true, Blocking port only listens and does not send any BPDUs but it does not take 20 seconds to go into next state. It is usually must faster, 2-3 seconds.
I have seen that 20 sec default value somewhere but I have not catch port being "blocking" state once switch came up. It might go back into Blocking state once it has chance to figure out its role in topo.
Port must move to Listening state to send its BPDUs out. Unless a port has received Superior BPDU from neighbor, it will start sending its own BPDUs to claim to be new Root Sw.
see process examples https://community.cisco.com/t5/switching/switch-still-send-bpdu-in-whole-listening-state/td-p/3906335
Regards, ML
**Please Rate All Helpful Responses **
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide