Re: [Lsvr] Need clarification on IGP-Metric TLV for LS Link Attributes in BGP-SPF deployments

"Acee Lindem (acee)" <acee@cisco.com> Sat, 21 March 2020 14:19 UTC

Return-Path: <acee@cisco.com>
X-Original-To: lsvr@ietfa.amsl.com
Delivered-To: lsvr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 513C13A1406; Sat, 21 Mar 2020 07:19:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.597
X-Spam-Level:
X-Spam-Status: No, score=-9.597 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.001, RCVD_IN_MSPIKE_WL=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 header.b=cMqHX68y; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=eEgBbD7X
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 YkMewoADNXph; Sat, 21 Mar 2020 07:19:40 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9E1683A0973; Sat, 21 Mar 2020 07:19:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=36141; q=dns/txt; s=iport; t=1584800380; x=1586009980; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=FpSGczbJWVDT0GNLu7qoDNaB86rEITDy9pb/Vk7aZe0=; b=cMqHX68y1RMSjHyd1eDhk8mUT1Vc608MQ2nCZHiTrYMbruisDM9wRWZG c3S/7eI0Gd94AmkXVVAO0UNk+eKe1ilr7epr/qjzD3En8F/SZ0byhp5DE 0BOjKGIPA1PfCzAgNYd4AevjShq4O8cHepyUw6kHbMjO2EE8Ts1adz3Z4 Q=;
IronPort-PHdr: 9a23:JjzbbRwbVGUxZtPXCy+N+z0EezQntrPoPwUc9psgjfdUf7+++4j5YRGN/u1j2VnOW4iTq+lJjebbqejBYSQB+t7A+GsHbIQKUhYEjcsMmAl1CcWIBGXwLeXhaGoxG8ERHFI=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CPGQDuIXZe/5JdJa1mHAEBAQEBBwEBEQEEBAEBgXsCgSMvJCwFbFggBAsqhBiDRQOKcYJfiWqOMoEvgSMDVAkBAQEMAQEtAgQBAYRFAheCDSQ6BA0CAwEBCwEBBQEBAQIBBQRthVYMhWMBAQEBAxIRHQEBJRIBDwIBCBEDAQIhAQYDAgICHxEUCQgCBA4FIoMEAYF+TQMuAaBEAoE5iGJ1gTKCfwEBBYUnDQuCDAmBOAGMLhqCAIEQKCCCHy4+ghuCRwkGEIJbMoIskHeFeJhsMkQKgjySSoQ9HYJMjQCMDZBdiXSQLQIEAgQFAg4BAQWBbAwTgVhwFWUBgkFQGA2OHQkaFYM7ilV0gSmOKQEB
X-IronPort-AV: E=Sophos;i="5.72,288,1580774400"; d="scan'208,217";a="741397228"
Received: from rcdn-core-10.cisco.com ([173.37.93.146]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 21 Mar 2020 14:19:37 +0000
Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by rcdn-core-10.cisco.com (8.15.2/8.15.2) with ESMTPS id 02LEJbiw008120 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Sat, 21 Mar 2020 14:19:37 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 21 Mar 2020 09:19:37 -0500
Received: from xhs-rtp-001.cisco.com (64.101.210.228) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 21 Mar 2020 10:19:29 -0400
Received: from NAM10-MW2-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-001.cisco.com (64.101.210.228) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sat, 21 Mar 2020 10:19:29 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=esP2x8qFhLnlVlIK47jOHjto9kYhvpmb4JjzTnnUWC2j9Qhnva4RHkhtiMY5rmCNFbTzK7Om8krvO7ubcOJN0AQWRS0CPC68P020iKn2SNwUH2U04t6QrXpyoEpPcqKHzRHJfBtk96IVqF8sFFcVAPPOipB25NdJKlBKE7GJivWEagA4To4dS4WoVpZcOekzD/hBakho5NB4rKY+1PCVg6yjdrAMk3NCqbg+Xw1Sd2DIvpVB+n1Xm1TFPWYkSvxlqVKM8FDLwD6Nc7kN0tbQSTWUzRMAHnNC9EJsZ/YUbCinu+rbDcHBez5s2/lBt6+zh1IdARVCyPubP9hghrJ6Vw==
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=FpSGczbJWVDT0GNLu7qoDNaB86rEITDy9pb/Vk7aZe0=; b=e+Jp+mK3rdkrFKgvG0zETY1Hmpo52tiUEGhTbOdnkGiGBdI+zDnDnOHC0alD1cUnexSbG6MnB3BS1oo0k0llhZgUIr6eClEYwqgVSYBFg2t9o2GP/C5vdG0nZY7EfbN+jXaB8Y4dtlWe9OXDz1beJd7EdSF5V6NRv6ZAWJ0Rjaalz1Uc7JdyatO3zQk521LMRAWH5edWyszzrAzeiE9NuESZEwqKTUqbIXyy8QJge6NGI/ufacg0sMvnYF8i2k2dDnbwn9nw7dDfeDODuuSsUzpTTEbuoH8+PBwh+R97eynNM+WcB8aweXsfNUfpkDje8oSh18rgr9UxL1NshmINLg==
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=FpSGczbJWVDT0GNLu7qoDNaB86rEITDy9pb/Vk7aZe0=; b=eEgBbD7XBL1sqlNtsY6vtT15BkOzWlBpb1B627Px5MhrHIaD6mhwjCiULmo+vXefGl3b5L2mTUnqBxDrz3QyLe8JcM+HFku3uyOBHPchj1MTqJruYzRcOQn/GADoFQc5nHiXDDEyQgE/znZ9QRUwgexoweOS28/ClB3SvGtG2qM=
Received: from BN8PR11MB3794.namprd11.prod.outlook.com (2603:10b6:408:8f::13) by BN8PR11MB3795.namprd11.prod.outlook.com (2603:10b6:408:82::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19; Sat, 21 Mar 2020 14:19:25 +0000
Received: from BN8PR11MB3794.namprd11.prod.outlook.com ([fe80::55b2:c415:675f:5fb7]) by BN8PR11MB3794.namprd11.prod.outlook.com ([fe80::55b2:c415:675f:5fb7%3]) with mapi id 15.20.2835.017; Sat, 21 Mar 2020 14:19:25 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Pushpasis Sarkar <pushpasis.ietf@gmail.com>
CC: "draft-ietf-lsvr-bgp-spf@ietf.org" <draft-ietf-lsvr-bgp-spf@ietf.org>, "lsvr@ietf.org" <lsvr@ietf.org>
Thread-Topic: Need clarification on IGP-Metric TLV for LS Link Attributes in BGP-SPF deployments
Thread-Index: AQHV9ifHldI2Y/pjvUWBbZk/jhUzi6hRnpcAgAF2WwD//8n9gIAASvuA//++KIA=
Date: Sat, 21 Mar 2020 14:19:25 +0000
Message-ID: <140CF301-A548-4FD0-B103-759817A49BA2@cisco.com>
References: <CAEFuwkh=zmq_W_DD_MLePtc2pAZY7T1aENbbE01_cU588ZxDxQ@mail.gmail.com> <7DFD0D7F-65FC-4032-BCD2-7A2A1CA44512@cisco.com> <CAEFuwkjL2-LkLeLv1UYS4ZCcjEZF5RHtiH=sD=hqtrqMVUAacg@mail.gmail.com> <8FF70B9D-58AF-4A92-BD43-C55186C3A8DB@cisco.com> <CAEFuwkiJ_Z6+BBHPnQqYymji0mDmANJc=M3iY2pwLrhK581DCg@mail.gmail.com>
In-Reply-To: <CAEFuwkiJ_Z6+BBHPnQqYymji0mDmANJc=M3iY2pwLrhK581DCg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.35.20030802
authentication-results: spf=none (sender IP is ) smtp.mailfrom=acee@cisco.com;
x-originating-ip: [2001:420:c0c8:1003::801]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1bf5e70e-471b-4eb2-8baf-08d7cda2dc09
x-ms-traffictypediagnostic: BN8PR11MB3795:
x-microsoft-antispam-prvs: <BN8PR11MB3795130F09CF397008342A60C2F20@BN8PR11MB3795.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 034902F5BC
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(346002)(376002)(396003)(39860400002)(199004)(53546011)(66946007)(478600001)(54906003)(66446008)(64756008)(66476007)(2906002)(5660300002)(91956017)(6916009)(66556008)(6486002)(76116006)(316002)(8676002)(71200400001)(186003)(86362001)(4326008)(2616005)(6506007)(81156014)(8936002)(33656002)(81166006)(36756003)(45080400002)(6512007)(9326002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR11MB3795; H:BN8PR11MB3794.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: oH5cBwIn76PAhxr/duj/PfXRVE8OBzan39gq6zCqJQry3BDiUMXfc5WFECND0Yb7SdOHWA3NdNdhyCe1w41qhaBuWbPk8QBE2hLOaAKIX4hiDpLwEAvy76TulxFzN5gQpk96kjbx53Sl00qGzpy5uDg4vIJAitr6TPf1bXdaqW7DycaBOUrcLTykryWq+UQ8vPvxUX0xZBPgbslsy/BVMo+KUETyn3/j0igc1Q47J8mN/jyiGhKCLsQfqC4ZTeaIcDAg3Xg9TjOd4vs3Zskf1jXqGAzX0N44jYBhoJFLr3tAQL8VbOzksy+br6zpuT7XJUVYawkyiLXoGLYDiPqhQ4ygeMz4AKAlO1XlkJejfCNrMzuErWWATHpKouIz5d5YKs6r44xepZZ9Xe9qu12VYStT1n9uO8G37sUe80b5XXgZ+B4/zaeha5gv0Dg5GSo3
x-ms-exchange-antispam-messagedata: TQWVPMh6aFCJTYHUeVr6aGtLLUJ4BIHAhR/9FiVcj7t28RvihgXVd4jTM78fNEHHneAx+QXXvFUlZx4c5Qb/CCSWfH8MLz9bHavV5vD8BENLo6W1e4v6hMEIq/UglCbVct6Qj42FEODKah3IIuRE/ivRn52yN60RUg6hArY+h4Q=
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_140CF301A5484FD0B103759817A49BA2ciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 1bf5e70e-471b-4eb2-8baf-08d7cda2dc09
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Mar 2020 14:19:25.4324 (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: wuVNx0BI1UN0e6S1ZXLziMvdJ49VObpZX8NduS03DFMqC9DEaxZnhKdy036WPppB
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR11MB3795
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.11, xch-aln-001.cisco.com
X-Outbound-Node: rcdn-core-10.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsvr/HqtbCrkCHw9azkiLYV3g4Kemb6A>
Subject: Re: [Lsvr] Need clarification on IGP-Metric TLV for LS Link Attributes in BGP-SPF deployments
X-BeenThere: lsvr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Vector Routing <lsvr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsvr>, <mailto:lsvr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsvr/>
List-Post: <mailto:lsvr@ietf.org>
List-Help: <mailto:lsvr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsvr>, <mailto:lsvr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Mar 2020 14:19:45 -0000

Hi Pushpais,
I think we can get away with this w/o modifying RFC 7752 since, as you noted, it just says it is variable.
Thanks,
Acee

From: Pushpasis Sarkar <pushpasis.ietf@gmail.com>
Date: Saturday, March 21, 2020 at 10:15 AM
To: Acee Lindem <acee@cisco.com>
Cc: "draft-ietf-lsvr-bgp-spf@ietf.org" <draft-ietf-lsvr-bgp-spf@ietf.org>, "lsvr@ietf.org" <lsvr@ietf.org>
Subject: Re: Need clarification on IGP-Metric TLV for LS Link Attributes in BGP-SPF deployments

Hi Acee,

I thought RFC7752 says it is a variable length TLV. 1-byte, 2-byte, and 3-byte metrics are possible lengths. Can't we add a 4th possible length via this draft? If not then a new TLV may be a better option.

However if I remember correctly, there is a RFC7752 bis being worked upon. Is there an option we can add it in that document? Not sure if it will be a proper way or not. Just thinking out loud :)

Thanks
-Pushpasis


On Sat, Mar 21, 2020 at 7:17 PM Acee Lindem (acee) <acee@cisco.com<mailto:acee@cisco.com>> wrote:
Hi Pushpasis,
If we use a length of 4, we’d need a new TLV (or modify RFC 7752). I think the former would be a better option.
Thanks,
Acee

From: Pushpasis Sarkar <pushpasis.ietf@gmail.com<mailto:pushpasis.ietf@gmail.com>>
Date: Saturday, March 21, 2020 at 9:00 AM
To: Acee Lindem <acee@cisco.com<mailto:acee@cisco.com>>
Cc: "draft-ietf-lsvr-bgp-spf@ietf.org<mailto:draft-ietf-lsvr-bgp-spf@ietf.org>" <draft-ietf-lsvr-bgp-spf@ietf.org<mailto:draft-ietf-lsvr-bgp-spf@ietf.org>>, "lsvr@ietf.org<mailto:lsvr@ietf.org>" <lsvr@ietf.org<mailto:lsvr@ietf.org>>
Subject: Re: Need clarification on IGP-Metric TLV for LS Link Attributes in BGP-SPF deployments
Resent-From: <alias-bounces@ietf.org<mailto:alias-bounces@ietf.org>>
Resent-To: Keyur Patel <keyur@arrcus.com<mailto:keyur@arrcus.com>>, Acee Lindem <acee@cisco.com<mailto:acee@cisco.com>>, Shawn Zandi <szandi@linkedin.com<mailto:szandi@linkedin.com>>, Wim Henderickx <wim.henderickx@nokia.com<mailto:wim.henderickx@nokia.com>>
Resent-Date: Saturday, March 21, 2020 at 9:00 AM

Hi Acee,

My personal preference will be having it as a 4-byte metric due to ease of implementation as well as encoding/decoding efficiency due word-size alignment. It may not be a big thing but encoding/decoding a 3-byte value to/from byte stream is few more CPU instructions than just a 4-byte read from a memory address.

Thanks
-Pushpasis

On Sat, Mar 21, 2020 at 12:10 AM Acee Lindem (acee) <acee@cisco.com<mailto:acee@cisco.com>> wrote:
Hi Pushpasis,
I think for BGP-LS SPF we should always use 3 octet metrics. This will offer the most flexibility w/o redefining the TLV. If you agree, I will update the SPF draft to state this.
Thanks,
Acee

From: Pushpasis Sarkar <pushpasis.ietf@gmail.com<mailto:pushpasis.ietf@gmail.com>>
Date: Monday, March 9, 2020 at 11:31 AM
To: "draft-ietf-lsvr-bgp-spf@ietf.org<mailto:draft-ietf-lsvr-bgp-spf@ietf.org>" <draft-ietf-lsvr-bgp-spf@ietf.org<mailto:draft-ietf-lsvr-bgp-spf@ietf.org>>
Cc: "lsvr@ietf.org<mailto:lsvr@ietf.org>" <lsvr@ietf.org<mailto:lsvr@ietf.org>>
Subject: Need clarification on IGP-Metric TLV for LS Link Attributes in BGP-SPF deployments
Resent-From: <alias-bounces@ietf.org<mailto:alias-bounces@ietf.org>>
Resent-To: Keyur Patel <keyur@arrcus.com<mailto:keyur@arrcus.com>>, Acee Lindem <acee@cisco.com<mailto:acee@cisco.com>>, Shawn Zandi <szandi@linkedin.com<mailto:szandi@linkedin.com>>, Wim Henderickx <wim.henderickx@nokia.com<mailto:wim.henderickx@nokia.com>>
Resent-Date: Monday, March 9, 2020 at 11:31 AM

Hi Authors,

I need a small clarification on how the Link IGP-Metric TLV (type 1095) for the links originated by an BGP-SPF speaker look like. My doubt is specifically on what would be the length of the metric value. For example, following is the excerpt from RFC7752 section 3.3.2.4 which specifies the length to be 1, 2 or 3 bytes for ISIS narrow-metrics, OSPF and ISIS wide-metrics.


3.3.2.4.  IGP Metric TLV



   The IGP Metric TLV carries the metric for this link.  The length of

   this TLV is variable, depending on the metric width of the underlying

   protocol.  IS-IS small metrics have a length of 1 octet (the two most

   significant bits are ignored).  OSPF link metrics have a length of 2

   octets.  IS-IS wide metrics have a length of 3 octets.



      0                   1                   2                   3

      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     |              Type             |             Length            |

     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     //      IGP Link Metric (variable length)      //

     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+



                     Figure 21: IGP Metric TLV Format

What should be the length of the metric field when the origin is a BGP-SPF speaker?

Looking forward to your clarification on this. Also it will be appreciated a lot if a sentence or two can be added to the draft clarifying the above in the next version.

Thanks and regards,
-Pushpasis