Re: [6lowapp] Fwd: New Version Notificationfordraft-shelby-core-coap-req-00

"Charles Palmer" <charles.palmer@onzo.com> Thu, 25 February 2010 23:32 UTC

Return-Path: <charles.palmer@onzo.com>
X-Original-To: 6lowapp@core3.amsl.com
Delivered-To: 6lowapp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BE65828C492 for <6lowapp@core3.amsl.com>; Thu, 25 Feb 2010 15:32:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tIduUXcpg8tL for <6lowapp@core3.amsl.com>; Thu, 25 Feb 2010 15:32:06 -0800 (PST)
Received: from service38.mimecast.com (service38.mimecast.com [212.2.3.166]) by core3.amsl.com (Postfix) with SMTP id EAAA528C1FD for <6lowapp@ietf.org>; Thu, 25 Feb 2010 15:32:02 -0800 (PST)
Received: from onzosbs2k3.ONZO.local (217.138.5.2 [217.138.5.2]) by service38.mimecast.com; Thu, 25 Feb 2010 23:34:13 +0000
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Thu, 25 Feb 2010 23:34:05 -0000
Message-ID: <E4DBD8AB11D2E54F89B23D7CD1065D8CD514EC@onzosbs2k3.ONZO.local>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [6lowapp] Fwd: New Version Notificationfordraft-shelby-core-coap-req-00
Thread-Index: Acq2cwTbs+BWKC4+QPKnjy7IJX7HUA==
References: <20100218152028.9453E28C0E8@core3.amsl.com><A73F7E0A-956F-428E-B69B-2C281ED2A154@sensinode.com> <4B854118.2060904@in.tum.de>
From: Charles Palmer <charles.palmer@onzo.com>
To: Andreas Scholz <scholza@in.tum.de>, 6lowapp@ietf.org
X-MC-Unique: 110022523341300202
Content-Type: text/plain; charset="WINDOWS-1252"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [6lowapp] Fwd: New Version Notificationfordraft-shelby-core-coap-req-00
X-BeenThere: 6lowapp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Application protocols for constrained nodes and networks <6lowapp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/6lowapp>, <mailto:6lowapp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/6lowapp>
List-Post: <mailto:6lowapp@ietf.org>
List-Help: <mailto:6lowapp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lowapp>, <mailto:6lowapp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Feb 2010 23:32:07 -0000

Dear 6lowapp team

Andreas suggests that knowledge shared by both parties can allow much
reduced message sizes: "I think a header format that allows omitting
information that is known a priori (e.g. from a subscription) is a
promising approach for reducing message overheads."

Has anyone looked at the approach adopted by the IEEE 11073 standards
for exchange of messages between Personal Health Devices and their
"Managers"? This transport-agnostic set of standards is designed to
connect a wide variety of wireless personal health devices and assisted
living devices - so far using Bluetooth and ZigBee but (who knows) maybe
6lowpan in the future. When I have time I will finish this Wikipedia
introduction article:
http://en.wikipedia.org/wiki/User:Acutetech/ISO/IEEE_11073_Personal_Heal
th_Data_%28PHD%29_Devices

IMHO the IEEE 11073 standards for Personal Health Devices could easily
be generalised to support any class of M2M device.

The IEEE 11073-20601 standard uses several techniques to reduce message
size, and to simplify "discovery" - these might be worth considering for
6lowapp. (The terminology is different but the problems are the same).
Two techniques are:

1	A personal health device ("Agent" in IEEE11073 parlance) may
either implement one or more standard configurations, or may implement
an extended (custom) configuration. When an Agent first associates with
a PC, smart phone etc ("Manager" in IEEE 11073 parlance) it states its
configuration code. Usually the Manager will already have knowledge of
the object model of Agents with this configuration code - either because
it was given this knowledge at birth, or because it has previously
associated with this Agent and has already learnt its object model. If
the Manager does not have knowledge of this configuration it asks the
Agent to describe its characteristics (by listing its objects).

The use of standard configurations, and the exchange of object models
when an Agent with a new configuration appears for the first time,
significantly reduces the exchange of data required when an Agent
associates with a Manager.

2	During this configuration phase the Agent and Manager also agree
one or more "attribute-value-maps". These pre-define the format of
subsequent data exchanges. The standard says this:

"The fixed format event report is optimized by defining the message
format in the Attribute-Value-Map of the object in a previous
configuration message before transfer commences. When an agent transmits
data in a fixed format event report, it shall report the object handle
and the attribute values in the same order and size as specified in the
Attribute-Value-Map. In this way, the overhead of sending attribute
identification and length in each event report is avoided. On receipt of
a fixed format event report, the manager uses the object handle to
retrieve the Attribute-Value-Map previously given at configuration time
to know how to extract the data."

Also - I don't know if it is too late to suggest that 6lowapp
reconsiders the merits of ASN.1 rather than EXI. IEEE 11073 has adopted
ASN.1 to encode messages for transmission. This allows for very simple
"canned" messages from constrained devices, in which the variable data
is inserted at defined offsets into fixed-format ASN.1 binary message
strings. ASN.1 is also used by DLMS - one of the smart meter standards.
A challenge: write practical implementations of EXI and ASN.1 encoding
and decoding routines in C, then compare the size and complexity of the
code, and of the message strings. 

Regards - Charles Palmer 
Onzo Limited (Project Hydra Project Manager) 
Woodthorpe, Calver Road, Baslow, Derbyshire, DE45 1RR, United Kingdom 
Ph: +44 (0)1246 582 220, Mob: +44 (0)7977 577 627 
Email: charles.palmer@onzo.com Skype: Acutetech

--------------------------------
Onzo is a limited company number 06097997 registered in England & Wales. The    
registered office is 6 Great Newport Street, London, WC2H 7JB, United Kingdom.

This email message may contain confidential and/or privileged information, and
is intended solely for the addressee(s). If you have received this email in     
error, please notify Onzo immediately. Unauthorised copying, disclosure or 
distribution of the material in this email is forbidden.
--------------------------------