Skip to content

NDP

The Neighbor Discovery Protocol (NDP) is to IPv6 what ARP and parts of ICMP and DHCP are to IPv4. Hosts use it to find the MAC address of a neighbor, to check that an address is not in use before they take it, and to find the routers of their network. Routers use it to tell hosts which prefixes the network has, how to get an address and which DNS servers to use. NDP runs on top of ICMPv6 and has no authentication, so it can be abused the same way ARP and DHCP can: a device can claim an address that belongs to another device, or advertise itself as a router.

NDP in Nzyme

Nzyme records NDP passively and uses it in several places:

  • All recorded NDP traffic can be inspected under NDP on the Assets page under Ethernet in the sidebar of your Nzyme web interface. Messages lists solicitations and neighbor advertisements, and Router Advertisements lists what routers announce.
  • NDP tells Nzyme which asset has an IPv6 address, like ARP does for IPv4. See Assets.
  • Detection of NDP spoofing and of rogue IPv6 routers reads NDP. See Spoofing.
  • Detection of sweeps of the local network reads neighbor solicitations. See Recon.
  • The prefixes that trusted routers advertise can be treated as internal networks. See Internal Addresses.
NDP message ICMPv6 type Recorded on
Router solicitation 133 Messages
Router advertisement 134 Router Advertisements
Neighbor solicitation 135 Messages
Neighbor advertisement 136 Messages
Redirect 137 The Redirects tab of the ICMP page

Multicast listener discovery, which hosts use to join multicast groups, is not recorded.

Messages

The Messages page lists neighbor solicitations, neighbor advertisements and router solicitations of the selected taps and time range, with a chart of the messages over time. Neighbors are probed again every few seconds, so identical messages that a tap saw within one of its reports are one row with a packet count.

Field Meaning
Message The message type.
Source MAC The MAC address the message was sent from, with its asset.
Source Address The IPv6 address the message was sent from. The unspecified address :: is a host that checks whether an address is free before it takes it (duplicate address detection).
Target Address The address a solicitation asks for, or the address an advertisement announces. Messages without a target show the address they were sent to.
Flags For advertisements: Router when the sender is a router, Solicited when the advertisement answers a solicitation, Override when it should replace what the receiver has cached.
Hop Limit The hop limit the message arrived with. See below.
Packets How many identical messages the row stands for.

The filters also cover the destination address and the link-layer addresses that messages carry as options, and the source can be filtered by asset tag.

The Hop Limit

NDP messages are sent with a hop limit of 255, and hosts discard every NDP message that arrives with a lower one. Routers decrease the hop limit of what they forward, so a message that arrives with 255 was sent on the local link. Nzyme records messages with any hop limit and marks the ones that are not 255, but it does not act on them: they create no assets, claim no addresses and are ignored by spoofing detection.

Router Advertisements

The Router Advertisements page lists the advertisements of the selected taps and time range. Routers repeat their advertisement every few minutes, so identical advertisements that a tap saw within one of its reports are one row with a packet count.

Field Meaning
Router MAC The MAC address of the router. This is the link-layer address the advertisement names, or the MAC address it was sent from if it names none.
Router Address The link-local address the advertisement was sent from.
Prefixes The prefixes the router announces for the link. Hosts form their addresses from the prefixes that allow it.
DNS Servers The DNS servers the router announces.
Addresses From How hosts get their addresses: SLAAC when they form them from the prefixes on their own, DHCPv6 when the router tells them to ask a DHCPv6 server, or SLAAC with other settings from DHCPv6.
Preference The preference hosts give this router over others: High, Medium or Low.
Lifetime How long hosts may use the router as a default router. A lifetime of zero means the router does not offer itself as a default router.
Hop Limit The hop limit the advertisement arrived with. See above.
Packets How many identical advertisements the row stands for.

An advertisement is recorded with up to 32 prefixes, 32 routes, 16 DNS servers and 16 search domains.

Working With NDP Data

  • Find the device behind an IPv6 address. Filter Messages for the address as Target Address and the message type NEIGHBOR_ADVERTISEMENT. The source MAC address is the device that answers for the address.
  • Know your routers. The Router Advertisements page should list the routers you expect and nothing else. Any other sender hands out network configuration to the hosts around it. Rogue router detection raises a finding for it, see Spoofing.
  • Check what hosts are told. The prefixes, the DNS servers and Addresses From of an advertisement are what every host of the link configures itself with. An advertisement that announces DNS servers you do not run deserves a look.
  • Look at messages from off the link. Filter for a hop limit that is not 255. Such messages cannot come from a neighbor, and hosts ignore them. A few can come from misconfigured devices. Many are an attempt that failed.
  • Networks without IPv6. Operating systems send NDP whether or not the network uses IPv6. Solicitations and advertisements for link-local addresses are normal there. Router advertisements are not.

The Messages page supports monitors, which turn a filter into a persistent alert condition, for example for neighbor advertisements that did not arrive with a hop limit of 255. The search finds the addresses that neighbor advertisements announced, by address, network or MAC address.

Configuration

NDP is recorded when Ethernet monitoring is enabled on an interface and needs no further configuration. See the Ethernet overview for interface configuration.

The NDP section is required in your Nzyme tap configuration files:

[protocols.ndp]
pipeline_size = 1024
Variable Description
pipeline_size The tap process moves data internally using in-memory pipelines. You may have to increase this value if you experience high throughput of NDP messages.

A tap holds up to 20,000 different messages and 1,000 different router advertisements between two reports. More than that is a flood of forged messages. The tap stops recording new ones until the next report and counts what it left out in its metrics.

Detection of NDP spoofing and rogue routers runs on the Nzyme node, where it can combine the observations of all taps. See Spoofing for how it works and how it is configured.

Retention

NDP messages and router advertisements follow the retention time of the Ethernet: Layer 4 data category. See Configuring Retention Times for how to change retention times.