[lmap] [review]: draft-ietf-lmap-restconf-00

"Bajpai, Vaibhav" <v.bajpai@jacobs-university.de> Mon, 06 July 2015 09:26 UTC

Return-Path: <v.bajpai@jacobs-university.de>
X-Original-To: lmap@ietfa.amsl.com
Delivered-To: lmap@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 15E761A9237 for <lmap@ietfa.amsl.com>; Mon, 6 Jul 2015 02:26:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.86
X-Spam-Level:
X-Spam-Status: No, score=-3.86 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qqiBiJ_33T55 for <lmap@ietfa.amsl.com>; Mon, 6 Jul 2015 02:26:33 -0700 (PDT)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B90CB1A9240 for <lmap@ietf.org>; Mon, 6 Jul 2015 02:26:32 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 92C928EC for <lmap@ietf.org>; Mon, 6 Jul 2015 11:26:21 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id HZ40MyLHj_xQ for <lmap@ietf.org>; Mon, 6 Jul 2015 11:26:20 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS for <lmap@ietf.org>; Mon, 6 Jul 2015 11:26:20 +0200 (CEST)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id D62DC2002C for <lmap@ietf.org>; Mon, 6 Jul 2015 11:26:20 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id jzgqv79S5h4G for <lmap@ietf.org>; Mon, 6 Jul 2015 11:26:16 +0200 (CEST)
Received: from exchange.jacobs-university.de (shubcas03.jacobs.jacobs-university.de [10.70.0.153]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "exchange.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by hermes.jacobs-university.de (Postfix) with ESMTPS id A9F2420013 for <lmap@ietf.org>; Mon, 6 Jul 2015 11:26:19 +0200 (CEST)
Received: from SXCHMB01.jacobs.jacobs-university.de ([fe80::c1f:c30f:99ac:df0c]) by SHUBCAS05.jacobs.jacobs-university.de ([::1]) with mapi id 14.03.0235.001; Mon, 6 Jul 2015 11:26:19 +0200
From: "Bajpai, Vaibhav" <v.bajpai@jacobs-university.de>
To: "<lmap@ietf.org>" <lmap@ietf.org>
Thread-Topic: [review]: draft-ietf-lmap-restconf-00
Thread-Index: AQHQt83Q7NE+WQc/pkm/Z0ymeHchkQ==
Date: Mon, 06 Jul 2015 09:26:18 +0000
Message-ID: <F2EFA206-4816-4986-AD1B-E89930D4E7C3@jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [10.50.203.30]
Content-Type: multipart/signed; boundary="Apple-Mail=_03C1DB1C-6B38-421B-B1F8-63A9CE91C941"; protocol="application/pgp-signature"; micalg="pgp-sha512"
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/lmap/w8qtJq1yDiaDz8vy5SyzqL--U2g>
Cc: "Bajpai, Vaibhav" <v.bajpai@jacobs-university.de>
Subject: [lmap] [review]: draft-ietf-lmap-restconf-00
X-BeenThere: lmap@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Large Scale Measurement of Access network Performance <lmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lmap>, <mailto:lmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lmap/>
List-Post: <mailto:lmap@ietf.org>
List-Help: <mailto:lmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lmap>, <mailto:lmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Jul 2015 09:26:35 -0000

Hello,

>     Title           : Using RESTCONF with LMAP Measurement Agents
>     Authors         : Juergen Schoenwaelder
>                       Vaibhav Bajpai
>     Filename        : draft-ietf-lmap-RESTCONF-00.txt
>     Pages           : 10
>     Date            : 2015-07-03

I made some notes. Thought to share it along:

a) The LMAP framework document reference is outdated:

The draft currently cites -12 (while the latest version is -14). Although
the framework may become an RFC by the next revision.

b) Appendix A: Response to Protocol Comparison Criteria:

Perhaps we promote the example exchanges (Appendix B and Appendix C) ahead of
the response to protocol selection critera? -- or maybe we can just remove it
given the document is a WG document now. The response is documented already in
the non-WG version of this document. Currently it digresses the reader into a
tangent.

c) Examples: (Appendix B and C):

Perhaps we reiterate that in the example exchanges; the MA is the RESTCONF
server and the LMAP controller/collectors are the RESTCONF clients. Although
it's clear that a client would be sending GET/POST requests; but maybe adding
this line avoids any confusion, given that there is also a call-home mechanism
that switches roles in the very beginning where the MA works as a TCP client.

d) Appendix C

>     The first step taken by the collector is to lookup the event stream resource.
> 
>     C: GET /restconf/data/ietf-restconf-monitoring:restconf-state/
>     C:     /streams/stream=NETCONF/encoding=json/events HTTP/1.1
>     C: Host: example.com
>     C: Accept: application/yang.data+xml

Perhaps we should add (as previously indicated in Appendix B) that prefix C:
indicates the LMAP collector.

>     C: GET /streams/NETCONF-json HTTP/1.1
>     C: Host: example.com
>     C: Accept: text/event-stream
>     C: Cache-Control: no-cache
>     C: Connection: keep-alive
> 
>     M: data: {
>     M: data:    "ietf-restconf:notification": {
>     M: data:      "event-time": "2015-03-25T00:01:00+00:00",
>     M: data:      "ietf-lmap:report": {
>     M: data:         "date": "2015-03-25T00:01:00+00:00",
>     M: data:         "agent-id": "xxx",
>     M: data:         "header": {
>     M: data:           "column": "target",
>     M: data:           "column": "rtt"
>     M: data:         }
>     M: data:         "row": {
>     M: data:           "start": "2015-03-25T00:00:55+00:00",
>     M: data:           "value": "192.0.2.1",
>     M: data:           "value": 42
>     M: data:         }
>     M: data:         "row": {
>     M: data:           "start": "2015-03-25T00:00:56+00:00",
>     M: data:           "value": "192.0.2.2",
>     M: data:           "value": 24
>     M: data:         }
>     M: data:      }
>     M: data:    }
>     M: data: }

Perhaps we add a line to indicate that this response is asynchronous and not
an immediate reaction to the LMAP controller's GET request?

e) Typos/Edits

>     levels of granularity using DELETE, PATCH, POST, and PUT methods.

- using HTTP DELETE, ... methods

>     One way of mapping the information model parts relevant for reports
>     into a YANG data model is the usage of YANG notifications.

- isn't it RESTCONF notifications? -- or YANG-defined notifications?

>     Note that alternative designs are possible.

- alternative designs are also possible.

>     One option is to make the collector a RESTCONF server and to have the MA
>     push results to the collector by posting to resources on the controller.

- by posting to resources on the ‘collector’? (instead of controller)

>     Below is an XML representation of instance data conforming to the
>     YANG data model is shown below.

An XML representation of instance data conforming to the YANG data model is
shown below.

>     Note that some of the strings are references to other portions of the
>     instance data not show here.  This is again taken from [I-D.ietf-lmap-yang].

Note that some of the strings which are references to other portions of the
instance data are not shown here.

f) Generally, do you think we should prepend LMAP every time we use the controller
and collector, or should it be obvious given that this is an LMAP document?

Best, Vaibhav

=====================================================
Vaibhav Bajpai

Research I, Room 91
Computer Networks and Distributed Systems (CNDS) Lab
School of Engineering and Sciences
Jacobs University Bremen, Germany

www.vaibhavbajpai.com
=====================================================