CS FundamentalsVery hardGATE CS (PYQ pattern)

Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost 4), B2-B4 (cost 38), B2-B5 (cost 38), B3-B4 (cost 38), B3-B5 (cost 38). Classic spanning tree runs (root = lowest ID; root port = lowest cost to the root, ties to the lower neighbour ID; the designated port of a link is on the switch with the lower cost to the root, ties to the lower ID; other non-root ports are blocked). Which switch has a blocked port facing B2?

  1. A. B4
  2. B. B1
  3. C. B2
  4. D. B3

Correct answer: A. B4

Blocked ports (switch towards neighbour): B4 towards B2, B2 towards B5, B4 towards B3, B3 towards B5. The link to B2 is the only one among those where B4 loses the designated-port election and the link is not its root port.

More Computer Networks questions

Exams that ask this topic