Professional Documents
Culture Documents
In IPv4, each octet consists of a decimal number ranging from 0 to 255. These
numbers are typically separated by periods. In IPv6, addresses are expressed
as a series of eight 4-character hexadecimal numbers, which represent 16 bits
each (for a total of 128 bits). As we'll see in a minute, IPv6 addresses can
sometimes be abbreviated in a way that allows them to be expressed with
fewer characters.
FE80:CD00:0000:0CDE:1257:0000:211E:729C
If this were a real address, any leading zero within a section could be
suppressed. The result would look like this:
FE80:CD00:0:CDE:1257:0:211E:729C
As you can see, suppressing leading zeros goes a long way toward
shortening the address.
FE80:CD00:0000:0000:0000:0000:211E:729C
In this address, there are four sequential sections separated by zeros. Rather
than simply suppressing the leading zeros, you can get rid of all of the
sequential zeros and replace them with two colons. The two colons tell the
operating system that everything in between them is a zero. The address
shown above then becomes:
FE80:CD00::211E:729C
You must remember two things about inline zero suppression. First, you can
suppress a section only if it contains nothing but zeros. For example, you will
notice that the second part of the address shown above still contains some
trailing zeros. Those zeros were retained because there are non-zero
characters in the section. Second, you can use the double colon notation only
once in any given address.
0000:0000:0000:0000:0000:0000:0000:0001
Once all of the zeros have been suppressed, however, the IPv6 loopback
address doesn't even look like a valid address. The loopback address is
usually expressed as ::1.
In an IPv6 address, the first 48 bits are the network prefix. The next 16 bits are
the subnet ID and are used for defining subnets. The last 64 bits are the
interface identifier (which is also known as the Interface ID or the Device ID).
If necessary, the bits that are normally reserved for the Device ID can be used
for additional subnet masking. However, this is normally not necessary, as
using a 16-bit subnet and a 64-bit device ID provides for 65,535 subnets with
quintillions of possible device IDs per subnet. Still, some organizations are
already going beyond 16-bit subnet IDs.