Port 443 is the busiest door on the Internet, and for most of its life it opened into exactly one room. A connection arrived, the server unwrapped the encryption, and only then discovered what was inside: HTTP, or something wearing HTTP's clothes, or a protocol invented the previous Tuesday. Guessing costs a round trip. Asking costs a round trip. And round trips are the one expense the web has spent three decades trying to delete.
So in July 2014, four engineers put a menu inside the handshake. RFC 7301 — written by Stephan Friedl, Andrei Popov, Adam Langley and Emile Stephan — defined ALPN, Application-Layer Protocol Negotiation, a TLS extension "for application-layer protocol negotiation within the TLS handshake." The client names the protocols it speaks, in order of preference. The server picks one. The choice is settled before a single encrypted application byte moves, which is why port 443 learned to host HTTP/2, HTTP/3 and everything queued behind them without ever needing a new port number — and why the same choice can decide which certificate the server presents.
One port, many protocols, no extra round trips
TLS is a wrapper, and a wrapper hides its contents. That is the point of it, and it is also the problem. Before ALPN, a server listening on 443 had three bad options: assume the client wants HTTP and be wrong about everything else; peek at the first bytes after decryption, which works only if the client speaks first and only if the shape is recognisable; or negotiate in-band after the handshake, which costs a round trip and — worse — happens after the certificate has already been chosen.
ALPN's answer was to negotiate inside the handshake that was happening anyway. The client's first message, the ClientHello, carries a list of names. The server, which already has its own ordered list, picks the most preferred name that both sides support. No extra flight. No guessing. The connection proceeds with a shared understanding established before a single application byte moves.
The extension is type 16: two bytes of extension number doing work that once required an entire port allocation and the argument that came with it.
The list is ordered, and the order is the policy
The extension does not carry a set. ProtocolNameList holds protocols "in descending order of preference," which turns the client's greeting into a ranking. A client that prefers one protocol to another says so by position rather than by argument, and a server that takes the first shared name inherits the client's ranking as its selection set.
That is a small piece of design with a large operational consequence. The order of a list in a handshake is a policy statement, and it is the only place a client can express a preference without spending a request on it. A browser that ranks h2 above http/1.1 is telling every server on the Internet what it wants before it has asked for anything. A stale order — one that still ranks a retired protocol first — quietly steers traffic to the older option for as long as that client ships.
Names are registered, so the menu has an owner
Protocol names are opaque, non-empty byte strings registered with IANA, and the memo creates the registry that holds them. That is the part that makes the mechanism governable: a name is not a nickname two implementations agreed on in a mailing list, it is an entry in a registry with a registration procedure. h2 means HTTP/2 because the registry says so, not because two vendors shook hands at a conference.
Two rules that look like pedantry and are not: names cannot be empty, and they cannot be sent truncated. Both exist because a protocol name is compared byte for byte, and a mechanism that lets one side send a shortened form hands every implementation a chance to disagree about whether two names are the same.
Notice what the registry does not do. It does not rank the names, bless them, or decide which protocol is better. It keeps them unique and gets out of the way — which is exactly the amount of authority the job requires.
Choosing badly is a fatal error
If the client offers only protocols the server does not support, the server does not fall back or ignore the extension. It "SHALL respond with a fatal 'no_application_protocol' alert" — alert number 120 — and the connection ends.
That is a more honest failure than silence. A server that accepted the handshake and then spoke a language the client never offered would waste the connection and confuse the diagnosis; a fatal alert names the problem at the point where it is still cheap to see. It also makes ALPN failures loud, which is why they get fixed instead of festering in a support queue.
Why the choice moved down a layer
HTTP already had a way to change protocols on a live connection — the Upgrade header, answered with a 101. The web used it for WebSocket and for cleartext HTTP/2, but never as the gate to an encrypted protocol. ALPN makes the same decision earlier, in the handshake rather than in an HTTP message, and gets used everywhere.
The difference is not the idea but the moment. Deciding before the first byte means the server can choose a certificate for the protocol it has just picked, and the memo says the advantage out loud: it "would be advantageous to allow certificate selection based on the negotiated application protocol." A decision that arrives after the request cannot shape the identity presented before it.
There is a lineage worth remembering. ALPN had a predecessor: Google's Next Protocol Negotiation, shipped alongside SPDY, in which the server advertised its list and the client chose. ALPN inverted the direction — the client advertises, the server chooses — and the inversion was not cosmetic. It moved the decision to the side that also holds the certificate, which is the side that has to present an identity. That is the version HTTP/2 mandated and TLS 1.3 kept.
What ALPN left to the registry
ALPN is a small extension with a large dependency. Everything about it that matters in practice — that h2 means HTTP/2, that a name is not ambiguous, that an implementation can trust a stranger's list — lives in the registry and in the specifications that claim names.
The protocol defines the shape of the menu and the rule for picking from it. It never says what is on the menu. That division of labour is why HTTP/2, HTTP/3 and everything after them could arrive without touching the handshake again.
It is the same principle Lu Heng applies to Internet registries at large: keep the common layer thin, keep the names unique, and leave the deciding to running code. "The common layer is not an institution," he writes in his Note on running-code primacy. ALPN is a two-byte proof of the argument.
The lock-in nobody notices
Three places where ALPN's elegance turns into a trap.
The preference order ships with the software. A client's ranking is frozen into a release, replicated across billions of devices, and revised only when the upgrade cycle catches up. The mechanism that lets a client state a preference is also the mechanism that lets a stale preference persist for years.
The middleboxes can read it. ALPN sits in the ClientHello in the clear, so anything on the path can see it — and anything that did not expect a new value can break the connection. New protocol names have historically been blocked by equipment that had no business having an opinion. The Encrypted Client Hello work exists in part because that field, like the rest of the greeting, is legible to strangers.
The registry cannot rescue a name. A registered name is not adoption. h3 in a registry means nothing until two stacks implement it, a network routes it and a client ships it. Publication is not deployment; the record describes reality, it does not create it.
The smallest decision in the handshake
ALPN is two bytes wide, numbered 16, and almost never mentioned. Its first big customer was HTTP/2, its second was HTTP/3, and it will still be there for whatever comes after — because what it actually negotiates is not a protocol but a name, and names are cheap to keep unique.
That is what a well-built registry layer looks like: small enough to forget, precise enough to trust, and quiet enough that nobody has to think about it again. The menu went inside the handshake. The handshake went inside the noise. Port 443 has been multilingual ever since, and it never asked for a new port number or anyone's permission.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






