Skip to content

Commit

Permalink
update short header illustration to sync with #2203
Browse files Browse the repository at this point in the history
  • Loading branch information
britram committed Jan 9, 2019
1 parent c5eb0ed commit ba03fa0
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions draft-ietf-quic-spin-exp.md
Expand Up @@ -130,31 +130,25 @@ version negotiation and connection establishment are completed.

## Proposed Short Header Format Including Spin Bit {#header}

As of the current editor's version of {{QUIC-TRANSPORT}}, this proposal
specifies using the sixth most significant bit (0x04) of the first byte in
the short header for the spin bit.

~~~~~
{{QUIC-TRANSPORT}} specifies using the third most significant bit of the first
byte in the short header for the spin bit (0x20, labeled S in
{{fig-short-header}}). The Spin bit is set 0 or 1 depending on the stored spin
value that is updated on packet reception as explained in {{spinbit}}.

~~~
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
+-+-+-+-+-+-+-+-+
|0|K|1|1|0|S|R R|
|0|1|S|R|R|K|P P|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Destination Connection ID (0..144) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Packet Number (8/16/32) ...
| Packet Number (8/16/24/32) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Protected Payload (*) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

~~~~~
{: #fig-short-header title="Short Header Format including proposed Spin Bit"}

S: The Spin bit is set 0 or 1 depending on the stored spin value that is
updated on packet reception as explained in {{spinbit}}.

R: Two additional bits are reserved for experimentation in the short header.
{: #fig-short-header title="Short Header Packet Format"}

## Setting the Spin Bit on Outgoing Packets {#spinbit}

Expand Down

0 comments on commit ba03fa0

Please sign in to comment.