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

STP costs

fjcardenas-1
Level 1
Level 1

One doubt: When calculating the cost of a nonroot switch to the root switch... do you add only the costs of outgoing interfaces on the path from the nonroot to the root or do you add the cost of all interfaces in every segment? I hope my question is clear.

4 Replies 4

rais
Level 7
Level 7

The Cost is added to BPDUs coming inwards to the switch port.

Thanks.

Istvan_Rabai
Level 7
Level 7

Hi Francisco,

You should accumulate the costs of interfaces going on the path from the nonroot switch toward the root switch.

This basically expresses the cost of transmitting a packet to the root switch from a specific nonroot switch.

Cheers:

Istvan

I am reading a book that shows an example were they add only the outgoing interfaces in the path from the nonroot to the root. That confused me.

So, what you really do is add all the costs of interfaces in the path to the root. For example: If You have SW Root ---- SW1 ----- SW2 (all with FastEthernet - considering default costs), then the cost from SW2 to Root would be 19+19+19+19?.. is that right?.

Or... SW2 receives a BPDU form SW1 with cost of 38, then the cost to reach Root would be 38 (received BPDU cost) + 38 (the cost of the two interfaces in the link from SW2 to SW1).... is that right?

When a BPDU leaves Root SW, it has zero cost. When it enters SW1 the cost to root would be 19, when it enters SW2, the cost to root would be 19+19 = 38.

Incoming Direction = coming from root into SW1's Root Port which is FastEthernet [cost=19]in this case.

Thanks.

Review Cisco Networking for a $25 gift card