博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux 下测试网卡性能命令iperf 的用法
阅读量:7237 次
发布时间:2019-06-29

本文共 2762 字,大约阅读时间需要 9 分钟。

很多文件系统都自带iperf 命令,所以不用作多的移植工作。

如下查看他的帮助信息。

Qt@aplex:~$ iperf -hUsage: iperf [-s|-c host] [options]       iperf [-h|--help] [-v|--version]Client/Server:  -f, --format    [kmKM]   format to report: Kbits, Mbits, KBytes, MBytes  -i, --interval  #        seconds between periodic bandwidth reports  -l, --len       #[KM]    length of buffer to read or write (default 8 KB)  -m, --print_mss          print TCP maximum segment size (MTU - TCP/IP header)  -o, --output    
output the report or error message to this specified file -p, --port # server port to listen on/connect to -u, --udp use UDP rather than TCP -w, --window #[KM] TCP window size (socket buffer size) -B, --bind
bind to
, an interface or multicast address -C, --compatibility for use with older versions does not sent extra msgs -M, --mss # set TCP maximum segment size (MTU - 40 bytes) -N, --nodelay set TCP no delay, disabling Nagle's Algorithm -V, --IPv6Version Set the domain to IPv6Server specific: -s, --server run in server mode -U, --single_udp run in single threaded UDP mode -D, --daemon run the server as a daemonClient specific: -b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec (default 1 Mbit/sec, implies -u) -c, --client
run in client mode, connecting to
-d, --dualtest Do a bidirectional test simultaneously -n, --num #[KM] number of bytes to transmit (instead of -t) -r, --tradeoff Do a bidirectional test individually -t, --time # time in seconds to transmit for (default 10 secs) -F, --fileinput
input the data to be transmitted from a file -I, --stdin input the data to be transmitted from stdin -L, --listenport # port to receive bidirectional tests back on -P, --parallel # number of parallel client threads to run -T, --ttl # time-to-live, for multicast (default 1) -Z, --linux-congestion
set TCP congestion control algorithm (Linux only)Miscellaneous: -x, --reportexclude [CDMSV] exclude C(connection) D(data) M(multicast) S(settings) V(server) reports -y, --reportstyle C report as a Comma-Separated Values -h, --help print this message and quit -v, --version print version information and quit[KM] Indicates options that support a K or M suffix for kilo- or mega-The TCP window size option can be set by the environment variableTCP_WINDOW_SIZE. Most other options can be set by an environment variableIPERF_
, such as IPERF_BANDWIDTH.Report bugs to

在PC终端下运行:

iperf -s

在测试终端下运行:

iperf -c 192.168.0.144

就可以的出速度。

测试会不会丢包可以直接用ping 进行测试。

ping 192.168.0.144

转载地址:http://icgfm.baihongyu.com/

你可能感兴趣的文章
python学习笔记06-列表
查看>>
linux桌面与命令行模式切换 ②
查看>>
linux中KS详解
查看>>
正则 表达式
查看>>
TCP/IP基础
查看>>
使用Eclipse远程调试Tomcat
查看>>
ansible安装与部署
查看>>
python-M2Crypto安装方法
查看>>
手机写host 工具
查看>>
Android:time&date、TimePicker、DatePicker
查看>>
初始化weblogic密码
查看>>
Linux Top 命令解析
查看>>
一个C#项目 在引用References中有个引用项上有个黄色三角加感叹号 导致报错
查看>>
PPT无法修改默认打开程序的问题
查看>>
2011年度IT博客大赛50强之 jimmy_lixw
查看>>
WP8开发日志(2):MVC设计模式入门
查看>>
windows下配置Nginx1.0.9+php5.2.17
查看>>
咳咳,关于本空间的问题~
查看>>
power cpu的封装形式
查看>>
CentOS 7.2下安装Python3.5.2过程
查看>>