Re: Header Compression

James M Snell <jasnell@gmail.com> Sun, 09 June 2013 20:29 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0579721F8AF4 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 9 Jun 2013 13:29:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uQNXhjWGOAxJ for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 9 Jun 2013 13:29:08 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 23F0821F8AF7 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 9 Jun 2013 13:29:07 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1UlmCo-0008TH-0w for ietf-http-wg-dist@listhub.w3.org; Sun, 09 Jun 2013 20:27:14 +0000
Resent-Date: Sun, 09 Jun 2013 20:27:14 +0000
Resent-Message-Id: <E1UlmCo-0008TH-0w@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UlmCc-0008SW-B6 for ietf-http-wg@listhub.w3.org; Sun, 09 Jun 2013 20:27:02 +0000
Received: from mail-ob0-f179.google.com ([209.85.214.179]) by maggie.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <jasnell@gmail.com>) id 1UlmCb-0000Vt-98 for ietf-http-wg@w3.org; Sun, 09 Jun 2013 20:27:02 +0000
Received: by mail-ob0-f179.google.com with SMTP id xk17so9085667obc.10 for <ietf-http-wg@w3.org>; Sun, 09 Jun 2013 13:26:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=/JXd6+oZI8RHjM8NISZ9Q6ziym7XoGMrh2IJ8w6V1Kk=; b=NEAFYDzPdYNcnjPwHDn+GgU7vmDJRGCBbP3nN+Ng2fFq1/Vtb2kQ/1KVsEJP1u1lhq Vs+GW9fpmwMH6ExE5Zos8jt/QdmurRLXUd+P95gqNU4yFuuhaz7+rUBDf5xQaVYQdcoY guCyeK1Job6j+qqfXXiNYcJY0oi0Af/TQtUGvQLPdDG5TqOtx/aILE6VNiwQba6yNLv9 Lc74959H9EY2lPT2OtcL3kxJiemAstKHlVcFU0DVXqTcu72hWge9Fjyf3XRobFasAPBM IXGEzut9O5eQCat03AmIvsSpvdw+Dt/dU2/1kDGVEF8OJgkP1Bd3/7kxD5vq2dSj8rMa bHqA==
X-Received: by 10.60.97.232 with SMTP id ed8mr5735617oeb.96.1370809595130; Sun, 09 Jun 2013 13:26:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.60.76.231 with HTTP; Sun, 9 Jun 2013 13:26:15 -0700 (PDT)
In-Reply-To: <CABP7RbcH5k0im4YM1H1616ycQokQRR7goRZFPfm4c1A+RY0drQ@mail.gmail.com>
References: <6C71876BDCCD01488E70A2399529D5E516531910@ADELE.crf.canon.fr> <CABP7RbcH5k0im4YM1H1616ycQokQRR7goRZFPfm4c1A+RY0drQ@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Sun, 09 Jun 2013 13:26:15 -0700
Message-ID: <CABP7Rbfp3pnFHtKP7PHPkXwnbxpyNzFkv8qWduaKsTSUodfieA@mail.gmail.com>
To: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=209.85.214.179; envelope-from=jasnell@gmail.com; helo=mail-ob0-f179.google.com
X-W3C-Hub-Spam-Status: No, score=-4.5
X-W3C-Hub-Spam-Report: AWL=-1.753, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1UlmCb-0000Vt-98 1f8d7ca6c7336dec6e71496d48c8a7e7
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Header Compression
Archived-At: <http://www.w3.org/mid/CABP7Rbfp3pnFHtKP7PHPkXwnbxpyNzFkv8qWduaKsTSUodfieA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/18206
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

All, I've updated the Stored Header Encoding (aka bohe) draft...

  http://www.ietf.org/id/draft-snell-httpbis-bohe-10.txt

The main change is to the typed value encoding (switch to a 3-bit
identifier rather than 2-bit), and a few examples.

This draft ought to be viewed as an alternative to the joint header
compression draft Herve and Roberto have proposed (still waiting on
the I-D to be published for that one tho). There are a number of
distinct differences between the approaches:

1. This approach does not have the "differential encoding". This means
that the compression ratio is slightly worse but is far less
complicated to implement.
2. This approach includes the typed value codecs. Yes, the typed
values have not been considered to be a priority thus far but they are
built in to this approach and offer significant improvements to
encoding size independent of the compression ratio.
3. This approach includes a Huffman-encoding for text headers that
supports arbitrary UTF-8 codepoints
4. This approach uses a smaller dynamic storage range than the
alternative which trades slightly less compression efficiency for
fewer (and easier) state management requirements by the endpoints.
5. Of much lower priority at this point in time, but worth noting...
As part of the typed value codecs, this naturally provides for
multiple values per header, allowing for interesting new possibilities
such as http://tools.ietf.org/html/draft-snell-httpbis-mget-00

- James


On Wed, Jun 5, 2013 at 12:31 PM, James M Snell <jasnell@gmail.com> wrote:
> At first read, this definitely looks like an improvement. I will be
> taking another pass over the bohe draft before next week and will be
> working on side-by-side implementations of both bohe and this updated
> proposal in time for next weeks face to face.
>
> On Wed, Jun 5, 2013 at 12:17 PM, RUELLAN Herve
> <Herve.Ruellan@crf.canon.fr> wrote:
>> Roberto and I have been discussing for some time and we have created a joint proposal for Header Compression.
>>
>> The resulting spec is available at:
>> https://github.com/http2/compression-spec
>>
>> The main features of this proposal are:
>> - One single table for indexing headers as (name, value) pairs.
>> - HeaderDiff-based serialization (indexed header, literal header with either no indexing, addition indexing, or replacement indexing).
>> - Delta2-based diff between two successive header sets.
>> - Possibility of bounding table size.
>> - Least recently written eviction strategy when an insertion cause table size limit to be reached.
>>
>>
>> We will present it in details at the next interim meeting. Until then, all questions and comments are welcome.
>>
>> Hervé.