Re: [hybi] Restarting IESG review on permessage-deflate

Peter Thorson <webmaster@zaphoyd.com> Fri, 04 October 2013 19:57 UTC

Return-Path: <webmaster@zaphoyd.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9045E21F8E21 for <hybi@ietfa.amsl.com>; Fri, 4 Oct 2013 12:57:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 m6e1ExkxD4LY for <hybi@ietfa.amsl.com>; Fri, 4 Oct 2013 12:56:54 -0700 (PDT)
Received: from sh78.surpasshosting.com (sh78.surpasshosting.com [72.29.64.142]) by ietfa.amsl.com (Postfix) with ESMTP id 2A6A621F9D22 for <hybi@ietf.org>; Fri, 4 Oct 2013 12:56:41 -0700 (PDT)
Received: from ranna.uchicago.edu ([128.135.45.206]:63249) by sh78.surpasshosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80.1) (envelope-from <webmaster@zaphoyd.com>) id 1VSBUK-00066E-Fg for hybi@ietf.org; Fri, 04 Oct 2013 15:56:36 -0400
From: Peter Thorson <webmaster@zaphoyd.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7AE5B827-4CA7-46A5-8C8E-C734E6EDA6CC"
Message-Id: <F18056D3-5BE0-4064-96FF-F15C709DB51C@zaphoyd.com>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
Date: Fri, 04 Oct 2013 14:56:35 -0500
References: <CAH9hSJbwd5qhMJw=3dwk3CDPua5ENRksd9=q2KDcyyma3uKzZg@mail.gmail.com> <CAG4zZZD8eq4w9kyQbX2AJcM1LA8=UyRO7txK7TvmYhSp=YU+9g@mail.gmail.com> <634914A010D0B943A035D226786325D4446790BF34@EXVMBX020-12.exch020.serverdata.net> <dmnt49hf1bbifiote81fumeamnk76vti1t@hive.bjoern.hoehrmann.de> <634914A010D0B943A035D226786325D4446790BF87@EXVMBX020-12.exch020.serverdata.net> <CAG4zZZDdcC5+cob715KE77uZiPYAo1Oz6M0StLA=vSp5iX_h7A@mail.gmail.com>
To: "hybi@ietf.org" <hybi@ietf.org>
In-Reply-To: <CAG4zZZDdcC5+cob715KE77uZiPYAo1Oz6M0StLA=vSp5iX_h7A@mail.gmail.com>
X-Mailer: Apple Mail (2.1510)
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - sh78.surpasshosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - zaphoyd.com
X-Get-Message-Sender-Via: sh78.surpasshosting.com: authenticated_id: webmaster@zaphoyd.com
X-Source:
X-Source-Args:
X-Source-Dir:
Subject: Re: [hybi] Restarting IESG review on permessage-deflate
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Fri, 04 Oct 2013 19:57:01 -0000

On Oct 4, 2013, at 11:25 , Joakim Erdfelt <joakim@intalio.com> wrote:

> On Fri, Oct 4, 2013 at 8:57 AM, Tobias Oberstein <tobias.oberstein@tavendo.de> wrote:
> The spec use of these prefixes is unclear at best, and downright misleading at worst.
> If the spec is trying to say something like this ...
> 
>    Hi, I'm the client, I want to talk to you using 1 set of configurations, and I want you to talk back to me on a different set of configurations.
> 
> ... then this is not made clear in http://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-12 
> 
> And If this is the intention, make it clear, in the spec, that the whole point of the prefixes is to have different configurations for incoming vs outgoing frames. (and explain the pros and cons of this)

Based on my reading of the draft 12 spec sections for the individual method parameters (sec 8.1.1.1-4), it seemed clear to me that the intention is specifically to allow asymmetric configuration.

This is useful because the nature of the deflate algorithm and the capabilities of endpoints are likely to be asymmetric. Deflate typically takes significantly more memory than inflate. Desktop browsers are likely to be less memory sensitive than a server processing tens of thousands of connections each needing their own sliding window or a server running on an embedded device with limited memory. In these cases the resource rich endpoint may want to use its extra memory for a better outgoing compression ratio while allowing the resource poor endpoint to compress less thoroughly to conserve memory.

While I think the present descriptions of each individual parameter convey this information, I wouldn't be opposed to clarifying the overview part of section 8 to review the asymmetric nature of the parameters. A proposal:

======= Existing =======

For an offer for this extension, the following 4 extension parameters
are defined.  If needed to distinguish from ones for a response,
these parameters are called with a prefix "client-to-server".

- "s2c_no_context_takeover"
- "c2s_no_context_takeover"
- "s2c_max_window_bits"
- "c2s_max_window_bits"

For a response for this extension, the following 4 extension
parameters are defined.  If needed to distinguish from ones for an
offer, these parameters are called with a prefix "server-to-client".

- "s2c_no_context_takeover"
- "c2s_no_context_takeover"
- "s2c_max_window_bits"
- "c2s_max_window_bits"

======= Possible clarification =======

Four extension parameters are defined for permessage-deflate to help 
endpoints manage per-connection resource usage.

- "s2c_no_context_takeover"
- "c2s_no_context_takeover"
- "s2c_max_window_bits"
- "c2s_max_window_bits"

These represent two methods of constraining memory usage that may be 
applied independently to either direction of WebSocket traffic. The prefixes 
c2s and s2c are used to indicate the client-to-server channel and the 
server-to-client channel respectively. All four parameters are defined for both 
a client's offer and a server's response.

=====================

> - Joakim
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi