HTTP Datagrams and the Capsule ProtocolGoogle LLC1600 Amphitheatre ParkwayMountain ViewCA94043United States of Americadschinazi.ietf@gmail.comCloudflarelucaspardue.24.7@gmail.com
Transport
MASQUEquichttpdatagramfasttunnelsturtles all the way downmasquehttp-ngThis document describes HTTP Datagrams, a convention for conveying multiplexed,
potentially unreliable datagrams inside an HTTP connection.In HTTP/3, HTTP Datagrams can be sent unreliably using the QUIC DATAGRAM
extension. When the QUIC DATAGRAM frame is unavailable or undesirable, HTTP
Datagrams can be sent using the Capsule Protocol, which is a more general
convention for conveying data in HTTP connections.HTTP Datagrams and the Capsule Protocol are intended for use by HTTP extensions,
not applications.Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by
the Internet Engineering Steering Group (IESG). Further
information on Internet Standards is available in Section 2 of
RFC 7841.
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
.
Copyright Notice
Copyright (c) 2022 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
() in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with
respect to this document. Code Components extracted from this
document must include Revised BSD License text as described in
Section 4.e of the Trust Legal Provisions and are provided without
warranty as described in the Revised BSD License.
Table of Contents
. Introduction
. Conventions and Definitions
. HTTP Datagrams
. HTTP/3 Datagrams
. The SETTINGS_H3_DATAGRAM HTTP/3 Setting
. HTTP Datagrams Using Capsules
. Capsules
. HTTP Data Streams
. The Capsule Protocol
. Error Handling
. The Capsule-Protocol Header Field
. The DATAGRAM Capsule
. Security Considerations
. IANA Considerations
. HTTP/3 Setting
. HTTP/3 Error Code
. HTTP Header Field Name
. Capsule Types
. References
. Normative References
. Informative References
Acknowledgments
Authors' Addresses
IntroductionHTTP extensions (as defined in ) sometimes need
to access underlying transport protocol features such as unreliable delivery (as
offered by ) to enable desirable features. For example,
this could allow for the introduction of an unreliable version of the CONNECT
method and the addition of unreliable delivery to WebSockets
.In , this document describes HTTP Datagrams, a convention
for conveying bidirectional and potentially unreliable datagrams inside
an HTTP connection, with multiplexing when possible. While HTTP Datagrams are associated with HTTP requests, they
are not a part of message content. Instead, they are intended for use by HTTP
extensions (such as the CONNECT method) and are compatible with all versions of
HTTP.When HTTP is running over a transport protocol that supports unreliable delivery
(such as when the QUIC DATAGRAM extension is available to HTTP/3
), HTTP Datagrams can use that capability.In , this document describes the HTTP Capsule Protocol, which allows the conveyance of HTTP Datagrams using reliable delivery. This addresses HTTP/3 cases where
use of the QUIC DATAGRAM frame is unavailable or undesirable or where the
transport protocol only provides reliable delivery, such as with HTTP/1.1
or HTTP/2 over TCP .Conventions and DefinitionsThe key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
"MAY", and "OPTIONAL" in this document are to be interpreted as
described in BCP 14 when, and only when, they
appear in all capitals, as shown here.This document uses terminology from .Where this document defines protocol types, the definition format uses the
notation from . Where fields within types are integers,
they are encoded using the variable-length integer encoding from . Integer values do not need to be encoded on the minimum number of bytes
necessary.In this document, the term "intermediary" refers to an HTTP intermediary as
defined in .HTTP DatagramsHTTP Datagrams are a convention for conveying bidirectional and potentially
unreliable datagrams inside an HTTP connection with multiplexing when
possible. All HTTP Datagrams are associated with an HTTP request.When HTTP Datagrams are conveyed on an HTTP/3 connection, the QUIC DATAGRAM
frame can be used to provide demultiplexing and unreliable delivery; see
. Negotiating the use of QUIC DATAGRAM frames for HTTP Datagrams is
achieved via the exchange of HTTP/3 settings; see .When running over HTTP/2, demultiplexing is provided by the HTTP/2 framing
layer, but unreliable delivery is unavailable. HTTP Datagrams are negotiated
and conveyed using the Capsule Protocol; see .When running over HTTP/1.x, requests are strictly serialized in the connection;
therefore, demultiplexing is not available. Unreliable delivery is likewise not
available. HTTP Datagrams are negotiated and conveyed using the Capsule
Protocol; see .HTTP Datagrams MUST only be sent with an association to an HTTP request that
explicitly supports them. For example, existing HTTP methods GET and POST do not
define semantics for associated HTTP Datagrams; therefore, HTTP Datagrams
associated with GET or POST request streams cannot be sent.If an HTTP Datagram is received and it is associated with a request that has no
known semantics for HTTP Datagrams, the receiver MUST terminate the request. If
HTTP/3 is in use, the request stream MUST be aborted with H3_DATAGRAM_ERROR
(0x33). HTTP extensions MAY override these requirements by defining a
negotiation mechanism and semantics for HTTP Datagrams.HTTP/3 DatagramsWhen used with HTTP/3, the Datagram Data field of QUIC DATAGRAM frames uses the
following format:
Quarter Stream ID:
A variable-length integer that contains the value of the client-initiated
bidirectional stream that this datagram is associated with divided by four (the
division by four stems from the fact that HTTP requests are sent on
client-initiated bidirectional streams, which have stream IDs that are divisible
by four). The largest legal QUIC stream ID value is 262-1, so the
largest legal value of the Quarter Stream ID field is 260-1. Receipt
of an HTTP/3 Datagram that includes a larger value MUST be treated as an HTTP/3
connection error of type H3_DATAGRAM_ERROR (0x33).
HTTP Datagram Payload:
The payload of the datagram, whose semantics are defined by the extension that
is using HTTP Datagrams. Note that this field can be empty.
Receipt of a QUIC DATAGRAM frame whose payload is too short to allow parsing the
Quarter Stream ID field MUST be treated as an HTTP/3 connection error of type
H3_DATAGRAM_ERROR (0x33).HTTP/3 Datagrams MUST NOT be sent unless the corresponding stream's send side is
open. If a datagram is received after the corresponding stream's receive side is
closed, the received datagrams MUST be silently dropped.If an HTTP/3 Datagram is received and its Quarter Stream ID field maps to a
stream that has not yet been created, the receiver SHALL either drop that
datagram silently or buffer it temporarily (on the order of a round trip) while
awaiting the creation of the corresponding stream.If an HTTP/3 Datagram is received and its Quarter Stream ID field maps to a
stream that cannot be created due to client-initiated bidirectional stream
limits, it SHOULD be treated as an HTTP/3 connection error of type H3_ID_ERROR.
Generating an error is not mandatory because the QUIC stream limit might be
unknown to the HTTP/3 layer.Prioritization of HTTP/3 Datagrams is not defined in this document. Future
extensions MAY define how to prioritize datagrams and MAY define signaling to
allow communicating prioritization preferences.The SETTINGS_H3_DATAGRAM HTTP/3 SettingAn endpoint can indicate to its peer that it is willing to receive HTTP/3
Datagrams by sending the SETTINGS_H3_DATAGRAM (0x33) setting with a value of 1.The value of the SETTINGS_H3_DATAGRAM setting MUST be either 0 or 1. A value
of 0 indicates that the implementation is not willing to receive HTTP Datagrams.
If the SETTINGS_H3_DATAGRAM setting is received with a value that is neither 0
nor 1, the receiver MUST terminate the connection with error H3_SETTINGS_ERROR.QUIC DATAGRAM frames MUST NOT be sent until the SETTINGS_H3_DATAGRAM setting
has been both sent and received with a value of 1.When clients use 0-RTT, they MAY store the value of the server's
SETTINGS_H3_DATAGRAM setting. Doing so allows the client to send QUIC DATAGRAM
frames in 0-RTT packets. When servers decide to accept 0-RTT data, they MUST
send a SETTINGS_H3_DATAGRAM setting greater than or equal to the value they sent
to the client in the connection where they sent them the NewSessionTicket
message. If a client stores the value of the SETTINGS_H3_DATAGRAM setting with
their 0-RTT state, they MUST validate that the new value of the
SETTINGS_H3_DATAGRAM setting sent by the server in the handshake is greater than
or equal to the stored value; if not, the client MUST terminate the connection
with error H3_SETTINGS_ERROR. In all cases, the maximum permitted value of the
SETTINGS_H3_DATAGRAM setting parameter is 1.It is RECOMMENDED that implementations that support receiving HTTP/3 Datagrams
always send the SETTINGS_H3_DATAGRAM setting with a value of 1,
even if the application does not intend to use HTTP/3 Datagrams. This helps to
avoid "sticking out"; see .HTTP Datagrams Using CapsulesWhen HTTP/3 Datagrams are unavailable or undesirable, HTTP Datagrams can be sent
using the Capsule Protocol; see .CapsulesOne mechanism to extend HTTP is to introduce new HTTP upgrade tokens; see
. In HTTP/1.x, these tokens are used via the Upgrade
mechanism; see . In HTTP/2 and HTTP/3, these tokens are
used via the Extended CONNECT mechanism; see and
.This specification introduces the Capsule Protocol. The Capsule Protocol is a
sequence of type-length-value tuples that definitions of new HTTP upgrade tokens
can choose to use. It allows endpoints to reliably communicate request-related
information end-to-end on HTTP request streams, even in the presence of HTTP
intermediaries. The Capsule Protocol can be used to exchange HTTP Datagrams,
which is necessary when HTTP is running over a transport that does not support
the QUIC DATAGRAM frame. The Capsule Protocol can also be used to communicate
reliable and bidirectional control messages associated with a datagram-based
protocol even when HTTP/3 Datagrams are in use.HTTP Data StreamsThis specification defines the "data stream" of an HTTP request as the
bidirectional stream of bytes that follows the header section of the request
message and the final response message that is either successful (i.e., 2xx) or
upgraded (i.e., 101).In HTTP/1.x, the data stream consists of all bytes on the connection that follow
the blank line that concludes either the request header section or the final
response header section. As a result, only the last HTTP request on an HTTP/1.x
connection can start the Capsule Protocol.In HTTP/2 and HTTP/3, the data stream of a given HTTP request consists of all
bytes sent in DATA frames with the corresponding stream ID.The concept of a data stream is particularly relevant for methods such as
CONNECT, where there is no HTTP message content after the headers.Data streams can be prioritized using any means suited to stream or request
prioritization. For example, see .Data streams are subject to the flow control mechanisms of the underlying
layers; examples include HTTP/2 stream flow control, HTTP/2 connection flow
control, and TCP flow control.The Capsule ProtocolDefinitions of new HTTP upgrade tokens can state that their associated request's
data stream uses the Capsule Protocol. If they do so, the contents of the
associated request's data stream uses the following format:
Capsule Type:
A variable-length integer indicating the type of the capsule. An IANA registry
is used to manage the assignment of Capsule Types; see .
Capsule Length:
The length, in bytes, of the Capsule Value field, which follows this field,
encoded as a variable-length integer. Note that this field can have a value of
zero.
Capsule Value:
The payload of this Capsule. Its semantics are determined by the value of the
Capsule Type field.
An intermediary can identify the use of the Capsule Protocol either through the
presence of the Capsule-Protocol header field () or by understanding the
chosen HTTP Upgrade token.Because new protocols or extensions might define new Capsule Types,
intermediaries that wish to allow for future extensibility SHOULD forward
Capsules without modification unless the definition of the Capsule Type in use
specifies additional intermediary processing. One such Capsule Type is the
DATAGRAM Capsule; see . In particular, intermediaries SHOULD
forward Capsules with an unknown Capsule Type without modification.Endpoints that receive a Capsule with an unknown Capsule Type MUST silently
drop that Capsule and skip over it to parse the next Capsule.By virtue of the definition of the data stream:
The Capsule Protocol is not in use unless the response includes a 2xx
(Successful) or 101 (Switching Protocols) status code.
When the Capsule Protocol is in use, the associated HTTP request and response
do not carry HTTP content. A future extension MAY define a new Capsule Type to
carry HTTP content.
The Capsule Protocol only applies to definitions of new HTTP upgrade tokens;
thus, in HTTP/2 and HTTP/3, it can only be used with the CONNECT method.
Therefore, once both endpoints agree to use the Capsule Protocol, the frame
usage requirements of the stream change as specified in
and .The Capsule Protocol MUST NOT be used with messages that contain Content-Length,
Content-Type, or Transfer-Encoding header fields. Additionally, HTTP status
codes 204 (No Content), 205 (Reset Content), and 206 (Partial Content) MUST NOT
be sent on responses that use the Capsule Protocol. A receiver that observes a
violation of these requirements MUST treat the HTTP message as malformed.When processing Capsules, a receiver might be tempted to accumulate the full
length of the Capsule Value field in the data stream before handling it. This
approach SHOULD be avoided because it can consume flow control in underlying
layers, and that might lead to deadlocks if the Capsule data exhausts the flow
control window.Error HandlingWhen a receiver encounters an error processing the Capsule Protocol, the
receiver MUST treat it as if it had received a malformed or incomplete HTTP
message. For HTTP/3, the handling of malformed messages is described in
. For HTTP/2, the handling of malformed messages is
described in . For HTTP/1.x, the handling of incomplete
messages is described in .Each Capsule's payload MUST contain exactly the fields identified in its
description. A Capsule payload that contains additional bytes after the
identified fields or a Capsule payload that terminates before the end of the
identified fields MUST be treated as it if were a malformed or incomplete
message. In particular, redundant length encodings MUST be verified to be
self-consistent.If the receive side of a stream carrying Capsules is terminated cleanly (for
example, in HTTP/3 this is defined as receiving a QUIC STREAM frame with the FIN
bit set) and the last Capsule on the stream was truncated, this MUST be treated
as if it were a malformed or incomplete message.The Capsule-Protocol Header FieldThe "Capsule-Protocol" header field is an Item Structured Field; see . Its value MUST be a Boolean; any other
value type MUST be handled as if the field were not present by recipients (for
example, if this field is included multiple times, its type will become a List
and the field will be ignored). This document does not define any parameters for
the Capsule-Protocol header field value, but future documents might define
parameters. Receivers MUST ignore unknown parameters.Endpoints indicate that the Capsule Protocol is in use on a data stream by
sending a Capsule-Protocol header field with a true value. A Capsule-Protocol
header field with a false value has the same semantics as when the header is not
present.Intermediaries MAY use this header field to allow processing of HTTP Datagrams
for unknown HTTP upgrade tokens. Note that this is only possible for HTTP
Upgrade or Extended CONNECT.The Capsule-Protocol header field MUST NOT be used on HTTP responses with a
status code that is both different from 101 (Switching Protocols) and outside
the 2xx (Successful) range.When using the Capsule Protocol, HTTP endpoints SHOULD send the Capsule-Protocol
header field to simplify intermediary processing. Definitions of new HTTP
upgrade tokens that use the Capsule Protocol MAY alter this recommendation.The DATAGRAM CapsuleThis document defines the DATAGRAM (0x00) Capsule Type. This Capsule allows HTTP
Datagrams to be sent on a stream using the Capsule Protocol. This is
particularly useful when HTTP is running over a transport that does not support
the QUIC DATAGRAM frame.
HTTP Datagram Payload:
The payload of the datagram, whose semantics are defined by the extension that
is using HTTP Datagrams. Note that this field can be empty.
HTTP Datagrams sent using the DATAGRAM Capsule have the same semantics as those
sent in QUIC DATAGRAM frames. In particular, the restrictions on when it is
allowed to send an HTTP Datagram and how to process them (from ) also
apply to HTTP Datagrams sent and received using the DATAGRAM Capsule.An intermediary can re-encode HTTP Datagrams as it forwards them. In other
words, an intermediary MAY send a DATAGRAM Capsule to forward an HTTP Datagram
that was received in a QUIC DATAGRAM frame and vice versa. Intermediaries MUST NOT perform this re-encoding unless they have identified the use of the Capsule
Protocol on the corresponding request stream; see .Note that while DATAGRAM Capsules, which are sent on a stream, are reliably
delivered in order, intermediaries can re-encode DATAGRAM Capsules into QUIC
DATAGRAM frames when forwarding messages, which could result in loss or
reordering.If an intermediary receives an HTTP Datagram in a QUIC DATAGRAM frame and is
forwarding it on a connection that supports QUIC DATAGRAM frames, the
intermediary SHOULD NOT convert that HTTP Datagram to a DATAGRAM Capsule. If the
HTTP Datagram is too large to fit in a DATAGRAM frame (for example, because the
Path MTU (PMTU) of that QUIC connection is too low or if the maximum UDP payload
size advertised on that connection is too low), the intermediary SHOULD drop the
HTTP Datagram instead of converting it to a DATAGRAM Capsule. This preserves the
end-to-end unreliability characteristic that methods such as Datagram
Packetization Layer PMTU Discovery (DPLPMTUD) depend on .
An intermediary that converts QUIC DATAGRAM frames to DATAGRAM Capsules allows
HTTP Datagrams to be arbitrarily large without suffering any loss. This can
misrepresent the true path properties, defeating methods such as DPLPMTUD.While DATAGRAM Capsules can theoretically carry a payload of length
262-1, most HTTP extensions that use HTTP Datagrams will have their
own limits on what datagram payload sizes are practical. Implementations SHOULD
take those limits into account when parsing DATAGRAM Capsules. If an incoming
DATAGRAM Capsule has a length that is known to be so large as to not be usable,
the implementation SHOULD discard the Capsule without buffering its contents
into memory.Since QUIC DATAGRAM frames are required to fit within a QUIC packet,
implementations that re-encode DATAGRAM Capsules into QUIC DATAGRAM frames might
be tempted to accumulate the entire Capsule in the stream before re-encoding it.
This SHOULD be avoided, because it can cause flow control problems; see
.Note that it is possible for an HTTP extension to use HTTP Datagrams without
using the Capsule Protocol. For example, if an HTTP extension that uses HTTP
Datagrams is only defined over transports that support QUIC DATAGRAM frames, it
might not need a stream encoding. Additionally, HTTP extensions can use HTTP
Datagrams with their own data stream protocol. However, new HTTP extensions that
wish to use HTTP Datagrams SHOULD use the Capsule Protocol, as failing to do so
will make it harder for the HTTP extension to support versions of HTTP other
than HTTP/3 and will prevent interoperability with intermediaries that only
support the Capsule Protocol.Security ConsiderationsSince transmitting HTTP Datagrams using QUIC DATAGRAM frames requires sending
the HTTP/3 SETTINGS_H3_DATAGRAM setting, it "sticks out". In other words,
probing clients can learn whether a server supports HTTP Datagrams over QUIC
DATAGRAM frames. As some servers might wish to obfuscate the fact that they
offer application services that use HTTP Datagrams, it's best for all
implementations that support this feature to always send this setting; see
.Since use of the Capsule Protocol is restricted to new HTTP upgrade tokens, it
is not directly accessible from Web Platform APIs (such as those commonly accessed via
JavaScript in web browsers).Definitions of new HTTP upgrade tokens that use the Capsule Protocol need to
include a security analysis that considers the impact of HTTP Datagrams and
Capsules in the context of their protocol.IANA ConsiderationsHTTP/3 SettingIANA has registered the following entry in the "HTTP/3 Settings" registry
maintained at <>:
Value:
0x33
Setting Name:
SETTINGS_H3_DATAGRAM
Default:
0
Status:
permanent
Reference:
RFC 9297
Change Controller:
IETF
Contact:
HTTP_WG; HTTP working group; ietf-http-wg@w3.org
Notes:
None
HTTP/3 Error CodeIANA has registered the following entry in the "HTTP/3 Error Codes" registry
maintained at <>:
Value:
0x33
Name:
H3_DATAGRAM_ERROR
Description:
Datagram or Capsule Protocol parse error
Status:
permanent
Reference:
RFC 9297
Change Controller:
IETF
Contact:
HTTP_WG; HTTP working group; ietf-http-wg@w3.org
Notes:
None
HTTP Header Field NameIANA has registered the following entry in the "Hypertext Transfer Protocol
(HTTP) Field Name Registry" maintained at
<>:
Field Name:
Capsule-Protocol
Template:
None
Status:
permanent
Reference:
RFC 9297
Comments:
None
Capsule TypesThis document establishes a registry for HTTP Capsule Type codes. The "HTTP
Capsule Types" registry governs a 62-bit space and operates under the QUIC
registration policy documented in . This new registry
includes the common set of fields listed in . In
addition to those common fields, all registrations in this registry MUST include
a "Capsule Type" field that contains a short name or label for the Capsule Type.Permanent registrations in this registry are assigned using the Specification
Required policy (), except for values
between 0x00 and 0x3f (in hexadecimal; inclusive), which are assigned using
Standards Action or IESG Approval as defined in Sections and of .Capsule Types with a value of the form 0x29 * N + 0x17 for integer values of N
are reserved to exercise the requirement that unknown Capsule Types be ignored.
These Capsules have no semantics and can carry arbitrary values. These values
MUST NOT be assigned by IANA and MUST NOT appear in the listing of assigned
values.This registry initially contains the following entry:
Value:
0x00
Capsule Type:
DATAGRAM
Status:
permanent
Reference:
RFC 9297
Change Controller:
IETF
Contact:
MASQUE Working Group masque@ietf.org
Notes:
None
ReferencesNormative ReferencesHTTP SemanticsThe Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document describes the overall architecture of HTTP, establishes common terminology, and defines aspects of the protocol that are shared by all versions. In this definition are core protocol elements, extensibility mechanisms, and the "http" and "https" Uniform Resource Identifier (URI) schemes.This document updates RFC 3864 and obsoletes RFCs 2818, 7231, 7232, 7233, 7235, 7538, 7615, 7694, and portions of 7230.HTTP/1.1The Hypertext Transfer Protocol (HTTP) is a stateless application-level protocol for distributed, collaborative, hypertext information systems. This document specifies the HTTP/1.1 message syntax, message parsing, connection management, and related security concerns.This document obsoletes portions of RFC 7230.HTTP/2This specification describes an optimized expression of the semantics of the Hypertext Transfer Protocol (HTTP), referred to as HTTP version 2 (HTTP/2). HTTP/2 enables a more efficient use of network resources and a reduced latency by introducing field compression and allowing multiple concurrent exchanges on the same connection.This document obsoletes RFCs 7540 and 8740.HTTP/3The QUIC transport protocol has several features that are desirable in a transport for HTTP, such as stream multiplexing, per-stream flow control, and low-latency connection establishment. This document describes a mapping of HTTP semantics over QUIC. This document also identifies HTTP/2 features that are subsumed by QUIC and describes how HTTP/2 extensions can be ported to HTTP/3.Guidelines for Writing an IANA Considerations Section in RFCsMany protocols make use of points of extensibility that use constants to identify various protocol parameters. To ensure that the values in these fields do not have conflicting uses and to promote interoperability, their allocations are often coordinated by a central record keeper. For IETF protocols, that role is filled by the Internet Assigned Numbers Authority (IANA).To make assignments in a given registry prudently, guidance describing the conditions under which new values should be assigned, as well as when and how modifications to existing values can be made, is needed. This document defines a framework for the documentation of these guidelines by specification authors, in order to assure that the provided guidance for the IANA Considerations is clear and addresses the various issues that are likely in the operation of a registry.This is the third edition of this document; it obsoletes RFC 5226.QUIC: A UDP-Based Multiplexed and Secure TransportThis document defines the core of the QUIC transport protocol. QUIC provides applications with flow-controlled streams for structured communication, low-latency connection establishment, and network path migration. QUIC includes security measures that ensure confidentiality, integrity, and availability in a range of deployment circumstances. Accompanying documents describe the integration of TLS for key negotiation, loss detection, and an exemplary congestion control algorithm.An Unreliable Datagram Extension to QUICThis document defines an extension to the QUIC transport protocol to add support for sending and receiving unreliable datagrams over a QUIC connection.Key words for use in RFCs to Indicate Requirement LevelsIn many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.Ambiguity of Uppercase vs Lowercase in RFC 2119 Key WordsRFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.Structured Field Values for HTTPThis document describes a set of data types and associated algorithms that are intended to make it easier and safer to define and handle HTTP header and trailer fields, known as "Structured Fields", "Structured Headers", or "Structured Trailers". It is intended for use by specifications of new HTTP fields that wish to use a common syntax that is more restrictive than traditional HTTP field values.Transmission Control Protocol (TCP)This document specifies the Transmission Control Protocol (TCP). TCP is an important transport-layer protocol in the Internet protocol stack, and it has continuously evolved over decades of use and growth of the Internet. Over this time, a number of changes have been made to TCP as it was specified in RFC 793, though these have only been documented in a piecemeal fashion. This document collects and brings those changes together with the protocol specification from RFC 793. This document obsoletes RFC 793, as well as RFCs 879, 2873, 6093, 6429, 6528, and 6691 that updated parts of RFC 793. It updates RFCs 1011 and 1122, and it should be considered as a replacement for the portions of those documents dealing with TCP requirements. It also updates RFC 5961 by adding a small clarification in reset handling while in the SYN-RECEIVED state. The TCP header control bits from RFC 793 have also been updated based on RFC 3168.Informative ReferencesPacketization Layer Path MTU Discovery for Datagram TransportsThis document specifies Datagram Packetization Layer Path MTU Discovery (DPLPMTUD). This is a robust method for Path MTU Discovery (PMTUD) for datagram Packetization Layers (PLs). It allows a PL, or a datagram application that uses a PL, to discover whether a network path can support the current size of datagram. This can be used to detect and reduce the message size when a sender encounters a packet black hole. It can also probe a network path to discover whether the maximum packet size can be increased. This provides functionality for datagram transports that is equivalent to the PLPMTUD specification for TCP, specified in RFC 4821, which it updates. It also updates the UDP Usage Guidelines to refer to this method for use with UDP datagrams and updates SCTP.The document provides implementation notes for incorporating Datagram PMTUD into IETF datagram transports or applications that use datagram transports.This specification updates RFC 4960, RFC 4821, RFC 6951, RFC 8085, and RFC 8261.Bootstrapping WebSockets with HTTP/2This document defines a mechanism for running the WebSocket Protocol (RFC 6455) over a single stream of an HTTP/2 connection.Bootstrapping WebSockets with HTTP/3The mechanism for running the WebSocket Protocol over a single stream of an HTTP/2 connection is equally applicable to HTTP/3, but the HTTP-version-specific details need to be specified. This document describes how the mechanism is adapted for HTTP/3.Extensible Prioritization Scheme for HTTPThis document describes a scheme that allows an HTTP client to communicate its preferences for how the upstream server prioritizes responses to its requests, and also allows a server to hint to a downstream intermediary how its responses should be prioritized when they are forwarded. This document defines the Priority header field for communicating the initial priority in an HTTP version-independent manner, as well as HTTP/2 and HTTP/3 frames for reprioritizing responses. These share a common format structure that is designed to provide future extensibility.The WebSocket Protocol<p>The WebSocket Protocol enables two-way communication between a client running untrusted code in a controlled environment to a remote host that has opted-in to communications from that code. The security model used for this is the origin-based security model commonly used by web browsers. The protocol consists of an opening handshake followed by basic message framing, layered over TCP. The goal of this technology is to provide a mechanism for browser-based applications that need two-way communication with servers that does not rely on opening multiple HTTP connections (e.g., using XMLHttpRequest or <iframe>s and long polling). [STANDARDS-TRACK]</p>AcknowledgmentsPortions of this document were previously part of the QUIC DATAGRAM frame
definition itself; the authors would like to acknowledge the authors of that
document and the members of the IETF MASQUE working group for their suggestions.
Additionally, the authors would like to thank for suggesting the
use of an HTTP/3 setting. Furthermore, the authors would like to
thank for substantive input. The final design in this document came out of the HTTP Datagrams
Design Team, whose members were ,
, , , ,
, , ,
, and the authors of this document. The authors thank
and for their helpful comments.Authors' AddressesGoogle LLC1600 Amphitheatre ParkwayMountain ViewCA94043United States of Americadschinazi.ietf@gmail.comCloudflarelucaspardue.24.7@gmail.com