[Idr] Re: RFC 8277 clarifications

Dmytro Shypovalov <dmytro@vegvisir.ie> Fri, 21 November 2025 13:39 UTC

Return-Path: <dmytro@vegvisir.ie>
X-Original-To: idr@mail2.ietf.org
Delivered-To: idr@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 2D1AA8E0292C for <idr@mail2.ietf.org>; Fri, 21 Nov 2025 05:39:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.088
X-Spam-Level:
X-Spam-Status: No, score=-2.088 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, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=vegvisir.ie
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bW1s6TtCME1p for <idr@mail2.ietf.org>; Fri, 21 Nov 2025 05:39:14 -0800 (PST)
Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id AAA3C8E02924 for <idr@ietf.org>; Fri, 21 Nov 2025 05:39:14 -0800 (PST)
Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-640bd9039fbso3390912a12.2 for <idr@ietf.org>; Fri, 21 Nov 2025 05:39:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vegvisir.ie; s=google; t=1763732353; x=1764337153; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KdVRlY5UAXHqebhdOMl3M8EwA5VUYW5BcFw8e1RaQ4E=; b=nVHynDkCIFG4usU5r1217Jo9Ivl3/WVc/yXsvUzSdPkh0szHVAgQBUNZMEp6vw218L 1bPnD2COrLpOG+lUCZ4IG05spRfREdUAnVrst9ECHHvP0uqXXB+FjZd4UXWCJRoyfRyY 4XvXaFgzxmkDNB+g9lCr2AdVXivn4lDi9Qqx3KNX5/kjmohr6QF7hGHcGIOyfv/UvdeR HjrCDqd0wshsoGgtd20hgKHshm7qxgZeGju/u69LfVQZF99zPOLiab5XOZcRV/zWk9zq rfxXTTTiAvsoJy/1Nak3aAYDZ3aIE9TIIgCbU57287dt3gn0HkXCheGK87R6KiH8q40g hi4g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763732353; x=1764337153; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KdVRlY5UAXHqebhdOMl3M8EwA5VUYW5BcFw8e1RaQ4E=; b=Bz1oed5MCLCZT5CKskXOq2EWpWPZv024qilKo4gzyLK7J9HFdhVS3xRfNFZKnz+IuA UP3niN7TSF7ZdEj2H19UCig1lg2NFSxiVtUiFQaVcJDP9fQ4vbmjv/v/RAP1eEQ+QB8m 8hAv3V1KJnmh78Pa/RFlCv9FP2LGp3dWjXa0bcztk1jzhaop0ZJL6NF/r6ClB6pZMi3b x2QtBlRG8h1XFId5xLC84nTkpjaTGe0E0Fey8FV0fjxGje12xhnxUK/fttU8T4Lj8Ldn Tzgm/YR2bgQ7hxFrIA431n2mCarrATWrw597WH2xmJ4SCBodwK1M3RrGMOU7R6UTq8ax V6jw==
X-Forwarded-Encrypted: i=1; AJvYcCUNVotXqUY40l3sP3Efg1sEE4UzoS7svoHGce/cuVtSXIaczpH8Y8nZy16LcnHOgX4+On8=@ietf.org
X-Gm-Message-State: AOJu0YxxOWuClhsZ485PauJHDin00Gqa8y0cNN5oOizmkgSQvcQvQtRS lBr4gb8lBbLFSQ89WnpHaMIHbvC3YcHfx/oQJNQluoFRe6vvK/fVv+nHD/WrDOGUh7VrXedRZsk Q9s6BOfo+5mticFPOYDOD0jGVdEE7RafEbYdF5ybIKA==
X-Gm-Gg: ASbGnct0E0mH8DZHgM9PJYR1imNK2G6uAQbnAnaiSIh0a8jto7HGbWRelz3UP0Yden8 HQeGHeTuQEa7F2kLKsgREq67Iih1W+xyw5MuMaZHZzFpk0pMzdNgeAdlz8R7rJxSF8txIDv/fAh hYf0pXjwVLyKgWQAxx3WAkNiAhK7iqavf17U1gr1icIlegt+EWBy9/ML9b6AofBklSGFU3kan5S Sgu5CwtLw61wFl0Ho9Jm5A+F24PR6C1QZ7dkUoC9kJ8UtvUVQd329tp/i2osfFOGgadv6M=
X-Google-Smtp-Source: AGHT+IGLfJsRyHclg/Tu44Y2pk4ZwS1DG4+XYE6HsCvk9gaDRy+H2fMMdezqqerVXb+DpXtbG2I2g+pThsiQIOjRDLU=
X-Received: by 2002:a05:6402:4403:b0:640:ceef:7e4d with SMTP id 4fb4d7f45d1cf-64554692584mr2197007a12.32.1763732352652; Fri, 21 Nov 2025 05:39:12 -0800 (PST)
MIME-Version: 1.0
References: <CAEBHQ-Ng2anh9oDeZrBqUuY6XWqWWOSF=MhBSYZWZdW=UFnZcw@mail.gmail.com> <MR1P264MB435427B945A7F7D3B6B50055F0D4A@MR1P264MB4354.FRAP264.PROD.OUTLOOK.COM>
In-Reply-To: <MR1P264MB435427B945A7F7D3B6B50055F0D4A@MR1P264MB4354.FRAP264.PROD.OUTLOOK.COM>
From: Dmytro Shypovalov <dmytro@vegvisir.ie>
X-Gm-Features: AWmQ_bkzY-Pdfxbk6sen4ZxNEBpxqlNBJWcl4jBKOs_FSVRZVmXv_vIe0AWtYvU
Message-ID: <CAEBHQ-NtiVwgz6HEEy+osV+vJP1WF2TnPpegjUG5am+=QkMZHg@mail.gmail.com>
To: bruno.decraene@orange.com
Content-Type: multipart/alternative; boundary="0000000000005be2b506441af05e"
X-MailFrom: dmytro@vegvisir.ie
X-Mailman-Rule-Hits: nonmember-moderation
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-idr.ietf.org-0
Message-ID-Hash: GFPCU6BKWQREJWVB6XHDECONAAG7MNZQ
X-Message-ID-Hash: GFPCU6BKWQREJWVB6XHDECONAAG7MNZQ
X-Mailman-Approved-At: Sun, 23 Nov 2025 05:07:25 -0800
CC: Kyrylo Yatsenko <k.yatsenko@vyos.io>, "idr@ietf.org" <idr@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Idr] Re: RFC 8277 clarifications
List-Id: Inter-Domain Routing <idr.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/x1G1fCvpXxDYzP7CbpAkRA9WT9c>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Owner: <mailto:idr-owner@ietf.org>
List-Post: <mailto:idr@ietf.org>
List-Subscribe: <mailto:idr-join@ietf.org>
List-Unsubscribe: <mailto:idr-leave@ietf.org>
Date: Fri, 21 Nov 2025 13:39:16 -0000
X-Original-Date: Fri, 21 Nov 2025 13:39:00 +0000

Hi Bruno, thanks for your response.

BGP-SRTE is definitely a more superior protocol and as an SR-TE controller
developer, I always prefer it whenever possible. However, many router
implementations don't support BGP-SRTE and BGP-LU is a nice workaround that
is widely supported. And it's definitely better than PCEP (anything is
better than PCEP).

I just wanted to clarify this behaviour, because the discussion came up
when Kyrylo was implementing multiple labels support in FRR and discovered
this limitation, but it's never mentioned in the RFC.

Regards,
Dmytro

On Thu, 20 Nov 2025 at 09:27, <bruno.decraene@orange.com> wrote:

> Hi Dmytro,
>
>
>
> Thanks for your message.
>
> Please see inline my 2 cents
>
>
>
> *From:* Dmytro Shypovalov <dmytro@vegvisir.ie>
> *Sent:* Wednesday, November 19, 2025 11:19 PM
>
>
>
> Dear IDR WG,
>
>
>
> I've been working on an SR-TE project using BGP-LU to influence traffic
> engineering paths. This requires the advertisement of multiple labels.
>
>
>
> RFC8277 seems to have 2 conflicting statements
>
>
>
> Section 2.1:
>
>
>
>    the Count is the maximum
>
>    number of labels that the BGP speaker sending the Capability can
>
>    process in a received UPDATE of the specified AFI/SAFI.  If the Count
>
>    is 255, then no limit has been placed on the number of labels that
>
>    can be processed in a received UPDATE of the specified AFI/SAFI.
>
>
>
> This assumes the BGP update can have up to 255 labels (in theory).
>
>
>
> This probably needs to be read as an additional limit. (in addition to
> some other constraints, e.g., the one you described below)
>
> We need to consider that BGP LU was originally specified in RFC 3107. That
> BGP capability has been added by 8277 as a patch, mostly to accommodate
> some non-compliant implementations if you ask me.
>
>
>
> Section 2.3:
>
>
>
>    - Length:
>
>
>
>       The Length field consists of a single octet.  It specifies the
>
>       length in bits of the remainder of the NLRI field.
>
>
>
>       Note that for each label, the length is increased by 24 bits (20
>
>       bits in the Label field, plus 3 bits in the Rsrv field, plus 1 S
>
>       bit).
>
>
>
> If we use BGP-LU with multiple labels for SR-TE, it will always advertise
> host routes, which given max 255 bits of NLRI, leaves us with theoretical
> maximum of 9 labels for IPv4 and 5 labels for IPv6. The RFC message
> format will not be able to support more labels, regardless of platform
> capabilities.
>
>
>
> Alas…
>
> (note that at the time of RFC 3107, that was probably considered as good
> enough. To the point that some implementations did not even allow the
> emission (fine) and reception (less fine…) of more than one label.)
>
> RFC 8277 could have revisited a few things, but did not (presumably to
> minimize the impact on existing implementation, among other things)
>
>
>
> But I've seen vendor implementations advertising multi label capability
> with more labels.
>
>
>
> Cf above: we should probably assume that the minimum of all limits is to
> be used: min (capability sig, encoding space)
>
>
>
> Am I missing something? Is there a way to advertise more labels in BGP-LU?
>
>
>
> I guess that we could always define a new spec to revisit the whole thing,
> but that would imply a large effort and sufficient interest (read $$) from
> enough parties.
>
> In the meantime ( 😉 ), have you considered the advertisement of SR
> Policies in BGP https://datatracker.ietf.org/doc/html/rfc9830 ?
>
>
>
> Regards,
>
> --Bruno
>
>
>
>
>
> Regards,
>
> Dmytro
>
> ____________________________________________________________________________________________________________
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> Thank you.
>
>