RFC 9631 | IPv6 Compact Routing Header | August 2024 |
Bonica, et al. | Experimental | [Page] |
This document describes an experiment in which two new IPv6 Routing headers are implemented and deployed. Collectively, they are called the Compact Routing Header (CRH). Individually, they are called CRH-16 and CRH-32.¶
One purpose of this experiment is to demonstrate that the CRH can be implemented and deployed in a production network. Another purpose is to demonstrate that the security considerations described in this document can be addressed with Access Control Lists (ACLs). Finally, this document encourages replication of the experiment.¶
This document is not an Internet Standards Track specification; it is published for examination, experimental implementation, and evaluation.¶
This document defines an Experimental Protocol for the Internet community. 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). Not all documents approved by the IESG are candidates for any level of Internet Standard; see 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/rfc9631.¶
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.¶
IPv6 [RFC8200] source nodes use Routing headers to specify the path that a packet takes to its destination(s). The IETF has defined several Routing Types; see [IANA-RT]. This document defines two new Routing Types. Collectively, they are called the Compact Routing Header (CRH). Individually, they are called CRH-16 and CRH-32.¶
The CRH allows IPv6 source nodes to specify the path that a packet takes to its destination. The CRH can be encoded in relatively few bytes. The following are reasons for encoding the CRH in as few bytes as possible:¶
Many forwarders based on Application-Specific Integrated Circuits (ASICs) copy headers from buffer memory to on-chip memory. As header sizes increase, so does the cost of this copy.¶
Because Path MTU Discovery (PMTUD) [RFC8201] is not entirely reliable, many IPv6 hosts refrain from sending packets larger than the IPv6 minimum link MTU (i.e., 1280 bytes). When packets are small, the overhead imposed by large Routing headers is excessive.¶
This document describes an experiment with the following purposes:¶
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.¶
Both CRH versions (i.e., CRH-16 and CRH-32) contain the following fields:¶
In the CRH, the type-specific data field contains a list of CRH Segment Identifiers (CRH SIDs). Each CRH SID identifies an entry in the CRH Forwarding Information Base (CRH-FIB) (Section 4). Each CRH-FIB entry identifies an interface on the path that the packet takes to its destination.¶
CRH SIDs are listed in reverse order. So, the first CRH SID in the list represents the final interface in the path. Because CRH SIDs are listed in reverse order, the Segments Left field can be used as an index into the CRH SID list. In this document, the "current CRH SID" is the CRH SID list entry referenced by the Segments Left field.¶
The first CRH SID in the path is omitted from the list unless there is some reason to preserve it. See Appendix A for an example.¶
In the CRH-16 (Figure 1), each CRH SID is encoded in 16 bits. In the CRH-32 (Figure 2), each CRH SID is encoded in 32 bits.¶
In all cases, the CRH MUST end on a 64-bit boundary. So, the type-specific data field MUST be padded with zeros if the CRH would otherwise not end on a 64-bit boundary.¶
Each CRH SID identifies a CRH-FIB entry.¶
Each CRH-FIB entry contains:¶
The IPv6 address can be a Global Unicast Address (GUA), a Link-Local Unicast (LLU) address, or a Unique Local Address (ULA). When the IPv6 address is the final address in a path, it can also be a multicast address.¶
The topological function specifies how the processing node forwards the packet to the interface identified by the IPv6 address. The following are examples:¶
Forward the packet through the least-cost path to the interface identified by the IPv6 address (i.e., loose source routing).¶
Forward the packet through a specified interface to the interface identified by the IPv6 address (i.e., strict source routing).¶
Some topological functions require parameters. For example, a topological function might require a parameter that identifies the interface through which the packet is forwarded.¶
The CRH-FIB can be populated by:¶
An operator, using a Command Line Interface (CLI)¶
A controller, using the Path Computation Element Communication Protocol (PCEP) [RFC5440] or the Network Configuration Protocol (NETCONF) [RFC6241]¶
A distributed routing protocol, such as those defined in [ISO10589-Second-Edition], [RFC5340], and [RFC4271]¶
The above-mentioned mechanisms are not defined here and are beyond the scope of this document.¶
The following rules describe CRH processing:¶
If Hdr Ext Len indicates that the CRH is larger than the implementation can process, discard the packet and send an ICMPv6 [RFC4443] Parameter Problem, Code 0, message to the Source Address, pointing to the Hdr Ext Len field.¶
Compute L, the minimum CRH length (Section 5.1).¶
If L is greater than Hdr Ext Len, discard the packet and send an ICMPv6 Parameter Problem, Code 6, message to the Source Address, pointing to the Segments Left field.¶
Decrement Segments Left.¶
Search for the current CRH SID in the CRH-FIB. In this document, the "current CRH SID" is the CRH SID list entry referenced by the Segments Left field.¶
If the search does not return a CRH-FIB entry, discard the packet and send an ICMPv6 Parameter Problem, Code 0, message to the Source Address, pointing to the current SID.¶
If Segments Left is greater than 0 and the CRH-FIB entry contains a multicast address, discard the packet and send an ICMPv6 Parameter Problem, Code 0, message to the Source Address, pointing to the current SID. (This prevents packet storms.)¶
Copy the IPv6 address from the CRH-FIB entry to the Destination Address field in the IPv6 header.¶
Submit the packet, its topological function, and its parameters to the IPv6 module.¶
The algorithm described in this section accepts the following CRH fields as its input parameters:¶
It yields L, the minimum CRH length. The minimum CRH length is measured in 8-octet units, not including the first 8 octets.¶
<CODE BEGINS> switch(Routing Type) { case CRH-16: if (Segments Left <= 2) return(0) sidsBeyondFirstWord = Segments Left - 2; sidPerWord = 4; case CRH-32: if (Segments Left <= 1) return(0) sidsBeyondFirstWord = Segments Left - 1; sidsPerWord = 2; case default: return(0xFF); } words = sidsBeyondFirstWord div sidsPerWord; if (sidsBeyondFirstWord mod sidsPerWord) words++; return(words) <CODE ENDS>¶
In the CRH, the Segments Left field is mutable. All remaining fields are immutable.¶
A CRH contains one or more CRH SIDs. Each CRH SID is processed by exactly one CRH-configured router whose one address matches the packet Destination Address.¶
Therefore, a CRH SID is not required to have domain-wide significance. Applications can allocate CRH SIDs so that they have either domain-wide or node-local significance.¶
PING and Traceroute [RFC2151] both operate correctly in the presence of the CRH. TCPDUMP and Wireshark have been extended to support the CRH.¶
PING and Traceroute report 16-bit CRH SIDs for CRH-16 and 32-bit CRH SIDs for CRH-32. It is recommended that the experimental versions of PING use the textual representations described in Section 9.¶
A 16-bit CRH SID can be represented by four lowercase hexadecimal digits. Leading zeros SHOULD be omitted. However, the all-zeros CRH SID MUST be represented by a single 0. The following are examples:¶
A 16-bit CRH SID also can be represented in dotted-decimal notation. The following are examples:¶
A 32-bit CRH SID can be represented by four lowercase hexadecimal digits, a colon (:), and another four lowercase hexadecimal digits. Leading zeros MUST be omitted. The following are examples:¶
A 32-bit CRH SID can also be represented in dotted-decimal notation. The following are examples:¶
In this document, one node trusts another only if both nodes are operated by the same party. A node determines whether it trusts another node by examining its IP address. In many networks, operators number their nodes using a small number of prefixes. This facilitates identification of trusted nodes.¶
A node can encounter security vulnerabilities when it processes a Routing header that originated on an untrusted node [RFC5095]. Therefore, nodes MUST deploy ACLs that discard packets containing the CRH when both of the following conditions are true:¶
The Source Address does not identify an interface on a trusted node.¶
The Destination Address identifies an interface on the local node.¶
The above-mentioned ACLs do not protect the node from attack packets that contain a forged (i.e., spoofed) Source Address. In order to mitigate this risk, nodes MAY also discard packets containing the CRH when all of the following conditions are true:¶
The Source Address identifies an interface on a trusted node.¶
The Destination Address identifies an interface on the local node.¶
The packet does not pass an Enhanced Feasible-Path Unicast Reverse Path Forwarding (EFP-uRPF) [RFC8704] check.¶
The EFP-uRPF check eliminates some, but not all, packets with forged Source Addresses. Therefore, a network operator that deploys CRH MUST implement ACLs on each of its edge nodes. The ACL discards packets whose Source Address identifies an interface on a trusted node.¶
The CRH is compatible with end-to-end IPv6 Authentication Header (AH) [RFC4302] processing. This is because the source node calculates the Integrity Check Value (ICV) over the packet as it arrives at the destination node.¶
Parties participating in this experiment should publish experimental results within one year of the publication of this document. Experimental results should address the following:¶
Effort required to deploy¶
Effort required to secure¶
Performance impact¶
Effectiveness of risk mitigation with ACLs¶
Cost of risk mitigation with ACLs¶
Mechanism used to populate the CRH-FIB¶
Scale of deployment¶
Interoperability¶
Effectiveness and sufficiency of Operations, Administration, and Maintenance (OAM) mechanisms¶
IANA has registered the following in the "Routing Types" subregistry within the "Internet Protocol Version 6 (IPv6) Parameters" registry:¶
Value | Description | Reference |
---|---|---|
5 | CRH-16 | RFC 9631 |
6 | CRH-32 | RFC 9631 |
This appendix demonstrates CRH processing in the following scenarios:¶
The CRH SID list contains one entry for each segment in the path (Appendix A.1).¶
The CRH SID list omits the first entry in the path (Appendix A.2).¶
Figure 3 provides a reference topology that is used in all examples, and Table 2 describes two entries that appear in each node's CRH-FIB.¶
SID | IPv6 Address | Forwarding Method |
---|---|---|
2 | 2001:db8::2 | Least-cost path |
11 | 2001:db8::b | Least-cost path |
In this example, Node S sends a packet to Node D via I2, and I2 appears in the CRH segment list.¶
Source Address = 2001:db8::a | Segments Left = 1 |
Destination Address = 2001:db8::2 | SID[0] = 11 |
SID[1] = 2 |
Source Address = 2001:db8::a | Segments Left = 0 |
Destination Address = 2001:db8::b | SID[0] = 11 |
SID[1] = 2 |
In this example, Node S sends a packet to Node D via I2, and I2 does not appear in the CRH segment list.¶
Source Address = 2001:db8::a | Segments Left = 1 |
Destination Address = 2001:db8::2 | SID[0] = 11 |
Source Address = 2001:db8::a | Segments Left = 0 |
Destination Address = 2001:db8::b | SID[0] = 11 |
Thanks to Dr. Vanessa Ameen, Dale Carder, Brian Carpenter, Adrian Farrel, Fernando Gont, Joel Halpern, Naveen Kottapalli, Tony Li, Xing Li, Gerald Schmidt, Nancy Shaw, Mark Smith, Ketan Talaulikar, Reji Thomas, and Chandra Venkatraman for their contributions to this document.¶