Windows linux 测速,使用iperf 3.7进行打流测试服务器宽带,vps网速测试,online接口
Windows linux 测速,使用iperf 3.7进行打流测试服务器宽带,vps网速测试,online接口网上的iperf3地址,参考互联网检索收集
10Gbps 5200-5209 TCP/UDP
ping.online.net 法国巴黎
ping-ams1.online.net 荷兰阿姆斯特丹
10Gbps 5200-5209 TCP/UDP IPV6
ping6.online.net 法国巴黎
10Gbps 5201-5210 TCP/UDP
proof.ovh.net 法国巴黎
10Gbps 5201-5210 TCP/UDP
hil.proof.ovh.us 美国西海岸
10Gbps 5201-5210 TCP/UDP
vin.proof.ovh.us 美国东海岸
1Gbps 5201-5210 TCP/UDP
sgp.proof.ovh.net 新加坡
1Gbps 5201-5203 TCP
iperf.biznetnetworks.com 印度尼西亚雅加达
安装
yum -y install make gcc gcc-c++
wget https://downloads.es.net/pub/iperf/iperf-3.7.tar.gz
tar xzf iperf-3.7.tar.gz
cd iperf-3.7
./configure
make
make install
如果报错
iperf3: error while loading shared libraries: libiperf.so.0: cannot open shared object file: No such file or directory
运行下面命令解决
ldconfig
简单实用说明:
上传测试
iperf3 -c hil.proof.ovh.us -p 5209 -P 30
下载测试
iperf3 -c hil.proof.ovh.us -p 5209 -P 30 -R
-c 目标主机
-u udp模式
-b udp模式下默认限制为1Mbps,设置值为0代表不限制,单位为比特,TCP中默认无限制。
-p 端口号(不指定则使用默认值5201)
-P 多线程并发数量(使用32线程及以上时会占用较多cpu引起教程崩溃,下行测试最多支持30线程)
-R 从服务器发送返回数据
-t 持续时间,默认值10秒,可以设置-t 86400
-n 传数数据大小,可以设置-n 10G,设置-n参数时会忽略-t参数(部分iperf3服务器可能不支持使用-n参数)
帮助:
https://github.com/esnet/iperf
Windows版本下载:https://iperf.fr/iperf-download.php#windows
Usage: iperf3 [-s|-c host]
iperf3 [-h|--help] [-v|--version]
Server or Client:
-p, --port # server port to listen on/connect to
-f, --format format to report: Kbits, Mbits, Gbits, Tbits
-i, --interval# seconds between periodic throughput reports
-F, --file name xmit/recv the specified file
-A, --affinity n/n,m set CPU affinity
-B, --bind <host> bind to the interface associated with the address <host>
-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
--connect-timeout # timeout for control connection setup (ms)
-b, --bitrate #[/#]target bitrate in bits/sec (0 for unlimited)
(default 1 Mbit/sec for UDP, unlimited for TCP)
(optional slash and packet count for burst mode)
--pacing-timer # set the timing for pacing, in microseconds (default 1000)
-t, --time # time in seconds to transmit for (default 10 secs)
-n, --bytes # number of bytes to transmit (instead of -t)
-k, --blockcount # number of blocks (packets) to transmit (instead of -t or -n)
-l, --length # length of buffer to read or write
(default 128 KB for TCP, dynamic or 1460 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 # 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, 0-255.
The usual prefixes for octal and hex can be used,
i.e. 52, 064 and 0x34 all specify the same value.
--dscp N or --dscp val set the IP dscp value, either 0-63 or symbolic.
Numeric values can be specified in decimal,
octal and hex (see --tos above).
-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
--extra-data str data string to include in client and server JSON
--get-server-output get results from server
--udp-counters-64bit use 64-bit counters in UDP test packets
--repeating-payload use repeating pattern in payload, instead of
randomized payload (like in iperf2)
indicates options that support a K/M/G suffix for kilo-, mega-, or giga-
iperf3 homepage at: https://software.es.net/iperf/
Report bugs to: https://github.com/esnet/iperf
你这个上传的已经测不了了 新加坡的1G口可以
页:
[1]