QMIN: Header Compression for QUIC
draft-tikhonov-quic-qmin-00

Document Type Active Internet-Draft (individual)
Last updated 2017-11-13
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
QUIC Working Group                                           D. Tikhonov
Internet-Draft                                    LiteSpeed Technologies
Intended status: Standards Track                       November 13, 2017
Expires: May 17, 2018

                   QMIN: Header Compression for QUIC
                      draft-tikhonov-quic-qmin-00

Abstract

   This specification defines QMIN, a compression format and protocol
   for HTTP/2 ([RFC7540]) headers.  QMIN is based on HPACK ([RFC7541]).
   The modifications to HPACK are meant to allow robust compression use
   in QUIC: That is, no head-of-line blocking and low overhead.  QMIN is
   guided by HPACK design principles.  It inherits all of HPACK's data
   structures and retains binary compatibility with it.  While designed
   with QUIC in mind, QMIN can be used in other contexts.

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 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 May 17, 2018.

Copyright Notice

   Copyright (c) 2017 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

Tikhonov                  Expires May 17, 2018                  [Page 1]
Internet-Draft      QMIN: Header Compression for QUIC      November 2017

   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Checkpoint States . . . . . . . . . . . . . . . . . . . . . .   5
     3.1.  Checkpoint State: NEW . . . . . . . . . . . . . . . . . .   5
     3.2.  Checkpoint State: PENDING . . . . . . . . . . . . . . . .   5
     3.3.  Checkpoint State: LIVE  . . . . . . . . . . . . . . . . .   5
     3.4.  Checkpoint State: DEAD  . . . . . . . . . . . . . . . . .   6
   4.  Control Stream  . . . . . . . . . . . . . . . . . . . . . . .   6
     4.1.  Encoder Commands  . . . . . . . . . . . . . . . . . . . .   6
       4.1.1.  INSERT_ENTRY  . . . . . . . . . . . . . . . . . . . .   6
       4.1.2.  REUSE_ENTRY . . . . . . . . . . . . . . . . . . . . .   7
       4.1.3.  FLUSH_CHKPOINT  . . . . . . . . . . . . . . . . . . .   8
       4.1.4.  DROP_CHKPOINT . . . . . . . . . . . . . . . . . . . .   8
     4.2.  Decoder Messages  . . . . . . . . . . . . . . . . . . . .   9
       4.2.1.  ACK_FLUSH . . . . . . . . . . . . . . . . . . . . . .   9
     4.3.  Stream Notification Commands  . . . . . . . . . . . . . .   9
       4.3.1.  STREAM_DONE . . . . . . . . . . . . . . . . . . . . .   9
     4.4.  Expansion . . . . . . . . . . . . . . . . . . . . . . . .  10
   5.  Header Encoding . . . . . . . . . . . . . . . . . . . . . . .  10
   6.  Table Size Calculation  . . . . . . . . . . . . . . . . . . .  10
     6.1.  Entry Size  . . . . . . . . . . . . . . . . . . . . . . .  10
     6.2.  Checkpoint Size . . . . . . . . . . . . . . . . . . . . .  10
     6.3.  Overall Table Size  . . . . . . . . . . . . . . . . . . .  11
     6.4.  Comparison with HPACK . . . . . . . . . . . . . . . . . .  11
   7.  Encoding Process  . . . . . . . . . . . . . . . . . . . . . .  11
     7.1.  Indexable Header Fields . . . . . . . . . . . . . . . . .  11
       7.1.1.  New Index . . . . . . . . . . . . . . . . . . . . . .  11
       7.1.2.  Existing Index  . . . . . . . . . . . . . . . . . . .  11
     7.2.  Non-indexable Header Fields . . . . . . . . . . . . . . .  12
     7.3.  When Maximum Table Size Is Reached  . . . . . . . . . . .  12
     7.4.  Memory Cost of Flushing . . . . . . . . . . . . . . . . .  12
   8.  Decoding Process  . . . . . . . . . . . . . . . . . . . . . .  12
   9.  Encoder Strategies  . . . . . . . . . . . . . . . . . . . . .  13
     9.1.  Flushing and Dropping . . . . . . . . . . . . . . . . . .  13
       9.1.1.  Simple Strategy . . . . . . . . . . . . . . . . . . .  13
       9.1.2.  Rule-Based Strategy . . . . . . . . . . . . . . . . .  13
Show full document text