Return-Path: <dmytro@vegvisir.ie>
X-Original-To: mpls@mail2.ietf.org
Delivered-To: mpls@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1])
	by mail2.ietf.org (Postfix) with ESMTP id 53F647F7288C
	for <mpls@mail2.ietf.org>; Fri, 31 Oct 2025 04:02:16 -0700 (PDT)
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 pIcWhAl3GxNQ for <mpls@mail2.ietf.org>;
	Fri, 31 Oct 2025 04:02:14 -0700 (PDT)
Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com
 [IPv6:2a00:1450:4864:20::52d])
	(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 D09A07F72883
	for <mpls@ietf.org>; Fri, 31 Oct 2025 04:02:14 -0700 (PDT)
Received: by mail-ed1-x52d.google.com with SMTP id
 4fb4d7f45d1cf-63b9da57cecso3681917a12.0
        for <mpls@ietf.org>; Fri, 31 Oct 2025 04:02:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=vegvisir.ie; s=google; t=1761908527; x=1762513327; darn=ietf.org;
        h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
         :date:message-id:reply-to;
        bh=Ts2lp+n96AV337XUTKp5Zf8l8qffRHA5GXD55K4328Q=;
        b=eF/EY8JLyYeLs2iNuqMfYbJi5YbiPvijNuMwKurOAWiYkQnmiZXinN1iHKgMSvqKOO
         2OWz1rbCr1MXAuGiCjlcisT9Vv2Yz4oAgPpQRPKIVJveimihqHgeiX8FGqCMrXleq1qL
         ZVmC/7zHVr+sd3TRWrTYVVPuIYHcKBcUIyZXXJpAmHhsuNrWzQ8wrHnsCqW9uqYbwfa/
         XuhIKd2HBfK8Q90JasG3M+Po/U6a+YulJs/GDtLI+iW+sdzLIW0L6uKkUkTrlzHwFERH
         cKVxTurwKMda/5tcN7KbPTZ9gZewU3iS0UDL0TNllFM5rHXmDok90lJhvsWimGMOE2Pz
         XnrQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20230601; t=1761908527; x=1762513327;
        h=to:subject:message-id:date:from:mime-version:x-gm-message-state
         :from:to:cc:subject:date:message-id:reply-to;
        bh=Ts2lp+n96AV337XUTKp5Zf8l8qffRHA5GXD55K4328Q=;
        b=XQMNxDSyQlT2VTYdHSYRK3fet9JYofjFY1wLidgOWCpZUSa7+3XOhDYbgLcFAs8+fM
         jqheN1RVdiuOm40r8cQJT4kxlVPoBo80ZfWsAiqFmbeT4CEgPbFRpaK/Ve6u6QLOJ7zW
         Hcc7ReokbEeI8xK8PsKy3e65Y5UCwjRn7qCkUR+qpygyZqWSIVtgy1QktgWf1Eygg/6p
         Y1/uSI+V0JsY+4Oc+FFQ0Lr/Rs916zDTMldZXVQbjU4HjiKoMh9Vl1Snd2f1Qv26p+AG
         JDiCBvd1vuX8jjj8FZG9tl1fmd1ontt8pdvTCJ47V5n9G7aIUARIbMK/DLl6Uw7f558b
         7H+g==
X-Gm-Message-State: AOJu0YwgNTDvj9l4rTVQIy2QwrQPhlZ/ztWx8gCwI2BeoOFUuZ5hwi//
	wD+PXfOnrSdfgU8XGomotjfw/iFFpy3dlgwtJz0mZdV102l8XHIj4tL+CPjJdHDAtQFXZ0iQFli
	6V1SBWGPM6YRX1m1i9ELu0UhdpWDsoYW66kUEwsuN0/RWVLqQTdNYylQ=
X-Gm-Gg: ASbGnctnCaVg7uJvVAtAjIXMzY9Ua0V3smbpk2D/a9gQ6H9jYucu2S6/FjvH2Hb5lK9
	DO/Zlf0YzFtThaXkxtD9yM7v8B2wmY3c6Ix6e+iukDy3VGsx7nuuOjG+9UK+6tWhiwh9HrpSMrg
	M9oxlTSZ3aHO1IcsZQzdb4fhigs05FSE9TinxUvD7R1J7jJV9QnFT19j89pwVFOi29Ze5vCcc4o
	qxVt53hE5GaGjc5z0QQuxmFBEO+yirNcAe404AL9t56ZWPyEqNK/vK1CmRsgVMrz5M5MeE=
X-Google-Smtp-Source: 
 AGHT+IHT1otyYR8ztIFk/9V+0eXpW0cBsicsuJjQchky0qsEsdHh5cItMJY3RTU5h9esMctvDjXNpLhKfl9Eh0CBHhE=
X-Received: by 2002:a05:6402:146b:b0:63c:6ddd:fe59 with SMTP id
 4fb4d7f45d1cf-64076f74f94mr2548296a12.16.1761908527124; Fri, 31 Oct 2025
 04:02:07 -0700 (PDT)
MIME-Version: 1.0
From: Dmytro Shypovalov <dmytro@vegvisir.ie>
Date: Fri, 31 Oct 2025 11:01:55 +0000
X-Gm-Features: AWmQ_bnTxmaC-0Q29K5VA9j6XcP2gLKTIVNgE90yr79NTRcCH_TPX7AvhBDjg1M
Message-ID: 
 <CAEBHQ-NXncAprcZJc2=uBCKAwnb4LmQkxs6XextfzyAPTx9UWg@mail.gmail.com>
To: mpls@ietf.org
Content-Type: multipart/alternative; boundary="000000000000e2e7190642724b5c"
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-mpls.ietf.org-0
Message-ID-Hash: Y5YYVKFVU2LNXDWV5VBZP2T4LUY7BVLN
X-Message-ID-Hash: Y5YYVKFVU2LNXDWV5VBZP2T4LUY7BVLN
X-Mailman-Approved-At: Fri, 31 Oct 2025 04:16:53 -0700
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: =?utf-8?q?=5Bmpls=5D_RFC_8277_clarifications?=
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
Archived-At: 
 <https://mailarchive.ietf.org/arch/msg/mpls/akPor7VCHUttvZnZi5wpJs17KgE>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Owner: <mailto:mpls-owner@ietf.org>
List-Post: <mailto:mpls@ietf.org>
List-Subscribe: <mailto:mpls-join@ietf.org>
List-Unsubscribe: <mailto:mpls-leave@ietf.org>

--000000000000e2e7190642724b5c
Content-Type: text/plain; charset="UTF-8"

Dear MPLS 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).

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.

Am I missing something? Is there a way to advertise more labels in BGP-LU?


Regards,
Dmytro

--000000000000e2e7190642724b5c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Dear MPLS WG,<div><br></div><div>I&#39;ve been working on =
an SR-TE project using BGP-LU to influence traffic engineering paths. This =
requires the advertisement of multiple labels.</div><div><br></div><div>RFC=
8277 seems to have 2 conflicting statements</div><div><br></div><div>Sectio=
n 2.1:</div><div><br></div><div><pre class=3D"gmail-newpage">   the Count i=
s 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.</pre></=
div><div><br></div><div>This assumes the BGP update can have up to 255 labe=
ls (in theory).</div><div><br></div><div>Section 2.3:</div><div><br></div><=
div><pre class=3D"gmail-newpage">   - 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).
</pre></div><div><br></div><div>If we use BGP-LU with multiple labels for S=
R-TE, it will always advertise host routes, which given max 255 bits of NLR=
I, 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, rega=
rdless of platform capabilities.</div><div><br></div><div>Am I missing some=
thing? Is there a way to advertise more labels in BGP-LU?</div><div><br></d=
iv><div><br></div><div>Regards,</div><div>Dmytro</div></div>

--000000000000e2e7190642724b5c--

