Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

STP costs

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
Silver

Re: STP costs

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

Thanks.

Re: STP costs

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

New Member

Re: STP costs

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?

Silver

Re: STP costs

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.

317
Views
0
Helpful
4
Replies
CreatePlease to create content