Re: bohe and delta experimentation...

Nico Williams <nico@cryptonector.com> Wed, 16 January 2013 23:21 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 4AA5011E809C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 16 Jan 2013 15:21:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.377
X-Spam-Level:
X-Spam-Status: No, score=-8.377 tagged_above=-999 required=5 tests=[AWL=1.600, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 w3HIeRJHdpBr for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 16 Jan 2013 15:21:53 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 631BF11E809A for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 16 Jan 2013 15:21:53 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TvcIO-0004tu-VU for ietf-http-wg-dist@listhub.w3.org; Wed, 16 Jan 2013 23:21:25 +0000
Resent-Date: Wed, 16 Jan 2013 23:21:24 +0000
Resent-Message-Id: <E1TvcIO-0004tu-VU@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1TvcIL-0004tA-LY for ietf-http-wg@listhub.w3.org; Wed, 16 Jan 2013 23:21:21 +0000
Received: from caiajhbdcbef.dreamhost.com ([208.97.132.145] helo=homiemail-a34.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1TvcIK-0001X4-VC for ietf-http-wg@w3.org; Wed, 16 Jan 2013 23:21:21 +0000
Received: from homiemail-a34.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTP id 08C691001D for <ietf-http-wg@w3.org>; Wed, 16 Jan 2013 15:21:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=XM6PHK1btMpPZrOaIXFI eDumULk=; b=Wp7/kzQBxjHRTb0+lJZe/znqCTUUIqcA54EMK8m+4LjhQSMRokVy mAL+SibydOVI3LXdjwmwxWy/+FQXj3Aq7oDK693+As3JIsIzeYf9mocsRil2/cCr 8PQMaK1+kiR0HGyEY5bwcoDfmdgzAX3P1bU4TqasR7yeLJzmEu1TPKs=
Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a34.g.dreamhost.com (Postfix) with ESMTPSA id E860B1001C for <ietf-http-wg@w3.org>; Wed, 16 Jan 2013 15:20:59 -0800 (PST)
Received: by mail-ie0-f172.google.com with SMTP id c13so3645877ieb.17 for <ietf-http-wg@w3.org>; Wed, 16 Jan 2013 15:20:59 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.50.173.33 with SMTP id bh1mr6073125igc.41.1358378459425; Wed, 16 Jan 2013 15:20:59 -0800 (PST)
Received: by 10.64.12.69 with HTTP; Wed, 16 Jan 2013 15:20:59 -0800 (PST)
In-Reply-To: <CABP7Rbeuk1DX+dKam=AHeUgfLAoa4XybOLFA+C1t1oQuQswdeA@mail.gmail.com>
References: <CABP7RbeNFm3ZHdtDBUJb3idJjFj0q+fxDPzxKZBhSJqXw8zWaQ@mail.gmail.com> <CAK3OfOhWm3XD57aX6oqxB50SO4KUL+b+fY0T6+ndk0G=q4BYbg@mail.gmail.com> <CABP7Rbeuk1DX+dKam=AHeUgfLAoa4XybOLFA+C1t1oQuQswdeA@mail.gmail.com>
Date: Wed, 16 Jan 2013 17:20:59 -0600
Message-ID: <CAK3OfOhdO069HvCTP4aJVqcyC8sxKgzh4gwvVpsab4BxCH7vhw@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: James M Snell <jasnell@gmail.com>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: none client-ip=208.97.132.145; envelope-from=nico@cryptonector.com; helo=homiemail-a34.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-2.7
X-W3C-Hub-Spam-Report: AWL=-2.575, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TvcIK-0001X4-VC d0e947f9e1f9b6f656c160b81e479bf4
X-Original-To: ietf-http-wg@w3.org
Subject: Re: bohe and delta experimentation...
Archived-At: <http://www.w3.org/mid/CAK3OfOhdO069HvCTP4aJVqcyC8sxKgzh4gwvVpsab4BxCH7vhw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15918
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:10 PM, James M Snell <jasnell@gmail.com> wrote:
> On Wed, Jan 16, 2013 at 2:47 PM, Nico Williams <nico@cryptonector.com>
> wrote:

> One of the nice thing about the strawman encoding I used is that it is a
> field-for-field representation of the RFC3339 timestamp. It encodes exactly
> the same information and can represent the full range of dates supported by
> the date-time construct. Other variations may shave off one or two
> additional bytes but either lose information or are far more limited in the
> values they can express. Suppose we decided to adjust the millisecond field
> to 10 bits as you suggest we have a worse case of 9-bytes, best case of 6.
> Seems like a reasonable compromise to me.

The variations I mentioned also encode the same information without
losing anything at all.  The downside of going the julian day or
seconds since epoch approaches is that they require more computation,
but I think we can burn those CPU cycles since they won't incur many
cache misses -- it's fast and saves bytes on the wire where it
matters.

The question is: is it worth the trouble?  I don't have an answer to
that, but I'm inclined to say that yes, we should represent dates/time
in an already very small format.


>> Where cookies bear encrypted session state you won't be able to
>> compress them at all.  And it's not like the server can't do the
>> effort to set maximally-compressed cookies -- it should!  IMO: leave
>> cookies alone.
>
> Yeah, that's what I suspect also. Allowing for binary cookie values can
> allow us to avoid extra bits on the wire but compression here typically
> doesn't help for these at all, regardless of how optimized our code tree is.

Right, because cookies are mostly either randomly generated crap or
encrypted state, and those can't compress *at all*.