Internet-Draft BGP for CP Threshold Constraints October 2026
Liu, et al. Expires 1 May 2027 [Page]
Workgroup:
IDR Working Group
Published:
Intended Status:
Standards Track
Expires:
Authors:
Y. Liu
China Mobile
C. Lin
New H3C Technologies
Y. Qiu
New H3C Technologies

BGP Extension for Distributing CP Threshold Constraints of SR Policy

Abstract

This document defines the extension of BGP to distribute the threshold constraint parameters of candidate paths for SR Policy to achieve flexible path selection.

Status of This Memo

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 1 May 2027.

▲

Table of Contents

1. Introduction

Segment Routing (SR) [RFC8402] is a source routing paradigm that explicitly indicates the forwarding path for packets at the ingress node. The ingress node steers packets into a specific path according to the Segment Routing Policy (SR Policy) as defined in [RFC9256]. An SR Policy may have multiple candidate paths that are provisioned or signaled [RFC9830] [RFC8664] from one or more sources.

[I-D.ietf-spring-sr-policy-flexible-cp-selection] proposes a flexible SR policy candidate path selection method. Based on the real-time resource usage and forwarding quality of candidate paths, the head node can perform dynamic path switching among multiple candidate paths in the SR policy.

Multiple threshold parameters for SR Policy candidate path selection are listed in Section 4.1 of [I-D.ietf-spring-sr-policy-flexible-cp-selection]. This document defines extensions to BGP to distribute threshold constraint parameters of candidate path (CP) for an SR Policy.

2. Terminology

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.

The definitions of the basic terms are identical to those found in Segment Routing Policy Architecture [RFC9256].

3. Carrying Threshold Constraint Parameters of CP in BGP

As defined in [RFC9830], the SR Policy SAFI with codepoint 73 is used to advertise an SR Policy Candidate Path in the NLRI. According to [RFC9830], the content of the SR Policy Candidate Path is encoded in the Tunnel Encapsulation Attribute defined in [RFC9012] using the Tunnel-Type called the "SR Policy" type with codepoint 15. The use of the SR Policy Tunnel Type is applicable only for the AFI/SAFI pairs of (1/73, 2/73), and the use of any other Tunnel Type with the SR Policy SAFI MUST be considered malformed and handled by the "treat-as-withdraw" strategy [RFC7606].

This document defines the following Sub-TLV to carry the threshold constraint parameters for candidate paths.

The new SR Policy encoding structure with the Sub-TLV of CP threshold constraint parameters is expressed as below:

     SR Policy SAFI NLRI: <Distinguisher, Color, Endpoint>
        Attributes:
           Tunnel Encaps Attribute (23)
              Tunnel Type: SR Policy (15)
                  Binding SID
                  SRv6 Binding SID
                  Preference
                  Priority
                  SR Policy Name
                  SR Policy Candidate Path Name
                  Explicit NULL Label Policy (ENLP)
                  SR Metric Constraint Sub-TLV
                  Segment List
                      Weight
                      Segment
                      Segment
                      ...
                  ...

4. SR Metric Constraint Sub-TLV

The SR Metric Constraint sub-TLV is used to carry the threshold constraint of a candidate path.

The SR Metric Constraint sub-TLV is optional. Multiple instances of this sub-TLV may be used to carry different metric types.

The format of the SR Metric Constraint Sub-TLV is defined as follows:

 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|     Type      |   Length      | Metric Type   |     Flags     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         Metric Margin                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         Metric Bound                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

where:

5. Operations

The document does not bring new operation beyond the description of operations defined in Section 4 of [RFC9830]. The existing operations defined in [RFC9830] can apply to this document directly.

Typically, but not limited to, the SR policies carrying the threshold constraint parameters of CP are configured by a controller.

After configuration, the SR policies carrying the threshold constraint parameters of CP will be advertised by BGP update messages. The operation of advertisement is the same as defined in [RFC9830], as well as the reception.

6. IANA Considerations

This document defines a new sub-TLV in the registry "BGP Tunnel Encapsulation Attribute sub-TLVs" to be assigned by IANA:

   +=======+==================================+=================+
   | Value | Description                      |  Reference      |
   +=======+==================================+=================+
   |  TBA1 | SR Metric Constraint sub-TLV     |  This document  |
   +-------+----------------------------------+-----------------+

This document also requests that IANA create a new registry named "SR Metric Constraint Metric Types" for the Metric Type field of the SR Metric Constraint sub-TLV. The registration procedure for this registry is Specification Required [RFC8126]. The initial values of this registry are as follows:

   +=======+===============================+===============+
   | Value | Description                   | Reference     |
   +=======+===============================+===============+
   |   0   | Available bandwidth threshold | This document |
   |   1   | Actual bandwidth threshold    | This document |
   |   2   | Round trip delay threshold    | This document |
   |   3   | Round trip loss threshold     | This document |
   |   4   | Jitter threshold              | This document |
   +-------+-------------------------------+---------------+

7. Security Considerations

[RFC9830] has discussed the security considerations for distributing SR Policy through BGP. This document does not introduce any new security issues.

8. References

8.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC7606]
Chen, E., Ed., Scudder, J., Ed., Mohapatra, P., and K. Patel, "Revised Error Handling for BGP UPDATE Messages", RFC 7606, DOI 10.17487/RFC7606, , <https://www.rfc-editor.org/info/rfc7606>.
[RFC8126]
Cotton, M., Leiba, B., and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 8126, DOI 10.17487/RFC8126, , <https://www.rfc-editor.org/info/rfc8126>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC8402]
Filsfils, C., Ed., Previdi, S., Ed., Ginsberg, L., Decraene, B., Litkowski, S., and R. Shakir, "Segment Routing Architecture", RFC 8402, DOI 10.17487/RFC8402, , <https://www.rfc-editor.org/info/rfc8402>.
[RFC8664]
Sivabalan, S., Filsfils, C., Tantsura, J., Henderickx, W., and J. Hardwick, "Path Computation Element Communication Protocol (PCEP) Extensions for Segment Routing", RFC 8664, DOI 10.17487/RFC8664, , <https://www.rfc-editor.org/info/rfc8664>.
[RFC9012]
Patel, K., Voyer, D., and M. Bernier, Ed., "The BGP Tunnel Encapsulation Attribute", RFC 9012, DOI 10.17487/RFC9012, , <https://www.rfc-editor.org/info/rfc9012>.
[RFC9256]
Filsfils, C., Talaulikar, K., Voyer, D., Bogdanov, A., and P. Mattes, "Segment Routing Policy Architecture", RFC 9256, DOI 10.17487/RFC9256, , <https://www.rfc-editor.org/info/rfc9256>.
[RFC9830]
Previdi, S., Filsfils, C., Talaulikar, K., Ed., Mattes, P., and D. Jain, "Advertising Segment Routing Policies in BGP", RFC 9830, DOI 10.17487/RFC9830, , <https://www.rfc-editor.org/info/rfc9830>.

8.2. Informative References

[I-D.ietf-spring-sr-policy-flexible-cp-selection]
Liu, Y., Lin, C., Peng, S., Chen, R., and Z. Ali, "Flexible Candidate Path Selection of SR Policy", Work in Progress, Internet-Draft, draft-ietf-spring-sr-policy-flexible-cp-selection-02, , <https://datatracker.ietf.org/doc/html/draft-ietf-spring-sr-policy-flexible-cp-selection-02>.
[I-D.liu-pce-sr-policy-cp-threshold]
Liu, Y., Lin, C., Peng, S., and Y. Qiu, "PCEP Extensions to Support Signaling Candidate Path Threshold Constraints of SR Policy", Work in Progress, Internet-Draft, draft-liu-pce-sr-policy-cp-threshold-03, , <https://datatracker.ietf.org/doc/html/draft-liu-pce-sr-policy-cp-threshold-03>.

Appendix A. Cross-WG Information

This section describes cross‑working group information for use during the IETF review process. This section, including the reference to [I-D.liu-pce-sr-policy-cp-threshold] which is cited only within this appendix, will be removed by the RFC Editor prior to publication.

A.1. Spring WG

This document builds directly on the work of the SPRING Working Group. The threshold constraint parameters for SR Policy candidate path selection defined in Section 4.1 of [I-D.ietf-spring-sr-policy-flexible-cp-selection] are carried by the BGP extensions specified here. The SPRING WG should be aware that this BGP extension is intended to be consistent with the flexible candidate path selection framework and that no changes to the semantics of the parameters are introduced. The definitions of the metric types and their usage remain as described in the SPRING document.

A.2. PCE WG

The PCE Working Group has a companion document [I-D.liu-pce-sr-policy-cp-threshold] that defines PCEP extensions for carrying the same set of threshold constraint parameters. Both the BGP mechanism (this document) and the PCEP mechanism serve the same architectural goal: allowing a controller to communicate candidate path threshold constraints to a headend. Implementations or deployments that use both BGP and PCEP for SR Policy distribution should ensure semantic alignment between the two protocols. The PCE WG may wish to note that the format and flag definitions in this document have been aligned with those in the PCEP extension to ease interworking.

Acknowledgments

TBD

Authors' Addresses

Yisong Liu
China Mobile
Beijing
China
Changwang Lin
New H3C Technologies
Beijing
China
Yuanxiang Qiu
New H3C Technologies
Beijing
China