Books indexNetwork Foundations: from mental models to data measurement

Lesson

Lesson 17: Reading and writing IPv6 addresses

Lesson 17 of 24 · Module 4: Ethernet and IP addressing

Learning goal

After this lesson, you can expand, compress and compare IPv6 addresses without treating notation alone as evidence of reachability.

Why this concept matters

IPv6 compression shortens notation but can hide group count. Expansion makes validation and prefix comparison reviewable.

Reading IPv6

Expand compression before comparing prefixes.

Expansion does not prove reachability or ownership.

Expand, then compare

  1. Locate :: and count missing groups.
  2. Pad each group to four hexadecimal digits.
  3. Compare bits within the stated prefix.
  4. Check purpose and scope before discussing reachability.

Eight groups of sixteen bits

IPv6 contains 128 bits in eight hexadecimal groups. Leading zeros may be removed and one contiguous zero run may be compressed with ::.

Expand and compress by rule

Expand all eight groups before comparing an IPv6 prefix or validating compression.

Prefix and purpose precede reachability

Compression is notation; prefix and purpose supply network meaning. The page records no production measurement or learner execution.

Diagnostic exercise

Takeaway and the next lesson

Compression is notation; prefix and purpose supply network meaning.

Quick review

  1. How many bits are in IPv6?
  2. How often may :: appear?
  3. Does expansion prove reachability?
Show the explained answers
  1. 128.
  2. Once.
  3. No.

References and evidence limits