Professional Documents
Culture Documents
IPv6 Tutorial
IPv6 Tutorial
Table of contents
Internet Protocol Version 6 Features ................................................................................................2
Header format simplification ......................................................................................................2
Adequate address space ...........................................................................................................2
Hierarchical address structure .....................................................................................................2
Automatic address configuration .................................................................................................2
Built-in security ..........................................................................................................................3
QoS support .............................................................................................................................3
Enhanced neighbor discovery mechanism ....................................................................................3
Flexible extension headers .........................................................................................................3
Introduction to IPv6 Address ...........................................................................................................3
IPv6 address format...................................................................................................................3
IPv6 address classification..........................................................................................................4
Unicast address ........................................................................................................................5
Multicast address ......................................................................................................................5
Interface identifier in IEEE EUI-64 format ......................................................................................6
Introduction to IPv6 Neighbor Discovery Protocol .............................................................................6
Address resolution.....................................................................................................................7
Neighbor reachability detection .................................................................................................7
Duplicate address detection .......................................................................................................8
Router/prefix discovery and address autoconfiguration .................................................................8
Redirection ...............................................................................................................................9
IPv6 PMTU Discovery ....................................................................................................................9
Introduction to IPv6 DNS .............................................................................................................10
Protocols and standards ..............................................................................................................10
Figure 1: Comparison between IPv4 packet header format and basic IPv6 packet header format
0
3
Ver
7
HL
15
ToS
Identification
TTL
23
Total length
F
Protocol
31 0
11
Fragment offset
15
23
31
Flow label
Payload length
Hop limit
Header checksum
Padding
IPv4 header
Destination address (128 bits)
Stateful address configuration means that a host acquires an IPv6 address and related information from a server
(for example, DHCP server).
Stateless address configuration means that a host automatically configures an IPv6 address and related information
on the basis of its own link-layer address and the prefix information advertised by a router.
In addition, a host can generate a link-local address on basis of its own link-layer address and the default prefix
(FE80::/64) to communicate with other hosts on the link.
Built-in security
IPv6 uses Internet Protocol Security (IPsec) as its standard extension header to provide end-to-end security.
This feature provides a standard for network security solutions and improves the interoperability between different
IPv6 applications.
QoS support
The Flow Label field in the IPv6 header allows the device to label packets in a flow and provide special handling for
these packets.
Leading zeros in each group can be removed. For example, the above-mentioned address can be represented in
shorter format as 2001:0:130F:0:0:9C0:876A:130B.
If an IPv6 address contains two or more consecutive groups of zeros, they can be replaced by the
double-colon :: option. For example, the above-mentioned address can be represented in the shortest
format as 2001:0:130F::9C0:876A:130B.
Caution:
The double-colon :: option can be used only once in an IPv6 address. Otherwise, the device is unable to determine
how many zeros double-colons represent when converting them to zeros to restore a 128-bit IPv6 address.
An IPv6 address consists of two parts: address prefix and interface ID. The address prefix and the interface ID are
respectively equivalent to the network ID and the host ID in an IPv4 address.
An IPv6 address prefix is written in IPv6-address/prefix-length notation, where IPv6-address is an IPv6 address in any
of the notations and prefix-length is a decimal number indicating how many bits from the utmost left of an IPv6
address are the address prefix.
Unicast address: An identifier for a single interface, similar to an IPv4 unicast address. A packet sent to a unicast
address is delivered to the interface identified by that address.
Multicast address: An identifier for a set of interfaces (typically belonging to different nodes), similar to an IPv4
multicast address. A packet sent to a multicast address is delivered to all interfaces identified by that address.
Anycast address: An identifier for a set of interfaces (typically belonging to different nodes). A packet sent to an
anycast address is delivered to one of the interfaces identified by that address (the nearest one, according to the
routing protocols measure of distance).
ffi Note:
There are no broadcast addresses in IPv6. Their function is superseded by
multicast addresses.
The type of an IPv6 address is designated by the first several bits called format prefix. Table 1 lists the mappings
between address types and format prefixes.
Unicast
address
IPv6 prefix ID
Unassigned address
::/128
Loopback address
::1/128
Link-local address
1111111010
FE80::/10
Site-local address
1111111011
FEC0::/10
other forms
11111111
FF00::/8
Multicast address
Anycast address
Anycast addresses are taken from the unicast address space and are not syntactically
distinguishable from unicast addresses.
Unicast address
There are several forms of unicast address assignment in IPv6, including aggregatable global unicast address,
link-local address, and site-local address.
The aggregatable global unicast address, equivalent to an IPv4 public address, is provided for network service
providers. The structure of such a type of address allows efficient route prefix aggregation to restrict the number of
global routing entries.
The link-local address is used for communication between link-local nodes in neighbor discovery and stateless
autoconfiguration. Routers must not forward any packets with link-local source or destination addresses to
other links.
IPv6 unicast site-local addresses are similar to private IPv4 addresses. Routers must not forward any packets with
site-local source or destination addresses outside of the site (equivalent to a private network).
Loopback address: The unicast address 0:0:0:0:0:0:0:1 (represented in the shortest format as ::1) is called the
loopback address and may never be assigned to any physical interface. Like the loopback address in IPv4, it may
be used by a node to send an IPv6 packet to itself.
Unassigned address: The unicast address :: is called the unassigned address and may not be assigned to any
node. Before acquiring a valid IPv6 address, a node may fill this address in the source address field of an IPv6
packet, but may not use it as a destination IPv6 address.
Multicast address
IPv6 multicast addresses listed in Table 2 are reserved for special purpose.
Application
FF01::1
FF02::1
FF01::2
FF02::2
FF05::2
Besides these, there is another type of multicast address: solicited-node address. A solicited-node multicast address is
used to acquire the link-layer addresses of neighbor nodes on the same link and is also used for duplicate address
detection (DAD). Each IPv6 unicast or anycast address has one corresponding solicited-node address. The format of a
solicited-node multicast address is as follows:
FF02:0:0:0:0:1:FFXX:XXXX
Where, FF02:0:0:0:0:1 FF is permanent and consists of 104 bits, and XX:XXXX is the last 24 bits of an IPv6 unicast
or anycast address.
0012-3400-ABCD
Represented in binary:
Insert FFFE:
0000000000010010
0000001000010010
0000000000010010
0011010000000000
1010101111001101
0011010011111111
1111111000000000
1010101111001101
0011010011111111
EUI-64 address:
1111111000000000
1010101111001101
0212 :34FF:FE00:ABCD
Address resolution
Neighbor reachability detection
Duplicate address detection
Router/prefix discovery and address autoconfiguration
Redirection
Table 3 lists the types and functions of ICMPv6 messages used by the NDP.
ICMPv6 message
Number
Function
Used to acquire the link-layer address of a neighbor
Neighbor
solicitation (NS)
message
135
Neighbor
advertisement (NA)
message
136
Router solicitation
(RS) message
133
After started, a node sends an RS message to request the router for an address prefix
Router
advertisement (RA)
message
134
Redirect message
137
With the RA message suppression disabled, the router regularly sends an RA message
When a certain condition is satisfied, the default gateway sends a redirect message to
the source host so that the host can reselect a correct next hop router to forward packets.
Address resolution
Similar to the ARP function in IPv4, a node acquires the link-layer addresses of neighbor nodes on the same link
through NS and NA messages. Figure 3 shows how node A acquires the link-layer address of node B.
Host A
Host B
Host A
Host B
ffi Note:
In addition to an address prefix, the prefix information option also contains
the preferred lifetime and valid lifetime of the address prefix. After receiving
a periodic RA message, the node updates the preferred lifetime and valid
lifetime of the address prefix accordingly.
An automatically generated address is applicable within the valid lifetime
and will be removed when the valid lifetime times out.
Redirection
When a host is started, its routing table may contain only the default route to the gateway. When certain conditions
are satisfied, the gateway sends an ICMPv6 redirect message to the source host so that the host can select a better
next hop to forward packets (similar to the ICMP redirection function in IPv4).
The gateway will send an IPv6 ICMP redirect message when the following conditions are satisfied:
MTU = 1500
Source
MTU = 1500
MTU = 1350
MTU = 1400
Copyright 2011 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The
only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services.
Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or
omissions contained herein.
4AA3-5764ENW, Created August 2011