Network Performance: Latency, Throughput, Jitter & Loss
Learn to measure link capacity, throughput, delay variation, packet loss, and response time with ping, iperf3, and curl.
Link capacity, throughput, RTT, packet loss, and application response time answer different questions. This article shows how to measure each on a defined path, read output from `ping`, `iperf3`, and `curl`, and avoid treating a transport symptom as the cause of every slow request.
Network Performance: Latency, Throughput, Jitter & Loss
Introduction
A link rated at 1 Gbps can still feel slow. That number says little about a small request waiting on DNS, a queue, or a distant service. To compare measurements, record where they start and stop, what traffic they cover, and how long you sampled.
The measurements that describe a network
Link capacity, throughput, and goodput
Link capacity is the maximum bit rate of a particular link under stated conditions. People often call it bandwidth. A home plan advertised at 500 Mbps describes a nominal access-link rate, not an end-to-end promise that every application will transfer data at that speed. Shared links, protocol overhead, Wi-Fi interference, remote server limits, and competing traffic all affect the rate a flow can use.
Throughput is the rate actually delivered between named measurement points over a stated interval. Say what the tool counts: an interface counter includes traffic from other processes and may count link-layer bytes, while a single iperf3 test reports its own flow. File sizes are often shown in bytes; 8 bits make 1 byte. A payload transfer at 80 MB/s is 640 Mbps of goodput; the link carries more bits once protocol headers and retransmissions are counted.
Application goodput is useful application data delivered per second, excluding retransmissions and protocol headers. Throughput and goodput can differ when loss causes retransmissions or the protocol spends capacity on control traffic.
A large capacity number does not guarantee a fast small request. A link can have plenty of capacity and still have high latency. A single TCP flow may also take time to ramp up to the rate available to it.
Latency and RTT
One-way latency is the time between a packet leaving a defined measurement point at the sender and arriving at a defined point at the receiver. Comparing timestamps from separate hosts requires synchronized clocks; document the clock source and expected error. Round-trip time (RTT) starts when a probe leaves the source and ends when its reply reaches the same source. It includes both directions of the path and whatever work the responder does. Report the probe type and endpoints, usually in milliseconds (ms).
RTT includes more than distance. Routing, queueing, packet processing, and the responder’s handling of the probe all contribute. ICMP, TCP, and application requests can take different paths or receive different treatment, so an RTT sample describes that probe and path. It is not a universal property of every request.
Latency affects how quickly an interaction can start and how long dependent request chains take. If a page makes six serial requests and each spends 40 ms waiting on the network, those waits alone can add about 240 ms. Parallel requests overlap some of their wait time; serial dependencies do not.
Jitter
Jitter is a loose term for changing packet delay. A voice packet arriving in 25 ms followed by one in 90 ms is harder to play smoothly than packets arriving at a steady 55 ms, even if their average delay is similar. The IETF’s more precise term is IP packet delay variation (IPDV): for a selected pair of packets, subtract one packet’s one-way delay from the other’s. See RFC 3393.
IPDV is one packet-pair value; a dashboard needs a stated summary statistic. Name the packet-pair selection, direction, and time window. For example, report the 95th percentile of absolute IPDV across a one-minute stream. That one-way measurement still depends on usable sender and receiver clocks. Real-time media may buffer packets to absorb delay variation. A larger buffer can smooth playback, but it also adds delay.
Packet loss
Packet loss is the share of packets in a defined test stream that fail to arrive within its measurement window. State the sender, receiver, packet type, interval, and any timeout used to classify a packet as lost. A ping summary counts missing echo replies, so a request or its reply may have been dropped. One lost response out of 100 probes is 1% for that sample, but it is too little evidence to characterize a busy production path.
The effect of loss depends on the transport and the application. TCP retransmits missing data to preserve its byte stream; recovery can add delay and reduce its sending rate. QUIC also retransmits data for reliable streams, even though it runs over UDP. A real-time UDP application may skip a packet that arrives after its playback deadline, conceal a missing frame, or use its own repair method. Delay variation matters when packets miss an application’s deadline or exceed its jitter buffer. Drops can also happen at the receiving host when it cannot keep up, so compare network counters with host and application metrics.
Why tail percentiles matter
Averages hide the slow end of a distribution. Suppose 990 requests finish in 30 ms and 10 take 900 ms. The average is 38.7 ms, which sounds fine until a user receives one of the slow requests.
The p50 is the median: half of observations are at or below it. p95 is the value at or below which 95% of observations fall. p99 leaves the slowest 1% above it. Percentiles help answer how often users encounter a delay, but they depend on the sample size and time window. A p99 from 20 observations is not a reliable picture of the slowest one percent.
Track percentiles for the same request class and window. Combining a fast health check with a slow report-generation endpoint can make either distribution hard to understand. For critical services, pair latency percentiles with request volume, error rate, and saturation indicators.
Network metrics are not application response time
A network measurement usually describes one segment or a probe exchange. Application response time is elapsed time at a chosen client boundary, from request start to a defined completion point. For an API call, that might be when the full response body arrives. For a web page, it might be when the page becomes usable. The measurement can include DNS, connection setup, TLS, network waits, server queues and code, database calls, and response transfer; browser rendering belongs in the metric only when the chosen endpoint includes it.
For example, a 25 ms RTT does not mean an API request takes 25 ms. The request may wait 120 ms in a server queue, spend 80 ms on a database query, and transfer a large response over a slow link. Conversely, a high RTT may have little effect on a cached local interaction.
Use distributed traces or client timing to break a request into spans. Compare the network segment with server processing and downstream dependencies before changing network settings. This pairs naturally with the separate guide to timeouts and network failures, which covers deadlines and safe retry behavior.
A repeatable measurement example
These commands assume Ubuntu 24.04 LTS with Linux iputils, iperf3, and curl installed. Run them on endpoints and networks you own or have permission to test. Keep the client and server locations, interface, protocol, and test conditions the same between runs. Record whether the link was idle or under load; otherwise, you may compare different workloads by accident.
On the receiving host, start an iperf3 server:
iperf3 --server
From the sending host, run this TCP test. It warms up for 10 seconds, then measures for 60 seconds with four parallel streams and prints five-second intervals:
iperf3 --client 203.0.113.20 --time 60 --omit 10 --parallel 4 --interval 5 --json
The example address is reserved for documentation; replace it with your own test endpoint. Run the same test three times and report each result, plus the median and range. Three runs show some run-to-run variation, but they are not enough for a precise confidence interval. A result such as 82 Mbits/sec is throughput for those four test streams, not link capacity or application response time. Four streams can add substantial load, so use a quiet test window and avoid running them during an incident. The --omit option runs a pre-test and leaves its statistics out of the measured intervals; see the iperf3 manual.
For a basic RTT and loss sample from Ubuntu, send 100 ICMP probes to the same endpoint:
ping -c 100 203.0.113.20
This reports RTT for the ICMP exchange and missing echo replies. It does not isolate one-way latency, prove an HTTPS API is healthy, measure throughput, or represent every route and traffic class. ICMP may be rate-limited or deprioritized. A 100-probe sample is a starting point, not a production estimate; repeat it at different times or use application telemetry to understand the affected path.
To measure a request from the client side, make repeated calls to the endpoint users actually report as slow. This Ubuntu shell example makes 20 sequential requests, one second apart:
for i in $(seq 1 20); do
curl -sS -o /dev/null -w 'dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} first_byte=%{time_starttransfer} total=%{time_total}\n' \
https://api.example.com/health
sleep 1
done
The curl timings are cumulative from the start of each request: time_namelookup ends after DNS resolution, time_connect after TCP setup, time_appconnect after TLS setup, time_starttransfer at the first response byte, and time_total after the body finishes. Subtract adjacent values to estimate the time spent between those milestones. time_total is client-observed response time, including network transit and server processing. Twenty samples help with a quick check, but they are too few for a stable p95 or p99; collect a larger representative sample before drawing conclusions. A health endpoint may also avoid the work that makes a user request slow.
A simplified request path helps place the measurements:
graph LR
C[Client] --> D[DNS lookup]
D --> T[TCP and TLS setup]
T --> N[Network transit]
N --> Q[Server queue]
Q --> A[Application and dependencies]
A --> R[Response transfer]
How the metrics interact
These measurements often move together, but none can substitute for another.
- High latency, high bandwidth: large transfers may complete quickly once they start, while small serial exchanges still feel slow. Reduce round trips, reuse connections, or move work closer to users.
- Low latency, low throughput: a constrained link, congestion, a slow sender or receiver, or TCP flow limits may cap transfer rate. Measure with a sustained test and inspect endpoint CPU and socket state.
- Loss and throughput: TCP retransmissions consume time and capacity. Even modest loss can sharply reduce throughput on long-distance paths because recovery takes longer.
- Jitter and media quality: a low average delay can coexist with bursts of late packets. Check delay variation and loss over the same interval as user reports.
- Queueing under load: traffic can fill buffers, causing RTT to rise while throughput approaches the link’s capacity. This is often called bufferbloat. Compare idle and loaded latency rather than judging the line by peak Mbps alone.
A useful diagnosis asks which metric changed, for which users and path, and whether it changed before or after the application became slow.
When to use
Use network performance measurements when requests differ by location, transfer size, protocol, or time of day; when audio/video quality degrades; or when a service shows rising latency without a corresponding increase in server work. A controlled comparison between a nearby and distant endpoint can help distinguish a local access problem from a broader path issue.
When not to use
Do not use a single ping or one speed test as a release gate for an application. Avoid broad throughput tests on shared production links unless their traffic impact is understood. For user-facing latency, prefer real request timings and traces. For capacity planning, combine sustained tests with traffic profiles and endpoint limits.
Trade-off table
| Measurement approach | Useful for | Limitations |
|---|---|---|
| ICMP ping | A quick reachability and approximate RTT sample | May be blocked or deprioritized; does not exercise application processing or prove throughput. |
Controlled iperf3 test |
Sustained throughput between authorized endpoints | Generates load; a test flow may not match user traffic, path, or protocol. |
| Synthetic application request | Repeatable DNS, connection, and response timing | Covers only the chosen endpoint and request path; health checks may be cheaper than real work. |
| Real-user timing and tracing | User impact and request phase attribution | Needs sufficient volume, careful privacy controls, and consistent instrumentation. |
Production failure scenarios
| Scenario | What operators may see | Useful response |
|---|---|---|
| Wi-Fi interference or weak signal | Retries, variable RTT, low throughput for users on one access network | Compare wired and wireless samples; inspect access point channel use and signal quality; offer a wired path for critical equipment. |
| Congested uplink | Throughput plateaus, RTT rises during upload, interactive calls become choppy | Measure under load; shape or prioritize traffic where appropriate; reduce competing transfers and review access capacity. |
| Long-distance packet loss | TCP throughput falls despite a high-capacity link; p99 transfer time grows | Compare paths and endpoints, inspect retransmissions, and work with the network provider on routing or transport issues. |
| DNS or connection setup delay | High time-to-first-byte before server work begins; repeated connections are slow | Measure DNS, TCP, and TLS phases separately; use connection reuse and verify resolver health. |
| Server saturation mistaken for network trouble | Ping remains stable while API response time and server queue time rise | Trace requests, inspect CPU, worker queues, and dependency spans; scale or fix the saturated component. |
| UDP media bursts arrive late | Call quality drops while average RTT looks acceptable | Track jitter and loss over short windows; tune the jitter buffer to the delay budget and investigate burst congestion. |
If the measurements show the application is waiting on a dependency or a response arrives after the caller’s deadline, set bounded timeouts and handle the failure deliberately. Retries can add traffic during congestion, so they need the safeguards described in the linked failure guide.
Observability checklist
- Record client location, network type, destination, protocol, and test window alongside measurements.
- Track p50, p95, and p99 latency with sufficient sample volume; keep endpoint classes separate.
- Measure packet loss and jitter in windows short enough to expose bursts; daily averages can hide them.
- Compare idle and loaded RTT to find queueing delay.
- Separate DNS, connection setup, time to first byte, server processing, and full response time.
- Pair throughput and retransmission data with host CPU, memory, socket, and interface counters.
- Use synthetic probes for consistent baselines and real-user monitoring for actual user paths.
- Alert on sustained user impact and error-budget burn, not one noisy probe.
- Keep test traffic bounded and label it so capacity tests do not masquerade as user demand.
Security and privacy notes
Only run throughput tests between systems you own or have authorization to test. High-rate tests can consume bandwidth, fill queues, or look like a denial-of-service attempt. Do not expose an iperf3 server broadly; restrict access with firewall rules and shut it down when the test ends. Follow your organization’s data retention and privacy requirements for telemetry, especially when measurements can be associated with a person, device, or location.
Measurement endpoints can reveal network topology, addresses, and usage patterns. Limit access to detailed telemetry, avoid storing unnecessary client identifiers, and redact tokens or query strings from request logs. Use TLS for application probes that carry credentials, and do not put secrets in shell history or shared command output.
Common pitfalls
- Comparing Mbps with MB/s without converting bits to bytes.
- Treating advertised bandwidth as delivered throughput.
- Calling RTT
latencywithout saying whether the measurement is one-way or round-trip. - Trusting averages while ignoring p95 and p99 behavior.
- Treating a small ping sample as proof that an application path is healthy.
- Testing from a different region, network, or protocol than the affected users.
- Running a speed test that saturates the same link being investigated.
- Assuming every packet loss counter describes loss on the external network; drops can occur at the host or interface.
- Comparing jitter numbers from tools that use different definitions.
- Blaming the network before separating server queues, database work, and response size.
Quick recap checklist
- Bandwidth is a link’s capacity; throughput is the rate a test or transfer actually achieves.
- RTT is a round-trip measurement and includes path plus endpoint behavior.
- Jitter is delay variation; packet loss is data that did not arrive successfully.
- TCP loss recovery can lower throughput, while late UDP packets may harm real-time media directly.
- p95 and p99 reveal slow requests that an average can hide.
- Network metrics describe a segment; application response time covers the whole operation.
- Pair probes with realistic application timings and controlled throughput tests.
Interview questions
Bandwidth is the maximum capacity of a link under stated conditions. Throughput is the rate actually delivered during a measurement. Congestion, protocol overhead, endpoint limits, and loss can keep throughput below bandwidth.
Ping measures an ICMP probe's round trip to one destination. An application request can use a different protocol or route and also spends time in DNS, TLS, server queues, application code, databases, and response transfer. Use request timings or traces to find the slow phase.
TCP retransmits data that does not arrive and adjusts its sending rate when it detects congestion. Retransmissions and recovery add delay and consume capacity. The effect tends to be worse when the round trip is long because feedback takes longer to return.
An average can look healthy while a smaller share of users waits much longer. Percentiles show where the slow tail begins. Interpret them with the sample count, time window, endpoint type, and request volume so a sparse sample does not create a false conclusion.
Expected answer points:
- Throughput measures the data rate delivered during an interval and can include protocol overhead or retransmitted data.
- Goodput counts useful application data delivered per second.
- A flow can have high throughput but lower goodput when loss and protocol overhead consume capacity.
Expected answer points:
- It holds arriving packets briefly so media can be played at a steadier pace despite variable packet delay.
- A larger buffer can absorb more variation but adds playback delay.
- Choose a buffer that fits the application's delay budget and observe late packets and loss alongside jitter.
Expected answer points:
- Queueing may be adding delay as buffers fill; this is commonly called bufferbloat.
- Compare idle and loaded RTT while measuring throughput and queue or interface drops.
- Check whether the rise appears on the access link, a shared uplink, or an endpoint before changing traffic shaping.
Expected answer points:
- Measure DNS, connection, TLS, time to first byte, and total response time separately.
- Use a distributed trace to compare network spans with server queues and downstream dependency work.
- Compare from the affected client path; a stable ping alone does not rule out application-path delay.
Further Reading
- Network Latency, Timeouts, and Failure explains caller deadlines, bounded retries, and failure handling.
- Network Ports and Firewalls covers ports, listening sockets, and network reachability.
- RFC 3393: IP Packet Delay Variation Metric for IP Performance Metrics (IPPM) defines a framework for packet delay variation.
- RFC 2680: A One-Way Packet Loss Metric for IPPM describes a metric for one-way packet loss.
- iperf3 documentation describes the network testing tool used in the examples.
Conclusion
Network performance is not one number. Bandwidth describes capacity, throughput describes delivered rate, RTT describes a round trip, jitter captures delay variation, and loss records packets that did not arrive. Tail percentiles show how often requests fall into the slow end of the distribution.
Measure from the affected path, use realistic traffic, and compare network timings with application traces. A ping is a useful clue; it is not a performance verdict.
Category
Related Posts
CDN Deep Dive: Content Delivery Networks Explained
Follow a CDN request through routing, cache keys, misses, origin fetches, and purges. Learn how HTTP freshness and provider routing shape the result.
Network Observability: Signals for Reliable Services
Track network health across hosts, DNS, paths, proxies, and requests. Learn which signals help diagnose failures without confusing telemetry with service SLOs.
Packet Capture and Network Troubleshooting: Layered Workflow
Use a layered workflow to diagnose DNS, route, TCP, TLS, and HTTP failures with ping, curl, tcpdump, and Wireshark, then collect useful incident evidence.