[root@localhost ]# yum search iperf
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.tuna.tsinghua.edu.cn
==================================================================== N/S matched: iperf ====================================================================
iperf3-devel.i686 : Development files for iperf3
iperf3-devel.x86_64 : Development files for iperf3
iperf3.i686 : Measurement tool for TCP/UDP bandwidth performance
iperf3.x86_64 : Measurement tool for TCP/UDP bandwidth performance
名稱和簡介匹配 only,使用“search all”試試。
[root@localhost ]#
[root@localhost ]# yum install iperf3
已加載插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.tuna.tsinghua.edu.cn
正在解決依賴關(guān)系
--> 正在檢查事務(wù)
---> 軟件包 iperf3.x86_64.0.3.1.7-2.el7 將被 安裝
--> 解決依賴關(guān)系完成
依賴關(guān)系解決
============================================================================================================================================================
Package 架構(gòu) 版本 源 大小
============================================================================================================================================================
正在安裝:
iperf3 x86_64 3.1.7-2.el7 base 79 k
事務(wù)概要
============================================================================================================================================================
安裝 1 軟件包
總下載量:79 k
安裝大?。?97 k
Is this ok [y/d/N]: y
Downloading packages:
iperf3-3.1.7-2.el7.x86_64.rpm | 79 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安裝 : iperf3-3.1.7-2.el7.x86_64 1/1
驗證中 : iperf3-3.1.7-2.el7.x86_64 1/1
已安裝:
iperf3.x86_64 0:3.1.7-2.el7
完畢!
[root@localhost ]# iperf3 -v
iperf 3.1.7
Linux localhost 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64
Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing
[root@localhost ]#
[root@localhost ]# iperf3 -h
Usage: iperf [-s|-c host] [options]
iperf [-h|--help] [-v|--version]
Server or Client:
-p, --port # server port to listen on/connect to
-f, --format [kmgKMG] format to report: Kbits, Mbits, KBytes, MBytes
-i, --interval # seconds between periodic bandwidth reports
-F, --file name xmit/recv the specified file
-A, --affinity n/n,m set CPU affinity
-B, --bind <host> bind to a specific interface
-V, --verbose more detailed output
-J, --json output in JSON format
--logfile f send output to a log file
--forceflush force flushing output at every interval
-d, --debug emit debugging output
-v, --version show version information and quit
-h, --help show this message and quit
Server specific:
-s, --server run in server mode
-D, --daemon run the server as a daemon
-I, --pidfile file write PID file
-1, --one-off handle one client connection then exit
Client specific:
-c, --client <host> run in client mode, connecting to <host>
-u, --udp use UDP rather than TCP
-b, --bandwidth #[KMG][/#] target bandwidth in bits/sec (0 for unlimited)
(default 1 Mbit/sec for UDP, unlimited for TCP)
(optional slash and packet count for burst mode)
--fq-rate #[KMG] enable fair-queuing based socket pacing in
bits/sec (Linux only)
-t, --time # time in seconds to transmit for (default 10 secs)
-n, --bytes #[KMG] number of bytes to transmit (instead of -t)
-k, --blockcount #[KMG] number of blocks (packets) to transmit (instead of -t or -n)
-l, --len #[KMG] length of buffer to read or write
(default 128 KB for TCP, dynamic or 1 for UDP)
--cport <port> bind to a specific client port (TCP and UDP, default: ephemeral port)
-P, --parallel # number of parallel client streams to run
-R, --reverse run in reverse mode (server sends, client receives)
-w, --window #[KMG] set window size / socket buffer size
-C, --congestion <algo> set TCP congestion control algorithm (Linux and FreeBSD only)
-M, --set-mss # set TCP/SCTP maximum segment size (MTU - 40 bytes)
-N, --no-delay set TCP/SCTP no delay, disabling Nagle's Algorithm
-4, --version4 only use IPv4
-6, --version6 only use IPv6
-S, --tos N set the IP 'type of service'
-L, --flowlabel N set the IPv6 flow label (only supported on Linux)
-Z, --zerocopy use a 'zero copy' method of sending data
-O, --omit N omit the first n seconds
-T, --title str prefix every output line with this string
--get-server-output get results from server
--udp-counters-64bit use 64-bit counters in UDP test packets
[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-
iperf3 homepage at: http://software.es.net/iperf/
Report bugs to: https://github.com/esnet/iperf
[root@localhost ]#
iperf官網(wǎng)地址:
iPerf - The TCP, UDP and SCTP network bandwidth measurement tool
?
iperf特性:
測量帶寬
報告MSS/MTU大小和觀察到的讀數(shù)大小。
通過套接字緩沖區(qū)支持TCP窗口大小。
UDP
客戶端可以創(chuàng)建指定帶寬的UDP流。
測量數(shù)據(jù)包丟失
測量延遲抖動
支持多播
跨平臺:Windows、Linux、Android、MacOS X、FreeBSD、OpenBSD、NetBSD、VxWorks、Solaris,。。。
客戶端和服務(wù)器可以同時具有多個連接(-P選項)。
服務(wù)器處理多個連接,而不是在一次測試后退出。
可以運行指定的時間(-t選項),而不是要傳輸?shù)臄?shù)據(jù)量(-n或-k選項)。
以指定的間隔打印周期性、中間帶寬、抖動和損耗報告(-i選項)。
將服務(wù)器作為守護程序運行(-D選項)
使用具有代表性的流來測試鏈路層壓縮如何影響可實現(xiàn)的帶寬(-F選項)。文章來源:http://www.zghlxwxcb.cn/news/detail-436871.html
服務(wù)器同時接受單個客戶端(iPerf3)多個客戶端同時接受(iPerf2)文章來源地址http://www.zghlxwxcb.cn/news/detail-436871.html
到了這里,關(guān)于Linux環(huán)境安裝iperf3(網(wǎng)絡(luò)性能測試工具)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!