Re: [ippm] Some though on draft-mirsky-ippm-twamp-light-yang-07

Wei Luo S <wei.s.luo@ericsson.com> Tue, 21 March 2017 10:52 UTC

Return-Path: <wei.s.luo@ericsson.com>
X-Original-To: ippm@ietfa.amsl.com
Delivered-To: ippm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 40BBB1296D8 for <ippm@ietfa.amsl.com>; Tue, 21 Mar 2017 03:52:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.209
X-Spam-Level:
X-Spam-Status: No, score=-4.209 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.onmicrosoft.com
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 A1RmvB1-TX5C for <ippm@ietfa.amsl.com>; Tue, 21 Mar 2017 03:52:46 -0700 (PDT)
Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7251D1293F3 for <ippm@ietf.org>; Tue, 21 Mar 2017 03:52:45 -0700 (PDT)
X-AuditID: c1b4fb30-7db199800000628e-c7-58d105fb9ddc
Received: from ESESSHC009.ericsson.se (Unknown_Domain [153.88.183.45]) by (Symantec Mail Security) with SMTP id 6A.24.25230.BF501D85; Tue, 21 Mar 2017 11:52:43 +0100 (CET)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (153.88.183.145) by oa.msg.ericsson.com (153.88.183.45) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 21 Mar 2017 11:52:38 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.onmicrosoft.com; s=selector1-ericsson-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+F+1xNNUP+Qin2QmQ7gWg+AG7JkavC+w3N96wC986/A=; b=EyN5eZ8mHp7h4xmjUWnszU6KrVzZUxTFKc9IcMTxO1LWAj6wnMm2T34T5VN3AfWHCaCItPzQ/U7buauG9qFag7bJQYIMtMVqaFA+mGnjhIuuV+z18uHz/7oUlhxR2mcPtbDxW6oTm0Wp55RPFegGFRpDXizJdecBFwepdgwONUQ=
Received: from HE1PR0701MB2890.eurprd07.prod.outlook.com (10.168.92.139) by HE1PR0701MB2889.eurprd07.prod.outlook.com (10.168.92.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.4; Tue, 21 Mar 2017 10:52:36 +0000
Received: from HE1PR0701MB2890.eurprd07.prod.outlook.com ([10.168.92.139]) by HE1PR0701MB2890.eurprd07.prod.outlook.com ([10.168.92.139]) with mapi id 15.01.0991.011; Tue, 21 Mar 2017 10:52:36 +0000
From: Wei Luo S <wei.s.luo@ericsson.com>
To: "ippm@ietf.org" <ippm@ietf.org>
CC: "draft-mirsky-ippm-twamp-light-yang@tools.ietf.org" <draft-mirsky-ippm-twamp-light-yang@tools.ietf.org>
Thread-Topic: Some though on draft-mirsky-ippm-twamp-light-yang-07
Thread-Index: AdKfjbtnL0qaxZ/BTSW5iz4J/5svIACD9wOAACJTwJA=
Date: Tue, 21 Mar 2017 10:52:35 +0000
Message-ID: <HE1PR0701MB28907DC3A4482E290DE00E5AD73D0@HE1PR0701MB2890.eurprd07.prod.outlook.com>
References: <HE1PR0701MB2890F93BC8B34C3F304BEBDED7380@HE1PR0701MB2890.eurprd07.prod.outlook.com> <CA+RyBmWKrvJFRk9Dx+A6LYcN+2F_PoTnkjOU4a3cDHCAHfn8iw@mail.gmail.com>
In-Reply-To: <CA+RyBmWKrvJFRk9Dx+A6LYcN+2F_PoTnkjOU4a3cDHCAHfn8iw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [106.38.5.8]
x-microsoft-exchange-diagnostics: 1; HE1PR0701MB2889; 7:ycqeQ4ocNRJVFhUcWlhuK6V9th1buTaIUYRV71WWM1dKZVAP1ufFE/KpNeooe2f5vT4N4OHNLwd07tOwy/azJw/DsQyUm7zp6Iniq5gy34Zj4WkU7Gqi9OMacANlUxRV7FTBERyLPIIScTtT5D7tPbkIm6WLXBrM+zjZaHAs/kmrDmoAbVoiOIIR8+ydEmaa8IPSx1PWKQQV7Ob//vE/TWkPZ9cDqt46aYbfKUxFBWLr4IJ3TBrmNHkPDu991J4BVhR4rYmGFolZt0qfUK5cojzitQDmQ8oRXD9LYY8nG6803DpuwUeyp7cFqrBs6oWF/P2T0SDAprdKWfDnPQ7x9A==
x-ms-office365-filtering-correlation-id: 4456778e-da82-452a-ffaf-08d4704862c0
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075); SRVR:HE1PR0701MB2889;
x-microsoft-antispam-prvs: <HE1PR0701MB288914DD3A2A5C0CFAFA2FEAD73D0@HE1PR0701MB2889.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(37575265505322)(72170088055959)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123558025)(20161123555025)(6072148); SRVR:HE1PR0701MB2889; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB2889;
x-forefront-prvs: 02530BD3AA
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39450400003)(199003)(24454002)(189002)(66654002)(51444003)(377454003)(50986999)(54356999)(76176999)(8936002)(7736002)(189998001)(74316002)(8676002)(1730700003)(81166006)(4326008)(2501003)(25786008)(6436002)(77096006)(606005)(9686003)(53546009)(236005)(5890100001)(230783001)(54896002)(38730400002)(3660700001)(110136004)(5640700003)(6306002)(6246003)(19609705001)(6506006)(55016002)(99286003)(3280700002)(790700001)(6116002)(3846002)(122556002)(102836003)(86362001)(229853002)(7696004)(5660300001)(53936002)(9326002)(7906003)(5630700001)(33656002)(6916009)(2950100002)(2351001)(66066001)(2906002)(2900100001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0701MB2889; H:HE1PR0701MB2890.eurprd07.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_HE1PR0701MB28907DC3A4482E290DE00E5AD73D0HE1PR0701MB2890_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2017 10:52:35.9401 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2889
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLKsWRmVeSWpSXmKPExsUyM2K7ru5v1osRBmf3KlvM+/+KxaLnwTtm ByaPJUt+Mnl8ufyZLYApissmJTUnsyy1SN8ugStjXWs/W8GXRuaKxgkvGBsY33xn6mLk5JAQ MJHY2tbK2sXIxSEksI5RYtfCqewQzglGiS873jOBOCwCvcwSF059Z4bIzGSSmPbyG1TZKUaJ J73T2UGGsQloSLRuOwo2WERAWaLl2x9GEJtZIFdi7Y7PrCC2sICjxNqzS9m6GDmAapwkzt/J hSi3kjg9uR2slUVAVeLQ96tgI3kFEiTWNt9ggdi1nFHiwPf3LCAJToFAiSuXGsEaGAXEJL6f WsMEsUtc4taT+VDPCUgs2XOeGcIWlXj5+B/Yo4wC3YwSH+ZdgyqSk3ixbjLYaxICfcwSy/6c hurwlVjZOocVwo6TOHPuGFRDvsSCU7ug7CiJZa8Ws0E0z2OSmN97jh0iISOxfeosFojEajaJ t5v/MkL8LyVx90onlC0j8eLOXtYJjBqzkJwOYedLPPu3mHkWOAwEJU7OfMIyCxhkzAKaEut3 6UOUKEpM6X7IDmEDQ37OXHZk8QWM7KsYRYtTi5Ny042M9FKLMpOLi/Pz9PJSSzYxAhPRwS2/ DXYwvnzueIhRgINRiYe34N35CCHWxLLiytxDjBIczEoivKbMFyOEeFMSK6tSi/Lji0pzUosP MUpzsCiJ8zruuxAhJJCeWJKanZpakFoEk2Xi4JRqYAy/Hht1jqH0GEOyMaf08awEl1pzbpHK LTzc08scLx/umabCkf4oNSt2wvFp+0/mz+LPSmpfMFs4S5t1ZsGE314b45e/XrcoPHFXhkLq rOdVVsXt3147XvbKT1+hs1w5pURD3sR3vqFl3rJ1LtLcN8J2Zj74beXdr3GCs++VZ+cnvbBF B0JvKLEUZyQaajEXFScCAP2SAiBAAwAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/ippm/ytiS0f5O5TyaP2VZdqaWhLdNEFY>
Subject: Re: [ippm] Some though on draft-mirsky-ippm-twamp-light-yang-07
X-BeenThere: ippm@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF IP Performance Metrics Working Group <ippm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ippm>, <mailto:ippm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ippm/>
List-Post: <mailto:ippm@ietf.org>
List-Help: <mailto:ippm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ippm>, <mailto:ippm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Mar 2017 10:52:50 -0000

Hi Greg,

Thanks a lot for your response. Please see my reply inline tagged [WEI>>].

Regards,
Wei Luo

From: Greg Mirsky [mailto:gregimirsky@gmail.com]
Sent: Tuesday, March 21, 2017 1:16 AM
To: Wei Luo S <wei.s.luo@ericsson.com>
Cc: ippm@ietf.org; draft-mirsky-ippm-twamp-light-yang@tools.ietf.org
Subject: Re: Some though on draft-mirsky-ippm-twamp-light-yang-07

Hi Wei Luo,
many thanks for your thorough review and the most helpful comments to the TWAMP Light(Test) model. Please find my answers, notes in-line tagged GIM>>.

Regards,
Greg

On Sat, Mar 18, 2017 at 4:27 AM, Wei Luo S <wei.s.luo@ericsson.com<mailto:wei.s.luo@ericsson.com>> wrote:
Hi Greg & Adrian,

This is Wei Luo from Ericsson. I work on TWAMP light area in Ericsson. The current TWAMP Light YANG model is well defined. Thanks for your great job.
But by working closely with our customers, we got some new user cases on TWAMP light. I believe these user cases are valuable and popular enough to be modeled in TWAMP Light YANG. I hope I can be a contributor  and co-work with you move this draft forward.
I  drafted a new version of the TWAMP light YANG model based on version ietf-twamp-light@2017-02-13.yang<mailto:ietf-twamp-light@2017-02-13.yang>. Could you please comments on it? Any discussion is welcome.
The draft yang model and tree is attached. To make you find the updates quickly, I highlighted all the updates in file ietf-twamp-light-weiluo.pdf.

The following are the list of main updates:
1. Add a new typedef: percent. This is a new type defined for packet loss ratio.
Consideration:
1). From the customer perspective, packet loss ratio is a more meaningful data. In most of the time, the absolute number is meaningless to user, especially they do the TWAMP test continuously. They are more care about the ratio than the absolute number. So adding it makes this model more friendly to customer;
2). From the service layer assurance(SLA) perspective, the packet loss ratio is a major measures. So with adding packet loss ratio in model, the TWAMP can work in SLA framework more smoothly.
3). It seems some similar protocol’s YANG model has the same definition, e.g. ‘Service OAM Performance Monitoring YANG Module’, https://www.mef.net/Assets/Technical_Specifications/PDF/MEF_39.pdf.
GIM>> Indeed, packet loss more often expressed as packet loss ratio rather than as the absolute number. It would be most helpful to hear from network operators if they see introduction of Packet Loss Ratio into the TWAMP model helpful.
2. Add a new typedef: state-mode. It defines a common type for stateful/stateless reflector. This type will be used in both sender session and reflector session.
Consideration:
If the reflector is stateful, the TWAMP light can measure more items, e.g. one way packet loss. So for sender, the stats calculation and show is different. When the reflector is stateless, it doesn’t need to calculate the one way packet loss. The one way packet loss is invalid and shouldn’t be presented to customer. When the reflector is stateless, the sender needs to calculate the one way packet loss. And the data should be present to customer. So this is used as a ‘when’ condition in the model’s RO tree.
GIM>> Yes, if Session-Sender is aware of the mode corresponding Session-Reflector operates, the sender may avoid calculation of some performance metrics, e.g., one-way packet loss. On the other hand, the orchestrator is aware of the state-mode and should be capable to properly use metrics reported by the Session-Sender.
[WEI>>] Yes, the orchestrator could know that. But from the model side, this is not correct.  The model should represent the right behavior and shouldn’t do assumption on orchestrator.
3. Add a new typedef: send-mode. This is a new type for sender session. It makes the sender session can send packet continuously and monitor the network all the time.
Consideration:
The user case is that: the user runs TWAMP light sessions to watch links quality continuously. The session number could be very big. These TWAMP sessions are managed by SLA framework or similar. SLA retrieves the stats from TWAMP periodically, e.g. 15mins. In other words, all the performance metrics are calculated based on the packets sent/received within 15mins. This makes the calculation become possible. With the periodical stats data, the Network Management software can do further actions if some abnormal stats observed.  This is a more general user case in customer site. While the non-continuous TWAMP sender session is generally used for debugging purpose on a link.
GIM>> I think that support of continuous measurement is in LMAP domain, not for TWAMP Test data model. To conduct continuous measurement he LMAP Controller, in my opinion, programs the Measurement Agent to perform TWAMP Test session with certain set of parameters and repeat it without any interval (interval = 0).
4. Add a new group: packet-loss-statistics. It grouping two packet loss statistics: loss-count and loss-ratio. This group will be used in RO stats tree.
GIM>> I'd like to continue discussion.
[WEI>>] OK.
5. Move leaf dscp out from grouping session-light-parameters. The leaf dscp is only valid when the dscp-handling-mode is use-configured-value. A when condition shall be added to it. So it can’t be in this group.
GIM>> I'm concerned that then the model will not be able to support concurrent TWAMP Test sessions between the same pair of Test Points (IP address+port number) at different CoS markings.
[WEI>>] Actually, I have concern on using five tuple(IP address+port number+dscp) to identify a TWAMP test session. The DSCP is not a constant value in packet. It could be modified by the routers in the path. For example, the sender has two sessions: session A’s five tuple is: Sip=1.1.1.1, Dip=2.2.2.2, Sport=50000, Dport=50001, DSCP=cs2. Session B’s five tuple is: Sip=1.1.1.1, Dip=2.2.2.2, Sport=50000, Dport=50001, DSCP=cs3. The only difference between session A and session B is DSCP. If the test packet’s DSCP of session B is modified to cs2 by a router in the path. The five tuples are exactly the same for reflector. It can’t differentiate which packet is from session A, which packet is from session B. It could mess the reflector’s session sequence number. And also, the sender will be messed because the received reply packet’s five tuple are exactly the same.
So I think it’s more reasonable to use four tuple to identify a session.
6. Add leaf 'session-packet-send-mode' to /twamp-light/twamp-light-session-sender/test-session*. This leaf specifies the sender session's packet send mode: continuous or non-continuous.
GIM>> As discussed in #3, I think that it is already part of LMAP YANG model.
7. Add leaf 'reflector-light-mode-state' to /twamp-light/twamp-light-session-sender/test-session*. This leaf indicates the the reflector's mode: stateful or stateless. If the reflector's mode is stateful. Two one way packet loss statistics can be got: one-way-packet-loss-far-end, one-way-packet-loss-near-end.
Consideration:
Only valid data should be presented to user. Otherwise it could misleading user in some cases.
GIM>> A in response to #2.
8. Modify leaf /twamp-light/twamp-light-session-sender/test-session*/number-of-packets. Add a 'when' condition to this leaf. When send-mode is 'continuous', the leaf number-of-packets is meaningless. So add a 'when' condition to limit it.  Besides, added a default value ‘10’ to it. When the send-mode is 'non-continuous', the session can't work with an empty number-of-packets.
GIM>> As I've noted in #3. Will add default.
9. Add leaf time out to /twamp-light/twamp-light-session-sender/test-session*. A timeout mechanism is needed when the sender session can't get all the reply packets for a long time.
GIM>> Thank you, will add in the next update.
10. Modify leaf /twamp-light/twamp-light-session-sender/test-session*/interval. Change the units from ‘microseconds’ to ‘milliseconds’. Add a default value 1000.
Consideration:
    1). The aim of TWAMP is to measure network quality, but not fast failure detection. So a millisecond packet interval is enough.
    2). Interval is a necessary parameter for a session. A sender session can't work with an empty packet send interval. So added a default value to it.
GIM>> Thank you. We've made units of interval microseconds in the last update already. I think that changing to milliseconds may be too restrictive, limit use cases for TWAMP Test. Will add default value with the next update.
[WEI>>] Sorry, I do not see the reason. Are there any user cases to use microseconds?
11. Add leaf 'dscp' to /twamp-light/twamp-light-session-sender/test-session*. This is the leaf moved out from grouping session-light-parameters.
GIM>> As noted in response #5, the change may limit ability to run concurrent TWAMP Test sessions per CoS. I consider that to be valuable mode but would like to hear from network operators if that is indeed useful information.
12. Move leaves 'ref-wait', 'reflector-light-mode-state' and 'dscp-handling-mode' from /twamp-light/twamp-light-session-reflector to /twamp-light/twamp-light-session-reflector/test-session*. These three attributes should be session specific. Different session could have different values. They are not common attributes.
GIM>> Agree, will make it in the next update.
13. Add leaf 'dscp' to /twamp-light/twamp-light-session-reflector/test-session*. This is the leaf moved out from grouping session-light-parameters. Besides the movement, added a 'when' condition to the leaf 'dscp'. This leaf is only valid when the dscp-handling-mode is 'use-configured-value'.
GIM>> As response to #5.
14. Modify leaf /twamp-light-state/twamp-light-session-sender-state/test-session-state*/current-stats/number-of-packets. Add a 'when' condition to this leaf. When send-mode is 'continuous', the leaf number-of-packets is meaningless.
GIM>> Similar to #3.
15. Modify leaf /twamp-light-state/twamp-light-session-sender-state/test-session-state*/current-stats/interval. Change the units from microseconds to milliseconds.
GIM>> I think that microseconds is reasonable.
16. Add leaves 'two-way-packet-loss', 'one-way-packet-loss-far-end' and 'one-way-packet-loss-near-end' to /twamp-light-state/twamp-light-session-sender-state/test-session-state*/current-stats/. These are the new statistics for stateful reflector.
GIM>> Thank you, will be coming in the next update.
17. Remove leaf loss-packet in /twamp-light-state/twamp-light-session-sender-state/test-session-state*/current-stats. The loss packeted is replaced with 'two-way-packet-loss' stated above.
GIM>> Agree.
18. Modify leaf to /twamp-light-state/twamp-light-session-sender-state/test-session-state*/history-stats*/interval. Change the units from microseconds to milliseconds.
GIM>> I think that will limit applicability of TWAMP Test.
19. Add leaves 'two-way-packet-loss', 'one-way-packet-loss-far-end' and 'one-way-packet-loss-near-end' to /twamp-light-state/twamp-light-session-sender-state/test-session-state*/history-stats*/. These are the new statistics for stateful reflector.
GIM>> Agree.

Thanks,
Wei Luo