Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

The whole site in one document for easy reference!
The TCP/IP Guide

Custom Search







Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Internet Layer (OSI Network Layer) Protocols
           9  Internet Protocol (IP/IPv4, IPng/IPv6) and IP-Related Protocols (IP NAT, IPSec, Mobile IP)
                9  Internet Protocol Version 6 (IPv6) / IP Next Generation (IPng)
                     9  IPv6 Addressing

Previous Topic/Section
IPv6 Address Size and Address Space
Previous Page
Pages in Current Topic/Section
12
3
4
Next Page
IPv6 Address Space Allocation
Next Topic/Section

IPv6 Address and Address Notation and Prefix Representation
(Page 3 of 4)

Zero Compression in IPv6 Addresses

Fortunately, there is a short-cut that can be applied to shorten some addresses even further. This technique is sometimes called zero compression. The method allows a single string of contiguous zeroes in an IPv6 address to be replaced by a double-colon. So, for example, the address above could be expressed as:

805B:2D9D:DC28::FC57:D4C8:1FFF

We know how many zeroes are replaced by the “::” because we can see how many fully-expressed (“uncompressed”) hex words are in the address. In this case there are six, so the “::” represents two zero words. To prevent ambiguity, the double-colon can appear only once in any IP address, because if it appeared more than once we could not tell how many zeroes were replaced in each instance. So, if our example address were 805B:2D9D:DC28:0:0:FC57:0:0, we could replace either the first pair of zeroes or the second, but not both.

Zero compression doesn't make our example much shorter, but due to how IPv6 addresses are structured, long strings of zeroes are common. For example, consider this address:

FF00:4501:0:0:0:0:0:32

With compression, this could be expressed as just:

FF00:4501::32

It works even better on special addresses. The full IPv6 loopback address is:

0:0:0:0:0:0:0:1

With compression, this is simply:

::1

For even more fun, consider the Even more odd, the IPv6 “unspecified” address:

0:0:0:0:0:0:0:0

Apply zero compression to an address that is all zeroes, and what do you get? That’s right:

::

No numbers at all! Of course thinking of “::” as an address does take some getting used to.

Key Concept: For brevity, IPv6 addresses are represented using eight sets of four hexadecimal digits, a form called colon hexadecimal notation. Additional techniques, called zero suppression and zero compression, are used to reduce the size of displayed addresses further by removing unnecessary zeroes from the presentation of the address.



Previous Topic/Section
IPv6 Address Size and Address Space
Previous Page
Pages in Current Topic/Section
12
3
4
Next Page
IPv6 Address Space Allocation
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.