cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
473
Views
0
Helpful
4
Replies

spanning tree, forwarding from from root, how?

dm
Level 1
Level 1

Hello!

 

I have very simple, and  I guess, stupid question.

I understand how switches choose forwarding ports by calculation cost to root.

But how path from root to other switches is calculated?

Let's say we have just two switches, connected by two  1G links.

One of switches is root, how it will find which por use as designated?

As I see on my hardware root uses both.

But if one of links is 1G and another 10G? How root will choose which port to use?

 

Thank you!


 

4 Replies 4

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

But if one of links is 1G and another 10G? How root will choose which port to use?

It is based on port cost.  The lower the cost the better the route/port:

for 1Gig, the default cost is 4.  For 10 Gig the default cost is 2.  So it will choose the 10 gig port.

HTH

Yes, I think that link with less cost will be choosed.

But how? Is there any explanation how it works?

All manuals/examples I can find are about calculation path to root, to down from root.

Could you point me to manual with explanation how forwarding path is calculated down from root?

 

Thank you!
 

Yes, have a look at chapter-6 in this book.  This is the best book with best explanation and examples on how STP works:

http://docstore.mik.ua/cisco/pdf/routing/Cisco%20Lan%20Switching.pdf

HTH

Thank you!

 

I'm mostly L3 guy, this is why I'm asked stupid question.

But , after some time of thinking I understood that root learn mac addresses from link choosed by down switch :-)

 

Review Cisco Networking products for a $25 gift card