STP port priority vs. cost

Answered Question
Aug 8th, 2009

All,

Am I correct in assuming that cost and port priority do the same thing? Cost seems to be local to the switch and port priority is set by the upstream switch. Is that the case?

Thanks,

John

I have this problem too.
0 votes
Correct Answer by Lucien Avramov about 7 years 5 months ago

Both parameters are used to determine which interface will be in forwarding state.

They have differences though:

If you want to affect how to the local switch elects the root port change the cost on the links. Cost is cumulative throughout the STP domain. The higher cost is the less preferred.

If you want to affect how downstream switch elects its root port change the priority. This is only local significant between the two directly connected switches. Highest priority is less preferred.

Going away from the root of the tree use priority whereas, when going towards the root of the tree use cost.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Lucien Avramov Sat, 08/08/2009 - 07:20

Both parameters are used to determine which interface will be in forwarding state.

They have differences though:

If you want to affect how to the local switch elects the root port change the cost on the links. Cost is cumulative throughout the STP domain. The higher cost is the less preferred.

If you want to affect how downstream switch elects its root port change the priority. This is only local significant between the two directly connected switches. Highest priority is less preferred.

Going away from the root of the tree use priority whereas, when going towards the root of the tree use cost.

Actions

This Discussion