Re: [apps-discuss] Fwd: New Version Notification for draft-shelby-exi-registration-01.txt

Zach Shelby <zach@sensinode.com> Wed, 11 April 2012 19:26 UTC

Return-Path: <zach@sensinode.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1552E11E80BB for <apps-discuss@ietfa.amsl.com>; Wed, 11 Apr 2012 12:26:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.399
X-Spam-Level:
X-Spam-Status: No, score=-2.399 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_33=0.6, J_CHICKENPOX_53=0.6, RCVD_IN_DNSWL_LOW=-1]
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 v7AaAVYCLEZt for <apps-discuss@ietfa.amsl.com>; Wed, 11 Apr 2012 12:26:18 -0700 (PDT)
Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by ietfa.amsl.com (Postfix) with ESMTP id EA6D911E80B3 for <apps-discuss@ietf.org>; Wed, 11 Apr 2012 12:26:17 -0700 (PDT)
Received: from [192.168.1.102] (87-93-36-61.bb.dnainternet.fi [87.93.36.61]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q3BJQBsk006518; Wed, 11 Apr 2012 22:26:13 +0300
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Zach Shelby <zach@sensinode.com>
In-Reply-To: <01OE6QSJQ2EW00ZUIL@mauve.mrochek.com>
Date: Wed, 11 Apr 2012 22:26:11 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <937A7D71-423A-4678-83A3-5704B125B744@sensinode.com>
References: <20120329204732.13711.266.idtracker@ietfa.amsl.com> <5580A282-E191-4962-9410-6CF9FB14EDFC@sensinode.com> <20120402124522.GX16698@jay.w3.org> <8B84EAAD-CD22-4461-9BC6-AB78974A94A2@sensinode.com> <20120411075024.GN18899@jay.w3.org> <4F85410D.20802@toshiba.co.jp> <20120411085920.GP18899@jay.w3.org> <FBCADBF9-D6FB-4E0D-9668-F5B3EF744037@tzi.org> <f5bobqye1vj.fsf@calexico.inf.ed.ac.uk> <4F85A3A2.9000505@gmx.de> <01OE6QSJQ2EW00ZUIL@mauve.mrochek.com>
To: Ned Freed <ned.freed@mrochek.com>
X-Mailer: Apple Mail (2.1084)
Cc: Julian Reschke <julian.reschke@gmx.de>, apps-discuss@ietf.org
Subject: Re: [apps-discuss] Fwd: New Version Notification for draft-shelby-exi-registration-01.txt
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Apr 2012 19:26:19 -0000

Ned,

On Apr 11, 2012, at 6:57 PM, Ned Freed wrote:

>> If decoding requires additional information, than IMHO you can't use
>> HTTP's Content-Coding or Transfer-Encoding. By all means, if you think
>> otherwise then send feedback to the HTTPbis WG.
> 
> Julian is 100% correct here. If EXI requires knowledge of the type itself, it's
> not a separable encoding, which is what Content-Coding, Transfer-Encoding, and
> Content-Transfer-Encoding all require. And while I suppose we could adopt the
> foo+exi approach, having an explosion of encodings is a really bad idea.
> 
> And if this is the case, it really isn't suitable for a +exi suffix either.
> +exi is supposed to mean the format can at least be parsed,  independent of any
> knowledge of the type semantics. This is why I support the idea of having +ber
> and +der but not +per - with +per you have to know the ASN.1 schema in order to
> parse the material properly.
> 
> For better or worse, we don't currently have a place in the architecture for
> these entities. We could define some other sort of type naming convention if
> there's really a need for it, but adding additional out of band information
> that has to be processed in order to interpret the material correctly is rather
> obviously highly problematic.

I agree with your analysis in general. Luckily the situation with EXI schema-informed mode is not as bad as with PER. We actually do have a schemaID field in the EXI header where some indication about the OOB schema information can be included. The standard itself however doesn't specify how to use that field. It is really a documentation problem we're trying to solve, where the application/foo+exi registration includes the definition of how to interpret the schemaID field of the EXI header. 

Let me use SenML as a practical example. Here draft-jennings-senml-08 defines a schema for use with the EXI serialization (version 1 of the markup). In the application/senml+exi IANA registration, I would indicate that in the absence of the schemaID field the schema is by default version 1 of SenML. For future versions, the integer of the SenML version is to be included in the schemaID field. This way a single senml+exi registration can handle this, and all future versions of the SenML markup.  

Zach 

-- 
Zach Shelby, Chief Nerd, Sensinode Ltd.
http://www.sensinode.com
http://zachshelby.org  - My blog "On the Internet of Things"
http://6lowpan.net - My book "6LoWPAN: The Wireless Embedded Internet"
Mobile: +358 40 7796297