Re: bohe and delta experimentation...

Phillip Hallam-Baker <hallam@gmail.com> Fri, 18 January 2013 19:42 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 A3BF321F87A5 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 11:42:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.298
X-Spam-Level:
X-Spam-Status: No, score=-6.298 tagged_above=-999 required=5 tests=[AWL=4.300, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OMEXB16bLBRO for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 18 Jan 2013 11:42:13 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id A1E8B21F8790 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 18 Jan 2013 11:42:13 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TwHoO-0004Ip-Bl for ietf-http-wg-dist@listhub.w3.org; Fri, 18 Jan 2013 19:41:12 +0000
Resent-Date: Fri, 18 Jan 2013 19:41:12 +0000
Resent-Message-Id: <E1TwHoO-0004Ip-Bl@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TwHoK-0004I4-JP for ietf-http-wg@listhub.w3.org; Fri, 18 Jan 2013 19:41:08 +0000
Received: from mail-wg0-f49.google.com ([74.125.82.49]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <hallam@gmail.com>) id 1TwHoJ-0007Ga-Po for ietf-http-wg@w3.org; Fri, 18 Jan 2013 19:41:08 +0000
Received: by mail-wg0-f49.google.com with SMTP id 15so2354867wgd.4 for <ietf-http-wg@w3.org>; Fri, 18 Jan 2013 11:40:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=1HW8VUKL2osqmSjPDoZzQfepCTjwGKxgcJUV8ISxEhY=; b=COqmyD1O/R5m7/lVSEy+yUkjvJPFKRY8JfBxR7oNH184KIvGkui5TGqQz1ZtcBwkGN DdJe6H10gsLI8ibYZDIQGxAK0WAb+1zD3JGeeDX/8qBl2hBY+MKZ8x6m6lVL+GB2GmCz Oq7IRe0ssYB/eF62yBErHHqWPMva4BYDLlSA5BVTKA3JPHVAGUIZrBPwJqiCDumoR4tY mnSC1XQ7YIh64G+RFFx5ydMWChVNPBYNpP7AUjJGL7Svk0uEosIK1CiMqSnxuD/mmZNW 7mNNWteIJXc5jg2F+JyPcu3e4MMz8ts2SVXrrv0xO5qvO119P6rLbjAUwAgmgxhr2c7d DZ3w==
MIME-Version: 1.0
X-Received: by 10.194.90.116 with SMTP id bv20mr15984656wjb.33.1358538041592; Fri, 18 Jan 2013 11:40:41 -0800 (PST)
Received: by 10.194.59.10 with HTTP; Fri, 18 Jan 2013 11:40:41 -0800 (PST)
In-Reply-To: <CABP7RbeNFm3ZHdtDBUJb3idJjFj0q+fxDPzxKZBhSJqXw8zWaQ@mail.gmail.com>
References: <CABP7RbeNFm3ZHdtDBUJb3idJjFj0q+fxDPzxKZBhSJqXw8zWaQ@mail.gmail.com>
Date: Fri, 18 Jan 2013 14:40:41 -0500
Message-ID: <CAMm+LwiCRVPi=gmEsO9PGT2N7DcFf3q-HCuVVg_+H2NU3w5dfA@mail.gmail.com>
From: Phillip Hallam-Baker <hallam@gmail.com>
To: James M Snell <jasnell@gmail.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7bfd031c62098004d39549b8"
Received-SPF: pass client-ip=74.125.82.49; envelope-from=hallam@gmail.com; helo=mail-wg0-f49.google.com
X-W3C-Hub-Spam-Status: No, score=-0.8
X-W3C-Hub-Spam-Report: DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1TwHoJ-0007Ga-Po 7d719dff326bb5081994a32899e8fed4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: bohe and delta experimentation...
Archived-At: <http://www.w3.org/mid/CAMm+LwiCRVPi=gmEsO9PGT2N7DcFf3q-HCuVVg_+H2NU3w5dfA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16014
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>

On Wed, Jan 16, 2013 at 5:07 PM, James M Snell <jasnell@gmail.com> wrote:

> After going a number of scenarios with bohe using a variety of
> stream-compression scenarios it's painfully obvious that there is really no
> way around the CRIME issue when using stream-compression. So with that, I'm
> turning my attention to the use of Roberto's delta encoding and exploring
> whether or not binary optimized values can make a significant difference
> (as opposed to simply dropping in huffman-encoded text everywhere).
>
> I'm starting with dates first...
>
> Right now, dates in http/1 requests are rather inefficient. The existing
> date-time format wastes a significant amount of space, albeit across only a
> relatively few headers. On the plus side, these tend to compress well, but
> given that the dates change frequently request-to-request, they will be
> short-lived in the delta context.
>

Why do HTTP request messages have dates in them anyhow?

If they do not cause a state machine to behave differently then lets get
rid of them.

Dates that are content metadata are useful but putting the time in a
synchronous protocol has always seemed rather silly to me. The only use I
can see is to find out if the requester can config their machine to have
the right TOD on the clock. If that is all we are worried about then DNS
type 32 bit dates would be fine. DateTime in the DNS actually wraps every
UNIX epoch.

Given that we could eliminate the date altogether much of the time, having
the format wrap every 65 years or so does not seem a big problem to me.


Given that the universe we are in will wear out in a finite time it seems
unnecessary to use more than a 64 bit count of miliseconds or such. that is
only 8 bytes and easier to manage than the proposed format.

-- 
Website: http://hallambaker.com/