CS FundamentalsVery hardGATE CS · ISRO Scientist

Link-state routing on: R1–R2 2, R1–R3 5, R2–R3 1, R2–R4 7, R3–R4 2, R3–R5 6, R4–R5 1, R4–R6 4, R5–R6 2. In R1's forwarding table, what is the next hop and cost for R6?

  1. A. Next hop R3, cost 8
  2. B. Next hop R2, cost 9
  3. C. Next hop R3, cost 9
  4. D. Next hop R2, cost 8

Correct answer: D. Next hop R2, cost 8

Shortest path R1 → R2 → R3 → R4 → R5 → R6 costs 2 + 1 + 2 + 1 + 2 = 8 (R1 → R3 directly costs 5 > 3 via R2). The next hop is the first router on that path, R2. Going R4 → R6 directly costs 9.

More Computer Networks questions

Exams that ask this topic