Latency, jitter and packet loss
Where delay comes from
One-way latency can include propagation (travel time), serialization (putting bits onto a link), processing and queueing. For one modeled 100 Mb/s link, 1500 counted bytes serialize in 1500 × 8 / 100,000,000 = 0.12 ms. Add 4 ms propagation, 0.3 ms processing and 2 ms queueing: 6.42 ms. This is a simplified single-link model; real link overhead and multiple hops must be included when relevant.
One-way delay and RTT
Round-trip time includes travel in both directions and may include responder delay depending on the measurement. If the forward delay is 8 ms, return delay 20 ms and response processing 2 ms, the modeled RTT is 30 ms, not twice the forward delay. One-way measurements need calibrated clocks and known uncertainty (Chapter 43). Ping RTT is not an HTTP request duration; name resolution, connection setup, TLS, server work and response transfer may also matter.
Variation and loss
Jitter is used for several delay-variation metrics; define yours. For received probes with consecutive send IDs and one-way delays 10, 14, 11, 19 ms, our teaching metric is mean absolute successive delay difference: (4 + 3 + 8)/3 = 5 ms. It is not the RTP estimator or the signed IP packet delay variation in RFC 3393. In a separate experiment, 200 probes are sent and 194 distinct IDs arrive before the declared timeout. Loss ratio = 6/200 = 3%. Late packets, duplicate records and capture drops need separate handling; no received samples means delay variation is undefined, not zero.
Percentiles and service targets
Consider the sorted application latency sample 10, 12, 12, 15, 51 ms. Mean = 20 ms; using nearest-rank p95 (rank ceil(0.95 × 5) = 5), p95 = 51 ms. A fictional SLA worksheet requires p95 ≤ 40 ms and loss ≤ 1% in each declared measurement window. With these latency samples and the separate 3% loss sample, both example targets fail. In practice define eligible requests, observation period, failure treatment, percentile method, minimum sample count and exclusions. Five observations are illustrative, not robust SLA evidence.
Identify queues without guessing
If latency rises only under load, queueing is a hypothesis, not proof. Compare idle and loaded RTT, queue occupancy and drops, CPU, packet size, direction and application timers. Record timestamps and repeat comparable tests. A high average can hide spikes, while a good average can coexist with a poor p95. Use the manual task to report both a metric and the limits of the evidence.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Latency, jitter and packet loss Quiz
Interpret synthetic performance evidence and its limits.
Serialize 1000 counted bytes on a 10 Mb/s link. What is the interval?
Forward delay is 5 ms, return 15 ms, response processing 3 ms. What is modeled RTT?
Of 80 sent probes, 76 distinct IDs arrive by the deadline. What is loss?
For delays 8, 12, 10 ms, what is mean absolute successive difference?
Sorted delays are 2, 4, 6, 8, 30 ms. Nearest-rank p95 equals what?