As per Relevance of the word destination, we have this rfc below:
Network Working Group T.
Request for Comments: 1970
Category: Standards Track E.
Sun
W.
August 1996
Neighbor Discovery for IP Version 6 (IPv6)
Status of this
This document specifies an Internet standards track protocol for
Internet community, and requests discussion and suggestions
improvements. Please refer to the current edition of the "
Official Protocol Standards" (STD 1) for the standardization
and status of this protocol. Distribution of this memo is unlimited
This document specifies the Neighbor Discovery protocol for
Version 6. IPv6 nodes on the same link use Neighbor Discovery
discover each other's presence, to determine each other's link-
addresses, to find routers and to maintain reachability
about the paths to active neighbors
Table of
1. INTRODUCTION............................................. 3
2. TERMINOLOGY.............................................. 4
2.1. General............................................. 4
2.2. Link Types.......................................... 7
2.3. Addresses........................................... 8
2.4. Requirements........................................ 9
3. PROTOCOL OVERVIEW........................................ 10
3.1. Comparison with IPv4................................ 14
3.2. Supported Link Types................................ 16
4. MESSAGE FORMATS.......................................... 17
4.1. Router Solicitation Message Format.................. 17
4.2. Router Advertisement Message Format................. 18
4.3. Neighbor Solicitation Message Format................ 21
4.4. Neighbor Advertisement Message Format............... 23
4.5. Redirect Message Format............................. 25
4.6. Option Formats...................................... 27
4.6.1. Source/Target Link-layer Address............... 28
4.6.2. Prefix Information............................. 29
4.6.3. Redirected Header.............................. 31
Narten, Nordmark & Simpson Standards Track [Page 1]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
4.6.4. MTU............................................ 31
5. CONCEPTUAL MODEL OF A HOST............................... 32
5.1. Conceptual Data Structures.......................... 33
5.2. Conceptual Sending Algorithm........................ 35
5.3. Garbage Collection and Timeout Requirements......... 36
6. ROUTER AND PREFIX DISCOVERY.............................. 37
6.1. Message Validation.................................. 38
6.1.1. Validation of Router Solicitation Messages..... 38
6.1.2. Validation of Router Advertisement Messages.... 38
6.2. Router Specification................................ 39
6.2.1. Router Configuration Variables................. 39
6.2.2. Becoming An Advertising Interface.............. 43
6.2.3. Router Advertisement Message Content........... 43
6.2.4. Sending Unsolicited Router Advertisements...... 45
6.2.5. Ceasing To Be An Advertising Interface......... 45
6.2.6. Processing Router Solicitations................ 46
6.2.7. Router Advertisement Consistency............... 47
6.2.8. Link-local Address Change...................... 48
6.3. Host Specification.................................. 48
6.3.1. Host Configuration Variables................... 48
6.3.2. Host Variables................................. 48
6.3.3. Interface Initialization....................... 50
6.3.4. Processing Received Router Advertisements...... 50
6.3.5. Timing out Prefixes and Default Routers........ 52
6.3.6. Default Router Selection....................... 53
6.3.7. Sending Router Solicitations................... 54
7. ADDRESS RESOLUTION AND NEIGHBOR UNREACHABILITY DETECTION. 55
7.1. Message Validation.................................. 55
7.1.1. Validation of Neighbor Solicitations........... 55
7.1.2. Validation of Neighbor Advertisements.......... 56
7.2. Address Resolution.................................. 57
7.2.1. Interface Initialization....................... 57
7.2.2. Sending Neighbor Solicitations................. 57
7.2.3. Receipt of Neighbor Solicitations.............. 58
7.2.4. Sending Solicited Neighbor Advertisements...... 59
7.2.5. Receipt of Neighbor Advertisements............. 59
7.2.6. Sending Unsolicited Neighbor Advertisements.... 61
7.2.7. Anycast Neighbor Advertisements................ 62
7.2.8. Proxy Neighbor Advertisements.................. 62
7.3. Neighbor Unreachability Detection................... 63
7.3.1. Reachability Confirmation...................... 63
7.3.2. Neighbor Cache Entry States.................... 64
7.3.3. Node Behavior.................................. 66
8. REDIRECT FUNCTION........................................ 68
8.1. Validation of Redirect Messages..................... 68
8.2. Router Specification................................ 69
8.3. Host Specification.................................. 70
9. EXTENSIBILITY - OPTION PROCESSING........................ 71
Narten, Nordmark & Simpson Standards Track [Page 2]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
10. PROTOCOL CONSTANTS...................................... 72
11. SECURITY CONSIDERATIONS................................. 73
REFERENCES................................................... 75
AUTHORS' ADDRESSES........................................... 76
APPENDIX A: MULTIHOMED HOSTS................................. 77
APPENDIX B: FUTURE EXTENSIONS................................ 78
APPENDIX C: STATE MACHINE FOR THE REACHABILITY STATE......... 78
APPENDIX D: IMPLEMENTATION ISSUES............................ 80
Appendix D.1: Reachability confirmations.................. 80
1.
This specification defines the Neighbor Discovery (ND) protocol
Internet Protocol Version 6 (IPv6). Nodes (hosts and routers)
Neighbor Discovery to determine the link-layer addresses
neighbors known to reside on attached links and to quickly
cached values that become invalid. Hosts also use Neighbor
to find neighboring routers that are willing to forward packets
their behalf. Finally, nodes use the protocol to actively keep
of which neighbors are reachable and which are not, and to
changed link-layer addresses. When a router or the path to a
fails, a host actively searches for functioning alternates
Unless specified otherwise (in a document that covers operating
over a particular link type) this document applies to all link types
However, because ND uses link-layer multicast for some of
services, it is possible that on some link types (e.g., NBMA links
alternative protocols or mechanisms to implement those services
be specified (in the appropriate document covering the operation
IP over a particular link type). The services described in
document that are not directly dependent on multicast, such
Redirects, Next-hop determination, Neighbor Unreachability Detection
etc., are expected to be provided as specified in this document.
details of how one uses ND on NBMA links is an area for
study
The authors would like to acknowledge the contributions the
working group and, in particular, (in alphabetical order)
Atkinson, Jim Bound, Scott Bradner, Alex Conta, Stephen Deering
Francis Dupont, Robert Elz, Robert Gilligan, Robert Hinden,
Mankin, Dan McDonald, Charles Perkins, Matt Thomas, and
Thomson
Narten, Nordmark & Simpson Standards Track [Page 3]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
2.
2.1.
IP - Internet Protocol Version 6. The terms IPv4 and IPv
are used only in contexts where necessary to
ambiguity
ICMP - Internet Message Control Protocol for the
Protocol Version 6. The terms ICMPv4 and ICMPv6
used only in contexts where necessary to
ambiguity
node - a device that implements IP
router - a node that forwards IP packets not
addressed to itself
host - any node that is not a router
upper layer - a protocol layer immediately above IP. Examples
transport protocols such as TCP and UDP,
protocols such as ICMP, routing protocols such as OSPF
and internet or lower-layer protocols being "tunneled
over (i.e., encapsulated in) IP such as IPX, AppleTalk
or IP itself
link - a communication facility or medium over which nodes
communicate at the link layer, i.e., the
immediately below IP. Examples are Ethernets (
or bridged), PPP links, X.25, Frame Relay, or
networks as well as internet (or higher)
"tunnels", such as tunnels over IPv4 or IPv6 itself
interface - a node's attachment to a link
neighbors - nodes attached to the same link
address - an IP-layer identifier for an interface or a set
interfaces
anycast
- an identifier for a set of interfaces (
belonging to different nodes). A packet sent to
anycast address is delivered to one of the
identified by that address (the "nearest" one
according to the routing protocol's measure
distance). See [ADDR-ARCH].
Narten, Nordmark & Simpson Standards Track [Page 4]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Note that an anycast address is
indistinguishable from a unicast address. Thus,
sending packets to anycast addresses don't
know that an anycast address is being used.
the rest of this document, references to
addresses also apply to anycast addresses in
cases where the node is unaware that a unicast
is actually an anycast address
prefix - a bit string that consists of some number of
bits of an address
link-layer
- a link-layer identifier for an interface.
include IEEE 802 addresses for Ethernet links and E.164
addresses for ISDN links
on-link - an address that is assigned to an interface on
specified link. A node considers an address to be on
link if
- it is covered by one of the link's prefixes,
- a neighboring router specifies the address as
target of a Redirect message,
- a Neighbor Advertisement message is received
the (target) address,
- any Neighbor Discovery message is received from
address
off-link - the opposite of "on-link"; an address that is
assigned to any interfaces on the specified link
longest prefix
- The process of determining which prefix (if any) in
set of prefixes covers a target address. A
address is covered by a prefix if all of the bits
the prefix match the left-most bits of the
address. When multiple prefixes cover an address,
longest prefix is the one that matches
- whether or not the one-way "forward" path to a
is functioning properly. In particular,
packets sent to a neighbor are reaching the IP layer
the neighboring machine and are being
Narten, Nordmark & Simpson Standards Track [Page 5]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
properly by the receiving IP layer. For
routers, reachability means that packets sent by
node's IP layer are delivered to the router's IP layer
and the router is indeed forwarding packets (i.e.,
is configured as a router, not a host). For hosts
reachability means that packets sent by a node's
layer are delivered to the neighbor host's IP layer
packet - an IP header plus payload
link MTU - the maximum transmission unit, i.e., maximum
size in octets, that can be conveyed in one piece
a link
target - an address about which address resolution
is sought, or an address which is the new first-
when being redirected
proxy - a router that responds to Neighbor Discovery
messages on behalf of another node. A router acting
behalf of a mobile node that has moved off-link
potentially act as a proxy for the mobile node
ICMP destination unreachable
- an error indication returned to the original sender
a packet that cannot be delivered for the
outlined in [ICMPv6]. If the error occurs on a
other than the node originating the packet, an
error message is generated. If the error occurs on
originating node, an implementation is not required
actually create and send an ICMP error packet to
source, as long as the upper-layer sender is
through an appropriate mechanism (e.g., return
from a procedure call). Note, however, that
implementation may find it convenient in some cases
return errors to the sender by taking the
packet, generating an ICMP error message, and
delivering it (locally) through the generic
handling routines
random
- when sending out messages, it is sometimes necessary
delay a transmission for a random amount of time
order to prevent multiple nodes from transmitting
exactly the same time, or to prevent long-
periodic transmissions from synchronizing with
other [SYNC]. When a random component is required,
node calculates the actual delay in such a way that
Narten, Nordmark & Simpson Standards Track [Page 6]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
computed delay forms a uniformly-distributed
value that falls between the specified minimum
maximum delay times. The implementor must take care
insure that the granularity of the calculated
component and the resolution of the timer used are
high enough to insure that the probability of
nodes delaying the same amount of time is small
random delay
- If a pseudo-random number generator is used
calculating a random delay component, the
should be initialized with a unique seed prior to
used. Note that it is not sufficient to use
interface token alone as the seed, since
tokens will not always be unique. To reduce
probability that duplicate interface tokens cause
same seed to be used, the seed should be
from a variety of input sources (e.g.,
components) that are likely to be different even
identical "boxes". For example, the seed could
formed by combining the CPU's serial number with
interface token
2.2. Link
Different link layers have different properties. The ones of
to Neighbor Discovery are
multicast - a link that supports a native mechanism at the
layer for sending packets to all (i.e., broadcast
or a subset of all neighbors
point-to-point - a link that connects exactly two interfaces.
point-to-point link is assumed to have
capability and have a link-local address
non-broadcast multi-access (NBMA
- a link to which more than two interfaces can attach
but that does not support a native form of
or broadcast (e.g., X.25, ATM, frame relay, etc.).
Note that all link types (including NBMA)
expected to provide multicast service for IP (e.g.,
using multicast servers), but it is an issue
further study whether ND should use such
or an alternate mechanism that provides
equivalent ND services
shared media - a link that allows direct communication among
Narten, Nordmark & Simpson Standards Track [Page 7]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
number of nodes, but attached nodes are
in such a way that they do not have complete
information for all on-link destinations. That is
at the IP level, nodes on the same link may not
that they are neighbors; by default,
communicate through a router. Examples are
(switched) public data networks such as SMDS and B
ISDN. Also known as "large clouds". See [SH
MEDIA].
variable MTU - a link that does not have a well-defined MTU (e.g.,
IEEE 802.5 token rings). Many links (e.g.,
Ethernet) have a standard MTU defined by the link
layer protocol or by the specific
describing how to run IP over the link layer
asymmetric
- a link where non-reflexive and/or non-
reachability is part of normal operation. (Non
reflexive reachability means packets from A reach
but packets from B don't reach A. Non-
reachability means packets from A reach B,
packets from B reach C, but packets from A don'
reach C.) Many radio links exhibit
properties
2.3.
Neighbor Discovery makes use of a number of different
defined in [ADDR-ARCH], including
all-nodes multicast
- the link-local scope address to reach all nodes
FF02::1
all-routers multicast
- the link-local scope address to reach all routers
FF02::2
solicited-node multicast
- a link-local scope multicast address that is
as a function of the solicited target's address.
solicited-node multicast address is formed by
the low-order 32 bits of the target IP address
appending those bits to the 96-bit
FF02:0:0:0:0:1 to produce a multicast address
the range FF02::1:0:0 to FF02::1:FFFF:FFFF.
example, the solicited node multicast
Narten, Nordmark & Simpson Standards Track [Page 8]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
corresponding to the IP address 4037::01:800:200E:8C6
is FF02::1:200E:8C6C. IP addresses that differ only
the high-order bits, e.g., due to multiple high-
prefixes associated with different providers, will
to the same solicited-node address thereby reducing
number of multicast addresses a node must join
link-local
- a unicast address having link-only scope that can
used to reach neighbors. All interfaces on
MUST have a link-local address. Also, [ADDRCONF
requires that interfaces on hosts have a link-
address
unspecified
- a reserved address value that indicates the lack of
address (e.g., the address is unknown). It is
used as a destination address, but may be used as
source address if the sender does not (yet) know
own address (e.g., while verifying an address is
during address autoconfiguration [ADDRCONF]).
unspecified address has a value of 0:0:0:0:0:0:0:0.
2.4.
Throughout this document, the words that are used to define
significance of the particular requirements are capitalized.
words are
This word or the adjective "REQUIRED" means that the item is
absolute requirement of this specification
MUST
This phrase means the item is an absolute prohibition of
specification
This word or the adjective "RECOMMENDED" means that there
exist valid reasons in particular circumstances to ignore
item, but the full implications should be understood and
case carefully weighed before choosing a different course
SHOULD
This phrase means that there may exist valid reasons
particular circumstances when the listed behavior is
or even useful, but the full implications should be
and the case carefully weighted before implementing any
Narten, Nordmark & Simpson Standards Track [Page 9]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
described with this label
MAY This word or the adjective "OPTIONAL" means that this item
truly optional. One vendor may choose to include the
because a particular marketplace requires it or because
enhances the product, for example, another vendor may omit
same item
This document also makes use of internal conceptual variables
describe protocol behavior and external variables that
implementation must allow system administrators to change.
specific variable names, how their values change, and how
settings influence protocol behavior are provided to
protocol behavior. An implementation is not required to have them
the exact form described here, so long as its external behavior
consistent with that described in this document
3. PROTOCOL
This protocol solves a set of problems related to the
between nodes attached to the same link. It defines mechanisms
solving each of the following problems
Router Discovery: How hosts locate routers that reside on
attached link
Prefix Discovery: How hosts discover the set of address
that define which destinations are on-link for
attached link. (Nodes use prefixes to
destinations that reside on-link from those
reachable through a router.)
Parameter Discovery: How a node learns such link parameters as
link MTU or such Internet parameters as the hop
value to place in outgoing packets
Address Autoconfiguration: How nodes automatically configure
address for an interface
Address resolution: How nodes determine the link-layer address of
on-link destination (e.g., a neighbor) given only
destination's IP address
Next-hop determination: The algorithm for mapping an IP
address into the IP address of the neighbor to
traffic for the destination should be sent. The next-
can be a router or the destination itself
Narten, Nordmark & Simpson Standards Track [Page 10]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Neighbor Unreachability Detection: How nodes determine that
neighbor is no longer reachable. For neighbors used
routers, alternate default routers can be tried.
both routers and hosts, address resolution can
performed again
Duplicate Address Detection: How a node determines that an
it wishes to use is not already in use by another node
Redirect: How a router informs a host of a better first-hop node
reach a particular destination
Neighbor Discovery defines five different ICMP packet types: A
of Router Solicitation and Router Advertisement messages, a pair
Neighbor Solicitation and Neighbor Advertisements messages, and
Redirect message. The messages serve the following purpose
Router Solicitation: When an interface becomes enabled, hosts
send out Router Solicitations that request routers
generate Router Advertisements immediately rather than
their next scheduled time
Router Advertisement: Routers advertise their presence together
various link and Internet parameters either periodically
or in response to a Router Solicitation message.
Advertisements contain prefixes that are used for on-
determination and/or address configuration, a
hop limit value, etc
Neighbor Solicitation: Sent by a node to determine the link-
address of a neighbor, or to verify that a neighbor
still reachable via a cached link-layer address
Neighbor Solicitations are also used for
Address Detection
Neighbor Advertisement: A response to a Neighbor
message. A node may also send unsolicited
Advertisements to announce a link-layer address change
Redirect: Used by routers to inform hosts of a better first hop
a destination
On multicast-capable links, each router periodically multicasts
Router Advertisement packet announcing its availability. A
receives Router Advertisements from all routers, building a list
default routers. Routers generate Router Advertisements
enough that hosts will learn of their presence within a few minutes
but not frequently enough to rely on an absence of advertisements
Narten, Nordmark & Simpson Standards Track [Page 11]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
detect router failure; a separate Neighbor Unreachability
algorithm provides failure detection
Router Advertisements contain a list of prefixes used for on-
determination and/or autonomous address configuration;
associated with the prefixes specify the intended uses of
particular prefix. Hosts use the advertised on-link prefixes
build and maintain a list that is used in deciding when a packet'
destination is on-link or beyond a router. Note that a
can be on-link even though it is not covered by any advertised on
link prefix. In such cases a router can send a Redirect
the sender that the destination is a neighbor
Router Advertisements (and per-prefix flags) allow routers to
hosts how to perform Address Autoconfiguration. For example,
can specify whether hosts should use stateful (DHCPv6) and/
autonomous (stateless) address configuration. The exact
and usage of the address configuration-related information
specified in [ADDRCONF].
Router Advertisement messages also contain Internet parameters
as the hop limit that hosts should use in outgoing packets and
optionally, link parameters such as the link MTU. This
centralized administration of critical parameters that can be set
routers and automatically propagated to all attached hosts
Nodes accomplish address resolution by multicasting a
Solicitation that asks the target node to return its link-
address. Neighbor Solicitation messages are multicast to
solicited-node multicast address of the target address. The
returns its link-layer address in a unicast Neighbor
message. A single request-response pair of packets is sufficient
both the initiator and the target to resolve each other's link-
addresses; the initiator includes its link-layer address in
Neighbor Solicitation
Neighbor Solicitation messages can also be used to determine if
than one node has been assigned the same unicast address. The use
Neighbor Solicitation messages for Duplicate Address Detection
specified in [ADDRCONF].
Neighbor Unreachability Detection detects the failure of a
or the failure of the forward path to the neighbor. Doing
requires positive confirmation that packets sent to a neighbor
actually reaching that neighbor and being processed properly by
IP layer. Neighbor Unreachability Detection uses confirmation
two sources. When possible, upper-layer protocols provide a
confirmation that a connection is making "forward progress", that is
Narten, Nordmark & Simpson Standards Track [Page 12]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
previously sent data is known to have been delivered correctly (e.g.,
new acknowledgments were received recently). When
confirmation is not forthcoming through such "hints", a node
unicast Neighbor Solicitation messages that solicit
Advertisements as reachability confirmation from the next hop.
reduce unnecessary network traffic, probe messages are only sent
neighbors to which the node is actively sending packets
In addition to addressing the above general problems,
Discovery also handles the following situations
Link-layer address change - A node that knows its link-
address has changed can multicast a few (unsolicited)
Advertisement packets to all nodes to quickly update
link-layer addresses that have become invalid. Note that
sending of unsolicited advertisements is a
enhancement only (e.g., unreliable). The
Unreachability Detection algorithm ensures that all nodes
reliably discover the new address, though the delay may
somewhat longer
Inbound load balancing - Nodes with replicated interfaces may
to load balance the reception of incoming packets
multiple network interfaces on the same link. Such nodes
multiple link-layer addresses assigned to the same interface
For example, a single network driver could represent
network interface cards as a single logical interface
multiple link-layer addresses. Load balancing is handled
allowing routers to omit the source link-layer address
Router Advertisement packets, thereby forcing neighbors to
Neighbor Solicitation messages to learn link-layer
of routers. Returned Neighbor Advertisement messages can
contain link-layer addresses that differ depending on
issued the solicitation
Anycast addresses - Anycast addresses identify one of a set
nodes providing an equivalent service, and multiple nodes
the same link may be configured to recognize the same
address. Neighbor Discovery handles anycasts by having
expect to receive multiple Neighbor Advertisements for
same target. All advertisements for anycast addresses
tagged as being non-Override advertisements. This
specific rules to determine which of potentially
advertisements should be used
Proxy advertisements - A router willing to accept packets on
of a target address that is unable to respond to
Solicitations can issue non-Override Neighbor Advertisements
Narten, Nordmark & Simpson Standards Track [Page 13]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
There is currently no specified use of proxy, but
advertising could potentially be used to handle cases
mobile nodes that have moved off-link. However, it is
intended as a general mechanism to handle nodes that, e.g.,
not implement this protocol
3.1. Comparison with IPv
The IPv6 Neighbor Discovery protocol corresponds to a combination
the IPv4 protocols ARP [ARP], ICMP Router Discovery [RDISC], and
Redirect [ICMPv4]. In IPv4 there is no generally agreed
protocol or mechanism for Neighbor Unreachability Detection,
Hosts Requirements [HR-CL] does specify some possible algorithms
Dead Gateway Detection (a subset of the problems
Unreachability Detection tackles).
The Neighbor Discovery protocol provides a multitude of
over the IPv4 set of protocols
Router Discovery is part of the base protocol set; there is no
for hosts to "snoop" the routing protocols
Router advertisements carry link-layer addresses; no
packet exchange is needed to resolve the router's link-
address
Router advertisements carry prefixes for a link; there is no
to have a separate mechanism to configure the "netmask".
Router advertisements enable Address Autoconfiguration
Routers can advertise an MTU for hosts to use on the link,
that all nodes use the same MTU value on links lacking a well
defined MTU
Address resolution multicasts are "spread" over 4 billion (2^32)
multicast addresses greatly reducing address resolution
interrupts on nodes other than the target. Moreover, non-IPv
machines should not be interrupted at all
Redirects contain the link-layer address of the new first hop
separate address resolution is not needed upon receiving
redirect
Multiple prefixes can be associated with the same link.
default, hosts learn all on-link prefixes from
Advertisements. However, routers may be configured to omit some
all prefixes from Router Advertisements. In such cases
Narten, Nordmark & Simpson Standards Track [Page 14]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
assume that destinations are off-link and send traffic to routers
A router can then issue redirects as appropriate
Unlike IPv4, the recipient of an IPv6 redirect assumes that the
next-hop is on-link. In IPv4, a host ignores redirects
a next-hop that is not on-link according to the link's
mask. The IPv6 redirect mechanism is analogous to the
facility specified in [SH-MEDIA]. It is expected to be useful
non-broadcast and shared media links in which it is undesirable
not possible for nodes to know all prefixes for on-
destinations
Neighbor Unreachability Detection is part of the base
improving the robustness of packet delivery in the presence
failing routers, partially failing or partitioned links and
that change their link-layer addresses. For instance, mobile
can move off-link without losing any connectivity due to stale
caches
Unlike ARP, Neighbor Discovery detects half-link failures (
Neighbor Unreachability Detection) and avoids sending traffic
neighbors with which two-way connectivity is absent
Unlike in IPv4 Router Discovery the Router Advertisement
do not contain a preference field. The preference field is
needed to handle routers of different "stability"; the
Unreachability Detection will detect dead routers and switch to
working one
The use of link-local addresses to uniquely identify routers (
Router Advertisement and Redirect messages) makes it possible
hosts to maintain the router associations in the event of the
renumbering to use new global prefixes
Using the Hop Limit equal to 255 trick Neighbor Discovery is
to off-link senders that accidentally or intentionally send
messages. In IPv4 off-link senders can send both ICMP
and Router Advertisement messages
Placing address resolution at the ICMP layer makes the
more media-independent than ARP and makes it possible to
standard IP authentication and security mechanisms as
[IPv6-AUTH, IPv6-ESP].
Narten, Nordmark & Simpson Standards Track [Page 15]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
3.2. Supported Link
Neighbor Discovery supports links with different properties. In
presence of certain properties only a subset of the ND
mechanisms are fully specified in this document
point-to-point - Neighbor Discovery handles such links just
multicast links. (Multicast can be
provided on point to point links, and interfaces
be assigned link-local addresses.)
Discovery should be implemented as described in
document
multicast - Neighbor Discovery should be implemented
described in this document
non-broadcast multiple access (NBMA
- Redirect, Neighbor Unreachability Detection
next-hop determination should be implemented
described in this document. Address resolution,
the mechanism for delivering Router
and Advertisements on NBMA links is not specified
this document. Note that if hosts support
configuration of a list of default routers,
can dynamically acquire the link-layer addresses
their neighbors from Redirect messages
shared media - The Redirect message is modeled after the
message in [SH-MEDIA] in order to simplify use
the protocol on shared media links
This specification does not address shared
issues that only relate to routers, such as
- How routers exchange reachability information
a shared media link
- How a router determines the link-layer address
a host, which it needs to send redirect
to the host
- How a router determines that it is the first-
router for a received packet
The protocol is extensible (through the
of new options) so that other solutions might
possible in the future
Narten, Nordmark & Simpson Standards Track [Page 16]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
variable MTU - Neighbor Discovery allows routers to specify a
for the link, which all nodes then use. All
on a link must use the same MTU (or Maximum
Unit) in order for multicast to work properly
Otherwise when multicasting a sender, which can
know which nodes will receive the packet, could
determine a minimum packet size all receivers
process
asymmetric
- Neighbor Discovery detects the absence of
reachability; a node avoids paths to a neighbor
which it does not have symmetric connectivity
The Neighbor Unreachability Detection will
identify such half-links and the node will
from using them
The protocol can presumably be extended in
future to find viable paths in environments
lack reflexive and transitive connectivity
4. MESSAGE
4.1. Router Solicitation Message
Hosts send Router Solicitations in order to prompt routers
generate Router Advertisements quickly
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-
IP Fields
Source
An IP address assigned to the sending interface,
the unspecified address if no address is assigned
the sending interface
Destination
Typically the all-routers multicast address
Narten, Nordmark & Simpson Standards Track [Page 17]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Hop Limit 255
Priority 15
Authentication
If a Security Association for the IP
Header exists between the sender and the
address, then the sender SHOULD include this header
ICMP Fields
Type 133
Code 0
Checksum The ICMP checksum. See [ICMPv6].
Reserved This field is unused. It MUST be initialized to
by the sender and MUST be ignored by the receiver
Valid Options
Source link-layer
The link-layer address of the sender, if known
Future versions of this protocol may define new option types
Receivers MUST silently ignore any options they do not recognize
continue processing the message
4.2. Router Advertisement Message
Routers send out Router Advertisement message periodically, or
response to a Router Solicitation
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Cur Hop Limit |M|O| Reserved | Router Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reachable Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Retrans Timer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-
Narten, Nordmark & Simpson Standards Track [Page 18]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
IP Fields
Source
MUST be the link-local address assigned to
interface from which this message is sent
Destination
Typically the Source Address of an invoking
Solicitation or the all-nodes multicast address
Hop Limit 255
Priority 15
Authentication
If a Security Association for the IP
Header exists between the sender and the
address, then the sender SHOULD include this header
ICMP Fields
Type 134
Code 0
Checksum The ICMP checksum. See [ICMPv6].
Cur Hop Limit 8-bit unsigned integer. The default value that
be placed in the Hop Count field of the IP header
outgoing IP packets. A value of zero
unspecified (by this router).
M 1-bit "Managed address configuration" flag. When set
hosts use the administered (stateful) protocol
address autoconfiguration in addition to any
autoconfigured using stateless
autoconfiguration. The use of this flag is
in [ADDRCONF].
O 1-bit "Other stateful configuration" flag. When set
hosts use the administered (stateful) protocol
autoconfiguration of other (non-address) information
The use of this flag is described in [ADDRCONF].
Reserved A 6-bit unused field. It MUST be initialized to
by the sender and MUST be ignored by the receiver
Narten, Nordmark & Simpson Standards Track [Page 19]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Router
16-bit unsigned integer. The lifetime associated
the default router in units of seconds. The
value corresponds to 18.2 hours. A Lifetime of 0
indicates that the router is not a default router
SHOULD NOT appear on the default router list.
Router Lifetime applies only to the router'
usefulness as a default router; it does not apply
information contained in other message fields
options. Options that need time limits for
information include their own lifetime fields
Reachable Time 32-bit unsigned integer. The time, in milliseconds
that a node assumes a neighbor is reachable
having received a reachability confirmation. Used
the Neighbor Unreachability Detection algorithm (
Section 7.3). A value of zero means unspecified (
this router).
Retrans Timer 32-bit unsigned integer. The time, in milliseconds
between retransmitted Neighbor Solicitation messages
Used by address resolution and the
Unreachability Detection algorithm (see Sections 7.2
and 7.3). A value of zero means unspecified (by
router).
Possible options
Source link-layer
The link-layer address of the interface from which
Router Advertisement is sent. Only used on
layers that have addresses. A router MAY omit
option in order to enable inbound load sharing
multiple link-layer addresses
MTU SHOULD be sent on links that have a variable MTU (
specified in the document that describes how to run
over the particular link type). MAY be sent on
links
Prefix
These options specify the prefixes that are on-
and/or are used for address autoconfiguration.
router SHOULD include all its on-link prefixes (
the link-local prefix) so that multihomed hosts
complete prefix information about on-link
for the links to which they attach. If
information is lacking, a multihomed host may not
Narten, Nordmark & Simpson Standards Track [Page 20]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
able to chose the correct outgoing interface
sending traffic to its neighbors
Future versions of this protocol may define new option types
Receivers MUST silently ignore any options they do not recognize
continue processing the message
4.3. Neighbor Solicitation Message
Nodes send Neighbor Solicitations to request the link-layer
of a target node while also providing their own link-layer address
the target. Neighbor Solicitations are multicast when the node
to resolve an address and unicast when the node seeks to verify
reachability of a neighbor
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| |
+ Target Address +
| |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-
IP Fields
Source
Either an address assigned to the interface from
this message is sent or (if Duplicate
Detection is in progress [ADDRCONF]) the
address
Destination
Either the solicited-node multicast
corresponding to the target address, or the
address
Hop Limit 255
Narten, Nordmark & Simpson Standards Track [Page 21]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Priority 15
Authentication
If a Security Association for the IP
Header exists between the sender and the
address, then the sender SHOULD include this header
ICMP Fields
Type 135
Code 0
Checksum The ICMP checksum. See [ICMPv6].
Reserved This field is unused. It MUST be initialized to
by the sender and MUST be ignored by the receiver
Target
The IP address of the target of the solicitation.
MUST NOT be a multicast address
Possible options
Source link-layer
The link-layer address for the sender. On link
that have addresses this option MUST be included
multicast solicitations and SHOULD be included
unicast solicitations
Future versions of this protocol may define new option types
Receivers MUST silently ignore any options they do not recognize
continue processing the message
Narten, Nordmark & Simpson Standards Track [Page 22]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
4.4. Neighbor Advertisement Message
A node sends Neighbor Advertisements in response to
Solicitations and sends unsolicited Neighbor Advertisements in
to (unreliably) propagate new information quickly
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|R|S|O| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| |
+ Target Address +
| |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-
IP Fields
Source
An address assigned to the interface from which
advertisement is sent
Destination
For solicited advertisements, the Source Address of
invoking Neighbor Solicitation or, if
solicitation's Source Address is the
address, the all-nodes multicast address
For unsolicited advertisements typically the all-
multicast address
Hop Limit 255
Priority 15
Authentication
If a Security Association for the IP
Header exists between the sender and the
address, then the sender SHOULD include this header
Narten, Nordmark & Simpson Standards Track [Page 23]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
ICMP Fields
Type 136
Code 0
Checksum The ICMP checksum. See [ICMPv6].
R Router flag. When set, the R-bit indicates that
sender is a router. The R-bit is used by
Unreachability Detection to detect a router
changes to a host
S Solicited flag. When set, the S-bit indicates
the advertisement was sent in response to a
Solicitation from the Destination address. The S-
is used as a reachability confirmation for
Unreachability Detection. It MUST NOT be set
multicast advertisements or in unsolicited
advertisements
O Override flag. When set, the O-bit indicates that
advertisement should override an existing cache
and update the cached link-layer address. When it
not set the advertisement will not update a
link-layer address though it will update an
Neighbor Cache entry for which no link-layer
is known. It SHOULD NOT be set in
advertisements for anycast addresses and in
proxy advertisements. It SHOULD be set in
solicited advertisements and in
advertisements
Reserved 29-bit unused field. It MUST be initialized to
by the sender and MUST be ignored by the receiver
Target
For solicited advertisements, the Target Address
in the Neighbor Solicitation message that
this advertisement. For an unsolicited advertisement
the address whose link-layer address has changed.
Target Address MUST NOT be a multicast address
Narten, Nordmark & Simpson Standards Track [Page 24]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Possible options
Target link-layer
The link-layer address for the target, i.e.,
sender of the advertisement. MUST be included on
layers that have addresses
Future versions of this protocol may define new option types
Receivers MUST silently ignore any options they do not recognize
continue processing the message
4.5. Redirect Message
Routers send Redirect packets to inform a host of a better first-
node on the path to a destination. Hosts can be redirected to
better first-hop router but can also be informed by a redirect
the destination is in fact a neighbor. The latter is accomplished
setting the ICMP Target Address equal to the ICMP
Address
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reserved |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| |
+ Target Address +
| |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| |
+ Destination Address +
| |
+ +
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-
Narten, Nordmark & Simpson Standards Track [Page 25]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
IP Fields
Source
MUST be the link-local address assigned to
interface from which this message is sent
Destination
The Source Address of the packet that triggered
redirect
Hop Limit 255
Priority 15
Authentication
If a Security Association for the IP
Header exists between the sender and the
address, then the sender SHOULD include this header
ICMP Fields
Type 137
Code 0
Checksum The ICMP checksum. See [ICMPv6].
Reserved This field is unused. It MUST be initialized to
by the sender and MUST be ignored by the receiver
Target Address An IP address that is a better first hop to use
the ICMP Destination Address. When the target is
actual endpoint of communication, i.e.,
destination is a neighbor, the Target Address
MUST contain the same value as the ICMP
Address field. Otherwise the target is a
first-hop router and the Target Address MUST be
router's link-local address so that hosts can
identify routers
Destination
The IP address of the destination which is
to the target
Narten, Nordmark & Simpson Standards Track [Page 26]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
Possible options
Target link-layer
The link-layer address for the target. It SHOULD
included (if known). Note that on NBMA links,
may rely on the presence of the Target Link-
Address option in Redirect messages as the means
determining the link-layer addresses of neighbors.
such cases, the option MUST be included in
messages
Redirected
As much as possible of the IP packet that
the sending of the Redirect without making
redirect packet exceed 576 octets
4.6. Option
Neighbor Discovery messages include zero or more options, some
which may appear multiple times in the same message. All options
of the form
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | ... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~ ... ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields
Type 8-bit identifier of the type of option. The
defined in this document are
Option Name
Source Link-Layer Address 1
Target Link-Layer Address 2
Prefix Information 3
Redirected Header 4
MTU 5
Length 8-bit unsigned integer. The length of the option
units of 8 octets. The value 0 is invalid.
MUST silently discard an ND packet that contains
option with length zero
Narten, Nordmark & Simpson Standards Track [Page 27]
RFC 1970 Neighbor Discovery for IP Version 6 (IPv6) August 1996
4.6.1. Source/Target Link-layer
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Length | Link-Layer Address ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Fields
1 for Source Link-layer
2 for Target Link-layer
Length The length of the option in units of 8 octets.
example, the length for IEEE 802 addresses is 1
[IPv6-ETHER].
Link-Layer
The variable length link-layer address
The content and format of this field (including
and bit ordering) is expected to be specified