Re: [Teas] Identifiers in draft-zhang-teas-transport-service-model

"Xufeng Liu" <xufeng.liu.ietf@gmail.com> Sun, 17 July 2016 21:07 UTC

Return-Path: <xufeng.liu.ietf@gmail.com>
X-Original-To: teas@ietfa.amsl.com
Delivered-To: teas@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7502612D107; Sun, 17 Jul 2016 14:07:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 n6F_XxxnCP8c; Sun, 17 Jul 2016 14:07:28 -0700 (PDT)
Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5099812D103; Sun, 17 Jul 2016 14:07:28 -0700 (PDT)
Received: by mail-wm0-x22b.google.com with SMTP id f65so81918451wmi.0; Sun, 17 Jul 2016 14:07:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=E3Y9YcECN2d5G28cGWctd9LDni7adf9muL6u6itCAHw=; b=MUPkDjo9UKHJLZNWzhoTwbW9WhHdNY8vsEiJzIz6b847n6e3nkl9JZUWc11C4yA80+ pF8xCOUtrWSfEu89TA0FaX2061FAOSsf0rfTOKKdTe4oj3FkBd/9r6CJhur2eqnpbqMg A73gIzGIZxIAyaZUukrVvC2gJuJd5uxBIRf/iasWwSin1sexze1wyF0o2NW0ESdPH5+b SIvtA08uw4UXGMGvY3V0rZQfyKMqSo7yh0jAfKnhCHSkkfRWB3jejnwGZqKVKeY40AVM aE6dECF6dzS1QmGzesKzD0sqzbJNrb8/hr+3KVix3Xlx/ISmkcFsC4elJZalVajf4DUm h12A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=E3Y9YcECN2d5G28cGWctd9LDni7adf9muL6u6itCAHw=; b=QVcRskZgsY5gsTd54N5zNWNqVX5mDkqa7m7xK57lrljSTX9OErCv8fRzc9gLmi3rKK Awf8KRFGGP7rtfeqL1gBiO8eoi3GJwcvjtPUj1ly4iCi5UlDLFlgh7Idw613p0xwa+0F I5PqnI0sW1Opu+u/mIrtF7INTQD8m/krhJt3XQVrQduSQD3H8LT7UCUWVkleINHXIPNs EEXzhJ5yyttDubccPtpZxhkI61esHjICIEGs2xEKxXX1EWb8m2wiFRwJtFM6kjRmm25M ObIm/2QT4r0epLK79M05YWoc0u+5V6A/uWMWywVQl7Liffq2jPwP3ben62BCQd3C6qBo Uc8Q==
X-Gm-Message-State: ALyK8tIQnm/S+QrMVjQogZbbSsHqseE7erFREqfQBk8xVLM+HbAl0ww05BvzUughvxPTSw==
X-Received: by 10.28.238.154 with SMTP id j26mr51492538wmi.94.1468789646903; Sun, 17 Jul 2016 14:07:26 -0700 (PDT)
Received: from xliuus ([2001:67c:370:136:45d9:478c:eb1e:d1dd]) by smtp.gmail.com with ESMTPSA id f4sm11384249wmf.8.2016.07.17.14.07.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jul 2016 14:07:26 -0700 (PDT)
From: Xufeng Liu <xufeng.liu.ietf@gmail.com>
To: 'Anurag Sharma' <AnSharma@infinera.com>, "'Zhangxian (Xian)'" <zhang.xian@huawei.com>, "'Scharf, Michael (Nokia - DE)'" <michael.scharf@nokia.com>
References: <655C07320163294895BBADA28372AF5D4891DCBC@FR712WXCHMBA15.zeu.alcatel-lucent.com> <C636AF2FA540124E9B9ACB5A6BECCE6B7DF00E7F@SZXEMA512-MBS.china.huawei.com> <A18E30EB-EC20-4EE1-A917-41E71904BE53@infinera.com>
In-Reply-To: <A18E30EB-EC20-4EE1-A917-41E71904BE53@infinera.com>
Date: Sun, 17 Jul 2016 17:07:31 -0400
Message-ID: <002101d1e06f$3c4a77c0$b4df6740$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQIMpmQqGL5yXA/jiaxYcbvGk3CAowCLujVmAUqVNFWfmNq/sA==
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/teas/Nx-d1E6OU66ygxFHCZ8lzlKbv90>
Cc: draft-zhang-teas-transport-service-model@ietf.org, teas@ietf.org
Subject: Re: [Teas] Identifiers in draft-zhang-teas-transport-service-model
X-BeenThere: teas@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Traffic Engineering Architecture and Signaling working group discussion list <teas.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/teas>, <mailto:teas-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/teas/>
List-Post: <mailto:teas@ietf.org>
List-Help: <mailto:teas-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/teas>, <mailto:teas-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 17 Jul 2016 21:07:30 -0000

Hi Anurag,

Thanks for the comments. As we discussed, we are bringing this issue to the working group. We will discuss it during the TEAS session on Thursday.

As for TE nodes and links, the TE topology model provides both I2RS URI ID type and numerical ID type.

We actually also got some complaints about the I2RS URI ID type from some model implementers.

In our case, some of the reasons to use numerical ID type are:
- Compatible to current implementations and RFCs.
- More efficient to implement (e.g. searching, sorting, and indexing).
- Easier to advertise.
- Easier to do automation (e.g. getting the next available value). 
- The model is mostly for machine-to-machine interface. Client software can do the mapping if user friendly formats are needed.
- No need for parsing and conversion, and no ambiguity for interpretation.

Thanks,

- Xufeng

> -----Original Message-----
> From: Teas [mailto:teas-bounces@ietf.org] On Behalf Of Anurag Sharma	
> Sent: Friday, July 15, 2016 8:04 PM
> To: Zhangxian (Xian) <zhang.xian@huawei.com>; Scharf, Michael (Nokia - DE)
> <michael.scharf@nokia.com>
> Cc: draft-zhang-teas-transport-service-model@ietf.org; teas@ietf.org
> Subject: Re: [Teas] Identifiers in draft-zhang-teas-transport-service-model
> 
> Michael,
> 
> Thanks for raising the issue with how ids are modeled in various YANG models. I
> completely agree with you that there is a major disconnect between YANG
> models in i2rs, teas, ccamp when it comes to modeling ids. Additionally, there is
> major disconnect between IETF YANG models, and YANG models from other
> SDOs (ids modeled as string) when it comes to modeling ids. The id issue came
> up during our analysis of various YANG models for transport use cases. Sergio,
> Xian, Oscar, and many other folks from IETF, ONF and MEF are part of the
> analysis activity. In a network where there are YANG models from different
> SDOs in the domain controller and the orchestrator, translation / mediation
> between these models has issues when entity ids have different types (uint vs.
> uuid/string).
> 
> Feedback was provided on the id to authors of YANG model in TEAS. The reason
> given for using uint was that GMPLS protocols on the devices use uint.
> Alternative provided was to have another model that augments the TE YANG
> models, and add string as id, which I think is not clean given the number of
> augmentations you will need. We were also asked to raise the concern on the
> teas mailing list. It’s good to see your comments in the same area. Maybe the
> YANG model authors in TEAS can rethink how id are modeled.
> 
> Xufeng, Pavan, can you please reconsider how ids are modeled in your YANG
> model?
> 
> Thanks,
> Anurag
> 
> > On Jul 15, 2016, at 2:42 AM, Zhangxian (Xian) <zhang.xian@huawei.com>
> wrote:
> >
> > Hi, Michael, all,
> >
> >    Thank you for taking this to seek wider opinions. Please first see my reply
> inline:
> >
> > -----Original Message-----
> > From: Scharf, Michael (Nokia - DE) [mailto:michael.scharf@nokia.com]
> > Sent: 2016年7月15日 2:42
> > To: teas@ietf.org
> > Cc: draft-zhang-teas-transport-service-model@ietf.org
> > Subject: Identifiers in draft-zhang-teas-transport-service-model
> >
> > Hi all,
> >
> > I have had some off-list discussions with the authors of draft-zhang-teas-
> transport-service-model. Regarding one specific point I look for further
> feedback on the list:
> >
> > To me it seems a quite surprising design choice to model in a service model
> endpoints (tp-id) and service IDs (service-id) by an integer value (uint32). A more
> obvious choice to me would be e.g. a string.
> >
> > <Xian>: For Service identifier, there is an uint32 for service-id, there is also a
> string for service-name. So if you like to use the string-name for differentiate
> your service, you can do that.  As for the service model endpoints, we are mainly
> bound by the termination points defined by ietf-te-topology.yang, (
> https://tools.ietf.org/html/draft-ietf-teas-yang-te-topo-04 ),  which is defined
> as below:
> >
> >     typedef te-tp-id {
> >       type union {
> >         type uint32;          // Unnumbered
> >         type inet:ip-address; // IPv4 or IPv6 address
> >       }
> >       description
> >         "An identifier for a TE link endpoint on a node.
> >          This attribute is mapped to local or remote link identifier in
> >          RFC3630 and RFC5305.";
> >     }
> >
> > This seems to be common practice in another service model of the IETF. See
> draft-ietf-l3sm-l3vpn-service-model-11:
> >
> >    typedef svc-id {
> >        type string;
> >        description
> >         "Defining a type of service component
> >         identificators.";
> >    }
> >
> > I think the IETF should try to align at least basic constructs in "service models"
> even if they apply to different technologies. Some communality at least
> regarding identifiers would be a good starting point, IMHO.
> >
> > Is there any particular reason why IDs would have to be uint32 in a transport
> service model context?
> >
> > <Xian>:  I understand your concern, but I think you already answered the
> question since it is as you said: " they apply to different technologies" and
> probably also on different interfaces. To give you another similar example: if
> you check the ietf-network.yang/ietf-network-topology.yang and ietf-te-
> topology.yang, where the later augments the former. They use different types
> of identifiers for identifying a network/topology, a node and a link and a
> termination point (uri. Vs. non-uri).  Having said all these, I am open and would
> also like to hear how others think about this.
> >
> > Cheers,
> > Xian
> >
> > Thanks
> >
> > Michael
> > _______________________________________________
> > Teas mailing list
> > Teas@ietf.org
> > https://www.ietf.org/mailman/listinfo/teas
> 
> _______________________________________________
> Teas mailing list
> Teas@ietf.org
> https://www.ietf.org/mailman/listinfo/teas