Re: delta encoding and state management

Nico Williams <nico@cryptonector.com> Thu, 17 January 2013 18:48 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 899E521F8895 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 17 Jan 2013 10:48:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.548
X-Spam-Level:
X-Spam-Status: No, score=-8.548 tagged_above=-999 required=5 tests=[AWL=1.428, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, 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 iMpu8U6+b7V1 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 17 Jan 2013 10:48:54 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 6478B21F88B2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 17 Jan 2013 10:48:46 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1TvuUp-00061W-VD for ietf-http-wg-dist@listhub.w3.org; Thu, 17 Jan 2013 18:47:27 +0000
Resent-Date: Thu, 17 Jan 2013 18:47:27 +0000
Resent-Message-Id: <E1TvuUp-00061W-VD@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 1TvuUj-00060i-Iw for ietf-http-wg@listhub.w3.org; Thu, 17 Jan 2013 18:47:21 +0000
Received: from caiajhbdccac.dreamhost.com ([208.97.132.202] helo=homiemail-a89.g.dreamhost.com) by maggie.w3.org with esmtp (Exim 4.72) (envelope-from <nico@cryptonector.com>) id 1TvuUf-0007Ku-F6 for ietf-http-wg@w3.org; Thu, 17 Jan 2013 18:47:21 +0000
Received: from homiemail-a89.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTP id 9520031805D for <ietf-http-wg@w3.org>; Thu, 17 Jan 2013 10:46:56 -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=EbyuHqhSr+Djc1yBGk3R 46E6Ams=; b=TC4XIMEpxG+Z0z21vq+oXXonXy0qb7rJGKO482KwMUrBoajYVYng oRCioYUcKKEeJh7jUsTS0C9wkeHxIs0/sG4m5aYTDew0GeixknIG5CLBbaD8xhtY 4WrAzQ0kBWp0hsooQbyS2HGt40b69X62JQWFcae1rlNbRX1WofqNu2w=
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a89.g.dreamhost.com (Postfix) with ESMTPSA id 3DF2B318059 for <ietf-http-wg@w3.org>; Thu, 17 Jan 2013 10:46:56 -0800 (PST)
Received: by mail-wi0-f172.google.com with SMTP id o1so4728171wic.5 for <ietf-http-wg@w3.org>; Thu, 17 Jan 2013 10:46:55 -0800 (PST)
MIME-Version: 1.0
X-Received: by 10.194.58.113 with SMTP id p17mr10236788wjq.27.1358448415013; Thu, 17 Jan 2013 10:46:55 -0800 (PST)
Received: by 10.217.82.73 with HTTP; Thu, 17 Jan 2013 10:46:54 -0800 (PST)
Received: by 10.217.82.73 with HTTP; Thu, 17 Jan 2013 10:46:54 -0800 (PST)
In-Reply-To: <CABP7RbcG-h5tgU-m8dAo-K+TGcDoH2HpR_q3d8h_8tf2Gs2BrA@mail.gmail.com>
References: <CABP7Rbf-_Of0Gnn7uaeuPiiZ6n+MxbpJjbggmD3qjykWX3gaXQ@mail.gmail.com> <CAP+FsNcF0n3cpPho0+WPM1-grRSEy92EMnJaGYA4j0WyvUm8Ng@mail.gmail.com> <CABP7RbcDRpfwfTOGS_aNjG4LtWkabvrGYcfwKqajT3hGKzBO6Q@mail.gmail.com> <CAK3OfOg3sv9gERgX-vO6mdX6ateDTgkP4F_efGdCk5VLG8FhOg@mail.gmail.com> <CABP7RbcG-h5tgU-m8dAo-K+TGcDoH2HpR_q3d8h_8tf2Gs2BrA@mail.gmail.com>
Date: Thu, 17 Jan 2013 12:46:54 -0600
Message-ID: <CAK3OfOhQvwiDNGxAg1ARnrORorSQ+4m-thk16OL9eytgb1vmkA@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: James M Snell <jasnell@gmail.com>
Cc: Roberto Peon <grmocg@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="047d7b86dcf838fc8704d3806bf9"
Received-SPF: none client-ip=208.97.132.202; envelope-from=nico@cryptonector.com; helo=homiemail-a89.g.dreamhost.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-3.446, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001
X-W3C-Scan-Sig: maggie.w3.org 1TvuUf-0007Ku-F6 d77fb2df1cb35c49652b7294837c9478
X-Original-To: ietf-http-wg@w3.org
Subject: Re: delta encoding and state management
Archived-At: <http://www.w3.org/mid/CAK3OfOhQvwiDNGxAg1ARnrORorSQ+4m-thk16OL9eytgb1vmkA@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/15962
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 Jan 17, 2013 11:57 AM, "James M Snell" <jasnell@gmail.com> wrote:
>> If the compression is hop-by-hop then there's no synchronization
>> issues.  But then middleboxes may have to decompress and always
>> re-compress (even if the headers are left unmodified) in each
>> direction.
>>
>
> That's the exact problem I'm having really. Middleboxes will be required
to maintain a complete compression state (for requests and responses) as
opposed to just passing things through. Maintaining that state could become
quite expensive. If we don't maintain it, tho, the potential sync issues
become too messy.

Right, if you want to do dreadful compression then middleboxes will have to
be stateful.

>>
>> In general I'd much rather not have connection-oriented state at all,
>> not even if it were transparent to HTTP.
>>
>
> Agreed, not sure how to avoid it and still get good compression (outside
of simply optimizing the encoding of values as much as possible... i.e.
bohe)

I'd rather do the architecturally-clean thing: optimize encodings.

Nico
--