Network Performance

7 Best Tools for Testing WAN and VPN Throughput

Seven tools for measuring WAN and VPN throughput, from iPerf3 and qperf to Netperf, sockperf, Flent, speedtest-cli and LibreSpeed.

On this page
  1. Key takeaways
  2. Why WAN and VPN speeds differ
  3. Quick comparison
  4. The best tools for testing WAN and VPN throughput
  5. How we chose
  6. FAQ
  7. Sources

Key takeaways

  • A VPN and a WAN add overhead that changes the real throughput.
  • iPerf3 and Netperf measure the actual speed across the link.
  • qperf and sockperf add latency detail for the same path.
  • Flent shows how the link behaves when it is under load.
  • speedtest-cli and LibreSpeed give quick checks without extra setup.

Why WAN and VPN speeds differ

A link that is fast on the local network can be much slower over a wide area connection or through a VPN, because encryption, distance and the path all take their toll. The advertised speed rarely matches what a remote worker actually feels.

Measuring the real throughput across those links shows where the loss is. The tools below run a test between two points, with or without the VPN in the path, so you can compare and find the bottleneck. That comparison is usually the fastest way to prove whether the tunnel is the problem.

Quick comparison

ToolBest forStarting priceFree plan
iPerf3Link throughputNot includedNot included
qperfBandwidth checksNot includedNot included
NetperfNetwork benchmarksNot includedNot included
sockperfSocket benchmarksNot includedNot included
FlentLatency under loadNot includedNot included
speedtest-cliInternet speedNot includedNot included
LibreSpeedSelf hosted speed testNot includedNot included

The best tools for testing WAN and VPN throughput

1. iPerf3

  • Official site: https://github.com/esnet/iperf
  • Best for: Link throughput
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Simple; standard
  • Cons: Point to point; basic

iPerf3 measures throughput between two machines, which makes it the natural way to test a WAN or VPN path directly. Run it between a client and a server, with or without the tunnel, and the difference tells you the VPN's cost on that path.

Because it is simple and scriptable, iPerf3 is the standard for this kind of measurement. The numbers it gives are the real speed of the path, separate from any provider's claim, and the test takes only a minute to run.

2. qperf

  • Official site: https://github.com/linux-rdma/qperf
  • Best for: Bandwidth checks
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Many metrics; detailed
  • Cons: Less known; setup

qperf measures bandwidth and latency over a connection, reporting a range of metrics rather than a single number. For a WAN or VPN, that detail helps separate a bandwidth limit from a latency problem.

It is less commonly installed than iPerf3, but the richer output is useful when the simple test does not explain the slowdown. A link can have plenty of bandwidth and still feel slow because of latency.

3. Netperf

Netperf measures throughput and latency across a connection with several test types, and it has been a benchmark standard for years. It is useful for comparing a link before and after a change.

For a detailed look at a WAN or VPN path, Netperf's range of tests gives a fuller picture. Its age means the results are well understood and easy to compare over time.

4. sockperf

  • Official site: https://github.com/Mellanox/sockperf
  • Best for: Socket benchmarks
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Latency detail; percentiles
  • Cons: Niche; technical

sockperf measures socket level latency in detail, including percentiles, which matters for a VPN carrying many small interactive messages. An average hides the occasional slow message that makes a session feel laggy.

For latency sensitive work over a WAN, sockperf's detail is the right level of measurement. It is a technical, niche tool, but it answers the question no throughput test does.

5. Flent

  • Official site: https://github.com/tohojo/flent
  • Best for: Latency under load
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Load plus latency; graphs
  • Cons: Setup; niche

Flent measures latency while a link is under load, which reveals the bufferbloat that makes a VPN or WAN feel slow when someone is downloading. Its graphs make the behavior obvious.

For understanding why a connection is fine when idle and sluggish under load, Flent is the tool that shows it. The setup takes a little work, but the graph makes the diagnosis clear.

6. speedtest-cli

speedtest-cli runs an internet speed test from the command line, which is handy for a quick check of a remote worker's connection or a headless server. It measures against a third party server.

The result varies with the server and the moment, so it is a snapshot rather than a lab measurement. For a fast sanity check on a remote connection, however, it is the quickest tool available.

7. LibreSpeed

  • Official site: https://librespeed.org/
  • Best for: Self hosted speed test
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Self hosted; private
  • Cons: Setup; server needed

LibreSpeed is a speed test you host yourself, so the test runs against your own server rather than a third party. That makes the result specific to your path, including the VPN, and keeps the data in your own hands.

For a team that wants a repeatable, private speed test, LibreSpeed is the answer. The setup needs a server, but the result is a measurement of your network rather than someone else's, and it works from any browser.

How we chose

The list covers direct link tests and quick speed checks, since a WAN or VPN can be measured either way. Every tool is free and open source, and the heavier ones run on ordinary servers.

Preference went to tools that test the actual path between your machines, because that is the number that matters for remote work. The goal is to know where the speed goes when a link leaves the building. The path your workers actually use is the only path worth measuring.

FAQ

Why is my VPN slower than my connection?

A VPN adds encryption and routes traffic through a server, both of which cost speed. Measuring the path with and without the tunnel shows exactly how much the VPN adds. The result is often smaller than people expect, which points the finger elsewhere.

How do I test a VPN's throughput?

Run iPerf3 between a client and a server, first without the VPN and then through it, and compare. The difference is the tunnel's overhead on that path. Keeping everything else the same makes the comparison fair and the answer clear.

Does distance affect throughput?

Yes, longer paths add latency and can reduce throughput, especially for interactive traffic. A throughput test across the real distance is the honest measurement. Testing across the real distance is the only way to know what remote users feel.

Can I host my own speed test?

Yes, LibreSpeed lets you run a speed test on your own server, so the result reflects your path and stays private. This is useful for teams with remote workers. A private result also avoids the noise of a busy third party server.

Which tool should I start with?

Start with iPerf3 between your two machines, since it is simple and directly measures the link. Add Flent or sockperf when the problem is about latency under load.

Sources