Internet-Draft | Alt-Label | October 2025 |
Sethuram, et al. | Expires 23 April 2026 | [Page] |
A single MPLS label or a label stack is advertised along with an address prefix as part of the NLRI belonging to labeled address families such as Labeled Unicast (RFC 8277), VPN (RFC 4364), etc.¶
This document specifies a method to advertise one or more additional, alternative labels for a set of address prefixes using the Next Hop Dependent Characteristics (NHC) attribute.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 23 April 2026.¶
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
A single MPLS label or a label stack is advertised along with an NLRI belonging to labeled address families such as Labeled Unicast [RFC8277] [RFC4798], VPN [RFC4364] [RFC4659], etc. In certain topologies, it would be useful to advertise one or more additional, alternative labels associated with the same NLRI.¶
This document proposes a method to encode and send such alternative labels using BGP Next Hop Dependent Characteristic (NHC) attribute [I-D.ietf-idr-entropy-label].¶
The BGP Next Hop Dependent Characteristics attribute (NHC attribute) is an optional, transitive BGP path attribute defined in [I-D.ietf-idr-entropy-label] consisting of the Next Hop address and a list of Characteristic TLVs among other things.¶
A new Characteristic TLV Type called the Alternative-Label Characteristic is used to encode alternative labels for an NLRI. It is also referred to as Alt-Label Characteristic in this document.¶
The encoding of the Alt-Label Characteristic TLV is shown below:¶
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 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Characteristic Code | Characteristic Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Label Type | Reserved | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Label Value | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
This document specifies Label Type 1, called "Extra-domain Label", described in later sections. Future documents may specify newer Label Types and allocate them in the IANA registry mentioned above.¶
As depicted above, each Characteristic TLV supports encoding of a single label only i.e., label stack encoding is not supported.¶
Unless specified otherwise in this document, advertisement and receive processing of the NHC attribute and the Alt-Label Characteristic TLVs follow the general behavior outlined in [I-D.ietf-idr-entropy-label].¶
This section specifies the general behavior for processing any Label Type. This behavior MAY be overridden for specific Label Types by documents that specify those Types.¶
A router that originates a route may attach the NHC attribute containing one or more Alt-Label Characteristic TLVs. More than one such TLV may contain the same Label Type but with different label values.¶
On the receiving router:¶
if the received route is re-advertised by the router setting itself as the new Nexthop:¶
This document defines a new label type called "Extra-domain Label" which is assigned a value of Label Type 1. This label type indicates that any traffic destined to that label will be forwarded to one or more next hops that belong to domain(s) that are different from where the traffic ingressed. This behavior holds true whether such next hops are part of a prefix's bestpaths or backup paths or any other alternate paths.¶
What constitutes a "domain" is outside the scope of this document, and is defined based on local policy or configuration. One simple instance of a domain is an Autonomous System, in which case, as an example, an extra-domain label L that receives traffic from ASN-X would switch that traffic towards ASNs other than ASN-X. Other examples of a domain may be an IGP area within a single Autonomous System, or a domain spanning multiple Autonomous Systems, and so on.¶
A router may allocate one or more extra-domain labels in addition to a "primary" label associated with the same route. The primary label is encoded as part of the NLRI (for example, [RFC8277] [RFC4364] etc) while the extra-domain labels would be encoded using the Alt-Label Characteristic TLVs.¶
On the receiving router:¶
if the received route is re-advertised by the router after setting itself as the new Nexthop:¶
This section illustrates an use case where allocating an addtional label for a prefix and advertising it using the Alt-Label Characteristic TLV within the NHC attribute can help break a continuous loop of advertisements.¶
+---------------------------------+ | | | | +----+ | | |PE3 | | | /+----+\ | | / \ | | / \ | | +----+ +----+ | | |BR1 |-------|BR2 | | | +----+ +----+ | | \ / | | \ / | | \ / | | +----+ | | |PE4 | | | +----+ | | | | +---------------------------------+ Figure 1: A pair of Border Routers backing up each other¶
The diagram depicts two Border Routers (BR1, BR2) peering with each other, as well as two PEs (PE3, PE4). PE3 originates some VPN routes which are advertised to BR1 and BR2, which in turn advertise them to PE4.¶
The above operations continue forever resulting in a continuous loop of label allocations and advertisements.¶
The solution to the above problem involves each Border Router allocating an additional label whose context points to only the bestpath without including any backup path information.¶
Accordingly, the modified steps are described below:¶
In case of any errors encountered while processing Alt-Label Characteristic TLV, the error SHOULD be logged for the attention of the operator. Unless otherwise specified, the error handling specified for NHC attribute in [I-D.ietf-idr-entropy-label] should be followed.¶
If the Length of the Alt-Label Characteristic TLV is not 6, then the TLV MUST be parsed according to the encoded length and MUST be ignored. Subsequent TLVs of the NHC attribute SHOULD continue to be parsed normally.¶
It is not an error to receive an unrecognized Label Type value in this Characteristic TLV. Such labels MUST be processed according to Section 2.1.2.¶
If more than one instance of a TLV with the exact same Label Type and Label value fields are received, then all but the first instance MUST be ignored.¶
It is not an error to receive more than one TLV instance with the same Label Type but different Label values. One or more of those labels MAY be used locally, and all such labels MUST be considered for further propagation subject to the behavior specified in Section 2.1.2.¶
When receving the Extra-domain Label Type, if syntactic or semantic errors are encountered while parsing the Label field, then only that TLV MUST be ignored.¶
It is not an error to receive more than one extra-domain label. One or more of those labels MAY be used locally, and all such labels MUST be considered for further propagation subject to the behavior specified in Section 2.1.2. The exact conditions under which a particular label may be selected for installation in local route forwarding entries is beyond the scope of this document and left to the local application.¶
This document requests IANA to allocate a new type code in the in the "BGP Next Hop Dependent Characteristic Codes" registry to represent "Alternative-Label Characteristic".¶
This document requests IANA to create a new registry called "BGP Alternative-Label Label Types" with the following initial allocations. The remainder of the values in the registry are to be allocated based on a First Come, First Served policy.¶
VALUE DESCRIPTION REFERENCE CHANGE CONTROLLER ------- ----------- --------- ----------------- 0 Reserved (this doc) IETF 1 Extra-domain Label (this doc) IETF 240-254 Private use (this doc) IETF 255 Reserved (this doc) IETF¶
The security considerations of the base NHC attribute described in [I-D.ietf-idr-entropy-label] continues to apply.¶
The labels signaled using the new Alternative-Label Characteristic TLV is tightly associated with the Next Hop signaled in the NHC attribute. If this consistency is not maintained, intentionally or otherwise, it could lead to traffic mis-direction or blackholing. An implementaion MAY provide a local configuration option to disable installation and propagation of such received labels for specific address-families, specific routes, etc.¶