| draft-mcquistin-quic-augmented-diagrams-01.txt | draft-mcquistin-quic-augmented-diagrams-02.txt | |||
|---|---|---|---|---|
| Network Working Group S. McQuistin | Network Working Group S. McQuistin | |||
| Internet-Draft V. Band | Internet-Draft V. Band | |||
| Intended status: Experimental D. Jacob | Intended status: Experimental D. Jacob | |||
| Expires: 19 December 2020 C. S. Perkins | Expires: 14 January 2021 C. S. Perkins | |||
| University of Glasgow | University of Glasgow | |||
| 17 June 2020 | 13 July 2020 | |||
| Describing QUIC's Protocol Data Units with Augmented Packet Header | Describing QUIC's Protocol Data Units with Augmented Packet Header | |||
| Diagrams | Diagrams | |||
| draft-mcquistin-quic-augmented-diagrams-01 | draft-mcquistin-quic-augmented-diagrams-02 | |||
| Abstract | Abstract | |||
| This document describes the core transport protocol data units used | This document describes the core transport protocol data units used | |||
| in the QUIC protocol using a machine-readable augmented packet header | in the QUIC protocol using a machine-readable augmented packet header | |||
| diagram format. It is intended as an example of the packet header | diagram format. It is intended as an example of the packet header | |||
| diagram language, and not as a contribution to the development of the | diagram language, and not as a contribution to the development of the | |||
| QUIC protocol. | QUIC protocol. | |||
| Status of This Memo | Status of This Memo | |||
| skipping to change at page 1, line 37 ¶ | skipping to change at page 1, line 37 ¶ | |||
| Internet-Drafts are working documents of the Internet Engineering | Internet-Drafts are working documents of the Internet Engineering | |||
| Task Force (IETF). Note that other groups may also distribute | Task Force (IETF). Note that other groups may also distribute | |||
| working documents as Internet-Drafts. The list of current Internet- | working documents as Internet-Drafts. The list of current Internet- | |||
| Drafts is at https://datatracker.ietf.org/drafts/current/. | Drafts is at https://datatracker.ietf.org/drafts/current/. | |||
| Internet-Drafts are draft documents valid for a maximum of six months | Internet-Drafts are draft documents valid for a maximum of six months | |||
| and may be updated, replaced, or obsoleted by other documents at any | and may be updated, replaced, or obsoleted by other documents at any | |||
| time. It is inappropriate to use Internet-Drafts as reference | time. It is inappropriate to use Internet-Drafts as reference | |||
| material or to cite them other than as "work in progress." | material or to cite them other than as "work in progress." | |||
| This Internet-Draft will expire on 19 December 2020. | This Internet-Draft will expire on 14 January 2021. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2020 IETF Trust and the persons identified as the | Copyright (c) 2020 IETF Trust and the persons identified as the | |||
| document authors. All rights reserved. | document authors. All rights reserved. | |||
| This document is subject to BCP 78 and the IETF Trust's Legal | This document is subject to BCP 78 and the IETF Trust's Legal | |||
| Provisions Relating to IETF Documents (https://trustee.ietf.org/ | Provisions Relating to IETF Documents (https://trustee.ietf.org/ | |||
| license-info) in effect on the date of publication of this document. | license-info) in effect on the date of publication of this document. | |||
| Please review these documents carefully, as they describe your rights | Please review these documents carefully, as they describe your rights | |||
| skipping to change at page 4, line 52 ¶ | skipping to change at page 4, line 52 ¶ | |||
| where: | where: | |||
| Header Form (HF): 1 bit; HF == 0. The most significant bit (0x80) of | Header Form (HF): 1 bit; HF == 0. The most significant bit (0x80) of | |||
| byte 0 (the first byte) is set to 0 for stateless reset packets. | byte 0 (the first byte) is set to 0 for stateless reset packets. | |||
| Fixed Bit (FB): 1 bit; FB == 1. The next bit (0x40) of byte 0 is set | Fixed Bit (FB): 1 bit; FB == 1. The next bit (0x40) of byte 0 is set | |||
| to 1. Packets containing a zero value for this bit are not valid | to 1. Packets containing a zero value for this bit are not valid | |||
| packets in this version and MUST be discarded. | packets in this version and MUST be discarded. | |||
| Unpredictable Bits (UB): UB.Size > 38. The remainder of the first | Unpredictable Bits (UB): UB#Size > 38. The remainder of the first | |||
| byte and an arbitrary number of bytes following it that are set to | byte and an arbitrary number of bytes following it that are set to | |||
| unpredictable values. | unpredictable values. | |||
| Stateless Reset Token: 128 bits. The last 16 bytes of the datagram | Stateless Reset Token: 128 bits. The last 16 bytes of the datagram | |||
| contain a Stateless Reset Token. | contain a Stateless Reset Token. | |||
| 5. Version Negotiation Packet | 5. Version Negotiation Packet | |||
| A Version is formatted as follows: | A Version is formatted as follows: | |||
| skipping to change at page 10, line 14 ¶ | skipping to change at page 10, line 14 ¶ | |||
| where: | where: | |||
| Long Header (LH): 1 Long Header; LH.T == 0. An Initial packet uses | Long Header (LH): 1 Long Header; LH.T == 0. An Initial packet uses | |||
| long headers with a type value of 0x0. On receipt, the value of | long headers with a type value of 0x0. On receipt, the value of | |||
| LH.DCID is stored as Initial DCID. | LH.DCID is stored as Initial DCID. | |||
| Token Length (TL): 1 Variable Length Integer Encoding. A variable- | Token Length (TL): 1 Variable Length Integer Encoding. A variable- | |||
| length integer specifying the length of the Token field, in bytes. | length integer specifying the length of the Token field, in bytes. | |||
| Token: TL.Value bytes; present only when TL.Value > 0. The value of | Token: TL bytes; present only when TL > 0. The value of the token | |||
| the token that was previously provided in a Retry packet or | that was previously provided in a Retry packet or NEW_TOKEN frame. | |||
| NEW_TOKEN frame. | ||||
| Length: 1 Variable Length Integer Encoding. The length of the | Length: 1 Variable Length Integer Encoding. The length of the | |||
| remainder of the packet (that is, the Packet Number and Payload | remainder of the packet (that is, the Packet Number and Payload | |||
| fields) in bytes, encoded as a variable-length integer. | fields) in bytes, encoded as a variable-length integer. | |||
| Packet Number: LH.P+1 bytes. The packet number field. | Packet Number: LH.P+1 bytes. The packet number field. | |||
| Payload: [Frame]. The payload field, comprised of multiple frames. | Payload: [Frame]. The payload field, comprised of multiple frames. | |||
| A Protected Initial packet is formatted as follows: | A Protected Initial packet is formatted as follows: | |||
| skipping to change at page 11, line 5 ¶ | skipping to change at page 11, line 5 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Long Header (LH): 1 Long Header; LH.T == 0. An Initial packet uses | Long Header (LH): 1 Long Header; LH.T == 0. An Initial packet uses | |||
| long headers with a type value of 0x0. | long headers with a type value of 0x0. | |||
| Token Length (TL): 1 Variable Length Integer Encoding. A variable- | Token Length (TL): 1 Variable Length Integer Encoding. A variable- | |||
| length integer specifying the length of the Token field, in bytes. | length integer specifying the length of the Token field, in bytes. | |||
| Token: TL.Value bytes; present only when TL.Value > 0. The value of | Token: TL bytes; present only when TL > 0. The value of the token | |||
| the token that was previously provided in a Retry packet or | that was previously provided in a Retry packet or NEW_TOKEN frame. | |||
| NEW_TOKEN frame. | ||||
| Length: 1 Variable Length Integer Encoding. The length of the | Length: 1 Variable Length Integer Encoding. The length of the | |||
| remainder of the packet (that is, the Packet Number and Payload | remainder of the packet (that is, the Packet Number and Payload | |||
| fields) in bytes, encoded as a variable-length integer. | fields) in bytes, encoded as a variable-length integer. | |||
| Protected Packet Number: LH.P+1 bytes. The packet number field, with | Protected Packet Number: LH.P+1 bytes. The packet number field, with | |||
| header protection. | header protection. | |||
| Protected Payload: (Length.Value-(LH.P+1)) bytes. The protected | Protected Payload: (Length-(LH.P+1)) bytes. The protected payload | |||
| payload field. | field. | |||
| 6.2. 0RTT Packet | 6.2. 0RTT Packet | |||
| A 0RTT Packet is formatted as follows: | A 0RTT Packet is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | : | | : | |||
| : Long Header : | : Long Header : | |||
| skipping to change at page 12, line 31 ¶ | skipping to change at page 12, line 31 ¶ | |||
| Long Header (LH): 1 Long Header; LH.T == 1. A 0-RTT packet uses long | Long Header (LH): 1 Long Header; LH.T == 1. A 0-RTT packet uses long | |||
| headers with a type value of 0x1. | headers with a type value of 0x1. | |||
| Length: 1 Variable Length Integer Encoding. The length of the | Length: 1 Variable Length Integer Encoding. The length of the | |||
| remainder of the packet (that is, the Packet Number and Payload | remainder of the packet (that is, the Packet Number and Payload | |||
| fields) in bytes, encoded as a variable-length integer. | fields) in bytes, encoded as a variable-length integer. | |||
| Protected Packet Number: LH.P+1 bytes. The packet number field, with | Protected Packet Number: LH.P+1 bytes. The packet number field, with | |||
| header protection. | header protection. | |||
| Protected Payload: (Length.Value-(LH.P+1)) bytes. The protected | Protected Payload: (Length-(LH.P+1)) bytes. The protected payload | |||
| payload field. | field. | |||
| 6.3. Handshake Packet | 6.3. Handshake Packet | |||
| A Handshake Packet is formatted as follows: | A Handshake Packet is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | : | | : | |||
| : Long Header : | : Long Header : | |||
| skipping to change at page 13, line 44 ¶ | skipping to change at page 13, line 44 ¶ | |||
| Long Header (LH): 1 Long Header; LH.T == 2. A Handshake packet uses | Long Header (LH): 1 Long Header; LH.T == 2. A Handshake packet uses | |||
| long headers with a type value of 0x2. | long headers with a type value of 0x2. | |||
| Length: 1 Variable Length Integer Encoding. The length of the | Length: 1 Variable Length Integer Encoding. The length of the | |||
| remainder of the packet (that is, the Packet Number and Payload | remainder of the packet (that is, the Packet Number and Payload | |||
| fields) in bytes, encoded as a variable-length integer. | fields) in bytes, encoded as a variable-length integer. | |||
| Protected Packet Number: LH.P+1 bytes. The packet number field, with | Protected Packet Number: LH.P+1 bytes. The packet number field, with | |||
| header protection. | header protection. | |||
| Protected Payload: (Length.Value-(LH.P+1)) bytes. The protected | Protected Payload: (Length-(LH.P+1)) bytes. The protected payload | |||
| payload field. | field. | |||
| 6.4. Retry Packet | 6.4. Retry Packet | |||
| A Retry Packet is formatted as follows: | A Retry Packet is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | : | | : | |||
| : Long Header : | : Long Header : | |||
| skipping to change at page 17, line 7 ¶ | skipping to change at page 17, line 7 ¶ | |||
| Packet Number. The packet number field is 1 to 4 bytes long. The | Packet Number. The packet number field is 1 to 4 bytes long. The | |||
| packet number has confidentiality protection separate from packet | packet number has confidentiality protection separate from packet | |||
| protection. The length of the packet number field is encoded in | protection. The length of the packet number field is encoded in | |||
| Packet Number Length field. | Packet Number Length field. | |||
| Protected Payload: [Frame]. Packets with a short header always | Protected Payload: [Frame]. Packets with a short header always | |||
| include a 1-RTT protected payload. | include a 1-RTT protected payload. | |||
| 8. Frames and Frame Formats | 8. Frames and Frame Formats | |||
| A Frame is one of: a PADDING frame, a PING frame, an ACK frame, a | A Frame is one of: a PADDING Frame, a PING Frame, an ACK Frame, a | |||
| RESET_STREAM frame, a STOP_SENDING frame, a CRYPTO frame, a NEW_TOKEN | RESET_STREAM Frame, a STOP_SENDING Frame, a CRYPTO Frame, a NEW_TOKEN | |||
| frame, a STREAM frame, a MAX_DATA frame, a MAX_STREAM_DATA frame, a | Frame, a STREAM Frame, a MAX_DATA Frame, a MAX_STREAM_DATA Frame, a | |||
| MAX_STREAMS frame, a DATA_BLOCKED frame, a STREAM_DATA_BLOCKED frame, | MAX_STREAMS Frame, a DATA_BLOCKED Frame, a STREAM_DATA_BLOCKED Frame, | |||
| a STREAMS_BLOCKED frame, a NEW_CONNECTION_ID frame, a PATH_CHALLENGE | a STREAMS_BLOCKED Frame, a NEW_CONNECTION_ID Frame, a PATH_CHALLENGE | |||
| frame, a PATH_RESPONSE frame, a CONNECTION_CLOSE frame, or a | Frame, a PATH_RESPONSE Frame, a CONNECTION_CLOSE Frame, or a | |||
| HANDSHAKE_DONE frame. | HANDSHAKE_DONE Frame. | |||
| 8.1. PADDING frame | 8.1. PADDING frame | |||
| A PADDING Frame is formatted as follows: | A PADDING Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | | | 0 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 0. Frame | |||
| 0. Frame type, set to 0 for PADDING frames. | type, set to 0 for PADDING frames. | |||
| 8.2. PING frame | 8.2. PING frame | |||
| A PING Frame is formatted as follows: | A PING Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 1 | | | 1 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 1. Frame | |||
| 1. Frame type, set to 1 for PING frames. | type, set to 1 for PING frames. | |||
| 8.3. ACK frame | 8.3. ACK frame | |||
| An ACK Range is formatted as follows: | An ACK Range is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Gap ... | | Gap ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| skipping to change at page 19, line 25 ¶ | skipping to change at page 19, line 25 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | First ACK Range ... | | First ACK Range ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | [Other ACK Ranges] ... | | [Other ACK Ranges] ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | ECN Counts ... | | ECN Counts ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; (FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; (FT == 3) || | |||
| 3) || (FT.Value == 4). Frame type, set to 3 or 4 for ACK frames. | (FT == 4). Frame type, set to 3 or 4 for ACK frames. | |||
| Largest Acknowledged: 1 Variable Length Integer Encoding. A | Largest Acknowledged: 1 Variable Length Integer Encoding. A | |||
| variable-length integer representing the largest packet number the | variable-length integer representing the largest packet number the | |||
| peer is acknowledging; this is usually the largest packet number | peer is acknowledging; this is usually the largest packet number | |||
| that the peer has received prior to generating the ACK frame. | that the peer has received prior to generating the ACK frame. | |||
| Unlike the packet number in the QUIC long or short header, the | Unlike the packet number in the QUIC long or short header, the | |||
| value in an ACK frame is not truncated. | value in an ACK frame is not truncated. | |||
| ACK Delay: 1 Variable Length Integer Encoding. A variable-length | ACK Delay: 1 Variable Length Integer Encoding. A variable-length | |||
| integer representing the time delta in microseconds between when | integer representing the time delta in microseconds between when | |||
| skipping to change at page 19, line 51 ¶ | skipping to change at page 19, line 51 ¶ | |||
| ACK Range Count: 1 Variable Length Integer Encoding. A variable- | ACK Range Count: 1 Variable Length Integer Encoding. A variable- | |||
| length integer specifying the number of Gap and ACK Range fields | length integer specifying the number of Gap and ACK Range fields | |||
| in the frame. | in the frame. | |||
| First ACK Range: 1 ACK Range. The First ACK Range is encoded as an | First ACK Range: 1 ACK Range. The First ACK Range is encoded as an | |||
| ACK Range starting from the Largest Acknowledged. | ACK Range starting from the Largest Acknowledged. | |||
| Other ACK Ranges: [ACK Range]. Contains additional ranges of packets | Other ACK Ranges: [ACK Range]. Contains additional ranges of packets | |||
| which are alternately not acknowledged and acknowledged. | which are alternately not acknowledged and acknowledged. | |||
| ECN Counts: 1 ECN Count; present only when FT.Value == 3. The three | ECN Counts: 1 ECN Count; present only when FT == 3. The three ECN | |||
| ECN Counts. | Counts. | |||
| 8.4. RESET_STREAM frame | 8.4. RESET_STREAM frame | |||
| A RESET_STREAM Frame is formatted as follows: | A RESET_STREAM Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 4 | | | 4 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Stream ID ... | | Stream ID ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Application Error Code ... | | Application Error Code ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Final Size ... | | Final Size ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 4. Frame | |||
| 4. Frame type, set to 4 for RESET_STREAM frames. | type, set to 4 for RESET_STREAM frames. | |||
| Stream ID: 1 Variable Length Integer Encoding. A variable-length | Stream ID: 1 Variable Length Integer Encoding. A variable-length | |||
| integer encoding of the Stream ID of the stream being terminated. | integer encoding of the Stream ID of the stream being terminated. | |||
| Application Error Code: 1 Variable Length Integer Encoding. A variab | Application Error Code: 1 Variable Length Integer Encoding. A variab | |||
| le-length integer containing the application protocol error code | le-length integer containing the application protocol error code | |||
| which indicates why the stream is being closed. | which indicates why the stream is being closed. | |||
| Final Size: 1 Variable Length Integer Encoding. A variable-length | Final Size: 1 Variable Length Integer Encoding. A variable-length | |||
| integer indicating the final size of the stream by the | integer indicating the final size of the stream by the | |||
| skipping to change at page 21, line 5 ¶ | skipping to change at page 21, line 5 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 5 | | | 5 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Stream ID ... | | Stream ID ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Application Error Code ... | | Application Error Code ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 5. Frame | |||
| 5. Frame type, set to 5 for STOP_SENDING frames. | type, set to 5 for STOP_SENDING frames. | |||
| Stream ID: 1 Variable Length Integer Encoding. A variable-length | Stream ID: 1 Variable Length Integer Encoding. A variable-length | |||
| integer carrying the Stream ID of the stream being ignored. | integer carrying the Stream ID of the stream being ignored. | |||
| Application Error Code: 1 Variable Length Integer Encoding. A variab | Application Error Code: 1 Variable Length Integer Encoding. A variab | |||
| le-length integer containing the application-specified reason the | le-length integer containing the application-specified reason the | |||
| sender is ignoring the stream. | sender is ignoring the stream. | |||
| 8.6. CRYPTO frame | 8.6. CRYPTO frame | |||
| skipping to change at page 21, line 35 ¶ | skipping to change at page 21, line 35 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Length ... | | Length ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | : | | : | |||
| : Crypto Data : | : Crypto Data : | |||
| : | | : | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 6. Frame | |||
| 6. Frame type, set to 6 for CRYPTO frames. | type, set to 6 for CRYPTO frames. | |||
| Offset: 1 Variable Length Integer Encoding. A variable-length | Offset: 1 Variable Length Integer Encoding. A variable-length | |||
| integer specifying the byte offset in the stream for the data in | integer specifying the byte offset in the stream for the data in | |||
| this CRYPTO frame. | this CRYPTO frame. | |||
| Length: 1 Variable Length Integer Encoding. A variable-length | Length: 1 Variable Length Integer Encoding. A variable-length | |||
| integer specifying the length of the Crypto Data field in this | integer specifying the length of the Crypto Data field in this | |||
| CRYPTO frame. | CRYPTO frame. | |||
| Crypto Data: Length.Value bytes. The cryptographic message data. | Crypto Data: Length bytes. The cryptographic message data. | |||
| 8.7. NEW_TOKEN frame | 8.7. NEW_TOKEN frame | |||
| A NEW_TOKEN Frame is formatted as follows: | A NEW_TOKEN Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 7 | | | 7 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Token Length ... | | Token Length ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | : | | : | |||
| : Token : | : Token : | |||
| : | | : | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 7. Frame | |||
| 7. Frame type, set to 7 for NEW_TOKEN frames. | type, set to 7 for NEW_TOKEN frames. | |||
| Token Length (TL): 1 Variable Length Integer Encoding. A variable- | Token Length (TL): 1 Variable Length Integer Encoding. A variable- | |||
| length integer specifying the length of the token in bytes. | length integer specifying the length of the token in bytes. | |||
| Token: TL.Value bytes. An opaque blob that the client may use with a | Token: TL bytes. An opaque blob that the client may use with a | |||
| future Initial packet. | future Initial packet. | |||
| 8.8. STREAM frame | 8.8. STREAM frame | |||
| A STREAM Frame is formatted as follows: | A STREAM Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 1 |O|L|F| | | 1 |O|L|F| | |||
| skipping to change at page 23, line 27 ¶ | skipping to change at page 23, line 27 ¶ | |||
| Offset: 1 Variable Length Integer Encoding; present only when O == | Offset: 1 Variable Length Integer Encoding; present only when O == | |||
| 1. A variable-length integer specifying the byte offset in the | 1. A variable-length integer specifying the byte offset in the | |||
| stream for the data in this STREAM frame. | stream for the data in this STREAM frame. | |||
| Length: 1 Variable Length Integer Encoding; present only when L == | Length: 1 Variable Length Integer Encoding; present only when L == | |||
| 1. A variable-length integer specifying the length of the Stream | 1. A variable-length integer specifying the length of the Stream | |||
| Data field in this STREAM frame. This field is present when the | Data field in this STREAM frame. This field is present when the | |||
| LEN bit is set to 1. When the LEN bit is set to 0, the Stream | LEN bit is set to 1. When the LEN bit is set to 0, the Stream | |||
| Data field consumes all the remaining bytes in the packet. | Data field consumes all the remaining bytes in the packet. | |||
| Stream Data: Length.Value bytes. The bytes from the designated | Stream Data: Length bytes. The bytes from the designated stream to | |||
| stream to be delivered. | be delivered. | |||
| 8.9. MAX_DATA frame | 8.9. MAX_DATA frame | |||
| A MAX_DATA Frame is formatted as follows: | A MAX_DATA Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 16 | | | 16 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Maximum Data ... | | Maximum Data ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 16. Frame | |||
| 16. Frame type, set to 16 for MAX_DATA frames. | type, set to 16 for MAX_DATA frames. | |||
| Maximum Data: 1 Variable Length Integer Encoding. A variable-length | Maximum Data: 1 Variable Length Integer Encoding. A variable-length | |||
| integer indicating the maximum amount of data that can be sent on | integer indicating the maximum amount of data that can be sent on | |||
| the entire connection, in units of bytes. | the entire connection, in units of bytes. | |||
| 8.10. MAX_STREAM_DATA frame | 8.10. MAX_STREAM_DATA frame | |||
| A MAX_STREAM_DATA Frame is formatted as follows: | A MAX_STREAM_DATA Frame is formatted as follows: | |||
| 0 1 2 3 | 0 1 2 3 | |||
| skipping to change at page 24, line 21 ¶ | skipping to change at page 24, line 21 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 17 | | | 17 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Stream ID ... | | Stream ID ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Maximum Stream Data ... | | Maximum Stream Data ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 17. Frame | |||
| 17. Frame type, set to 17 for MAX_STREAM_DATA frames. | type, set to 17 for MAX_STREAM_DATA frames. | |||
| Stream ID: 1 Variable Length Integer Encoding. The stream ID of the | Stream ID: 1 Variable Length Integer Encoding. The stream ID of the | |||
| stream that is affected encoded as a variable-length integer. | stream that is affected encoded as a variable-length integer. | |||
| Maximum Stream Data: 1 Variable Length Integer Encoding. A variable- | Maximum Stream Data: 1 Variable Length Integer Encoding. A variable- | |||
| length integer indicating the maximum amount of data that can be | length integer indicating the maximum amount of data that can be | |||
| sent on the identified stream, in units of bytes. | sent on the identified stream, in units of bytes. | |||
| 8.11. MAX_STREAMS frame | 8.11. MAX_STREAMS frame | |||
| skipping to change at page 24, line 45 ¶ | skipping to change at page 24, line 45 ¶ | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | FT | | | FT | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Maximum Streams ... | | Maximum Streams ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; (FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; (FT == 18) || | |||
| 18) || (FT.Value == 19). Frame type, set to 18 or 19 for MAX_STREAMS | (FT == 19). Frame type, set to 18 or 19 for MAX_STREAMS frames. | |||
| frames. | ||||
| Maximum Streams: 1 Variable Length Integer Encoding. A count of the | Maximum Streams: 1 Variable Length Integer Encoding. A count of the | |||
| cumulative number of streams of the corresponding type that can be | cumulative number of streams of the corresponding type that can be | |||
| opened over the lifetime of the connection. | opened over the lifetime of the connection. | |||
| 8.12. DATA_BLOCKED frame | 8.12. DATA_BLOCKED frame | |||
| A DATA_BLOCKED Frame is formatted as follows: | A DATA_BLOCKED Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 20 | | | 20 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Data Limit ... | | Data Limit ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 20. Frame | |||
| 20. Frame type, set to 20 for DATA_BLOCKED frames. | type, set to 20 for DATA_BLOCKED frames. | |||
| Data Limit: 1 Variable Length Integer Encoding. A variable-length | Data Limit: 1 Variable Length Integer Encoding. A variable-length | |||
| integer indicating the connection-level limit at which blocking | integer indicating the connection-level limit at which blocking | |||
| occurred. | occurred. | |||
| 8.13. STREAM_DATA_BLOCKED frame | 8.13. STREAM_DATA_BLOCKED frame | |||
| A STREAM_DATA_BLOCKED Frame is formatted as follows: | A STREAM_DATA_BLOCKED Frame is formatted as follows: | |||
| 0 1 2 3 | 0 1 2 3 | |||
| skipping to change at page 25, line 42 ¶ | skipping to change at page 25, line 42 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 21 | | | 21 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Stream ID ... | | Stream ID ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Stream Data Limit ... | | Stream Data Limit ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 21. Frame | |||
| 21. Frame type, set to 21 for STREAM_DATA_BLOCKED frames. | type, set to 21 for STREAM_DATA_BLOCKED frames. | |||
| Stream ID: 1 Variable Length Integer Encoding. A variable-length | Stream ID: 1 Variable Length Integer Encoding. A variable-length | |||
| integer indicating the stream which is flow control blocked. | integer indicating the stream which is flow control blocked. | |||
| Maximum Stream Data: 1 Variable Length Integer Encoding. A variable- | Maximum Stream Data: 1 Variable Length Integer Encoding. A variable- | |||
| length integer indicating the offset of the stream at which the | length integer indicating the offset of the stream at which the | |||
| blocking occurred. | blocking occurred. | |||
| 8.14. STREAMS_BLOCKED frame | 8.14. STREAMS_BLOCKED frame | |||
| skipping to change at page 26, line 19 ¶ | skipping to change at page 26, line 19 ¶ | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | FT | | | FT | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Stream Limit ... | | Stream Limit ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; (FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; (FT == 22) || | |||
| 22) || (FT.Value == 23). Frame type, set to 22 or 23 for | (FT == 23). Frame type, set to 22 or 23 for STREAMS_BLOCKED frames. | |||
| STREAMS_BLOCKED frames. | ||||
| Stream Limit: 1 Variable Length Integer Encoding. A variable-length | Stream Limit: 1 Variable Length Integer Encoding. A variable-length | |||
| integer indicating the stream limit at the time the frame was | integer indicating the stream limit at the time the frame was | |||
| sent. | sent. | |||
| 8.15. NEW_CONNECTION_ID frame | 8.15. NEW_CONNECTION_ID frame | |||
| A NEW_CONNECTION_ID Frame is formatted as follows: | A NEW_CONNECTION_ID Frame is formatted as follows: | |||
| 0 1 2 3 | 0 1 2 3 | |||
| skipping to change at page 27, line 7 ¶ | skipping to change at page 27, line 5 ¶ | |||
| + + | + + | |||
| | | | | | | |||
| + Stateless Reset Token + | + Stateless Reset Token + | |||
| | | | | | | |||
| + + | + + | |||
| | | | | | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 24. Frame | |||
| 24. Frame type, set to 24 for NEW_CONNECTION_ID frames. | type, set to 24 for NEW_CONNECTION_ID frames. | |||
| Sequence Number: 1 Variable Length Integer Encoding. The sequence | Sequence Number: 1 Variable Length Integer Encoding. The sequence | |||
| number assigned to the connection ID by the sender. | number assigned to the connection ID by the sender. | |||
| Retire Prior To: 1 Variable Length Integer Encoding. A variable- | Retire Prior To: 1 Variable Length Integer Encoding. A variable- | |||
| length integer indicating which connection IDs should be retired. | length integer indicating which connection IDs should be retired. | |||
| Length: 1 byte. An 8-bit unsigned integer containing the length of | Length: 1 byte. An 8-bit unsigned integer containing the length of | |||
| the connection ID. Values less than 1 and greater than 20 are | the connection ID. Values less than 1 and greater than 20 are | |||
| invalid and MUST be treated as a connection error of type | invalid and MUST be treated as a connection error of type | |||
| skipping to change at page 27, line 41 ¶ | skipping to change at page 27, line 39 ¶ | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 25 | | | 25 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Sequence Number ... | | Sequence Number ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 25. Frame | |||
| 25. Frame type, set to 25 for RETIRE_CONNECTION_ID frames. | type, set to 25 for RETIRE_CONNECTION_ID frames. | |||
| Sequence Number: 1 Variable Length Integer Encoding. The sequence | Sequence Number: 1 Variable Length Integer Encoding. The sequence | |||
| number of the connection ID being retired. | number of the connection ID being retired. | |||
| 8.17. PATH_CHALLENGE frame | 8.17. PATH_CHALLENGE frame | |||
| A PATH_CHALLENGE Frame is formatted as follows: | A PATH_CHALLENGE Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 26 | | | 26 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | | | | | | |||
| + Data + | + Data + | |||
| | | | | | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 26. Frame | |||
| 26. Frame type, set to 26 for PATH_CHALLENGE frames. | type, set to 26 for PATH_CHALLENGE frames. | |||
| Data: 64 bits. This 8-byte field contains arbitrary data. | Data: 64 bits. This 8-byte field contains arbitrary data. | |||
| 8.18. PATH_RESPONSE frame | 8.18. PATH_RESPONSE frame | |||
| A PATH_RESPONSE Frame is formatted as follows: | A PATH_RESPONSE Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 27 | | | 27 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | | | | | | |||
| + Data + | + Data + | |||
| | | | | | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 27. Frame | |||
| 27. Frame type, set to 27 for PATH_RESPONSE frames. | type, set to 27 for PATH_RESPONSE frames. | |||
| Data: 64 bits. This 8-byte field contains arbitrary data. | Data: 64 bits. This 8-byte field contains arbitrary data. | |||
| 8.19. CONNECTION_CLOSE frame | 8.19. CONNECTION_CLOSE frame | |||
| A CONNECTION_CLOSE Frame is formatted as follows: | A CONNECTION_CLOSE Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| skipping to change at page 29, line 23 ¶ | skipping to change at page 29, line 23 ¶ | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | Phrase Length ... | | Phrase Length ... | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | : | | : | |||
| : Reason Phrase : | : Reason Phrase : | |||
| : | | : | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 28 || | |||
| 28 || FT.Value == 29. Frame type, set to 28 or 29 for | FT == 29. Frame type, set to 28 or 29 for CONNECTION_CLOSE frames. | |||
| CONNECTION_CLOSE frames. | ||||
| Error Code: 1 Variable Length Integer Encoding. A variable length | Error Code: 1 Variable Length Integer Encoding. A variable length | |||
| integer error code which indicates the reason for closing this | integer error code which indicates the reason for closing this | |||
| connection. | connection. | |||
| Frame Type: 1 Variable Length Integer Encoding; present only when | Frame Type: 1 Variable Length Integer Encoding; present only when | |||
| FT.Value == 28. A variable-length integer encoding the type of frame | FT == 28. A variable-length integer encoding the type of frame that | |||
| that triggered the error. | triggered the error. | |||
| Phrase Length (Length): 1 Variable Length Integer Encoding. A variab | Phrase Length (Length): 1 Variable Length Integer Encoding. A variab | |||
| le-length integer specifying the length of the reason phrase in | le-length integer specifying the length of the reason phrase in | |||
| bytes. | bytes. | |||
| Reason Phrase: Length.Value bytes. A human-readable explanation for | Reason Phrase: Length bytes. A human-readable explanation for why | |||
| why the connection was closed. | the connection was closed. | |||
| 8.20. HANDSHAKE_DONE frame | 8.20. HANDSHAKE_DONE frame | |||
| A HANDSHAKE_DONE Frame is formatted as follows: | A HANDSHAKE_DONE Frame is formatted as follows: | |||
| 0 1 2 3 | 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 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 | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| | 30 | | | 30 | | |||
| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |||
| where: | where: | |||
| Frame Type (FT): 1 Variable Length Integer Encoding; FT.Value == | Frame Type (FT): 1 Variable Length Integer Encoding; FT == 30. Frame | |||
| 30. Frame type, set to 30 for HANDSHAKE_DONE frames. | type, set to 30 for HANDSHAKE_DONE frames. | |||
| 9. Informative References | 9. Informative References | |||
| [QUIC-TRANSPORT] | [QUIC-TRANSPORT] | |||
| Iyengar, J. and M. Thomson, "QUIC: A UDP-Based Multiplexed | Iyengar, J. and M. Thomson, "QUIC: A UDP-Based Multiplexed | |||
| and Secure Transport", Work in Progress, Internet-Draft, | and Secure Transport", Work in Progress, Internet-Draft, | |||
| draft-ietf-quic-transport-27, 21 February 2020, | draft-ietf-quic-transport-27, 21 February 2020, | |||
| <http://www.ietf.org/internet-drafts/draft-ietf-quic- | <http://www.ietf.org/internet-drafts/draft-ietf-quic- | |||
| transport-27.txt>. | transport-27.txt>. | |||
| [AUGMENTED-DIAGRAMS] | [AUGMENTED-DIAGRAMS] | |||
| McQuistin, S., Band, V., Jacob, D., and C. S. Perkins, | McQuistin, S., Band, V., Jacob, D., and C. S. Perkins, | |||
| "Describing Protocol Data Units with Augmented Packet | "Describing Protocol Data Units with Augmented Packet | |||
| Header Diagrams", Work in Progress, Internet-Draft, draft- | Header Diagrams", Work in Progress, Internet-Draft, draft- | |||
| mcquistin-augmented-ascii-diagrams-05, 17 June 2020, | mcquistin-augmented-ascii-diagrams-06, 13 July 2020, | |||
| <http://www.ietf.org/internet-drafts/draft-mcquistin- | <http://www.ietf.org/internet-drafts/draft-mcquistin- | |||
| augmented-ascii-diagrams-05.txt>. | augmented-ascii-diagrams-06.txt>. | |||
| Appendix A. Source code repository | Appendix A. Source code repository | |||
| The source for this draft is available from https://github.com/ | The source for this draft is available from https://github.com/ | |||
| glasgow-ipl/draft-mcquistin-quic-augmented-diagrams. | glasgow-ipl/draft-mcquistin-quic-augmented-diagrams. | |||
| The source code for tooling that can be used to parse this document | The source code for tooling that can be used to parse this document | |||
| is available from https://github.com/glasgow-ipl/ips-protodesc-code. | is available from https://github.com/glasgow-ipl/ips-protodesc-code. | |||
| Authors' Addresses | Authors' Addresses | |||
| End of changes. 38 change blocks. | ||||
| 77 lines changed or deleted | 72 lines changed or added | |||
This html diff was produced by rfcdiff 1.46. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ | ||||