网络测速软件IPERF

来源:互联网 发布:财务报表数据 编辑:程序博客网 时间:2024/04/28 08:58

實驗目的:
使用網路測量軟體iperf,並藉由改變其參數來觀察無線網路的產出量或封包遺失率等變化。


實驗環境配置:
使用iperf 時必須有iperf server 端與iperf client 端,因此,我們以一部架設無線基地台的桌上型電腦做為server 端(作業系統為windows),再以一部簡易型電腦(Eee PC)(作業系統為Linux)做為client 端。


實驗步驟:
server 端:
首先,server 端必須先啟動iperf server 服務。程序為開啟Dos 視窗,並參考下列參數說明啟動server 服務『iperf –s –參數』。注意要做的題目是UDP 或TCP,不同的傳輸模式在開啟server 時所下的參數亦不同。


Client 端:
開啟Eee PC 中的「無線網路」選項,並選擇與SSID 為「WN_Lab」的基地台聯結,接著開啟一終端機程式(Ctrl+Alt+t),並輸入『iperf –c X.X.X.X(server IP) –參數』與server 聯結,並依題目改變所下的參數。若須更改基地台設定(如:Channel No.),請在server 端可開啟網頁並在網址欄輸入192.168.1.1 進入無線基地台設定頁面,並由其中改變設定,進入設定頁面預設帳密皆為”admin”,請不要更改。更改完後client 端可能要重新聯結。


參數說明:
Usage: iperf [-s|-c host] [options]
iperf [-h|--help] [-v|--version]


Client/Server:
-f, --format [kmKM] format to report: Kbits, Mbits, KBytes, MBytes
-i, --interval # seconds between periodic bandwidth reports
-l, --len #[KM] length of buffer to read or write (default 8 KB)
-m, --print_mss print TCP maximum segment size (MTU - TCP/IP header)
-o, --output <filename> output the report or error message to this specified file
-p, --port # server port to listen on/connect to
-u, --udp use UDP rather than TCP
-w, --window #[KM] TCP window size (socket buffer size)
-B, --bind <host> bind to <host>, an interface or multicast address
-C, --compatibility for use with older versions does not sent extra msgs
-M, --mss # set TCP maximum segment size (MTU - 40 bytes)
-N, --nodelay set TCP no delay, disabling Nagle's Algorithm
-V, --IPv6Version Set the domain to IPv6


Server specific:
-s, --server run in server mode
-D, --daemon run the server as a daemon
-R, --remove remove service in win32


Client specific:
-b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec
(default 1 Mbit/sec, implies -u)
-c, --client <host> run in client mode, connecting to <host>
-d, --dualtest Do a bidirectional test simultaneously
-n, --num #[KM] number of bytes to transmit (instead of -t)
-r, --tradeoff Do a bidirectional test individually
-t, --time # time in seconds to transmit for (default 10 secs)
-F, --fileinput <name> input the data to be transmitted from a file
-I, --stdin input the data to be transmitted from stdin
-L, --listenport # port to recieve bidirectional tests back on
-P, --parallel # number of parallel client threads to run
-T, --ttl # time-to-live, for multicast (default 1)


Miscellaneous:
-h, --help print this message and quit
-v, --version print version information and quit