Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Neighbor Discovery Protocol

From Wikipedia, the free encyclopedia
Protocol in the Internet protocol suite used with IPv6
Neighbor Discovery Protocol
Communication protocol
When defining its messages, NDP followsICMPv6 message format.
PurposeAuxiliary protocol forIPv6
Developer(s)Internet Engineering Task Force
IntroductionMarch 1996; 29 years ago (1996-03)
OSI layerNetwork layer
RFC(s)1970,2461,4861

TheNeighbor Discovery Protocol (NDP), or simplyNeighbor Discovery (ND), is a protocol of theInternet protocol suite used withInternet Protocol Version 6 (IPv6).[1]: §1  It operates at theinternet layer of theInternet model,[2] and is responsible for gathering various information required for network communication, including the configuration of local connections and thedomain name servers and gateways.

The protocol defines five ICMPv6 packet types to perform functions for IPv6 similar to theAddress Resolution Protocol (ARP) andInternet Control Message Protocol (ICMP)Router Discovery andRouter Redirect protocols forIPv4. It provides many improvements over its IPv4 counterparts.[1]: §3.1  For example, it includes Neighbor Unreachability Detection (NUD), thus improving robustness of packet delivery in the presence of failing routers or links, or mobile nodes.

TheInverse Neighbor Discovery (IND) protocol extension allows nodes to determine and advertise an IPv6 address corresponding to a given link-layer address, similar toInverse ARP for IPv4.[3]

TheSecure Neighbor Discovery Protocol (SEND), a security extension of NDP, usesCryptographically Generated Addresses (CGA) and theResource Public Key Infrastructure (RPKI) to provide an alternative mechanism for securing NDP with a cryptographic method that is independent ofIPsec. Neighbor Discovery Proxy (ND Proxy) provides a service similar to IPv4Proxy ARP and allows bridging multiple network segments within a single subnet prefix when bridging cannot be done at the link layer.[4]

Internet protocol suite
Application layer
Transport layer
Internet layer
Link layer

Functions

[edit]

NDP defines fiveICMPv6 packet types for the purpose of router solicitation, router advertisement, neighbor solicitation, neighbor advertisement, and network redirects.[1]

Router Solicitation (Type 133)
Hosts inquire with Router Solicitation messages to locate routers on an attached link.[1]: §3  Routers which forward packets not addressed to them generate Router Advertisements immediately upon receipt of this message rather than at their next scheduled time.
Router Advertisement (Type 134)
Routers advertise their presence together with various link and Internet parameters either periodically, or in response to a Router Solicitation message.
Neighbor Solicitation (Type 135)
Neighbor solicitations are used by nodes to determine the link-layer address of a neighbor, or to verify that a neighbor is still reachable via a cached link-layer address.
Neighbor Advertisement (Type 136)
Neighbor advertisements are used by nodes to respond to a Neighbor Solicitation message, or unsolicited to provide new information quickly.
Redirect (Type 137)
Routers may inform hosts of a better first-hop router for a destination.

These messages are used to provide the following functionality:

  • Router discovery: hosts can locate routers residing on attached links.
  • Prefix discovery: hosts can discover address prefixes that are on-link for attached links.
  • Parameter discovery: hosts can find link parameters (e.g.,MTU).
  • Address autoconfiguration: optional stateless configuration of addresses of network interfaces (seeIPv6 § Stateless address autoconfiguration (SLAAC) andIPv6 address § Stateless address autoconfiguration).
  • Address resolution: mapping between IP addresses and link-layer addresses.
  • Next-hop determination: hosts can find next-hop routers for a destination.
  • Neighbor unreachability detection (NUD): determine that a neighbor is no longer reachable on the link.
  • Duplicate address detection (DAD): nodes can check whether an address is already in use.
  • Recursive DNS Server (RDNSS) and DNS Search List (DNSSL) assignment via a router advertisement (RA) options.[5] This is a proposed standard since 2010[6] and updated in March 2017, but not supported by all clients.[citation needed]
  • Packet redirection to provide a better next-hop route for certain destinations.

IANA maintains a list of all current NDP options as they are published.[7]

Example

[edit]

Two computers,A andB are connected to the samelocal area network with no interveninggateway orrouter.A has a packet to send to IP address2001:db8::55 which happens to be the address ofB.

Before sending the packet toB,A creates asolicited-node multicast address by appending the least-significant 24 bits ofB's address to the prefixff02::1:ff00:0/104, which isff02::1:ff00:55 and creates asolicited-node multicast MAC address by appending the least-significant 24 bits ofB's solicited-node multicast address to the prefix33:33:FF:xx:xx:xx,[8] which is33:33:FF:00:00:55.A sends a neighbor solicitation message requesting an answer for2001:db8::55 (destinationff02::1:ff00:55 IP address and destination33:33:FF:00:00:55 MAC address), which is accepted byB which is listening on its own solicited-node multicast address on the local network.B responds with a neighbor advertisement message containing its MAC and IP addresses.A receives the response and sends the packet on the link withB's MAC address.

Typically, network nodes maintain alookup cache that associates IP and MAC addresses. In this example, if A had the lookup cached, then it would not need to send the NDP request. Also, when B received the request, it could cache the lookup to A so that if B needs to send a packet to A later, it does not need to use NDP to lookup its MAC address. Finally, when A receives the NDP response, it can cache the lookup for future messages addressed to the same IP address.

Messages formats

[edit]
  • Router Solicitation Message
    Router Solicitation Message
  • Router Advertisement Message
    Router Advertisement Message
  • Neighbor Solicitation Message
    Neighbor Solicitation Message
  • Neighbor Advertisement Message
    Neighbor Advertisement Message
  • Redirect Message
    Redirect Message

See also

[edit]
  • NDPMon – Software to monitor ICMPv6 packets
  • radvd – Server software for computer network configuration

References

[edit]
  1. ^abcdT. Narten; E. Nordmark; W. Simpson; H. Holiman (September 2007).Neighbor Discovery for IP version 6 (IPv6). Network Working Group.doi:10.17487/RFC4861.RFC4861.Draft Standard. ObsoletesRFC 2461. Updated byRFC 5942,6980,7048,7527,7559,8028,8319,8425 and9131.
  2. ^R. Braden, ed. (October 1989).Requirements for Internet Hosts -- Communication Layers. Network Working Group.doi:10.17487/RFC1122. STD 3. RFC1122.Internet Standard 3. Updated byRFC 1349,4379,5884,6093,6298,6633,6864,8029 and9293.
  3. ^A. Conta, ed. (June 2001).Extensions to IPv6 Neighbor Discovery for Inverse Discovery Specification. Network Working Group.doi:10.17487/RFC3122.RFC3122.Proposed Standard.
  4. ^D. Thaler; M. Talwar; C. Patel (April 2006).Neighbor Discovery Proxies (ND Proxy). Network Working Group.doi:10.17487/RFC4389.RFC4389.Experimental.
  5. ^J. Jeong; S. Park; L. Beloeil; S. Madanapalli (March 2017).IPv6 Router Advertisement Options for DNS Configuration.Internet Engineering Task Force.doi:10.17487/RFC8106.ISSN 2070-1721.RFC8106.Proposed Standard. ObsoletesRFC 6106.
  6. ^J. Jeong; S. Park; L. Beloeil; S. Madanapalli (November 2010).IPv6 Router Advertisement Options for DNS Configuration.Internet Engineering Task Force.doi:10.17487/RFC6106.ISSN 2070-1721.RFC6106.Obsolete. Obsoleted byRFC 8106. ObsoletesRFC 5006.
  7. ^"IPv6 Neighbor Discovery Option Formats".Internet Control Message Protocol version 6 (ICMPv6) Parameters. Internet Assigned Numbers Authority. 2017-12-05. Retrieved2017-12-16.
  8. ^"IPv6 Real-Time Usage of IEEE 802.16: Problem Statement".www.ietf.org. Retrieved2023-09-22.
General
Deployment
IPv4 to IPv6 topics
Related protocols
Retrieved from "https://en.wikipedia.org/w/index.php?title=Neighbor_Discovery_Protocol&oldid=1337774454"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp