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

Spanning-tree:how do I determine root port, if 2 paths have same cost?

news2010a
Level 3
Level 3

I pasted another one including attachment :-)

Hi, can you clarify this?

Imagine my "root" bridge has been identified. Please find attached diagram. Then I have two switches "Switch2" and "Switch3". I understand that at that point a root port for each switch should be determined determined based on the lowest cost to get to root bridge. If I look at "Switch3", what happens if I have two paths with same cost to get to "Root"?

Which path the STP algorithm would take at that point thus making that the "Root Port" and the path with the highest cost the "blocked" port??

4 Replies 4

jarvar832004
Level 1
Level 1

Generally the root port is elected based on the lowest cost to the root bridge (bandwidth based). In case the cost remains the same the tie breaking criteria is Lowest Sender Port ID.

Jon Marshall
Hall of Fame
Hall of Fame

Hi

The root port will be determined by the following

1) Lowest Root path cost. if these are equal

2) Lowest sending Bridge ID. If these are equal

3) Lowest Port ID

HTH

Jon

Friend,

STP uses the following order sequence to decide on its parameters

Step 1. Lowest Root BID

Step 2. Lowest Path Cost to Root Bridge

Step 3. Lowest Sender BID

Step 4. Lowest Port ID

In your case the step 1 & 2 would yield the same result and hence the deciding factor would be the 3 point which is the lowest sender bridge ID (which could be either be the root or the swith2 in your case)

If you had both the links terminated on the same root switch directly, then the deciding factor would have been the port ID and the lowest port would be in forwarding state by default.

HTH, rate if it does

Narayan

Hi Narayan

I don't believe Step 1 comes into the decision in electing the root port. The original poster said that the root bridge had already been elected so step 1 is not taken into account.

The decision as to which port is the root port is started at step 2.

Jon

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card