← All questions
Card 99 · Networking

Which shortened forms of the IPv6 address 2001:0db8:0f3c:00d7:7dab:03d0:0000:00ff are valid? 1. 2001:db8:f3c:d7:7dab:3d:0:ff · 2. 2001:db8:f3c:d7:7dab:3d0:0:ff · 3. 2001:db8:f3c:d7:7dab:3d0::ff · 4. 2001:0db8:0f3c:00d7:7dab:03d::00ff

Answer

Rules: remove only leading zeros in a block; replace one run of zero blocks with ::, only once per address.

Diagram

1. …:7dab:3d:0:ffnot valid – trailingzero removed2. …:7dab:3d0:0:ffvalid3. …:7dab:3d0::ffvalid4. …:03d::00ffnot valid – 03d0became 03d

Key vocabulary

TermMeaningExample
valid / invalidallowed / not allowed by the rulesOption 1 is invalid.
short forma shortened way of writingUse the short form in the documentation.
leading zeroa zero at the start of a numberYou may drop leading zeros.
trailing zeroa zero at the end of a numberNever drop trailing zeros.
zero blocka block that contains only zerosThe seventh block is a zero block.
to expandto write a short form in full againExpand the address to check your answer.

Useful phrases

Talk about it

  1. Explain to a classmate why option 1 is wrong. Expand it back to the full form.
  2. Write two more valid short forms of the same address.
  3. Why do you think IPv6 allows short forms at all?

IHK hint

German: Gültige Kurzschreibweisen: 2 und 3 erlaubt; 1 und 4 nicht erlaubt (aus 03d0 wurde 3d bzw. 03d – nur führende Nullen dürfen entfallen).