linux iperf结果分析,iperf3 测试linux服务器之间带宽

Centos 64 bits

1.安装(2台服务器都要安装)wget https://iperf.fr/download/fedora/iperf3-3.1.3-1.fc24.x86_64.rpm

rpm -i iperf3-3.1.3-1.fc24.x86_64.rpm

yum install -y iperf3

2.测速在使用iperf3测试时,要同时在server端与client端都各执行一个程序,让它们互相传送报文进行测试1.首先在 22.23.5.66 机器启动server端的程序:iperf3 -s# 指定端口 -p

iperf3 -s -p 55510

2.接着在 10.23.5.65 服务器上执行client 端的程序:iperf3 -c 120.232.172.92 -R# 指定端口 -p

iperf3 -c 210.129.15.90 -R -p 55510

Ubuntu 64 bits / Debian 64 bits / Mint 64 bits (AMD64)

1.安装sudo apt remove iperf3 libiperf0

sudo apt install libsctp1

wget https://iperf.fr/download/ubuntu/libiperf0_3.7-3_amd64.deb

wget https://iperf.fr/download/ubuntu/iperf3_3.7-3_amd64.deb

sudo dpkg -i libiperf0_3.7-3_amd64.deb iperf3_3.7-3_amd64.deb国内机器apt remove iperf3 libiperf0

apt install libsctp1

wget http://yun.wikicc.cn/usr/uploads/libiperf0_3.7-3_amd64.deb

wget http://yun.wikicc.cn/usr/uploads/iperf3_3.7-3_amd64.deb

dpkg -i libiperf0_3.7-3_amd64.deb iperf3_3.7-3_amd64.deb

2.使用使用方法和centos一样

3.删除rm libiperf0_3.7-3_amd64.deb iperf3_3.7-3_amd64.deb

结果分析1.在测试时server端与client端都会出现测试的数据,client端以下是测试的结果:[jinguang1@localhost ~]$ iperf3 -c 10.23.5.66

Connecting to host 10.23.5.66, port 5201

[ 4] local 10.23.5.65 port 10412 connected to 22.23.5.66 port 5201

[ ID] Interval Transfer Bandwidth Retr Cwnd

[ 4] 0.00-1.00 sec 114 MBytes 953 Mbits/sec 0 95.5 KBytes

[ 4] 1.00-2.00 sec 113 MBytes 948 Mbits/sec 0 95.5 KBytes

[ 4] 2.00-3.00 sec 113 MBytes 950 Mbits/sec 0 95.5 KBytes

[ 4] 3.00-4.00 sec 113 MBytes 948 Mbits/sec 0 95.5 KBytes

[ 4] 4.00-5.00 sec 113 MBytes 950 Mbits/sec 0 95.5 KBytes

[ 4] 5.00-6.00 sec 113 MBytes 948 Mbits/sec 0 95.5 KBytes

[ 4] 6.00-7.00 sec 113 MBytes 948 Mbits/sec 0 95.5 KBytes

[ 4] 7.00-8.00 sec 113 MBytes 950 Mbits/sec 0 95.5 KBytes

[ 4] 8.00-9.00 sec 113 MBytes 948 Mbits/sec 0 95.5 KBytes

[ 4] 9.00-10.00 sec 113 MBytes 950 Mbits/sec 0 95.5 KBytes

- - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval Transfer Bandwidth Retr

[ 4] 0.00-10.00 sec 1.10 GBytes 949 Mbits/sec 0 sender

[ 4] 0.00-10.00 sec 1.10 GBytes 949 Mbits/sec receiver

从打印的内容看,缺省参数下,Client将连接Server端的5201端口,持续向Server端发送数据,并统计出每秒传输的字节数、带宽、出现报文重传的次数、拥塞窗口(Congestion Window)大小,整个测试将持续10秒钟;最后将汇总10秒的平均数据,并给出发送和接收端的统计。

2.接下来分析一下Server的测试输出结果:[jinguang1@localhost ~]$ iperf3 -s

warning: this system does not seem to support IPv6 - trying IPv4

-----------------------------------------------------------

Server listening on 5201

-----------------------------------------------------------

Accepted connection from 10.23.5.65, port 10410

[ 5] local 10.23.5.66 port 5201 connected to 10.23.5.65 port 10412

[ ID] Interval Transfer Bandwidth

[ 5] 0.00-1.00 sec 109 MBytes 913 Mbits/sec

[ 5] 1.00-2.00 sec 113 MBytes 948 Mbits/sec

[ 5] 2.00-3.00 sec 113 MBytes 949 Mbits/sec

[ 5] 3.00-4.00 sec 113 MBytes 949 Mbits/sec

[ 5] 4.00-5.00 sec 113 MBytes 949 Mbits/sec

[ 5] 5.00-6.00 sec 113 MBytes 949 Mbits/sec

[ 5] 6.00-7.00 sec 113 MBytes 949 Mbits/sec

[ 5] 7.00-8.00 sec 113 MBytes 949 Mbits/sec

[ 5] 8.00-9.00 sec 113 MBytes 949 Mbits/sec

[ 5] 9.00-10.00 sec 113 MBytes 949 Mbits/sec

[ 5] 10.00-10.04 sec 4.29 MBytes 947 Mbits/sec

- - - - - - - - - - - - - - - - - - - - - - - - -

[ ID] Interval Transfer Bandwidth

[ 5] 0.00-10.04 sec 0.00 Bytes 0.00 bits/sec sender

[ 5] 0.00-10.04 sec 1.10 GBytes 945 Mbits/sec receiver

-----------------------------------------------------------

Server listening on 5201

erver端缺省监听IPv6地址和端口,如果未配置IPv6,会尝试IPv4。日志显示接收了来自10.23.5.65,源端口未10410的测试请求。Client端连续进行了10秒的测试,并显示了每秒传输的字节数,带宽信息;测试结束后会汇总发送和接收的统计信息。在Client连接关闭之后会继续侦听5201端口。

疑难杂症提示 “ You might want to run apt-get --fix-broken install' to correct these: ”apt-get --fix-broken install

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值