170 likes | 190 Views
Learn how to use Iperf for measuring TCP/UDP throughput, delay jitter, and packet loss. Explore command line options and specific features for efficient network testing. Join the discussion on Nov. 30, 2005, with Quincy Wu and Ying Shun Lin.
E N D
Iperf Adviser:Quincy Wu Speaker:Ying Shun Lin Nov.30, 2005
Outline • Introduction to iperf • How to use iperf • Command line option / experiment
Introduction to Iperf ■iperf 為網路封包(IPv4/IPv6)產生軟體,進 而產生TCP & UDP的傳輸數據。 ■量測網路的 - TCP/UDP throughput (Max.) - UDP delay jitter - UDP pack loss
How to use iperf ■ Where to download? -http://dast.nlanr.net/Projects/Iperf/ ■ format - server side : $ iperf -s -% $ iperf -s -V - client side : $ iperf -c <server address> -% $ iperf -c<server IPv6 address>
Command line option class • Client / Server options • Server specific options • Client specific options
Command line option Server specific option • -s:run in server mode • -D:run the server as a daemon
Command line option (Client/Server) • -w:For TCP , window size (Default :8K for Windows 32.5K for FreeBSD) For UDP, buffer size (Default :8K for Windows 9K for FreeBSD) • -f:specifying the format to print bandwidth numbers in. 'b' = bits/sec 'B' = Bytes/sec 'k' = Kbits/sec 'K' = KBytes/sec 'm' = Mbits/sec 'M' = MBytes/sec 'g' = Gbits/sec 'G' = GBytes/sec (Default) 'a' = adaptive bits/sec 'A' = adaptive Bytes/sec
Command line option (cont) • -i:Sets the interval time. • -l:The length of buffers to read or write. - ( Default 8KB for TCP, 1470 bytes for UDP) - Buffer Delay is unfavorable to Real-Time Application. • -u:Use UDP rather than TCP. • -C:Compatibility mode allows for use with older version of iperf.
Command line option Client specific options • -b:for UDP, bandwidth to send atinbits/sec. (default 1 Mbit/sec, implies -u) • -n:number of bytes to transmit(instead of -t) • -t:time in seconds to transmit for (default 10 secs)
Command line option (cont) • -P:number of parallel client threads to run .
Command line option (cont) • -B:Bindto host,. This is only useful on multihomed hosts, which have multiple network interfaces. - For Iperf in UDP server mode, join to a multicast group. Use addresses in the range 224.0.0.0 to 239.255.255.255 for multicast