iperf

Iperf is a tool for testing network quality, such as bandwidth, throughput and so on. 

The installation on ubuntu is easy, using the command : apt-get install iperf.

On linux ,we can also install jperf , a graphic interface for iperf, Just download the package from website, and perform " ./jperf.sh" , without other installaton steps.

With jperf, iperf is easy to use, so I don't intend to write turial for jperf. 

On android perform, we can donwload iperf.apk and install it, But we has to use the command pattern. Here are some basic use tutorial.


(1) By default, the Iperf client connects to the Iperf server on the TCP port 5001 and the bandwidth displayed by Iperf is the bandwidth from the client to the server.
If you want to use UDP tests, use the -u argument.
The -d and -r Iperf client arguments measure the bi-directional bandwidths.

client side: 

# iperf –c serverIP

server side:

#iperf –s

(2) Data formatting: (-f argument)

The -f argument can display the results in the desired format: bits(b), bytes(B), kilobits(k), kilobytes(K), megabits(m), megabytes(M), gigabits(g) or gigabytes(G).
Generally the bandwidth measures are displayed in bits (or Kilobits, etc ...) and an amount of data is displayed in bytes (or Kilobytes, etc ...).

client side :  # iperf –c serverIP –f b

server side: #iperf –s 

(3) Bi-directional bandwidth measurement: (-r argument)

The Iperf server connects back to the client allowing the bi-directional bandwidth measurement. By default, only the bandwidth from the client to the server is measured.
If you want to measure the bi-directional bandwidth simultaneously, use the -d keyword. (See next test.) 
client side :  # iperf –c serverIP –r

server side: #iperf –s 

(4)  UDP tests: (-u), bandwidth settings (-b)

client side :  # iperf –c serverIP –u –b 10m

server side: #iperf –s –u –i 1

 

Reference: 

http://openmaniak.com/iperf.php

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值