Networking handbook · Chapter 23

Latency and packet loss

A report that says ‘30 milliseconds and one percent loss’ is incomplete until you know what traveled, in which direction, during what interval and how the receiver treated late arrivals.

In this guide14 sections

Introduction

A report that says ‘30 milliseconds and one percent loss’ is incomplete until you know what traveled, in which direction, during what interval and how the receiver treated late arrivals.

Formula and calculation

Round-trip time
RTT = forward-path delay + return-path delay + endpoint turnaround

An RTT measurement includes both directions and any processing between request and response. Dividing by two estimates one-way delay only when the path is approximately symmetric and turnaround is negligible.

forward-path delay · time
travel and queueing toward the destination
return-path delay · time
travel and queueing back to the sender

Where a delay comes from

Serialization puts the packet's bits onto a link. Propagation carries the signal across distance. Queueing holds a packet while other traffic is served, and each device contributes processing time. At 100 Mbit/s, serializing 1500 bytes takes 0.12 ms before any propagation or queueing.

One-way delay requires timestamps with a known clock relationship at the two endpoints. A round trip can be timed by a single clock. It combines the forward and return paths and may include time spent producing the reply.

Summarize a distribution

A median describes a typical sample. A high percentile highlights slow samples that disappear in an average. Compare measurements of the same traffic class, size and interval. Specify the percentile method when samples are sparse.

Delay variation describes differences among samples. A steady 40 ms and a sequence alternating between 10 and 70 ms can share an average while imposing very different buffering demands on a call.

Choose a denominator for loss

Use lost packets divided by sent packets for the specified direction and observation window. Define a waiting deadline and account for duplicate or reordered sequence numbers. A request with no reply could have lost its request, its reply, or missed the deadline.

A few consecutive losses can interrupt audio more severely than the same number spaced through a long session. Keep burst lengths and times when investigating brief interruptions.

Diagram

  1. Client sends at 0 ms
  2. Server receives at 12 ms
  3. Server replies at 15 ms
  4. Client receives at 36 ms
With aligned clocks the return path takes 21 ms. The client's 36 ms includes three milliseconds at the server.

Worked examples

Interpret a sample without hiding missing packets

  1. An endpoint sends 400 numbered packets. The receiving log contains 394 unique sequence numbers by the agreed deadline.
  2. Six missing packets out of 400 gives 1.5% observed one-way loss. Duplicate arrivals would count once.
  3. Summarize the delay of the 394 arrivals separately. Assigning zero milliseconds to the missing packets would pull the average down precisely when delivery got worse.

Latency and RTT Calculator: Interpret a 48 ms request–reply interval

  1. Treat the 48 ms interval as a round trip with negligible turnaround. Under the symmetric model, each direction takes 48 ÷ 2 = 24 ms.
  2. Check a second possible path budget: a forward delay of 12 ms and a reverse delay of 36 ms produce exactly the same total.
  3. If server processing accounts for 8 ms of the original total, the two path delays sum to 40 ms. Assuming equality would then give 20 ms per direction.

Reference table

Latency and packet loss reference
MetricRequired evidenceInterpretation
Round-trip timeSend and reply timesTotal exchange delay
One-way delayAligned sender and receiver clocksDelay in one direction
Loss fractionSent and missing sequence countsDelivery within deadline
Delay variationSeveral comparable delay samplesChange between delays

Configuration example

  • Record endpoint clocks, packet size, direction and deadline with the sample.
  • Choose a time window that includes the user's reported event. Retain successful samples and missing counts separately.

Common mistakes

  • Taking half an RTT as a measured forward delay when paths or processing are asymmetric.
  • Comparing a busy-period measurement with an idle baseline from another access network without recording the change in conditions.

Frequently asked questions

Can high throughput coexist with poor call quality?

Yes. A large buffered transfer can keep a link busy while smaller time-sensitive packets experience intermittent queueing or loss.

Does one missing reply prove a broken router?

A missing reply identifies an incomplete exchange. Endpoint logs, application behavior and the timing of other events help localize where delivery failed.

Is RTT the same as one-way latency?

No. Round-trip time measures an exchange to a destination and back. One-way delay measures a single direction and requires synchronized measurement endpoints for reliable comparison.

Does low average latency rule out a network problem?

No. Tail latency, jitter, bursts of loss, and application delays can still cause poor performance even when the average round-trip time is low.

Can packet loss happen without a broken cable?

Yes. Congestion, wireless interference, overloaded devices, policy, or path changes can drop packets. Correlate loss with time, location, and traffic conditions.

Does a lost ping always mean application traffic is lost?

Not necessarily. ICMP can be deprioritized or filtered separately. Compare with the target application's transport and service behavior.

What is jitter?

Jitter describes variation in packet delay over time. Real-time applications can be affected by that variation even when average latency appears acceptable.

Can queueing increase latency without packet loss?

Yes. A congested queue can hold packets longer before forwarding. If buffers fill, additional packets may then be dropped.

Why can loss be more visible to a real-time call than a file download?

A real-time stream may not have time to retransmit late media, while a reliable transfer can recover missing data at the cost of delay and throughput.

Should I compare RTT numbers from different times as if they were fixed?

No. Routes, congestion, wireless conditions, and remote load can change. Record timestamps and compare repeated measurements under similar conditions.

What is the relationship between latency and throughput?

They measure different properties. A path can have high throughput and high delay, or low delay and limited throughput; TCP performance depends on both capacity and round-trip time.

What is bufferbloat?

It is excessive delay caused by large queues that fill under load. The link may remain busy and avoid immediate loss while interactive traffic experiences long waits.

Can a packet be lost only on one direction?

Yes. Forward and return paths, radio conditions, queues, and policies can differ. A one-way capture or measurement may reveal behavior that a single RTT hides.

How does jitter affect voice or video?

Variation in packet arrival time can exceed the application's playback buffer. The receiver may then delay, conceal, or discard late media even when average delay is acceptable.

Should every measured packet loss percentage be treated as user-visible?

Not automatically. Loss duration, burstiness, protocol recovery, measurement method, and application tolerance matter. Compare repeated tests with actual service behavior.

Further learning and references