rfc-6673

Round-Trip Packet Loss Metrics

A. Morton
date2012-08 streamIETF areaops wgippm statusPROPOSED STANDARD pages14 canonicalhttps://www.rfc-editor.org/rfc/rfc6673 doi10.17487/RFC6673
Many user applications (and the transport protocols that make them possible) require two-way communications. To assess this capability, and to achieve test system simplicity, round-trip loss measurements are frequently conducted in practice. The Two-Way Active Measurement Protocol specified in RFC 5357 establishes a round-trip loss measurement capability for the Internet. However, there is currently no round-trip packet loss metric specified according to the RFC 2330 framework. This memo adds round-trip loss to the set of IP Performance Metrics (IPPM). [STANDARDS-TRACK]

Extracted elements (26)

design-rationale §4.3

Round-trip loss is asserted to be symmetric: Type-P-Round-trip-Loss(Src->Dst->Src) = Type-P-Round-trip-Loss(Dst->Src->Dst). This simplification (following RFC 2681) introduces minor ambiguity but is justified by measurement efficiency.

measurement

design-rationale §1.1

Round-trip metrics are motivated by the near-universal need for two-way communication (e.g., TCP three-way handshake) and the practical simplicity of echo-based test systems; they provide a basis for inferring application performance more easily than one-way measurements.

measurement

design-rationale §1.1

Separate loss reporting is required because many measurement systems report statistics on a conditional delay distribution (conditioned on packet arrival), which excludes lost packets; lost packets must therefore be accounted for by a standardized loss metric.

measurement

interoperability-note §5.4

Reordering on the Src->Dst path causes misalignment of sequence numbers at Dst relative to the sender, complicating one-way inference from round-trip measurements; RFC 4737 reordering metrics and their implications were not available when RFC 2680 and RFC 2681 were published.

measurement

interoperability-note §7

The reverse-path (Dst->Src) sampling process in a round-trip measurement is conditional on successful delivery to Dst; when appreciable forward-path loss or delay variation occurs, the reverse-path sample is significantly distorted, making one-way reverse-path performance assessment invalid.

measurement

interoperability-note §8

TWAMP (RFC 5357) is cited as the reference measurement protocol for collecting all four timestamps needed to describe round-trip delay and remove processing time at the responding host; ICMP may be used if the issues in RFC 2681 Section 2.6 are alleviated.

measurement

normative-requirement §4.4 SHOULD

A responder serving typical round-trip packet loss testing SHOULD produce a response in 1 second or less; a responder unable to satisfy this requirement SHOULD log the fact so an operator can adjust load and priorities.

measurement

normative-requirement §4.4 SHOULD

Analysis of responder timestamps that finds responses are not generated in a timely fashion SHOULD result in operator notification, and the operator SHOULD suspend tests to the responder since it may be overloaded.

measurement

normative-requirement §8 MUST

Every received test packet MUST result in a responding packet, and the response MUST be generated as quickly as possible, implying interface buffers are serviced promptly and buffer discards are extremely rare.

measurement

normative-requirement §9.2 MUST

In passive measurement scenarios, since user payloads may be temporarily stored for length analysis, suitable precautions MUST be taken to keep payload information safe and confidential; a hashing function is recommended for payload comparisons.

measurement, privacy, security

normative-requirement §8 MUST

Measurement equipment MUST be calibrated according to RFC 2679 Section 3.7.3 under a representative measurement load; both unexpected packet discards and systematic/random errors MUST be recorded.

measurement

normative-requirement §5.4 MUST

Measurement implementations MUST address the possibility of packet reordering and avoid related errors (e.g., prematurely declaring loss when a sequence gap is observed) in their processes.

measurement

normative-requirement §8 MUST

Prior to conducting measurement, the participating hosts MUST be configured to send and receive test packets of the chosen Type-P.

measurement

normative-requirement §3.2 MUST

T0, the start time for Periodic Streams, MUST be selected at random from the interval [T, T+dT].

measurement

normative-requirement §5 MUST

When a non-standard sample process is used, its details MUST be reported with the measurement results.

measurement

normative-requirement §7 MUST

When deriving one-way metrics from round-trip measurements, implementations MUST address the possible outcome of packet reordering causing misalignment of sequence numbers at the Dst.

measurement

protocol-element §3.2

Common metric parameters include Src and Dst (IP addresses), T and Tf (test interval bounds), Tmax (maximum waiting time to distinguish loss from extreme delay), M (packets sent), N (packets received), TstampSrc and TstampDst (wire-times at each measurement point), and Type-P (packet type affecting network treatment).

measurement

protocol-element §4.3

Each Type-P-Round-trip-Loss singleton is represented as a pair (TstampSrc, L), where TstampSrc is the wire-time the packet left Src and L is 0 (success) or 1 (loss).

measurement

protocol-element §3.4

Metric units for a single packet's loss performance are logical values: 0 for successful transmission and 1 for packet loss. Time units follow RFC 2330 conventions.

measurement

protocol-element §4.3

Type-P-Round-trip-Loss is the singleton metric: a binary value (0 or 1) where 0 indicates the packet completed the round-trip from Src to Dst and back before TstampSrc + Tmax, and 1 indicates the reflected packet was not received within that window.

measurement

protocol-element §6.1

Type-P-Round-trip-Loss-<Sample>-Ratio is the primary statistic: the average of all L values in the stream, expressed in units of lost packets per round-trip transmissions attempted. It is undefined if the sample is empty.

measurement

protocol-element §5.3

Type-P-Round-trip-Loss-<Sample>-Stream is a sequence of (TstampSrc, L) pairs obtained from a Poisson or Periodic sampling process; the variable <Sample> SHALL be replaced with the process name used.

measurement

registry §10

No IANA action is requested. The IANA IPPM Metrics Registry previously used for IETF-defined metrics was declared obsolete in RFC 6248; the metrics in this document may be considered for future registration but are not registered at this time.

registry, measurement

security-consideration §9.2

Active measurement does not threaten user data confidentiality since it generates synthetic test packets rather than sampling user traffic. Passive measurement must restrict attention to headers of interest and protect any temporarily stored payload data.

security, privacy, measurement

security-consideration §9.3 MAY

An adversary who identifies test packets can manipulate their processing (increasing or decreasing delay) to distort measurements, or inject additional packets that appear to be part of the sample. Authentication or encryption (e.g., digital signatures as in RFC 5357) MAY be used to guard against injected traffic attacks.

security, measurement

security-consideration §9.1

The measurement method — sending packet streams between hosts through intervening networks — could be abused for denial-of-service attacks against the destination or intervening networks. Bilateral or multilateral agreements on timing, size, and frequency of measurements are recommended.

security, measurement