cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5353
Views
6
Helpful
6
Replies

RSTP diameter calculation

grodoni
Level 1
Level 1

Is this formula (found googling on the web) correct to calculate the diameter (number of hops) on an RSTP Layer2 ring ?

MaxAge=(4x hello)+(2x diameter) -2

by default maxage=20, hello=2, then

the diameter would be 8 ...

Is this correct for RSTP ?

6 Replies 6

Giuseppe Larosa
Hall of Fame
Hall of Fame

Hello Gilberto,

a well designed and implemented RSTP network doesn't make use of maxage concept:

the more advanced BPDU handling should allow to make changes without waiting for max-age expiration:

on each point-to-point link a negotiation process named synchronizatio occurs and the two users will end to agree on port role and state.

Edit:

However, you can use the old rules for more safety

Hope to help

Giuseppe

Thanks Giuseppe.

Ok, but what happens on a ring with 20 switches or more when the root fails ? I saw an RSTP ring built with more than 20 non-Cisco industrial switches that has some troubles converging in case of failure of the root bridge.

There must be a "theoretical" and a "best of practice" limit in a RSTP ring topology....

Hello Gilberto,

if you have a ring topology and the root bridge fails : a new root bridge has to be elected.

With traditional 802.1D without max-age correct settings problem can arise.

With RSTP 802.1W this timer shouldn't play a role.

see

http://www.cisco.com/en/US/tech/tk389/tk621/technologies_white_paper09186a0080094cfa.shtml

the document says that Cisco has implemented a proprietary version of the synchronization process: a simplified version where only the root port is object to handshake.

Also a switch is authorized to accept inferior BPDUs when it loses its connection to the Root Bridge.

As I wrote in my first post you can choice an appropriate value for max-age and other timers that reflects the topology.

if the root bridge fails the ring is broken and all devices have to elect a new root bridge.

Hope to help

Giuseppe

Giuseppe,

thanks a lot for your answer,

I found the attache paper about the rstp convergence problems, which is also referenced in some other writings.

Hello Gilberto,

thanks for the link you have provided in your post.

Even if these are only simulations with a known network modeling tool they show the need for changing the max-age value.

Let us be practical increasing the max-age has no impact during normal and small failures.

Best Regards

Giuseppe

Have a look at the "Characterization of the EttF Cell/Area Zone Design" section of the Ethernet-to-the-Factory design guide. There are also some results of STP loop and convergence tests (up to a 16-switch ring)

http://www.cisco.com/en/US/docs/solutions/Verticals/EttF/ApA_EttF.html

Review Cisco Networking products for a $25 gift card