Summary

  • QUIC Connection IDs are endpoint-chosen routing handles, not addresses. A connection holds a pool of them, so packets still find the right connection after an IP address or UDP port changes.
  • Carrying a valid ID proves nothing about the new path. QUIC validates it separately with unpredictable PATH_CHALLENGE and PATH_RESPONSE data, and caps how much it will send before the proof arrives.
  • Continuity is not portability: congestion and RTT state normally restart, fresh IDs blunt cross-network linkage, and Stateless Reset is a last word from an endpoint that has forgotten the conversation entirely.

The address changed; the work did not

A laptop slips out of café Wi-Fi and onto a mobile network. A NAT box quietly expires a mapping and hands back a different UDP port. In both cases the address tuple that carried the conversation is gone — and the conversation is not. Streams are half-read, acknowledgments are in flight, keys are live, and both endpoints still agree on exactly what has been said.

The lazy fix is to call every address change a new connection. It works, and it hands the address tuple authority over work that lives above it. QUIC chose a narrower contract. RFC 8999 defines the Connection ID as a version-independent opaque field whose first job is to stop changes at UDP, IP or lower layers from delivering a packet to the wrong endpoint. At the receiver, it picks the connection.

It is not one permanent name. RFC 9000 gives each connection a set of identifiers, chosen independently by the two endpoints — and here is the detail people skim past: each endpoint chooses the values its peer will stamp on packets sent toward it. The receiver issues the handle by which incoming traffic finds it. The routing authority and the routing label sit on the same side of the wire.

One connection, a wallet of names

During the handshake, long headers carry both source and destination identifiers. Afterward, short headers normally carry only a Destination Connection ID whose length is already known. New values arrive through NEW_CONNECTION_ID; old ones leave through RETIRE_CONNECTION_ID. Sequence numbers keep issue and retirement in order, and active_connection_id_limit caps how many live values an endpoint must hold.

The pool is not there to prevent running dry. It exists so a peer can change its visible handle the moment the path changes. RFC 9000 also forbids the values from carrying information that would let an outside, non-cooperating observer tie them together — and forbids reissuing the same value on the same connection.

Zero-length IDs are allowed where local addressing alone is enough to sort traffic. The economy has an edge. Sharing one local address and port across several zero-ID connections gets brittle the moment a peer migrates, a NAT rebinds, or a client reuses a port. And an endpoint that picks zero length during the handshake can never issue ordinary replacement IDs later. Deleting the field does not delete the need to tell connections apart; it just pushes that need back into addresses and deployment-specific state.

None of this makes a Connection ID a credential. The handshake values are repeated in transport parameters and checked through the cryptographic handshake — RFC 9001 supplies the TLS 1.3 and packet-protection context — so an injector cannot pick the IDs of a handshake it did not complete. That is a defence against interference, not a certificate and not an identity.

Migration is a claim; validation is the proof

Continuity is not possession. A packet arriving from a new address proves only that some address sent it. RFC 9000 therefore keeps migration and path validation as separate machinery.

Active migration starts only after the handshake is confirmed. Some changes are not chosen at all: NAT rebinding can swap a public port or address while the application is asleep. When an endpoint sees an unvalidated peer address, it sends a PATH_CHALLENGE carrying unpredictable data; the peer echoes it back in PATH_RESPONSE — on the path where the challenge arrived, not wherever it happens to be convenient.

The conclusion is deliberately small: a challenge aimed at one IP-and-port pair reached something able to produce the bound answer. It is not proof of ownership, good intentions, optimal routing or lasting reachability. Each direction runs its own test, and an ordinary acknowledgment does not carry enough unpredictable evidence to stand in for one.

Before validation completes, anti-amplification rules cap how much traffic may be redirected at the new address — otherwise a spoofed migration turns the server into a megaphone pointed at an innocent bystander. If validation fails while the old path still works, the new path is dropped, not the connection. QUIC walks back to the last address it trusts.

The connection moves; its measurements stay behind

Keys and streams survive migration. Bandwidth, delay, loss and ECN behaviour do not come along. RFC 9000 therefore normally resets the congestion controller and the round-trip estimator once the new address is confirmed: packets from the old path are not evidence about the new one.

A port-only change — the classic NAT rebinding — may keep those estimates, cautiously. Even then the specification warns that reused state can push too hard if the path was not what it seemed. Continuity is not a licence to drag every assumption across the border.

A moving connection can become a tracking beacon

If the same Connection ID turned up on café Wi-Fi and then on a mobile network, a passive observer could staple the two traces together and follow a person, not a packet. QUIC requires an endpoint not to reuse an ID when sending from more than one local address or toward more than one destination address.

Fresh IDs blunt the direct link, and protected packet numbers remove another obvious correlate. They do not manufacture anonymity. Timing, packet size and cooperating routers still connect the dots. And any server-side routing scheme that can recover a backend from an ID necessarily holds information outsiders are not supposed to infer.

Privacy also has a supply chain. An endpoint that runs out of unused identifiers cannot safely probe or answer on a new path. Issuing enough unlinkable IDs before the move is migration readiness, not decoration added afterward.

The last message from a server that forgot

Machines reboot. State evaporates. The peer keeps sending into the void, and a normal CONNECTION_CLOSE needs exactly the state that just vanished. RFC 9000 answers with Stateless Reset: a last resort, not a routine.

Every eligible Connection ID carries a hard-to-guess 16-byte reset token, delivered inside protected connection context. A datagram ending in the matching token tells the peer to stop now. Retire the ID and its token dies with it.

The reset packet itself is not cryptographically protected and is shaped to look like a short-header packet. If the token leaks, someone else can hang up on your connection. IDs and tokens therefore cannot be recycled casually. Stateless Reset is not a general error report and not a health check; it is a bounded way for a receiver with no memory to end work the sender still remembers.

Sources and limits

The closed source set is RFC 8999, RFC 9000 and RFC 9001. It defines protocol contracts — not deployment share, vendor behaviour, migration success rates or performance advantage. Connection IDs are not globally unique identities, and path validation is not address ownership.

Which is the whole point, and the lesson registries keep relearning in slower and more expensive ways: the record is a service, not a title deed. The address is where a packet went. The Connection ID is what the packet was for. Confusing the two is how a network loses work that was never actually lost.