Neighbor Discovery Protocol or NDP has a number of functions with regards to IP version 6.
The first one is slack which again is stateless address order configuration.
A host can discover which subnet or prefix it belongs to a host or P.C. as an example could use its
MAC address for the host portion of an IP version 6 address.
But it needs to know which subnet it belongs to or which prefix it belongs to and the length of that
prefix a router can dynamically allocate the network portion of the address to a host using Slack.
And I'm going to demonstrate that in a moment.
Rather discovery is how IP version 6 hosts discover routers.
So rather discovery would be used by a host to determine the subnet that it belongs to the host again
needs to determine the network portion of an address and it can use rather discovery messages to do
that duplicate address translation or dad is used by a host to determine that no other host is using
the same IP address.
We don't want to have duplicate addresses.
If by some reason there are two hosts on the same subnet using the same MAC address duplicate address
detection can be used to determine if there are duplicate addresses an IP version 6 P.C. will first
check whether another host is using the same IP version 6 a unique cost address as itself before it
tries to use that address in addition neighbor Discovery Protocol is used for neighbor Mac discovery
there's no up messages in IP version 6 OP uses broadcasts broadcasts are not supported an IP version
6 so a different mechanism is required.
And again maybe Discovery Protocol is used to discover neighboring MAC addresses if a P.C. needs to
ping another device on the same subnet it needs to know what to the MAC address is of that neighboring
device so determines the MAC address through neighbor Mac discovery NDP replaces IP vision for OP.
So how do IP version 6 hosts discover routers ICMP Version 6 replaces IP version 4 ICMP again there's
a lot of similarity between the protocols IP version 6 ICMP supports echo requests and echo replies
so you can use pings in the same way as you did an IP version for.