CS FundamentalsHardGATE CS (PYQ pattern)

A host has address 172.20.145.200 and subnet mask 0xFFFFF800. How many usable host addresses of its subnet are numerically greater than the host's own address?

  1. A. 1591
  2. B. 1846
  3. C. 1334
  4. D. 1590

Correct answer: D. 1590

0xFFFFF800 = /21, so the subnet is 172.20.144.0 - 172.20.151.255 and the last usable address is 172.20.151.254. Count = (151 - 145) x 256 + (254 - 200) = 1536 + 54 = 1590. Including the broadcast gives 1591; taking a /20 (up to .159) or a wrong block start shifts the count by 256.

More Computer Networks questions

Exams that ask this topic