7 Best Tools for Testing Network Bandwidth and Throughput
Seven tools that measure network bandwidth and throughput, from iPerf3 and qperf to sockperf, Netperf, Flent, TRex and speedtest-cli.
On this page
Key takeaways
- Throughput is how much data a link actually moves, not what it promises.
- iPerf3 and Netperf measure throughput between two machines directly.
- qperf and sockperf add latency and socket level detail.
- Flent tests how a link behaves under load, including bufferbloat.
- TRex and speedtest-cli cover high speed labs and quick internet checks.
Why measure bandwidth yourself
An internet plan advertises a speed, but the real number depends on your equipment, the path and the time of day. The only way to know what a link actually delivers is to measure it, and to do that you need a test you control.
The tools below send known traffic between two points and report what got through. Some are quick one line checks, and some push a link to its limits, but all of them replace guessing with a measurement you can repeat. A repeatable measurement is also a baseline you can compare against after any change.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| iPerf3 | Throughput testing | Not included | Not included |
| qperf | Latency and bandwidth | Not included | Not included |
| sockperf | Socket benchmarks | Not included | Not included |
| Netperf | Network benchmarks | Not included | Not included |
| Flent | Bufferbloat testing | Not included | Not included |
| TRex | High speed traffic | Not included | Not included |
| speedtest-cli | Internet speed test | Not included | Not included |
The best tools for testing network bandwidth and throughput
1. iPerf3
- Official site: https://github.com/esnet/iperf
- Best for: Throughput testing
- Starting price: Not included
- Free plan: Not included
- Pros: Simple; standard
- Cons: Point to point; basic
iPerf3 measures the throughput between two machines by sending controlled traffic and reporting the speed achieved in each direction. It is the standard quick test for whether a link delivers what it should.
Because it is simple and available almost everywhere, iPerf3 is usually the first tool used when a connection feels slow. Running it in both directions and over a few settings gives a clear, trustworthy picture of the link's real capacity, separate from any marketing number.
2. qperf
- Official site: https://github.com/linux-rdma/qperf
- Best for: Latency and bandwidth
- Starting price: Not included
- Free plan: Not included
- Pros: Many metrics; detailed
- Cons: Less known; setup
qperf measures both bandwidth and latency between two systems, and it can report a wide range of metrics beyond a simple transfer. It is useful when you need a fuller picture than a single throughput number.
For teams tuning high performance networks, qperf's detailed results are valuable. It is less widely known than iPerf3, but the extra metrics make it worth reaching for when the basics do not explain a problem.
3. 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 performance with a focus on latency, reporting details such as percentiles rather than a single average. That matters for applications that exchange many small messages.
For latency sensitive work, an average hides the occasional slow message that hurts users, and sockperf surfaces those. It is a niche, technical tool, but for that job it is the right instrument.
4. Netperf
- Official site: https://github.com/HewlettPackard/netperf
- Best for: Network benchmarks
- Starting price: Not included
- Free plan: Not included
- Pros: Established; many tests
- Cons: Older; setup
Netperf is a long established tool that measures throughput, latency and other metrics between two machines, with several test types beyond a plain transfer. Its age means the results are well understood and easy to compare.
For a broad set of network measurements, Netperf is dependable and well documented. It takes a little setup, but the range of tests it offers keeps it useful for serious benchmarking.
5. Flent
- Official site: https://github.com/tohojo/flent
- Best for: Bufferbloat testing
- Starting price: Not included
- Free plan: Not included
- Pros: Load plus latency; graphs
- Cons: Setup; niche
Flent runs a combination of load and latency tests at the same time, which reveals bufferbloat, the lag that appears when a link is saturated. It produces graphs that make the behavior easy to see.
For diagnosing why a connection feels slow under load even when it is fast when idle, Flent is the tool that answers it. The setup takes a little work, but the graphs make the problem obvious.
6. TRex
- Official site: https://github.com/cisco-system-traffic-generator/trex-core
- Best for: High speed traffic
- Starting price: Not included
- Free plan: Not included
- Pros: Realistic; high speed
- Cons: Complex; hardware needs
TRex generates high speed, stateful traffic that resembles real application flows, used to test switches, routers and network functions at their limits. It can push traffic rates that simple tools cannot reach.
For a lab that needs to know what a device truly handles, TRex provides realistic load rather than raw packets. It is complex to set up and needs capable hardware, but that realism is exactly what infrastructure testing requires.
7. speedtest-cli
- Official site: https://github.com/sivel/speedtest-cli
- Best for: Internet speed test
- Starting price: Not included
- Free plan: Not included
- Pros: Quick; no browser
- Cons: Third party servers; variable
speedtest-cli runs an internet speed test from the command line, measuring download and upload against a remote server. It is handy for checking a connection from a headless machine or a script.
The result depends on the chosen server and the moment, so it is a snapshot rather than a lab measurement. For a quick check of an internet link, however, it is the fastest tool available.
How we chose
The list covers direct point to point tests, latency focused tools and high speed generators, since different questions need different measurements. Every tool is free and open source.
Preference went to tools that give a repeatable number, because a measurement you cannot reproduce does not tell you much. The goal is to know what a link actually delivers before users notice it does not. Numbers measured the same way twice are the only kind you can argue with confidence.
FAQ
What is the difference between bandwidth and throughput?
Bandwidth is the theoretical capacity of a link, while throughput is how much data actually moves in practice. Throughput is the number that matters, because it includes the real world overhead. Most slowdowns are a gap between the two, not a failure of the line itself.
Why do I need two machines to test?
Because a throughput test sends traffic from one machine and measures it at the other, so the result reflects the path between them. A single machine cannot measure a link it is only one end of. Two machines you control are also the cleanest test, with no third party in the middle.
Can I test over the internet with these tools?
You can run iPerf3 or Netperf between two internet hosts, but the result measures that specific path. For your own network, testing between two machines you control is the cleaner measurement.
What is bufferbloat?
Bufferbloat is the extra latency that appears when a link is full, caused by oversized buffers. Flent reveals it by measuring latency while the link is under load. It is a common reason a connection feels fine one moment and laggy the next.
Which tool should I start with?
Start with iPerf3, since it is simple and answers the basic throughput question. Move to qperf or sockperf when you need latency detail, and to Flent when the problem only shows under load. One clear number first, then the deeper tools only if that number raises a question.