[HTML payload içeriği buraya]
33.3 C
Jakarta
Monday, May 18, 2026

How one can use iPerf3 in Terminal to measure community efficiency


Use iPerf3 on macOS to check community bandwidth and throughput.



iPerf3 is a community throughput software used to measure the efficiency of the community your Mac is utilizing. Here is methods to use it within the macOS Terminal app.

iPerf (typically merely known as “iperf”) is a UNIX reminiscence, community throughput, and bandwidth software first developed on the NCSA of the College of Illinois. iPerf is a completely suitable rewrite of the older Check TCP (ttcp) app initially written on the US Military’s Ballistic Analysis Lab for DARPA in round 1983.

There are additionally trendy variations for Home windows and Linux.

There are three revisions of iPerf, and the third revision (iperf3) is not backward suitable with earlier variations. iperf3 was first launched in 2014 and in addition features a developer library so different packages can use it.

In contrast to earlier variations, iperf3 is single-threaded whereas the sooner variations have been multi-threaded. Multi-threading merely means multiple code path can run concurrently on computer systems which have a number of CPUs or multi-core CPUs. Multi-threading is utilized in parallel processing and improves efficiency.

The iperf3 rewrite was undertaken by the US Dept. of Power’s Power Sciences Community (ESN) and Lawrence Livermore Lab in Livermore, CA to enhance efficiency. ESN connects a number of analysis and industrial labs worldwide.

iperf3 supply code might be discovered on GitHub at esnet / iperf.

The unique iperf2 codebase written by Robert McMahon might be discovered on Sourceforge.

There’s additionally a really detailed Iperf 2 & Iperf 3 Comparability Desk at SourceForge.

Function

iperf3 is a memory-to-memory measurement software, however it’s generally used to measure community and router efficiency, and even storage gadgets. In contrast to iPerf2, model 3 additionally supplies output in JSON format.

All iPerf variants require each a server and a shopper element for testing. iperf3 makes use of TCP and UDP (connection-less) protocols for testing and communication.

Though iperf3 shouldn’t be backward suitable, iperf2 and iperf3 instructions are very comparable. ESN has an iperf2/iperf3 command chart.

ESN has a comparability chart which summarizes the choice variations between instruments. There’s additionally a macOS tuning web page which describes methods to optimize your community and settings to make use of iperf3.

The principle makes use of for iperf3 are to measure reminiscence efficiency between methods, and community connections, bandwidth, disk efficiency, and throughput throughout networks.

Set up on macOS

iperf3 shouldn’t be included with macOS by default. The simplest approach to set up it’s to make use of the Homebrew bundle supervisor and the Homebrew iperf3 method.

Use the Homebrew package manager on macOS to install iperf3.
Putting in iperf3 utilizing Homebrew.

As soon as Homebrew is put in in your Mac, open Apple’s Terminal app positioned in your Startup Disk within the /Purposes folder and easily sort:

brew set up iperf3 and press Return in your keyboard.

The Homebrew implementation of iperf3 depends on a number of different Homebrew packages which shall be put in mechanically:

  1. cfnctl
  2. comrak
  3. gauth
  4. ggh
  5. hcledit
  6. ramalama
  7. yices2

You possibly can examine these on their respective Homebrew method pages. You possibly can examine the put in model of iperf3 in Terminal with:

iperf3 -v

Working iperf3 in Terminal

There are a wide selection of choices when operating iperf3 in Terminal on macOS, however the easiest command is:

iperf3 -c remotehost

the place ‘remotehost’ is the IP tackle or identify of the server you need to connect with. Bear in mind, the iperf3 server element should be operating and listening on the pc you are making an attempt to hook up with.

The -c choice tells iperf3 to run in shopper mode and to hook up with the desired server. To connect with the distant pc utilizing UDP as an alternative of TCP, use the -u choice together with -c:

iperf3 -c -u remotehost

Further choices

There are dozens of different choices together with:

  1. -p (port quantity)
  2. -f (pace label format)
  3. -i (interval in seconds)
  4. -B (bind to a particular community interface)
  5. -V (verbose output)
  6. -J (JSON output)
  7. -l (log file output)
  8. -d (debug mode)
  9. -h (present assist)

In case you are operating your personal iperf3 server, use the -s or -D (daemon) flag to begin the server. When operating in server mode there’s additionally a --authorized-users-path flag to set what customers to permit.

By default, the iperf3 server listens on TCP port 5201 for connections from an iperf3 shopper. A distinct port might be specified utilizing the -p flag adopted by an area, then the port quantity. For instance:

iperf3 -s -p 5002

This command begins iperf3 in server mode and listens on UNIX port 5002 for incoming requests from purchasers.

You may need to use an alternate port as an alternative of the usual port to create a personal server. This will alsoo assist safe your server towards unhealthy actors who often goal commonplace server ports as a approach to break right into a machine.

For an entire record of iperf3 utilization and choices in Terminal use the person (handbook) system:

man iperf3 adopted by a Return in your keyboard.

Terminal output

As soon as operating, iperf3 will show check leads to the Terminal with every check line displaying the check interval (delay in seconds), quantity of knowledge, and general throughput. To cease the assessments press Command Z or q in your keyboard.

In case you used the UDP (-u) choice the assessments can even present any packet loss.

Use the Terminal app to run iperf3 tests.
Working an iperf3 check in Terminal.

There’s additionally an iperf3 Growth web page.

iperf.fr in France additionally has numerous nice information, together with a record of check servers.

A devoted record of free iperf3 check servers is out there at iPerf3 Server Listing, however typically the load on the location is so nice it is unreachable.

For one more helpful networking software take a look at NetPipe.

iperf3 is easy to put in and use (and is very easy to run) the subsequent time you want a fast bandwidth check throughout a community you will surprise how you bought alongside with out it.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles