网络性能测试工具(网速测试)Iperf详解V1.2

四月 9th, 2010 Posted in 6.综合内容 | 阅读次数: 2,161 次

Author:gaojinbo

Time:2010-4-8

环境:

千M交换机1台

6类网线2条

服务器2台,集成千M网卡

 

Iperf 是一个 TCP/IP 和 UDP/IP 的性能测量工具,能够提供网络吞吐率信息,以及震动、丢包率、最大段和最大传输单元大小等统计信息;

从而能够帮助我们测试网络性能,定位网络瓶颈。其设计从根本上克服了原来的一些工具,如 ttcp 和 nettest 等,的固有的缺陷。

有关iperf的命令参数可见http://cpss.zz.ha.cn/soft/iperf.htm或执行iperf –help
其实要用iperf命令进行网络带宽测试非常简单,记住主要几个参数即可:

 

下载地址:
http://downloads.sourceforge.net/project/iperf/iperf/2.0.4%20source/iperf-2.0.4.tar.gz?use_mirror=nchc

 

1)TCP测试
服务器执行:./iperf -s -i 1 -w 1M
客户端执行:./iperf -c host   -i  1  -w 1M
其中-w表示TCP window size,host需替换成服务器地址,-i sec 以秒为单位显示报告间隔。

 

2)UDP测试
服务器执行:./iperf -u -s
客户端执行:./iperf -u -c 192.168.1.222 -b 900M  -i 1  -w 1M  -t 60
其中-b表示使用多少带宽,1G的线路你可以使用900M进行测试,-t 60表示持续60秒

 

在纯千M网络环境下,通过网络传输的速度是108M/s,SSD固态硬盘的读写速度也才180M左右

1

 

完成!

相关日志:

Tags:

6 Responses to “网络性能测试工具(网速测试)Iperf详解V1.2”

  1. 莱客 Says:

    是LINUX服务器吗


  2. admin Says:

    iperf适合linux平台,也适合windows平台


  3. higkoo Says:

    很强悍!顶!!!


  4. Natural Remedies for Anxiety Says:

    Favourite Sites…

    [...]I like to honor other websites on the web, even if they are not related to my site, by linking to them. Below are some websites I think are worth checking out http://www.panicattackstreatmentcure.net/links/…...


  5. Candida Treatment Says:

    Recent Favourite Sites…

    [...]below you’ll find my recommended links page http://www.yeastinfectiontreatmentcure.net/links/ with some great sites that I think you should definitely go visit[...]…


  6. Resources Says:

    My Recommended Websites…

    [...]some new websites on the web we love, even if they are not related to ours. Check them out[...]…


留下您的脚印