Soru

Zorluk: OrtaIPv6 Addressing Concepts and Header Structure

A network administrator is assigning an IPv6 address to a router interface in a dual-stack enterprise network. The uncompressed 128-bit address is 2001:0db8:0000:0000:00ab:0000:0000:00012001:0db8:0000:0000:00ab:0000:0000:0001. According to standard IPv6 address compression rules (RFC 5952), which of the following is the correct shorthand representation of this address?

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

Cevap

The correct shorthand representation is 2001:db8::ab:0:0:1.
The notation '2001:db8::ab:0:0:1' correctly applies RFC 5952 rules: leading zeros are suppressed (0db8 to db8, 00ab to ab, 0001 to 1), and because there are two zero-sequences of equal length (two hextets each), the double-colon symbol (::) is applied to the first zero-sequence while leaving the second zero-sequence written as explicit single zeros.

Adım Adım Çözüm

1
Suppress leading zeros in each 16-bit hextet.
2001:0db8 becomes 2001:db8; 0000 becomes 0; 00ab becomes ab; 0001 becomes 1.
Leading zeros in any 4-digit hexadecimal group must be omitted under RFC 5952.
2
Identify consecutive groups of zero hextets for double-colon (::) substitution.
Group 1 (hextets 3 and 4) contains two zeros. Group 2 (hextets 6 and 7) also contains two zeros.
The double-colon symbol replaces contiguous fields of zeros.
3
Apply the tie-breaking rule for equal-length zero runs.
Replace hextets 3 and 4 with :: and write hextets 6 and 7 as :0:0:.
When multiple zero runs of equal length exist, RFC 5952 specifies that the first run must be compressed with ::, and :: can only be used once per address.

Anahtar Kavram

IPv6 Address Compression Rules (RFC 5952)
Bu soruyu puanla