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

Gabriel Montenegro <Gabriel.Montenegro@microsoft.com> Fri, 20 May 2011 01:03 UTC

Return-Path: <Gabriel.Montenegro@microsoft.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 4EA13E074A for <hybi@ietfa.amsl.com>; Thu, 19 May 2011 18:03:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.599
X-Spam-Level:
X-Spam-Status: No, score=-10.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, 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 Gh6SO0QiA4zX for <hybi@ietfa.amsl.com>; Thu, 19 May 2011 18:03:23 -0700 (PDT)
Received: from smtp.microsoft.com (smtp.microsoft.com [131.107.115.214]) by ietfa.amsl.com (Postfix) with ESMTP id 0EB43E0658 for <hybi@ietf.org>; Thu, 19 May 2011 18:03:23 -0700 (PDT)
Received: from TK5EX14HUBC101.redmond.corp.microsoft.com (157.54.7.153) by TK5-EXGWY-E803.partners.extranet.microsoft.com (10.251.56.169) with Microsoft SMTP Server (TLS) id 8.2.176.0; Thu, 19 May 2011 18:03:23 -0700
Received: from TK5EX14MLTW651.wingroup.windeploy.ntdev.microsoft.com (157.54.71.39) by TK5EX14HUBC101.redmond.corp.microsoft.com (157.54.7.153) with Microsoft SMTP Server (TLS) id 14.1.289.8; Thu, 19 May 2011 18:03:22 -0700
Received: from TK5EX14MBXW603.wingroup.windeploy.ntdev.microsoft.com ([169.254.3.209]) by TK5EX14MLTW651.wingroup.windeploy.ntdev.microsoft.com ([157.54.71.39]) with mapi id 14.01.0289.008; Thu, 19 May 2011 18:03:22 -0700
From: Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
To: Alan Coopersmith <alan.coopersmith@oracle.com>, Brodie Thiesfield <brodie@jellycan.com>
Thread-Topic: [hybi] method of allocation of reserved bits to extensions
Thread-Index: AQHMBUGA1u9834hjukKLiEqBfS9wQZRy7rGAgAAGGoCAAAmtgIAABKqAgAAHugCAAAPlAIABEbwAgABxQgCAAB0/gIAgWNRg
Date: Fri, 20 May 2011 01:03:22 +0000
Message-ID: <CA566BAEAD6B3F4E8B5C5C4F61710C11402DB23F@TK5EX14MBXW603.wingroup.windeploy.ntdev.microsoft.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>
In-Reply-To: <4DBA3809.4010004@oracle.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [157.54.51.90]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: Hybi <hybi@ietf.org>, "jg@freedesktop.org" <jg@freedesktop.org>, Greg Wilkins <gregw@intalio.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: Fri, 20 May 2011 01:03:24 -0000

[as individual]

We have very few reserved bits. These are not meant for use by just any extension, similarly, the bits in the TCP or IP headers are not "up for grabs", but are doled out very carefully.
 
Dynamic, on-the-fly assignment of reserved bits was proposed by Greg and Brodie here:
http://www.ietf.org/mail-archive/web/hybi/current/msg07345.html 
 
If we were to allow such a thing, then no particular extension would be guaranteed to run successfully, as it would depend on a resource (a reserved bit) that it is not guaranteed to have until the handshake is over. This would be too unpredictable. Extensions are free to define bits or control frames within their defined payload (as already noted in the draft).
 
Reserved bits should only be allocated for very compelling reasons, either because there is an extension that has full backing of the WG or because there is a new version of the protocol that needs it. I think we should word our IANA considerations on bit assignment with a very strict assignment policy of "Standards Action":
http://tools.ietf.org/html/rfc5226#section-4.1 
 
Does this seem reasonable?

Gabriel

> -----Original Message-----
> From: hybi-bounces@ietf.org [mailto:hybi-bounces@ietf.org] On Behalf Of Alan
> Coopersmith
> Sent: Thursday, April 28, 2011 21:01
> To: Brodie Thiesfield
> Cc: Hybi; jg@freedesktop.org; Greg Wilkins
> Subject: Re: [hybi] method of allocation of reserved bits to extensions
> 
> On 04/28/11 07:16 PM, Brodie Thiesfield wrote:
> > Hi Timothy,
> >
> > On Fri, Apr 29, 2011 at 4:31 AM, Timothy Meade <zt.tmzt@gmail.com> wrote:
> >> On Apr 27, 2011 11:12 PM, "Greg Wilkins" <gregw@intalio.com> wrote:
> >>>
> >>> this is good. But I think we also need to say the same for op-codes.
> >>>
> >>> I think each extension needs to say how many bits, data op-codes and
> >>> control op-codes it needs and then these should all be allocated in
> >>> order.
> >>>
> >>
> >> It might be instructive to look at X Protocol opcodes for core and
> >> extensions and how that played out over time.
> >
> > I found the following description of the opcodes:
> > http://www.x.org/wiki/Development/Documentation/Protocol/OpCodes
> >
> > From the summary of the scheme above:
> > * each extension is assigned a single major identifying opcode
> > * the extension then defines sub-codes for itself if necessary
> >
> > So this is pretty much the same as we are looking at in websockets but
> > we have a lot less opcode space to allocate.
> >
> > Can you supply a pointer to a summary of the problems that occurred
> > with the X scheme? I'm assuming that it didn't turn out all rosy.
> 
> I don't know why you'd assume that, since the X extension mechanism is the key
> that's kept the X protocol alive for 25 years as graphics technology changed
> rapidly.
> 
> The primary problem I'm aware of is that while each extension got one of the
> 128 available requests, and bundled all it's actions into subcodes of that request,
> they didn't do similar "namespacing" for event & error codes.
> 
> We've not yet had a situation where we needed more than 128 extensions
> simulataneously active, but have hit the limits of 64 extension events and errors,
> as some extensions used quite a few.
> 
> It does occasionally make user bug reports challenging as the dynamic
> assignment of extension codes based on which ones are enabled during the build
> and runtime of the X server means that getting an error report of a failed
> request 153 doesn't let you know which extension it was.
> (This is why the standard libX11 error handler always prints the extension names,
> but some applications and toolkits use custom error handlers that do not.)
> 
> --
> 	-Alan Coopersmith-        alan.coopersmith@oracle.com
> 	 Oracle Solaris Platform Engineering: X Window System
> 
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi