Internet-Draft http2-segments April 2016
Kerwin Expires 1 November 2016 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-kerwin-http2-segments-latest
Published:
Intended Status:
Experimental
Expires:
Author:
M. Kerwin

HTTP/2 Segments

Abstract

This document introduces the concept of "segments" to HTTP/2, and adds a flag to the DATA frame type to allow the expression segments.

A "segment" is a contiguous block of HTTP message data that can be freely split apart and recombined at any time, allowing transmission in multiple HTTP/2 frames across network segments with smaller frame size limits without risk of permanent fragmentation when traversing network segments with much larger limits.

Discussion Venues

This note is to be removed before publishing as an RFC.

Source for this draft and an issue tracker can be found at https://github.com/phluid61/internet-drafts.

Status of This Memo

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 http://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 1 November 2016.

Table of Contents

1. Introduction

This document extends HTTP/2 [I-D.ietf-httpbis-http2] by introducing the concept of "segments" to HTTP/2, as a mechanism to combat the effects of fragmentation within a stream. It does this by adding a new flag to the DATA frame type ([I-D.ietf-httpbis-http2], Section 6.1).

1.1. Notational Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].

2. Segments

A "segment" is a contiguous region of a HTTP/2 message's payload data which can be freely fragmented and recombined. A segment is expressed using the SEGMENT and SEGMENT_CONTINUES flags (Section 4). Any data within a frame that does not have the SEGMENT or SEGMENT_CONTINUES flags set and that does not follow a frame with the SEGMENT_CONTINUES flag set does not contain any segmentation information, and MUST NOT be included in a segment.

Segments can be used to mitigate the effects of fragmentation within a stream. For example, an endpoint may have a large chunk of data which it has to transmit via multiple DATA frames in order to comply with frame size limits. It can mark those frames as a single segment so that any downstream peer without the same frame size restrictions knows that it can safely coalesce the frames.

3. SETTINGS_USE_SEGMENTS Setting

The following new SETTINGS parameter ([I-D.ietf-httpbis-http2], Section 6.5.2) is defined:

4. SEGMENT and SEGMENT_CONTINUES Flag

The following new flags are defined for the DATA frame ([I-D.ietf-httpbis-http2], Section 6.1):

Intermediaries MUST NOT coalesce frames across a segment boundary and MUST preserve segment boundaries when forwarding frames.

The SEGMENT and SEGMENT_CONTINUES flag MUST NOT be set on any frames unless the remote endpoint has indicated support by sending a SETTINGS_USE_SEGMENTS setting (Section 3) with a value of 1.

5. Security Considerations

In and of itself, segmentation does not introduce any security concerns. However when used in combination with other features, such as compression, known and unknown vulnerabilities may be introduced. See the Use of Compression in HTTP/2 ([I-D.ietf-httpbis-http2], Section 10.6).

6. IANA Considerations

This document updates the registry for settings in the "Hypertext Transfer Protocol (HTTP) 2 Parameters" section.

6.1. HTTP/2 Settings Registry Update

This document updates the "HTTP/2 Settings" registry ([I-D.ietf-httpbis-http2], Section 11.3). The entries in the following table are registered by this document.

Table 1
Name Code Initial Value Specification
SETTINGS_USE_SEGMENTS TBD N/A Section 3

7. Normative References

[I-D.ietf-httpbis-http2]
Belshe, M., Peon, R., and M. Thomson, "Hypertext Transfer Protocol Version 2 (HTTP/2)", Work in Progress, Internet-Draft, draft-ietf-httpbis-http2-17, , <https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-http2-17>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/rfc/rfc2119>.

Author's Address

Matthew Kerwin