CS FundamentalsHardGATE CS · ISRO Scientist

A router has 10.0.0.0/8 → A, 10.128.0.0/9 → B and 10.192.0.0/10 → C, using longest-prefix match. How many destination addresses are forwarded to B?

  1. A. 8,388,608
  2. B. 2,097,152
  3. C. 12,582,912
  4. D. 4,194,304

Correct answer: D. 4,194,304

10.128.0.0/9 holds 2²³ addresses, but its upper half 10.192.0.0/10 (2²² addresses) is captured by the longer prefix to C. So B gets 2²³ − 2²² = 4,194,304; A gets the lower half of the /8, 8,388,608.

More Computer Networks questions

Exams that ask this topic