Re: [core] Reponse to comments on CoMI

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 28 October 2013 16:51 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 8BBBB21E80B5 for <core@ietfa.amsl.com>; Mon, 28 Oct 2013 09:51:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.222
X-Spam-Level:
X-Spam-Status: No, score=-103.222 tagged_above=-999 required=5 tests=[AWL=0.027, BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
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 GHWYDr-+E4t1 for <core@ietfa.amsl.com>; Mon, 28 Oct 2013 09:51:45 -0700 (PDT)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) by ietfa.amsl.com (Postfix) with ESMTP id 64F9B21E8056 for <core@ietf.org>; Mon, 28 Oct 2013 09:51:10 -0700 (PDT)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 938AD2008A; Mon, 28 Oct 2013 17:51:09 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id OpNlkhgOBe5c; Mon, 28 Oct 2013 17:51:09 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 23D262007F; Mon, 28 Oct 2013 17:51:09 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 84D0E2913174; Mon, 28 Oct 2013 17:51:03 +0100 (CET)
Date: Mon, 28 Oct 2013 17:51:02 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Bert Greevenbosch <Bert.Greevenbosch@huawei.com>
Message-ID: <20131028165102.GA48502@elstar.local>
Mail-Followup-To: Bert Greevenbosch <Bert.Greevenbosch@huawei.com>, "consultancy@vanderstok.org" <consultancy@vanderstok.org>, "core@ietf.org WG" <core@ietf.org>
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> <46A1DF3F04371240B504290A071B4DB63D952C37@szxeml558-mbx.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <46A1DF3F04371240B504290A071B4DB63D952C37@szxeml558-mbx.china.huawei.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: Re: [core] Reponse to comments on CoMI
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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 16:51:49 -0000

On Mon, Oct 28, 2013 at 12:17:23AM +0000, Bert Greevenbosch wrote:
> 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.

I likely do not understand. An example might help me, in particular
when it comes to non default SNMP contexts.
 
> > - 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.

You need to have clear rules. Right now, you use string notation for
some OCTET STRINGS (e.g. udpEndpointLocalAddress) while the table says
Base64 encoded string.

> > - 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.

There is no 'tandem coding' (or more precisely I do not know what this
phrase means).

> > - 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?.

Section 3.2.2 _might_ cover this.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>