Skip to content

Commit

Permalink
Revert "Remove sequence number from NEW_CONNECTION_ID"
Browse files Browse the repository at this point in the history
This reverts commit 2eee0d8.
  • Loading branch information
MikeBishop committed Jun 26, 2018
1 parent 7583103 commit e1aa625
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion draft-ietf-quic-transport.md
Expand Up @@ -2004,7 +2004,9 @@ new connection IDs using the NEW_CONNECTION_ID frame.
An endpoint might need to send packets on multiple networks without receiving
any response from its peer. To ensure that the endpoint is not linkable across
each of these changes, a new connection ID is needed for each network. To
support this, multiple NEW_CONNECTION_ID messages are needed.
support this, multiple NEW_CONNECTION_ID messages are needed. Each
NEW_CONNECTION_ID is marked with a sequence number. Connection IDs MUST be used
in the order in which they are numbered.

Upon changing networks an endpoint MUST use a previously unused connection ID
provided by its peer. This eliminates the use of the connection ID for linking
Expand Down Expand Up @@ -2769,6 +2771,8 @@ The NEW_CONNECTION_ID is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Sequence (i) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Length (8) | Connection ID (32..144) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
Expand All @@ -2783,6 +2787,14 @@ The NEW_CONNECTION_ID is as follows:

The fields are:

Sequence:

: A variable-length integer. This value starts at 0 and increases by 1 for each
connection ID that is provided by the server. The connection ID that is
assigned during the handshake is assumed to have a sequence of -1. That is,
the value selected during the handshake comes immediately before the first
value that a server can send.

Length:

: An 8-bit unsigned integer containing the length of the connection ID. Values
Expand Down

0 comments on commit e1aa625

Please sign in to comment.