CS FundamentalsModerateGATE CS · Product company CS fundamentals

An organisation owns 150.80.0.0/16 and subnets it so that every subnet supports at least 500 hosts while creating as many subnets as possible. How many subnets result, and how many usable hosts does each have?

  1. A. 64 subnets, 1022 hosts
  2. B. 128 subnets, 512 hosts
  3. C. 128 subnets, 510 hosts
  4. D. 256 subnets, 254 hosts

Correct answer: C. 128 subnets, 510 hosts

500 hosts need 9 host bits (2⁹ − 2 = 510 ≥ 500, while 2⁸ − 2 = 254 is too few). That leaves 16 − 9 = 7 subnet bits, so 2⁷ = 128 subnets of 510 usable hosts each (prefix /23).

More Computer Networks questions

Exams that ask this topic