askvity

What is NDP in Wi-Fi?

Published in Networking Protocols 3 mins read

NDP in the context of Wi-Fi refers to the Neighbor Discovery Protocol, a crucial protocol for IPv6 networks. It's not specific to Wi-Fi itself, but is essential for IPv6-based Wi-Fi networks. It allows devices on the same local network to discover each other, find routers, and configure their network settings automatically.

Understanding Neighbor Discovery Protocol (NDP)

NDP is a fundamental component of IPv6 networks, performing several key functions that were handled by different protocols in IPv4. It's the cornerstone for IPv6 network management and communication within a local network.

Key Functions of NDP:

  • Router Solicitation and Advertisement: NDP allows hosts to discover routers on the network. Hosts send Router Solicitation (RS) messages, and routers respond with Router Advertisement (RA) messages. These RA messages provide essential information like the network prefix, default gateway, and other configuration parameters.

  • Neighbor Solicitation and Advertisement: Similar to ARP in IPv4, NDP uses Neighbor Solicitation (NS) and Neighbor Advertisement (NA) messages to determine the link-layer address (e.g., MAC address) of a neighbor given its IPv6 address.

  • Address Resolution: This is the core function of discovering the MAC address associated with a known IPv6 address on the local network.

  • Duplicate Address Detection (DAD): Before an IPv6 address is assigned to an interface, NDP performs Duplicate Address Detection to ensure that no other device on the network is already using that address. This prevents address conflicts.

  • Redirect: Routers use Redirect messages to inform hosts of a better route to a destination, potentially through a different router on the same network.

How NDP Replaces IPv4 Protocols:

NDP consolidates the functionalities of several IPv4 protocols into a single, more efficient protocol:

IPv4 Protocol IPv6 Equivalent(s) Functionality
ARP (Address Resolution Protocol) NS/NA messages Address resolution (MAC address discovery)
ICMP Router Discovery Protocol (IRDP) RS/RA messages Router discovery and network configuration
ICMP Redirect Redirect messages Informing hosts of better routes

NDP in Wi-Fi Networks:

While NDP isn't specific to Wi-Fi, it's crucial for IPv6 Wi-Fi networks. When a device connects to a Wi-Fi network using IPv6, NDP enables it to:

  1. Discover the Wi-Fi router (acting as the default gateway): Through Router Solicitation and Advertisement.
  2. Obtain the network prefix: From the Router Advertisement, allowing the device to configure its IPv6 address.
  3. Resolve the MAC address of other devices on the network: Using Neighbor Solicitation and Advertisement for direct communication.

In summary, NDP is the IPv6 equivalent of ARP (Address Resolution Protocol) and ICMP Router Discovery Protocol found in IPv4 networks. It’s a vital protocol facilitating communication within local IPv6 networks, including those implemented over Wi-Fi.