CS FundamentalsModerateGATE CS

A router has these entries: 10.0.0.0/8 via R1; 10.1.4.0/22 via R2; 10.1.5.128/25 via R3; 10.1.5.64/26 via R4; default via R5. A packet for 10.1.5.77 is forwarded to:

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

Correct answer: D. R4

The /8, /22 and /26 entries all match, but 10.1.5.128/25 covers only .128 to .255 and does not. The longest matching prefix is the /26 (10.1.5.64 to .127), so the packet goes via R4.

More Computer Networks questions

Exams that ask this topic