Re: [hybi] Handling multiple compression method entries of the same extension

Peter Thorson <webmaster@zaphoyd.com> Fri, 11 May 2012 21:40 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 2CA3021F8666 for <hybi@ietfa.amsl.com>; Fri, 11 May 2012 14:40:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.203
X-Spam-Level:
X-Spam-Status: No, score=-1.203 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_QP_LONG_LINE=1.396]
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 knZT0wnZ0aIj for <hybi@ietfa.amsl.com>; Fri, 11 May 2012 14:40:50 -0700 (PDT)
Received: from sh78.surpasshosting.com (sh78.surpasshosting.com [72.29.64.142]) by ietfa.amsl.com (Postfix) with ESMTP id 8B0A221F865B for <hybi@ietf.org>; Fri, 11 May 2012 14:40:50 -0700 (PDT)
Received: from 49.sub-166-250-227.myvzw.com ([166.250.227.49]:5593 helo=[10.172.117.131]) by sh78.surpasshosting.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from <webmaster@zaphoyd.com>) id 1SSxZw-0000Hp-DY; Fri, 11 May 2012 17:40:49 -0400
References: <CAH9hSJaXiZyuqag2ZUmCwypazEP3bB+k7bD4reha6DBDxn5pwg@mail.gmail.com>
In-Reply-To: <CAH9hSJaXiZyuqag2ZUmCwypazEP3bB+k7bD4reha6DBDxn5pwg@mail.gmail.com>
Mime-Version: 1.0 (1.0)
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="us-ascii"
Message-Id: <C339D41B-E8BB-4476-82C1-62CA463E73A2@zaphoyd.com>
X-Mailer: iPad Mail (9B176)
From: Peter Thorson <webmaster@zaphoyd.com>
Date: Fri, 11 May 2012 16:40:45 -0500
To: Takeshi Yoshino <tyoshino@google.com>
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-Source:
X-Source-Args:
X-Source-Dir:
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Handling multiple compression method entries of the same extension
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, 11 May 2012 21:40:51 -0000

If this functionality is to be included I think 2-d is the best option.

I am mildly concerned about the increasing complexity of the perframe-compress extension handshake. Is this sort of negotiation common for compression in other protocols?

Peter Thorson

On May 11, 2012, at 0:55, Takeshi Yoshino <tyoshino@google.com> wrote:

> Hi,
> 
> I'm going to clarify whether multiple method descriptions with the same method name is allowed to be listed in the perframe-compress's method parameter or not.
> 
> The benefit of allowing multiple entries is that the client can offer the same extension with different parameter settings to try to use the best parameter both endpoints can agree.
> 
> There's also a problem with this. The client cannot identify which of the entries has been accepted by the remote endpoint.
> 
> Options we can take are:
> 
> ----
> 
> 1-a) disallow use of multiple entries
> 
> 2-a) tag requested methods
> Request:
> perframe-compress: method="deflate; id=0; foo=200, deflate; id=1; foo=100, deflate; id=2; foo=0"
> Response:
> perframe-compress: method="deflate; id=1; bar=3.14"
> 
> 2-b) put "rejected" that means the method placed at the corresponding position in the requested-method-list has been rejected.
> Request:
> perframe-compress: method="deflate; foo=200, deflate; foo=100, deflate; foo=0"
> Response:
> perframe-compress: method="rejected, deflate; bar=3.14, rejected"
> 
> 2-c) send back not a method description but the index of the description to accept and server-side parameter
> Request:
> perframe-compress: method="deflate; foo=200, deflate; foo=100, deflate; foo=0"
> Response:
> perframe-compress: accept=1; bar=3.14
> 
> 2-d) ack the requested parameters by echoing them back to make the accepted-method-desc self-contained (describing all negotiated parameters)
> Request:
> perframe-compress: method="deflate; foo=200, deflate; foo=100, deflate; foo=0"
> Response:
> perframe-compress: method="deflate; foo=100; bar=3.14"
> 
> ----
> 
> My preference is 2-d). I'll rename max_window_bits and no_context_takeover by prefixing them.
> 
> What do you think?
> 
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi