cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3960
Views
28
Helpful
16
Replies

RSTP convergence few questions

RomanB1005
Level 1
Level 1

Hello all

I study RSTP and I'm really confused

What are the steps of convergence in RSTP , For example in case of implementing another switch into running topology.

So let the look on my understanding of RSTP convergence ..
Few questions ...


1. I put a switch somewhere into center of topology far far away from root sw
    He Boots up and , now starts elect a root ports , designated ports as in 802.1D ? or he puts all non edge ports into "designated discarding" state and   starts sync process ?

2. Only switches directly connected to the new switch start sync process ? or it runs chain reaction in whole topology , all switches start proposal process ?

3. With what port it starts proposal process , with port that has best root path ? and the other ports are still listening ? and generating BPDUS ?

Perhaps a dump questions , then in advance sorry for that

16 Replies 16

Ports connected to a shared link may theoretically become immediately forwarding if they are identified as Alternate Discarding and the current root port fails. Apart from this, no rapid convergence on shared links should take place. It would be necesssary to see your configuration and show spanning-tree output to see what is going on.

The case in that both ports on both acess switches is in forwarding state, blocking port located on link between them.

But i found out that it is possible - fast convergence on shared link, in case when all ports threated as full duplex by default - but this situation can lead to temporary loops, cos designated switch will unblock port after first agreement receiving, without awaiting other bridges confirm that all ports put in sync state. But in my case all ports mannualy set to shared link-type, so this is not aplicable to my situation. But i have big doubts now that maybe i really fixed link type after i saw how fast segment converge - will try check behaviour next maintain window and report.

Besides Peter, maybe you can help me with understanding this:

Recently i decide to refresh my knowledges of STP and red Uderstanding RSTP document over and noticed interesting (for me at least) thing -

new to RSTP flags - describing portrole has bits pointed to  Alternate/Backup state of port. Question is - in what circumstances its  possible to receive BPDU with such flag?

And other question - why is Discarding state ommited in the flag? From my opinion here two options for appearing such state:

  • Proposal bit can appear only on port in Designated Discarding state - so to describe this state flag bit for Discarding state required
  • If Alternate/Backup role of port is presented, its seems to be logical that this port role most of time corresponds to Discarding state and BPDU with such role may have flag with bit pointed to Discarding state

Hello Alexey,

But i found out that it is possible - fast convergence on shared link, in case when all ports threated as full duplex by default

This is rather untypical scenario. A shared link that works on a full duplex is usually caused by a non-STP switch interconnecting a bunch of other switches together. This will cause the other switches to have their link operating in full duplex and leading the STP implementation to a mistaken conclusion that the link is of the point-to-point type.

Please note that the derivation of the link type (p2p/shared) depending on the duplex setting is only a simple heuristic implemented by Cisco. It is absolutely not supported by the STP standard. What Cisco switches do is a simple educated but still naive guess - if the link operates in half duplex then it must be connected to a hub, because a hub is never able to operate in full duplex, and hence the link is shared. Otherwise, if the link operates in full duplex, it is probably directly connected to other switch and that switch is expected to run STP, hence the p2p mode. But the situation when a number of switches is interconnected by a non-STP switch is a non-standard scenario and can not be handled automatically.

There is no guaranteed way of detecting the link type (p2p/shared), and there is no guaranteed way of detecting the port type (edge/non-edge). That is why you have to be very careful about the real physical topology, and configure the ports appropriately.

new to RSTP flags - describing portrole has bits pointed to   Alternate/Backup state of port. Question is - in what circumstances its   possible to receive BPDU with such flag? 

A very good question that has caught me quite unprepared! Clearly, we know that usually ports in Alternate/Backup role do not send BPDUs.

One thing coming to my mind is a feature introduced by Cisco called the Bridge Assurance where all ports send BPDUs, regardless of their role/state, and the BPDUs therefore become a fully fledged Hello mechanism. In this case, it would make sense.

Another use may arise in MSTP when a port may be in a different role/state in different instances. As MSTP uses a single large BPDU to describe all instances, there can be situations in MSTP where opposite ports on the same link both send MSTP BPDUs.

In general, however, I have a feeling that the role flags were added to the RSTP BPDUs primarily for debugging purposes, not necessarily to perform any explicit action. They are being used in recent implementations as a means to prevent unidirectional links (the so-called Dispute mechanism) but as far as the standard goes, there is no much usage described.

And other question - why is Discarding state ommited in the flag?

Perhaps it is because the Learning/Forwarding bits have to be interpreted slightly differently. If you capture RSTP BPDUs, you will see that these BPDUs sent from a  Designated Forwarding port carry both Learning and Forwarding flags set. That would implicate the following interpretation:

  • If a port forwards frames, the Forwarding bit will be set. Otherwise, it will be cleared, signifying either Discarding or Learning states.
  • If a port learns MAC addresses, the Learning bit will be set. Otherwise, it will be cleared. So, having both Learning and Forwarding bits cleared, we have the Discarding state. Having Learning set to 1 and Forwarding clear, we have the Learning state. Having both Learning and Forwarding bits set to 1, we have the Forwarding state. There is no meaning for Learning=0, Forwarding=1.

Proposal bit can appear only on port in Designated Discarding state - so to describe this state flag bit for Discarding state required

Not true - Proposals are set on BPDUs sent from Designated/Discarding and Designated/Learning ports.

If Alternate/Backup role of port is presented, its seems to be logical  that this port role most of time corresponds to Discarding

All the time - not most of the time. An Alternate/Backup port can never be on a way to Forwarding state and hence be in the transitory Learning state.

Best regards,

Peter