[core] Reponse to comments on CoMI

Bert Greevenbosch <Bert.Greevenbosch@huawei.com> Mon, 28 October 2013 00:17 UTC

Return-Path: <Bert.Greevenbosch@huawei.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8F0C611E82E3 for <core@ietfa.amsl.com>; Sun, 27 Oct 2013 17:17:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 2eYOPvj2rq4U for <core@ietfa.amsl.com>; Sun, 27 Oct 2013 17:17:38 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) by ietfa.amsl.com (Postfix) with ESMTP id 9A08B11E82DF for <core@ietf.org>; Sun, 27 Oct 2013 17:17:37 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml204-edg.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id AZN80599; Mon, 28 Oct 2013 00:17:33 +0000 (GMT)
Received: from LHREML402-HUB.china.huawei.com (10.201.5.241) by lhreml204-edg.china.huawei.com (172.18.7.223) with Microsoft SMTP Server (TLS) id 14.3.158.1; Mon, 28 Oct 2013 00:17:19 +0000
Received: from SZXEML411-HUB.china.huawei.com (10.82.67.138) by lhreml402-hub.china.huawei.com (10.201.5.241) with Microsoft SMTP Server (TLS) id 14.3.158.1; Mon, 28 Oct 2013 00:17:32 +0000
Received: from szxeml558-mbx.china.huawei.com ([169.254.7.217]) by szxeml411-hub.china.huawei.com ([::1]) with mapi id 14.03.0146.000; Mon, 28 Oct 2013 08:17:24 +0800
From: Bert Greevenbosch <Bert.Greevenbosch@huawei.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Thread-Topic: Reponse to comments on CoMI
Thread-Index: AQHO03MTUqfbFpvRxESMcfhzsb1JrQ==
Date: Mon, 28 Oct 2013 00:17:23 +0000
Message-ID: <46A1DF3F04371240B504290A071B4DB63D952C37@szxeml558-mbx.china.huawei.com>
References: <E4DE949E6CE3E34993A2FF8AE79131F81C32EE@DEMUMBX005.nsn-intra.net> <525BC2E0.9060500@cisco.com> <20131014101332.GD21123@elstar.local> <525D4721.6020501@cisco.com> <E4DE949E6CE3E34993A2FF8AE79131F81C5D16@DEMUMBX005.nsn-intra.net> <0485D1EA-BEA1-4F54-9A88-74B209D57490@tzi.org> <CAK=bVC-hGAT_Hbae0Zq_U8ogBaRFT1y0VZQmRWANmvYEmLBiDQ@mail.gmail.com> <2d4d1eb8aa0649e53175098d5c2087ad@xs4all.nl> <20131017103905.GF31344@elstar.local>
In-Reply-To: <20131017103905.GF31344@elstar.local>
Accept-Language: en-GB, zh-CN, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.66.162.63]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: [core] Reponse to comments on CoMI
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/core>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Oct 2013 00:17:42 -0000

Hi Juergen,

Thanks a lot for your comments. They are very helpful.

Peter and I have discussed them, and please find our response inline.

Best regards,
Bert


On Thu, Oct 17, 2013 at 11:53:28AM +0200, peter van der Stok wrote:
> >
> > Bert Greevenbosch and I have submitted a new draft on access to MIBs
> > via a CoAP interface.
> > We discuss a number of payload formats to investigate the
> > consequences of the choice.
> > A later version should concentrate on 1 (at most 2) formats.
> >
> 
> A couple of quick comments:
> 
> - Take a look at RFC 4088. In particular, you need to deal with
>   contexts to comply to the SNMP framework and you need to deal with
>   descriptors not necessarily being unique.

That is why we can specify the OID in the link format, and allow direct specification in JSON and CBOR of OID instead of descriptors too. The link format fixes the association between descriptor and OID.

Also we return (possibly multiple) information when multiple descriptors correspond with the specified descriptor.

> - The JSON type mapping is a bit too simplistic (e.g. what you render
>   as a string and what you ship as base64 encoded value in case of
>   JSON should likely depend on the type definition and not be
>   hardwired).

I think we could use information from the SMI type definition, similar as in regular SNMP. However in CoMI we have not mandated availability of the SMI definition to the managing entity.

Originally, we had a "tuple" JSON definition in our draft, which allowed specifying SMI type as well, however, for simplicity, we removed it. Consequently, it is hard to distinguish objects from the type e.g. between a counter, TimeTicks and an integer without secondary information from e.g. the SMI definition or hint in the name of the variable.

Indeed omitting the Base64 encoding may make sense in some cases, e.g. when the OCTET-STRING contains human-readable text.

But what counts is that the value is correctly transmitted, the type puts restrictions on the variable values, but these values are already guaranteed at the end points where the MIB and its type is known.

> - It might make sense to look what you get by taking a MIB module and
>   applying RFC 6643 to it. This gives you an XML serialization fully
>   defined today. And when you apply the JSON serialization of YANG,
>   currently defined in <draft-lhotka-netmod-yang-json-02>, you also
>   get a JSON serialization. The 6LoWPAN and RPL MIB modules have
>   examples of such serializations included I think.

We have thought about this aspect, but naively it seems complex to do this tandem coding
   
MIB -  YANG/XML -  JSON.

On the other hand, the examples in

   http://tools.ietf.org/id/draft-schoenw-6lowpan-mib-03.txt
   http://tools.ietf.org/id/draft-sehgal-roll-rpl-mib-06.txt

look quite nice, and are not that distant from our own solution. We will put some more time in investigating this.

> - Since counters are having discontinuity indicatores (defaulting to
>   sysUpTime), you need to provide primitives that allow you to
>   retrieve data from different branches of the OID number space.

We do have some problems understanding this remark.

Do you mean:
1)	going through oid space as specified for bulk transport and as suggested in RFC 4088 with the suffixes to the oid specification?
2)	specifying multiple MIB variables as specified with snmp (oid, value) pair, which permits the inclusion of sysUpTime in every request. The latter we support in section 3.2.2
3)	or something else?.

> - The SNMP framework has security and access control built into it.
>   It will be necessary at some point in time to explain how CoAP
>   access to MIB data relates to this - or if this is at least
>   conceptually a complete independent side channel to access the data
>   without access control at all. If its not a side channel, you need
>   to discuss how a securityName etc is provided for SNMP's access
>   control model to function.

This depends on CoRE authentication and authorisation. I think it is a bit too early to resolve now, but it needs to be resolved some day (as part of CoMI v1) for sure.

> Well, the security part is likely not yet that important. ;-)
> 
> I do not want to sound in any way negative. I appreciate that someone
> is working on this. I am actually trying to provide help. ;-)
> 
> /js