Soru

Zorluk: KolayIPv6 Addressing and Prefixes

A network technician is simplifying an IPv6 address for documentation purposes by compressing leading zeros and contiguous fields of zeros. Which format represents the correctly compressed version of 2001:0db8:0000:0000:0000:0000:0000:0001?

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

Cevap

The correctly compressed IPv6 address is 2001:db8::1.
The address 2001:db8::1 strictly follows RFC IPv6 address compression rules by omitting the leading zero in '0db8' to become 'db8' and replacing all consecutive fields of zeros (:0000:0000:0000:0000:0000:) with a single double colon (::).

Adım Adım Çözüm

1
Omit leading zeros in each 16-bit hexadecimal field (hextet).
The second hextet 0db8 becomes db8, and 0001 becomes 1.
Leading zeros are redundant and should be removed per standard RFC 4291 / RFC 5952 formatting guidelines.
2
Replace the single contiguous run of consecutive all-zero hextets with a double colon (::).
The five zero hextets (:0000:0000:0000:0000:0000:) are replaced by a single double colon (::).
The double colon represents one or more contiguous fields of zeros to shorten the address.
3
Combine the resulting hextets into the final simplified address.
The address compresses to 2001:db8::1.
This yields a valid, unambiguous 128-bit IPv6 address format.

Anahtar Kavram

IPv6 Address Compression Rules (RFC 4291 and RFC 5952)
Bu soruyu puanla