cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2840
Views
0
Helpful
5
Replies

stp, root port does not receive bpdu for 20 sec

sarahr202
Level 5
Level 5

Hi every body!

I have this question.

Let say three switches, sw1,sw2 and sw3 are connected in traingle, with switch sw1 as a root bridge.

Sw2 for some reason, stops receiving bpdu on its root port for more than 20 seconds.

1) what would happen to root port now? will it become designated port?

2) will the root port though not receiving any bpdu, will remain in forwarding state?

thanks a lot!

1 Accepted Solution

Accepted Solutions

Diego Vargas
Cisco Employee
Cisco Employee

Hi,

1) what would happen to root port now? will it become designated port?

Yes

2) will the root port though not receiving any bpdu, will remain in forwarding state?

Yes

Since sw2 stops receiving BPDUs from sw1 it would assume that he is the Root but sw3 will advise that sw1 has better priority and will tell sw2 that sw1 is root and can be reach though him.

The port in Sw2 connected to sw3 will become the root port and will be forwarding while the port to sw1 will be designated and sending BPDUs. This will cause a loop

The way to prevent this issue would be to use UDLD. This feature would prevent the problem since the issue is not that the link is down but that not BPDUs are received, this could be caused by Unidirectional problems (either caused by a software issue or a problem on the fiber), then UDLD should prevent a loop from showing up.

View solution in original post

5 Replies 5

Diego Vargas
Cisco Employee
Cisco Employee

Hi,

1) what would happen to root port now? will it become designated port?

Yes

2) will the root port though not receiving any bpdu, will remain in forwarding state?

Yes

Since sw2 stops receiving BPDUs from sw1 it would assume that he is the Root but sw3 will advise that sw1 has better priority and will tell sw2 that sw1 is root and can be reach though him.

The port in Sw2 connected to sw3 will become the root port and will be forwarding while the port to sw1 will be designated and sending BPDUs. This will cause a loop

The way to prevent this issue would be to use UDLD. This feature would prevent the problem since the issue is not that the link is down but that not BPDUs are received, this could be caused by Unidirectional problems (either caused by a software issue or a problem on the fiber), then UDLD should prevent a loop from showing up.

or we can use loop guard feature as well.

sarahr202, if the Root Port is not receiving BPDUs from a Designated Port on the other side or Root Bridge which is also for (Designated Port), then the Root Port will think by itself: "Hang on, we got a problem, I haven't heard from the DP for 20 seconds, he must be dead or there is a problem, I will transition my BLK Port into de Designated (Forwarding state). So this is what it really happens, but yes, we also can configure this Port with the Loop Guard feature which will force the port to stay in BLK mode even it haven't heard for 20 seconds from DP.

I think best option is to use loop guard. Here is why:

Udld may work or may not work.

If Udld is configured on sw1 and sw2 and sw2 is receiving udld messages but not bpdu from sw1, then port won't be put in erridisable state and the loop would form.

If sw2 does not receive udld message, asuming aggressive mode is configured then sw2 will send udld message every second for 7 seconds , if sw2 still does not receive any echo from sw1, then sw2 put its port(root port in our case) in erri disable state.

thanks alot!

Mike Soha
Level 1
Level 1

Can we expand this topic to discuss the scenario of the loss of the Root Bride, SW 1?    Thanks 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco