Re: [RTG-DIR] [mpls] Rtgdir last call review of draft-ietf-mpls-bfd-directed-26

Andrew Alston <Andrew.Alston@liquidtelecom.com> Thu, 04 April 2024 19:26 UTC

Return-Path: <Andrew.Alston@liquidtelecom.com>
X-Original-To: rtg-dir@ietfa.amsl.com
Delivered-To: rtg-dir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A1DFC14F70D; Thu, 4 Apr 2024 12:26:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-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 (1024-bit key) header.d=liquidtelecom.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 zw2STQLiQwQV; Thu, 4 Apr 2024 12:26:15 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2133.outbound.protection.outlook.com [40.107.21.133]) (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 A15B6C14F6AE; Thu, 4 Apr 2024 12:26:13 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g85GKVxzMEFtxFYHqk3f/u6n36a1Y+t59Fz1GqFaAjs5W6uYSAJxAG4GKsHlym3U3ybTpTN2MvD45JkbK8Qpn6VVKvqE/RuAarMqcHgDVi4UvEVTxThq8uKPUYFUCPWJOKmSnktM9ZUH8+3qK53k4GokMVZNO2xjBXQy8AZqfVc2Nf/4u39936uKexHR+i6or9ffKpU8tBCbmpQVyM4kZe+9s+114gJK2C3CrSmCl2T+Mipx04OYFTPHpv2N9fCOwFr5s7TacvjORaSa++dedEpvCgGUEGMAuTf9pxkRFHhGR3rGeXb6dDw8XuSSb72deUXwOdsiDt959aAnM6tT8Q==
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=MBING0QYl8Ylu6i+QspcmQXD9KdSOFCcKS7XU8+IrvQ=; b=cd0RCV7eVCEdUNcOYBQ7kEnCpnRx7BNfxSt4WIEztvE34845P0OwHtqomLgncLbk6xmgB/aZrF+D1zEuMGNYkC8+3uwChwS2nnWGua2rKaJ7fbtctQ5cLvka06b+MQ7qPssIkqjmhBFb3cT764RxuOYr+AJcJr6WYFL9FBN7i9d64m2HI0/IbV7nnnFCG18oxZgSZyS5pjaDqCQPc35XkgHiLQydu/oPsHD3Q9Nzasliai5ABkZ40OkGQcKVll4S89Gc3KNG+QMqA8PPcIIxo30nGLenGK9tZBaRCciMzQGH3qtI1VkVqK4fblI2jrATzcUMLu9eUg2KyZx5wfWbtA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=liquidtelecom.com; dmarc=pass action=none header.from=liquidtelecom.com; dkim=pass header.d=liquidtelecom.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liquidtelecom.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MBING0QYl8Ylu6i+QspcmQXD9KdSOFCcKS7XU8+IrvQ=; b=Pq0G4odUJB0CBgsI8bLsVAexzt9x5Wu3KGylvW/9vwUizLnI+5jh31t2oSoo/0tXqLevIY4stajKUaK0Y2/YxJGSpSBeQpPZ8i5qkvuuQdWNXP3PKob7u3nsa+UvFILuugQe+U2REmRmFUjFjTEE0pRMr32B9HNR0XOpi4Sz/0k=
Received: from DU5PR03MB10563.eurprd03.prod.outlook.com (2603:10a6:10:51b::8) by DB9PR03MB7810.eurprd03.prod.outlook.com (2603:10a6:10:2c2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Thu, 4 Apr 2024 19:26:09 +0000
Received: from DU5PR03MB10563.eurprd03.prod.outlook.com ([fe80::6e87:e0f:326b:851]) by DU5PR03MB10563.eurprd03.prod.outlook.com ([fe80::6e87:e0f:326b:851%3]) with mapi id 15.20.7452.019; Thu, 4 Apr 2024 19:26:08 +0000
From: Andrew Alston <Andrew.Alston@liquidtelecom.com>
To: Greg Mirsky <gregimirsky@gmail.com>, Andrew Alston - IETF <andrew-ietf@liquid.tech>
CC: "rtg-dir@ietf.org" <rtg-dir@ietf.org>, "draft-ietf-mpls-bfd-directed.all@ietf.org" <draft-ietf-mpls-bfd-directed.all@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, "mpls@ietf.org" <mpls@ietf.org>, "rtg-ads@ietf.org" <rtg-ads@ietf.org>
Thread-Topic: [mpls] Rtgdir last call review of draft-ietf-mpls-bfd-directed-26
Thread-Index: AQHahkyRDzRl1B1i1kmLgxxo/NxrZrFYV9YAgAAmQKs=
Date: Thu, 04 Apr 2024 19:26:08 +0000
Message-ID: <DU5PR03MB1056394A876995BD8B72D0301EE3C2@DU5PR03MB10563.eurprd03.prod.outlook.com>
References: <171220661785.52439.11310530719909954079@ietfa.amsl.com> <CA+RyBmUwL2RwvP0agYWLw+6AEDUx_62K93A7=L3QMnuF11+5Rg@mail.gmail.com>
In-Reply-To: <CA+RyBmUwL2RwvP0agYWLw+6AEDUx_62K93A7=L3QMnuF11+5Rg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_99ef9a43-ff34-4715-a5f5-dfd82916d644_Enabled=True; MSIP_Label_99ef9a43-ff34-4715-a5f5-dfd82916d644_SiteId=68792612-0f0e-46cb-b16a-fcb82fd80cb1; MSIP_Label_99ef9a43-ff34-4715-a5f5-dfd82916d644_SetDate=2024-04-04T19:21:49.6992098Z; MSIP_Label_99ef9a43-ff34-4715-a5f5-dfd82916d644_ContentBits=0; MSIP_Label_99ef9a43-ff34-4715-a5f5-dfd82916d644_Method=Standard
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: DU5PR03MB10563:EE_|DB9PR03MB7810:EE_
x-ms-exchange-atpmessageproperties: SA
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: aOku502/CwSvmFq0w1i1cT7LKaG/TNo3CJyjUZOVhqBkdBEq3beHJzh2TBEhkO3UMxY6402MDXk2J8hIAe4AimWgIXWPJwRCKL4Op6796d9SA9L79k1IT527I2zQ03odIyUfpEBsYTCPZUg4kzLO223IW3n44reiGNbGU6WuHkS3HS8SB371yjTJruWtb+ZFfjePYorX2lb8h0yqB4DjlkPjtCuD3a/6N6rwOrsOQHfQi/UVELX73HlIzvz9V0+3AaTXlOYFuFhJZUjW6c+9Mh3rPQuQCdbNUBqGE7HA8JCC61AulDLjfFuYPoFlEs+aUYQwQMdAwsVv0ywHBlko6q0FYytJqrTGk35qBAIVRiTBktxkVxB+lx61UmQC7B4vZw3HSYkbJGviaFB1MdiSTSka+xZideq/gK11bPH5Wv2+I5jDoJ62Yp5YoVyOzT+heThHiUqv4pDO/dJDJ8+/m0nFIDO+KTQE/9As4Lgps5LiF9xQw+HnOB3kJz82nq1Q/YV9lJNU/zDBGNRaR+xk5mecXoAS8scQ9QQdmLFJ8TuJGkoh0M7jLdqP6A0CAfMyYTfYqgi61a2j6JVT67Y9283Ps0IrHiTKKzpBBvCClyw=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU5PR03MB10563.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(1800799015)(376005)(366007); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 5HhTX+5J4hCZnDdD+4hod/DH84UBJaundn23zi1tmfgrVIM8/faXLR2AXlAWYCA+/EKs9snIHN7gWhKUkR2PfPz9NPIymHLPgbtMRNNSegZwSvPhqwcAGET4sqaA1Xc8Z1QeQDgLojsWP103Dxxov13rEj3msrEQL0tBxfTl6FjY8r4E6Z4l26uMkP5mT+IMdhUFGBYlWLGXL10NmK1TFaDEhniNpNgJJdIchexBKBAprxrUE0Qm6Z1Nj5MUakEWkhieKOd0jnNrfpAKe2lQD+Y99eEy9/DcGy+94XO6ra+mSbEuccLV1Ys0RFf/uxPlfvXqM9Ip4URygdt0dZeJL2A23p1ja6zRigXZvL8LAa7cFEjFDQyiN/VBolFYxyjTb2mJxN0YcmIsHOTcEkV6GxJqLyeF1spmzdTDwVEmdof5x13AQ+svT/m2spFoKtZQ5x28eO0fG4Th3t2m8yuSWDWQOW05ADwLhR1gYg4Jf3GbOhA736l90L74mbbT5qVowPhzrNqpJS0WhNARnFGoaUivQAhh5Eza8uuKo+VUaTvM6P2NkVu7KDhiZ8WoH4D3OtL6+XmuuXQX7aZGwc63xkuqBgXssG0W3hUlxNsiZVK2HVzG5lR6+V1an/a2+q7JqcjTaCpEfIeDtwOEd+0F2VGZUu848bZXQgrdV8QMy1PxIQZ8rrFYIvmvo9GUroWukctpibnhtdXfS/ftt11ApvQiwSgF6ENWRM7YIGn6lsCYKoaH+R9MKULdSrM+hMzsqQh5IwMXYQV6gFAKldSr1NaBOwooCfl8jDy4I9hFNv72iNVI8sqbk7rz8Kezzr/s8XwiHeJ3qFzLIxSMimq6xT8zI56KiVTamK4GKcM1zk7t32XjBxNyqcEqmidp7oqmN6/hDqDWsiypzgnJA0M9PnSSMS71vZ9OTvIEa/V4jHTUEziVXVcd86TSIhaI+c4aTWaSDG+SqTepqAS51mhEuVvvj+EVyYg3wxYV1FedpPDAbMlFyH55bnnrvdE9L9gMcTIopfvaucKay3yPbG8vRBwU74GH50Svdih9JhoXvitzyoaufY1nc+uS5Gwlrs5wtgplT59ibAmg559yaHX8/LMWMH0ouWSc+j+LabH795jmMbqjRvs4jiFpw2Bud4erloVBAGb7IQxOjRvEUXMWhvHETF+56tBRy6v3C7fXQZjyuiRDsj/ErMJTkEK0UrnqtheYvD1Azm4CIHxVaK7gzDBjZFpn9jQY2yKO0ex7V2xaY1VVoEeFVTwArOEamf5zPfPGwtFfS6VkUPgRYQpoAOfKF42aSDJQXVaHjNXtvw2YeFx2lsNfOMe8Ft6CKoT1Llneh/EReaUhFIE3ZoYfHX8AOH9w/seAkLzJhBHrAZumCI18Wf0BTQbLt3NaAYcmYcw0hhdOYFpdwPHt+21BCmW62nwi8xU7Mk4RdsQt1Q9ATtUyyOGy0ZZdmSYAL7GyIo+TfXd0oRcw1mIDF/3H4XBTpxhySjIV8vHCWQNOFz4N0RzcF+IlqY+CKID61WJasrk8l2G6rPYePvVZpOQ4TrPIShUra08hdg6p9ps+dk6Ry0c7bsPZ4Aaq8Mc0qOophLxzd1iYnrM41IiEmNx4QtFHlFLKXYfYpwHo5kBHZq19kzXQMleoWewE2j/vKE3nAGEe0FLrMr4mntjb7ma0IcVXmTf+M2YcE49OJ3Zbz+A=
Content-Type: multipart/alternative; boundary="_000_DU5PR03MB1056394A876995BD8B72D0301EE3C2DU5PR03MB10563eu_"
MIME-Version: 1.0
X-OriginatorOrg: liquidtelecom.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DU5PR03MB10563.eurprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 87727648-be1f-487b-c820-08dc54dd147b
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2024 19:26:08.7782 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 68792612-0f0e-46cb-b16a-fcb82fd80cb1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: tVZ9w4Tycqn16p3kMd6rYst6N4/XRRuuqlRg0eXvaRDqiHORgZ0ppWmaG9n5A8VBTNJBPgtIbdaZxGJX0o4wwJUN5+TEtoDJFTf9W+meh7Y=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR03MB7810
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-dir/JAVgLanicFT75dxFAprPeftFbDo>
Subject: Re: [RTG-DIR] [mpls] Rtgdir last call review of draft-ietf-mpls-bfd-directed-26
X-BeenThere: rtg-dir@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Routing Area Directorate <rtg-dir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-dir>, <mailto:rtg-dir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-dir/>
List-Post: <mailto:rtg-dir@ietf.org>
List-Help: <mailto:rtg-dir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-dir>, <mailto:rtg-dir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Apr 2024 19:26:27 -0000

Hi Greg,

I’m more concerned about the potential load of that search for path in the path sent is ridiculously long basically the current text works - but I’m concerned it opens a potential denial of service vector by forcing the receiving router to do a search against a path that could contain a thousand sub-tlvs without exceeding the mtu length.

For example - a generic ipv4 tlv in the registry as defined by 8029 - which is in the type 1/16/29 registry - is 8 bytes long - a 9000 byte packet could pack these a thousand deep and the receiver would then be trying to match that to a local LSP - which could potentially create a huge resource issue.

It may be that the working group doesn't view this as a viable problem - but since I spotted it - it's necessary to raise it and see what people think

Thanks

Andrew

Get Outlook for iOS<https://aka.ms/o0ukef>


Internal All Employees

________________________________
From: mpls <mpls-bounces@ietf.org> on behalf of Greg Mirsky <gregimirsky@gmail.com>
Sent: Thursday, April 4, 2024 8:04:56 PM
To: Andrew Alston - IETF <andrew-ietf@liquid.tech>
Cc: rtg-dir@ietf.org <rtg-dir@ietf.org>; draft-ietf-mpls-bfd-directed.all@ietf.org <draft-ietf-mpls-bfd-directed.all@ietf.org>; last-call@ietf.org <last-call@ietf.org>; mpls@ietf.org <mpls@ietf.org>; rtg-ads@ietf.org <rtg-ads@ietf.org>
Subject: Re: [mpls] Rtgdir last call review of draft-ietf-mpls-bfd-directed-26

CAUTION: This email has originated from a free email service commonly used for personal email services, please be guided accordingly especially if this email is asking to click links or share information.

Hi Andrew,
thank you for your thorough review and constructive comments. As we discussed, the new working version includes the update addressing your first question. Please find my notes in response to the second scenario below under the GIM>> tag.

Regards,
Greg

On Wed, Apr 3, 2024 at 9:57 PM Andrew Alston via Datatracker <noreply@ietf.org<mailto:noreply@ietf.org>> wrote:
Reviewer: Andrew Alston
Review result: Has Issues

RtgDir Last Call review: draft-ietf-mpls-bfd-directed

Hello,

I have been selected as the Routing Directorate reviewer for this draft. The
Routing Directorate seeks to review all routing or routing-related drafts as
they pass through IETF last call and IESG review, and sometimes on special
request. The purpose of the review is to provide assistance to the Routing ADs.
For more information about the Routing Directorate, please see
https://wiki.ietf.org/en/group/rtg/RtgDir

Although these comments are primarily for the use of the Routing ADs, it would
be helpful if you could consider them along with any other IETF Last Call
comments that you receive, and strive to resolve them through discussion or by
updating the draft.

Document: draft-ietf-mpls-bfd-directed-26
Reviewer: Andrew Alston
Review Date: 04-04-2024
IETF LC End Date: 16-04-2024
Intended Status: Experimental

Summary:

I have some minor concerns about this document that I think should be resolved
before publication.

Comments:

The draft itself was well written and clear.  I found no major issues in either
the text of the draft or it's content, beyond the two issues noted below

Major Issues:

In Section 3.1 the BFD Reverse Path field TLV Type and Length fields are both 2
octets (16bits) in length.  The document goes on to state that the Reverse path
field contains none, one, or more sub-TLV's. It further states that these
sub-TLV types may be any sub-TLV type defined for TLV Type 1, 16 or 21 in the
MPLS LSP Ping Parameters registry.

There is no limitation on the length that can be specified in the length field.

This raises the possibility that a length could be used - with stacked
sub-TLV's in the reverse path, to create a very large packet, which could
potentially create a denial of service issue / MTU issue on the path. I've
discussed this with the authors prior to sending this review (and my thanks to
them for their timely responses to my queries) and it is proposed that an
update to the first paragraph of the Operational Considerations section of the
documented be updated from:

OLD TEXT:
When an explicit path is set either as Static or RSVP-TE LSP,
corresponding sub-TLVs, defined in [RFC7110], MAY be used to identify
the explicit reverse path for the BFD session.

To NEW TEXT:
When an explicit path is set etierhet as Static or RSVP-TE LSP,
corresponding sub-TLVs, defined in [RFC7110], MAY be used to identify
the explicit reverse path for the BFD session.  If a particular set of
sub-TLVs composes the Return Path TLV [RFC7110] and does not increase
the length of the Maximum Transmission Unit for the given LSP,
that set can be safely used in the BFD Reverse Path TLV.

The second issue - which is related - concerns a potential denial of service
vector in the supplied path lengths.

Should a path defined by these sub-TLV's be of extreme length, irrespective of
it being valid or not, there is a concern that the receiving router, on
attempting to do path matching to the reverse path, could be vulnerable to
resource saturation.  By way of illustration, the document states that any
sub-TLV in the LSP ping parameters registry for types 1, 16 and 21 may be used.
 By specifying a length of 8192 and utilsing sub-TLV 14 (Generic IPv4 Prefix as
specified in RFC8029), a path of 2048 elements could be constructed.  It's
unclear how a receiving router would handle the processing of this. Similar
scenarios can occur when paths are specified in terms of IPv4 IGP-Prefix
Segment ID's which can be stacked.

Effectively, there is a concern that through the use of long paths - valid or
not valid - it may be possible to create resource starvation on the receiving
router by spamming these packets.  This is slightly mitigated by the fact that
these packets will be inside a limited domain, however, that does not mitigate
the concern should said limited domain be compromised to allow for such
transmission.
GIM>> Thank you for bringing this scenario to our attention. Should note that the use of the BFD Reverse Path TLV in LSP Ping in SR-MPLS is considered in more details in draft-ietf-spring-bfd<https://datatracker.ietf.org/doc/draft-ietf-spring-bfd/>. There, the use of Non-FEC TLV is recommended for the SR-MPLS environment. For the scenario that you describe, it seems like the receiver of the MPLS Echo Request message will evaluate the reverse path constructed based on sub-TLVs and determine whether it can support it. If the path is deemed invalid, then the MPLS Echo Reply message will include the Return Code defined in Section 3.2:
   *  "Failed to establish the BFD session.  The specified reverse path
      was not found" (TBD4).  When a specified reverse path is
      unavailable, the egress BFD peer sends an Echo Reply with the
      return code set to "Failed to establish the BFD session.  The
      specified reverse path was not found" to the ingress BFD peer
      Section 3.1.

What are your thoughts?

Minor Issues:

No minor issues found.