Currently Available: Need a skilled Software Developer for your next project?
Categories
Self-Hosting

How to Test 2.5GbE Throughput Between a NAS and Clients With iperf3

When your computer copies files to network-attached storage (NAS) and the transfer runs slowly, the bottleneck might be the network, the NAS hardware, the file-sharing protocol, or the drives. A 2.5GbE link runs at a nominal rate of 2.5 gigabits per second (Gbit/s), though neither network tests nor file copies reach that full number.

You can use iperf3 to measure how fast two computers send data over a network. By default, iperf3 uses TCP, a common protocol for reliable data delivery. Because it sends data between the computers’ memory, it tests the network path without reading or writing files on your NAS drives. On a healthy 2.5GbE link, you can expect a rough target of 2.3 to 2.4 Gbit/s. If you see lower numbers, something along the path or on one of the machines needs attention. On the other hand, a fast iperf3 run does not guarantee that your file copies will match that speed.

Run a baseline test in both directions

First, check that the client, the NAS, and every switch port between them report a 2.5GbE link speed. Even a single 1GbE port along the route caps your throughput, regardless of whether both endpoints have 2.5GbE adapters. Use a wired client, and target the IP address of the NAS interface you want to test. If your NAS has more than one network port, write down which IP address you use.

Start the iperf3 server on the NAS:

iperf3 -s

The server listens on TCP port 5201 by default. If a firewall on the NAS or the client blocks the connection, open TCP port 5201. Both machines need iperf3 installed, since iperf3 cannot talk to iperf2. You can check the official command documentation for the full list of server and client flags. Because NAS installation steps vary by vendor and firmware, follow your NAS vendor’s instructions to install it.

On the client, replace NAS_IP with your NAS’s IP address and run a 30-second test:

iperf3 -c NAS_IP -t 30 -i 1

By default, the client sends data to the server, so this command measures client-to-NAS speed. The -t 30 flag runs the test for 30 seconds, and -i 1 prints a reading every second. Running for 30 seconds shows sustained throughput instead of a brief burst. ESnet recommends starting with a single stream and a 30-second test.

Next, reverse the direction:

iperf3 -c NAS_IP -R -t 30 -i 1

Adding -R tells the NAS to send data to the client. Test both directions separately, because strong upload speed does not mean downloads will match it.

After you finish the single-stream runs, compare them against tests with four parallel streams:

iperf3 -c NAS_IP -P 4 -t 30 -i 1
iperf3 -c NAS_IP -P 4 -R -t 30 -i 1

The -P 4 flag opens four TCP streams at once. If four streams run much faster than one, a single-stream limit or CPU bottleneck on one of the machines may be holding back the transfer. That jump alone does not tell you the exact cause, so keep both the single-stream and parallel-stream numbers for comparison. Your iperf3 version also matters here. Starting in version 3.16, iperf3 assigns each stream its own thread. The iperf3 FAQ explains that change and notes that Windows is not officially supported, though community-built Windows versions exist.

Write down the iperf3 version, test direction, stream count, link rates, and the final sender and receiver summaries. Having those notes makes it easier to compare runs and spot whether one endpoint is causing a slowdown.

What 2.5GbE should deliver

A 2.5 Gbit/s link rate counts every bit that crosses the wire, including protocol overhead. With a standard 1500-byte IP packet and basic IPv4 and TCP headers, a full TCP segment holds up to 1460 bytes of payload data. Ethernet framing takes up additional wire capacity. A simplified calculation looks like this:

2.5 Gbit/s × (1460 / 1538) ≈ 2.37 Gbit/s

That estimate assumes full-sized frames and standard headers. IPv6, extra protocol headers, host performance, and other implementation details will shift the number. It shows why you should not expect iperf3 to report a flat 2.5 Gbit/s for TCP payload data, though it is not a strict minimum or a guaranteed target for every NAS. Cisco’s Ethernet and TCP framing explanation walks through the 1500-byte IP packet and 1460-byte TCP payload math.

Because one byte equals eight bits, a 2.5 Gbit/s link converts to 312.5 megabytes per second (MB/s) before protocol overhead. File-copy tools often display bytes per second, whereas iperf3 usually reports bits per second. Check the units before you compare the two numbers.

Find the cause of a low result

Compare your two directions and your single-stream versus four-stream results. The pattern points you toward the bottleneck:

  • If both directions land near 2.3 to 2.4 Gbit/s, your network path is performing near the practical limit for 2.5GbE. Any remaining slowdown during file copies comes from storage or file sharing.
  • If one direction is much slower than the other, inspect both the sending and receiving machines for that direction. Check CPU load, network adapter settings, negotiated link rate, and error or retransmission counters.
  • If four streams run much faster than one, check whether a single TCP stream or endpoint processing is capping speed, and note which iperf3 version you ran. The higher parallel number shows that multiple streams help, though it does not pinpoint the underlying limit.
  • If both single-stream and parallel-stream tests stay slow, check every link along the route for a 1GbE port. After that, look for host limits, network congestion, packet loss, or path configuration issues.
  • If iperf3 hits full speed while file copies lag, look at the file-sharing protocol, encryption settings, drive performance, and the size of the files you are moving.

When iperf3 reports TCP retransmissions, the sender had to send data again because the receiver did not get the original packets as expected. Retransmissions can point to packet loss, though they do not automatically prove a bad cable or switch. ESnet notes that a receiver that cannot keep up with the sender can also trigger retransmissions. Check both endpoints as well as the network path, and use ESnet’s network performance troubleshooting guidance to read the results.

Jumbo frames let devices send Ethernet packets larger than the standard size, but you do not need them for a basic 2.5GbE test. Start with the default MTU (maximum transmission unit), which sets the largest packet size a link can carry. If your endpoints already use jumbo frames, make sure every switch and link along the path supports that same packet size, because an MTU mismatch can disrupt traffic.

Why file copies can be slower than iperf3

A standard iperf3 test moves data between memory buffers on the two endpoints. It never reads a file from your NAS volume or writes incoming data to a drive. A fast result confirms that the two machines can push data across the network path, yet it tells you nothing about NAS disk speed or the overhead of serving files.

During a file copy, the NAS has to read or write storage and process a file-sharing protocol such as SMB or NFS. Encryption and transfers made up of many small files can also slow things down. If iperf3 reaches 2.3 to 2.4 Gbit/s while your file copies lag behind, test your NAS storage and file-sharing setup separately instead of blaming the network. ESnet’s iperf testing guidance explains the difference between memory-to-memory tests and file-based transfers.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *