Re: [apps-discuss] +exi

Zach Shelby <zach@sensinode.com> Sat, 17 December 2011 19:34 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 00B8621F8AFE for <apps-discuss@ietfa.amsl.com>; Sat, 17 Dec 2011 11:34:30 -0800 (PST)
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_34=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 1DSZX76wN3fi for <apps-discuss@ietfa.amsl.com>; Sat, 17 Dec 2011 11:34:29 -0800 (PST)
Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by ietfa.amsl.com (Postfix) with ESMTP id F3BAA21F8726 for <apps-discuss@ietf.org>; Sat, 17 Dec 2011 11:34:28 -0800 (PST)
Received: from 178-55-209-86.bb.dnainternet.fi (178-55-209-86.bb.dnainternet.fi [178.55.209.86]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id pBHJYESh021737 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 17 Dec 2011 21:34:21 +0200
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Zach Shelby <zach@sensinode.com>
In-Reply-To: <20111217104103.GP5525@jay.w3.org>
Date: Sat, 17 Dec 2011 21:34:20 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <3AC08E67-21D3-471D-8CE8-45B9FAB8A74F@sensinode.com>
References: <4EC31F1E.6070304@stpeter.im> <8p86c7d6chvadsku6k5dhct20qkl7uk73l@hive.bjoern.hoehrmann.de> <4EC326FE.1010809@stpeter.im> <lu96c7hsl37325nn3184ub4vr88qjgja50@hive.bjoern.hoehrmann.de> <EDB50792-348B-4693-9FDF-04BA091F8BE9@sensinode.com> <4EE78F2F.2070601@stpeter.im> <20111213215816.GI5525@jay.w3.org> <5EFF390A-3D29-4F15-95BE-C81EFCF6D3D5@mnot.net> <20111214092327.GK5525@jay.w3.org> <7472087B-86F9-4683-BA74-F70EC98D483C@sensinode.com> <20111217104103.GP5525@jay.w3.org>
To: Carine Bournez <carine@w3.org>
X-Mailer: Apple Mail (2.1084)
Cc: paduffy@cisco.com, Mark Nottingham <mnot@mnot.net>, Thomas Herbst <therbst@silverspringnet.com>, "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] +exi
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: Sat, 17 Dec 2011 19:34:30 -0000

On Dec 17, 2011, at 12:41 PM, Carine Bournez wrote:

> It seems that you could use application/foo and the content-encoding: exi
> instead of registering a different media type. Is your application using a
> protocol that has no content-encoding?

This is one aspect, these applications are often aimed at CoAP, where content-encodings are more difficult. 

> or do you mean that you use a 
> different schema for the exchange of a foo serialized in EXI than a 
> text foo?

Yes, this is entirely possible for some applications as strict schema informed mode has some more limitations when it comes to schemas. And since in these cases we work directly with EXI, you can't make the assumption that there is even an XML text mode foo. There may only be for example foo+json and foo+exi. 

> A quick look at http://tools.ietf.org/html/draft-jennings-senml-07 
> makes me think it is the latter, for SenML. It does not seem a very nice
> way to convey the schema information, SchemaId is meant to serve this 
> purpose, not the media type. Since you need to carry other EXI options,
> out-of-band or in the EXI header, why not using SchemaId?.

I don't find the SchemaId all that useful. First of all, you need to invoke your EXI parser to even get at that. It is more useful to immediately look at the content-type to decide which parser to throw a representation at. A strictly defined foo+exi registration would tell you that nicely. 

Anyways, I think it is worthwhile to write a short draft on what the registration requirements for +exi would be as Peter suggests. I am happy to help with that.

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