iperf测速工具的使用方法简介

Iperf is a commonly used network testing tool that can createTCP and UDP data streams and measure the throughput of a network that is carrying them. Iperf is a tool for network performance measurement written inC++. Iperf was developed by the Distributed Applications Support Team (DAST) at the National Laboratory for Applied Network Research (NLANR).

Iperf allows the user to set various parameters that can be used for testing a network, or alternately for optimizing or tuning a network. Iperf has aclient and server functionality, and can measure the throughput between the two ends, either unidirectionally or bi-directionally. It isopen source software and runs on various platforms including Linux, Unix and Windows.

  • UDP: When used for testing UDP capacity, Iperf allows the user to specify the datagram size and provides results for the datagram throughput and the packet loss.
  • TCP: When used for testing TCP capacity, Iperf measures the throughput of the payload. One thing to note is that Iperf uses 1024*1024 formegabytes and 1000*1000 formegabits.

Typical Iperf output contains a timestamped report of the amount of data transferred and the throughput measured.

Iperf is significant as it is a cross-platform tool that can be run over any network and output standardized performance measurements. Thus it can be used for comparison of wired and wireless networking equipment and technologies in an unbiased way[citation needed]. Since it is also open source, the measurement methodology can be scrutinized by the user as weInstall Iperf

What can Iperf do for our testing?

It will help us the WiFi-AP 802.11 protocol performance, like the throughout and bandwidth.

Setup the environment:
Linux
1.you must have an internet connection to install

2.enter the root in terminal(su or sudo passwd root)

3.apt-get install iperf

4.apt-get install build-essential

5.wgethttp://jaist.dll.sourceorge.net/project/iperf/iperf-2.0.5.tar.gz

6. tar zxvf iperf.2.0.5.tar.gz

7../configure

8.make

9.make install clean

BTW, if you have already downloaded the iperf package, you can directly install it.


tar xvf iperf-2.0.5.tar.gz
cd iperf-2.0.5
./configure
make
make install


In this example I will use the linux iperf as server

Start server
iperf -s

Windows
download iper like:https://nocweboldcst.ucf.edu/files/iperf.exe

1.Open CMD

2.Go to the folder/disk iperf.exe located

In this example  will use the windows iperf as client to send TCP/UDP message

3.iperf.exe <ip of the server> (Please try ifconfig to get the Linux IP) 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值