Network Performance

7 Best Tools for Benchmarking WAN and Internet Links

Seven tools that benchmark WAN and internet links for throughput and loss, from iPerf3 and Netperf to qperf, Ostinato, TRex, pktgen and sockperf.

On this page
  1. Key takeaways
  2. Why WAN benchmarking matters
  3. Quick comparison
  4. The best WAN and internet link benchmarking tools
  5. How we chose
  6. FAQ
  7. Sources

Key takeaways

  • iPerf3 and Netperf measure throughput and loss between two endpoints.
  • qperf and sockperf add latency focused benchmarking to the mix.
  • Ostinato, TRex and pktgen generate high volume traffic for load testing.
  • A WAN benchmark needs a test point at both ends of the link.
  • Results show whether a link meets its promised speed and stability.

Why WAN benchmarking matters

A wide area link is a long, shared pipe, and its real performance rarely matches the number on the contract. Latency, loss, jitter and throughput all matter, and each can fall short independently. Benchmarking means generating known traffic between two ends of the link and measuring how well it moves.

The tools below split into two families. Throughput tools run a client and server at each end and report the rate, while traffic generators push packets at high volume to test how a link behaves under load. Together they confirm both the headline speed and the behavior when the pipe is full.

Quick comparison

ToolBest forStarting priceFree plan
iPerf3Standard throughput testsNot includedNot included
NetperfBroad performance metricsNot includedNot included
qperfLatency and bandwidth pairsNot includedNot included
OstinatoCustom traffic generationNot includedNot included
TRexHigh rate load testingNot includedNot included
pktgenDPDK packet generationNot includedNot included
sockperfSocket level benchmarkingNot includedNot included

1. iPerf3

  • Official site: https://github.com/esnet/iperf
  • Best for: Standard throughput tests
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Standard; many options
  • Cons: Two endpoints; CLI only

iPerf3 is the standard tool for measuring achievable throughput between two machines. One host runs as a server and the other as a client, and the tool streams TCP or UDP traffic while reporting the rate, loss and other details. Placing one end on each side of a WAN gives the link's real capacity.

Its options cover window sizes, parallel streams and test duration, which lets an operator model realistic traffic patterns. iPerf3 runs on nearly every platform and is usually the first benchmark applied to a new link. The command line interface is plain but complete.

2. Netperf

Netperf is a long standing benchmarking suite that can measure bulk transfer throughput, request response latency and other network metrics. Its tests cover TCP and UDP streams plus connection oriented request patterns, giving a fuller picture than a single throughput number. It also reports CPU load during the test.

The project is older and less actively polished than some successors, but it remains widely used and understood. For teams that want to benchmark several aspects of a WAN with one tool, Netperf's range is the draw. Its results feed into careful capacity planning.

3. qperf

  • Official site: https://github.com/linux-rdma/qperf
  • Best for: Latency and bandwidth pairs
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Many metrics; simple
  • Cons: Linux focused; less common

qperf is a Linux tool that measures both bandwidth and latency between two hosts in a single run. It supports a long list of metrics, from raw throughput to round trip time and connection setup costs, reported together for easy comparison. That breadth makes it useful for a quick full picture.

It follows the same client and server model as iPerf3 and needs software on both ends. qperf is less famous than its peers but very convenient when latency and throughput must be quoted together. The paired measurements keep the numbers consistent.

4. Ostinato

  • Official site: https://ostinato.org/
  • Best for: Custom traffic generation
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Packet level control; GUI
  • Cons: Needs hardware; complex

Ostinato is a traffic generator that lets a tester craft streams of packets at the level of individual fields and send them at a chosen rate. It can model many flows with different sizes and protocols, which makes it useful for testing how a link and its devices handle realistic, mixed traffic. A graphical editor builds the streams.

It requires capable hardware or a compatible adapter to hit high rates, and packet crafting is a specialist skill. Ostinato is aimed at engineers who need to push a specific traffic profile through a WAN and measure loss and latency under it. The control it offers is the whole point.

5. TRex

TRex is an open source traffic generator from Cisco that produces high rate, stateful traffic using DPDK for performance. It can simulate many clients and realistic flows, and it measures throughput and latency at levels far beyond what a simple tool can push. It is used to test network devices and links under serious load.

Running TRex needs suitable hardware and a working DPDK setup, so it is not a casual tool. For benchmarking a high capacity WAN or the equipment at its edges, TRex provides the volume and realism required. Its scripting lets a tester define exactly what traffic to generate.

6. pktgen

  • Official site: https://github.com/pktgen/Pktgen-DPDK
  • Best for: DPDK packet generation
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Very high rates; Lua control
  • Cons: Complex setup; niche

pktgen, in its Pktgen-DPDK form, is a packet generator built on DPDK that pushes packets at extremely high rates for testing links and network gear. It is driven through a Lua interface that defines the packets and the load, and it reports rates and counts in real time. The goal is raw volume.

It is a specialist tool that needs DPDK compatible hardware and a solid understanding of the environment to set up. pktgen is used in lab and vendor testing where pushing a link to its limit matters. For everyday throughput checks, lighter tools are a better fit.

7. sockperf

  • Official site: https://github.com/Mellanox/sockperf
  • Best for: Socket level benchmarking
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Latency detail; RDMA aware
  • Cons: Niche; Linux only

sockperf is a benchmarking tool that measures latency and throughput at the socket level, with support for both standard TCP and RDMA transports. It reports message rates, round trip times and percentile details, which gives a precise view of how quickly a link moves small messages. That granularity helps diagnose latency sensitive services.

It comes from Mellanox, now part of NVIDIA, and runs on Linux. sockperf is a niche tool aimed at network and HPC engineers rather than general users. For a WAN carrying many small, latency critical messages, its percentile reporting is exactly the right measurement.

How we chose

The list spans everyday throughput tools and serious traffic generators so both quick checks and full load tests are covered. Preference went to tools that measure loss and latency alongside raw throughput, since a WAN can fail in any of the three.

Each entry needs a test point at both ends of the link, which is the nature of WAN benchmarking. Together they cover a first sanity check as well as a full capacity test under load.

FAQ

What is the difference between throughput and bandwidth?

Bandwidth is the maximum capacity of a link, while throughput is what actually gets through under real conditions. Benchmarking measures throughput, which is always less than the theoretical maximum.

Why does a WAN benchmark need two endpoints?

A test point at each end generates and receives the traffic, so the measurement covers the whole link. A single endpoint can only test the path to a remote server.

Which tool is best for a quick check?

iPerf3 is the usual choice because it is simple, fast and available on every platform. qperf adds latency in the same run if both are needed.

When is a traffic generator needed instead of a throughput tool?

Traffic generators like Ostinato, TRex and pktgen are for pushing a link or device to its limit with custom, high volume traffic. Throughput tools are enough for a basic capacity check.

Can these tools measure packet loss?

Yes, most of them report loss during the test. iPerf3 shows it for UDP streams, and the traffic generators count lost packets under load.

Sources