CS FundamentalsHardGATE CS (PYQ pattern)

A customer receives 2001:db8:abcd::/48 and gives each of its sites a /56, numbering sites 0, 1, 2, ... in address order. Each site then creates /64 LANs. What is the prefix of site 9, and how many /64 LANs can it create?

  1. A. 2001:db8:abcd:9::/56, 256 LANs
  2. B. 2001:db8:abcd:900::/56, 256 LANs
  3. C. 2001:db8:abcd:a00::/56, 256 LANs
  4. D. 2001:db8:abcd:900::/56, 65,536 LANs

Correct answer: B. 2001:db8:abcd:900::/56, 256 LANs

The site number occupies bits 48-55, i.e. the high byte of the fourth 16-bit group: site 9 -> 0x0900 -> 2001:db8:abcd:900::/56. A /56 contains 2^(64 - 56) = 256 /64s. ':9::' puts 9 in the low byte (that is a /64 inside site 0); 0xa00 is site 10; 65,536 is the number of /64s in the whole /48.

More Computer Networks questions

Exams that ask this topic