NDP – IPv6 Neighbor Discovery Protocol

NDP – IPv6 Neighbor Discovery Protocol

Neighbor Discovery Protocol is used by IPv6 hosts for a variety of responsibilities relating to the local area network. In addition, it also works with ICMPv6 to complete a number of operations. The dominant responsibilities for NDP are Router Discovery, Neighbor Discovery and Duplicate Address Discovery. It was devised mainly due to the fact that IPv6 does not allow for broadcasts and consequently ARP (Address Resolution Protocol) as used with IPv4 is not in operation.

Router Discovery

Although there is a version of DHCP that can be used with IPv6, another option is to locate the local router which can provide information relating to DHCP servers and also provide an address prefix so that hosts can configure their own IP Addresses. When a great number is first connected to a link it automatically multicasts a Router Solicitation message to the All Routers multicast group address. Any routers active on the link will respond with a Router Advertisement message to the All Hosts multicast group address. The Router Advertisement message can indicate a variety of information.

Contained within the Router Advertisement message is an address prefix or multiple prefixes relating to subnets obtainable on the local link. The great number then knows which subnet or subnets are local and do not need the assistance of the local router to reach. The great number can automatically configure it’s own IP Address by using the prefix and EUI-64 rules. This involves adding an EUI-64 interface identifier derived from the interface MAC Address to the advertised prefix. The Interface Identifier portion of the IPv6 IP address is used to clarify a rare physical interface on a link. The 48 bit MAC address is separated into 2 x 3 bytes (24 bits), with the first 3 bytes know as the OUI (Organisational rare Identifier), commonly known as the Vendor Number. 16 additional bits are inserted between the 3rd and 4th byte, and these bits are represented by the Hexadecimal number FFFE. The U/L bit, being the seventh bit in the high order byte is set to a value of 1 to indicate a Global Scope. the time of action of a great number automatically configuring it’s IP Address from the given prefix is known as Stateless Autoconfiguration. Additionally the Router Advertisement message also contains the default hop count that Hosts should use.

Neighbor Discovery

NDP Hosts can use other Solicitation and Advertisement Messages for use with nearby Hosts, such as Neighbor Solicitation and Neighbor Advertisement messages:

Neighbor Solicitation messages can be used by Hosts on the LAN to acquire MAC addresses of other Hosts, which is a function provided by ARP with IPv4. The message is sent to the solicited-node multicast address that is associated with a group of hosts matching the last 6 bits of the address.

Neighbor Advertisement messages are sent in response to Neighbor Solitication messages and contain the Senders IPv6 address and MAC Address. In some instances Hosts can send unsolicited NA messages which would be sent to the All Hosts multicast address of FF02::1.

Duplicate Address Detection

in addition as sending out a Router Solicitation message when joining a link, a great number also sends out a Neighbor Solicitation message for it’s own IP Address to ensure no other great number is configured with the same IPv6 address. If a great number receives a response then it knows that address cannot be used and configures another address. This is similar to the time of action of Gratuitous ARP, as used with IPv4.

ICMPv6 roles are not covered in this article.

leave your comment