IDR Working Group X. He Internet-Draft X. Yuan Intended status: Standards Track China Telecom Expires: 30 May 2027 26 November 2026 Advertisement of SR Policy DiffServ using BGP Link-State draft-he-idr-bgp-ls-sr-policy-diffserv-00 Abstract This document defines an extension to BGP Link-State (BGP-LS) for the advertisement of the Differentiated Services (DiffServ) Per-Hop Behavior (PHB) that is bound to a Segment Routing (SR) Policy candidate path. It introduces a new descriptor TLV carried in the SR Policy Candidate Path NLRI defined in [RFC9857]. This TLV reports the SR Policy candidate path to PHB binding that is actually installed in the data plane by a headend node. This document complements the control-plane signaling which conveys the desired PHB binding, by enabling the management or control plane to observe the actual PHB binding. 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 30 May 2027. Copyright Notice Copyright (c) 2026 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 He & Yuan Expires 30 May 2027 [Page 1] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 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. Conventions . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.1. Requirements Language . . . . . . . . . . . . . . . . . . 3 2.2. Terminology . . . . . . . . . . . . . . . . . . . . . . . 4 3. SR Policy DiffServ PHB TLV . . . . . . . . . . . . . . . . . 4 3.1. Flags . . . . . . . . . . . . . . . . . . . . . . . . . . 5 4. Procedures . . . . . . . . . . . . . . . . . . . . . . . . . 6 4.1. Advertisement . . . . . . . . . . . . . . . . . . . . . . 6 4.2. Reception and Consumption . . . . . . . . . . . . . . . . 7 4.3. Relationship to the BGP SR Policy PHB Sub-TLV . . . . . . 7 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 8 5.1. SR Policy DiffServ PHB TLV . . . . . . . . . . . . . . . 8 5.2. SR Policy DiffServ PHB Flags . . . . . . . . . . . . . . 8 6. Security Considerations . . . . . . . . . . . . . . . . . . . 8 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 9 7.1. Normative References . . . . . . . . . . . . . . . . . . 9 7.2. Informative References . . . . . . . . . . . . . . . . . 10 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 11 1. Introduction BGP Link-State (BGP-LS) [RFC9552] is a mechanism by which link-state and Traffic Engineering (TE) information is collected from a network and advertised to external components such as a centralized controller or a network management system. BGP-LS has been extended to collect Segment Routing (SR) Policy information [RFC9857]. Specifically, [RFC9857] defines the SR Policy Candidate Path NLRI (NLRI Type 5) that reports, for each SR Policy candidate path (CP), its state, the underlying segment lists, and related attributes. This allows a controller or management system to build a complete view of the SR Policies that are actually instantiated in the network. He & Yuan Expires 30 May 2027 [Page 2] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 Differentiated Services (DiffServ) [RFC2475] realizes Quality of Service (QoS) by classifying traffic into service classes and applying a Per-Hop Behavior (PHB) to each class at every node [RFC2474]. [I-D.he-idr-bgp-sr-policy-diffserv] defines a BGP extension that publishes, in the southbound direction, the binding between an SR Policy candidate path and a DiffServ PHB. That mechanism conveys the desired PHB binding from a controller or an egress node to a headend, which then realizes the PHB in the data plane by marking the DSCP (SRv6) or the TC/EXP (SR-MPLS) of the packets steered into the candidate path. The southbound signaling of [I-D.he-idr-bgp-sr-policy-diffserv] expresses an intent. It does not, by itself, tell the management plane what a headend actually installed. A headend may reject or ignore a PHB binding, may be provisioned with a local PHB binding through NETCONF/YANG or CLI, or may have synthesized a binding from a local policy. Without a northbound reporting mechanism, the management or control plane cannot verify that the actual candidate path to PHB mapping in the data plane matches the intended mapping. This document closes that gap. It defines a new descriptor TLV, the "SR Policy DiffServ PHB TLV", carried in the SR Policy Candidate Path NLRI [RFC9857]. The TLV reports the PHB binding that is actually installed on the headend node for the candidate path, i.e., the DSCP or TC values used to realize the PHB. The TLV reuses the same field layout as the PHB sub-TLV of [I-D.he-idr-bgp-sr-policy-diffserv], so that the management or control plane can directly correlate the desired binding (carried southbound in BGP) with the actual binding (reported northbound in BGP-LS). The mechanism is intended to be independent of how the PHB binding was installed: whether through BGP [I-D.he-idr-bgp-sr-policy- diffserv], PCEP, NETCONF/YANG, or local configuration, a headend that implements this document reports the resulting candidate path to PHB binding through BGP-LS. 2. Conventions 2.1. Requirements Language 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. He & Yuan Expires 30 May 2027 [Page 3] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 2.2. Terminology Abbreviations and Notations used in this document: BGP: Border Gateway Protocol BGP-LS: BGP Link-State DSCP: Differentiated Services Code Point MPLS: Multi-Protocol Label Switching NLRI: Network Layer Reachability Information PHB: Per-Hop Behavior QoS: Quality of Service SR: Segment Routing SRH: Segment Routing Header SR-MPLS: Segment Routing with the MPLS data plane SRv6: Segment Routing over IPv6 TC: Traffic Class TLV: Type-Length-Value 3. SR Policy DiffServ PHB TLV The SR Policy DiffServ PHB TLV is an optional descriptor TLV carried in the SR Policy Candidate Path NLRI defined in [RFC9857]. When present, it reports the PHB binding that the advertising (headend) node has actually installed for the candidate path described by the enclosing NLRI. Because an SR Policy candidate path is bound to a single PHB at the headend, only a single instance of this TLV is expected per candidate path.If multiple instances are present, then the first valid one (i.e., not determined to be malformed as per Section 8.2.2 of [RFC9552]) is used and the rest are ignored. The PHB binding reported by this TLV is the same information that is conveyed southbound by the SR Policy DiffServ PHB sub-TLV defined in [I-D.he-idr-bgp-sr-policy-diffserv]. He & Yuan Expires 30 May 2027 [Page 4] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 The SR Policy DiffServ PHB TLV has the following format: 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 = TBD1 | Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Flags | Reserved | DSCP | TC | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure 1: SR Policy DiffServ PHB TLV Where: Type: 2 octets. The value TBD1, to be assigned by IANA. Length: 2 octets. Set to 4. Flags: 1 octet. See Section 3.1. Reserved: 1 octet. MUST be set to zero on transmission and ignored on reception. DSCP: 1 octet. The 6-bit DSCP value [RFC2474] used to realize the PHB in an SRv6 data plane, carried in the six most significant bits; the two least significant bits MUST be set to zero on transmission and ignored on reception. TC: 1 octet. The 3-bit TC (EXP) value [RFC5462] used to realize the PHB in an SR-MPLS data plane, carried in the three most significant bits; the five least significant bits MUST be set to zero on transmission and ignored on reception. 3.1. Flags The Flags octet is encoded identically to the Flags octet of the SR Policy DiffServ PHB sub-TLV in [I-D.he-idr-bgp-sr-policy-diffserv]: 0 1 2 3 4 5 6 7 +-+-+-+-+-+-+-+-+ |D|T|C| Reserved| +-+-+-+-+-+-+-+-+ Where: D (bit 0, most significant): DSCP valid. Set when the DSCP field of the outer IPv6 base header carries a value that is actually applied in the SRv6 data plane. He & Yuan Expires 30 May 2027 [Page 5] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 T (bit 1): TC valid. Set when the TC field of the label stack entries carries a value that is actually applied in the SR-MPLS data plane. C (bit 2): Copy valid. For the SRv6 data plane, set when the DSCP value marked within the IPv6 header is actually copied to the DSCP field of the outer IPv6 header of the conditioned original packets steered into the SR Policy CP with the bound PHB; for the SR-MPLS data plane, set when the headend MUST directly copy the most significant 3 bits of the DSCP value marked within the IPv6 header is actually copied to the TC field of the label stack entries of the conditioned original packets steered into the SR POlicy CP with the bound PHB. Reserved (bits 3-7): MUST be set to zero on transmission and ignored on reception. 4. Procedures 4.1. Advertisement A headend node that has an SR Policy candidate path with an installed DiffServ PHB binding SHOULD advertise the binding by including the SR Policy DiffServ PHB TLV in the SR Policy Candidate Path NLRI [RFC9857] for that candidate path. The advertising node populates the TLV from its installed forwarding state, not from the message that may have configured the PHB binding: * If the node realizes the PHB in SRv6 by writing a DSCP value to the DSCP field of the outer IPv6 base header, the D flag is set and the DSCP field is populated with that value. * If the node realizes the PHB in SR-MPLS by writing a TC value to the TC field of the label stack entries, the T flag is set and the TC field is populated with that value. * If the node realizes the PHB in SRv6 by copying the DSCP value marked within the IPv6 header to the DSCP field of the outer IPv6 header of the original packets, the C flag is set and the DSCP field is populated with that value. * If the node realizes the PHB in SR-MPLS by copying the most significant 3 bits of the DSCP value marked within the IPv6 header to the TC field of the label stack entries of the original packets, the C flag is set and the TC field is populated with that value. He & Yuan Expires 30 May 2027 [Page 6] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 If the PHB binding of a candidate path changes, the advertising node re-advertises the SR Policy Candidate Path NLRI with the updated TLV, following the NLRI withdrawal and re-advertisement procedures of [RFC9552] and [RFC9857]. When the PHB binding is removed, the advertising node withdraws the TLV. An implementation that supports this document MUST be prepared to advertise the SR Policy DiffServ PHB TLV regardless of the mechanism by which the PHB binding was installed (BGP [I-D.he-idr-bgp-sr- policy-diffserv], PCEP, NETCONF/YANG, or local configuration). 4.2. Reception and Consumption On receipt of an SR Policy Candidate Path NLRI carrying the SR Policy DiffServ PHB TLV, a BGP-LS consumer validates the encoding as follows: * If the Length field is not 4, or a Reserved field is non-zero, the TLV is considered malformed and is ignored for the purposes of interpreting the PHB binding. The consumer uses the reported information to maintain a map of SR Policy candidate path to PHB bindings. It SHOULD be able to compare this actual binding against the desired binding carried by [I-D.he- idr-bgp-sr-policy-diffserv] and to raise an event when the two differ, subject to local policy. The consumer SHOULD NOT treat the reported PHB binding as an instruction to reconfigure the network. The TLV is a telemetry mechanism; it describes what is installed, not what must be installed. 4.3. Relationship to the BGP SR Policy PHB Sub-TLV [I-D.he-idr-bgp-sr-policy-diffserv] defines a southbound, intent- oriented mechanism: a controller or egress node instructs a headend to bind a PHB to an SR Policy candidate path. This document defines a northbound, state-oriented mechanism: a headend reports the PHB binding it has actually installed. The two mechanisms are complementary and use the same field layout for the PHB binding so that desired and actual state can be compared directly. They are also independent: a headend MAY report a PHB binding through this document even if the binding was installed by a means other than [I-D.he-idr-bgp-sr-policy-diffserv], and a headend MAY receive a PHB binding through [I-D.he-idr-bgp-sr-policy-diffserv] without implementing the reporting described here (although doing so is not recommended). He & Yuan Expires 30 May 2027 [Page 7] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 5. IANA Considerations 5.1. SR Policy DiffServ PHB TLV IANA is requested to make the following allocation from the "BGP-LS NLRI and Attribute TLVs" under the "Border Gateway Protocol - Link State (BGP-LS) Parameters" registry group: +========+==============================+================+ | Value | Description | Reference | +========+===============================================+ | TBD1 | SR Policy DiffServ PHB | This document | +--------+------------------------------+----------------+ 5.2. SR Policy DiffServ PHB Flags This document requests to create a new registry called "SR Policy DiffServ PHB Flags" under the "Border Gateway Protocol - Link State (BGP-LS) Parameters" registry group. The registration policy of this registry is "IETF Review" (see [RFC8126]). The following flags are defined: +=====+==============================+================+ | Bit | Description | Reference | +=====+===============================================+ | 0 | DSCP Flag (D-Flag) | This document | +-----+-----------------------------------------------+ | 1 | TC Flag (T-Flag) | This document | +-----+-----------------------------------------------+ | 2 | Copy Flag (C-Flag) | This document | +-----+-----------------------------------------------+ | 3-7 | Unassigned | +-----+-----------------------------------------------+ 6. Security Considerations The extensions defined in this document distribute DiffServ PHB binding information through BGP-LS and are therefore subject to the security considerations of BGP [RFC4271], BGP-LS [RFC9552], and the SR Policy BGP-LS extensions [RFC9857]. In particular: He & Yuan Expires 30 May 2027 [Page 8] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 * The reported PHB binding is telemetry. A false or maliciously modified report could cause a management plane to form an incorrect view of the QoS treatment in the network, potentially leading to incorrect traffic engineering or SLA conclusions. Consumers SHOULD accept BGP-LS information only from trusted speakers and SHOULD protect BGP-LS sessions using the normal BGP security mechanisms. * the reported PHB, DSCP, and TC values carried by the SR Policy DiffServ PHB TLV do not, by themselves, cause the headend to mark traffic; they only describe marking that is already in effect. The security considerations of [RFC9256], [RFC8986], and [RFC8660] also apply to the SR Policies whose bindings are reported. 7. References 7.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC4271] Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI 10.17487/RFC4271, January 2006, . [RFC5462] Andersson, L. and R. Asati, "Multiprotocol Label Switching (MPLS) Label Stack Entry: "EXP" Field Renamed to "Traffic Class" Field", RFC 5462, DOI 10.17487/RFC5462, February 2009, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC9552] Talaulikar, K., Ed., "Distribution of Link-State and Traffic Engineering Information Using BGP", RFC 9552, DOI 10.17487/RFC9552, December 2023, . [RFC9857] Previdi, S., Talaulikar, K., Ed., Dong, J., Gredler, H., and J. Tantsura, "Advertisement of Segment Routing Policies Using BGP - Link State", RFC 9857, DOI 10.17487/RFC9857, October 2025, . He & Yuan Expires 30 May 2027 [Page 9] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 7.2. Informative References [I-D.he-idr-bgp-sr-policy-diffserv] He, X. and Z. Huang, "BGP Extensions of SR Policy for DiffServ", Work in Progress, Internet-Draft, draft-he-idr- bgp-sr-policy-diffserv-00, 26 November 2026, . [RFC2474] Nichols, K., Blake, S., Baker, F., and D. Black, "Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers", RFC 2474, DOI 10.17487/RFC2474, December 1998, . [RFC2475] Blake, S., Black, D., Carlson, M., Davies, E., Wang, Z., and W. Weiss, "An Architecture for Differentiated Services", RFC 2475, DOI 10.17487/RFC2475, December 1998, . [RFC3270] Le Faucheur, F., Ed., Wu, L., Davie, B., Davari, S., Vaananen, P., Krishnan, R., Cheval, P., and J. Heinanen, "Multi-Protocol Label Switching (MPLS) Support of Differentiated Services", RFC 3270, DOI 10.17487/RFC3270, May 2002, . [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, July 2018, . [RFC8660] Bashandy, A., Ed., Filsfils, C., Ed., Previdi, S., Decraene, B., Litkowski, S., and R. Shakir, "Segment Routing with the MPLS Data Plane", RFC 8660, DOI 10.17487/RFC8660, December 2019, . [RFC8986] Filsfils, C., Ed., Camarillo, P., Ed., Leddy, J., Voyer, D., Matsushima, S., and Z. Li, "Segment Routing over IPv6 (SRv6) Network Programming", RFC 8986, DOI 10.17487/RFC8986, February 2021, . [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, September 2025, . He & Yuan Expires 30 May 2027 [Page 10] Internet-Draft Advertisement of SR Policy DiffServ usin November 2026 Authors' Addresses Xiaoming He China Telecom Email: hexm4@chinatelecom.cn Xuejing Yuan China Telecom Email: yuanxj2@chinatelecom.cn He & Yuan Expires 30 May 2027 [Page 11]