Marcio Cunha

How to diagnose Wi-Fi network slowness with iperf3

Learn how to measure real bandwidth, jitter, and packet loss on Wi-Fi using iperf3 via terminal to isolate wireless infrastructure bottlenecks.

Marcio Cunha•5 min
Also available in:PortuguêsEspañol
Summary
  • Iperf3 measures real network performance by separating wireless infrastructure from external internet factors.
  • Actual bandwidth differs from contracted speeds due to interference, attenuation, and radio channel noise.
  • Jitter measures packet arrival time variation, directly impacting video calls and online gaming.
  • Testing with both wired and wireless setups helps isolate whether the bottleneck lies in the router or physical medium.
  • Proper execution requires one computer configured as an iperf3 server and another acting as a client on the same network.

Why does your Wi-Fi network feel slow despite fast internet?

Many people subscribe to fast internet plans, yet still experience stuttering while watching videos or loading web pages. In practice, this happens because the speed provided by your ISP only refers to the connection between your home and the street, while indoor performance relies heavily on your router and radio signal quality. When devices communicate over Wi-Fi, physical obstacles and interference from neighboring networks silently degrade the signal. To find out exactly where the issue lies, we need tools that bypass internet speeds and measure only the internal network traffic capacity.

Unlike traditional speed tests relying on external internet servers, local testing evaluates exclusively your internal network infrastructure. If you notice devices suffering from slowdowns, it can also be useful to check hardware integrity, similar to how to test crystal oscillator on board with oscilloscope to ensure electronic components are not failing. On wireless networks, traffic behavior is highly volatile, shifting as people move through rooms or new devices connect. Measuring this capacity accurately requires command-line tools focused on stressing the communication channel.

What is iperf3 and how does it work in practice

Iperf3 is an open-source tool widely used by network administrators to measure the maximum throughput supported by TCP and UDP connections. In practice, it works by setting up a server on one machine in the network and having another machine send an intense data stream to that server, calculating precisely how much data successfully passes per second. This approach eliminates interference from sluggish external website servers and focuses strictly on the delivery capability of your router and your computers' Wi-Fi adapters. To better understand traffic issues, you can also check how to use tcpdump to capture packets and inspect network traffic to analyze data behavior thoroughly.

During the test, iperf3 displays detailed metrics every second, allowing you to identify sudden performance drops that last only a few moments. This is especially useful in wireless networks, where signals suffer rapid fluctuations caused by electromagnetic interference from microwaves, cordless phones, or neighbor networks operating on the same channel. By isolating the test on the local network, you discover whether your current Wi-Fi router needs replacement, repositioning, or if your computer adapter is operating under driver or hardware limits.

Setting up the environment for wireless performance testing

To run a reliable test with iperf3, you will need at least two devices connected to the same network: one will act as the server, while the other acts as the client sending data. Ideally, the computer assuming the server role should be connected directly to the router via a gigabit ethernet cable, while the device under test remains connected via Wi-Fi. This topology ensures that any bottleneck or data loss observed comes exclusively from the wireless segment, rather than the machine receiving the data.

If you notice severe intermittency and packet loss even on wired connections or VPNs, it is worth checking the guide on WireGuard slow? How to fix packet loss and MTU to understand how packet adjustments affect delivery. Installing iperf3 is simple and available in package managers for most operating systems, such as apt on Ubuntu or Debian, Homebrew on macOS, or direct installers for Windows. With tools installed on both ends, we are ready to initiate measurement commands.

Running the iperf3 server and client step by step

Executing the test requires starting the application in listening mode on the first machine and then triggering the sending command on the second machine pointing to the first machine's IP address. Follow the procedure below on your local network:

  1. Open the terminal on the computer acting as the server (preferably wired) and enter the command to start listening on the default port:
    iperf3 -s
  2. On the wireless computer or laptop undergoing diagnosis, open the terminal and start the test pointing to the server IP:
    iperf3 -c 192.168.1.50
  3. Monitor the table generated in the terminal for ten seconds to analyze the average transfer rate achieved by the wireless channel.
    # The final report will display the average transmitted bandwidth

These basic steps allow you to quantify whether the speed delivered by your Wi-Fi is close to expected for your network card standard (such as Wi-Fi 5 or Wi-Fi 6). If the numbers show drastic fluctuations between runs, it indicates heavy environmental interference or range issues from the access point.

Interpreting bandwidth, jitter, and packet loss

Upon finishing the test, iperf3 displays a summary line containing average bandwidth and, for UDP tests, crucial metrics like jitter and packet loss rate. Jitter represents the variation in time it takes for packets to reach their destination; high jitter means packets arrive irregularly, destroying voice and video call quality. Meanwhile, packet loss indicates that important pieces of the transmission simply vanished into thin air due to severe radio channel interference.

In practice, if you observe packet loss exceeding 1% in an indoor environment, your Wi-Fi network's stability is compromised. This typically occurs when there is radio channel overlap with neighboring routers operating on the same 2.4 GHz or 5 GHz frequency. Identifying these issues with iperf3 allows you to make decisive choices, such as changing the operating channel on your router, migrating compatible devices to the 5 GHz band, or adding wired repeaters and access points.

Conclusion and next steps to optimize your network

Diagnosing wireless network slowdowns stops being a guessing game when we utilize robust tools like iperf3. By isolating internet traffic and directly measuring actual delivery capacity between local devices, you can pinpoint with surgical precision whether the bottleneck lies in the router, physical distance, or electromagnetic interference. Implementing periodic testing ensures your infrastructure maintains optimal performance to handle intense work and entertainment demands. Continue exploring your network configurations and adjusting radio channels to extract the maximum potential from your wireless connection.