Internet-Draft Advertisement of SR Policy DiffServ usin November 2026
He & Yuan Expires 30 May 2027 [Page]
Workgroup:
IDR Working Group
Internet-Draft:
draft-he-idr-bgp-ls-sr-policy-diffserv-00
Published:
Intended Status:
Standards Track
Expires:
Authors:
X. He
China Telecom
X. Yuan
China Telecom

Advertisement of SR Policy DiffServ using BGP Link-State

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.

▲

Table of Contents

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.

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.

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].

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.

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 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:

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).

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:

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, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC4271]
Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI 10.17487/RFC4271, , <https://www.rfc-editor.org/info/rfc4271>.
[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, , <https://www.rfc-editor.org/info/rfc5462>.
[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>.
[RFC9552]
Talaulikar, K., Ed., "Distribution of Link-State and Traffic Engineering Information Using BGP", RFC 9552, DOI 10.17487/RFC9552, , <https://www.rfc-editor.org/info/rfc9552>.
[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, , <https://www.rfc-editor.org/info/rfc9857>.

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, , <https://datatracker.ietf.org/doc/html/draft-he-idr-bgp-sr-policy-diffserv-00>.
[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, , <https://www.rfc-editor.org/info/rfc2474>.
[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, , <https://www.rfc-editor.org/info/rfc2475>.
[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, , <https://www.rfc-editor.org/info/rfc3270>.
[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>.
[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, , <https://www.rfc-editor.org/info/rfc8660>.
[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, , <https://www.rfc-editor.org/info/rfc8986>.
[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>.

Authors' Addresses

Xiaoming He
China Telecom
Xuejing Yuan
China Telecom