rfc-8186

Support of the IEEE 1588 Timestamp Format in a Two-Way Active Measurement Protocol (TWAMP)

G. Mirsky, I. Meilik
date2017-06 streamIETF areaops wgippm statusPROPOSED STANDARD pages8 canonicalhttps://www.rfc-editor.org/rfc/rfc8186 doi10.17487/RFC8186 errataview
This document describes an OPTIONAL feature for active performance measurement protocols that allows use of the Precision Time Protocol timestamp format defined in IEEE 1588v2, as an alternative to the Network Time Protocol that is currently used.

Extracted elements (15)

design-rationale §1

Converting PTP timestamps to NTP format in hardware requires additional resources such as microcode or processing elements. Allowing native PTP timestamp use in TWAMP/OWAMP simplifies data-plane hardware implementation.

measurement

design-rationale §1

PTP (IEEE 1588v2) allows sub-microsecond clock accuracy in the data plane, whereas NTP typically achieves only 5ms–100ms accuracy and synchronizes the control plane, not the data plane. Supporting PTP timestamps in TWAMP/OWAMP enables higher-precision IP performance measurements.

measurement, ntp

interoperability-note §2.3.1

For TWAMP Light mode, this document does not specify how the Session-Sender and Session-Reflector are informed of the timestamp format to use. Configuration is assumed as the mechanism to direct participants to the appropriate format per their capabilities.

measurement

normative-requirement §2 MUST

An endpoint (Session-Sender, Session-Receiver, or Session-Reflector) that supports this extension MUST be capable of interpreting both NTP and PTPv2 timestamp formats.

measurement

normative-requirement §2.3 MUST

As a result of the Z field semantics change, the Sender Error Estimate (TWAMP) or Send Error Estimate (OWAMP) and Receive Error Estimate SHOULD NOT be ignored and MUST be used when calculating delay and delay-variation metrics based on collected timestamps.

measurement

normative-requirement §2 MUST

If an endpoint does not support this extension, the value of the PTPv2 Timestamp flag MUST be 0, as it resides in a Must Be Zero field. A flag value of 0 indicates the node can use and interpret only NTP timestamp format.

measurement

normative-requirement §2 MAY

Implementations of OWAMP and/or TWAMP MAY provide a configuration knob to bypass the timestamp format negotiation process and use locally configured values instead.

measurement

normative-requirement §2.1 MUST

In OWAMP connection setup, if the Session-Receiver supports this extension, the Server MUST set the PTPv2 Timestamp flag to 1 in the Server Greeting message; otherwise the flag MUST be set to 0.

measurement

normative-requirement §2.1 MUST

In OWAMP, if the Control-Client receives a Server Greeting with PTPv2 Timestamp flag set to 1 and the Session-Sender can use PTPv2 format, the Control-Client MUST set the PTPv2 Timestamp flag to 1 in the Set-Up-Response and the Session-Sender MUST use PTPv2 timestamp format.

measurement

normative-requirement §2.2 MUST

In TWAMP connection setup, the Server MUST set the PTPv2 Timestamp flag to 1 in its greeting message if the Session-Reflector can produce PTPv2 timestamps; otherwise the flag MUST be set to 0.

measurement

normative-requirement §2.2 MUST

In TWAMP, if the PTPv2 Timestamp flag in the Set-Up-Response is 0, the Session-Reflector MUST use the NTP timestamp format. If the Session-Reflector does not support NTP format, the Server MUST close the TCP connection associated with the TWAMP-Control session.

measurement

normative-requirement §2.2 MUST

In TWAMP, the Control-Client MUST set the PTPv2 Timestamp flag to 1 in the Set-Up-Response Modes field if the Server advertised PTPv2 capability; otherwise it MUST be set to 0.

measurement

protocol-element §2.3

The Z field in the Error Estimate (defined in RFC 4656 Section 4.1.2) is repurposed as a 'Timestamp format' indicator: value 0 means NTP 64-bit format; value 1 means PTPv2-truncated format. This field signals the timestamp format used in a collected test packet.

measurement

registry §3

IANA registered a new 'PTPv2 Timestamp Capability' entry in the TWAMP-Modes registry (RFC 5618) at bit position 9, referencing Section 2 of RFC 8186.

registry, measurement

security-consideration §4

Use of a particular timestamp format (NTP or PTPv2) in a test session does not introduce any additional security threats beyond those already present in OWAMP (RFC 4656) and TWAMP (RFC 5357). The general security considerations for active measurement of live networks apply.

security, measurement