Re: [hybi] Framing Take VI (a compromise proposal)

Dave Cridland <dave@cridland.net> Mon, 16 August 2010 15:43 UTC

Return-Path: <dave@cridland.net>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AA6963A69E9 for <hybi@core3.amsl.com>; Mon, 16 Aug 2010 08:43:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.345
X-Spam-Level:
X-Spam-Status: No, score=-2.345 tagged_above=-999 required=5 tests=[AWL=-0.046, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3PLYUxXfA-Ew for <hybi@core3.amsl.com>; Mon, 16 Aug 2010 08:43:46 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 4A05A3A686A for <hybi@ietf.org>; Mon, 16 Aug 2010 08:43:46 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 8F294116809F; Mon, 16 Aug 2010 16:44:21 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jRBDeekVcx5E; Mon, 16 Aug 2010 16:44:20 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 29A1D116809E; Mon, 16 Aug 2010 16:44:20 +0100 (BST)
References: <AANLkTi=TBXO_Cbb+P+e2BVfx69shkf8E1-9ywDh_Y+Kz@mail.gmail.com> <4931.1281970860.071963@puncture> <AANLkTikaO29uOCOK3YDnrWGEDcOfNxyyG2jaNxXew8S6@mail.gmail.com>
In-Reply-To: <AANLkTikaO29uOCOK3YDnrWGEDcOfNxyyG2jaNxXew8S6@mail.gmail.com>
MIME-Version: 1.0
Message-Id: <4931.1281973460.163682@puncture>
Date: Mon, 16 Aug 2010 16:44:20 +0100
From: Dave Cridland <dave@cridland.net>
To: John Tamplin <jat@google.com>, "Ian Fette (イアンフェッティ)" <ifette@google.com>, Server-Initiated HTTP <hybi@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [hybi] Framing Take VI (a compromise proposal)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 15:43:47 -0000

On Mon Aug 16 16:12:23 2010, John Tamplin wrote:
> The whole reason the agreement to get a base protocol out now and  
> work on
> extensions in early 2011 is that we don't have any sort of  
> consensus on how
> these extensions should be implemented.  For example, we seem to  
> have pretty
> broad agreement that compression should be supported.  However, we  
> have at
> least 3 very different ideas for doing it:
> 
>    - per-frame compression, using negotiated (and possibly  
> asymmetric)
>    algorithms and using a bit per frame to indicate compressed data  
> (and
>    possibly exchange compression dictionary information in  
> extension data)
>    - mandate zlib compression and manipulate the compression level  
> to avoid
>    trying to compress uncompressible data
>    - compress the entire stream and flush at each frame boundary,  
> and assume
>    uncompressible data won't expand too much

As an aside, the last two are closely related - that is, the second  
is almost a subset of the first, since if deflate (or zlib, or gzip)  
compression is negotiated, then the receiver needn't know that the  
sender is fiddling with the compression levels at all, as far as I  
understand things.

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade