RFC 9524
Segment Routing Replication for Multipoint Service Delivery
1. Introduction β¨
Okay bestie, let's get into RFC 9524 π It's titled Segment Routing Replication for Multipoint Service Delivery, and it's an IETF (Internet Engineering Task Force) π¦ Standards Track document, so it's an actual Internet standard and not just a vibe. It's dated February 2024 with ISSN 2070-1721. D. Voyer (Ed.) from Bell Canada is the editor, and the rest of the crew is C. Filsfils and R. Parekh (Cisco Systems, Inc.), H. Bidgoli (Nokia), and Z. Zhang (Juniper Networks). The title block doesn't list anything it obsoletes or updates π
Abstract π
This document describes the Segment Routing Replication segment for multipoint service delivery. A Replication segment allows a packet to be replicated from a replication node to downstream nodes.
Status of This Memo π
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc9524.
Copyright Notice βοΈ
Copyright (c) 2024 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.
Table of Contents πΊοΈ
1. Introduction
1.1. Terminology
1.2. Use Cases
2. Replication Segment
2.1. SR-MPLS Data Plane
2.2. SRv6 Data Plane
2.2.1. End.Replicate: Replicate and/or Decapsulate
2.2.2. OAM Operations
2.2.3. ICMPv6 Error Messages
3. IANA Considerations
4. Security Considerations
5. References
5.1. Normative References
5.2. Informative References
Appendix A. Illustration of a Replication Segment
A.1. SR-MPLS
A.2. SRv6
A.2.1. Pinging a Replication-SID
Acknowledgements
Contributors
Authors' Addresses
1. Introduction πΈ
So the Replication segment is a brand-new type of segment for Segment Routing (SR) [RFC8402], and it lets a node (called a "replication node" π ) copy packets out to a set of other nodes (called "downstream nodes") inside an SR domain. A Replication segment can replicate packets to directly connected nodes or to downstream nodes, and the transit routers don't need to keep any state for it π This document focuses on how a Replication segment behaves for both Segment Routing with Multiprotocol Label Switching (SR-MPLS) [RFC8660] and Segment Routing with IPv6 (SRv6) [RFC8986]. The examples in Appendix A show what a Replication segment looks like in an SR domain π¦ Stitching two or more Replication segments together into a tree using a control plane is left to other documents to specify. Managing IP multicast groups, building IP multicast trees, and doing multicast congestion control are all out of scope here π
1.1. Terminology π
This section defines terms that are introduced and used a lot in this document. For other SR terms, check the Terminology sections of [RFC8402], [RFC8754], and [RFC8986].
- Replication segment: A segment in an SR domain that replicates packets. See Section 2 for the details.
- Replication node: A node in an SR domain that replicates packets based on a Replication segment.
- Downstream nodes: A Replication segment replicates packets to a set of nodes. These nodes are the downstream nodes.
- Replication state: The state held for a Replication segment at a replication node. Conceptually, it's a list of Replication branches to downstream nodes, and the list can be empty π«Ά
- Replication-SID: The data plane identifier of a Replication segment. It's an SR-MPLS label or an SRv6 Segment Identifier (SID).
- SRH: The IPv6 Segment Routing Header [RFC8754].
- Point-to-Multipoint (P2MP) Service: A service that has one ingress node and one or more egress nodes. A packet is delivered to all the egress nodes π
- Root node: The ingress node of a P2MP service.
- Leaf node: An egress node of a P2MP service.
- Bud node: A node that is both a replication node and a leaf node π§
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.
1.2. Use Cases π
In the simplest use case, one Replication segment includes the ingress node of a multipoint service and the egress nodes of that service as all of its downstream nodes. This gives you Ingress Replication [RFC7988], which has been widely used for Multicast VPN (MVPN) [RFC6513] and Ethernet VPN (EVPN) [RFC7432] bridging of Broadcast, Unknown Unicast, and Multicast (BUM) traffic π The Replication segment on the ingress and egress nodes can either be provisioned locally or set up using dynamic autodiscovery procedures for MVPN and EVPN. Also, SRv6 [RFC8986] has an End.DT2M replication behavior for EVPN BUM traffic, so it's already got you covered π
Replication segments can also be used to form trees by stitching Replication segments together on a root node, intermediate replication nodes, and leaf nodes. That's how you get efficient delivery of MVPN and EVPN BUM traffic π
2. Replication Segment π
In an SR domain, a Replication segment is a logical construct that connects a replication node to a set of downstream nodes. It's a local segment that gets instantiated at a Replication node, and it can either be provisioned locally on a node or programmed by a control plane β¨
Replication segments can be stitched together to form a tree, either through local provisioning on nodes or through a control plane. The procedures for doing this are out of scope of this document. One control plane that does this, using a PCE with the SR P2MP policy, is specified in [P2MP-POLICY]. Now, if you use local provisioning to stitch Replication segments, then a chain of Replication segments SHOULD NOT form a loop π If a control plane is used to stitch them, the control plane specification MUST prevent loops or detect and mitigate loops in steady state. No loops, no drama π
A Replication segment is identified by the tuple <Replication-ID, Node-ID>, where:
- Replication-ID: An identifier for a Replication segment that is unique in the context of the replication node.
- Node-ID: The address of the replication node for the Replication segment. Note that the root of a multipoint service is also a Replication node π§
The Replication-ID is a variable-length field. In the simplest case, it can be a 32-bit number, but it can be extended or modified as required based on the specific use of a Replication segment. That's out of scope for this document π«£ The length of the Replication-ID is specified in the signaling mechanism used for the Replication segment. Examples of such signaling and extensions are described in [P2MP-POLICY]. When the PCE signals a Replication segment to its node, the <Replication-ID, Node-ID> tuple is what identifies the segment π¦
A Replication segment includes the following elements:
- Replication-SID: The Segment Identifier of a Replication segment. It's an SR-MPLS label or an SRv6 SID [RFC8402].
- Downstream nodes: The set of nodes in an SR domain to which a packet is replicated by the Replication segment.
- Replication state: See below.
The downstream nodes and the Replication state (RS) of a Replication segment can change over time, depending on the network state and on the leaf nodes of the multipoint service the segment is part of π
The Replication-SID identifies the Replication segment in the forwarding plane. At a replication node, the Replication-SID operates on the RS of the Replication segment π
The RS is a list of Replication branches to the downstream nodes. In this document, each branch is abstracted to a <downstream node, downstream Replication-SID> tuple. The <downstream node> represents the reachability from the replication node to the downstream node. In its simplest form, this MAY be specified as an interface or next-hop if the downstream node is adjacent to the replication node. The reachability may also be specified in terms of a Flexible Algorithm path (including the default algorithm) [RFC9350], or specified by an SR-explicit path, represented either by a SID list (of one or more SIDs) or by a Segment Routing Policy [RFC9256]. The downstream Replication-SID is the Replication-SID of the Replication segment at the downstream node π₯
A packet is steered into a Replication segment at a replication node in two ways:
- When the active segment [RFC8402] is a locally instantiated Replication-SID.
- By the root of a multipoint service, based on local configuration that is outside the scope of this document.
In either case, the packet is replicated to each downstream node in the associated RS π¦
If a downstream node is an egress (leaf) of the multipoint service, no further replication is needed. The leaf node's Replication segment has an indicator for the leaf role, and it does not have any RS (i.e., the list of Replication branches is empty). The Replication-SID at a leaf node MAY be used to identify the multipoint service. Notice that the segment on the leaf node is still referred to as a "Replication segment" for the purpose of generalization πΈ
A node can be a bud node (i.e., it is a replication node and a leaf node of a multipoint service [P2MP-POLICY]). The Replication segment of a bud node has a list of Replication branches as well as a leaf role indicator. Bud nodes are doing double duty and honestly it's iconic π
In principle, it is possible for different Replication segments to replicate packets to the same Replication segment on a downstream node. However, that usage is intentionally left out of scope of this document π
2.1. SR-MPLS Data Plane β¨
okay so when the active segment is a Replication-SID, the processing ends up as a POP [RFC8402] and then a lookup of the associated RS π. For every replication in the RS, the move is a PUSH [RFC8402] of the downstream Replication-SID plus an optional segment list onto the packet, which steers it to the downstream node π.
The operation on the incoming Replication-SID is NEXT [RFC8402] at a leaf or bud node, where delivering the payload off the tree depends on local configuration π . For some usages, that might mean peeking at the next SID to grab the context it needs π«Ά.
When the root of a multipoint service steers a packet to a Replication segment, it gets replicated to each downstream node in the associated RS π¦. The operation is a PUSH of the Replication-SID and an optional segment list onto the packet, and then the packet is forwarded to the downstream node π.
The following applies to a Replication-SID in MPLS encapsulation:
- SIDs MAY be inserted before the downstream SR-MPLS Replication-SID, so a packet can be guided from a non-adjacent SR node to a replication node π§.
- A replication node MAY replicate a packet to a non-adjacent downstream node using SIDs it inserts in the copy preceding the downstream Replication-SID πΈ. The downstream node may be a leaf node of the Replication segment, another replication node, or both in the case of a bud node.
- A replication node MAY use an Anycast-SID or a Border Gateway Protocol (BGP) PeerSet-SID in the segment list to send a replicated packet to one downstream replication node in a set of Anycast nodes π. This occurs if and only if all nodes in the set have an identical Replication-SID and reach the same set of receivers.
- For some use cases, there MAY be SIDs after the Replication-SID in the segment list of a packet π. These SIDs are used only by the leaf and bud nodes to forward a packet off the tree, independent of the Replication-SID. Coordination regarding the absence or presence and value of context information for leaf and bud nodes is outside the scope of this document.
2.2. SRv6 Data Plane π
For SRv6 [RFC8986], this document specifies the "Endpoint with replication and/or decapsulate" behavior (End.Replicate for short) π§ββοΈ. It replicates a packet and forwards the replicas according to an RS.
When processing a packet destined to a local Replication-SID, the packet is replicated according to the associated RS to downstream nodes, and/or it's delivered locally off the tree when this is a leaf or bud node π . For replication, the outer header is reused, and the downstream Replication-SID from the RS is written into the outer IPv6 header Destination Address (DA) π¦. If required, an optional segment list may be used on some branches using H.Encaps.Red [RFC8986], while other branches may not need that. Note that this H.Encaps.Red is independent of the Replication segment. It's just used to steer the replicated packet on a traffic-engineered path to a downstream node π£οΈ. The penultimate segment in the encapsulating IPv6 header executes the Ultimate Segment Decapsulation (USD) flavor [RFC8986] of End/End.X behavior and forwards the inner (replicated) packet to the downstream node π«. If H.Encaps.Red is used to steer a replicated packet to a downstream node, the operator must ensure the MTU on the path to that downstream node is sufficient to account for the additional SRv6 encapsulation π. This also applies when the Replication segment is for the root node, whose upstream node has placed the Replication-SID in the header.
A local application on the root (e.g., MVPN [RFC6513] or EVPN [RFC7432]) may also apply H.Encaps.Red and then steer the resulting traffic into the Replication segment π. Again, H.Encaps.Red is independent of the Replication segment. It's the action of the application (e.g., MVPN or EVPN service) π. If the service is on a root node, then the two H.Encaps operations, one for the service and the other for replication to the downstream node, SHOULD be combined for optimization (to avoid extra IPv6 encapsulation) β¨.
When processing a packet destined to a local Replication-SID, the IPv6 Hop Limit MUST be decremented and MUST be non-zero for the packet to be replicated π₯. A root node that encapsulates a payload can set the IPv6 Hop Limit based on a local policy. This local policy SHOULD set the IPv6 Hop Limit so that a replicated packet can reach the furthest leaf node πΈ. A root node can also have a local policy to set the IPv6 Hop Limit from the payload. In this case, the IPv6 Hop Limit may not be enough to get the replicated packet to all the leaf nodes π₯². Non-replication nodes (i.e., nodes that forward replicated packets based on the IPv6 locator unicast prefix) can decrement the IPv6 Hop Limit to zero and originate ICMPv6 error packets to the root node. This can cause a storm of ICMPv6 packets (see Section 2.2.3) to the root node π. To avoid this, a Replication segment has an optional IPv6 Hop Limit Threshold. If this threshold is set, a replication node MUST discard an incoming packet with a local Replication-SID if the IPv6 Hop Limit in the packet is less than the threshold, and it MUST log this in a rate-limited manner π. The IPv6 Hop Limit Threshold SHOULD be set so that an incoming packet can be replicated to the furthest leaf node π.
For leaf and bud nodes, local delivery off the tree is per Replication-SID or per the next SID (if present in the SRH) π§. For some usages, this may involve getting the necessary context either from the next SID (e.g., MVPN with a shared tree) or from the Replication-SID itself (e.g., MVPN with a non-shared tree). In both cases, the context association is achieved with signaling, which is out of scope of this document π‘.
The following applies to a Replication-SID in SRv6 encapsulation:
- There MAY be SIDs preceding the SRv6 Replication-SID, in order to guide a packet from a non-adjacent SR node to a replication node via an explicit path πΊοΈ.
- A replication node MAY steer a replicated packet on an explicit path to a non-adjacent downstream node using SIDs it inserts in the copy preceding the downstream Replication-SID π¦. The downstream node may be a leaf node of the Replication segment, another replication node, or both in the case of a bud node.
- For SRv6, as described in the paragraphs above, inserting SIDs prior to the Replication-SID entails a new IPv6 encapsulation with the SRH π§©. However, this can be optimized on the root node or for compressed SRv6 SIDs.
- The locator of the Replication-SID is sufficient to guide a packet on the shortest path between non-adjacent nodes for default or Flexible Algorithms π€οΈ.
- A replication node MAY use an Anycast-SID or a BGP PeerSet-SID in the segment list to send a replicated packet to one downstream replication node in an Anycast set π. This occurs if and only if all nodes in the set have an identical Replication-SID and reach the same set of receivers.
- There MAY be SIDs after the Replication-SID in the SRH of a packet π. These SIDs are used to provide additional context for processing a packet locally at the node where the Replication-SID is the active segment. Coordination regarding the absence or presence and value of context information for leaf and bud nodes is outside the scope of this document.
2.2.1. End.Replicate: Replicate and/or Decapsulate π¦
okay so the "Endpoint with replication and/or decapsulate" (End.Replicate for short) is a variant of the End behavior π
The pseudocode here follows the same convention that [RFC8986] introduced, so if you've seen that one, you're already set bestie π«Ά
An RS conceptually has these elements:
Replication state:
{
Node-Role: {Head, Transit, Leaf, Bud};
IPv6 Hop Limit Threshold; # default is zero
# On Leaf, replication list is zero length
Replication-List:
{
downstream node: <Node-Identifier>;
downstream Replication-SID: R-SID;
# Segment-List may be empty
Segment-List: [SID-1, .... SID-N];
}
}
Below is the Replicate function on a packet for Replication state (RS). It's giving copy-and-send energy β¨
S01. Replicate(RS, packet)
S02. {
S03. For each Replication R in RS.Replication-List {
S04. Make a copy of the packet
S05. Set IPv6 DA = RS.R-SID
S06. If RS.Segment-List is not empty {
S07. # Head node may optimize below encapsulation and
S08. # the encapsulation of packet in a single encapsulation
S09. Execute H.Encaps or H.Encaps.Red with RS.Segment-List
on packet copy #RFC 8986, Sections 5.1 and 5.2
S10. }
S11. Submit the packet to the egress IPv6 FIB lookup and
transmission to the new destination
S12. }
S13. }
Notes:
- The IPv6 DA in the copy of a packet is set from the local state and not from the SRH. π
When N receives a packet whose IPv6 DA is S and S is a local End.Replicate SID, N does:
S01. Lookup FUNCT portion of S to get Replication state (RS)
S02. If (IPv6 Hop Limit <= 1) {
S03. Discard the packet
S04. # ICMPv6 Time Exceeded is not permitted
(see Section 2.2.3)
S05. }
S06. If RS is not found {
S07. Discard the packet
S08. }
S09. If (IPv6 Hop Limit < RS.IPv6 Hop Limit Threshold) {
S10. Discard the packet
S11. # Rate-limited logging
S12. }
S13. Decrement IPv6 Hop Limit by 1
S14. If (IPv6 NH == SRH and SRH TLVs present) {
S15. Process SRH TLVs if allowed by local configuration
S16. }
S17. Call Replicate(RS, packet)
S18. If (RS.Node-Role == Leaf OR RS.Node-Role == bud) {
S19. If (IPv6 NH == SRH and Segments Left > 0) {
S20. Derive packet processing context (PPC) from Segment List
S21. If (Segments Left != 0) {
S22. Discard the packet
S23. # ICMPv6 Parameter Problem message with Code 0
S24. # (Erroneous header field encountered)
S25. # is not permitted (Section 2.2.3)
S26. }
S27. } Else {
S28. Derive packet processing context (PPC)
from FUNCT of Replicatio-SID
S29. }
S30. Process the next header
S31. }
The processing of the Upper-Layer header of a packet matching the End.Replicate SID at a leaf or bud node goes like this:
S01. If (Upper-Layer header type == 4(IPv4) OR
Upper-Layer header type == 41(IPv6) ) {
S02. Remove the outer IPv6 header with all its extension headers
S03. Process the packet in context of PPC
S04. } Else If (Upper-Layer header type == 143(Ethernet) ) {
S05. Remove the outer IPv6 header with all its extension headers
S06. Process the Ethernet Frame in context of PPC
S07. } Else If (Upper-Layer header type is allowed
by local configuration) {
S08. Proceed to process the Upper-Layer header
S09. } Else {
S10. Discard the packet
S11. # ICMPv6 Parameter Problem message with Code 4
S12. # (SR Upper-Layer header Error)
S13. # is not permitted (Section 2.2.3)
S14. }
Notes:
- The behavior above MAY result in a packet with a partially processed segment list in the SRH under some circumstances. For example, a head node may encode a context-SID in an SRH. As per the pseudocode above, a replication node that receives a packet with a local Replication-SID will not process the SRH segment list and will just forward a copy with an unmodified SRH to downstream nodes. π
- The packet processing context is usually a FIB table "T".
If configured to process TLVs, processing the Replication-SID may modify the "variable-length data" of TLV types that change en route. Therefore, TLVs that change en route are mutable. The remainder of the SRH (Segments Left, Flags, Tag, Segment List, and TLVs that do not change en route) are immutable while processing this SID. so only the en-route TLVs get to glow up, everything else stays frozen π§
2.2.1.1. Hashed Message Authentication Code (HMAC) SRH TLV π
If a root node encodes a context-SID in an SRH with an optional HMAC SRH TLV [RFC8754], it MUST set the 'D' bit as defined in Section 2.1.2 of [RFC8754] because the Replication-SID is not part of the segment list in the SRH.
HMAC generation and verification is as specified in [RFC8754]. Verification of an HMAC TLV is determined by local configuration. If verification fails, an implementation of a Replication-SID MUST NOT originate an ICMPv6 Parameter Problem message with code 0. The failure SHOULD be logged (rate-limited) and the packet SHOULD be discarded. no error spam, just a quiet log and a discard, periodt π ββοΈ
2.2.2. OAM Operations π
[RFC9259] specifies procedures for Operations, Administration, and Maintenance (OAM) like ping and traceroute on SRv6 SIDs.
Assuming the source node knows the Replication-SID a priori, it is possible to ping a Replication-SID of a leaf or bud node directly by putting it in the IPv6 DA without an SRH or in an SRH as the last segment. While it is not possible to ping a Replication-SID of a transit node because transit nodes do not process Upper-Layer headers, it is still possible to ping a Replication-SID of a leaf or bud node of a tree via the Replication-SID of intermediate transit nodes. The source of the ping MUST compute the ICMPv6 Echo Request checksum using the Replication-SID of the leaf or bud node as the DA. The source can then send the Echo Request packet to a transit node's Replication-SID. The transit node replicates the packet by replacing the IPv6 DA until the packet reaches the leaf or bud node, which responds with an ICMPv6 Echo Reply. Note that a transit replication node may replicate Echo Request packets to other leaf or bud nodes. These nodes will drop the Echo Request due to an incorrect checksum. Procedures to prevent the misdelivery of an Echo Request may be addressed in a future document. Appendix A.2.1 illustrates examples of a ping to a Replication-SID. π
Traceroute to a leaf or bud node Replication-SID is not possible due to restrictions prohibiting the origination of the ICMPv6 Time Exceeded error message for a Replication-SID as described in Section 2.2.3. no traceroute glow-up for these SIDs, sorry not sorry π
2.2.3. ICMPv6 Error Messages π«
Section 2.4 of [RFC4443] states an ICMPv6 error message MUST NOT be originated as a result of receiving a packet destined to an IPv6 multicast address. This is to prevent a source node from being overwhelmed by a storm of ICMPv6 error messages resulting from replicated IPv6 packets. There are two exceptions:
- The Packet Too Big message for Path MTU discovery, and
- The ICMPv6 Parameter Problem message with Code 2 reporting an unrecognized IPv6 option.
An implementation of a Replication segment for SRv6 MUST enforce these same restrictions and exceptions. π‘οΈ
3. IANA Considerations π
IANA has assigned the following codepoint for End.Replicate behavior in the "SRv6 Endpoint Behaviors" registry in the "Segment Routing" registry group.
+=======+========+===================+===========+============+
| Value | Hex | Endpoint Behavior | Reference | Change |
| | | | | Controller |
+=======+========+===================+===========+============+
| 75 | 0x004B | End.Replicate | RFC 9524 | IETF |
+-------+--------+-------------------+-----------+------------+
Table 1: SRv6 Endpoint Behavior
4. Security Considerations πβ¨
Okay bestie, this part is SERIOUS π The SID behaviors in this doc are deployed inside an SR domain [RFC8402], and that domain needs protection from outside attackers (see [RFC8754]). Here's the quick reminder:
- For SR-MPLS deployments:
- Disable MPLS on external interfaces of each edge node, or use any other technique to filter labeled traffic ingressing on these interfaces.
- For SRv6 deployments:
- Allocate all the SIDs from an IPv6 prefix block
S/sand configure each external interface of each edge node of the domain with an inbound Infrastructure Access Control List (IACL) that drops any incoming packet with a DA inS/s. - Additionally, an IACL may be applied to all nodes (k) provisioning SIDs as defined in this specification:
- Assign all interface addresses from within IPv6 prefix
A/a. At node k, all SIDs local to k are assigned from prefixSk/sk. Configure each internal interface of each SR node k in the SR domain with an inbound IACL that drops any incoming packet with a DA inSk/skif the source address is not inA/a.
- Assign all interface addresses from within IPv6 prefix
- Deny traffic with spoofed source addresses by implementing the recommendations in BCP 84 [RFC3704].
- Additionally, the block
S/sfrom which SIDs are allocated may be an address that is not globally routable, such as a Unique Local Address (ULA) or the prefix defined in [SIDS-SRv6].
- Allocate all the SIDs from an IPv6 prefix block
Failure to protect the SR-MPLS domain by correctly provisioning MPLS support per interface π¨ lets attackers from outside the domain send packets that use the replication services provisioned within the domain.
Failure to protect the SRv6 domain with IACLs on external interfaces, combined with failure to implement the recommendations of BCP 38 [RFC2827] or to apply IACLs on nodes provisioning SIDs, lets attackers from outside the SR domain send packets that use the replication services provisioned within the domain. Not it. π
Okay, the good news π«Ά Given the definition of the Replication segment in this document, an attacker who gets past the ingress filters above cannot use a stack of Replication segments to do amplification attacks or link exhaustion attacks. Replication segment trees always terminate at a leaf or bud node, which results in a decapsulation. Still, this does allow an attacker to inject traffic to the receivers within a P2MP service, so keep those filters up.
This document introduces an SR segment endpoint behavior that replicates and decapsulates an inner payload for both the MPLS and IPv6 data planes. Similar to any MPLS end-of-stack label or SRv6 END.D* behavior, if the protections described above are not implemented, an attacker can perform an attack via the decapsulating segment (including the one described in this document).
Incorrect provisioning of Replication segments can result in a chain of Replication segments forming a loop π This can happen if Replication segments are provisioned on SR nodes without using a control plane. In that case, replicated packets can create a storm until the MPLS TTL (for SR-MPLS) or the IPv6 Hop Limit (for SRv6) decrements to zero. A control plane such as PCE can be used to prevent loops. The control plane protocols (like Path Computation Element Communication Protocol (PCEP), BGP, etc.) used to instantiate Replication segments can use their own security mechanisms, such as encryption, authentication, filtering, etc.
For SRv6, Section 2.2.3 describes an exception for the ICMPv6 Parameter Problem message with Code 2. If an attacker sends a packet destined to a Replication-SID with the source address of a node, and with an extension header using the unknown option type marked as mandatory, then a large number of ICMPv6 Parameter Problem messages can cause a denial-of-service attack on the source node. Although this document does not specify any extension headers, any future extension of this document that does so is susceptible to this security concern.
If an attacker can forge an IPv6 packet with:
- the source address of a node,
- a Replication-SID as the DA, and
- an IPv6 Hop Limit such that nodes that forward replicated packets on an IPv6 locator unicast prefix decrement the Hop Limit to zero,
then these nodes can cause a storm of ICMPv6 error packets to overwhelm the source node under attack. The IPv6 Hop Limit Threshold check described in Section 2.2 can help mitigate such attacks. π‘οΈ
5. References π
5.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,
https://www.rfc-editor.org/info/rfc2119. - [RFC4443] Conta, A., Deering, S., and M. Gupta, Ed., "Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification", STD 89, RFC 4443, DOI 10.17487/RFC4443, March 2006,
https://www.rfc-editor.org/info/rfc4443. - [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017,
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, July 2018,
https://www.rfc-editor.org/info/rfc8402. - [RFC8754] Filsfils, C., Ed., Dukes, D., Ed., Previdi, S., Leddy, J., Matsushima, S., and D. Voyer, "IPv6 Segment Routing Header (SRH)", RFC 8754, DOI 10.17487/RFC8754, March 2020,
https://www.rfc-editor.org/info/rfc8754. - [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,
https://www.rfc-editor.org/info/rfc8986. - [RFC9259] Ali, Z., Filsfils, C., Matsushima, S., Voyer, D., and M. Chen, "Operations, Administration, and Maintenance (OAM) in Segment Routing over IPv6 (SRv6)", RFC 9259, DOI 10.17487/RFC9259, June 2022,
https://www.rfc-editor.org/info/rfc9259.
5.2. Informative References
- [P2MP-POLICY] Voyer, D., Ed., Filsfils, C., Parekh, R., Bidgoli, H., and Z. J. Zhang, "Segment Routing Point-to-Multipoint Policy", Work in Progress, Internet-Draft, draft-ietf-pim-sr-p2mp-policy-07, 11 October 2023,
https://datatracker.ietf.org/doc/html/draft-ietf-pim-sr-p2mp-policy-07. - [PGM-ILLUSTRATION] Filsfils, C., Camarillo, P., Ed., Li, Z., Matsushima, S., Decraene, B., Steinberg, D., Lebrun, D., Raszuk, R., and J. Leddy, "Illustrations for SRv6 Network Programming", Work in Progress, Internet-Draft, draft-filsfils-spring-srv6-net-pgm-illustration-04, 30 March 2021,
https://datatracker.ietf.org/doc/html/draft-filsfils-spring-srv6-net-pgm-illustration-04. - [RFC2827] Ferguson, P. and D. Senie, "Network Ingress Filtering: Defeating Denial of Service Attacks which employ IP Source Address Spoofing", BCP 38, RFC 2827, DOI 10.17487/RFC2827, May 2000,
https://www.rfc-editor.org/info/rfc2827. - [RFC3704] Baker, F. and P. Savola, "Ingress Filtering for Multihomed Networks", BCP 84, RFC 3704, DOI 10.17487/RFC3704, March 2004,
https://www.rfc-editor.org/info/rfc3704. - [RFC6513] Rosen, E., Ed. and R. Aggarwal, Ed., "Multicast in MPLS/BGP IP VPNs", RFC 6513, DOI 10.17487/RFC6513, February 2012,
https://www.rfc-editor.org/info/rfc6513. - [RFC7432] Sajassi, A., Ed., Aggarwal, R., Bitar, N., Isaac, A., Uttaro, J., Drake, J., and W. Henderickx, "BGP MPLS-Based Ethernet VPN", RFC 7432, DOI 10.17487/RFC7432, February 2015,
https://www.rfc-editor.org/info/rfc7432. - [RFC7988] Rosen, E., Ed., Subramanian, K., and Z. Zhang, "Ingress Replication Tunnels in Multicast VPN", RFC 7988, DOI 10.17487/RFC7988, October 2016,
https://www.rfc-editor.org/info/rfc7988. - [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,
https://www.rfc-editor.org/info/rfc8660. - [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,
https://www.rfc-editor.org/info/rfc9256. - [RFC9350] Psenak, P., Ed., Hegde, S., Filsfils, C., Talaulikar, K., and A. Gulko, "IGP Flexible Algorithm", RFC 9350, DOI 10.17487/RFC9350, February 2023,
https://www.rfc-editor.org/info/rfc9350. - [SIDS-SRv6] Krishnan, S., "SRv6 Segment Identifiers in the IPv6 Addressing Architecture", Work in Progress, Internet-Draft, draft-ietf-6man-sids-06, 15 February 2024,
https://datatracker.ietf.org/doc/html/draft-ietf-6man-sids-06.
Appendix A. Illustration of a Replication Segment π
This section shows an example of a single Replication segment, so you can see it in action π Examples of Replication segments stitched together to form a P2MP tree (based on SR P2MP policy) are in [P2MP-POLICY], so go check those out too.
Consider the following topology:
R3------R6
/ \
R1----R2----R5-----R7
\ /
+--R4---+
Figure 1: Topology for Illustration of a Replication Segment
A.1. SR-MPLS β¨
okay so in this example π¦ the Node-SID of a node Rn is N-SIDn, and the Adj-SID from node Rm to node Rn is A-SIDmn. The interface between Rm and Rn is Lmn. The state representation uses "R-SID->Lmn" to show a packet replication, with outgoing Replication-SID R-SID sent on interface Lmn. π
Let's say there's a Replication segment identified with R-ID at Replication node R1, with downstream nodes R2, R6, and R7. The Replication-SID at node n is R-SIDn. A packet replicated from R1 to R7 has to go through R4 πΈ
The Replication segments at nodes R1, R2, R6, and R7 look like this. Heads up, nodes R3, R4, and R5 don't have a Replication segment π
Replication segment at R1:
Replication segment
<R-ID,R1>: Replication-SID: R-SID1 Replication state: R2:
<R-SID2->L12> R6: <N-SID6, R-SID6> R7: <N-SID4,
A-SID47, R-SID7>
Replication to R2 steers the packet straight to R2 on interface L12. Replication to R6, using N-SID6, steers the packet along the shortest path to that node. Replication to R7 goes via R4, using N-SID4 and then the adjacency SID A-SID47 to reach R7 π¦
Replication segment at R2:
Replication segment
<R-ID,R2>: Replication-SID: R-SID2 Replication state: R2:
<Leaf>
Replication segment at R6:
Replication segment
<R-ID,R6>: Replication-SID: R-SID6 Replication state: R6:
<Leaf>
Replication segment at R7:
Replication segment
<R-ID,R7>: Replication-SID: R-SID7 Replication state: R7:
<Leaf>
When a packet gets steered into the Replication segment at R1, here's what happens π
- R1 does the PUSH operation with just the
<R-SID2>label for the replicated copy, and sends it to R2 on interface L12, since R1 is directly connected to R2. R2, as leaf, does the NEXT operation, pops the R-SID2 label, and delivers the payload π - R1 does the PUSH operation with the
<N-SID6, R-SID6>label stack for the replicated copy to R6, and sends it to R2, which is the nexthop on the shortest path to R6. R2 does the CONTINUE operation on N-SID6 and forwards it to R3. R3 is the penultimate hop for N-SID6, and it does penultimate hop popping, which corresponds to the NEXT operation. The packet then goes to R6 with<R-SID6>in the label stack. R6, as leaf, does the NEXT operation, pops the R-SID6 label, and delivers the payload π§ - R1 does the PUSH operation with the
<N-SID4, A-SID47, R-SID7>label stack for the replicated copy to R7, and sends it to R2, which is the nexthop on the shortest path to R4. R2 is the penultimate hop for N-SID4, and it does penultimate hop popping, which corresponds to the NEXT operation. The packet then goes to R4 with<A-SID47, R-SID1>in the label stack. R4 does the NEXT operation, pops A-SID47, and delivers the packet to R7 with<R-SID7>in the label stack. R7, as leaf, does the NEXT operation, pops the R-SID7 label, and delivers the payload π
A.2. SRv6 π¦
For SRv6, we use the SID allocation scheme from "Illustrations for SRv6 Network Programming" [PGM-ILLUSTRATION], which is reproduced below π
2001:db8::/32is an IPv6 block allocated by a Regional Internet Registry (RIR) to the operator.2001:db8:0::/48is dedicated to the internal address space.2001:db8:cccc::/48is dedicated to the internal SRv6 SID space.- We assume a location expressed in 64 bits and a function expressed in 16 bits.
- Node k has a classic IPv6 loopback address
2001:db8::k/128, which is advertised in the Interior Gateway Protocol (IGP). - Node k has
2001:db8:cccc:k::/64for its local SID space. Its SIDs will be explicitly assigned from that block. - Node k advertises
2001:db8:cccc:k::/64in its IGP. - Function
:1::(function 1, for short) represents the End function with the Penultimate Segment Pop (PSP) of the SRH [RFC8986] and USD support. - Function
:Cn::(function Cn, for short) represents the End.X function from to Node n with PSP and USD support.
Each node k has:
- An explicit SID instantiation
2001:db8:cccc:k:1::/128bound to an End function with additional support for PSP and USD. - An explicit SID instantiation
2001:db8:cccc:k:Cj::/128bound to an End.X function to neighbor J with additional support for PSP and USD. - An explicit SID instantiation
2001:db8:cccc:k:Fk::/128bound to an End.Replicate function.
Now let's say there's a Replication segment identified with R-ID at Replication node R1, with downstream nodes R2, R6, and R7. The Replication-SID at node k, bound to an End.Replicate function, is 2001:db8:cccc:k:Fk::/128. A packet replicated from R1 to R7 has to go through R4 β¨
The Replication segments at nodes R1, R2, R6, and R7 are shown below. Nodes R3, R4, and R5 don't have a Replication segment, so no surprises there π The state representation uses "R-SID->Lmn" to show a packet replication with outgoing Replication-SID R-SID sent on interface Lmn. "SL" is an optional segment list used to steer a replicated packet onto a specific path to a downstream node.
Replication segment at R1:
Replication segment
<R-ID,R1>: Replication-SID: 2001:db8:cccc:1:F1::0 Replication
state: R2: <2001:db8:cccc:2:F2::0->L12> R6:
<2001:db8:cccc:6:F6::0> R7: <2001:db8:cccc:4:C7::0>, SL:
<2001:db8:cccc:7:F7::0>
Replication to R2 steers the packet directly to R2 on interface L12. Replication to R6, using 2001:db8:cccc:6:F6::0, steers the packet along the shortest path to that node. Replication to R7 goes via R4, using H.Encaps.Red with the End.X SID 2001:db8:cccc:4:C7::0 at R4 to reach R7 π
Replication segment at R2:
Replication segment
<R-ID,R2>: Replication-SID: 2001:db8:cccc:2:F2::0 Replication
state: R2: <Leaf>
Replication segment at R6:
Replication segment
<R-ID,R6>: Replication-SID: 2001:db8:cccc:6:F6::0 Replication
state: R6: <Leaf>
Replication segment at R7:
Replication segment
<R-ID,R7>: Replication-SID: 2001:db8:cccc:7:F7::0 Replication
state: R7: <Leaf>
When a packet, (A,B2), gets steered into the Replication segment at R1, things get fun π
- R1 creates an encapsulated replicated copy
(2001:db8::1, 2001:db8:cccc:2:F2::0) (A, B2)and sends it to R2 on interface L12, since R1 is directly connected to R2. R2, as leaf, removes the outer IPv6 header and delivers the payload π - R1 creates an encapsulated replicated copy
(2001:db8::1, 2001:db8:cccc:6:F6::0) (A, B2), then forwards the resulting packet along the shortest path to2001:db8:cccc:6::/64. R2 and R3 forward the packet using2001:db8:cccc:6::/64. R6, as leaf, removes the outer IPv6 header and delivers the payload π§ - R1 has to steer the packet to downstream node R7 via node R4. There are two ways it can do this π«Ά
- R1 creates an encapsulated replicated copy
(2001:db8::1, 2001:db8:cccc:7:F7::0) (A, B2), then does H.Encaps.Red using the SL to create the(2001:db8::1, 2001:db8:cccc:4:C7::0) (2001:db8::1, 2001:db8:cccc:7:F7::0) (A, B2)packet. It sends this packet to R2, which is the nexthop on the shortest path to2001:db8:cccc:4::/64. R2 forwards the packet to R4 using2001:db8:cccc:4::/64. R4 executes the End.X function on2001:db8:cccc:4:C7::0, performs a USD action, removes the outer IPv6 encapsulation, and sends the resulting packet(2001:db8::1, 2001:db8:cccc:7:F7::0) (A, B2)to R7. R7, as leaf, removes the outer IPv6 header and delivers the payload π¦ - R1 is the root of the Replication segment, so it can combine the encapsulations above to create an encapsulated replicated copy
(2001:db8::1, 2001:db8:cccc:4:C7::0) (2001:db8:cccc:7:F7::0; SL=1) (A, B2)and sends it to R2, which is the nexthop on the shortest path to2001:db8:cccc:4::/64. R2 forwards the packet to R4 using2001:db8:cccc:4::/64. R4 executes the End.X function on2001:db8:cccc:4:C7::0, performs a PSP action, removes the SRH, and sends the resulting packet(2001:db8::1, 2001:db8:cccc:7:F7::0) (A, B2)to R7. R7, as leaf, removes the outer IPv6 header and delivers the payload π
- R1 creates an encapsulated replicated copy
A.2.1. Pinging a Replication-SID π
This section shows how to ping a Replication-SID β¨
Node R1 pings the Replication-SID of node R6 directly by sending this packet:
- R1 to R6:
(2001:db8::1, 2001:db8:cccc:6:F6::0; NH=ICMPv6) (ICMPv6 Echo Request). - Node R6, as a leaf, processes the upper-layer ICMPv6 Echo Request and responds with an ICMPv6 Echo Reply.
Node R1 pings the Replication-SID of R7 via R4 by sending this packet with the SRH:
- R1 to R4:
(2001:db8::1, 2001:db8:cccc:4:C7::0) (2001:db8:cccc:7:F7::0; SL=1; NH=ICMPV6) (ICMPv6 Echo Request). - R4 to R7:
(2001:db8::1, 2001:db8:cccc:7:F7::0; NH=ICMPv6) (ICMPv6 Echo Request). - Node R7, as a leaf, processes the upper-layer ICMPv6 Echo Request and responds with an ICMPv6 Echo Reply.
Say node R4 is a transit replication node with Replication-SID 2001:db8:cccc:4:F4::0, replicating to R7. Node R1 pings the Replication-SID of R7 via the Replication-SID of R4 like this π
- R1 to R4:
(2001:db8::1, 2001:db8:cccc:4:F4::0; NH=ICMPv6) (ICMPv6 Echo Request). - R4 replicates to R7 by replacing the IPv6 DA with the Replication-SID of R7 from its Replication state.
- R4 to R7:
(2001:db8::1, 2001:db8:cccc:7:F7::0; NH=ICMPv6) (ICMPv6 Echo Request). - Node R7, as a leaf, processes the upper-layer ICMPv6 Echo Request and responds with an ICMPv6 Echo Reply.
Acknowledgements π«Ά
The authors would like to give a huge thank you to Siva Sivabalan, Mike Koldychev, Vishnu Pavan Beeram, Alexander Vainshtein, Bruno Decraene, Thierry Couture, Joel Halpern, Ketan Talaulikar, Darren Dukes and Jingrong Xie for their valuable inputs π
Contributors πΈ
Clayton Hassen
Bell Canada
Vancouver
Canada
Email: clayton.hassen@bell.ca
Kurtis Gillis
Bell Canada
Halifax
Canada
Email: kurtis.gillis@bell.ca
Arvind Venkateswaran
Cisco Systems, Inc.
San Jose, CA
United States of America
Email: arvvenka@cisco.com
Zafar Ali
Cisco Systems, Inc.
United States of America
Email: zali@cisco.com
Swadesh Agrawal
Cisco Systems, Inc.
San Jose, CA
United States of America
Email: swaagraw@cisco.com
Jayant Kotalwar
Nokia
Mountain View, CA
United States of America
Email: jayant.kotalwar@nokia.com
Tanmoy Kundu
Nokia
Mountain View, CA
United States of America
Email: tanmoy.kundu@nokia.com
Andrew Stone
Nokia
Ottawa
Canada
Email: andrew.stone@nokia.com
Tarek Saad
Cisco Systems, Inc.
Canada
Email: tsaad@cisco.com
Kamran Raza
Cisco Systems, Inc.
Canada
Email: skraza@cisco.com
Jingrong Xie
Huawei Technologies
Beijing
China
Email: xiejingrong@huawei.com
Authors' Addresses π
Daniel Voyer (editor)
Bell Canada
Montreal
Canada
Email: daniel.voyer@bell.ca
Clarence Filsfils
Cisco Systems, Inc.
Brussels
Belgium
Email: cfilsfil@cisco.com
Rishabh Parekh
Cisco Systems, Inc.
San Jose, CA
United States of America
Email: riparekh@cisco.com
Hooman Bidgoli
Nokia
Ottawa
Canada
Email: hooman.bidgoli@nokia.com
Zhaohui Zhang
Juniper Networks
Email: zzhang@juniper.net
π¦ where this page comes from
- ietf: rfc9524 2024-02
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms