CS FundamentalsVery hardGATE CS · Product company CS fundamentals

What is the correct canonical (RFC 5952) text form of the IPv6 address 2001:0db8:0000:0000:0001:0000:0000:0001?

  1. A. 2001:db8:0:0:1::1
  2. B. 2001:db8::1::1
  3. C. 2001:0db8::1:0:0:1
  4. D. 2001:db8::1:0:0:1

Correct answer: D. 2001:db8::1:0:0:1

Leading zeros are dropped in every group, and '::' may replace only ONE run of zero groups. Both zero runs have length 2, and RFC 5952 compresses the first (leftmost) one in a tie, giving 2001:db8::1:0:0:1. Using '::' twice is ambiguous and invalid.

More Computer Networks questions

Exams that ask this topic