How to Use iperf3 to Test Network Throughput Between Devices

iperf3 is a lightweight command-line utility for measuring network throughput between two devices. It can test wired and wireless connections, reveal bandwidth limits and identify packet loss. Unlike a typical internet speed test, iperf3 measures the path directly between the selected endpoints, making it useful for troubleshooting a home or small-office network.

A local test needs two devices, such as a laptop and desktop, NAS or another compatible computer. Connect one device directly to the router with Ethernet and run iperf3 on the other. Australian households in Sydney, Melbourne, Brisbane and other cities often have a mixture of NBN FTTP, FTTN and fixed wireless, depending on the address, so a local result can explain why Wi-Fi performance differs from the advertised broadband speed.

Each result includes transfer rates in megabits or gigabits per second. TCP tests also report retransmissions, while UDP tests provide jitter and lost-datagram figures. Repeated tests under the same conditions produce more meaningful comparisons than a single run, particularly when household video calls, streaming and cloud backups compete for capacity during the evening.

Keep the first test entirely within the trusted home or business network. Testing across the internet requires an external endpoint and careful firewall configuration. Intercepting traffic or testing equipment without authorisation may also raise issues under Australian privacy and telecommunications law, including the Privacy Act 1988 and the Telecommunications Act 1997.

Prepare the two endpoints

Install iperf3 on both computers using the official package for each operating system. On Ubuntu or Debian, use sudo apt install iperf3; on macOS with Homebrew, use brew install iperf3. Windows and NAS systems can also run suitable builds or containers. Avoid random downloads from search-result advertisements or unrelated promotional pages, including a page advertised as a third-party tested review.

Choose one device as the server and note its local IPv4 address, such as 192.168.1.50. Open the server’s firewall for the relevant port and start it with iperf3 -s. Keep the server visible only to the local network unless remote testing has been deliberately secured with a VPN.

Run the first throughput test

From the client device, connect to the server and run a ten-second test:

iperf3 -c 192.168.1.50 -t 10

The output shows sender and receiver rates, elapsed time and TCP retransmissions. For example, both directions reporting roughly 940 Mbits/sec indicates a healthy near-gigabit Ethernet path. A large difference between the two figures suggests that traffic is being queued, buffered or discarded during the transfer.

Repeat the test at least three times while other devices are idle. Record the median result rather than relying on the fastest run. If the router or switch supports only 100 Mbps, expect a ceiling near that level regardless of the broadband plan or internal cable quality.

Compare traffic in both directions

A normal test sends data from the client to the server. Reverse the path with the -R option:

iperf3 -c 192.168.1.50 -t 10 -R

Matching upload and download results are desirable on a symmetrical local network, although Wi-Fi, USB Ethernet adapters and processing load can cause differences. A slow reverse direction may point to server performance, a cable, a network interface or congestion on the receiving side.

Multiple TCP streams can show whether one connection is the limiting factor:

iperf3 -c 192.168.1.50 -t 10 -P 4

Four streams may achieve more throughput than one because TCP’s congestion window can expand across several connections. Compare this result with the single-stream test, but remember that busy internet connections rarely sustain the same aggregate speed as a local LAN.

Investigate Wi-Fi and Ethernet bottlenecks

Start with Ethernet whenever possible because it removes radio interference, signal strength and channel congestion as variables. For Wi-Fi, test close to the access point and then in the usual living or office area. Australian homes commonly combine 2.4 GHz and 5 GHz Wi-Fi, with the 2.4 GHz band offering broader range but usually lower throughput.

If wired clients perform well but wireless clients remain slow, inspect the access point, its internet connection and nearby interference. Upgrading cabling or adding a suitable access point may be more effective than replacing the router. When another Ethernet device needs to be added, a network switch buying guide can help compare managed and unmanaged models, port speeds and PoE options available through Australian retailers.

Measure loss, jitter and retransmission

UDP testing is useful for applications where timing matters, including voice and video. Start a UDP-only server and choose a target sending rate:

iperf3 -s -u -p 5201

iperf3 -c 192.168.1.50 -u -b 100M -t 10

A lossless result with low jitter is generally preferable to a high transfer rate with heavy packet loss. The -b value sets a target rather than a guaranteed speed, so it should be adjusted to match the expected network capacity. TCP retransmissions similarly indicate that some data had to be sent again because packets were lost or delayed.

A NAS can serve as either endpoint without affecting normal storage operations. Comparing available models through Synology NAS reviews can help when selecting hardware for a small business or a household that also needs shared storage and local backups.

Secure the test and preserve a baseline

iperf3 traffic is not encrypted by default, so do not expose an unsecured server to the public internet. For an external test, use a controlled endpoint or encrypt the path with a trusted VPN. This matters particularly for regional Australian connections using fixed wireless or satellite, where latency can change substantially with network conditions and local congestion.

Store the date, device models, connection types, endpoint addresses, test direction and command used with each result. A dated iperf3 record becomes a practical baseline for comparing future NBN, Wi-Fi, switch or NAS changes without relying on a general speed-test score.