Re: [netmod] Key selection for next hop list in RFC8349

"Acee Lindem (acee)" <acee@cisco.com> Mon, 13 July 2020 15:24 UTC

Return-Path: <acee@cisco.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 1DA3E3A1286 for <netmod@ietfa.amsl.com>; Mon, 13 Jul 2020 08:24:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.619
X-Spam-Level:
X-Spam-Status: No, score=-9.619 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 header.b=SrT1YX3Q; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=M9OoybN7
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 uY5Si4v2dihc for <netmod@ietfa.amsl.com>; Mon, 13 Jul 2020 08:24:17 -0700 (PDT)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 48CBD3A126A for <netmod@ietf.org>; Mon, 13 Jul 2020 08:24:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=18503; q=dns/txt; s=iport; t=1594653857; x=1595863457; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=cpNvWjVG45TiwIGfG6g9Hsa8L2tp/kgNtnErEUqKS6g=; b=SrT1YX3QhfZaexu8vLDXEx5d4CPz/MqvL5z7vqKDS9IQvR/SMOXIZibB 5s3MYPaZ1tWTFC895raKSCelp8dD8dtWBvoPP9HwCmfflm8fzZyxvYQJv aRx0twFSlbpHOQOx5AXfG1eyxYzc501XYZW2ocBn9RG7pjWwA7XLnmcOh M=;
IronPort-PHdr: =?us-ascii?q?9a23=3AlmJXCRQdETc0fT3etWKkKnB729psv++ubAcI9p?= =?us-ascii?q?oqja5Pea2//pPkeVbS/uhpkESQBNuJ6+9NlOfX9avnXD9I7ZWAtSUEd5pBH1?= =?us-ascii?q?8AhN4NlgMtSMiCFQXgLfHsYiB7eaYKVFJs83yhd0QAHsH4ag7Sv3St4D9UER?= =?us-ascii?q?L6ZkJ5I+3vEdvUiMK6n+m555zUZVBOgzywKbN/JRm7t0PfrM4T1IBjMa02jB?= =?us-ascii?q?DOpyhF?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AECAA+ewxf/5FdJa1gHQEBAQEJARI?= =?us-ascii?q?BBQUBggqBIy9RB29YLywKhCmDRgONT5NyhGyCUwNVCwEBAQwBAS0CBAEBhEw?= =?us-ascii?q?CF4IDAiQ4EwIDAQELAQEFAQEBAgEGBG2FWwyFbwEBAQEDEhEdAQE3AQ8CAQg?= =?us-ascii?q?OAwMBAisCAgIwHQgBAQQOBSKDBAGBfk0DLgGdZgKBOYhhdoEygwEBAQWCSYJ?= =?us-ascii?q?MGIIOCYE4gmqDVYYzGoIAgREnHIIfLj6BBINZgnYzgi2SQ4ZIJosWkFkKgl2?= =?us-ascii?q?ZWAMenyqsOoQmAgQCBAUCDgEBBYFqI4FXcBU7KgGCPlAXAg2OHhiDWYpWdDc?= =?us-ascii?q?CBgEHAQEDCXyNOgGBEAEB?=
X-IronPort-AV: E=Sophos;i="5.75,347,1589241600"; d="scan'208,217";a="781058935"
Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 13 Jul 2020 15:24:16 +0000
Received: from XCH-RCD-004.cisco.com (xch-rcd-004.cisco.com [173.37.102.14]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 06DFODnl007975 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 13 Jul 2020 15:24:14 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-RCD-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 10:24:13 -0500
Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 10:24:12 -0500
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 13 Jul 2020 10:24:12 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GfCaJnDUISA89Ip2GFXpdIVHYMWF+BKFCdjeLnU1TckPKktqF9FA0iA26audiz5tjWqYMfPLM/bmCCRkpr8ZbZhQLNIYa8SXfR2Qb4HAhKLDr5YE/65IKSROAPJYDkBdsxc/Q8Ic3Lc67inaIOwsXrlVWh2ed6A8Tbbd2o0coBZr2hq4j+lvXX7sVQWI+SVuLvJdYkkaW62fAIGH3cNK13PxYj0n3HWr/16ZIZDrRiRh17KjyXXVEnaDFyZh3A+uekyH/GcQk02pbUgOGGLmtnj6Ge/OFGRHzWchDbm5I8uQtR0FPqFlQKWFdp3autv+czWmhvMG+Py4JeHs94W/6g==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cpNvWjVG45TiwIGfG6g9Hsa8L2tp/kgNtnErEUqKS6g=; b=a7bDcuqEkGGGBfp8K1SE3eR6DqQI9jA2Htcki9pyJe63yxkflQ6/ee7ScWwBCki4q0hXJNmYm4Oo6fb2oTYFBaoTEDrokJ5FSTtokFfiyDWWVOamfLoPTvXfe4fHOKvNcujEyioXISf1siSHZRXOINwdUWrZ+P5osB+CR4qY1tx3iukKjB1EN2yusjS3154wkSsKtU/ArRmPleEl14XG57TqWqV5APLvpuDYI7bxfLTHWEAHBjR8scLPzkebHEZ7LvfT7bFkSUv6GQU9LEBs3N4k4+/aDAY+/k34G8s/orqMQesiLgZvdqVbIeM/mVEKDtpszeRfZB/qcUtOgtAkNw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cpNvWjVG45TiwIGfG6g9Hsa8L2tp/kgNtnErEUqKS6g=; b=M9OoybN7k+kmGjpaAsFNFFi2nT4bIU4gnK6NwV4tHpP7b5hhrWJKbWB31y5Jb4akRccP5OxRpt0phVqsETmXAs9ugSkAqaQWiwWKi5xT88aTwvhhkEJBv9MpXzZX4b8eqXE5C5gnDwfxFfPMOxl0MkTDwedW7Kh7MJeMk/AogzY=
Received: from BYAPR11MB2887.namprd11.prod.outlook.com (2603:10b6:a03:89::27) by BYAPR11MB3846.namprd11.prod.outlook.com (2603:10b6:a03:f5::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20; Mon, 13 Jul 2020 15:24:11 +0000
Received: from BYAPR11MB2887.namprd11.prod.outlook.com ([fe80::70a6:bb5b:16b:4f9b]) by BYAPR11MB2887.namprd11.prod.outlook.com ([fe80::70a6:bb5b:16b:4f9b%7]) with mapi id 15.20.3174.025; Mon, 13 Jul 2020 15:24:11 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Qin Wu <bill.wu@huawei.com>
CC: NetMod WG <netmod@ietf.org>
Thread-Topic: Key selection for next hop list in RFC8349
Thread-Index: AdZWhmfYix7o6MgpRImltxG5950BaACgbmeA
Date: Mon, 13 Jul 2020 15:24:11 +0000
Message-ID: <39AE9057-37B8-4F92-9D38-EF23073DFE9B@cisco.com>
References: <B8F9A780D330094D99AF023C5877DABAAD81A3AB@dggeml531-mbs.china.huawei.com>
In-Reply-To: <B8F9A780D330094D99AF023C5877DABAAD81A3AB@dggeml531-mbs.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.38.20061401
authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [136.56.133.70]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 40faf4a4-edde-405f-bc35-08d82740cb8c
x-ms-traffictypediagnostic: BYAPR11MB3846:
x-microsoft-antispam-prvs: <BYAPR11MB3846543A1B9A332F4241F252C2600@BYAPR11MB3846.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: sXH95YqJNqX7AuE0n0LyNJq33eqxvmYizKY/BuDs/wI0szNv+TOCCY6Yjhz0Ts3kUlUx1AAQutaD8DU9QYjdSEM4MBQ9a9aWRibCqpXJcu+HsZwD8v0cvythK+Zo8EweezexMzZSQ0o0VNzE87lni1XyYyisOleyqZ5szc6U0zbj1avIf3jNzd5jz27q3Wwd3+XNEYehPGGB+t0fBdAzwxINLN+Zn/mNRdXxA/raD9koN+ATumT7SVrHxpXKrvoJa1tVj6c9FebKbXvOPSA23G4VK3UXhpVbau17GRnVB6OV3SeE8GcLSNpRcUpCJupf
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2887.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(346002)(136003)(366004)(396003)(39860400002)(2906002)(8936002)(66946007)(33656002)(53546011)(66476007)(66556008)(64756008)(66446008)(6506007)(26005)(71200400001)(76116006)(5660300002)(91956017)(316002)(186003)(36756003)(6916009)(2616005)(4326008)(6512007)(478600001)(6486002)(8676002)(86362001)(9326002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: MMohfKukRTc7IaCPLZwxojJ5aE8O0F56b3dLhv2qq1s+9pYfd6I7pLnjytRffZc8mfnq7jCzAjBOLt4VWfdF+eogccCiN5SXqCg7ApKm/uGV25G4HnsXYI6OSfVOp+8WT2+blIZdaPYjEfVf08vUC+n/nXTbvdGbtdxjRJP359QMvH3vC8oLZ35OQSNrmK92bshv/ijABF9RmyJ3vp5b9CrYLA62RTl45b68djMDnjqdMFpTwQRC/yS3vJRSWyIYsYnOfNaIotnNVxf8PPOZDqk+mxITWksWl1wPCt8eSDTPtDc6r/Jf2zNh52zTUOCIXoGK6bvTT6HbQhxMO0LTcsvSpFnS+7CGJcM0xJQM+oUmMI2fVyF/ryiGaP4QJH6QB/3ae5qsfMMu8TDx5gNeCXj+CqGqf5GoyqFHGuyzT8h5mfw3Uh24qcN+aAsgLCxijdrSiaup5LsE2s9Uif0SOqKkZB6WR3VCQ+Jk0TfKbKs=
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_39AE905737B84F929D38EF23073DFE9Bciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2887.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 40faf4a4-edde-405f-bc35-08d82740cb8c
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2020 15:24:11.7434 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: yTGcc2Z1LJ24puoL3XnH6UuYg2KAY/GhWuFUsh0n1cT3ozw3LrrFh9PVXsVwaCHG
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3846
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.14, xch-rcd-004.cisco.com
X-Outbound-Node: rcdn-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/nko6xIIyw_jaHBEtJREmo_HlrlQ>
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: Mon, 13 Jul 2020 15:24:19 -0000

Hi Qin,

From: Qin Wu <bill.wu@huawei.com>
Date: Friday, July 10, 2020 at 2:59 AM
To: Acee Lindem <acee@cisco.com>
Cc: NetMod WG <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