Summary

  • Early IPv6 Neighbor Discovery handed a host a list of volunteer routers and no vocabulary for saying which volunteer was better — or better for what.
  • RFC 4191, published in November 2005, added three preference levels and an expiring Route Information Option, then stepped back: longest prefix wins, preference only breaks ties, and observed reachability can overrule the lot.
  • The whole thing was a hint with a lease, not a routing protocol and not a certificate — which is exactly why it aged well, and exactly why forged advertisements still work.

A laptop with three cables and no vocabulary

Picture the machine that broke the model: a laptop with Ethernet to the corporate LAN, Wi-Fi to a guest network, and a tunnel to a laboratory on another continent. Three routers, all of them volunteering, none of them equal. The host had a list. What it lacked was a sentence.

RFC 2461, the original IPv6 Neighbor Discovery specification, was almost proud of that poverty. Router Advertisements filled two structures — a Prefix List and a Default Router List — and the host asked one question: is this destination on-link, and if not, which volunteer gets the packet? Elegant. Also mute.

Because a default-router list records who showed up, not who is any good. One router reaches the public Internet; another reaches an isolated laboratory and drops everything else on the floor. Two routers on the same link may offer paths of wildly different quality. The list ranked them identically.

Reachability helped a little. The algorithm preferred routers known, or probably, reachable, and when nobody had evidence it rotated politely among the candidates. But two reachable routers stayed semantic twins even when one would swallow the packet or bounce it straight back with a Redirect.

Redirect was the partial fix, and it was parochial: a router could correct a host's choice for a destination, but only on its own link. A router on Ethernet could not redirect the host toward a router sitting behind a different interface. Multihoming turned a deliberately thin list into an under-specified argument.

Two bits that refused to become a metric

RFC 4191, published in November 2005, extended Router Advertisements without enrolling hosts in a router-to-router protocol. Its first instrument was almost insultingly small: a two-bit preference — High, Medium or Low, with the fourth pattern reserved.

The smallness was the point. Three values, the document notes, reinforce that preference is not a routing metric. An administrator can say "prefer the public exit," "keep this firewall as the fallback," or "use this box for ordinary traffic only when the good one is gone." What the field cannot say is cost, bandwidth, delay, contractual priority, or a rank that means the same thing on somebody else's network.

That limit is also a division of labour. Preferences must be configured by a human who knows the topology; they are not to be harvested automatically from an interior routing metric. The router is not invited to translate its private control plane into a universal order for every host that happens to be listening.

And a preference without a live offer has no force. Set Router Lifetime to zero and the two bits become decoration: the router has stopped offering itself as a default, however handsome its preference.

A routing table small enough to fit in a hint

The second instrument was Neighbor Discovery option type 24, the Route Information Option: a prefix length, the same three-level preference, a route lifetime, and just enough prefix bits to name a destination range.

This is a routing table by design, and a small one. A router can advertise an isolated corporate prefix through a tunnel while a different interface supplies the default Internet route. It can point a 6to4 range at a suitable first hop without claiming to be the best default for everything else. A ::/0 option can even carry a default preference and lifetime that differ from the values in the Router Advertisement header — a footnote with its own footnote.

Lifetime turns the statement into a lease. Zero withdraws the route learned from that router; all-ones means infinity, a promise dangerous precisely because it survives the refresh cycles that would otherwise clean it up. The host does not learn that the prefix belongs to the router, or that it exists anywhere else in the world. It learns that, for a bounded interval, this router claims to be a useful first hop for destinations matching those bits.

The restraint is written into the document. Routers should not advertise preferences or routes by default, and should not dump their full tables on hosts. The RFC caps it at seventeen Route Information Options per advertisement per link — an arbitrary number carrying an architectural message: expose the small decision surface the host needs, not the machinery that produced it.

Longest prefix speaks first; preference only breaks the tie

RFC 4191 sorted hosts into three species so the extension could arrive without pretending everyone had upgraded. Type A ignores both additions. Type B understands default-router preference and ignores specific routes. Type C keeps a conceptual routing table and uses everything.

For Type C, specificity outranks enthusiasm. The host finds the longest matching prefix; only when several routes tie on length do High, Medium and Low settle it. A Low route for a narrow corporate range therefore beats a High default for traffic inside that range, because the narrow statement answered a narrower question.

Reachability then constrains the answer. A host skips a route whose first hop is known unreachable and considers the next candidate. Absent evidence, it assumes the router is fine — preference does not manufacture a probe result. When route information changes, affected Destination Cache entries must be invalidated or dropped so next-hop determination runs again.

And the host may hold configured values that override what it hears. The wire format carries a recommendation; the receiving system keeps a local policy surface. That gap is what lets the extension live in networks whose security or business rules will never fit in two bits.

Curiosity with a packet budget

Avoiding a preferred-but-unreachable router raises an awkward follow-up: how does the host notice the router came back? Waiting for the next periodic advertisement can take many minutes, especially when the failure sits in an intervening switch while the router itself hums along happily.

The answer is bounded probing. If the host has real traffic that would have used the better router, it should send a Neighbor Solicitation to test it while using an alternative. It must not probe merely because an unused route exists, and it must rate-limit itself to once a minute per router.

The ordering matters. Preference supplies the reason to care about recovery. Traffic supplies the reason to spend packets. Neighbor reachability supplies the observation. None of the three substitutes for the others — a lesson that generalises well beyond IPv6.

Do not hand the edge your flapping

A router can condition an advertised prefix on a link or route learned elsewhere, but RFC 4191 warns against exporting unstable routing dynamics straight to hosts. Implementations should decouple announcements from a flapping table and wait for stability before advertising a shaky prefix.

The warning recognises a change in blast radius. Inside a router, a flap is a control-plane event. Exported into thousands of host caches, it becomes thousands of repeated next-hop decisions and invalidations at the edge. A convenience field that mirrors every interior twitch turns into a distributed event amplifier.

Withdrawal therefore has to be coherent. When an interface stops advertising itself and sends Router Lifetime zero, it should zero the lifetimes of its Route Information Options too. Killing the default while leaving narrow routes breathing leaves a misleading residue of authority.

The advertisement was never a certificate

The security problem predates the extension. RFC 3756 catalogued how forged Router Advertisements, Redirects and Neighbor Discovery messages can rewrite a host's first-hop state. RFC 4191 simply handed the forger finer instruments: claim High preference, or publish a narrow route and attract only the traffic you want.

Specificity makes the manipulation quieter. A false default disrupts so much traffic that somebody notices. A false route for one management, payment or corporate prefix diverts a smaller and far more valuable class of packets, and the option carries no signature proving the sender administers the destination or deserves the traffic.

An infinite lifetime keeps a malicious route relevant and keeps the recovery probes alive. Even then the route is not an unavoidable command: known unreachability lets the host consider alternatives, and local controls can reject or override the preference. Securing who may speak Router Advertisements remains a separate problem from interpreting what an accepted advertisement means — a separation worth remembering every time someone proposes to "just authenticate" a protocol.

The source address had the last word

Choosing a destination did not finish the job. RFC 8028, published in 2016, looked at networks with several provider prefixes and several first-hop routers. A packet carrying one provider's source prefix can be quietly discarded if it leaves through another provider's ingress filter, stateful firewall or reverse-path check.

The later rule ties the source address to the router that advertised its prefix: give the packet to a first hop that appears to know the chosen source. A route can be the best destination match and still be the wrong operational egress for that packet's return path.

This does not invalidate RFC 4191; it vindicates the narrowness. Router preference answered one bounded question about a destination and a first hop. Source selection, filtering, firewall state and return-path policy stayed separate facts that running hosts have to combine — and mostly do, badly, at three in the morning.

Sources and limits

The baseline Default Router List comes from RFC 2461 and its revised Neighbor Discovery specification, RFC 4861. The preference bits, Route Information Option, Type A/B/C host models, selection order, probing and configuration limits are defined by RFC 4191. The threat model is documented in RFC 3756, and the later source-prefix/first-hop association comes from RFC 8028.

These standards measure no present deployment, no vendor defaults, no global support and no recovery time. They do not prove an advertised route is reachable, authorised, safe or globally valid. Their defensible historical claim is smaller and more interesting: IPv6 handed hosts a thin, expiring route vocabulary, then trusted them — and their operators — to keep the final decision local.

Three bits and an expiry date. It is not much of a routing protocol. That was the whole idea.