CS FundamentalsVery hardGATE CS

Switch S4 has two paths to the STP root bridge. Port 1 connects via a 100 Mbps link (cost 19) to S2, whose root path cost is 4. Port 2 connects via a 1 Gbps link (cost 4) to S3, whose root path cost is 23. Which port becomes S4's root port, and what is S4's root path cost?

  1. A. Port 1, cost 23
  2. B. Port 2, cost 27
  3. C. Port 2, cost 4
  4. D. Port 1, cost 19

Correct answer: A. Port 1, cost 23

Root path cost through a port = neighbour's advertised root path cost + the cost of the link to it: port 1 gives 4 + 19 = 23, port 2 gives 23 + 4 = 27. The lower total wins, even though port 2 is the faster local link.

More Computer Networks questions

Exams that ask this topic