CS FundamentalsHardGATE CS · ISRO Scientist

A router's forwarding table holds 131.16.0.0/12 → R1, 131.28.0.0/14 → R2, 131.30.0.0/15 → R3, 131.30.128.0/17 → R4 and a default route → R5. Where are packets for 131.31.200.1, 131.29.4.4 and 131.15.0.1 sent, in that order?

  1. A. R4, R2, R1
  2. B. R3, R2, R5
  3. C. R3, R1, R5
  4. D. R4, R2, R5

Correct answer: B. R3, R2, R5

131.31.200.1 is inside 131.30.0.0/15 (covers 131.30–131.31) but not 131.30.128.0/17 (only 131.30.128–255), so R3. 131.29.4.4 matches the /12 and /14; the longer /14 wins → R2. 131.15.x is below 131.16.0.0/12 (131.16–131.31), so only the default matches → R5.

More Computer Networks questions

Exams that ask this topic