Re: [lmap] Need your help to understand how YANG data model is carried over wire (was Large Scale Measurement of Access network Performance <lmap.ietf.org>

Linda Dunbar <linda.dunbar@huawei.com> Mon, 09 May 2016 23:11 UTC

Return-Path: <linda.dunbar@huawei.com>
X-Original-To: lmap@ietfa.amsl.com
Delivered-To: lmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CD26212D185 for <lmap@ietfa.amsl.com>; Mon, 9 May 2016 16:11:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.217
X-Spam-Level:
X-Spam-Status: No, score=-5.217 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.996, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 c37pcY1Bddj3 for <lmap@ietfa.amsl.com>; Mon, 9 May 2016 16:11:20 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9ABFE12D152 for <lmap@ietf.org>; Mon, 9 May 2016 16:11:14 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml704-cah.china.huawei.com) ([172.18.7.190]) by lhrrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CJO03727; Mon, 09 May 2016 23:11:12 +0000 (GMT)
Received: from DFWEML703-CAH.china.huawei.com (10.193.5.177) by lhreml704-cah.china.huawei.com (10.201.5.130) with Microsoft SMTP Server (TLS) id 14.3.235.1; Tue, 10 May 2016 00:11:11 +0100
Received: from DFWEML501-MBB.china.huawei.com ([10.193.5.179]) by DFWEML703-CAH.china.huawei.com ([10.193.5.177]) with mapi id 14.03.0235.001; Mon, 9 May 2016 16:11:05 -0700
From: Linda Dunbar <linda.dunbar@huawei.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Thread-Topic: Need your help to understand how YANG data model is carried over wire (was Large Scale Measurement of Access network Performance <lmap.ietf.org>
Thread-Index: AQHRp+pyIEebrQVaRE67gjRaFnRnrp+tgHiAgAO9ZSA=
Date: Mon, 09 May 2016 23:11:05 +0000
Message-ID: <4A95BA014132FF49AE685FAB4B9F17F657E82C75@dfweml501-mbb>
References: <4A95BA014132FF49AE685FAB4B9F17F657E821EE@dfweml501-mbb> <20160507065545.GA44352@elstar.local>
In-Reply-To: <20160507065545.GA44352@elstar.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.192.11.128]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.57311910.0255, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: 5b8d70a47e5330cb25c54310eecf7e47
Archived-At: <http://mailarchive.ietf.org/arch/msg/lmap/gKTxQSNFJFXV9dnF7z6bjSh1IrQ>
Cc: "lmap@ietf.org" <lmap@ietf.org>
Subject: Re: [lmap] Need your help to understand how YANG data model is carried over wire (was Large Scale Measurement of Access network Performance <lmap.ietf.org>
X-BeenThere: lmap@ietf.org
X-Mailman-Version: 2.1.17
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, 09 May 2016 23:11:32 -0000

Juergen, 

My question was "where the actual "icmp-latency-measurement" is actually defined. Your answer is "look at the Draft-ietf-lmap-yang-04", which doesn't really help me very much. 

Draft-ietf-lmap-yang-04  has the following. Does it mean that the actual "icmp-latency-measurement" is defined by the URI? who provides the actual URI? What if the URI doesn't have any "measurement"?  

<task>
   <name>icmp-latency-measurement</name>
   <metric>
   <uri>urn:....</uri>
   </metric>
</task>



"draft-ietf-lmap-restconf-02" only has the following, as if treating "icmp-latency-measurement" as a known action (But there could be different ways to measure ICMP latency". 

<action>
  <name>icmp-latency-hourly</name>
  <task>icmp-latency-measurement</task>
  <destination>daily</destination>
</action>


Thanks, Linda

-----Original Message-----
From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] 
Sent: Saturday, May 07, 2016 1:56 AM
To: Linda Dunbar
Cc: lmap@ietf.org
Subject: Re: Need your help to understand how YANG data model is carried over wire (was Large Scale Measurement of Access network Performance <lmap.ietf.org>

Linda,

please take a look at draft-ietf-lmap-yang-04.txt and draft-ietf-lmap-restconf-02.txt.

/js

On Fri, May 06, 2016 at 10:55:55PM +0000, Linda Dunbar wrote:
> Juergen,
> 
> This email post is supposed to show how a YANG data model is carried 
> over wire:  
> https://www.ietf.org/mail-archive/web/lmap/current/msg02038.html
> 
> Hope you can help me to resolve those mysteries:
> 
> 
> -         The Controller use a "POST /restconf/data/ietf-lmap:lmap/schedules HTTP/1.1" to send a "schedule". But where is the actual "icmp-latency-measurement" is actually defined? Where is "report-daily" is defined? They are all in the form of "strings". So supposedly, any string can be encoded there, then what content is carried from "Controller" to the "Measurement Agent"?
> 
> -        What purpose do the following two lines achieve?
> 
>   C: Host: example.com
> 
>   C: Content-Type: application/yang.data+json
> 
> What would happen if those two lines are not there?
> 
> 
> -        What does the following line achieve?
> 
>   C:       "timing": "hourly"
> 
> 
> Thank you very much.
> 
> Linda Dunbar

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