In a layer 2 switched network running IEEE 802.1D Spanning Tree Protocol (STP), Switch-A is elected as the Root Bridge. Switch-D is evaluating its path options to reach Switch-A and receives BPDUs on two separate interfaces:
- Interface GigabitEthernet0/1 connects to Switch-B (Bridge ID ). Switch-B advertises a Root Path Cost of . The link speed between Switch-D and Switch-B is (path cost ).
- Interface GigabitEthernet0/2 connects to Switch-C (Bridge ID ). Switch-C advertises a Root Path Cost of . The link speed between Switch-D and Switch-C is (path cost ).
Which interface on Switch-D will be selected as the Root Port, and what is the primary reason for this selection?
- GigabitEthernet0/2, because both paths yield an identical total Root Path Cost of 8, and Switch-C presents a lower Designated Bridge ID than Switch-B.Cevap
- BGigabitEthernet0/1, because Switch-B has a higher MAC address numerical value, which gives it higher election precedence when path costs are equal.
- CGigabitEthernet0/1, because traffic over untagged native VLAN trunks is automatically directed to the switch with the higher MAC address to resolve forwarding conflicts.
- DBoth GigabitEthernet0/1 and GigabitEthernet0/2, because STP automatically places ports with equal cumulative path costs into the Forwarding state for Layer 2 load balancing.
Cevap
GigabitEthernet0/2 will be selected as the Root Port because both paths result in an equal total Root Path Cost of 8, and Switch-C provides a lower Designated Bridge ID (ending in 000A) compared to Switch-B (ending in 000B).
When a switch calculates paths to the Root Bridge, it evaluates decision criteria in strict order: 1) Lowest cumulative Root Path Cost, 2) Lowest upstream Designated Bridge ID, 3) Lowest upstream Designated Port ID, and 4) Lowest local Port ID. In this scenario, both paths yield an identical total path cost of 8. The tie is broken by comparing the Designated Bridge IDs of Switch-B and Switch-C. Switch-C has a lower MAC address (0000.0000.000A) than Switch-B (0000.0000.000B), making GigabitEthernet0/2 the Root Port.
Adım Adım Çözüm
Anahtar Kavram
STP Root Port Selection Criteria and Tiebreakers
Tahmini Süre:1m 30s