Information about IPV6 Addresses
The following topics provide information about IPv6 addresses.
Overview of IPv6 Address
IPv6 (Internet Protocol Version 6) is the second generation standard protocol of the network layer protocol, also referred to as IPng (IP Next Generation). It is a set of specifications designed by the Internet Engineering Task Force (IETF) and is an upgraded version of IPv4. The most significant difference between IPv6 and IPv4 is that the length of the IP address is increased from 32 bits to 128 bits.
An IPv6 address is represented as eight groups of four hexadecimal digits, each group representing 16 bits. The groups are seperated by colons (:). The following is an example of an IPv6 address:
2001:0000:130F:0000:0000:09C0:876A:130B.
Several methods could be used to simplify the IPv6 address. For example, the leading zeros in each group can be omitted. But each group must contain at least one hexadecimal number. The above IPv6 address can be represented as follows:
2001:0:130F:0:0:9C0:876A:130B.
One or more consecutive groups containing only zeros may be represented by empty groups using consecutive colons (::). This substitution can be applied only once in the address. The above address can be represented as follows:
2001:0:130F::9C0:876A:130B.
An IPv6 address consists of two parts, an address prefix and an interface identification. The address prefix is similar to the network number in an IPv4 address, and the interface identification is similar to the mainframe number. The IPv6 address can be represented in different ways but the address prefix is always a decimal numeral.
IPv6 Neighbor Discovery Protocol
The Neighbor Discovery Protocol is an IPV6 protocol that gathers information that is required for interet communication such as the configuration of local connections, and the domain name servers and gateways used to communicate with distant systems. This protocol is similar to the Address Resolution Protocol (ARP) , Internet Control Message Protocol (ICMP) and Router Discovery and Router Redirect protocols used for IPv4.
Neighbor Discovery Portocol uses five different ICMv6 messages to accomplish activities such as address resolution, verifying neighbor reachability, duplicate addresses detection, router discovery/prefix discovery, and address auto-configuration and redirection.
The types and functions of ICMPv6 messages in Neigbor Discovery Protocol are shown below:
ICMPv6 Message |
Function |
---|---|
Neighbor Solicitation (NS) |
Used to get the link-layer address of a neighbor. Detects neighbor reacheablilty and duplicate addressess. |
Neighbor Advertisement (NA) |
Used by the nodes to respond to neighbor solicitation messages. |
Router Solicitation (RS) |
Used by the host to request the router to request prefixed and configuration information to configure the host. |
Router Advertisement (RA) |
Used by routers to advertise their presence and various Internet parameters either periodically or in response to Router Solicitation message. |
Redirect |
Used by routers to inform hosts of a better first hop router for a destination. |
Functions of the Neighbor Discovery Protocol
Address resolutionThis function is similar to the ARP function of IPv4. It obtains the link layer address of neighbor node on the same link through neighbor solicitation and neighbor advertisement.
-
Node A sends NS messages in multicast mode. The source address of the NS message is the IPv6 address of node A, and the destination address is the requested node multicast address of node B. The NS message contains the link layer address of node A.
-
After receiving the NS message, node B determines whether the destination address of the packet is the multicast address of the requested node corresponding to its own IPv6 address. If so, B learns the link layer address of A and returns the NA message in unicast mode, which contains its own link-layer address.
-
Node A obtains the link layer address of node B from the received NA message. Both parties can now communicate.
-
The node sends an NS message where the destination address is the IPv6 address of the neighboring node.
-
When receiving an acknowledgment packet from a neighbor, the neighbor is considered reachable; otherwise, the neighbor is considered unreachable.
After a node obtains an IPv6 address, it needs to use the duplicate address detection function to determine whether the address is used by other nodes. This is similar to the gratuitous ARP function of IPv4. This is also achieved through the NS message and NA messages.
-
Node A sends an NS message. The source address of the NS message is the unspecified address and the destination address is the multicast address of the requested node corresponding to the IPv6 address to be detected. The content of the message contains the IPv6 address to be detected.
-
If Node B already uses this IPv6 address, it will return a NA message. This message contains its own IPv6 address.
-
If host A does not receive any NA message, then the address is available for the host A.