Re: [hybi] method of allocation of reserved bits to extensions

Greg Wilkins <gregw@intalio.com> Wed, 25 May 2011 06:00 UTC

Return-Path: <gregw@intalio.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 52CC113000D for <hybi@ietfa.amsl.com>; Tue, 24 May 2011 23:00:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.94
X-Spam-Level:
X-Spam-Status: No, score=-2.94 tagged_above=-999 required=5 tests=[AWL=0.037, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
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 YAU1N4TKq6Pn for <hybi@ietfa.amsl.com>; Tue, 24 May 2011 23:00:57 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id AABC913000B for <hybi@ietf.org>; Tue, 24 May 2011 23:00:57 -0700 (PDT)
Received: by vws12 with SMTP id 12so6690515vws.31 for <hybi@ietf.org>; Tue, 24 May 2011 23:00:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.73.2 with SMTP id h2mr1299850vdv.104.1306303256938; Tue, 24 May 2011 23:00:56 -0700 (PDT)
Received: by 10.52.187.71 with HTTP; Tue, 24 May 2011 23:00:56 -0700 (PDT)
In-Reply-To: <BANLkTimvfi-j6Of28Gw1uxXKFQFJQhJRag@mail.gmail.com>
References: <BANLkTi=vOQDtL5GobitKe8yiUoQFb2go_Q@mail.gmail.com> <BANLkTikaOXg0u+4d8Ly6OxUQ7PFUU=udgQ@mail.gmail.com> <BANLkTikiUkivJitZGU-+q6wBfJ3VW45F8g@mail.gmail.com> <BANLkTindmLQ0KE6K5qUX2ue+=hoLUaznLA@mail.gmail.com> <BANLkTim9w83iSY-TH1yuVAUXxypJk_tmrw@mail.gmail.com> <BANLkTimnMBwNgP_e29exT6dUkp60s2xU3g@mail.gmail.com> <BANLkTi==RTfqaYFT3CQs1pM5Tb501rk2Vg@mail.gmail.com> <BANLkTinqQiMQ4N1vWjyCe682BmdisW-=KA@mail.gmail.com> <BANLkTik1a6CEA8LiiLgsnBt9qHCaybmWfg@mail.gmail.com> <4DBA3809.4010004@oracle.com> <CA566BAEAD6B3F4E8B5C5C4F61710C11402DB23F@TK5EX14MBXW603.wingroup.windeploy.ntdev.microsoft.com> <BANLkTim8dkW3R2R1ukAqwkXOM0=uqfiPmA@mail.gmail.com> <4DD61D35.10404@warmcat.com> <BANLkTi=57EYWnuOv3n=crHsgC5t3x=PPkA@mail.gmail.com> <BANLkTi=hP1CPNE+3PSHUTWcBHW_WPxCBQw@mail.gmail.com> <BANLkTikwysTjCw62aZSi_3faHrQjYW=fuw@mail.gmail.com> <BANLkTiku1qznAK-yv4jUdfpuRVfuaBD7Hg@mail.gmail.com> <BANLkTim2y1_5GYgJo6xQY+0E7Bz96qF9vg@mail.gmail.com> <BANLkTintB9i-qRV=b3UGSQM+12u6cVJ1jA@mail.gmail.com> <BANLkTimvfi-j6Of28Gw1uxXKFQFJQhJRag@mail.gmail.com>
Date: Wed, 25 May 2011 16:00:56 +1000
Message-ID: <BANLkTi=8NqpMQa7UPQOfM_1h0rjL1VUUkQ@mail.gmail.com>
From: Greg Wilkins <gregw@intalio.com>
To: John Tamplin <jat@google.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: Hybi <hybi@ietf.org>, Alan Coopersmith <alan.coopersmith@oracle.com>, "jg@freedesktop.org" <jg@freedesktop.org>, Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>, Brodie Thiesfield <brodie@jellycan.com>
Subject: Re: [hybi] method of allocation of reserved bits to extensions
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: Wed, 25 May 2011 06:00:58 -0000

On 25 May 2011 15:14, John Tamplin <jat@google.com> wrote:
> On Wed, May 25, 2011 at 1:08 AM, Greg Wilkins <gregw@intalio.com> wrote:
>>
>> > Again, that isn't what Greg was suggesting.
>> > Also, if reserved opcodes can't be used (which Greg was also
>> > suggesting),
>> > then there is no room for any experimentation, which seems a recipe for
>> > poor
>> > progress getting useful extensions.
>>
>> Extensions can always have their own opcodes by putting them as a byte
>> in the payload (which is what you have previously advocated for
>> extension opcodes anyway).
>
> Not if you don't define some extension opcode.  Ie, if I can't use a
> reserved opcode, saying my frame is a binary frame and the first byte is
> really a new opcode doesn't work with fragmentation and multiplexing being
> done by intermediaries which think it is just a regular binary frame.


Why can't the extension just send frames with the normal binary frame
opcode which then contain the extension specific opcode in the
payload.

Intermediaries will see these as binary frames - which they are.
Intermediaries that don't know the extension are not allowed to mess
with the framing/fragmentation, so thats not a problem.
The receiving extension takes the real opcode out of the payload and
handles it as a control, text, binary, whatever frame as appropriate.

ie, I don't see what is wrong with using the normal binary opcode for
an extension that sends binary payload, or the normal text opcode for
an extension that sends a text payload (eg adding mime headers as
text).

cheers