Inter-Domain Routing R. Chen Internet-Draft D. Zhao Intended status: Standards Track ZTE Corporation Expires: 8 January 2024 7 July 2023 Validity of SR Policy Candidate Path draft-chen-idr-bgp-sr-policy-cp-validity-01 Abstract [I-D.chen-spring-sr-policy-cp-validity]supplemented candidate path validity criterion in [RFC9256]. It defines three validity control parameters under candidate Path to control the validity judgment of candidate Path. This document defines extensions to BGP to distribute the validity control parameters of a candidate path for an SR Policy. 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 8 January 2024. Copyright Notice Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved. Chen & Zhao Expires 8 January 2024 [Page 1] Internet-Draft Validity of SR Policy Candidate Path July 2023 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Requirements Language . . . . . . . . . . . . . . . . . . . . 2 3. Carrying CP Validity Sub-TLV in BGP . . . . . . . . . . . . . 3 4. CP Validity Sub-TLV . . . . . . . . . . . . . . . . . . . . . 3 5. Operations . . . . . . . . . . . . . . . . . . . . . . . . . 4 6. This document defines a new sub-TLV in the registry "BGP Tunnel Encapsulation Attribute sub-TLVs" to be assigned by IANA: . . . . . . . . . . . . . . . . . . . . . . . . . . 5 7. Security Considerations . . . . . . . . . . . . . . . . . . . 5 8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 5 9. Normative References . . . . . . . . . . . . . . . . . . . . 5 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 6 1. Introduction SR Policy architecture are specified in [RFC9256]. An SR Policy comprises one or more candidate paths (CP) of which at a given time one and only one may be active (i.e., installed in forwarding and usable for steering of traffic). Each CP in turn may have one or more SID-List of which one or more may be active; when multiple SID- List are active then traffic is load balanced over them. [I-D.chen-spring-sr-policy-cp-validity]supplemented candidate path validity criterion in [RFC9256]. It defines three validity control parameters under candidate Path to control the validity judgment of candidate Path. This document defines extensions to BGP to distribute the validity control parameters of a candidate path for an SR Policy. 2. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119]. Chen & Zhao Expires 8 January 2024 [Page 2] Internet-Draft Validity of SR Policy Candidate Path July 2023 3. Carrying CP Validity Sub-TLV in BGP As defined in [I-D.ietf-idr-segment-routing-te-policy], a new SAFI is defined (the SR Policy SAFI with codepoint 73) as well as a new NLRI. The NLRI contains the SR Policy candidate path and, according to [I-D.ietf-idr-segment-routing-te-policy], the content of the SR Policy Candidate Path is encoded in the Tunnel Encapsulation Attribute defined in [RFC9012] using a new Tunnel-Type called SR Policy Type with codepoint 15. This document defines CP Validity Sub-TLV to carry the validity control parameters of a candidate path. The new SR Policy encoding structure with CP Validity Sub-TLV is expressed as below: SR Policy SAFI NLRI: Attributes: Tunnel Encaps Attribute (23) Tunnel Type: SR Policy (15) Binding SID SRv6 Binding SID Preference Priority Policy Name Policy Candidate Path Name Explicit NULL Label Policy (ENLP) CP Validity Sub-TLV Segment List Weight Segment Segment ... ... 4. CP Validity Sub-TLV The format of the CP Validity 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 | valid SL qty |valid SL weight| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | valid SL weight ratio | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 1 Chen & Zhao Expires 8 January 2024 [Page 3] Internet-Draft Validity of SR Policy Candidate Path July 2023 where: Type: to be assigned by IANA. Length: the total length of the value field not including Type and Length fields. valid SL quantity:1-octet field which indicates the minimum number of valid segment Lists under the active candidate path. When the number of valid segment Lists under candidate path is greater than or equal to this field, the candidate path is considered valid. 0 indicates no requirement for SL quantity. 0xff indicates that the candidate path is considered valid only if all the segment Lists are valid. valid SL weight: 4-octet field which indicates the minimum value of the sum of the weights of the valid segment List under the active candidate Path. When the sum of the weights of the valid segment Lists under the candidate path is greater than or equal to this field, the candidate Path is considered valid. 0 indicates no requirement for weight.0xffffffff indicates that the candidate path is considered valid only if all the segment Lists are valid. valid SL weight ratio: 1-octet field which indicates the minimum proportion WTV/WTA. WTV: The sum weights of the valid segment list under the active CP. WTA: The sum weights of all the segment lists under the active CP. When WTV/WTA is greater than or equal to this field, the candidate Path is considered valid. 0 indicates no requirement on weight proportion.100 indicates that the candidate path is considered valid only if all the segment lists are valid. 5. Operations The document does not bring new operation beyond the description of operations defined in [I-D.ietf-idr-segment-routing-te-policy]. The existing operations defined in [I-D.ietf-idr-segment-routing-te-policy] can apply to this document directly. Typically, but not limit to, the SR policies carrying the validity control parameters of the candidate path are configured by a controller. After configuration, the SR policies carrying the validity control parameters of the candidate path will be advertised by BGP update messages. The operation of advertisement is the same as defined in [I-D.ietf-idr-segment-routing-te-policy], as well as the reception. Chen & Zhao Expires 8 January 2024 [Page 4] Internet-Draft Validity of SR Policy Candidate Path July 2023 6. This document defines a new sub-TLV in the registry "BGP Tunnel Encapsulation Attribute sub-TLVs" to be assigned by IANA: Value Description Reference ------- ------------------------- -------------- TBD CP Validity Sub-TLV This document 7. Security Considerations Procedures and protocol extensions defined in this document do not affect the security considerations discussed in [I-D.ietf-idr-segment-routing-te-policy]. 8. Acknowledgements TBD. 9. Normative References [I-D.chen-spring-sr-policy-cp-validity] Chen, R., Zhao, D., and C. Lin, "Validity of SR Policy Candidate Path", Work in Progress, Internet-Draft, draft- chen-spring-sr-policy-cp-validity-00, 5 July 2023, . [I-D.ietf-idr-segment-routing-te-policy] Previdi, S., Filsfils, C., Talaulikar, K., Mattes, P., Jain, D., and S. Lin, "Advertising Segment Routing Policies in BGP", Work in Progress, Internet-Draft, draft- ietf-idr-segment-routing-te-policy-20, 27 July 2022, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC9256] Filsfils, C., Talaulikar, K., Ed., Voyer, D., Bogdanov, A., and P. Mattes, "Segment Routing Policy Architecture", RFC 9256, DOI 10.17487/RFC9256, July 2022, . Chen & Zhao Expires 8 January 2024 [Page 5] Internet-Draft Validity of SR Policy Candidate Path July 2023 Authors' Addresses Ran Chen ZTE Corporation Nanjing China Email: chen.ran@zte.com.cn Detao Zhao ZTE Corporation Nanjing China Email: zhao.detao@zte.com.cn Chen & Zhao Expires 8 January 2024 [Page 6]