iperf3 -sStarts an iperf server to listen for test connections.
Operates on the default port to receive throughput measurements from clients.
Measures maximum TCP and UDP throughput between two hosts — the standard tool for testing network bandwidth and link quality.
sudo apt install iperf3iperf3 -sStarts an iperf server to listen for test connections.
Operates on the default port to receive throughput measurements from clients.
iperf3 -s -p 5201Starts the server on a specific custom port (-p).
Required when the default port is blocked or already in use.
iperf3 -s -DRuns the server in daemon mode (-D).
Moves the process to the background, allowing the terminal to be used for other tasks.
iperf3 -s -1Runs the server for exactly one test (-1).
Automatically shuts down the server once the first client completes its test.
iperf3 -s --logfile server_log.txtRedirects all server output to a log file.
Ensures test results are persisted for later analysis without polluting the console.
Example
iperf3 -s --logfile /var/log/iperf3.logiperf3 -s -i 1Sets the reporting interval to 1 second (-i 1).
Provides real-time throughput updates during the progress of the test.
iperf3 -c 192.168.1.10Initiates a client test to a specific IP.
Connects to the target server to begin measuring network performance.
iperf3 -c iperf.example.comInitiates a client test to a hostname.
Uses DNS resolution to find the target server for the performance audit.
iperf3 -c 192.168.1.10 -p 5201Connects to a server on a specific port (-p).
Ensures the client reaches the server matching the listener configuration.
iperf3 -c 192.168.1.10 -t 60Sets test duration to 60 seconds (-t 60).
Provides a sustained measurement of throughput over a significant time period.
iperf3 -c 192.168.1.10 -n 1GTransfers exactly 1 Gigabyte of data (-n 1G).
Completes the test based on data volume rather than a fixed time limit.
iperf3 -c 192.168.1.10 -k 1000Transfers a specific number of blocks (-k 1000).
Allows precise control over the total number of packets sent during the test.
iperf3 -c 192.168.1.10 -uRuns the test in UDP mode (-u).
Measures jitter, packet loss, and throughput for connectionless traffic.
iperf3 -c 192.168.1.10 -u -b 10MSets UDP target bandwidth to 10 Mbps (-b 10M).
Throttles the client to a specific rate to test link capacity and packet loss.
iperf3 -c 192.168.1.10 -u -b 100M -t 30Runs a 30-second UDP test at 100 Mbps.
Establishes a baseline for high-speed wireless or wired network performance.
iperf3 -c 192.168.1.10 -u -b 0UDP test with unlimited bandwidth (-b 0).
Attempts to saturate the link completely to find its maximum physical throughput.
iperf3 -c 192.168.1.10 -u -l 1000Sets custom buffer length (-l 1000).
Controls the size of each packet sent to test MTU limits and overhead.
iperf3 -c 192.168.1.10 -B 192.168.1.20Binds client to specific source IP (-B).
Forces traffic out through a particular network interface on the local host.
iperf3 -s -B 0.0.0.0Binds server to listen on all IPv4 addresses.
Ensures the listener responds to requests on any available network interface.
iperf3 -c 192.168.1.10 -JOutputs test results in JSON format (-J).
Provides a structured data stream ideal for automated logging and report generation.
iperf3 -c 192.168.1.10 --logfile client_results.logSaves client results to a file.
Persists the detailed test output for archival and comparative analysis.
iperf3 -c 192.168.1.10 --get-server-outputRequests and displays server result output.
Provides a complete end-to-end view of the test from both sides of the link.
iperf3 -c 192.168.1.10 -O 5Omits first 5 seconds from statistics (-O 5).
Filters out the initial TCP slow-start phase for more accurate steady-state data.
iperf3 -c 192.168.1.10 -T 'Core Switch Test'Adds a custom title to the output (-T).
Labels the test run for easy identification in aggregate logs or reports.
iperf3 -c 192.168.1.10 -VEnables verbose output for detailed tracking (-V).
Shows extensive connection parameters, CPU usage, and endpoint details.
iperf3 -c 192.168.1.10 -dEnables internal debug mode (-d).
Provides low-level diagnostic data for troubleshooting iperf3 execution issues.
iperf3 -c 192.168.1.10 -w 512KSets the socket buffer size (-w 512K).
Manually adjusts the TCP window to optimize performance on high-latency links.
iperf3 -c 192.168.1.10 -M 1400Sets TCP Maximum Segment Size (-M 1400).
Limits the size of TCP segments to avoid fragmentation on restrictive paths.
iperf3 -c 192.168.1.10 -NDisables Nagle's algorithm (-N).
Reduces latency by sending all packets immediately without waiting for buffer fills.
iperf3 -c 192.168.1.10 -ZEnables Zero Copy data transfer (-Z).
Reduces system overhead by moving data between kernel spaces without CPU copying.
iperf3 -c 192.168.1.10 -C cubicSets TCP congestion control to 'cubic'.
Configures the algorithm used to manage traffic flow and bandwidth usage.
iperf3 -c 192.168.1.10 -C bbrSets TCP congestion control to 'bbr'.
Uses Google's Bottleneck Bandwidth and RTT algorithm for enhanced performance.
iperf3 -c 192.168.1.10 -A 1Binds the process to a specific CPU core (-A 1).
Minimizes context switching overhead and ensures consistent processing performance.
iperf3 -s -I /var/run/iperf3.pidWrites server Process ID to a file (-I).
Useful for shell scripts and system monitors to manage the server lifecycle.
iperf3 -c 192.168.1.10 --sctpUses SCTP transport protocol (--sctp).
Tests performance over the multi-homed, message-oriented SCTP protocol.
iperf3 -c 192.168.1.10 --dscp 46Sets DSCP marking for the traffic (--dscp 46).
Assigns Expedited Forwarding (EF) quality to packets to test QoS handling.
iperf3 -c 192.168.1.10 -S 0x10Sets the IP Type of Service byte (-S 0x10).
Provides legacy QoS marking for network path prioritization testing.
iperf3 -c 192.168.1.10 -L 12345Sets the IPv6 Flow Label (-L 12345).
Tags IPv6 packet streams for experimental or path-specific routing tests.
iperf3 -s --rsa-private-key-path server.key --authorized-users-path users.csvStarts a secure server using RSA authentication.
Protects the performance audit by requiring valid credentials and keys.
Example
iperf3 -s --rsa-private-key-path /etc/iperf3/server.key --authorized-users-path /etc/iperf3/usersiperf3 -c 192.168.1.10 --username testuser --rsa-public-key-path pub.keyConnects to a secure server with credentials.
Authenticates the client test session to ensure authorized network monitoring.
iperf3 -c 192.168.1.10 --repeating-payloadUses a repeating payload pattern.
Simulates highly compressible data to test its impact on link optimization.
iperf3 -c 192.168.1.10 -X /var/run/sctp_bindBinds SCTP associations to links (-X).
Advanced control for multi-homing tests over the SCTP transport.
iperf3 -c 192.168.1.10 --fq-rate 500MSets Fair Queueing rate limit (--fq-rate).
Throttles the socket at the kernel level for advanced traffic policy simulation.
iperf3 -s --server-bitrate-limit 100MCaps maximum acceptable server-side bitrate.
Protects the server from being overwhelmed by high-speed client floods.
iperf3 -c 192.168.1.10 --time-wait-interval 2000Sets wait time between repeated tests.
Controls the spacing of test iterations for automated scripting.
iperf3 -c 192.168.1.10 -b 0 -t 20 --pacing-timer 1000Sets granular pacing timer for the socket.
Manually adjusts the timing interval for outbound data transmissions.
iperf3 -c 192.168.1.10 -u -b 20M --packet-size 500Customizes UDP packet size for specialized testing.
Validates how the link handles non-standard message lengths.
iperf3 -c 192.168.1.10 -t 3600 -i 60 --logfile long_test.txtPerforms a 1-hour stability test with periodic logging.
Monitors network performance consistency and identifies long-term drift.
iperf3 -c 192.168.1.10 -u -b 50M -RTests UDP download capacity at 50 Mbps.
Establishes specific performance metrics for reverse-direction traffic.
iperf3 -c 192.168.1.10 -P 16 -w 1MHeavy load test for high-capacity WAN links.
Combines many parallel streams with large windows to saturate the pipe.
iperf3 -c 192.168.1.10 -u -b 10M --length 100Simulates low-bandwidth VoIP traffic flow.
Uses UDP with small packet sizes to measure jitter and delay characteristics.
iperf3 -c 192.168.1.10 -6 -P 4Tests IPv6 specific throughput with multiple streams.
Validates performance parity between IPv4 and IPv6 network paths.
iperf3 -c 192.168.1.10 --cport 6001Binds the client to a fixed source port (--cport).
Required for testing through restrictive firewalls with static port policies.
iperf3 -c 192.168.1.10 -J --logfile result.jsonSaves structured JSON results for automated analysis.
Enables seamless integration into observability and data pipelines.
iperf3 -c 192.168.1.10 -O 3 -t 10 -JRuns a standardized automated performance test.
Includes warm-up filtering and structured data output for consistency.
iperf3 -s --idle-timeout 60Client connection timeout setting (--connect-timeout).
Forces a 5s connection wait limit before failing the test attempt.
iperf3 -c 192.168.1.10 --connect-timeout 5000Client connection timeout setting (--connect-timeout).
Forces a 5s connection wait limit before failing the test attempt.
iperf3 -c 192.168.1.10 -u -b 100M -t 10 -i 1 -VVerbose high-speed UDP audit (-u -b 100M).
Provides granular reporting and detailed tracking for UDP throughput.
iperf3 -c 192.168.1.10 --bidir -t 30 -P 2sustained bidirectional performance measurement.
Uses multiple streams to test full-duplex bandwidth availability.
iperf3 -c 192.168.1.10 -4 -R -w 2MIPv4 Download test with optimized window (-4 -R).
Maximizes throughput by increasing the receiver's data buffer.
iperf3 -c 192.168.1.10 -P 4 -t 60 -i 5 -O 5 -J --logfile full_test.jsonExecutes a complete, documented performance profile.
A comprehensive audit command for high-speed network validation.
Sends ICMP echo requests to test reachability and measure round-trip time.
The modern Linux socket statistics tool: lists listening ports, established connections and the processes behind them, faster than netstat.
Shows network connections, listening ports, routing tables and interface statistics. Largely replaced by ss on Linux but still common everywhere.
A passive OS fingerprinting tool that identifies operating systems and clients from traffic it observes, without sending any packets.