cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
459
Views
0
Helpful
2
Replies

STP queries

Hi All,

Please help with this scenario(attached is the screenshot with bridge priority and the MAC)

why switch port of switch 2 is Amber connected to Switch0 while it should be other way round.

why switch port of switch 3 is Amber connected to Switch0 while it should be other way round.

Thanks,

Ravi

1 Accepted Solution

Accepted Solutions

Peter Paluch
Cisco Employee
Cisco Employee

Ravi,

The amber ports are correctly identified in the PT snapshot. Your analysis is incorrect. When Sw2 and Sw3 elect their root port, because of the same distance to the root bridge through both Sw0 and Sw1, the next tiebreaker is the lower Sender Bridge ID. If you watch closely, the Sw1 has a lower BID than Sw0, therefore, switches Sw2 and Sw3 choose their link to Sw1 as their root link because that is the link receiving the best BPDUs.

The remaining port on both Sw2 and Sw3 cannot be a root port, so the only remaining role it can have is designated or non-designated. Here, sent and received BPDU are compared. Because quite obviously, Sw2 and Sw3 are farther from the root bridge than Sw0 and Sw1, the BPDUs sent from Sw0 and Sw1 are better. Hence, Sw0 and Sw1 will have their ports unblocked, and Sw2 and Sw3 will block these ports.

Remember that the order of values compared between BPDUs is:

  1. Root Bridge ID (= Priority + VLAN + MAC address)
  2. Total Root Path Cost
  3. Sending Bridge ID (= Priority + VLAN + MAC address)
  4. Sending Port ID (= Priority + Port index)
  5. Receiving Port ID (=Priority + Port index)

The lower value is better.

Best regards,

Peter

View solution in original post

2 Replies 2

Peter Paluch
Cisco Employee
Cisco Employee

Ravi,

The amber ports are correctly identified in the PT snapshot. Your analysis is incorrect. When Sw2 and Sw3 elect their root port, because of the same distance to the root bridge through both Sw0 and Sw1, the next tiebreaker is the lower Sender Bridge ID. If you watch closely, the Sw1 has a lower BID than Sw0, therefore, switches Sw2 and Sw3 choose their link to Sw1 as their root link because that is the link receiving the best BPDUs.

The remaining port on both Sw2 and Sw3 cannot be a root port, so the only remaining role it can have is designated or non-designated. Here, sent and received BPDU are compared. Because quite obviously, Sw2 and Sw3 are farther from the root bridge than Sw0 and Sw1, the BPDUs sent from Sw0 and Sw1 are better. Hence, Sw0 and Sw1 will have their ports unblocked, and Sw2 and Sw3 will block these ports.

Remember that the order of values compared between BPDUs is:

  1. Root Bridge ID (= Priority + VLAN + MAC address)
  2. Total Root Path Cost
  3. Sending Bridge ID (= Priority + VLAN + MAC address)
  4. Sending Port ID (= Priority + Port index)
  5. Receiving Port ID (=Priority + Port index)

The lower value is better.

Best regards,

Peter

Hi Peter,

Makes sense now!

Cheers!

Ravi

Review Cisco Networking for a $25 gift card