Skip to content

Commit

Permalink
Merge pull request #2 from quicwg/fix-pn-example
Browse files Browse the repository at this point in the history
Update examples for shorter encodings
  • Loading branch information
britram committed May 7, 2018
2 parents 8d49212 + 3335dd5 commit 60811b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions draft-ietf-quic-transport.md
Expand Up @@ -802,7 +802,7 @@ Once packet number protection is removed, the packet number is decoded by
finding the packet number value that is closest to the next expected packet.
The next expected packet is the highest received packet number plus one. For
example, if the highest successfully authenticated packet had a packet number of
0xaa82f30e, then a packet containing a 16-bit value of 0x1f94 will be decoded as
0xaa82f30e, then a packet containing a 14-bit value of 0x1f94 will be decoded as
0xaa831f94.

The sender MUST use a packet number size able to represent more than twice as
Expand All @@ -818,9 +818,9 @@ the base 2 logarithm of the number of contiguous unacknowledged packet numbers,
including the new packet.

For example, if an endpoint has received an acknowledgment for packet 0x6afa2f,
sending a packet with a number of 0x6b4264 requires a 16-bit or larger packet
number encoding; whereas a 32-bit packet number is needed to send a packet with
a number of 0x6bc107.
sending a packet with a number of 0x6b2d79 requires a packet number encoding
with 14 bits or more; whereas the 30-bit packet number encoding is needed to
send a packet with a number of 0x6bc107.

A Version Negotiation packet ({{packet-version}}) does not include a packet
number. The Retry packet ({{packet-retry}}) has special rules for populating
Expand Down

0 comments on commit 60811b2

Please sign in to comment.