Free tech learning for everyone, from basics to pro

Network FundamentalsNetworking SecurityIntermediate

Measuring network performance: ping, mtr, pathping, iperf3 and speed tests

In short: Different tools answer different questions. Ping measures latency and loss to one target, mtr and pathping show loss and delay at every hop over time, and iperf3 measures real throughput and jitter between two machines you control. Internet speed tests are useful but depend on the test server, Wi-Fi and the device, so test from a wired device and repeat.

Pick the right tool

Network performance toolspingreachability, RTT, losstraceroute / tracertthe pathmtr / pathpingloss per hop over timeiperf3throughput between two hostsSpeed testsinternet lineWiresharkwhat really happened
Figure 1. Use the simplest tool that answers your question, then go deeper.

ping: the first check

ping -n 100 10.20.0.10        (Windows)
ping -c 100 -i 0.2 10.20.0.10 (Linux)

Send enough pings to see a pattern: the minimum, average and maximum RTT, and the loss percentage. A big gap between minimum and maximum means jitter or congestion. Remember that some devices give ICMP low priority, so a slow reply from a router does not always mean slow forwarding.

mtr and pathping: where is the loss?

mtr (Linux and macOS, and WinMTR on Windows) combines traceroute and ping, sending probes to every hop continuously:

mtr -rwzc 200 www.example.com

Windows has pathping, which does the same but takes a few minutes to collect results. How to read them:

  • Loss at one middle hop that does not continue to later hops is usually that router rate-limiting replies to you, not real loss.
  • Loss that starts at a hop and continues to every hop after it, including the destination, is real and points to that link or router.
  • A big jump in latency between two hops often shows a long-distance link or a congested one.

iperf3: real throughput between two points

Run a server on one machine and a client on the other:

# on the far end
iperf3 -s
# on the near end: 30 second TCP test with 4 parallel streams
iperf3 -c 10.20.0.10 -t 30 -P 4
# reverse direction (server sends)
iperf3 -c 10.20.0.10 -t 30 -R
# UDP test at 50 Mbps to measure jitter and loss
iperf3 -c 10.20.0.10 -u -b 50M

Parallel streams (-P) help fill fast or long-distance links, because a single TCP stream may be limited by its window size. Test in both directions; many problems only affect one. Make sure the test machines themselves are not the bottleneck (old laptops, Wi-Fi, slow CPUs).

Internet speed tests

  • Test from a wired device, not Wi-Fi, if you want to know what the line delivers.
  • Stop other downloads and updates during the test.
  • Try more than one test service and server; results depend heavily on the server chosen.
  • Repeat at different times of day; peak-time congestion at the ISP is common.
  • Watch latency "under load" (some tests call it loaded latency or bufferbloat). High values here explain laggy calls when someone is uploading.

Real-world example: blaming the VPN

A branch office said the VPN to head office was slow. An iperf3 test across the VPN reached 280 Mbps with four streams, close to the branch's 300 Mbps line. But with one stream it reached only 40 Mbps, which matched what the file copy tool achieved. The issue was TCP window size over the 90 ms path, not the VPN. Enabling the file tool's multi-stream option fixed the transfer times.

Practice

In an mtr report, loss appears at hop 5 but not at hops 6 to 10 or the destination. Is there real loss at hop 5?
Probably not; that router is likely rate-limiting replies to the probes. Real loss continues to later hops.
Why use the -P option with iperf3?
To run several parallel streams, which helps fill fast or long-distance links that one TCP stream cannot.
Why should you test internet speed from a wired device?
Wi-Fi can be the bottleneck, so a wired test shows what the line itself delivers.

Key takeaways

  • ping shows latency and loss; send enough probes to see patterns.
  • mtr and pathping find where loss really starts along a path.
  • iperf3 measures throughput and jitter between your own hosts, in both directions.
  • Run speed tests wired, quiet, repeated and to more than one server.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: