Internet-Draft | GREASE for HTTP/2 | September 2021 |
Bishop | Expires 5 March 2022 | [Page] |
Reserves several values in the HTTP/2 registries to exercise the requirement that clients and servers ignore unknown values.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 5 March 2022.¶
Copyright (c) 2021 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 (https://trustee.ietf.org/license-info) 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
[UseIt] observes that extension and negotiation mechanisms which aren't exercised regularly can be found not to work when they are later employed by an extension to the protocol. [GREASE] is one mitigation which originated in TLS, registering multiple values in various TLS registries which can be sent prospectively by clients.¶
The common requirement of the different spaces described by these documents is the requirement that recipients ignore unrecognized values. By reserving a scattered set of codepoints to have no defined meaning, clients and servers can inject values from these ranges into connections on a regular basis and exercise this requirement.¶
HTTP/2 [HTTP2] frame types and settings employ a similar mechanism of ignoring unknown values. This makes HTTP/2 a good candidate to employ grease on connections. The need for such a technique was demonstrated recently by an HTTP/2 implementation which closed the connection upon receipt of an unknown setting.¶
Frame types of the format 0xb + (0x1f * N)
are reserved for use as grease.
These frames have no semantic meaning, and SHOULD be send instead of using
padding on DATA or HEADERS frames where possible. They MAY also be sent on
connections where there is no application data currently being transferred.
Endpoints MUST NOT consider these frames to have any meaning upon receipt.
These frames are not subject to flow control.¶
The flags, the payload, and the length of the frames SHOULD be selected randomly, subject to implementation-defined limits on the length.¶
[HTTP2] is ambiguous about whether unknown frame types are permitted on streams in the "idle", "reserved", "closed", or "half-closed (local)" states. As a result, some implementations could legitimately consider this to be an error. Therefore, these frames SHOULD NOT be sent on streams in those states.¶
Settings identifiers of the format 0x?a?a
are reserved for use as grease.
Such settings have no defined meaning. Endpoints SHOULD include at least one
such setting in their initial SETTINGS frame, and MAY send new SETTINGS frames
during the connection containing additional grease values. Endpoints MUST NOT
consider such settings to have any meaning upon receipt.¶
Because the setting has no defined meaning, the value of the setting SHOULD be selected randomly.¶
The ability to design, implement, and deploy new protocol mechanisms can be critical to security.¶
This document reserves a range of entries in the "HTTP/2 Frame Type" registry
defined in [HTTP2]. Each code of the format 0xb + (0x1f * N)
for values of
N in the range (0..7) (that is, 0xb
, 0x2a
, etc., through 0xe4
) MUST NOT be
assigned by IANA for any purpose.¶
This draft arose from a discussion in the QUIC WG with Lucas Pardue, Ryan Hamilton, and Martin Thomson.¶