Summary

  • RFC 6724, September 2012, defines "default address selection", obsoletes RFC 3484, and applies "to all IPv6 nodes, including both hosts and routers".
  • It specifies two ordered algorithms — one for source address selection, one for destination address selection — plus "an optional mechanism for allowing administrators to provide policy that can override the default behavior".
  • The default policy table is blunt about its intent: "one effect of the default policy table is to prefer communication using IPv6 addresses to communication using IPv4 addresses, if matching source addresses are available".

A table with three columns has already voted

Somewhere in your operating system sits a table with a handful of rows and three columns, and it has already decided which address family your next connection will try first. That table is the default policy of RFC 6724, "Default Address Selection for Internet Protocol Version 6 (IPv6)", published in September 2012 to replace RFC 3484. It is the quiet machinery that decides, on a dual-stack machine, whether a packet leaves as IPv4 or IPv6 — not by asking the application, but by ranking the candidates before the application ever sees them. The preference is real, it is written down, and almost nobody who inherits it has read it. It arrived with the operating system, it will outlive the application that depends on it, and it has never appeared in a product launch.

One host, four addresses, and no obvious answer

With one address and one route, there is nothing to decide. Give the same host a global IPv6 address, a temporary IPv6 address, an IPv4 address and a tunnel address, and every outgoing connection needs a ranking. The kernel cannot shrug.

RFC 6724 answers with ordered rules. Source selection walks down a list: prefer the same address, prefer appropriate scope, avoid deprecated addresses, prefer the outgoing interface, prefer matching labels, prefer temporary addresses, then the longest matching prefix. Destination selection does the mirror-image job on the far end. The rules are numbered because the numbering is the interface.

Numbered rules are an interface, not bureaucracy

Rule numbers look fussy. They are the point. Two implementations that agree on numbered rules can be tested against each other, argued about in a bug tracker, and shipped by different vendors with a plausible claim of compliance. Prose invites interpretation; a numbered list invites a diff.

The ordering also carries policy that never appears in prose. Temporary addresses sit below matching labels, so privacy yields to reachability whenever the labels already agree. Nobody wrote "privacy loses here" in a sentence. The sequence says it.

The default policy table is a shipped decision, not a law of nature

The default policy table assigns precedence and labels to prefixes. Native IPv6 (::/0) sits at precedence 40; IPv4-mapped addresses (::ffff:0:0/96) sit at 35; 6to4 (2002::/16) at 30; Teredo (2001::/32) at 5. Higher precedence sorts first. That is a decision about the internet's direction, written in a table that operating systems distribute.

Applications inherit it. A connection opened by code that never mentions address families will follow the table, which is why behaviour changed on many machines without a line of application code changing. On Linux the table is exposed through /etc/gai.conf; on Windows it is netsh interface ipv6 show prefixpolicies. Print it and you are reading the decision.

The preference has not produced the transition it implies. A quarter-century into the promised transition, the operational reality is permanent dual-stack — two address families, two routing tables, two firewall policies — and the preference order only decides which family gets tried first inside that equilibrium. Lu Heng made the case in his Note on why IPv6 will never happen: the protocol works, but the incentives never lined up.

The table ranks; the wire votes

A ranking is not a guarantee. The table decides order; the network decides outcome. If the first-ranked address is a black hole — a broken tunnel, a filtered path, a route that dies at a peering dispute — the application waits. That gap produced Happy Eyeballs (RFC 6555 in 2012, revised as RFC 8305 in 2017), which races IPv6 and IPv4 connections and takes whichever answers first.

The lesson is uncomfortable for anyone who believes defaults settle arguments: the table ranks, but the wire votes. RFC 6724 is a preference order, not a delivery mechanism.

What administrators can override — and what that costs

The specification allows policy to be installed on top, which turns the default into a starting point and the table into an operational artifact. It can be inspected, edited and — if someone is careless — made to prefer the wrong thing. A typo in a label can send traffic down a tunnel nobody meant to use.

That is the honest position for a default: it decides, it is visible, and it can be changed by whoever runs the machine. The alternative — a preference buried in vendor code with no name and no file — is not more neutral. It is just harder to argue with.

The lesson about defaults

A default is a policy that wins by not being mentioned. When the default is a table of numbers, it wins quietly, in every connection, on every machine, and it wins before anyone thinks to have an opinion.

So the general rule: when your system faces a decision on behalf of its users, publish the default, number its rules, and let people override it. A hidden default is a decision nobody can appeal. A printed one is a decision somebody can.