📝 Neighbor Discovery Messages ND (15 MCQs)
Neighbor Discovery for Local IPv6 Communication
IPv6 Neighbor Discovery allows hosts and routers on the same link to discover neighboring nodes, resolve link-layer addresses, find routers, and monitor reachability. It replaces the Address Resolution Protocol used by IPv4 and also combines router discovery and related functions. ND uses ICMPv6 messages and multicast addressing, making it a core part of IPv6 local-link operation. It operates on each local link and uses multicast destinations.
Router and Neighbor Discovery Message Types
Neighbor Discovery defines Router Solicitation, Router Advertisement, Neighbor Solicitation, Neighbor Advertisement, and Redirect messages. Router messages help hosts learn default routers and network prefixes. Neighbor messages resolve an IPv6 next-hop address to a link-layer address and support Duplicate Address Detection. Redirect messages can inform a host about a better first-hop router for a destination.
The Neighbor Resolution Exchange
When a host needs to send a packet to an on-link IPv6 neighbor, it checks its Neighbor Cache. If no usable link-layer address is stored, it sends a Neighbor Solicitation to the target's solicited-node multicast address. The target responds with a Neighbor Advertisement, allowing the sender to record the link-layer address and transmit the frame.
Resolving a Neighbor on an Ethernet LAN
Host A wants to reach 2001:DB8:1::20 on its local Ethernet. It sends a Neighbor Solicitation for that IPv6 target using the associated solicited-node multicast destination. Host B responds with a Neighbor Advertisement containing its Ethernet address. Host A stores the mapping and sends the IPv6 datagram inside an Ethernet frame to B.
Neighbor Discovery, SLAAC and Router Selection
ND supports SLAAC by carrying Router Advertisements with prefix and configuration information, and it supports Duplicate Address Detection through Neighbor Solicitation. Neighbor Unreachability Detection monitors whether neighbors remain reachable. These functions connect IPv6 addressing, default-router selection, Ethernet delivery, and network maintenance without using ARP broadcasts. It maintains local state for the router's connected segment.
Misconceptions About Neighbor Discovery
'IPv6 uses ARP for address resolution' is incorrect because Neighbor Discovery uses ICMPv6. 'A Neighbor Solicitation is always broadcast' is false because IPv6 has no broadcast and uses multicast. 'Neighbor Discovery only maps addresses' is incomplete; it also supports router discovery, DAD, redirects, and reachability detection. These messages have defined ICMPv6 types and functions.
Tracing Neighbor Discovery Message Sequences
Be able to distinguish Router Solicitation from Neighbor Solicitation, and Router Advertisement from Neighbor Advertisement. Explain the use of solicited-node multicast, Neighbor Cache entries, and Duplicate Address Detection. Trace a basic address-resolution exchange and state how ND differs from ARP in IPv4. Be able to identify each sender and expected response.
IPv6 Neighbor Discovery Terms
- Neighbor Discovery - ICMPv6 functions for local-link discovery.
- Neighbor Solicitation - Requests information about a target neighbor.
- Neighbor Advertisement - Provides a neighbor's link-layer information.
- Router Advertisement - Announces routers and IPv6 prefixes.
- Neighbor Cache - Stores information about reachable neighbors.
- DAD - Checks an IPv6 address for duplication.
📝 All Neighbor Discovery Messages ND MCQs
Q1. What is the primary purpose of a Neighbor Discovery Message (NDM) in intra‑AS routing?
📖 Explanation: NDMs are control packets exchanged between directly connected routers to convey routing information such as link‑state advertisements (OSPF) or distance‑vector updates (RIP). This exchange enables each router to build a consistent view of the network topology, which is essential for correct packet forwarding.
Q2. When AS1 runs OSPF and AS2 runs RIP, how does R5 discover a path to N4?
📖 Explanation: R5 first learns the OSPF topology inside AS1 via LSAs, but to reach N4 (located in AS2) it must rely on the RIP updates propagated by R6. Since RIP is the intra‑AS protocol for AS2, R5 uses the RIP metric advertised by R6 to select the next hop toward N4.
Q3. Compare the convergence time of OSPF versus RIP when R5 learns the route to N4 after a link failure. Which statement is most accurate?
📖 Explanation: OSPF, as a link‑state protocol, triggers an immediate flood of updated LSAs to all routers when a link changes, leading to rapid convergence. RIP, a distance‑vector protocol, relies on periodic updates and may experience slower convergence due to its slower update interval and count‑to‑infinity problems.
Q4. If AS2 replaces RIP with OSPF, how would R5’s discovery process for N4 be altered?
📖 Explanation: With OSPF in both AS1 and AS2, R5 receives OSPF link‑state advertisements that describe the full network graph, eliminating the need to interpret RIP metrics. The OSPF hello and LSA exchanges provide a unified topology, enabling R5 to compute the shortest‑path tree directly to N4.
Q5. In Figure 20.24, assuming AS3 and AS4 run RIP, which sequence of NDM exchanges enables R8 to learn a route to N13?
📖 Explanation: RIP propagates distance‑vector information hop‑by‑hop. R8 learns N13’s distance when R7 forwards the RIP update it received from R6, which originally learned the route from its neighbor that directly knows N13. This cascading exchange of NDMs builds the route incrementally across the RIP‑based ASes.
Q6. Evaluate the scalability impact of using link‑state NDMs versus distance‑vector NDMs in a large autonomous system. Which assessment is most appropriate?
📖 Explanation: Link‑state protocols flood LSAs throughout the AS, incurring more bandwidth usage, yet each router maintains a complete map, enabling efficient shortest‑path computation even as the network grows. Distance‑vector protocols exchange only metrics, reducing traffic, but the limited view leads to routing loops and slower convergence, limiting scalability.
Q7. Synthesize a scenario where R5 must rely on both OSPF and RIP NDMs to route to N4. What mechanism allows this hybrid operation?
📖 Explanation: In a hybrid environment, R5 maintains an OSPF database for its own AS while also receiving RIP updates from the neighboring AS. Through route redistribution, RIP‑learned routes are injected into the OSPF LSDB with appropriate cost conversion, letting R5 compute a unified shortest‑path tree that includes N4.
Q8. When a router receives conflicting routes to the same destination via OSPF and RIP NDMs, which metric is typically preferred according to common routing policy?
📖 Explanation: Most implementations assign a lower administrative distance to OSPF (e.g., 110) than to RIP (e.g., 120). Consequently, when both protocols advertise a route to the same prefix, the OSPF entry is preferred, and the router installs that path in its forwarding table.
Q9. Differentiate the role of sequence numbers in OSPF NDMs from hop count in RIP NDMs for loop prevention. Which statement best captures the difference?
📖 Explanation: OSPF attaches a monotonically increasing sequence number to each LSA; routers discard older LSAs, ensuring that only the most recent topology information is used, thereby preventing loops. RIP relies on hop count, which can cause count‑to‑infinity problems; additional mechanisms like split horizon are required to avoid loops.
Q10. Apply the split‑horizon rule to RIP NDMs in AS2. How would the NDMs be altered?
📖 Explanation: Split horizon prevents a router from sending a routing update containing a route back out through the same interface that received it. This eliminates the possibility of a router repeatedly advertising a route to its neighbor, thereby reducing routing loops in RIP‑based networks.
Q11. If the link between AS1 and AS2 fails, how does R5 detect the change via NDMs and update its routing table?
📖 Explanation: OSPF routers exchange hello packets; when R5 no longer receives hello or LSAs from the neighbor across the failed link, the adjacency times out. R5 then floods a Link‑State Update indicating the link is down, prompting all routers to recalculate their shortest‑path trees, which removes any routes that depended on the failed link.
Q12. Compare the overhead of periodic NDMs in OSPF with event‑driven NDMs in DVMRP for multicast routing. Which observation is correct?
📖 Explanation: OSPF periodically floods LSAs regardless of network changes, incurring steady bandwidth consumption. DVMRP, a distance‑vector multicast protocol, primarily sends prune and graft messages when receivers join or leave groups, resulting in lower average overhead but potentially higher spikes during membership changes.
Q13. How do path‑vector NDMs incorporate autonomous‑system numbers to avoid routing loops in inter‑domain scenarios?
📖 Explanation: Path‑vector protocols (e.g., BGP) attach the sequence of AS numbers traversed by a route to the NDM. When a router receives an update, it checks the AS‑path; if its own AS identifier appears, the update is rejected, thereby preventing the formation of routing loops across autonomous systems.
Q14. R8 receives two NDMs for N13: one via AS3 with metric and another via AS4 with metric . Which route will R8 install and why?
📖 Explanation: Routing decisions prioritize the lowest numerical metric when multiple paths exist. Since the NDM received via AS3 reports a metric of (shorter distance) compared with the metric via AS4, R8 selects the AS3 path as the best route to N13.
Q15. What is the effect of increasing the OSPF hello interval on network stability and convergence?
📖 Explanation: The OSPF hello interval determines how often routers send hello packets to confirm adjacency. Raising this interval lowers the number of hello messages, easing bandwidth usage, but it also means a failed neighbor is detected later, which can postpone topology recomputation and thus degrade convergence speed and transient stability.