测试带宽的好工具 iperf
2013-11-14 18:05
232 查看
三,IPERF出手轻轻松松测量内网带宽:
Iperf是一个TCP/IP和UDP/IP的性能测量工具,能够提供网络吞吐率信息,以及震动、丢包率、最大段和最大传输单元大小等统计信息;从而能够帮助我们测试网络性能,定位网络瓶颈。我们可以通过访问http://www.noc.ucf.edu/tools/iperf/获得此工具,直接选择windows版本的iperf.exe下载即可。(如图3)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480867.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480867.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
用iperf.exe来测量网络两个结点的网络带宽非常简单,不过需要我们针对服务端与客户端进行设置。
第一步:例如我们要测试内网结点A与B两台计算机之间的传输带宽,那么我们需要复制iperf.exe到这两台计算机硬盘中。
第二步:随意选择结点A作为服务端,而B作为客户端,在A上进入命令提示窗口运行iperf -s命令,这样iperf将以服务端方式启动,并且通过TCP的5001端口监听数据。(如图4)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480692.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480692.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第三步:接下来我们返回到B结点进入命令提示窗口,然后运行iperf -c 192.168.0.199 -t 60,这个命令是将B结点以客户端的方式运行,并且连接IP地址为192.168.0.199的服务端,监视测量数据时间是60秒。(如图5)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480657.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480657.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第四步:运行完毕客户端将自动开启1903端口连接服务端的5001端口,通过发送与接收数据包来实现测量带宽的目的。
第五步:与此同时我们在服务端上也可以看到有客户端连接5001端口的提示,这表明两个结点已经建立了相应的连接,数据通讯正常。(如图6)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480747.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480747.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第六步:由于我们之前是设置了测量时间间隔为60秒,所以在60秒过后客户端结点上就会显示出测量的具体数据,从A到B发送接收数据的速度为177Mbits/sec,由于以太网数据传输是双向双工的,所以百M网线理想状态传输速度应该是200Mbits/sec。(如图7)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480585.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480585.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第七步:当然我们还可以通过在客户端上执行iperf -c 192.168.0.199 -t 60 -i 2,这样将每隔两秒自动将测量结果显示出来,在最后再计算其平均值。(如图8)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480350.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480350.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
通过简单的设置和简单的指令我们轻松实现了针对内网两个结点之间带宽传输速度的测量,当然iperf程序还支持很多参数,具体设置我们可以参考其帮助信息,比较常用的有-l 缓冲区大小,-m 显示tcp最大mtu值,-p 指定服务器端使用的端口或客户端所连接的端口,-u 使用udp协议,-w 指定TCP窗口大小,默认是8KB,-M 设定TCP数据包的最大mtu值等。另外在客户端上可以通过-n 指定传输的字节数,-r 单独进行双向传输测试,在服务端则可以通过-D参数以服务方式运行ipserf,以-R来停止iperf服务。
四,总结:
虽然IPERF现在有java的图形化界面,但是对于这个命令行小工具来说使用还是非常方便的,结果也很直观,现在他已经成为笔者判断网络是否拥堵,链路状态是否正常的好帮手。在实际使用和维护网络过程中屡建奇功。
阅读(3059) | 评论(0) | 转发(0) |
0
上一篇:常用的tar和rpm命令参数列表
下一篇:试玩了一下haproxy
相关热门文章
承接自动化测试培训、外包、实...
Solaris PowerTOP 1.0 发布
For STKMonitor
busybox的httpd使用CGI脚本(Bu...
项目小体会
请教想查12个月的数据条数,看...
new/delete 和malloc/free 有...
ubuntu下hadoop环境的搭建...
求助:如何用Linux架设ISATAP...
redhat图形界面不出先登录界面...
给主人留下些什么吧!~~
评论热议
Iperf是一个TCP/IP和UDP/IP的性能测量工具,能够提供网络吞吐率信息,以及震动、丢包率、最大段和最大传输单元大小等统计信息;从而能够帮助我们测试网络性能,定位网络瓶颈。我们可以通过访问http://www.noc.ucf.edu/tools/iperf/获得此工具,直接选择windows版本的iperf.exe下载即可。(如图3)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480867.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480867.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
用iperf.exe来测量网络两个结点的网络带宽非常简单,不过需要我们针对服务端与客户端进行设置。
第一步:例如我们要测试内网结点A与B两台计算机之间的传输带宽,那么我们需要复制iperf.exe到这两台计算机硬盘中。
第二步:随意选择结点A作为服务端,而B作为客户端,在A上进入命令提示窗口运行iperf -s命令,这样iperf将以服务端方式启动,并且通过TCP的5001端口监听数据。(如图4)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480692.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480692.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第三步:接下来我们返回到B结点进入命令提示窗口,然后运行iperf -c 192.168.0.199 -t 60,这个命令是将B结点以客户端的方式运行,并且连接IP地址为192.168.0.199的服务端,监视测量数据时间是60秒。(如图5)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480657.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480657.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第四步:运行完毕客户端将自动开启1903端口连接服务端的5001端口,通过发送与接收数据包来实现测量带宽的目的。
第五步:与此同时我们在服务端上也可以看到有客户端连接5001端口的提示,这表明两个结点已经建立了相应的连接,数据通讯正常。(如图6)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480747.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480747.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第六步:由于我们之前是设置了测量时间间隔为60秒,所以在60秒过后客户端结点上就会显示出测量的具体数据,从A到B发送接收数据的速度为177Mbits/sec,由于以太网数据传输是双向双工的,所以百M网线理想状态传输速度应该是200Mbits/sec。(如图7)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480585.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480585.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
第七步:当然我们还可以通过在客户端上执行iperf -c 192.168.0.199 -t 60 -i 2,这样将每隔两秒自动将测量结果显示出来,在最后再计算其平均值。(如图8)
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480350.jpg');}" alt="" src="http://www.pcjx.com/Cisco/UploadFiles_7463/200806/200862820480350.jpg" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" border=0>
通过简单的设置和简单的指令我们轻松实现了针对内网两个结点之间带宽传输速度的测量,当然iperf程序还支持很多参数,具体设置我们可以参考其帮助信息,比较常用的有-l 缓冲区大小,-m 显示tcp最大mtu值,-p 指定服务器端使用的端口或客户端所连接的端口,-u 使用udp协议,-w 指定TCP窗口大小,默认是8KB,-M 设定TCP数据包的最大mtu值等。另外在客户端上可以通过-n 指定传输的字节数,-r 单独进行双向传输测试,在服务端则可以通过-D参数以服务方式运行ipserf,以-R来停止iperf服务。
四,总结:
虽然IPERF现在有java的图形化界面,但是对于这个命令行小工具来说使用还是非常方便的,结果也很直观,现在他已经成为笔者判断网络是否拥堵,链路状态是否正常的好帮手。在实际使用和维护网络过程中屡建奇功。
阅读(3059) | 评论(0) | 转发(0) |
0
上一篇:常用的tar和rpm命令参数列表
下一篇:试玩了一下haproxy
相关热门文章
承接自动化测试培训、外包、实...
Solaris PowerTOP 1.0 发布
For STKMonitor
busybox的httpd使用CGI脚本(Bu...
项目小体会
请教想查12个月的数据条数,看...
new/delete 和malloc/free 有...
ubuntu下hadoop环境的搭建...
求助:如何用Linux架设ISATAP...
redhat图形界面不出先登录界面...
给主人留下些什么吧!~~
评论热议
相关文章推荐
- 网络带宽性能测试工具iperf
- 虚机间的网络带宽测试工具-iperf
- [工具]iperf测试带宽
- 2012-9-17:交换机带宽测试之iperf工具使用
- 网络性能测试工具iperf详细使用图文教程
- 网络性能测试工具iperf详细使用图文教程(转载)
- 网络性能测试工具Iperf简介
- 嵌入式开发中网络性能测试工具iperf的使用方法和注意事项
- 网络性能测试工具iperf详细使用图文教程【转载】
- IPerf——网络测试工具介绍与源码解析(5)
- 网络性能测试工具iperf详细使用图文教程
- Linux服务器网络带宽测试——iperf
- linux命令 iperf-网络性能测试工具
- iperf点对点网络性能测试工具
- 网络性能测试工具--iperf
- 使用Iperf工具进行网络性能测试
- IPerf——网络测试工具介绍与源码解析(3)
- iperf3.0带宽测试说明
- 网络性能测试工具iperf详细使用图文教程