Re: [bess] Comments on draft-ietf-bess-evpn-ipvpn-interworking-07

"Jorge Rabadan (Nokia)" <jorge.rabadan@nokia.com> Wed, 05 July 2023 18:04 UTC

Return-Path: <jorge.rabadan@nokia.com>
X-Original-To: bess@ietfa.amsl.com
Delivered-To: bess@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EBDD9C151098; Wed, 5 Jul 2023 11:04:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nokia.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id se--1BaRhtRn; Wed, 5 Jul 2023 11:04:32 -0700 (PDT)
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2105.outbound.protection.outlook.com [40.107.237.105]) (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 99E8AC14CEFE; Wed, 5 Jul 2023 11:03:51 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EpmeGeLLXcFrZB4eE8CZ3MFoZmAFsPQaNojTS4aaky1DWJJqRJunLKXIIqdcmVvNjv2yfdX3rGRDgw+Zkjp43tCS+eqHPG2MiyEm4UGFvfHSJIGtNYUBmazDDoDc8QyunR2DUZUO7nCemXJDaDxFCixIf3vzMnl4Wi2LZyoNvezsDFtv5eej9d7NTy9GPgf0u/5f8WDBhjQQIv90RiZ8CIus24m75I7yj9a3ZuWcg7BCalHX/b7Q6Trb4Vnz1MiyJia11g0ShYdvA2BiwlBtMJQdQCJk8DtMCfmYxfHFrblVmx1GfH6Lv6w/Yq4Unk83u0ItOVkhaHicnWW5DPX+FQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nqiqk2yyuJZoiD/JPefzfEpZ8G8S2+OExSJlDEQEnrQ=; b=f0PO1fq2l8ltOxfUWHE7dTLgtWe6k3PxEZ+tog9GjEQ1PpnwmzO2bEAT1E9RDZq0VKE8LeuGXl6B5YrCm2msgNWRtNSesOlxpXRw/DTEbSdJDIq+OKjs5Qa/czqlb9sqw421S/BLJr4l1kF2inQArmKbddeDueyqguk3HbdLwPlQ6LMYd5myM68mxRRerJvgeMxeYwS6CVgzbNRrKc0uLjraJx+53zO6aCjrP63AKSHPS2MPHQwtDAmofM0YdY2BSU334onwr9zFIA4UG+9YQpABrdAXbLqTeSdbAqXQxVtKBSLnb7HzrRacE5Ajs0vxrjjgmMEtRdCzUhxyeAM4mg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nqiqk2yyuJZoiD/JPefzfEpZ8G8S2+OExSJlDEQEnrQ=; b=F4QIn45a7NaRPgaiqOdnvHxrB2TsdygomT39mnxdsGOkppAiS91hU/DI+mk1ys/qb8J/IiUVpoh6iGwSHQ5IEJovVa5qGDNgWbaVRVvDwWdnon5/wHEbkAtXcce8s9/8xBI3ArqWNW3YLwVjGP5oSJqVqsqg/vtbrSVJ6KAOij2ZWjv1eDZn6KdC300Yge8vaG5TJeL7oSYeebwselbjBRNyiAVlJ7MrsyXdp+RCEwYA2LEteaxMOel6mqnxBMNlbVSc4ZMTtrzCF7uP7+BgFlMECVWs25IzejBUpR+DML2FyH5RnWgReOrXYWUAnDhr9NdHVRZ+JzhkyzyArnbEjw==
Received: from BY3PR08MB7060.namprd08.prod.outlook.com (2603:10b6:a03:36d::19) by DS0PR08MB8945.namprd08.prod.outlook.com (2603:10b6:8:1bd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 18:03:49 +0000
Received: from BY3PR08MB7060.namprd08.prod.outlook.com ([fe80::b650:8a9a:3707:bbd5]) by BY3PR08MB7060.namprd08.prod.outlook.com ([fe80::b650:8a9a:3707:bbd5%7]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 18:03:48 +0000
From: "Jorge Rabadan (Nokia)" <jorge.rabadan@nokia.com>
To: John Scudder <jgs@juniper.net>, "draft-ietf-bess-evpn-ipvpn-interworking@ietf.org" <draft-ietf-bess-evpn-ipvpn-interworking@ietf.org>, "bess@ietf.org" <bess@ietf.org>
Thread-Topic: Comments on draft-ietf-bess-evpn-ipvpn-interworking-07
Thread-Index: AQHZJhghdTQv8l791Em2jQ0pAGV8IK+pQ2vY
Date: Wed, 05 Jul 2023 18:03:48 +0000
Message-ID: <BY3PR08MB7060A2E2ED78EF2C44ACAB1CF729A@BY3PR08MB7060.namprd08.prod.outlook.com>
References: <9CCFD33F-5502-4AED-AC3C-F6A98F9532A9@juniper.net>
In-Reply-To: <9CCFD33F-5502-4AED-AC3C-F6A98F9532A9@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: BY3PR08MB7060:EE_|DS0PR08MB8945:EE_
x-ms-office365-filtering-correlation-id: 682894d3-2754-49e3-eb6c-08db7d822e92
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: V14eYHWsgwMUVTNo3bdW4dgfrffJiG6bn0V7KXFs4YBzq4tunMlc8jBu7Q2qKjW6IeFSjLR7DERKQck9Ci+ZjjY/hxadjLc+wpRFd3rnhLAZ+vR0dfe9Ujd59XqXwf7TsEQTw8XCyHQaNAYJJY85AkM5wxiA359XItFoXTWxrzkU86b+yzJvvdnN9E2yDUPgECRuhUPN41BQJ+p6Qt2C/qk9qtRYQsSsTPSgYU57AcpTbyzHo0hDpGQkJVCxLhfgp6NzlOkRGKmevt3gu6Tx1rjUniUum5+2oIiHolYY20Hlj6nqC7/A4tnblRg4h8kCAtgmUhdkiswGHXo4zwWi4GB18TttZF3fjDYxlSXGViSWG+LobOkHh2hoIPKNF7WUFg0oOSf+bIFczfoVqYpo2CaDCe2iZtVzu5afc2Fm70Uek03pt5AodvMYK4f3ptzoSLx0d1wkfXwazOGOTLcCNjE5nyGN9hD7UBX6h+AINE3ss6l2spC81ke0pAVzVtDX5xMgKxfxDt+dW1Igij5p7l+qXt9ZGXSeMS5mS5maz/dN7DiW+yRESckfL65291l4A1fI1bD3k3WPyrQKCEdDAq/VEk/qMW8/p9yRBmS8r1FhzYSRZJErrB/v6Ke3PTa1xMKumuZDy8lTHDMM8VzPxw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR08MB7060.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(136003)(396003)(366004)(346002)(376002)(39860400002)(451199021)(8936002)(8676002)(41300700001)(110136005)(55016003)(7696005)(316002)(52536014)(2906002)(5660300002)(71200400001)(66556008)(64756008)(66476007)(76116006)(66446008)(91956017)(33656002)(478600001)(186003)(38070700005)(86362001)(38100700002)(66946007)(122000001)(166002)(53546011)(83380400001)(6506007)(26005)(9686003)(82960400001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: HK4hPn6xT8QJt0cV3opEMj2U0sj8GfLPrqBra587DFtMoE8tUfJQoPjsTzg+6FQ12GmJxoVDeohxRCPAVwfq0mWdAlMa+e5e/uIj7k1qE7+5rTI12YZDsMEtevDhXlSbxCU6gR554qGUFFFZ/NUt8CLYnMYAQmw7Hv6mzP3e2DT8h0fwnnNlw6MmbQ25uxvbOwQZ54WYjKF43HPsW0u6C1fovWmVdoJwtcCgjJ1wq0pZmhVsIsQ5H4awafSllxzkyQMiYYbdUV34LOCOQzh7+qPT4CMdndyzj2JEYJGxwpqO4ihqQMhmIHbzFN1GezBn5CL09o0mYIYQbvELwl80VJqOZfGoXHgmpFm1MrOWKQ/kjtgVQ4qVOg/dZY7MdNeqkuNfjJWl31+DvJSJn0RdZ6Oc8pdaAz6FZOuIuG8VqlHYOL0CMcSpzZ6F+aRqeafihhV1Zas/V4YKlsw1avsMn58sTl5f6VV+W5cheyuH7QlLfnW5wk5eSAh7a21EPVSz7798YfwLxNCkmih3vy1DBmJPZspgloUknEySl2yyNYu/wiZrzQGBczZwCUYzho9bjSo5DiuNljuhXOdvQG8NmyymE89/ONHQdS5OtFzk2QfHHgBuccJkQs4r+u8tXZYH8g1UT+OMZbmQPC92M8YYNlOFCS8fEpN+FxUh6kFF7co5CMbop0OcvVHubGW0yI+4G8GKYg8rTzYP8W7PBKSpV3ckRyPGxFJTm8JUn+1mZ7fP1v7fqs6W79SKXIItKhgv3v5VAmY7waZjM6f/N/mNV7cL+bsjqvjg4VDOYLOp76jEqHP73H0fVg8m2/GNo8HI8peNW509mNUidxCZsoiPaqt+lPYzVr1Vv/hGslEh7Uuz84JCUu/AN0TXkBKRHFg3YdEtwysuuRWxqDCEoalFgeMPmfbD3C8hRl4YYCaxuBo1scqPW4ZBmdFlF7m6thHSot5mS/Wh/qcgm4yaPX828QtgD5BwYSGpBa+3PIHC5Kdlg176dIQHiFGtfwbamX7qZ27JmXtDrm4ZDw7TSTIWNtTI/0SLKlYW7m5ShZGuYSpr63qCxjB9SV6GOo4T1XFkpg04LlQX29bPL+OBJQ4vbWZ7M3jXsBA36JftdkaMnAhDtQXti3saQUZjjqwHYNwIaj91YE+Mv08HfIFL5joV3ZA7/f+j+tMAaG8VIbMyCyT41SLY8xr3utq6x6L36yfg+fkdnzloN6m565x402+1Oar6LUCGuGkICfd5JgmhZIMD5prfx3ultAXhquKWqGv5N7BYxxdX+0XKImfvsQNi1GQORlR3VIRlquMskKJsGkfhfWXmIzkTkX3SuhD/tGw/kW77ujolrNYv9kF7+Mq0qGWH7ei8MUZjkMHdr2kC0GNdYXpzq5XP6ax8/L2t2pthuyBZ+QatibiZLc01vfTpGqORpeb1Qvx5b/+tq0NPAuLfAvuGOgn7Ph73bnFact9hDms4RbdD9Z0+aaUVxsByexw9Pvi3+8JQU7GLC3Apfy7AaExYvnH+419J9C5ZHm2sh/BJEtIO7UjF2PJok/n4uAMDS7N8EmsLJ+Wt8FVeC5PsjjXP1aTD+bAndh9ieF5czpuhuwLHzyi0g9IzChvgHw==
Content-Type: multipart/alternative; boundary="_000_BY3PR08MB7060A2E2ED78EF2C44ACAB1CF729ABY3PR08MB7060namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BY3PR08MB7060.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 682894d3-2754-49e3-eb6c-08db7d822e92
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2023 18:03:48.3364 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Pz4ujkoUTJWzDxf37amn6RXnG1bCEkLyKvEU2LqvLz6CIE9XJnihpug0Cl24HlX0zsDxVaDMf82hI97DtkpN2Q==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR08MB8945
Archived-At: <https://mailarchive.ietf.org/arch/msg/bess/IZWAKfTpLXWyRs9WYENNSC9Oaes>
Subject: Re: [bess] Comments on draft-ietf-bess-evpn-ipvpn-interworking-07
X-BeenThere: bess@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: BGP-Enabled ServiceS working group discussion list <bess.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bess>, <mailto:bess-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bess/>
List-Post: <mailto:bess@ietf.org>
List-Help: <mailto:bess-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bess>, <mailto:bess-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jul 2023 18:04:37 -0000

Hi John, all,

We published version 08. This version removes the use of D-PATH from SAFI 1 routes completely (this is still an ongoing discussion with the IDR chairs) and addresses your comments below.

Please see in-line with [jorge].

Thanks for the email!
Jorge


From: John Scudder <jgs@juniper.net>
Date: Wednesday, January 11, 2023 at 3:55 PM
To: draft-ietf-bess-evpn-ipvpn-interworking@ietf.org <draft-ietf-bess-evpn-ipvpn-interworking@ietf.org>
Cc: bess@ietf.org <bess@ietf.org>
Subject: Comments on draft-ietf-bess-evpn-ipvpn-interworking-07
Hi Authors and WG,

I recently looked at some parts of draft-ietf-bess-evpn-ipvpn-interworking-07. This isn't a full review but I noticed some things of concern that I thought I'd share.

Regards,

--John

# COMMENTS

## Section 4

```
An ISF route received by a gateway PE with a D-PATH attribute that contains one or more of its locally associated DOMAIN-IDs for the IP-VRF is considered to be a looped ISF route. The ISF route in this case MUST be flagged as "looped" and be installed in the IP-VRF only in case there is no better route after the best path selection (Section 6).
```

But... this is just a restatement of the general condition for route installation in any case. A route is never installed unless there is no better route after best path selection -- if there is a better route, the better route is installed instead.

It seems to me that either the explanatory text here is wrong/missing something, or loop detection is genuinely not being used for anything.

I did notice that Section 8 (2(b)) contains a rule related to loops ("In this case the route is considered to be a looped ISF route, as described in Section 4 and hence MUST NOT be exported in ISF SAFI-y."), maybe that is where the entire meat of loop suppression resides? But this was not clear to me.

For comparison, here is how RFC 4271 says to handle AS_PATH loops (Section 9.1.2):

```
   If the AS_PATH attribute of a BGP route contains an AS loop, the BGP
   route should be excluded from the Phase 2 decision function.
```

(If this were an IESG ballot, this would be a DISCUSS question, since loop suppression is presented as a major feature of this spec.)

[jorge] excellent point as usual. Indeed, in the first versions of the draft the text followed the loop detection as in the as_path case, however in the latest versions the authors agreed to change this since there were use cases where installing the route provided faster convergence upon certain failures in the Gateways and, in order to avoid loops, we only needed to prevent re-exporting the ‘looped’ route. So we missed to clarify this aspect in section 4. The new text says:


  1.  An ISF IPVPN or EVPN route received by a gateway PE with a D-PATH attribute that contains one or more of its locally associated DOMAIN-IDs (for the IP-VRF) is considered to be a looped ISF route for the purpose of re-exporting the route to the adjacent domain in a Gateway PE. The ISF route in this case MUST be flagged as "looped", MUST NOT be exported, and MAY be installed in the IP-VRF only in case there is no better route after the best path selection (Section 6<https://author-tools.ietf.org/api/export/79502ba6-6c80-49cf-8021-519ba10c48b2/draft-ietf-bess-evpn-ipvpn-interworking-08.html#sect-6>). The ISF_SAFI_TYPE is irrelevant for the purpose of loop detection of an ISF route. In other words, an ISF route is considered as a looped route if it contains a D-PATH attribute with at least one DOMAIN-ID matching a local DOMAIN-ID, irrespective of the ISF_SAFI_TYPE of the DOMAIN-ID.

For instance, in the example of Figure 2<https://author-tools.ietf.org/api/export/79502ba6-6c80-49cf-8021-519ba10c48b2/draft-ietf-bess-evpn-ipvpn-interworking-08.html#ure-multiple-domain-dci-example>, gateway GW1 receives TS1 prefix in two different ISF routes:

o    In an EVPN IP Prefix route with next-hop PE1 and no D-PATH attribute.

o    In a SAFI 128 route with next-hop GW2 and D-PATH = {length=1, <6500:1:EVPN>}, assuming that DOMAIN-ID for domain 1 is 6500:1.

Gateway GW1 flags the SAFI 128 route as "looped" (since 6500:1 is a local DOMAIN-ID in GW1) and it will not install it in the tenant IP-VRF, since the route selection process selects the EVPN IP Prefix route due to a shorter D-PATH attribute (Section 6<https://author-tools.ietf.org/api/export/79502ba6-6c80-49cf-8021-519ba10c48b2/draft-ietf-bess-evpn-ipvpn-interworking-08.html#sect-6>). Gateway GW1 identifies the route as "looped" even if the ISF_SAFI_TYPE value is unknown to GW1, i.e., any value different from the ones specified in this document).



## Section 4

Also, I don't think the method of assignment of the Local Admin part of the Domain ID is specified. I mean, presumably it's... local... but it seems like some words should be said. Indeed, I found the entire definition of the domain-id pretty mystifying -- it uses six bytes for two fields that appear to be arbitrary (the global-admin part) and even more arbitrary (the local-admin part) without getting any evident benefit from creating that structure.
[jorge] the authors agreed on giving it a structure that could be more user friendly for configuration or auto-derivation if needed. Added the following:
“The Local Administrator sub-field is any local 2-octet value, and its allocation or configuration is a local implementation matter.”

## Section 5.2

5.2 (1) implies that Wide Communities (draft-ietf-idr-wide-bgp-communities-08) SHOULD NOT be propagated (since your rule is in effect, "anything not permitted is prohibited"). Is this exclusion deliberate? FWIW I see that Wide Communities has passed IDR WGLC.
[jorge] added, thanks.

## Section 5.2

While I'm talking about it, the final bullet of (1) is a little ambiguous:

```
The following set of Path Attributes SHOULD be propagated by the gateway PE to other ISF SAFIs (other BGP Path Attributes SHOULD NOT be propagated):
...
- Communities, Extended Communities and Large Communities, except for the EVPN extended communities, Route Target extended communities and BGP Encapsulation extended communities.
```

I guess you mean that everything after the "except for" is excluded? Because of the shortcomings of English grammar, this isn't clear as written. Perhaps something like, "Communities, Extended Communities and Large Communities, except in the exception cases detailed in point 4."
[jorge] changed as per your suggestion, thanks!

## General

By the way, I think the usual concern about the use of SHOULD (NOT) instead of MUST (NOT) is going to apply, and the document would benefit from a review to convert these to MUST when possible or supply further explanation about what exception cases exist otherwise.
[jorge] most of the normative language that uses SHOULD is related to the propagation of attributes. We listed what we agreed the gateway PE has to propagate or block, but there may be other attributes (an example is the wide communities that you pointed out) that may come up in the future that need propagation and are not included in the list. That’s why we did not want to be so strict. For the rest of the sections we tried to use “MUST” as much as possible.

## Section 5.3

```
AS_PATH is aggregated based on the rules in [RFC4271]. The gateway PEs SHOULD NOT receive AS_PATH attributes with path segments of type AS_SET [RFC6472].
```

That's not a good use of the RFC 2119 keyword, I think you mean something like "gateway PEs are not expected to receive...".
[jorge] changed, thanks.

# NITS:

- "as though it would" --> "as it would" (drop 'though')
[jorge] changed, thanks.