Re: [mpls] MPLS label and LSE data models
Robert Wilton <rwilton@cisco.com> Mon, 17 July 2017 12:51 UTC
Return-Path: <rwilton@cisco.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4F77C131B5E; Mon, 17 Jul 2017 05:51:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 fg_eOQeMpkj7; Mon, 17 Jul 2017 05:51:28 -0700 (PDT)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3225B131B6B; Mon, 17 Jul 2017 05:51:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=22924; q=dns/txt; s=iport; t=1500295887; x=1501505487; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to; bh=v8ntfOyLvmD9d8197qGceorMPess2zmAUUj5NJ5vfx8=; b=hkJnkL58q7ptsZELzJ35D/lNR8sO9QIqsijGwludvMFhyiczBREqk7TS 2R2y4P8+uHPYjmXcPSsj2dg7yppb1KG2MTMGz5lHqwZgYU2QUBm2+91b3 4MoWNeUNy6rl5iAMpLVbivWVL2Lj6IW/S8yAUNHtZUMogXt4G8x58a6ir U=;
X-IronPort-AV: E=Sophos;i="5.40,374,1496102400"; d="scan'208,217";a="695867313"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jul 2017 12:51:25 +0000
Received: from [10.61.70.137] (ams3-vpn-dhcp1673.cisco.com [10.61.70.137]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id v6HCpOrQ005246; Mon, 17 Jul 2017 12:51:25 GMT
To: "Acee Lindem (acee)" <acee@cisco.com>, "Tarek Saad (tsaad)" <tsaad@cisco.com>, Jeffrey Haas <jhaas@pfrc.org>, Xufeng Liu <Xufeng_Liu@jabil.com>
Cc: "draft-ietf-mpls-static-yang@ietf.org" <draft-ietf-mpls-static-yang@ietf.org>, "draft-ietf-rtgwg-routing-types@ietf.org" <draft-ietf-rtgwg-routing-types@ietf.org>, "rtgwg@ietf.org" <rtgwg@ietf.org>, "mpls@ietf.org" <mpls@ietf.org>
References: <CA+RyBmVH=KCi3T8u2dB_WaKBOLheYwT4q0d+tpYdT-Z2iTZ+og@mail.gmail.com> <D55B6659.B21B8%acee@cisco.com> <CA+RyBmVyHKGhxitGgQ6RRMmHKwvs=b_GkKMq80rE=Ys8WetGaQ@mail.gmail.com> <BN3PR0201MB08676A90584EC7E8414244B3F1CB0@BN3PR0201MB0867.namprd02.prod.outlook.com> <CA+RyBmWHvfXt_Vdhc5w70ugQTSS5qffTWbQ+Lb9D_6PpfP10QQ@mail.gmail.com> <BN3PR0201MB0867AA3D4476A1DD25B3FC88F1CB0@BN3PR0201MB0867.namprd02.prod.outlook.com> <20170620205021.GG2289@pfrc.org> <BN3PR0201MB0867B31271FFD40ED11B2B6EF1DB0@BN3PR0201MB0867.namprd02.prod.outlook.com> <20170710202101.GC12373@pfrc.org> <BN3PR0201MB08670C450E7800A07F116716F1AC0@BN3PR0201MB0867.namprd02.prod.outlook.com> <20170713165140.GI7180@pfrc.org> <48F70EFB-2DAE-4902-9D9D-AD26AC4D49E1@cisco.com> <D58E9EC8.B88E8%acee@cisco.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <5e2fb905-213c-40b3-cbe0-18b41db4871d@cisco.com>
Date: Mon, 17 Jul 2017 14:51:24 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <D58E9EC8.B88E8%acee@cisco.com>
Content-Type: multipart/alternative; boundary="------------C82E12F50CE5E342CC7492BA"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/Y5fCxmpEbY18T_e3xcs5kZJ7xj0>
Subject: Re: [mpls] MPLS label and LSE data models
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Jul 2017 12:51:39 -0000
Hi, Just as a point of reference, for VLAN tag stacks, the outermost VLAN tag is always first in the list. Regarding relax the ordering or not, I may not be answering exactly the same question, but I would say that you want a have a canonical order (to allow for easy and efficient comparison), and forcing everyone to have to sort the label stack before using it would probably just be regarded as a wart. Thanks, Rob On 14/07/2017 22:31, Acee Lindem (acee) wrote: > Hi Tarek, Jeff, > > Typically, YANG indices are added to YANG lists to simply imply > ordering. I don’t believe there is absolutely any value in trying to > enforce the semantics of a precise label position on this index. It is > fairly obvious that the first label in the list is the first label in > the stack, the second label in the list is the second label in the > stack, and so on… Hopefully, the other YANG model authors will agree > with me on this point and the “Index 0 as top” convention should be > relaxed. Is there a YANG doctor in the house??? > > Now, we currently specify the top label as the first label in the list > while Jeff has proposed that the bottom label be the first label. > Surely, there is an existing convention within MPLS RFCs and drafts > and we should be consistent. I’d research myself but I have a ton of > other things to do prior to leaving for Prague tomorrow. When someone > refers to the first label, is the top or bottom label? I have always > been referring to the first label as the top label (with all due > respect to C stack implementations). > > Thanks, > Acee > > From: "Tarek Saad (tsaad)" <tsaad@cisco.com <mailto:tsaad@cisco.com>> > Date: Thursday, July 13, 2017 at 1:12 PM > To: Jeff Haas <jhaas@pfrc.org <mailto:jhaas@pfrc.org>>, Xufeng Liu > <Xufeng_Liu@jabil.com <mailto:Xufeng_Liu@jabil.com>> > Cc: Greg Mirsky <gregimirsky@gmail.com > <mailto:gregimirsky@gmail.com>>, "draft-ietf-mpls-static-yang@ietf.org > <mailto:draft-ietf-mpls-static-yang@ietf.org>" > <draft-ietf-mpls-static-yang@ietf.org > <mailto:draft-ietf-mpls-static-yang@ietf.org>>, "mpls@ietf.org > <mailto:mpls@ietf.org>" <mpls@ietf.org <mailto:mpls@ietf.org>>, > "draft-ietf-rtgwg-routing-types@ietf.org > <mailto:draft-ietf-rtgwg-routing-types@ietf.org>" > <draft-ietf-rtgwg-routing-types@ietf.org > <mailto:draft-ietf-rtgwg-routing-types@ietf.org>>, Routing WG > <rtgwg@ietf.org <mailto:rtgwg@ietf.org>> > Subject: Re: MPLS label and LSE data models > Resent-From: <alias-bounces@ietf.org <mailto:alias-bounces@ietf.org>> > Resent-To: <xufeng_liu@jabil.com <mailto:xufeng_liu@jabil.com>>, > Yingzhen Qu <yingzhen.qu@huawei.com <mailto:yingzhen.qu@huawei.com>>, > Acee Lindem <acee@cisco.com <mailto:acee@cisco.com>>, Christian Hopps > <chopps@chopps.org <mailto:chopps@chopps.org>>, <lberger@labn.net > <mailto:lberger@labn.net>> > Resent-Date: Thursday, July 13, 2017 at 1:12 PM > > Hi Jeff and Xufeng, > > Sorry, catching up on this thread. Yes, we've made a change for > the MPLS label-stack from "leaf-list" to a "list with key index" > to address having multiple labels of same value in the same stack. > > We noted an assumption in the description that index 0 is the top > of the stack followed by the remainder of the labels in the stack. > However, you have a point about enforcing index (n-1) being > present before accepting index n. There is some discussion on > 'preceding-sibling' and 'following-sibling' with some > recommendations in rfc6087.. I'll need to check if enforcing such > "when" check is good idea in YANG. > > Another idea (not so elegant) is relax this "index 0 as top" and > just accept the lowest index of the list as the top followed by > the remainder labels (as sorted in index increasing order). > > Regards, > > Tarek > > -----Original Message----- > > From: Jeffrey Haas <jhaas@pfrc.org <mailto:jhaas@pfrc.org>> > > Date: Thursday, July 13, 2017 at 12:51 PM > > To: Xufeng Liu <Xufeng_Liu@jabil.com <mailto:Xufeng_Liu@jabil.com>> > > Cc: Greg Mirsky <gregimirsky@gmail.com > <mailto:gregimirsky@gmail.com>>, > "draft-ietf-mpls-static-yang@ietf.org > <mailto:draft-ietf-mpls-static-yang@ietf.org>" > <draft-ietf-mpls-static-yang@ietf.org > <mailto:draft-ietf-mpls-static-yang@ietf.org>>, "mpls@ietf.org > <mailto:mpls@ietf.org>" <mpls@ietf.org <mailto:mpls@ietf.org>>, > "draft-ietf-rtgwg-routing-types@ietf.org > <mailto:draft-ietf-rtgwg-routing-types@ietf.org>" > <draft-ietf-rtgwg-routing-types@ietf.org > <mailto:draft-ietf-rtgwg-routing-types@ietf.org>>, "rtgwg@ietf.org > <mailto:rtgwg@ietf.org>" <rtgwg@ietf.org <mailto:rtgwg@ietf.org>> > > Subject: Re: MPLS label and LSE data models > > Resent-From: <alias-bounces@ietf.org <mailto:alias-bounces@ietf.org>> > > Resent-To: Tarek Saad <tsaad@cisco.com <mailto:tsaad@cisco.com>>, > <skraza@cisco.com <mailto:skraza@cisco.com>>, <rgandhi@cisco.com > <mailto:rgandhi@cisco.com>>, <xufeng_liu@jabil.com > <mailto:xufeng_liu@jabil.com>>, <vbeeram@juniper.net > <mailto:vbeeram@juniper.net>>, <hshah@ciena.com > <mailto:hshah@ciena.com>>, <igor.bryskin@huawei.com > <mailto:igor.bryskin@huawei.com>>, <jescia.chenxia@huawei.com > <mailto:jescia.chenxia@huawei.com>>, <raqib@brocade.com > <mailto:raqib@brocade.com>>, <bin_wen@cable.comcast.com > <mailto:bin_wen@cable.comcast.com>> > > Resent-Date: Thursday, July 13, 2017 at 12:42 PM > > Xufeng, > > On Thu, Jul 13, 2017 at 04:14:18PM +0000, Xufeng Liu wrote: > > > Thanks for looking at this. You are right, but we are still > discussing various approaches for the static MPLS and the > conclusion has not been reached yet. > > > We'd like to hear what you think and appreciate your comments. > > To offer a suggestion, order the stack from bottom (lowest > number) to top > > (highest). Require that bottom of stack be element index zero. > > My yang constraints are a bit weak but I believe you can > construct an XPath > > that requires that a node of index 0 must be present. > > The above two suggestions don't help with the issues of > needing to sort the > > list by index in order to generate the stack, but it does at > least remove > > any possible ambiguity about the critical bottom of stack > semantic. > > -- Jeff > > > > _______________________________________________ > rtgwg mailing list > rtgwg@ietf.org > https://www.ietf.org/mailman/listinfo/rtgwg
- [mpls] MPLS label and LSE data models Greg Mirsky
- Re: [mpls] MPLS label and LSE data models Acee Lindem (acee)
- Re: [mpls] MPLS label and LSE data models Greg Mirsky
- Re: [mpls] MPLS label and LSE data models Xufeng Liu
- Re: [mpls] MPLS label and LSE data models Acee Lindem (acee)
- Re: [mpls] MPLS label and LSE data models Greg Mirsky
- Re: [mpls] MPLS label and LSE data models Xufeng Liu
- Re: [mpls] MPLS label and LSE data models Jeffrey Haas
- Re: [mpls] MPLS label and LSE data models Xufeng Liu
- Re: [mpls] MPLS label and LSE data models Jeffrey Haas
- Re: [mpls] MPLS label and LSE data models Xufeng Liu
- Re: [mpls] MPLS label and LSE data models Jeffrey Haas
- Re: [mpls] MPLS label and LSE data models Tarek Saad (tsaad)
- Re: [mpls] MPLS label and LSE data models Acee Lindem (acee)
- Re: [mpls] MPLS label and LSE data models Acee Lindem (acee)
- Re: [mpls] MPLS label and LSE data models Jeffrey Haas
- Re: [mpls] MPLS label and LSE data models Robert Wilton
- Re: [mpls] MPLS label and LSE data models Acee Lindem (acee)