Soru

Zorluk: ZorIPv6 Addressing Concepts and Header Structure

A network administrator is manually configuring a static global unicast IPv6 address on a core server interface. The administrator enters the address string `2001:db8:100:0::45::1/64` into the operating system interface configuration file. Upon applying the configuration, the system rejects the input with a syntax error. Which of the following technical explanations identifies why this IPv6 address representation is invalid?

  1. The double-colon shorthand notation (`::`) is included twice in a single address string, which prevents the parser from unambiguously calculating the total number of 16-bit zero blocks represented by each occurrence.Cevap
  2. B
    The address attempts to mix explicit single-zero hexadecimal fields (`:0:`) with double-colon shorthand (`::`), which violates standard address syntax standards.
  3. C
    Zero compression shorthand (`::`) is restricted exclusively to link-local address prefixes (`fe80::/10`) and cannot be applied to global unicast addresses.
  4. D
    Zero compression notation was applied across the prefix boundary, which invalidates the subnet prefix length defined by the trailing `/64`.

Cevap

The double-colon shorthand notation (`::`) is included twice in a single address string, which prevents the parser from unambiguously calculating the total number of 16-bit zero blocks represented by each occurrence.
The double-colon (`::`) zero compression rule allows shortening contiguous 16-bit fields of zeros. However, using `::` more than once in a single address string makes it mathematically impossible to determine how many 16-bit zero blocks each `::` replaces, leading to syntax rejection by network operating systems.

Adım Adım Çözüm

1
Analyze standard IPv6 address structure rules.
An IPv6 address comprises eight 16-bit hexadecimal fields (128 bits total), separated by colons.
To shorten long addresses, contiguous blocks of zero-value fields can be compressed using a double-colon (`::`).
2
Evaluate the string `2001:db8:100:0::45::1` for shorthand compliance.
The string contains two separate instances of `::`.
Multiple `::` occurrences lead to mathematical ambiguity regarding how many 16-bit zero blocks are assigned to the first versus second double-colon.
3
Determine the required syntax resolution.
The double-colon must be used only once (e.g., `2001:db8:100:0:0:45::1` or `2001:db8:100:0::45:0:1`).
This guarantees that an automated parser can reliably pad the missing zero fields to reconstruct the exact 128-bit binary address.

Anahtar Kavram

IPv6 Address Zero Compression Rules
Bu soruyu puanla