CS FundamentalsVery hardProduct company interview · GATE level

The block 10.20.64.0/20 is allocated with VLSM, always taking the lowest free addresses and handling requests in this order: LANs needing 900, 400, 200 and 100 hosts, then three point-to-point links needing 2 hosts each. Every subnet is the smallest that fits its need. Which subnet does the third point-to-point link receive, and how many addresses of the /20 are left unallocated?

  1. A. 10.20.72.8/30; 2164 addresses
  2. B. 10.20.71.136/30; 2176 addresses
  3. C. 10.20.71.136/30; 2164 addresses
  4. D. 10.20.71.132/30; 2168 addresses

Correct answer: C. 10.20.71.136/30; 2164 addresses

900 hosts need a /22 (1022 usable): 10.20.64.0/22. 400 need a /23: 10.20.68.0/23. 200 need a /24: 10.20.70.0/24. 100 need a /25: 10.20.71.0/25. The links take /30s from 10.20.71.128: .128/30, .132/30 and .136/30. Allocated = 1024 + 512 + 256 + 128 + 3 x 4 = 1932 of 4096, leaving 2164. 2176 forgets the three /30s; 10.20.72.8/30 would follow only if the /25 had been rounded up to a /24; .132/30 is the second link, not the third.

More Computer Networks questions

Exams that ask this topic