Skip to content
WebsiteHosting.com

concept Delivery & performance

QUIC connection migration and connection IDs

A QUIC connection ID lets a peer recognize a connection after an address change. Packet authentication, permission to migrate, and proof that the new path is reachable are separate checks.

Latest recorded source check · P0158

What it means

A QUIC connection can continue across a change of network address because a connection ID (CID) lets the receiving endpoint associate a packet with an existing connection. The ID answers “Which connection is this packet for?” It does not authenticate the packet, grant the client permission to migrate, or prove that the peer is reachable on the new path. Reachability is the job of path validation.

Try it

Simulation: consider a client moving from Wi-Fi to a cellular network. Start with the new path selected and the scenario evidence provided. The packet has passed authentication, a usable nonzero CID is available, the handshake is confirmed, and active migration is permitted. The result is still pending: none of those observations says that validation of the cellular path has finished.

QUIC connection migration and connection IDs

Explain path migration versus authenticated address/connection validation

Simulation
Modeled outcome: Pending

Prerequisites supplied, but new path validation is not complete.

QUIC connection migration and connection IDs: synthetic scenario inputs
Replaces all inputs with the documented starting example and the indicated change. Reset restores the starting example.
Association and path validation

Packet and candidate path

  1. Authenticationpassed
  2. Pathnew
  3. Connection ID associationyes

Migration checks

  1. Handshake confirmedyes
  2. Permissionyes
  3. Path validationpending
  4. Established statepending
  5. Outcomepending

Authentication, association, migration permission and validation are separate stages. A new path is not a new TLS session verdict.

Evaluated inputs

Required scenario evidence
provided
Authenticated packet evidence
passed
Network path
new
Usable nonzero connection ID
yes
Handshake confirmation
yes
Active migration permitted
yes
New path validation
pending

Only a hypothetical active client migration using a usable nonzero CID; packet authentication, handshake confirmation, peer policy and validation results are supplied observations, not cryptographic or network computations. No NAT rebinding, preferred_address exception, server migration, path probing, congestion recovery, packet transmission or anti-amplification accounting. Existing path branch only means no new-path test.

About this model

The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.

Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.

  1. Change New path validation from pending to passed. The result becomes validated because the scenario now supplies the missing reachability result. The simulation has not sent a packet.
  2. Leave validation at passed, but change Authenticated packet evidence to failed. The result is now packet rejected. Evaluation stops at authentication: the path, CID, handshake, policy, and validation choices are not evaluated. The selected passed value is no longer part of the explanation.
  3. Use Reset to restore all the starting choices, including passed authentication and pending validation.

What the receiver can conclude

Suppose a packet bearing a recognizable CID arrives from a different address. The receiver can identify the connection the packet is meant for, but it still needs to authenticate the packet. QUIC ignores packets that fail authentication. Conversely, an authenticated packet on the original path says nothing about a new path: in that case the simulation reports original path and makes no migration decision.

For the modeled move to a new path, the client needs a usable nonzero CID, a confirmed handshake, and permission for active migration. Permission and reachability answer different questions. If the handshake is confirmed but peer policy prohibits the move, the simulation stops at active migration not permitted. Even a selected validation result of passed cannot override that restriction. If the policy is unknown rather than prohibitive, the result is unknown, not a denial.

Path validation has its own evidence. In QUIC, an endpoint sends a PATH_CHALLENGE on the path it wants to validate and looks for a PATH_RESPONSE carrying the matching value. That match is evidence of reachability; recognizing a CID is not. The simulation takes the validation outcome as an input rather than performing this exchange. With the prerequisites met, pending means validation has not finished, while failed means validation failed for this new path. Neither result establishes that the original path failed.

Compare a validated new path with the original path after changing only the path selector to existing. The latter does not evaluate the connection ID association, migration permission or path-validation choices. A packet that is already on the existing path does not need the same migration decision. Conversely, an unknown authentication observation stops even the association argument. Do not treat every selected control as a property that has been verified.

In practice

When interpreting an address change, first distinguish a deliberate client move from NAT rebinding, where the address or port seen by the peer changes without the client choosing to migrate. This example covers only the deliberate move. Do not infer the client's intent from the address change alone.

Read the available observations separately: which connection the CID identifies, whether the packet authenticated, whether the handshake was confirmed, what the peer's policy allowed, and what validation established for the particular path. For example, if all you have is a CID and a new address, the useful next observation is the packet's authentication result. If authentication failed, stop there; do not count that packet as evidence for the move.

The simulation does not cover a server move, the preferred-address exception, congestion recovery, or limits on how much data an endpoint may send before address validation. It neither probes a network nor measures live traffic. Keep the conclusion as narrow as the evidence: a CID identifies a connection, permission governs the move, and a matching validation response establishes reachability on the tested path.

Frequently asked questions

Editorial questions based on the listed sources and explicitly labeled local examples.

Does a connection ID encode IP address?

Not inherently. Connection IDs are opaque to the peer and may use an implementation-specific routing format. Their presence does not establish which IP address an endpoint is using.

Is migration always permitted?

No. Active migration is not initiated before handshake confirmation, and disable_active_migration restricts changes to the local address subject to the preferred-address exception. NAT rebinding is distinct from intentional migration. The lab explicitly checks the supplied handshake and migration-permission evidence; the preferred-address exception and NAT rebinding are not simulated.

Does validation establish user identity?

No. Path validation addresses the stipulated network path; it is not user authentication. The model also requires prior packet authentication and association, and it does not perform any actual validation.

Does a new path retain congestion state unchanged?

Not generally. The protocol specifies resetting the congestion controller and RTT estimate for a newly confirmed peer address, with a possible exception for a port-only change. The lab does not model congestion recovery or rebinding.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. RFC 9000: QUIC: A UDP-Based Multiplexed and Secure Transport

    §§5.1, 8.2, 9, 9.4. Connection IDs associate packets with a connection; they are opaque to peers and do not authenticate packets. Path validation uses a matching response to a challenge. Active client migration is restricted before handshake confirmation and by peer policy, subject to the preferred-address exception; NAT rebinding is distinct. A newly confirmed peer address normally resets congestion and RTT estimates, with a possible port-only exception. The lab accepts supplied authentication and validation observations; no rebinding or congestion simulation.

    Checked .

  2. RFC 9001: Using TLS to Secure QUIC

    §6.6. QUIC ignores packets that fail authentication. A supplied matching connection ID cannot be treated as evidence of packet authentication or successful path validation.

    Checked .

Report an issue. Include the article URL and ID, not passwords or access keys.