Re: [netmod] Key selection for next hop list in RFC8349
Qin Wu <bill.wu@huawei.com> Fri, 31 July 2020 01:36 UTC
Return-Path: <bill.wu@huawei.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3EE853A099C for <netmod@ietfa.amsl.com>; Thu, 30 Jul 2020 18:36:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 UCaiycICdDgJ for <netmod@ietfa.amsl.com>; Thu, 30 Jul 2020 18:36:13 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (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 12D013A0953 for <netmod@ietf.org>; Thu, 30 Jul 2020 18:36:13 -0700 (PDT)
Received: from lhreml702-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 985A14FEA2DF230A7F18 for <netmod@ietf.org>; Fri, 31 Jul 2020 02:36:11 +0100 (IST)
Received: from lhreml702-chm.china.huawei.com (10.201.108.51) by lhreml702-chm.china.huawei.com (10.201.108.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Fri, 31 Jul 2020 02:36:11 +0100
Received: from DGGEML424-HUB.china.huawei.com (10.1.199.41) by lhreml702-chm.china.huawei.com (10.201.108.51) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA_P256) id 15.1.1913.5 via Frontend Transport; Fri, 31 Jul 2020 02:36:10 +0100
Received: from DGGEML511-MBS.china.huawei.com ([169.254.4.170]) by dggeml424-hub.china.huawei.com ([10.1.199.41]) with mapi id 14.03.0487.000; Fri, 31 Jul 2020 09:36:04 +0800
From: Qin Wu <bill.wu@huawei.com>
To: "Acee Lindem (acee)" <acee@cisco.com>
CC: NetMod WG <netmod@ietf.org>
Thread-Topic: Key selection for next hop list in RFC8349
Thread-Index: AdZm2uldcUU61XFXQ7WTnwRFphwqhQ==
Date: Fri, 31 Jul 2020 01:36:04 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABAAD8AA05E@dggeml511-mbs.china.huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.164.123.168]
Content-Type: multipart/alternative; boundary="_000_B8F9A780D330094D99AF023C5877DABAAD8AA05Edggeml511mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/r83d8nyKwbXy9CiiWLoXEjX12gI>
Subject: Re: [netmod] Key selection for next hop list in RFC8349
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 31 Jul 2020 01:36:15 -0000
Thank Acee for clarification, it helps. -Qin 发件人: Acee Lindem (acee) [mailto:acee@cisco.com] 发送时间: 2020年7月13日 23:24 收件人: Qin Wu <bill.wu@huawei.com> 抄送: NetMod WG <netmod@ietf.org> 主题: Re: Key selection for next hop list in RFC8349 Hi Qin, From: Qin Wu <bill.wu@huawei.com<mailto:bill.wu@huawei.com>> Date: Friday, July 10, 2020 at 2:59 AM To: Acee Lindem <acee@cisco.com<mailto:acee@cisco.com>> Cc: NetMod WG <netmod@ietf.org<mailto:netmod@ietf.org>> Subject: Key selection for next hop list in RFC8349 Hi, Acee, Lada, Yingzhen: In RFC8349, a string type index parameter is defined as the key for next hop list, this index has no semantics and can be used as unique ID for each next hop entry. I am wondering why not select next hop address as the key instead of using no semantic meaning index? What’s the rationale behind, when we will use index as the key, when we will use next hop address as the key? The model was designed either IPv4 or IPv6 without a requirement on either being present. This could not have been done with the next-hop address and outgoing interface as the list key. Hope this helps, Acee Thanks in advance. The following YANG data model snippets is for reference. grouping next-hop-content { description "Generic parameters of next hops in static routes."; choice next-hop-options { mandatory true; description "Options for next hops in static routes. It is expected that further cases will be added through augments from other modules."; case next-hop-list { container next-hop-list { description "Container for multiple next hops."; list next-hop { key "index"; description "An entry in a next-hop list. Modules for address families MUST augment this list with a leaf containing a next-hop address of that address family."; leaf index { type string; description "A user-specified identifier utilized to uniquely reference the next-hop entry in the next-hop list. The value of this index has no semantic meaning other than for referencing the entry."; } leaf outgoing-interface { type if:interface-ref; description "Name of the outgoing interface."; } } } } } } -Qin