Soru

Zorluk: KolayIPv6 Addressing Concepts and Header Structure

A network technician is verifying IPv6 address syntax rules while documenting network interface configurations. The technician needs to compress the full 128-bit IPv6 address 2001:0db8:0000:0000:0000:0000:0000:00012001:0db8:0000:0000:0000:0000:0000:0001. Which of the following valid compressed representations of this address should be accepted? (Select TWO.)

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

Cevap

The correct representations are '2001:db8::1' and '2001:db8:0:0:0:0:0:1'.
The shorthand address '2001:db8::1' correctly removes leading zeros in the second hextet and compresses five consecutive zero hextets into a single double colon. The shorthand address '2001:db8:0:0:0:0:0:1' correctly suppresses leading zeros across all hextets while keeping all eight hextets explicitly separated by single colons.

Adım Adım Çözüm

1
Apply the rule for omitting leading zeros within each 16-bit hextet.
The block 0db80db8 becomes db8db8, and each 00000000 block becomes 00.
Leading zeros in any hexadecimal group are redundant and can be omitted.
2
Apply the double-colon compression rule for consecutive zero hextets.
The five consecutive 00000000 blocks (0000:0000:0000:0000:00000000:0000:0000:0000:0000) can be replaced by a single double colon (::::), resulting in 2001:db8::12001:db8::1.
A single double colon (::::) can replace contiguous fields of zeros to shorten the address.
3
Verify alternative valid representations without double-colon compression.
Replacing each 00000000 block with a single 00 produces 2001:db8:0:0:0:0:0:12001:db8:0:0:0:0:0:1, which contains all 8 hextets and is fully unambiguous.
Double-colon compression is optional; suppressing leading zeros while retaining individual 00 hextets is syntactically valid.

Anahtar Kavram

IPv6 Address Compression Rules (RFC 5952)
Bu soruyu puanla