SPRING Working Group R. Gandhi, Ed. Internet-Draft C. Filsfils Updates: 8972 (if approved) Cisco Systems, Inc. Intended status: Informational B. Janssens Expires: 19 May 2027 Colt M. Chen Huawei R. Foote Nokia 15 November 2026 Performance Measurement Using Simple Two-Way Active Measurement Protocol (STAMP) for Segment Routing over the IPv6 (SRv6) Data Plane draft-ietf-spring-stamp-srpm-srv6-11 Abstract Segment Routing (SR) can be used to steer packets through a network employing source routing. SR can be applied to both MPLS (SR-MPLS) and IPv6 (SRv6) data planes. This document describes the procedures for performance measurement in SRv6 networks using the Simple Two-Way Active Measurement Protocol (STAMP), as specified in RFC 8762, along with its optional extensions specified in RFC 8972 and the SR- specific extensions specified in RFC 9503. These procedures measure links and SRv6 paths including Segment Lists of SR Policies, SRv6 IGP best paths, and SRv6 IGP Flexible Algorithm (Flex-Algo) paths, as well as Layer-3 and Layer-2 services carried over those paths. This document updates RFC 8972 for the definition of the STAMP session identifier for SRv6. 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 19 May 2027. Gandhi, et al. Expires 19 May 2027 [Page 1] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 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 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 . . . . . . . . . . . . . . . . . . . . . . . . 4 2. Conventions Used in This Document . . . . . . . . . . . . . . 5 2.1. Requirements Language . . . . . . . . . . . . . . . . . . 5 2.2. Terminology . . . . . . . . . . . . . . . . . . . . . . . 5 2.3. Abbreviations . . . . . . . . . . . . . . . . . . . . . . 6 3. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4. Measurement Modes . . . . . . . . . . . . . . . . . . . . . . 9 4.1. Two-Way Measurement Mode . . . . . . . . . . . . . . . . 9 4.2. One-Way Measurement Mode . . . . . . . . . . . . . . . . 11 4.3. Loopback Measurement Mode . . . . . . . . . . . . . . . . 11 4.4. Loopback with TSF Measurement Mode . . . . . . . . . . . 12 5. STAMP Reference Model . . . . . . . . . . . . . . . . . . . . 13 5.1. STAMP for One-Way Measurement Mode . . . . . . . . . . . 16 5.2. STAMP for Loopback and Loopback with TSF Measurement Modes . . . . . . . . . . . . . . . . . . . . . . . . . . 16 5.3. Measurement Mode Comparison for STAMP . . . . . . . . . . 17 5.3.1. STAMP TLV Applicability . . . . . . . . . . . . . . . 18 5.4. STAMP Session Identifier for SRv6 . . . . . . . . . . . . 19 6. Encapsulations for Two-Way Measurement Mode . . . . . . . . . 21 6.1. Session-Sender Test Packet . . . . . . . . . . . . . . . 21 6.2. Session-Sender Test Packet for Links . . . . . . . . . . 21 6.3. Session-Sender Test Packet for SRv6 Data Plane . . . . . 22 6.3.1. Session-Sender Test Packet for SRv6 Paths . . . . . . 23 6.3.2. Session-Sender Test Packet for Layer-3 Services over an SRv6 Path . . . . . . . . . . . . . . . . . . . . . . 26 6.3.3. Session-Sender Test Packet for Layer-2 Services over an SRv6 Path . . . . . . . . . . . . . . . . . . . . . . 29 6.4. Session-Reflector Test Packet . . . . . . . . . . . . . . 31 6.4.1. Session-Reflector Test Packet for Links . . . . . . . 33 6.4.2. Session-Reflector Test Packet for SRv6 Paths . . . . 33 6.4.3. Session-Reflector Test Packet for an L3 Service over an SRv6 Path . . . . . . . . . . . . . . . . . . . . . . 34 Gandhi, et al. Expires 19 May 2027 [Page 2] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 6.4.4. Session-Reflector Test Packet for an L2 Service over an SRv6 Path . . . . . . . . . . . . . . . . . . . . . . 35 7. Encapsulations for One-Way Measurement Mode . . . . . . . . . 35 8. Encapsulations for Loopback Measurement Mode . . . . . . . . 35 8.1. Loopback Measurement Mode for Links . . . . . . . . . . . 36 8.2. Loopback Measurement Mode for SRv6 Paths . . . . . . . . 37 8.2.1. SRv6 Return Path . . . . . . . . . . . . . . . . . . 39 8.2.2. IP Return Path . . . . . . . . . . . . . . . . . . . 39 8.3. Loopback Measurement Mode for Layer-3 Services over an SRv6 Path . . . . . . . . . . . . . . . . . . . . . . . . . . 40 8.3.1. SRv6 Return Path . . . . . . . . . . . . . . . . . . 41 8.3.2. IP Return Path . . . . . . . . . . . . . . . . . . . 42 8.4. Loopback Measurement Mode for Layer-2 Services over an SRv6 Path . . . . . . . . . . . . . . . . . . . . . . . . . . 42 8.4.1. SRv6 Return Path . . . . . . . . . . . . . . . . . . 43 8.4.2. IP Return Path . . . . . . . . . . . . . . . . . . . 43 9. Encapsulations for Loopback with TSF Measurement Mode . . . . 44 9.1. STAMP TSF Endpoint Behaviors for SRv6 . . . . . . . . . . 44 9.1.1. TSF Endpoint Behavior Node Capability . . . . . . . . 46 10. ECMP Measurement in SRv6 Networks . . . . . . . . . . . . . . 46 11. Implementation Status . . . . . . . . . . . . . . . . . . . . 47 11.1. Cisco Implementation . . . . . . . . . . . . . . . . . . 48 11.2. Teaparty Implementation . . . . . . . . . . . . . . . . 48 12. Operational and Manageability Considerations . . . . . . . . 49 12.1. Measurement Mode and Parameters . . . . . . . . . . . . 49 12.2. MTU Considerations . . . . . . . . . . . . . . . . . . . 50 12.3. STAMP Session Scale . . . . . . . . . . . . . . . . . . 50 12.4. STAMP Session State Notification . . . . . . . . . . . . 51 12.5. Operational Considerations for TSF . . . . . . . . . . . 52 12.6. Operational Considerations for Path Changes . . . . . . 53 12.7. Destination UDP Port Number Considerations . . . . . . . 53 13. Security Considerations . . . . . . . . . . . . . . . . . . . 54 13.1. Security Considerations for Measurement Modes . . . . . 55 13.2. Security Considerations for TSF . . . . . . . . . . . . 57 13.3. Privacy Considerations . . . . . . . . . . . . . . . . . 57 14. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 58 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 58 15.1. Normative References . . . . . . . . . . . . . . . . . . 58 15.2. Informative References . . . . . . . . . . . . . . . . . 60 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 62 Contributors . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 63 Gandhi, et al. Expires 19 May 2027 [Page 3] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 1. Introduction Segment Routing (SR) [RFC8402] can be used to steer packets through a network employing source routing. SR can be applied to both MPLS (SR-MPLS) and IPv6 (SRv6) data planes. SR can take advantage of Equal-Cost Multipath (ECMP) between source and transit nodes, between transit nodes, and between transit and destination nodes. SR Policies, as specified in [RFC9256], are used to steer traffic through specific user-defined paths, each represented by a list of segments. A comprehensive SR performance measurement toolset is essential for measuring network performance and meeting Service Level Agreements (SLAs). The Simple Two-Way Active Measurement Protocol (STAMP), as specified in [RFC8762], provides the capability to measure various performance metrics in IP networks without the use of a control channel to pre- signal session parameters. [RFC8972] specifies optional extensions in the form of Type-Length-Value (TLV) objects for STAMP, and [RFC9503] further augments that framework to define STAMP extensions for SR networks. This document describes procedures for measuring performance in SRv6 networks using STAMP as specified in [RFC8762], along with the optional extensions specified in [RFC8972] and the SR-specific extensions specified in [RFC9503]. The procedures in this document measure links and SRv6 paths [RFC8402] including Segment Lists of SR Policies [RFC9256], SRv6 IGP best paths, and SRv6 Flexible Algorithm (Flex-Algo) paths [RFC9350], as well as Layer-3 (L3) and Layer-2 (L2) services carried over those paths. The procedures specified in this document are intended for deployment in a single network administrative domain. STAMP requires protocol support as specified in [RFC8762] on the Session-Reflector to process received STAMP-Test packets, including optional TLVs specified in [RFC8972], and to generate Session- Reflector test packets and reflect received TLVs. In addition, use of the UDP port number in STAMP-Test packets exposes the Session- Reflector to security threats and requires rate limiting and consideration of operational impacts. In practice, these requirements lead implementations to process STAMP-Test packets on an exception path (e.g., by punting them from the IP-forwarding fast path). This limits the frequency of STAMP-Test packets and the ability to provide shorter measurement intervals. Gandhi, et al. Expires 19 May 2027 [Page 4] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 This document defines new mechanisms to enhance the procedures for performance measurement using STAMP, improve scalability by supporting a larger number of STAMP sessions, and shorten the measurement interval for links and SRv6 paths by defining three measurement modes: one-way measurement mode, loopback measurement mode, and loopback with Timestamp and Forward (TSF) measurement mode. The loopback measurement mode and the loopback with TSF measurement mode take advantage of source routing. This document updates RFC 8972 for the definition of the STAMP session identifier for SRv6. 2. Conventions Used in This Document 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 This document uses the terms Session-Sender, Session-Reflector, and STAMP-Test packet as defined in [RFC8762]. This document uses timestamps T1, T2, T3, and T4 and the one-way delay metric (T2 - T1), the two-way delay metric ((T4 - T1) - (T3 - T2)), and the round-trip delay metric (T4 - T1), as defined in Section 2.4 of [RFC6374]. Round-trip delay: Section 2.7.2 of [RFC2681] defines round-trip delay as the wire-time interval from when a test packet leaves the source's network interface (T1) until the corresponding response packet has completely arrived there (T4). When the packet arrives at the destination, the destination sends a corresponding response to the source as soon as possible (Section 2.6 of [RFC2681]). The time at the destination between packet receipt (T2) and response transmission (T3) is ideally zero; any nonzero time adds error and uncertainty to the round-trip measurement (Section 2.7.2 of [RFC2681]; Section 2.7.3 of [RFC2681]). Gandhi, et al. Expires 19 May 2027 [Page 5] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 2.3. Abbreviations +==============+====================================+===============+ | Abbreviation | Expansion | Reference | +==============+====================================+===============+ | ARP | Address Resolution Protocol | [RFC0826] | +--------------+------------------------------------+---------------+ | CSID | Compressed Segment Identifier | [RFC9800] | +--------------+------------------------------------+---------------+ | HMAC | Hashed Message Authentication | [RFC6234] | | | Code | | +--------------+------------------------------------+---------------+ | HL | Hop Limit | [RFC8200] | +--------------+------------------------------------+---------------+ | LAG | Link Aggregation Group | [IEEE802.1AX] | +--------------+------------------------------------+---------------+ | L2 | Layer-2 | [RFC4026] | +--------------+------------------------------------+---------------+ | L2VPN | Layer-2 Virtual Private | [RFC4026] | | | Network | | +--------------+------------------------------------+---------------+ | L3 | Layer-3 | [RFC4026] | +--------------+------------------------------------+---------------+ | L3VPN | Layer-3 Virtual Private | [RFC4026] | | | Network | | +--------------+------------------------------------+---------------+ | NDP | Neighbor Discovery Protocol | [RFC4861] | +--------------+------------------------------------+---------------+ | NTP | Network Time Protocol | [RFC5905] | +--------------+------------------------------------+---------------+ | OAM | Operations, Administration, | [RFC8762] | | | and Maintenance | | +--------------+------------------------------------+---------------+ | PSP | Penultimate Segment Popping | [RFC8986] | +--------------+------------------------------------+---------------+ | PTP | Precision Time Protocol | [IEEE.1588] | +--------------+------------------------------------+---------------+ | SHA | Secure Hash Algorithms | [RFC6234] | +--------------+------------------------------------+---------------+ | SID | Segment Identifier | [RFC8402] | +--------------+------------------------------------+---------------+ | SR | Segment Routing | [RFC8402] | +--------------+------------------------------------+---------------+ | SRH | Segment Routing Header | [RFC8754] | +--------------+------------------------------------+---------------+ | SRv6 | Segment Routing over the IPv6 | [RFC8402] | | | data plane | | +--------------+------------------------------------+---------------+ Gandhi, et al. Expires 19 May 2027 [Page 6] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 | SSID | STAMP Session Identifier | [RFC8972] | +--------------+------------------------------------+---------------+ | STAMP | Simple Two-Way Active | [RFC8762] | | | Measurement Protocol | | +--------------+------------------------------------+---------------+ | TLV | Type-Length-Value | [RFC8972] | +--------------+------------------------------------+---------------+ | TSF | Timestamp and Forward | This document | +--------------+------------------------------------+---------------+ | TTL | Time to Live | [RFC0791] | +--------------+------------------------------------+---------------+ | VPN | Virtual Private Network | [RFC4026] | +--------------+------------------------------------+---------------+ Table 1: Abbreviations 3. Overview For performance measurement in SRv6 networks, the STAMP Session- Sender and Session-Reflector use the STAMP-Test packets specified in [RFC8762], along with optional extensions specified in [RFC8972]. The STAMP-Test packets are encapsulated using an IP/UDP header, as specified in [RFC8762]. In this document, STAMP-Test packets use an IP/UDP header and are further encapsulated with an IPv6 Segment Routing Header (SRH) for use in SRv6 networks. In SRv6 networks, STAMP-Test packets can use one of the following measurement modes, which differ in how the Session-Reflector processes the packets: 1. Two-Way measurement mode: The Session-Reflector generates and transmits Session-Reflector test packets (see Section 4.1). 2. One-Way measurement mode: The Session-Reflector does not generate or transmit Session- Reflector test packets (see Section 4.2). 3. Loopback measurement mode: The Session-Reflector does not perform STAMP processing (see Section 4.3). 4. Loopback with TSF measurement mode: Gandhi, et al. Expires 19 May 2027 [Page 7] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The Session-Reflector writes the receive timestamp in the fast path but does not perform STAMP processing (see Section 4.4). Note that the two-way measurement mode is specified as part of the STAMP process in [RFC8762] and is further specified for SRv6 networks in this document. The other measurement modes are new, specific to SRv6 networks, and are not specified in [RFC8762]. STAMP-Test packets are transmitted on the same path as the data traffic flow being measured to measure the delay and packet loss experienced by the data traffic flow, using the same IPv6/SRH encapsulation. * STAMP-Test packets are transmitted on various transport data paths in the network to measure the delay and packet loss experienced by the traffic forwarded on those paths. * STAMP-Test packets are transmitted over L3 and L2 services in the network to measure the delay and packet loss experienced by the traffic carried by those services. Two encoding modes are defined in this document for STAMP-Test packets in the SRv6 data plane: Insert-Mode and Encaps-Mode. The Session-Sender generates STAMP-Test packets locally in either of the two encapsulation modes, based on local provisioning. * In Insert-Mode: An SRH is inserted after the IPv6 header of the test packets. This is further described in Section 6.3. * In Encaps-Mode: The test packets with an IP header are further encapsulated with an outer IPv6/SRH. This is further described in Section 6.3. Typically, STAMP Session-Reflector test packets are transmitted along an IP path between the Session-Reflector and Session-Sender. The forward-direction path and the return path of STAMP-Test packets are not guaranteed to match, even for directly connected nodes. In SRv6 networks, the same path (i.e., the same set of links and nodes) between the Session-Sender and Session-Reflector might be desirable for the STAMP-Test packets in both directions, for example, in an ECMP environment. This is achieved as follows: * In two-way measurement mode: Gandhi, et al. Expires 19 May 2027 [Page 8] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The optional STAMP extensions for SRv6 networks, as specified in [RFC9503], are used. The STAMP Session-Reflector uses the return path parameters for the Session-Reflector test packet from the STAMP extensions in the received Session-Sender test packet, as specified in [RFC9503]. * In the loopback measurement mode and loopback with TSF measurement mode: Both the forward path and the return path are included in the IPv6/SRH encapsulation of the Session-Sender test packets using source routing. The procedures in this document measure delay and packet loss in SRv6 networks by transmitting and receiving STAMP-Test packets. The optional STAMP extensions specified in [RFC8972] are used for direct measurement in SRv6 networks. The compression of an SRv6 Segment List, as specified in [RFC9800], is equally applicable to the performance measurement procedures defined in this document and can significantly reduce the size of the SRv6 encapsulation needed to transmit STAMP-Test packets over long Segment Lists. All examples described in this document using SRv6 Segment Identifiers (SIDs) can be similarly implemented using SRv6 Compressed-SIDs (CSIDs) [RFC9800]. 4. Measurement Modes In Figure 1 to Figure 4, the nodes S1 and R1 may be connected via a link or an SRv6 path [RFC8402]. The link can be a physical interface, a virtual link, a Link Aggregation Group (LAG) [IEEE802.1AX], or a LAG member link. The SRv6 path may be a Segment List of an SR Policy [RFC9256] on node S1 (referred to as the "head-end") with node R1 as the destination (referred to as the "endpoint"), an SRv6 IGP best path, or an SRv6 IGP Flex-Algo path [RFC9350]. Additionally, an L3 or L2 VPN service may be carried over the SRv6 path between nodes S1 and R1. 4.1. Two-Way Measurement Mode As shown in Figure 1, in two-way measurement mode, the STAMP Session- Sender S1 initiates a Session-Sender test packet, and the STAMP Session-Reflector R1 generates and transmits a Session-Reflector test packet. The Session-Reflector test packet is sent to the Session- Sender S1 on either the same path (i.e., the same set of links and nodes) or a different path in the reverse direction from the path Gandhi, et al. Expires 19 May 2027 [Page 9] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 taken toward the Session-Reflector R1. T1 T2 / \ +-------+ Session-Sender Test Packet +-------+ | | - - - - - - - - - - - - - - - ->| | | S1 |=================================| R1 | | |<- - - - - - - - - - - - - - - - | | +-------+ Session-Reflector test packet +-------+ \ / T4 T3 STAMP Session-Sender STAMP Session-Reflector Figure 1: Reference Topology for Two-Way Measurement Mode T1 is a transmit timestamp, and T4 is a receive timestamp added by node S1. T2 is a receive timestamp, and T3 is a transmit timestamp added by node R1. All four timestamps are used by the Session-Sender to measure the two-way delay metric, defined as ((T4 - T1) - (T3 - T2)) in Section 2.2. Timestamps T1 and T2 are used by the Session- Sender to measure the forward one-way delay metric, defined as (T2 - T1) in Section 2.2. Note that the delay value (T4 - T3), measured by the Session-Sender, is the reverse one-way delay metric. The "two- way delay" is the sum of the one-way delays in each direction and reflects the delay of the bidirectional path, irrespective of processing delays within the Session-Reflector. In two-way measurement mode, the round-trip delay interval (T4 - T1) includes the Session-Reflector processing time, including handling the UDP header in the exception path, generating the Session- Reflector test packet, and reflecting optional TLVs. The two-way delay metric subtracts the Session-Reflector interval (T3 - T2) from the round-trip delay interval. The computation of the one-way delay metric requires the clocks on the Session-Sender and the Session-Reflector to be synchronized, e.g., using either PTPv2 [IEEE.1588] or NTPv4 [RFC5905]. In two-way measurement mode, round-trip packet loss, near-end packet loss (forward direction), and far-end packet loss (backward direction) can be measured. Note that packet loss measurement does not require the clocks on the Session-Sender and the Session- Reflector to be synchronized using either PTPv2 or NTPv4. Gandhi, et al. Expires 19 May 2027 [Page 10] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 4.2. One-Way Measurement Mode As shown in Figure 2, in one-way measurement mode, the STAMP Session- Sender S1 initiates a Session-Sender test packet. Upon receiving a Session-Sender test packet, the STAMP Session-Reflector does not transmit a Session-Reflector test packet. T1 T2 / \ +-------+ Session-Sender Test Packet +-------+ | | - - - - - - - - - - - - - - - ->| | | S1 |=================================| R1 | | | | | +-------+ +-------+ STAMP Session-Sender STAMP Session-Reflector Figure 2: Reference Topology for One-Way Measurement Mode T1 is a transmit timestamp added by node S1, and T2 is a receive timestamp added by node R1. Timestamps T1 and T2 are used by the Session-Reflector to measure the one-way delay metric, defined as (T2 - T1) in Section 2.2. The computation of the one-way delay metric requires the clocks on the Session-Sender and the Session-Reflector to be synchronized using either PTPv2 or NTPv4. In one-way measurement mode, forward-direction packet loss can be measured. The Session-Reflector compares the Session-Sender Sequence Number in each received Session-Sender test packet with the sequence number in the previously received packet. An increase of k indicates that k-1 test packets were not received, accounting for sequence- number wraparound. This measurement is available at the Session- Reflector. Note that packet loss measurement does not require the clocks on the Session-Sender and the Session-Reflector to be synchronized using either PTPv2 or NTPv4. 4.3. Loopback Measurement Mode As shown in Figure 3, in loopback measurement mode, the STAMP Session-Sender S1 initiates a Session-Sender test packet to measure the round-trip delay using source routing. The node R1 at the end of the configured forward path forwards the received STAMP-Test packet along the configured return path using its forwarding state in the data plane. The node R1 does not need to support STAMP or maintain a STAMP session. Gandhi, et al. Expires 19 May 2027 [Page 11] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 T1 / +-------+ Session-Sender Test Packet +-------+ | | - - - - - - - - - - - - - - - - | | | S1 |================================|| R1 | | |<- - - - - - - - - - - - - - - - | | +-------+ Session-Sender test packet +-------+ \ (Return) T4 STAMP Session-Sender STAMP Session-Reflector (Loopback, Forward) Figure 3: Reference Topology for Loopback Measurement Mode T1 is a transmit timestamp and T4 is a receive timestamp added by node S1. The Session-Sender uses them to measure the round-trip delay metric, defined as (T4 - T1) in Section 2.2. This delay includes test packet processing on the node R1 in the data plane. The processing delay includes only the time required to forward the test packet from the incoming interface to the outgoing interface in the data plane. The node R1 does not timestamp the test packets and therefore does not require a timestamping capability. In loopback measurement mode, only round-trip packet loss can be measured. 4.4. Loopback with TSF Measurement Mode As shown in Figure 4, in the reference topology for loopback with TSF measurement mode, the STAMP Session-Sender S1 initiates a Session- Sender test packet in loopback measurement mode using source routing. The TSF mechanism optimizes the operation of punting the test packet from the data-plane fast path for control-plane processing and generating the return Session-Sender test packet on the STAMP Session-Reflector R1, because timestamp writing is implemented in the data-plane fast path. This helps achieve a higher number of STAMP sessions and faster measurement intervals. Gandhi, et al. Expires 19 May 2027 [Page 12] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 T1 T2 / \ +-------+ Session-Sender Test Packet +-------+ | | - - - - - - - - - - - - - - - - | | | S1 |================================|| R1 | | |<- - - - - - - - - - - - - - - - | | +-------+ Session-Sender test packet +-------+ \ (Return) T4 STAMP Session-Sender STAMP Session-Reflector (Loopback, TSF) Figure 4: Reference Topology for Loopback with TSF Measurement Mode T1 is a transmit timestamp and T4 is a receive timestamp added by node S1. The Session-Reflector R1 writes the receive timestamp (T2) in the received STAMP-Test packet in the fast path in the data plane, without punting the test packet from the fast path in the data plane for control-plane STAMP processing. In this mode, a node that performs the TSF needs to support the applicable End.TSF endpoint behavior, as specified in Section 9.1.1. Timestamps T1 and T2 are used by the Session-Sender to measure the one-way delay metric, defined as (T2 - T1) in Section 2.2. Timestamps T1 and T4 are used by the Session-Sender to measure the round-trip delay metric, defined as (T4 - T1) in Section 2.2. In loopback with TSF measurement mode, only round-trip packet loss can be measured. 5. STAMP Reference Model The STAMP Reference Model from [RFC8762], augmented with an SDN Controller for Configuration and Management and typical measurement parameters for a STAMP session, is shown in Figure 5. Gandhi, et al. Expires 19 May 2027 [Page 13] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +------------+ | SDN | | Controller | +------------+ / \ Measurement Mode / \ Stateful or Stateless Destination UDP Port Number / \ Destination UDP Port Number Authentication Mode / \ Authentication Mode Authentication Key / \ Authentication Key Timestamp Format / \ Timestamp Format SSID / \ SSID Metric Types / \ v v +-------+ +-------+ | | STAMP | | | S1 |==========| R1 | | | Session | | +-------+ +-------+ STAMP Session-Sender STAMP Session-Reflector Figure 5: STAMP Reference Model The procedures specified in [RFC8762] and [RFC8972] correspond to the two-way measurement mode defined in this document. The STAMP-Test packet payloads specified in [RFC8972] are transported using an IPv4 or IPv6 header and a UDP header. The IPv4 or IPv6 header and the UDP header follow the procedures specified in Section 3.1 of [I-D.ietf-ippm-stamp-ext-hdr]. The same or a different destination UDP port number may be used for STAMP sessions for links, SRv6 paths, and L3 and L2 services carried over SRv6 paths, subject to the mode-specific UDP port selection rules in Section 12. Similarly, the same or a different source UDP port number can be used for STAMP sessions for links, SRv6 paths, and L3 and L2 services carried over those paths. The Session-Sender and Session-Reflector IP addresses for a STAMP session are provisioned by the operator for the session. In addition, SRv6 node prefix SIDs can be provisioned for the Session- Sender and the Session-Reflector and used in STAMP-Test packets instead of their IP addresses. The Session-Reflector mode can be either Stateful or Stateless, as specified in Section 4 of [RFC8762]. Stateless Session-Reflector mode is applicable only in two-way measurement mode. Gandhi, et al. Expires 19 May 2027 [Page 14] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 For two-way and one-way measurement modes, when authentication is used, the Session-Sender and Session-Reflector must be configured with the same HMAC key, as specified in Section 4.4 of [RFC8762]. In loopback measurement mode, the Session-Sender can use an HMAC key to add an HMAC to its test packet and verify the HMAC when the packet is returned; the Session-Reflector forwards the packet without validating the HMAC and does not need the key. The supported timestamp formats are a 64-bit truncated Precision Time Protocol (PTPv2) timestamp [IEEE.1588] and a 64-bit Network Time Protocol (NTPv4) timestamp [RFC5905]. The Z field identifies the timestamp format used by the STAMP Session-Sender and Session- Reflector, as specified in Section 4.2.1 of [RFC8762]. Examples of delay metrics are one-way delay, two-way delay, forward one-way delay, and reverse one-way delay, as specified in [RFC8762]. Examples of packet loss metric types are round-trip packet loss, near-end packet loss (forward direction), and far-end packet loss (backward direction), as specified in [RFC8762]. The IPv4 TTL and IPv6 Hop Limit (HL) fields must follow the specification defined in [RFC8762]. The IPv4 TTL and IPv6 HL must be set to 255 in both Session-Sender and Session-Reflector test packets, as this allows the number of hops that IP-forwarded the test packet to be determined. The IPv6 Flow Label field is set as follows: * The IPv6 Flow Label field in each Session-Sender test packet must be set to the value used by the data packets for the IPv6 traffic flow being measured by the Session-Sender. * Unless local policy explicitly specifies otherwise, the Session- Reflector must set the IPv6 Flow Label field in its test packet to the value received in the Session-Sender test packet. * Local policy may specify that the Session-Reflector replaces the received value with a locally configured value. A Software-Defined Networking (SDN) controller can be used for the configuration and management of STAMP sessions, as specified in [RFC8762]. The controller can also receive streaming telemetry of operational data. The YANG data model for STAMP, defined in [I-D.ietf-ippm-stamp-yang], can be used to configure Session-Senders and Session-Reflectors and to stream telemetry of operational data. Gandhi, et al. Expires 19 May 2027 [Page 15] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 In two-way measurement mode, the Session-Sender retrieves timestamp T1, T2, and T3 from the received Session-Reflector test packet as specified in [RFC8762] and collects the receive timestamp T4 locally. 5.1. STAMP for One-Way Measurement Mode In one-way measurement mode, the Session-Reflector must operate in Stateful mode. In one-way measurement mode, one of the following configurations for the destination UDP port number is used: * A different destination UDP port number may be selected instead of the UDP port number used by the Session-Reflector for the two-way measurement mode. A different UDP port number does not by itself signal the measurement mode. When a different UDP port is used, the Session-Reflector must associate packets received on that UDP port with the configured one-way session. Destination UDP port selection and endpoint configuration are specified in Section 12.7. * If the same Session-Reflector UDP port number is used for one-way and two-way measurement modes, the Session-Sender must include the "No Reply Requested" flag in the Control Code Sub-TLV within the Return Path TLV defined in [RFC9503]. The Session-Reflector must process this Control Code Sub-TLV in one-way measurement mode, must not transmit Session-Reflector test packets in response, and must terminate the received STAMP-Test packet. In one-way measurement mode, the Session-Reflector retrieves timestamp T1 from the Timestamp field of the received Session-Sender test packet and collects the receive timestamp T2 locally. 5.2. STAMP for Loopback and Loopback with TSF Measurement Modes In the loopback measurement mode and the loopback with TSF measurement mode, the node at the end of the forward path (referred to as the Session-Reflector in this document) must process the IPv6/ SRH header according to the specified forwarding procedure, must not perform STAMP processing, must not modify the STAMP-Test packet except where the End.TSF procedure explicitly requires timestamp modification, and must forward the packet using the specified return- path mechanism. A node performing the End.TSF behavior must support the applicable endpoint behavior, as specified in Section 9.1.1. The Session-Sender must set the destination UDP port number to the UDP port number it uses to receive return Session-Sender test packets. This UDP port must not be 862, which is the default UDP Gandhi, et al. Expires 19 May 2027 [Page 16] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 port number used by the Session-Reflector. The same UDP port number may be used as both the destination and source UDP port numbers in the Session-Sender test packets. Port selection is summarized in Section 12. The "Session-Sender Sequence Number", the "Session-Sender Timestamp", the "Session-Sender Error Estimate", and the "Session-Sender TTL" fields in the Session-Reflector test packet, shown in Figure 5 of [RFC8762], must be set to zero in the transmitted Session-Sender test packets, as specified in [RFC8762]. These fields must be ignored in the return Session-Sender test packets received at the Session-Sender in the loopback measurement mode and the loopback with TSF measurement mode. In both the loopback measurement mode and the loopback with TSF measurement mode, the Session-Sender adds the transmit timestamp (T1) to the payload of the Session-Sender test packet. In loopback measurement mode, the Session-Sender retrieves timestamp T1 from the Timestamp field of the returned Session-Sender test packet and collects the receive timestamp T4 locally. In loopback with TSF measurement mode, the Session-Reflector writes the receive timestamp (T2) in the received STAMP-Test packet in the fast path in the data plane, without punting the test packet from the fast path in the data plane for control-plane STAMP processing. The Session-Sender retrieves timestamp T1 from the Timestamp field of the returned Session-Sender test packet, retrieves timestamp T2 from the location of the Receive Timestamp field, and collects the receive timestamp T4 locally. 5.3. Measurement Mode Comparison for STAMP +========+=========+=========+=======+========+===========+=========+ |Mode |STAMP |Timestamp|Delay |Loss |Direct |Reference| | |Reflector| |Metrics|Metrics |Measurement| | +========+=========+=========+=======+========+===========+=========+ |Two-Way |Stateful |T1/T2/T3/|OW, TW |One- |Applicable |[RFC8762]| | |or |T4 | |Way, | | | | |Stateless| | |Round- | | | | | | | |trip | | | +--------+---------+---------+-------+--------+-----------+---------+ |One-Way |Stateful |T1/T2 |OW |One-Way |Applicable |This | | | | | | | |document | +--------+---------+---------+-------+--------+-----------+---------+ |Loopback|N/A |T1/T4 |RT |Round- |Not |This | | | | | |trip |Applicable |document | +--------+---------+---------+-------+--------+-----------+---------+ Gandhi, et al. Expires 19 May 2027 [Page 17] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 |Loopback|N/A |T1/T2/T4 |OW, RT |Round- |Not |This | |with TSF| | | |trip |Applicable |document | +--------+---------+---------+-------+--------+-----------+---------+ Table 2: Measurement Mode Comparison for Applicability in STAMP Delay metric abbreviations and clock synchronization requirements: * OW: One-way delay metric (T2 - T1); computation requires clock synchronization. * TW: Two-way delay metric ((T4 - T1) - (T3 - T2)); computation does not require clock synchronization. * RT: Round-trip delay metric (T4 - T1); computation does not require clock synchronization. 5.3.1. STAMP TLV Applicability The following STAMP TLVs specified for the two-way measurement mode are applicable in the one-way measurement mode, the loopback measurement mode, and the loopback with TSF measurement mode: * Type 1 (Extra Padding) [RFC8972]. Type 8 (HMAC) [RFC8972] is applicable in the one-way measurement mode and the loopback measurement mode, but is not applicable in the loopback with TSF measurement mode. Type 11 (Micro-Session ID) [RFC9534] can be used to identify LAG member link micro-sessions. Within Type 10 (Return Path) [RFC9503], the following Sub-TLVs are applicable: * Control Code Sub-TLV: - When the same Session-Reflector UDP port number is used for one-way and two-way sessions, the "No Reply Requested" requirement specified in Section 5.1 applies. - The "Reply Requested on the Same Link" value is applicable in two-way measurement mode. * The Return IPv4 or IPv6 Address (Sub-TLV Type 2) is applicable only in two-way measurement mode. Gandhi, et al. Expires 19 May 2027 [Page 18] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * The SRv6 Segment List of the Return Path (Sub-TLV Type 4) is applicable only in two-way measurement mode. Type 5 (Direct Measurement) [RFC8972] is applicable in the two-way measurement mode and the one-way measurement mode. It is not applicable in the loopback measurement mode or the loopback with TSF measurement mode. In the two-way measurement mode and the one-way measurement mode, Type 9 (Destination Node IPv4 or IPv6 Address) [RFC9503] carries the Session-Reflector IP address. In the loopback measurement mode and the loopback with TSF measurement mode, it carries the Session-Sender IP address. For link measurements, it carries the Session-Reflector link IP address in two-way and one-way measurement modes and the Session-Sender link IP address in loopback measurement mode. The following STAMP TLVs specified for the two-way measurement mode are not applicable in the one-way measurement mode, the loopback measurement mode, and the loopback with TSF measurement mode: * Type 2 (Location) [RFC8972]. * Type 3 (Timestamp Information) [RFC8972]. * Type 4 (Class of Service) [RFC8972]. * Type 6 (Access Report) [RFC8972]. * Type 7 (Follow-Up Telemetry) [RFC8972]. * Type 12 (Reflected Test Packet Control) [RFC10052]. * Reflected IPv6 Extension Header Data [I-D.ietf-ippm-stamp-ext-hdr]. * Reflected Fixed Header Data [I-D.ietf-ippm-stamp-ext-hdr]. A STAMP session operating in the one-way measurement mode, the loopback measurement mode, or the loopback with TSF measurement mode must ignore any TLV listed above that is not applicable to that mode when the session receives a STAMP-Test packet containing that TLV. 5.4. STAMP Session Identifier for SRv6 Section 3 of [RFC8972] defines the STAMP session identifier as follows: Gandhi, et al. Expires 19 May 2027 [Page 19] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * "A STAMP Session is identified by the 4-tuple (source and destination IP addresses, source and destination UDP port numbers)". * "An implementation of the STAMP Session-Reflector that supports this specification must identify a STAMP Session using the SSID in combination with elements of the usual 4-tuple for the session". This document updates the definition of the STAMP session identifier in Section 3 of [RFC8972] for SRv6 for the following reasons: * STAMP test packets for SRv6 can carry a non-routable destination IP address. * The source UDP port number is selected using a randomized allocation method, as specified in [RFC6056]. For SRv6 paths and links, the Session-Sender must include a nonzero SSID in each Session-Sender test packet. The following procedures apply to STAMP session identification using the SSID in each measurement mode: * Two-way measurement mode: A Session-Reflector that receives a Session-Sender test packet with an SSID of zero follows the procedure specified in Section 3 of [RFC8972]. For a nonzero SSID, the Session-Reflector must use the SSID to identify the configured session and must copy the SSID into its reply as specified in [RFC8972]. A Session-Sender that receives a Session- Reflector test packet with a zero SSID may stop the session, as specified in Section 3 of [RFC8972]. * One-way measurement mode: A Session-Reflector that receives a Session-Sender test packet with an SSID of zero must discard it. For a nonzero SSID, the Session-Reflector must use the SSID to identify the configured session. The Session-Reflector must associate each received Session-Sender test packet with a STAMP session using the source IP address, the SSID, the destination UDP port number, and the measurement mode configured locally for that SSID. For link measurements, the configured link endpoints and, for LAG member measurements, the Micro-Session ID identify the link or member associated with the session. * Loopback measurement mode and loopback with TSF measurement mode: The Session-Sender must identify a returned Session-Sender test packet using the source IP address, SSID, destination UDP port number, and measurement mode configured locally for that SSID. The returned Session-Sender test packet is the Session-Sender's own test packet, so its source IP address identifies the Session- Gandhi, et al. Expires 19 May 2027 [Page 20] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 Sender and cannot be used as the Session-Reflector address for session identification. The Session-Sender must discard a returned Session-Sender test packet with a zero or non-matching SSID. These fields identify the local STAMP session on the Session-Sender but do not identify the endpoint node that forwarded the packet; the intended endpoint node is determined by the provisioned forward path and service or link context. 6. Encapsulations for Two-Way Measurement Mode 6.1. Session-Sender Test Packet The content of a Session-Sender test packet is shown in Figure 6. The Session-Sender transmits the test packet payload, as specified in Section 3 of [RFC8972], with an IP header and a UDP header [RFC0768]. +---------------------------------------------------------------+ | IP Header | . Source IP Address = Session-Sender IP Address . . Destination IP Address = Session-Reflector IP Address . . IPv4 Protocol or IPv6 Next-header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header | . Source Port = Selected by Session-Sender . . Destination Port = User-configured Destination Port Or 862 . . . +---------------------------------------------------------------+ | Payload = Test Packet as specified in Figure 1 and Figure 3 | . in Section 3 of RFC 8972 . . . +---------------------------------------------------------------+ Figure 6: Content of Session-Sender Test Packet 6.2. Session-Sender Test Packet for Links The Session-Sender test packet, as shown in Figure 6, is transmitted over the link for delay measurement. The local and remote IP addresses of the link must be used as the Source IP Address and Destination IP Address in the IP header of the Session-Sender test packet, respectively. For IPv6 links, the link-local IPv6 address [RFC7404] may also be used in the IP header. Gandhi, et al. Expires 19 May 2027 [Page 21] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The Session-Sender uses a discovery protocol or another method to obtain the peer IP and MAC addresses for the links. For example, the Session-Sender can use the Address Resolution Protocol (ARP) [RFC0826] or the Neighbor Discovery Protocol (NDP) [RFC4861] table to obtain the IP and MAC addresses for the links when transmitting STAMP packets. Note that the Session-Sender test packet is further encapsulated with an L2 header containing the Session-Reflector MAC address as the Destination MAC address and the Session-Sender MAC address as the Source MAC address for Ethernet links. For delay measurement of LAG member links, a separate STAMP micro- session is created for each member of the LAG. The STAMP extension for the Micro-Session ID TLV, as specified in [RFC9534], is used to identify each member link of the LAG associated with the STAMP micro- session on the Session-Sender and Session-Reflector. The Session- Reflector replies on the same member of the LAG in the reverse direction, based on the received Session-Sender test packet and either the local configuration or the information received from the data plane. 6.3. Session-Sender Test Packet for SRv6 Data Plane The Session-Sender generates STAMP-Test packets for the SRv6 data plane, which can be encoded in either Encaps-Mode or Insert-Mode as follows: * Encaps-Mode: When Session-Sender test packets are encoded in Encaps-Mode, they are generated with an IP header, and an outer IPv6/SRH encapsulation is added by the forwarding path in the data plane when the SRv6 path is present in the data plane. This encoding mode requires the Session-Reflector to process two IP headers and one UDP header before the STAMP-Test packets are terminated for control-plane processing. * Insert-Mode: When Session-Sender test packets are encoded in Insert-Mode, the test packets are generated with an IPv6/SRH encapsulation. For example, when explicitly configured SRv6 paths are used, these paths may not be present in the data plane. Gandhi, et al. Expires 19 May 2027 [Page 22] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 This encoding mode requires the Session-Reflector to process fewer headers before the STAMP-Test packets are terminated for control- plane processing. In both encoding modes, the timestamps are collected in the data plane, ensuring that the measured delay values are similar. A Segment List of an SR Policy optionally contains the node prefix SID of the SR Policy endpoint as the ultimate SID. Similarly, the L3 and L2 services steered over the SR Policy also ensure that the traffic reaches the endpoint of the SR Policy. Thus, there are two incoming SRv6 SIDs for the Session-Reflector in the packet: the node prefix SID for the endpoint and the SID for the L3 or L2 service. As an optimization to avoid processing additional SIDs, the Session- Sender excludes the endpoint node prefix SID when the packet carries an L3 or L2 service SID in its Segment List. The SRv6 network programming procedures are described in [RFC8986]. The procedure specified for Upper-Layer Header processing for SRv6 End SIDs in Section 4.1.1 of [RFC8986] is used to process the UDP header in the received Session-Sender test packets on the Session- Reflector. 6.3.1. Session-Sender Test Packet for SRv6 Paths A Session-Sender test packet using the same IPv6/SRH encapsulation as the data traffic on the path is shown in Figure 7. The IPv6/SRH encapsulation is encoded in Insert-Mode or Encaps-Mode. In Insert-Mode, an SRH is inserted after the IPv6 header of the test packets, as shown in Example 1 of Figure 7. In Encaps-Mode, the test packets are encapsulated in an outer IPv6 header with an SRH, as shown in Example 2 of Figure 7. Gandhi, et al. Expires 19 May 2027 [Page 23] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = Session-Reflector IPv6 Address or . . Last Segment of Segment List . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 1: Encapsulation Using Insert-Mode Encoding +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = Session-Reflector IPv6 Address or . . Last Segment of Segment List . . . . Next-Header = 41 (IPv6) or 4 (IPv4) . . . +---------------------------------------------------------------+ | IP Header, UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 2: Encapsulation Using Encaps-Mode Encoding Figure 7: Content of Session-Sender Test Packet for an SRv6 Path Gandhi, et al. Expires 19 May 2027 [Page 24] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 6.3.1.1. SR Policy Paths A valid Candidate Path of an SR Policy contains one or more Segment Lists [RFC9256]. To measure delay for an SR Policy, the Session- Sender should transmit test packets for each Segment List selected for monitoring, using a separate STAMP session for each list. The Candidate Paths and Segment Lists selected for monitoring depend on the operational objective, as described in Section 12.6. Each Segment List contains a number of SRv6 SIDs as specified in [RFC8986]. The Session-Sender test packets carry the Segment List in an IPv6 header and an SRv6 Segment Routing Header (SRH) [RFC8754]. In the IPv6/SRH header for Insert-Mode and in the outer IPv6/SRH header for Encaps-Mode, the head-end node IPv6 address of the SR Policy must be used as the Source IPv6 Address. The Destination IPv6 Address must be set as follows: * The next Segment in the Segment List must be used when the Segment List of the Candidate Path of the SR Policy is not empty. * Otherwise, the Session-Reflector IPv6 address must be used. In Encaps-Mode, the Session-Sender adds an inner IPv6 header whose Source IPv6 Address must be the IPv6 address of the SR Policy's head- end node. There are two cases for the SR Policy endpoints, as described below. 1. If the SR Policy's endpoint is specified and is not the null endpoint, its IPv6 address must be used as the Destination IPv6 Address in the inner IPv6 header. 2. For an SR Policy with Color-Only Destination Steering, where the endpoint is an unspecified IPv6 address (the null endpoint :: with all bits set to 0), as specified in Section 8.8.1 of [RFC9256], an IPv6 address from the Dummy IPv6 Prefix 100:0:0:1::/64 block [RFC9780] [IANA-IPv6-REG] is used as the Destination IPv6 Address in the inner IPv6 header. In this case, the SRv6 Segment List of the Session-Sender test packets must end with a SID that causes the packets to be delivered to the Session-Reflector at the SR Policy endpoint (for example, by adding the Prefix SID of the SR Policy endpoint to the Segment List). Because a non-routable destination IPv6 address does not identify the Session-Reflector, the Session-Sender should include the Type 9 ("Destination Node IPv4 or IPv6 Address") STAMP TLV defined in Gandhi, et al. Expires 19 May 2027 [Page 25] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 [RFC9503], with the IP address of the intended Session-Reflector. When a non-routable destination IP address is added, and the intended destination node is not verified by other means, a misforwarded STAMP-Test packet or a packet whose SRv6 Segment List ends early may be processed by another node and produce an incorrect measurement without indication. 6.3.1.2. SRv6 IGP Paths Each IGP Flex-Algo path and IGP best path in SRv6 networks [RFC9350] has Prefix SIDs advertised by the nodes. The Session-Sender test packet uses these Prefix SIDs. The IPv6 header uses the Session-Sender's Prefix SID as the Source IPv6 Address and the Session-Reflector's Prefix SID as the Destination IPv6 Address. The SRv6 Segment List Sub-TLV in the Return Path TLV carries the Session-Sender's Prefix SID for the reverse direction, as specified in Section 6.4.2. An SRv6 IGP Prefix SID identifies a destination within an IGP or Flex-Algo forwarding context; it does not identify a specific SRv6 path. A test packet using an IGP Prefix SID therefore measures forwarding according to the IGP-selected path, which may include multiple ECMP paths. Section 10 describes how the Session-Sender can influence ECMP paths using hashing inputs, although it generally cannot deterministically select a particular path. This differs from measuring a specific SR Policy Segment List of a valid Candidate Path, as described above. However, a Segment List can itself encounter multiple ECMP paths when it uses an IGP Prefix SID. 6.3.2. Session-Sender Test Packet for Layer-3 Services over an SRv6 Path To measure delay for an L3 service carried over an SRv6 path, the Session-Sender must use the IPv6/SRH encapsulation of the data packets transmitted over the L3 service, including the L3VPN SRv6 SID instantiated on the Session-Reflector (e.g., an End.DT6, End.DT4, or End.DT46 SID instance, as specified in [RFC8986]), to encapsulate the Session-Sender test packets. The encapsulation of the Session-Sender test packet is shown in Figure 8 for both encoding modes: Insert-Mode and Encaps-Mode. Gandhi, et al. Expires 19 May 2027 [Page 26] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT6/End.DT46 SID . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 1: Encapsulation Using Insert-Mode Encoding +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT4/End.DT46 SID . . . . Next-Header = 4 (IPv4) . . . +---------------------------------------------------------------+ | IPv4 Header as shown in Figure 6 | . Destination IPv4 Address in L3VPN table . . Source IPv4 Address in L3VPN table (reverse direction) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 2: Encapsulation Using Encaps-Mode Encoding for IPv4 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . Gandhi, et al. Expires 19 May 2027 [Page 27] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT6/End.DT46 SID . . . . Next-Header = 41 (IPv6) . . . +---------------------------------------------------------------+ | IPv6 Header as shown in Figure 6 | . Destination IPv6 Address in L3VPN table . . Source IPv6 Address in L3VPN table (reverse direction) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 3: Encapsulation Using Encaps-Mode Encoding for IPv6 Figure 8: Content of Session-Sender Test Packet for an L3 Service over an SRv6 Path * In Insert-Mode: An SRH is inserted after the IPv6 header of the STAMP-Test packets, as shown in Example 1 of Figure 8. The ultimate End.DT6/End.DT46 SID in the Segment List is interpreted as an End SID, and local configuration on the Session- Reflector permits processing of UDP as the upper-layer header for OAM as described in Section 4.1.1 of [RFC8986]. * In Encaps-Mode: The STAMP-Test packets are encapsulated in an outer IPv6 header with an SRH, as shown in Examples 2 and 3 of Figure 8. An inner IP header is added to the Session-Sender test packets after the outer IPv6/SRH encapsulation. In both modes, the Session-Sender IPv6 address must be used as the Source IPv6 Address, and the Session-Reflector IPv6 address must be used as the Destination IPv6 Address in the outer IPv6 header. Gandhi, et al. Expires 19 May 2027 [Page 28] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The IPv6 Destination Address in the inner IPv6 header must be reachable through the IPv6 table lookup associated with the added L3VPN SRv6 SID. Similarly, the IPv4 Destination Address in the inner IPv4 header must be reachable through the IPv4 table lookup associated with the added L3VPN SRv6 SID. The IPv6 Source Address in the inner IPv6 header must be reachable through the IPv6 table lookup for the reverse-direction L3 service so that the Session-Reflector test packets are returned over that service. Similarly, the IPv4 Source Address in the inner IPv4 header must be reachable through the IPv4 table lookup for the reverse- direction L3 service. 6.3.3. Session-Sender Test Packet for Layer-2 Services over an SRv6 Path To measure delay for an L2 service carried over an SRv6 path, the Session-Sender must use the IPv6/SRH encapsulation of the data packets transmitted over the L2 service, including the L2VPN SRv6 SID instantiated on the Session-Reflector (e.g., an End.DT2U SID instance, as specified in [RFC8986]), to encapsulate the Session- Sender test packets. The encapsulation of the Session-Sender test packet is shown in Figure 9 for both encoding modes: Insert-Mode and Encaps-Mode. Gandhi, et al. Expires 19 May 2027 [Page 29] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT2U SID . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 1: Encapsulation Using Insert-Mode Encoding +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT2U SID . . . . Next-Header = 41 (IPv6) . . . +---------------------------------------------------------------+ | IPv6 Header as shown in Figure 6 | . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 6 | . . +---------------------------------------------------------------+ Example 2: Encapsulation Using Encaps-Mode Encoding Figure 9: Content of Session-Sender Test Packet for an L2 Service over an SRv6 Path * In Insert-Mode: An SRH is inserted after the IPv6 header of the STAMP-Test packets, as shown in Example 1 of Figure 9. Gandhi, et al. Expires 19 May 2027 [Page 30] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The ultimate End.DT2U SID in the Segment List is interpreted as an End SID, and local configuration on the Session-Reflector permits processing of UDP as the upper-layer header for OAM as described in Section 4.1.1 of [RFC8986]. * In Encaps-Mode: In addition to the outer IPv6/SRH encapsulation, an inner IPv6 header is added, as shown in Example 2 of Figure 9. The inner IPv6 header contains the Session-Sender IPv6 address as the Source IPv6 Address and the Session-Reflector IPv6 address as the Destination IPv6 Address. * For security reasons, the Router Alert IP option [RFC2113] is not used in Session-Sender or Session-Reflector test packets when STAMP-Test packets are terminated for control-plane processing, as described in [RFC6398]. In both encoding modes, the Session-Sender IPv6 address must be used as the Source IPv6 Address, and the Session-Reflector IPv6 address must be used as the Destination IPv6 Address in the outer IPv6 header. 6.4. Session-Reflector Test Packet In two-way measurement mode, the Session-Reflector transmits Session- Reflector test packets for links, SRv6 paths, L3 services, and L2 services in the reverse direction toward the Session-Sender. For Ethernet links, the Session-Reflector decapsulates the L2 header from the received Session-Sender test packets. For SRv6, it decapsulates the IPv6/SRH header, if present, from the received Session-Sender test packets. The Session-Reflector must generate the Session-Reflector test packet using the source and destination IP addresses and UDP port numbers extracted from the received Session-Sender test packet, except that a Return Address Sub-TLV, when present, specifies the destination IP address, as described in Section 6.4.2. The packet format is shown in Figure 10. Gandhi, et al. Expires 19 May 2027 [Page 31] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IP Header | . Source IP Address . . = Session-Reflector IP Address . . Destination IP Address . . = Source IP Address from Session-Sender Test Packet . . (unless overridden by Return Address Sub-TLV) . . IPv4 Protocol or IPv6 Next-header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header | . Source Port = Selected by Session-Reflector . . Destination Port . . = Source Port from Session-Sender Test Packet . . . +---------------------------------------------------------------+ | Payload = Test Packet as specified in Figure 2 and Figure 4 | . in Section 3 of RFC 8972 . . . +---------------------------------------------------------------+ Figure 10: Content of Session-Reflector Test Packet The Session-Reflector test packet fields are set as follows: * The payload contains the Session-Reflector test packet specified in Section 3 of [RFC8972]. * The source UDP port number in the received UDP header MUST be used as the destination UDP port number, and the destination UDP port number in the received UDP header MUST be used as the source UDP port number. * The source IP address in the received IP header MUST be used as the destination IP address unless a Return Address Sub-TLV is present, in which case the specified address MUST be used. * The Session-Reflector IP address MUST be used as the source IP address. The Session-Reflector must encapsulate the Session-Reflector test packets for transmission over links, SRv6 paths, L3 services, or L2 services in the reverse direction. For SRv6 encapsulation, the Session-Reflector must encode the Session-Reflector test packet using the same mode as the received Session-Sender test packet. Gandhi, et al. Expires 19 May 2027 [Page 32] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 6.4.1. Session-Reflector Test Packet for Links The Session-Reflector test packet defined in Figure 10 is encapsulated with an L2 header containing the Session-Sender MAC address as the Destination MAC address and the Session-Reflector MAC address as the Source MAC address for Ethernet links. When the Session-Reflector receives the "Reply Requested on the Same Link" flag in the Control Code Sub-TLV of the Return Path TLV specified in [RFC9503], it must transmit the Session-Reflector test packet over the same link in the reverse direction. 6.4.2. Session-Reflector Test Packet for SRv6 Paths When the Session-Reflector receives an SRv6 Segment List sub-TLV in the Return Path TLV specified in [RFC9503], it must use that Segment List as the reverse-direction SRv6 path and encapsulate the Session- Reflector test packet with an IPv6/SRH header. The Source IPv6 Address in the added IPv6 header is set to the Session-Reflector IPv6 address. The Session-Reflector must process a Control Code Sub-TLV as specified in Section 4.1.1 of [RFC9503]: * When the Reply Request flag indicates "No Reply Requested", the Session-Reflector must not transmit a Session-Reflector test packet and must terminate the received STAMP-Test packet. * When it indicates "Reply Requested on the Same Link", the Session- Reflector must transmit the Session-Reflector test packet over the incoming link in the reverse direction. * As specified in Section 4.1 of [RFC9503], a Control Code Sub-TLV cannot be included in the same Return Path TLV as a Return Address or SRv6 Segment List Sub-TLV. A Return Address Sub-TLV may be present together with a Segment List sub-TLV. When both are present, the Session-Reflector must use the Segment List for the reverse SRv6 path and must use the Return Address as the destination IP address of the Session-Reflector test packet, as specified in Section 4.1.2 of [RFC9503]. Examples of specific SRv6 return paths include: * The Segment List of the associated reverse Candidate Path. * The Binding SID of the reverse SR Policy. Gandhi, et al. Expires 19 May 2027 [Page 33] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * The SRv6 Prefix SID of the Session-Sender. For an SRv6 IGP Flex-Algo path, the SRv6 Segment List sub-TLV in the Return Path TLV carries the Session-Sender Prefix SID for the same SRv6 IGP Flex-Algo path and requests that the Session-Reflector transmit the Session-Reflector test packet over that path in the reverse direction. If no Return Path TLV is received, or if the received Return Path TLV contains neither a Control Code Sub-TLV nor an SRv6 Segment List Sub- TLV, the Session-Reflector must transmit the Session-Reflector test packet with additional IPv6/SRH encapsulation over the locally selected reverse-direction SRv6 path to the Session-Sender. In Insert-Mode, after adding the IPv6/SRH encapsulation, the Session- Reflector must not add the IP header shown in Figure 10. In Encaps-Mode, after adding the IPv6/SRH encapsulation, the Session- Reflector must add the IP header shown in Figure 10 as an inner IP header. If no reverse SRv6 path can be selected, the Session-Reflector must transmit the test packet shown in Figure 10 without additional IPv6/ SRH encapsulation. 6.4.3. Session-Reflector Test Packet for an L3 Service over an SRv6 Path In Insert-Mode, the Session-Reflector must follow the procedure described in Section 6.4.2. In Encaps-Mode: The Session-Reflector must transmit Session-Reflector test packets with IPv6/SRH encapsulation for the reverse-direction L3 service as follows: * The Session-Reflector must add the IPv6/SRH encapsulation using reachability information for the Source IP Address in the inner IP header of the received test packet. This address must be reachable through the IPv4 or IPv6 table lookup associated with the received L3VPN SRv6 SID instantiated on the Session-Reflector. The Source IPv6 Address in the added IPv6 header must be the Session-Reflector IPv6 address. * The Session-Reflector must add an inner IP header as shown in Figure 10. Its Destination IP Address and Source IP Address must be set to the source and destination IP addresses, respectively, from the received inner IP header. Gandhi, et al. Expires 19 May 2027 [Page 34] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * If the Session-Reflector cannot find the corresponding reverse- direction L3 service, it must drop the test packet and must not transmit a Session-Reflector test packet. 6.4.4. Session-Reflector Test Packet for an L2 Service over an SRv6 Path In Insert-Mode, the Session-Reflector must follow the procedure described in Section 6.4.2. In Encaps-Mode: The Session-Reflector must transmit Session-Reflector test packets with IPv6/SRH encapsulation for the reverse-direction L2 service as follows: * The Session-Reflector must add the IPv6/SRH encapsulation for the corresponding reverse-direction L2 service associated with the received L2VPN SRv6 SID instantiated on the Session-Reflector. The Source IPv6 Address in the added IPv6 header must be the Session-Reflector IPv6 address. * The Session-Reflector must add an inner IP header as shown in Figure 10. * If the Session-Reflector cannot find the corresponding reverse- direction L2 service, it must drop the test packet and must not transmit a Session-Reflector test packet. 7. Encapsulations for One-Way Measurement Mode In one-way measurement mode for links, the Session-Sender transmits STAMP-Test packets using the encapsulations defined in Section 6.2. In one-way measurement mode for SRv6 paths and for L3 and L2 services carried over those SRv6 paths, the Session-Sender transmits STAMP- Test packets using the encapsulations defined in Section 6.3. Because no Session-Reflector test packets are transmitted, the encapsulation defined in Section 6.4 does not apply. 8. Encapsulations for Loopback Measurement Mode In loopback measurement mode for links, SRv6 paths, and L3 and L2 services carried over those SRv6 paths, the Session-Sender must transmit the STAMP-Test packets defined in Section 6.1. The Session- Sender must add an IP header for the return path to its test packets and must set the Destination IP Address to the Session-Sender IP address, as shown in Figure 11. Gandhi, et al. Expires 19 May 2027 [Page 35] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IP Header (Return Path) | . Source IP Address = Session-Sender IP Address . . Destination IP Address = Session-Sender IP Address . . IPv4 Protocol or IPv6 Next-header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header | . Source Port = Selected by Session-Sender . . Destination Port = Source Port . . . +---------------------------------------------------------------+ | Payload = Test Packet as specified in Figure 1 and Figure 3 | . in Section 3 of RFC 8972 . . . +---------------------------------------------------------------+ Figure 11: Content of Return Session-Sender Test Packet in Loopback Measurement Mode When an SRv6 return path is included, the forward-path and return- path segments are carried in the same SRH. After the forward-path segments have been processed, the next segment directs the packet along the return path. The Session-Reflector does not need to identify the boundary between the paths or process the packet differently; it forwards the packet according to the SRH. 8.1. Loopback Measurement Mode for Links The Session-Sender must transmit the test packets in loopback measurement mode for Ethernet links with an L2 header for the forward path. The L2 header contains the link MAC address at the Session- Reflector as the Destination MAC address and the link MAC address at the Session-Sender as the Source MAC address, as shown in Figure 12. +---------------------------------------------------------------+ | L2 MAC Header (Forward Path) | . Source MAC Address = Session-Sender Link MAC . . Destination MAC Address = Session-Reflector Link MAC . . Ether-Type = 0x0800 (IPv4) Or 0x86DD (IPv6) . . . +---------------------------------------------------------------+ | Test Packet as shown in Figure 11 (Return Path) | . . +---------------------------------------------------------------+ Figure 12: Content of Session-Sender Test Packet in Loopback Measurement Mode for Ethernet Link Gandhi, et al. Expires 19 May 2027 [Page 36] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The Session-Sender must add an IP header for the return path to the test packets and must set both the Source IP Address and Destination IP Address to the Session-Sender IP address on the link. The Session-Reflector decapsulates the L2 header and forward the test packet to the Session-Sender using the IP header. 8.2. Loopback Measurement Mode for SRv6 Paths In loopback measurement mode for SRv6 paths, the Session-Sender test packet must carry either only the Segment List for the forward path (using Encaps-Mode encoding) or both the forward and return paths in the IPv6/SRH encapsulation (using Insert-Mode encoding), as shown in Figure 13. For an SRv6 IGP path, the forward Segment List must carry the Session-Reflector's Prefix SID: the Flex-Algo Prefix SID for an IGP Flex-Algo path, and the IGP Prefix SID for an IGP best path. Gandhi, et al. Expires 19 May 2027 [Page 37] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = Session-Sender IPv6 Address or . . Last Segment of Segment List of Return Path. . . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 1: Encapsulation Using Insert-Mode Encoding with SRv6 Return Path +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = Session-Reflector IPv6 Address or . . Last Segment of Segment List or . . . . Next-Header = 41 (IPv6) or 4 (IPv4) . . . +---------------------------------------------------------------+ | IP Header as shown in Figure 11 (Return Path) | . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 2: Encapsulation Using Encaps-Mode Encoding with IP Return Path Figure 13: Content of Session-Sender Test Packet in Loopback Measurement Mode for an SRv6 Path Gandhi, et al. Expires 19 May 2027 [Page 38] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 For an SR Policy using PSP, the Session-Sender must include the Prefix SID of the SR Policy endpoint as the final SID in the forward- direction Segment List to ensure that the Session-Sender test packets reach the SR Policy endpoint. 8.2.1. SRv6 Return Path For the SRv6 return path, the Session-Sender test packets must be encoded in Insert-Mode, as shown in Example 1 of Figure 13. The Session-Sender test packets must carry the return path in the SRv6 Segment List in addition to the forward path. Examples of specific SRv6 return paths include: * The Segment List of the associated reverse Candidate Path. * The Binding SID of the reverse SR Policy. * The SRv6 Prefix SID of the Session-Sender. For an SRv6 IGP return path, the return Segment List must carry the Session-Sender's Prefix SID. The Flex-Algo Prefix SID must be used for the same IGP Flex-Algo path in the reverse direction, and the Session-Sender's IGP Prefix SID must be used for an IGP best path. The Binding SID of the reverse SR Policy can be configured on the Session-Sender using an SDN controller, for example. Encaps-Mode using an SRv6 return path does not preclude carrying an inner IP header of the IP return path. When adding SRv6 CSIDs to Session-Sender test packets for the SRv6 return path in loopback measurement mode, it is recommended that the CSIDs be carried in a separate CSID container to avoid altering the ECMP path taken by the test packets. 8.2.2. IP Return Path For the IP return path, the Session-Sender test packets must be encoded in Encaps-Mode, as shown in Example 2 of Figure 13. The Session-Sender test packets must carry only the Segment List of the SRv6 forward-direction path. For an SRv6 IGP path, the forward Segment List carries the Session- Reflector's Prefix SID, as described in Section 8.2. The return path is carried in the inner IP header and does not use a Session-Sender Prefix SID in the SRH. Gandhi, et al. Expires 19 May 2027 [Page 39] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The Session-Sender must add an inner IP header for the return path to the test packets and must set its Destination IP Address to the Session-Sender IP address. The Session-Reflector decapsulates the IPv6/SRH headers and forward the test packet using the inner IP header for the return path. 8.3. Loopback Measurement Mode for Layer-3 Services over an SRv6 Path In loopback measurement mode for an L3 service carried over an SRv6 path, the Session-Sender must use the IPv6/SRH encapsulation of the data packets transmitted over the L3 service, including the L3VPN SRv6 SID instantiated on the Session-Reflector (e.g., an End.DT6, End.DT4, or End.DT46 SID, as specified in [RFC8986]), to encapsulate the Session-Sender test packets, as shown in Figure 14. +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT4/End.DT6/End.DT46 SID of Return Path. . . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 1: Encapsulation Using Insert-Mode Encoding with SRv6 Return Path +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT4/End.DT46 SID of Forward Path . . . . Next-Header = 4 (IPv4) . Gandhi, et al. Expires 19 May 2027 [Page 40] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 . . +---------------------------------------------------------------+ | IPv4 Header as shown in Figure 11 (Return Path) | . Destination IPv4 Address in L3VPN table . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 2: Encapsulation Using Encaps-Mode Encoding with IPv4 Return Path +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT6/End.DT46 SID of Forward Path . . . . Next-Header = 41 (IPv6) . . . +---------------------------------------------------------------+ | IPv6 Header as shown in Figure 11 (Return Path) | . Destination IPv6 Address in L3VPN table . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 3: Encapsulation Using Encaps-Mode Encoding with IPv6 Return Path Figure 14: Content of Session-Sender Test Packet in Loopback Measurement Mode for an L3 Service over an SRv6 Path 8.3.1. SRv6 Return Path For the SRv6 return path, the Session-Sender test packets must be encoded in Insert-Mode, as shown in Example 1 of Figure 14. The Session-Sender must add the SRv6 Segment List for the forward- direction L3 service, excluding the L3VPN SRv6 SID instantiated on the Session-Reflector, to the IPv6/SRH encapsulation of the test packet. Gandhi, et al. Expires 19 May 2027 [Page 41] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 In addition, the Session-Sender must add the SRv6 Segment List for the reverse-direction L3 service, including the L3VPN SRv6 SID instantiated on the Session-Sender, to the IPv6/SRH encapsulation to return the test packet from the Session-Reflector to the Session- Sender. Encaps-Mode using an SRv6 return path does not preclude carrying an inner IP header of the IP return path. 8.3.2. IP Return Path For the IP return path, the Session-Sender test packets must be encoded in Encaps-Mode, as shown in Examples 2 and 3 of Figure 14. The Session-Sender must add the SRv6 Segment List for the forward- direction L3 service, including the L3VPN SRv6 SID instantiated on the Session-Reflector, to the IPv6/SRH encapsulation of the test packets sent to the Session-Reflector. The Session-Sender must add an inner IP header for the return path to the test packets and must set its Destination IP Address to the Session-Sender IP address. This address must be reachable through the IPv4 or IPv6 table lookup associated with the L3VPN SRv6 SID on the Session-Reflector. The Session-Reflector decapsulates the IPv6/SRH header and forward the Session-Sender test packet using the inner IP header, after adding IPv6/SRH encapsulation for the reverse-direction L3 service. 8.4. Loopback Measurement Mode for Layer-2 Services over an SRv6 Path In loopback measurement mode for an L2 service carried over an SRv6 path, the Session-Sender must use the IPv6/SRH encapsulation of the data packets transmitted over the L2 service, including the L2VPN SRv6 SID instantiated on the Session-Reflector (e.g., an End.DT2U SID, as specified in [RFC8986]), to encapsulate the Session-Sender test packets, as shown in Figure 15. Gandhi, et al. Expires 19 May 2027 [Page 42] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.DT2U SID of Return Path . . . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Encapsulation Using Insert-Mode Encoding with SRv6 Return Path Figure 15: Content of Session-Sender Test Packet in Loopback Measurement Mode for an L2 Service over an SRv6 Path 8.4.1. SRv6 Return Path For the SRv6 return path, the Session-Sender test packets must be encoded in Insert-Mode, as shown in Figure 15. The Session-Sender must add the SRv6 Segment List for the forward- direction L2 service, excluding the L2VPN SRv6 SID instantiated on the Session-Reflector, to the IPv6/SRH encapsulation of the test packet. In addition, the Session-Sender must add the SRv6 Segment List for the reverse-direction L2 service, including the L2VPN SRv6 SID instantiated on the Session-Sender, to the IPv6/SRH encapsulation to return the test packet from the Session-Reflector to the Session- Sender. 8.4.2. IP Return Path An IP return path is not supported for an L2 service because the Session-Reflector has no IP forwarding context associated with the L2 service for forwarding the returned Session-Sender test packet. The return path therefore uses the SRv6 Segment List for the reverse- direction L2 service, as specified in Section 8.4.1. Gandhi, et al. Expires 19 May 2027 [Page 43] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 9. Encapsulations for Loopback with TSF Measurement Mode Loopback with TSF measurement mode must use the encapsulation defined for SRv6 paths. For L3 and L2 services carried over the SRv6 paths, the applicable service SID must follow the End.TSF SID so that the TSF action is applied before the packet is forwarded in the service context. . Loopback with TSF measurement mode must use unauthenticated STAMP- Test packets. End.TSF applies only when the "Receive Timestamp" field is at an offset of 16 bytes from the start of the STAMP-Test packet payload. The Session-Sender must not use authenticated mode with loopback with TSF measurement mode. 9.1. STAMP TSF Endpoint Behaviors for SRv6 [RFC8986] defines SRv6 Endpoint Behaviors for SRv6 nodes. This document defines two SRv6 Endpoint Behaviors for TSF: * STAMP TSF with PTPv2 (End.TSF behavior TBA1): A 64-bit PTPv2 timestamp written at a begin offset of 16 bytes from the start of the STAMP-Test packet payload. * STAMP TSF with NTPv4 (End.TSF behavior TBA2): A 64-bit NTPv4 timestamp written at a begin offset of 16 bytes from the start of the STAMP-Test packet payload. The timestamp is written in the "Receive Timestamp" field [RFC8972], located at a begin offset of 16 bytes from the start of the STAMP- Test packet payload, as shown in the Session-Reflector test packet in Figure 2 of Section 3 of [RFC8972]. The TBA1 and TBA2 End.TSF endpoint behaviors are bound to SRv6 SIDs and instantiated on Session-Reflector nodes. For SRv6 paths in loopback with TSF measurement mode, the Session- Sender test packets must carry the applicable End.TSF behavior with the target SRv6 SID in an SRH [RFC8754], as shown in Figure 16, for Insert-Mode in Example 1 and Encaps-Mode in Example 2. Gandhi, et al. Expires 19 May 2027 [Page 44] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . . . . . Next-Header = 17 (UDP) . . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 1: Encapsulation Using Insert-Mode Encoding with SRv6 Return Path +---------------------------------------------------------------+ | IPv6 Header | . Source IP Address = Session-Sender IPv6 Address . . Destination IP Address = Segment List[Segments Left] . . Next-Header = 43 (IPv6-Route) . . . +---------------------------------------------------------------+ | Routing Type = 4 (SRH) | . Segment List(0) = End.TSF SID . . . . Next-Header = 41 (IPv6) or 4 (IPv4) . . . +---------------------------------------------------------------+ | IP Header as shown in Figure 11 (Return Path) | . . +---------------------------------------------------------------+ | UDP Header and Payload as shown in Figure 11 | . . +---------------------------------------------------------------+ Example 2: Encapsulation Using Encaps-Mode Encoding with IP Return Path Figure 16: Content of Session-Sender Test Packet in Loopback Measurement Mode with End.TSF for SRv6 Paths Gandhi, et al. Expires 19 May 2027 [Page 45] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 The Session-Sender test packets must be encoded in Insert-Mode for the SRv6 return path and in Encaps-Mode for the IP return path, as defined in the loopback measurement mode for SRv6 paths in this document. When a Session-Reflector receives a STAMP-Test packet with the applicable End.TSF behavior for the target SRv6 SID, it must write the timestamp to the STAMP-Test packet payload and forward the test packet as defined in the loopback measurement mode for SRv6 paths. If the Session-Reflector cannot write the timestamp, it must drop the packet. 9.1.1. TSF Endpoint Behavior Node Capability Before enabling loopback with TSF measurement mode: * The Session-Sender must determine whether the Session-Reflector supports the applicable End.TSF behavior and associated timestamp format. * The capability information can be statically configured on the Session-Sender or obtained using management protocols or a capability signaling mechanism. * If no signaling mechanism is used, the capability must be statically configured on the Session-Sender. * If support for the selected End.TSF behavior and its associated timestamp format cannot be confirmed, the Session-Sender must not enable the TSF measurement session. The mechanisms to learn the End.TSF capability of nodes are out of scope for this document. To validate the timestamp result: * The Session-Sender must initialize the Receive Timestamp field to zero in each Session-Sender test packet. * The Session-Sender must discard a returned Session-Sender test packet with a zero Receive Timestamp field and must not use it to compute delay metrics. 10. ECMP Measurement in SRv6 Networks The Segment List of an SRv6 path can have ECMP paths between the source and transit nodes, between transit nodes, and between transit and destination nodes, for example, due to: Gandhi, et al. Expires 19 May 2027 [Page 46] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * Use of a Node Prefix SID [RFC8402]. * Use of an Anycast SID [RFC8402], which can result in ECMP paths via transit nodes that are part of that anycast group. ECMP load-balancing behavior and the hashing inputs are implementation-specific. The Session-Sender can influence the ECMP path taken by STAMP-Test packets by varying one or more fields that are used as input to the hashing function, while keeping the remaining fields constant. To measure delay on different ECMP paths of a Segment List, the Session-Sender can transmit STAMP-Test packets using the following mechanisms: * The Session-Sender may use different IPv6 Flow Label values [RFC6437] in its test packets to influence ECMP hashing. The Session-Reflector copies the received IPv6 Flow Label into its test packet unless local policy specifies otherwise, as described in Section 5. In general, the Session-Sender cannot deterministically select a specific ECMP path. Instead, a set of IPv6 Flow Label values that map to distinct ECMP paths can be determined empirically and then used for ongoing monitoring. A separate STAMP session can be created for each selected IPv6 Flow Label value. Alternatively, within a single STAMP session, the Session-Sender may vary the IPv6 Flow Label value on a per-packet basis so that different ECMP paths are exercised over time. In this case, the resulting measurement represents an aggregate across the ECMP paths exercised over time. To limit Session-Sender and Session-Reflector state, operators can limit the number of IPv6 Flow Label values in use at any time and rotate among IPv6 Flow Label values when monitoring a large ECMP set. The considerations for loss measurement for different ECMP paths of an SRv6 path are outside the scope of this document. 11. Implementation Status Editorial note: Please remove this section prior to publication. Gandhi, et al. Expires 19 May 2027 [Page 47] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 11.1. Cisco Implementation The following Cisco routing platforms running the IOS XR operating system have participated in interoperability testing for the one-way measurement mode, the two-way measurement mode, and the loopback measurement mode for links and SRv6: * Cisco 8000 (based on Cisco Silicon One ASIC) * Cisco ASR9904 with Lightspeed line card and Tomahawk line card * Cisco NCS5500 (based on Broadcom Jericho1 ASIC) * Cisco NCS5700 (based on Broadcom Jericho2 ASIC) 11.2. Teaparty Implementation An open-source implementation of the Simple Two-Way Active Measurement Protocol [RFC8762] is available in Teaparty. https://github.com/cerfcast/teaparty An implementation of the solution specified in [RFC9503] is available at the following location: https://github.com/cerfcast/teaparty/ commit/393abf9357a6c2439877d9bcf2dc426dd89c7158 The features implemented are: 1. Destination Node IPv4 or IPv6 Address TLV. 2. Return Path TLV. There is also support for these TLVs in the Wireshark dissector: https://github.com/cerfcast/teaparty/commit/ fb74e2e02396e9bb3ead017e8d9a0c187e3573e2 Contact: William Hawkins University of Cincinnati Email: hawkinsw@obs.cr Gandhi, et al. Expires 19 May 2027 [Page 48] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 12. Operational and Manageability Considerations The operational considerations specified in Section 5 of [RFC8762] also apply to the procedures specified in this document. Further, the operation and management considerations for performance measurement based on STAMP specified in Section 3 of [RFC8762] also apply. The manageability considerations described in Section 9 of [RFC8402] apply to this specification. The operational considerations specified in [RFC8986] also apply to the procedures specified in this document. The procedures can be used to compute delay statistics, such as the average, minimum, maximum, and variance, as well as packet-loss statistics, such as the percentage of packets lost and the number of consecutive packets lost. They can also track STAMP session-state changes. Notification behavior for locally configured metric thresholds and STAMP session-state changes is described in Section 12.4. 12.1. Measurement Mode and Parameters The measurement mode is configured for each STAMP session; this document specifies no default mode or general in-band negotiation of mode support: * The Session-Sender cannot rely on an unsupported-mode indication or automatic fallback. Packets sent to an endpoint that lacks the required support may be dropped or processed according to its supported behavior, so the resulting measurement may be invalid. * Operators should configure each Session-Sender and relevant Session-Reflector consistently and use a mode for which the required endpoint behavior is supported. If support cannot be established, operators should use a mutually supported mode or leave the session disabled. * The Session-Reflector mode (Stateful or Stateless) is configured per session, and no default is specified for the two-way measurement mode. See Section 5 for the mode-specific Stateful and Stateless requirements. * In the loopback measurement mode and the loopback with TSF measurement mode, the node at the end of the forward path does not need to maintain a STAMP session; the loopback with TSF measurement mode additionally requires support for the applicable End.TSF behavior. Gandhi, et al. Expires 19 May 2027 [Page 49] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * During staged deployment of End.TSF, operators should follow the capability verification procedures in Section 9.1.1 before enabling loopback with TSF. Other endpoints can continue to use loopback without TSF or another mutually supported mode. This document specifies no default measurement interval or packet transmission rate, and no mode-specific minimum or maximum interval. These values need to be configured for each session. Operators should choose them based on the desired measurement frequency, the capacity of the link or path and the processing capacity of the Session-Reflector, and any rate limits in the implementation. Operators should account for the aggregate traffic and processing load across sessions, SRv6 Segment Lists, links, LAG member micro- sessions, and ECMP probes when setting intervals and rates. 12.2. MTU Considerations This document does not specify a default test packet size for SRv6 or link measurements: * The packet size follows the STAMP packet format and any optional TLVs, including Extra Padding, used by a session. * Operators should select a size that reflects the traffic being measured where appropriate. * When checking the path MTU, operators should account for the IPv6 and UDP headers, SRH and Segment List, any inner or outer IP headers used in Encaps-Mode, the L2 header for link measurements, and optional TLVs. * STAMP-Test packets must not exceed the path MTU and must not be fragmented. 12.3. STAMP Session Scale When STAMP sessions are created for Segment Lists of SR Policies, operators need to consider the scalability of the resulting number of STAMP sessions. To manage the load, operators are advised to limit the number of sessions or increase their measurement intervals. Gandhi, et al. Expires 19 May 2027 [Page 50] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 Monitoring different IPv6 Flow Label values separately can require a distinct STAMP session for each value and a mapping between each session and the corresponding data flow, which can limit the number of flows monitored. The ECMP measurement procedures in Section 10 describe the tradeoffs between using separate sessions for probe values and varying values per packet. Link and LAG member measurements also contribute to the number of STAMP sessions and micro-sessions being monitored. 12.4. STAMP Session State Notification Threshold-based notifications for delay and packet-loss metrics are generated when locally configured thresholds are crossed. This document specifies no default threshold values; operators configure them according to service objectives and expected measurement variation. These metric notifications are distinct from session- state notifications. An active STAMP session may have metrics that remain within the configured thresholds, in which case no metric notifications are generated. A failed session does not transmit or receive test packets, so no metrics are computed. Monitoring the STAMP session state allows the Session-Sender, in the two-way measurement mode, the loopback measurement mode, and the loopback with TSF measurement mode, to determine whether the STAMP test is idle, active, or failed and generate state-change notifications as specified in [I-D.ietf-ippm-stamp-ext-hdr]. In one-way measurement mode, the Session-Reflector can track packet reception using a local receive status and generate status-change notifications as follows. This receive status is distinct from the Session-Sender's STAMP session state defined in [I-D.ietf-ippm-stamp-ext-hdr]. In particular, the Session- Reflector's initial "waiting" status does not indicate that the Session-Sender is idle; the Session-Sender may be transmitting packets that are lost before reaching the Session-Reflector. * The receive status is initially reported as "waiting" when no Session-Sender test packets have been received. * The receive status changes to "receiving" when one or more Session-Sender test packets are received. Gandhi, et al. Expires 19 May 2027 [Page 51] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * The receive status changes to "loss-detected" when N consecutive Session-Sender test packets are not received after the status has changed to "receiving", where N (the consecutive packet loss count) is a locally provisioned value. This document specifies no default value for N. Operators should choose N based on the measurement interval, expected transient loss, and the desired failure-detection time; a larger N reduces sensitivity to short loss bursts but delays failure detection. * The receive status changes from "loss-detected" back to "receiving" when at least one Session-Sender test packet is again received. For LAG member link measurements, receive status is tracked per STAMP micro-session. Because STAMP-Test packets are transmitted over the link, SRv6 path, or L3 or L2 service being measured, a connectivity failure typically manifests as the continuous packet loss specified above, resulting in the receive status being reported as "loss- detected". 12.5. Operational Considerations for TSF For End.TSF capability verification, including support for the selected TBA1 or TBA2 endpoint behavior and timestamp format, see Section 9.1.1. The Session-Sender cannot determine from the returned timestamp whether the Session-Reflector wrote it in the requested format. If the Session-Reflector uses a different format, the Session-Sender may compute an incorrect delay metric. Implementations are recommended to maintain counters for the following End.TSF events: * Packets received with End.TSF. * Packets for which End.TSF was invoked. * Packets dropped after receiving an unknown End.TSF endpoint behavior. * Packets forwarded after skipping an unknown End.TSF endpoint behavior. * Packets carrying End.TSF that were dropped because they were malformed. * Packets for which the End.TSF timestamp write failed. Gandhi, et al. Expires 19 May 2027 [Page 52] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 Implementations should distinguish successful and failed End.TSF invocations, for example through implementation-specific counters or logs. Any implementation-specific notifications for sustained failures, malformed packets, or excessive packets with End.TSF should be rate-limited. 12.6. Operational Considerations for Path Changes Operators should review STAMP session configuration when a monitored link, path, or service changes to ensure that it continues to match the monitoring objective. * For monitoring active SRv6 forwarding paths, operators should create, activate, update, or remove sessions as needed to match the Segment Lists selected for the active Candidate Path as it is created, selected, or changes state, or as its Segment Lists change. * For monitoring links, operators should configure sessions for the links selected for measurement and update them when link state changes. For LAG member measurements, they should configure a separate STAMP micro-session for each member link, as described in Section 6.2, and update the configuration when LAG membership changes. * For assessing the readiness of standby or backup SRv6 paths, operators may also configure sessions for the corresponding Candidate Paths or Segment Lists. For standby or backup LAG member links, operators may configure the corresponding link micro-sessions. These measurements assess the tested path or member under the measurement conditions and do not represent traffic currently using the active forwarding path or member. Sessions and micro-sessions used to monitor links or standby paths contribute to the session scale and measurement load described in Section 12.3. A change to the path used by an existing Segment List, for example because of fast reroute (FRR), or a change to the state of a monitored link or LAG member may affect the STAMP measurements: delay metrics may change, and packet loss may occur. Operators should investigate sudden changes in delay or packet-loss metrics for possible path or link changes, including FRR events. 12.7. Destination UDP Port Number Considerations Configuration of the destination UDP port number depends on the measurement mode: Gandhi, et al. Expires 19 May 2027 [Page 53] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * For two-way and one-way measurement modes, the Session-Reflector receives STAMP-Test packets on UDP port number 862 by default. Any alternative destination UDP port number must be selected from the User Ports (1024-49151) or Dynamic Ports (49152-65535) ranges [RFC6335]; use of a User Port is subject to the network-impact study and agreement specified in Section 4.1 of [RFC8762]. For an alternative destination UDP port number, the Session-Sender and Session-Reflector must be configured to use it, and the Session- Reflector must be configured to receive STAMP-Test packets on that UDP port number. * For the loopback measurement mode and the loopback with TSF measurement mode, see Section 5.2 for the destination UDP port number requirements. The endpoint node forwarding the packet does not require configuration of a STAMP UDP port number. * A Session-Reflector that is not configured to receive test packets on the selected UDP port number must drop them. 13. Security Considerations The security considerations in [RFC8762], [RFC8972], [RFC9503], [RFC8754], [RFC8986], Section 9 of [RFC8402], and [I-D.ietf-ippm-stamp-ext-hdr] also apply to the procedures specified in this document. The measures specified in Section 7 of [RFC8762] to mitigate attacks also apply. The security considerations specified in [RFC8986] are also applicable to the procedures described in this document. A secure transport for STAMP specified in Section 4.5 of [RFC8762] can be used. The procedures specified in this document are intended for deployment in a single network administrative domain. To mitigate threats, STAMP-Test packets must be filtered at administrative-domain boundaries. Additionally, the following considerations apply: * The Session-Sender and Session-Reflector IP addresses are provisioned by the operator for the STAMP session. For link measurements, the operator provisions the peer IP and MAC addresses and the link or LAG member used by the session. * The operator is assumed to have verified the integrity of the forward and return paths taken by the STAMP-Test packets and the link endpoints used for link measurements. Gandhi, et al. Expires 19 May 2027 [Page 54] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * The source UDP port number is selected as specified in Section 3.1 of [I-D.ietf-ippm-stamp-ext-hdr]. * [RFC8972] leaves SSID generation to the implementation. For SRv6 sessions, implementations can use a Cryptographically Secure Pseudorandom Number Generator [NIST-CSPRNG] to make SSID assignment less predictable and off-path attacks more difficult. If desired, attacks can be mitigated by performing basic validation checks on the timestamp fields of STAMP-Test packets received by the Session-Sender. For example, verifying that T2 is later than T1 in the STAMP Reference Topology shown in Figure 1 requires clock synchronization between the Session-Sender and the Session-Reflector. In contrast, checking that T3 is greater than or equal to T2, or that T4 is later than T1, compares timestamps generated at the same node and does not require clock synchronization. The effect of an individual invalid test packet on the measurement results is generally limited to the affected measurement cycle. However, repeated injection of invalid or replayed packets can cause sustained measurement disruption or resource consumption. Stateful measurement modes and End.TSF processing may also introduce additional resource-exhaustion risks. A Session-Reflector must process a STAMP-Test packet received on a link or with an L3 or L2 service SID only in the context of that link or service, and must not forward it or reply to it in any other context. This document does not provide a mechanism for cross- service OAM interactions. 13.1. Security Considerations for Measurement Modes The procedures in this document introduce additional security considerations: * For L3 and L2 service measurements (Sections 6.3.2, 6.3.3, 6.4.3, 6.4.4, 8.3, and 8.4), STAMP-Test packets use operator-selected addresses and are forwarded in a customer service context. If the destination address is not local to the intended Session- Reflector, or, for a loopback return packet, the Session-Sender address is not local or reachable in that service context, ordinary forwarding may send the packet toward a CE or drop it. This can expose STAMP-Test packets to an unintended endpoint or service. Operators should use addresses local to the relevant service context and filter STAMP-Test packets at service boundaries. Gandhi, et al. Expires 19 May 2027 [Page 55] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 * For link measurements, STAMP-Test packets use operator-provisioned peer IP and MAC addresses. If these addresses or the selected link are incorrect, packets may be delivered to an unintended peer or may be dropped. Operators should verify the link endpoints and filter STAMP-Test packets at the relevant link boundaries. * In one-way measurement mode, the Session-Reflector maintains per- session state, and unauthenticated STAMP-Test packets can cause state to be allocated or consumed. An attacker can exhaust state or other resources by sending such packets; filtering, rate limiting, and limits on state allocation can mitigate this risk. * In the loopback measurement mode and the loopback with TSF measurement mode, the returned packet is a self-addressed UDP packet. No node on the return path authenticates itself as the intended STAMP endpoint; in the loopback with TSF measurement mode, a node may write a timestamp but does not authenticate the forwarding node. Any node that receives the packet and has IP reachability to the Session-Sender can forward it to the Session- Sender. The returned packet does not identify the forwarding node. HMAC does not authenticate the forwarding node. * In the loopback measurement mode and the loopback with TSF measurement mode, the Session-Sender ignores the Sequence Number field, so sequence-number-based replay detection is unavailable and replayed packets may be accepted as measurement results. Timestamp validation can help detect stale or inconsistent packets, but HMAC alone does not provide replay protection. HMAC-SHA-256 in authenticated mode provides integrity protection for STAMP-Test packets, but it does not provide confidentiality or prevent eavesdropping. HMAC, as specified in Section 4.4 of [RFC8762], is supported as follows: * In two-way measurement mode, the Session-Sender and Session- Reflector validate the STAMP-Test packet each receives. * In one-way measurement mode, the Session-Reflector validates the Session-Sender test packet it receives. * In loopback measurement mode, the Session-Sender validates the returned Session-Sender test packet. The STAMP-Test packets with an SRH can also use the HMAC authentication specified in [RFC8754]. Gandhi, et al. Expires 19 May 2027 [Page 56] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 13.2. Security Considerations for TSF The TSF uses the IANA-assigned endpoint behaviors TBA1 and TBA2 with timestamp formats and begin offsets. Processing of these endpoint behaviors must be restricted to trusted nodes and trusted STAMP sessions. An attacker who can inject packets with End.TSF could cause unauthorized data-plane timestamping. Network operators must filter IPv6 packets carrying End.TSF at administrative-domain boundaries and must restrict the behavior to Session-Reflector nodes that support the applicable behavior. The Session-Reflector writes the timestamp specified by the TBA1 or TBA2 behavior in the STAMP-Test packet payload. Implementations must validate the Endpoint Behavior, the timestamp format, and the available payload length before writing the timestamp. Implementations must perform bounds checking to prevent malformed packets from causing memory corruption, packet corruption, or denial- of-service conditions. Any malformed packet with End.TSF must be dropped. 13.3. Privacy Considerations STAMP-Test packets and their IPv6/SRH and service encapsulations contain information such as source and destination IP addresses, UDP port numbers, SSIDs, SRv6 Segment Lists and SIDs, service SIDs, link- layer addresses, IPv6 Flow Labels, and timestamps. These fields, together with delay, loss, and session-state measurements, can be correlated with network inventory or subscriber records to identify users, devices, services, network paths, and activity patterns. This information is visible to nodes that process or observe the packets. HMAC provides integrity protection but does not encrypt these fields. An attacker who can inject packets carrying the End.TSF endpoint behaviors could cause unauthorized data-plane timestamping. STAMP- Test packets carrying the End.TSF endpoint behaviors are covered by the administrative-domain filtering requirement in this Section. Measurement results, session state, and associated logs or notifications can expose similar information when retained or exported through management systems. Operators should limit collection, access, retention, and sharing to what is needed for operations, protect stored data and management interfaces, and use aggregation or remove identifying details when fine-grained records are not needed. Gandhi, et al. Expires 19 May 2027 [Page 57] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 14. IANA Considerations This document requests IANA to allocate the following code points in the First Come First Served "SRv6 Endpoint Behaviors" subregistry under the top-level "Segment Routing" registry. +=======+==========+===================+===========+============+ | Value | Hex | Endpoint Behavior | Reference | Change | | | | | | Controller | +=======+==========+===================+===========+============+ | TBA1 | TBA1-HEX | STAMP TSF with | This | IETF | | | | PTPv2 | document | | +-------+----------+-------------------+-----------+------------+ | TBA2 | TBA2-HEX | STAMP TSF with | This | IETF | | | | NTPv4 | document | | +-------+----------+-------------------+-----------+------------+ Table 3: SRv6 Endpoint Behaviors 15. References 15.1. Normative References [RFC0768] Postel, J., "User Datagram Protocol", STD 6, RFC 768, DOI 10.17487/RFC768, August 1980, . [RFC0791] Postel, J., "Internet Protocol", STD 5, RFC 791, DOI 10.17487/RFC791, September 1981, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC5905] Mills, D., Martin, J., Ed., Burbank, J., and W. Kasch, "Network Time Protocol Version 4: Protocol and Algorithms Specification", RFC 5905, DOI 10.17487/RFC5905, June 2010, . [RFC6335] Cotton, M., Eggert, L., Touch, J., Westerlund, M., and S. Cheshire, "Internet Assigned Numbers Authority (IANA) Procedures for the Management of the Service Name and Transport Protocol Port Number Registry", BCP 165, RFC 6335, DOI 10.17487/RFC6335, August 2011, . Gandhi, et al. Expires 19 May 2027 [Page 58] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 [RFC6374] Frost, D. and S. Bryant, "Packet Loss and Delay Measurement for MPLS Networks", RFC 6374, DOI 10.17487/RFC6374, September 2011, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8200] Deering, S. and R. Hinden, "Internet Protocol, Version 6 (IPv6) Specification", STD 86, RFC 8200, DOI 10.17487/RFC8200, July 2017, . [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, . [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, . [RFC8762] Mirsky, G., Jun, G., Nydell, H., and R. Foote, "Simple Two-Way Active Measurement Protocol", RFC 8762, DOI 10.17487/RFC8762, March 2020, . [RFC8972] Mirsky, G., Min, X., Nydell, H., Foote, R., Masputra, A., and E. Ruffini, "Simple Two-Way Active Measurement Protocol Optional Extensions", RFC 8972, DOI 10.17487/RFC8972, January 2021, . [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, . [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, . Gandhi, et al. Expires 19 May 2027 [Page 59] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 [RFC9350] Psenak, P., Ed., Hegde, S., Filsfils, C., Talaulikar, K., and A. Gulko, "IGP Flexible Algorithm", RFC 9350, DOI 10.17487/RFC9350, February 2023, . [RFC9503] Gandhi, R., Ed., Filsfils, C., Chen, M., Janssens, B., and R. Foote, "Simple Two-Way Active Measurement Protocol (STAMP) Extensions for Segment Routing Networks", RFC 9503, DOI 10.17487/RFC9503, October 2023, . [RFC9534] Li, Z., Zhou, T., Guo, J., Mirsky, G., and R. Gandhi, "Simple Two-Way Active Measurement Protocol Extensions for Performance Measurement on a Link Aggregation Group", RFC 9534, DOI 10.17487/RFC9534, January 2024, . [RFC9800] Cheng, W., Ed., Filsfils, C., Li, Z., Decraene, B., and F. Clad, Ed., "Compressed SRv6 Segment List Encoding", RFC 9800, DOI 10.17487/RFC9800, June 2025, . [I-D.ietf-ippm-stamp-ext-hdr] Gandhi, R., Zhou, T., Li, Z., and W. Hawkins, "Simple Two- Way Active Measurement Protocol (STAMP) Extensions for Reflecting STAMP Packet IP Headers", Work in Progress, Internet-Draft, draft-ietf-ippm-stamp-ext-hdr-26, 27 October 2026, . [IEEE.1588] IEEE, "1588-2008 IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems", March 2008. 15.2. Informative References [RFC0826] Plummer, D., "An Ethernet Address Resolution Protocol: Or Converting Network Protocol Addresses to 48.bit Ethernet Address for Transmission on Ethernet Hardware", STD 37, RFC 826, DOI 10.17487/RFC826, November 1982, . [RFC2113] Katz, D., "IP Router Alert Option", RFC 2113, DOI 10.17487/RFC2113, February 1997, . Gandhi, et al. Expires 19 May 2027 [Page 60] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 [RFC4026] Andersson, L. and T. Madsen, "Provider Provisioned Virtual Private Network (VPN) Terminology", RFC 4026, DOI 10.17487/RFC4026, March 2005, . [RFC6234] Eastlake 3rd, D. and T. Hansen, "US Secure Hash Algorithms (SHA and SHA-based HMAC and HKDF)", RFC 6234, DOI 10.17487/RFC6234, May 2011, . [RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman, "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, DOI 10.17487/RFC4861, September 2007, . [RFC2681] Almes, G., Kalidindi, S., and M. Zekauskas, "A Round-trip Delay Metric for IPPM", RFC 2681, DOI 10.17487/RFC2681, September 1999, . [RFC6056] Larsen, M. and F. Gont, "Recommendations for Transport- Protocol Port Randomization", BCP 156, RFC 6056, DOI 10.17487/RFC6056, January 2011, . [RFC6398] Le Faucheur, F., Ed., "IP Router Alert Considerations and Usage", BCP 168, RFC 6398, DOI 10.17487/RFC6398, October 2011, . [RFC6437] Amante, S., Carpenter, B., Jiang, S., and J. Rajahalme, "IPv6 Flow Label Specification", RFC 6437, DOI 10.17487/RFC6437, November 2011, . [RFC7404] Behringer, M. and E. Vyncke, "Using Only Link-Local Addressing inside an IPv6 Network", RFC 7404, DOI 10.17487/RFC7404, November 2014, . [RFC9780] Mirsky, G., Mishra, G., and D. Eastlake 3rd, "Bidirectional Forwarding Detection (BFD) for Multipoint Networks over Point-to-Multipoint MPLS Label Switched Paths (LSPs)", RFC 9780, DOI 10.17487/RFC9780, May 2025, . Gandhi, et al. Expires 19 May 2027 [Page 61] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 [RFC10052] Mirsky, G., Ruffini, E., Nydell, H., Foote, R., and W. Hawkins, "Performance Measurement with Asymmetrical Traffic Using the Simple Two-Way Active Measurement Protocol (STAMP)", RFC 10052, DOI 10.17487/RFC10052, September 2026, . [I-D.ietf-ippm-stamp-yang] Mirsky, G., Min, X., Luo, W. S., and R. Gandhi, "Simple Two-way Active Measurement Protocol (STAMP) Data Model", Work in Progress, Internet-Draft, draft-ietf-ippm-stamp- yang-12, 5 November 2023, . [NIST-CSPRNG] NIST Special Publication 800-90A Revision 1, "Recommendation for Random Number Generation Using Deterministic Random Bit Generators", January 2015, . [IEEE802.1AX] IEEE, "IEEE Standard for Local and Metropolitan Area Networks - Link Aggregation", IEEE Std 802.1AX-2020, DOI 10.1109/IEEESTD.2020.9105034, May 2020, . [IANA-IPv6-REG] IANA, "IANA IPv6 Special-Purpose Address Registry", . Acknowledgments The authors would like to thank Ianik Semco and Thierry Couture for their discussions on the use cases for Performance Measurement in Segment Routing. The authors would also like to thank Greg Mirsky, Gyan Mishra, Xie Jingrong, Zafar Ali, Boris Hassanov, Ruediger Geib, Liyan Gong, Zhenqiang Li, Maria Matejka, William Hawkins, and Mike Koldychev for reviewing this document and providing useful comments and suggestions. Additionally, Patrick Khordoc, Haowei Shi, Amila Tharaperiya Gamage, Pengyan Zhang, Ruby Lin, Senni Tan, and Radu Valceanu have helped improve the mechanisms described in this document. Gandhi, et al. Expires 19 May 2027 [Page 62] Internet-Draft STAMP for Segment Routing over IPv6 November 2026 Contributors The following people have substantially contributed to this document: Daniel Voyer Cisco Systems, Inc. Email: davoyer@cisco.com Amit Dhamija Arrcus India Email: amitd@arrcus.com Authors' Addresses Rakesh Gandhi (editor) Cisco Systems, Inc. Canada Email: rgandhi@cisco.com Clarence Filsfils Cisco Systems, Inc. Email: cfilsfil@cisco.com Bart Janssens Colt Email: Bart.Janssens@colt.net Mach(Guoyi) Chen Huawei Email: mach.chen@outlook.com Richard Foote Nokia Email: footer.foote@nokia.com Gandhi, et al. Expires 19 May 2027 [Page 63]