Iperf网络测试工具

这篇具有很好参考价值的文章主要介绍了Iperf网络测试工具。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Iperf网络测试工具

iperf

Iperf是一款基于TCP/IP和UDP/IP的网络性能测试工具,可以用来测量网络带宽和网络质量,提供网络延迟抖动、数据包丢失率、最大传输单元等统计信息。

安装

sudo apt install iperf

iperf源码仓库

measurement tool (github.com)

iperf官网

iPerf - The TCP, UDP and SCTP network bandwidth measurement tool

帮助手册

eddy@eddy:~$ iperf -h
Usage: iperf [-s|-c host] [options]
       iperf [-h|--help] [-v|--version]

Client/Server:
  -b, --bandwidth #[kmgKMG | pps]  bandwidth to send at in bits/sec or packets per second
  -e, --enhancedreports    use enhanced reporting giving more tcp/udp and traffic information
  -f, --format    [kmgKMG]   format to report: Kbits, Mbits, KBytes, MBytes
  -i, --interval  #        seconds between periodic bandwidth reports
  -l, --len       #[kmKM]    length of buffer in bytes to read or write (Defaults: TCP=128K, v4 UDP=1470, v6 UDP=1450)
  -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
      --udp-counters-64bit use 64 bit sequence numbers with UDP
  -w, --window    #[KM]    TCP window size (socket buffer size)
  -z, --realtime           request realtime scheduler
  -B, --bind <host>[:<port>][%<dev>] bind to <host>, ip addr (including multicast address) and optional port and device
  -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
  -S, --tos       #        set the socket's IP_TOS (byte) field

Server specific:
  -s, --server             run in server mode
  -t, --time      #        time in seconds to listen for new connections as well as to receive traffic (default not set)
      --udp-histogram #,#  enable UDP latency histogram(s) with bin width and count, e.g. 1,1000=1(ms),1000(bins)
  -B, --bind <ip>[%<dev>]  bind to multicast address and optional device
  -H, --ssm-host <ip>      set the SSM source, use with -B for (S,G)
  -U, --single_udp         run in single threaded UDP mode
  -D, --daemon             run the server as a daemon
  -V, --ipv6_domain        Enable IPv6 reception by setting the domain and socket to AF_INET6 (Can receive on both IPv4 and IPv6)

Client specific:
  -c, --client    <host>   run in client mode, connecting to <host>
  -d, --dualtest           Do a bidirectional test simultaneously
      --ipg                set the the interpacket gap (milliseconds) for packets within an isochronous frame
      --isochronous <frames-per-second>:<mean>,<stddev> send traffic in bursts (frames - emulate video traffic)
  -n, --num       #[kmgKMG]    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)
  -B, --bind [<ip> | <ip:port>] bind ip (and optional port) from which to source traffic
  -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 receive bidirectional tests back on
  -P, --parallel  #        number of parallel client threads to run
  -R, --reverse            reverse the test (client receives, server sends)
  -T, --ttl       #        time-to-live, for multicast (default 1)
  -V, --ipv6_domain        Set the domain to IPv6 (send packets over IPv6)
  -X, --peer-detect        perform server version detection and version exchange
  -Z, --linux-congestion <algo>  set TCP congestion control algorithm (Linux only)

Miscellaneous:
  -x, --reportexclude [CDMSV]   exclude C(connection) D(data) M(multicast) S(settings) V(server) reports
  -y, --reportstyle C      report as a Comma-Separated Values
  -h, --help               print this message and quit
  -v, --version            print version information and quit

[kmgKMG] Indicates options that support a k,m,g,K,M or G suffix
Lowercase format characters are 10^3 based and uppercase are 2^n based
(e.g. 1k = 1000, 1K = 1024, 1m = 1,000,000 and 1M = 1,048,576)

The TCP window size option can be set by the environment variable
TCP_WINDOW_SIZE. Most other options can be set by an environment variable
IPERF_<long option name>, such as IPERF_BANDWIDTH.

Source at <http://sourceforge.net/projects/iperf2/>
Report bugs to <iperf-users@lists.sourceforge.net>
eddy@eddy:~$

简单测试

server

iperf -s -i 1 -p 5001
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.159.131 port 5001 connected with 192.168.159.132 port 52464
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0- 1.0 sec   135 MBytes  1.13 Gbits/sec
[  4]  1.0- 2.0 sec   136 MBytes  1.14 Gbits/sec
[  4]  2.0- 3.0 sec  78.8 MBytes   661 Mbits/sec
[  4]  3.0- 4.0 sec  79.4 MBytes   666 Mbits/sec
[  4]  4.0- 5.0 sec   111 MBytes   932 Mbits/sec
[  4]  5.0- 6.0 sec   105 MBytes   877 Mbits/sec
[  4]  6.0- 7.0 sec   121 MBytes  1.02 Gbits/sec
[  4]  7.0- 8.0 sec   122 MBytes  1.03 Gbits/sec
[  4]  8.0- 9.0 sec   127 MBytes  1.06 Gbits/sec
[  4]  9.0-10.0 sec   106 MBytes   891 Mbits/sec
[  4]  0.0-10.0 sec  1.10 GBytes   941 Mbits/sec

client

eddy@eddy:~$ iperf -c 192.168.159.131 -i 1 -p 5001
------------------------------------------------------------
Client connecting to 192.168.159.131, TCP port 5001
TCP window size:  629 KByte (default)
------------------------------------------------------------
[  3] local 192.168.159.132 port 52464 connected with 192.168.159.131 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec   139 MBytes  1.16 Gbits/sec
[  3]  1.0- 2.0 sec   136 MBytes  1.14 Gbits/sec
[  3]  2.0- 3.0 sec  78.2 MBytes   656 Mbits/sec
[  3]  3.0- 4.0 sec  79.8 MBytes   669 Mbits/sec
[  3]  4.0- 5.0 sec   112 MBytes   935 Mbits/sec
[  3]  5.0- 6.0 sec   104 MBytes   871 Mbits/sec
[  3]  6.0- 7.0 sec   122 MBytes  1.02 Gbits/sec
[  3]  7.0- 8.0 sec   121 MBytes  1.02 Gbits/sec
[  3]  8.0- 9.0 sec   127 MBytes  1.07 Gbits/sec
[  3]  9.0-10.0 sec   106 MBytes   886 Mbits/sec
[  3]  0.0-10.0 sec  1.10 GBytes   943 Mbits/sec
eddy@eddy:~$

相关参数

eddy@eddy:~$ iperf -h
Usage: iperf [-s|-c host] [options]
       iperf [-h|--help] [-v|--version]

Client/Server:
  -b, --bandwidth #[kmgKMG | pps]  bandwidth to send at in bits/sec or packets per second
  -e, --enhancedreports    use enhanced reporting giving more tcp/udp and traffic information
  -f, --format    [kmgKMG]   format to report: Kbits, Mbits, KBytes, MBytes
  -i, --interval  #        seconds between periodic bandwidth reports
  -l, --len       #[kmKM]    length of buffer in bytes to read or write (Defaults: TCP=128K, v4 UDP=1470, v6 UDP=1450)
  -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
      --udp-counters-64bit use 64 bit sequence numbers with UDP
  -w, --window    #[KM]    TCP window size (socket buffer size)
  -z, --realtime           request realtime scheduler
  -B, --bind <host>[:<port>][%<dev>] bind to <host>, ip addr (including multicast address) and optional port and device
  -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
  -S, --tos       #        set the socket's IP_TOS (byte) field

Server specific:
  -s, --server             run in server mode
  -t, --time      #        time in seconds to listen for new connections as well as to receive traffic (default not set)      --udp-histogram #,#  enable UDP latency histogram(s) with bin width and count, e.g. 1,1000=1(ms),1000(bins)
  -B, --bind <ip>[%<dev>]  bind to multicast address and optional device
  -H, --ssm-host <ip>      set the SSM source, use with -B for (S,G)
  -U, --single_udp         run in single threaded UDP mode
  -D, --daemon             run the server as a daemon
  -V, --ipv6_domain        Enable IPv6 reception by setting the domain and socket to AF_INET6 (Can receive on both IPv4 and IPv6)

Client specific:
  -c, --client    <host>   run in client mode, connecting to <host>
  -d, --dualtest           Do a bidirectional test simultaneously
      --ipg                set the the interpacket gap (milliseconds) for packets within an isochronous frame
      --isochronous <frames-per-second>:<mean>,<stddev> send traffic in bursts (frames - emulate video traffic)
  -n, --num       #[kmgKMG]    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)
  -B, --bind [<ip> | <ip:port>] bind ip (and optional port) from which to source traffic
  -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 receive bidirectional tests back on
  -P, --parallel  #        number of parallel client threads to run
  -R, --reverse            reverse the test (client receives, server sends)
  -T, --ttl       #        time-to-live, for multicast (default 1)
  -V, --ipv6_domain        Set the domain to IPv6 (send packets over IPv6)
  -X, --peer-detect        perform server version detection and version exchange
  -Z, --linux-congestion <algo>  set TCP congestion control algorithm (Linux only)

Miscellaneous:
  -x, --reportexclude [CDMSV]   exclude C(connection) D(data) M(multicast) S(settings) V(server) reports
  -y, --reportstyle C      report as a Comma-Separated Values
  -h, --help               print this message and quit
  -v, --version            print version information and quit

[kmgKMG] Indicates options that support a k,m,g,K,M or G suffix
Lowercase format characters are 10^3 based and uppercase are 2^n based
(e.g. 1k = 1000, 1K = 1024, 1m = 1,000,000 and 1M = 1,048,576)

The TCP window size option can be set by the environment variable
TCP_WINDOW_SIZE. Most other options can be set by an environment variable
IPERF_<long option name>, such as IPERF_BANDWIDTH.

Source at <http://sourceforge.net/projects/iperf2/>
Report bugs to <iperf-users@lists.sourceforge.net>
eddy@eddy:~$

TCP

server

iperf -s -i 1 -p 5002  -l 512
------------------------------------------------------------
Server listening on TCP port 5002
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.159.131 port 5002 connected with 192.168.159.132 port 57890
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0- 1.0 sec  39.3 MBytes   330 Mbits/sec
[  4]  1.0- 2.0 sec  35.9 MBytes   301 Mbits/sec
[  4]  2.0- 3.0 sec  49.5 MBytes   416 Mbits/sec
[  4]  3.0- 4.0 sec  38.1 MBytes   320 Mbits/sec
[  4]  4.0- 5.0 sec  20.1 MBytes   168 Mbits/sec
[  4]  5.0- 6.0 sec  20.2 MBytes   170 Mbits/sec
[  4]  6.0- 7.0 sec  19.5 MBytes   164 Mbits/sec
[  4]  7.0- 8.0 sec  19.8 MBytes   166 Mbits/sec
[  4]  8.0- 9.0 sec  20.6 MBytes   173 Mbits/sec
[  4]  0.0-10.0 sec   284 MBytes   238 Mbits/sec

client

eddy@eddy:~$ iperf -c 192.168.159.131 -i 1 -p 5002 -t 10 -l 512
------------------------------------------------------------
Client connecting to 192.168.159.131, TCP port 5002
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.159.132 port 57890 connected with 192.168.159.131 port 5002
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  42.0 MBytes   353 Mbits/sec
[  3]  1.0- 2.0 sec  35.9 MBytes   301 Mbits/sec
[  3]  2.0- 3.0 sec  49.9 MBytes   419 Mbits/sec
[  3]  3.0- 4.0 sec  35.1 MBytes   294 Mbits/sec
[  3]  4.0- 5.0 sec  20.1 MBytes   169 Mbits/sec
[  3]  5.0- 6.0 sec  20.1 MBytes   169 Mbits/sec
[  3]  6.0- 7.0 sec  19.5 MBytes   164 Mbits/sec
[  3]  7.0- 8.0 sec  19.7 MBytes   165 Mbits/sec
[  3]  8.0- 9.0 sec  20.6 MBytes   173 Mbits/sec
[  3]  9.0-10.0 sec  20.8 MBytes   175 Mbits/sec
[  3]  0.0-10.0 sec   284 MBytes   238 Mbits/sec
eddy@eddy:~$

UDP

server

eddy@eddy:~$ iperf -s -i 1 -p 5002  -l 512 -b 1000M -u
------------------------------------------------------------
Server listening on UDP port 5002
Receiving 512 byte datagrams
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.159.131 port 5002 connected with 192.168.159.132 port 33698
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  3]  0.0- 1.0 sec  11.1 MBytes  92.7 Mbits/sec   0.036 ms  398/23031 (1.7%)
[  3]  1.0- 2.0 sec  10.0 MBytes  83.9 Mbits/sec   0.035 ms    0/20483 (0%)
[  3]  2.0- 3.0 sec  10.5 MBytes  88.3 Mbits/sec   0.035 ms   42/21607 (0.19%)
[  3]  3.0- 4.0 sec  7.31 MBytes  61.3 Mbits/sec   0.035 ms  510/15487 (3.3%)
[  3]  4.0- 5.0 sec  9.28 MBytes  77.8 Mbits/sec   0.043 ms    0/18996 (0%)
[  3]  5.0- 6.0 sec  10.1 MBytes  85.1 Mbits/sec   0.039 ms    0/20783 (0%)
[  3]  6.0- 7.0 sec  12.0 MBytes   101 Mbits/sec   0.036 ms    0/24672 (0%)
[  3]  7.0- 8.0 sec  12.1 MBytes   101 Mbits/sec   0.037 ms    0/24767 (0%)
[  3]  8.0- 9.0 sec  10.5 MBytes  88.2 Mbits/sec   0.037 ms   16/21558 (0.074%)
[  3]  9.0-10.0 sec  12.1 MBytes   102 Mbits/sec   0.169 ms    0/24865 (0%)
[  3]  0.0-10.0 sec   105 MBytes  88.2 Mbits/sec   0.169 ms  966/216249 (0.45%)
eddy@eddy:~$

client

eddy@eddy:~$ iperf -c 192.168.159.131 -i 1 -p 5002 -t 10 -l 512 -b 1000M -u
------------------------------------------------------------
Client connecting to 192.168.159.131, UDP port 5002
Sending 512 byte datagrams, IPG target: 3.91 us (kalman adjust)
UDP buffer size:  208 KByte (default)
------------------------------------------------------------
[  3] local 192.168.159.132 port 33698 connected with 192.168.159.131 port 5002
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  11.2 MBytes  94.2 Mbits/sec
[  3]  1.0- 2.0 sec  10.0 MBytes  83.9 Mbits/sec
[  3]  2.0- 3.0 sec  10.6 MBytes  88.5 Mbits/sec
[  3]  3.0- 4.0 sec  7.56 MBytes  63.4 Mbits/sec
[  3]  4.0- 5.0 sec  9.28 MBytes  77.8 Mbits/sec
[  3]  5.0- 6.0 sec  10.1 MBytes  85.0 Mbits/sec
[  3]  6.0- 7.0 sec  12.0 MBytes   101 Mbits/sec
[  3]  7.0- 8.0 sec  12.1 MBytes   101 Mbits/sec
[  3]  8.0- 9.0 sec  10.5 MBytes  88.3 Mbits/sec
[  3]  9.0-10.0 sec  12.2 MBytes   102 Mbits/sec
[  3]  0.0-10.0 sec   106 MBytes  88.6 Mbits/sec
[  3] Sent 216249 datagrams
[  3] Server Report:
[  3]  0.0-10.0 sec   105 MBytes  88.2 Mbits/sec   0.169 ms  966/216249 (0.45%)
eddy@eddy:~$

iperf3

安装

sudo apt install iperf3

帮助手册

eddy@eddy:~$ iperf3 -h
Usage: iperf3 [-s|-c host] [options]
       iperf3 [-h|--help] [-v|--version]

Server or Client:
  -p, --port      #         server port to listen on/connect to
  -f, --format   [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits
  -i, --interval  #         seconds between periodic throughput reports
  -F, --file name           xmit/recv the specified file
  -A, --affinity n/n,m      set CPU affinity
  -B, --bind      <host>    bind to the interface associated with the address <host>
  -V, --verbose             more detailed output
  -J, --json                output in JSON format
  --logfile f               send output to a log file
  --forceflush              force flushing output at every interval
  -d, --debug               emit debugging output
  -v, --version             show version information and quit
  -h, --help                show this message and quit
Server specific:
  -s, --server              run in server mode
  -D, --daemon              run the server as a daemon
  -I, --pidfile file        write PID file
  -1, --one-off             handle one client connection then exit
  --rsa-private-key-path    path to the RSA private key used to decrypt
                            authentication credentials
  --authorized-users-path   path to the configuration file containing user
                            credentials
Client specific:
  -c, --client    <host>    run in client mode, connecting to <host>
  --sctp                    use SCTP rather than TCP
  -X, --xbind <name>        bind SCTP association to links
  --nstreams      #         number of SCTP streams
  -u, --udp                 use UDP rather than TCP
  --connect-timeout #       timeout for control connection setup (ms)
  -b, --bitrate #[KMG][/#]  target bitrate in bits/sec (0 for unlimited)
                            (default 1 Mbit/sec for UDP, unlimited for TCP)
                            (optional slash and packet count for burst mode)
  --pacing-timer #[KMG]     set the timing for pacing, in microseconds (default 1000)
  --fq-rate #[KMG]          enable fair-queuing based socket pacing in
                            bits/sec (Linux only)
  -t, --time      #         time in seconds to transmit for (default 10 secs)
  -n, --bytes     #[KMG]    number of bytes to transmit (instead of -t)
  -k, --blockcount #[KMG]   number of blocks (packets) to transmit (instead of -t or -n)
  -l, --length    #[KMG]    length of buffer to read or write
                            (default 128 KB for TCP, dynamic or 1460 for UDP)
  --cport         <port>    bind to a specific client port (TCP and UDP, default: ephemeral port)
  -P, --parallel  #         number of parallel client streams to run
  -R, --reverse             run in reverse mode (server sends, client receives)
  --bidir                   run in bidirectional mode.
                            Client and server send and receive data.
  -w, --window    #[KMG]    set window size / socket buffer size
  -C, --congestion <algo>   set TCP congestion control algorithm (Linux and FreeBSD only)
  -M, --set-mss   #         set TCP/SCTP maximum segment size (MTU - 40 bytes)
  -N, --no-delay            set TCP/SCTP no delay, disabling Nagle's Algorithm
  -4, --version4            only use IPv4
  -6, --version6            only use IPv6
  -S, --tos N               set the IP type of service, 0-255.
                            The usual prefixes for octal and hex can be used,
                            i.e. 52, 064 and 0x34 all specify the same value.
  --dscp N or --dscp val    set the IP dscp value, either 0-63 or symbolic.
                            Numeric values can be specified in decimal,
                            octal and hex (see --tos above).
  -L, --flowlabel N         set the IPv6 flow label (only supported on Linux)
  -Z, --zerocopy            use a 'zero copy' method of sending data
  -O, --omit N              omit the first n seconds
  -T, --title str           prefix every output line with this string
  --extra-data str          data string to include in client and server JSON
  --get-server-output       get results from server
  --udp-counters-64bit      use 64-bit counters in UDP test packets
  --repeating-payload       use repeating pattern in payload, instead of
                            randomized payload (like in iperf2)
  --username                username for authentication
  --rsa-public-key-path     path to the RSA public key used to encrypt
                            authentication credentials

[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-

iperf3 homepage at: https://software.es.net/iperf/
Report bugs to:     https://github.com/esnet/iperf
eddy@eddy:~$

TCP

server

iperf3 -s -i 1 -p 1314

client

eddy@eddy:~$ iperf3 -c 192.168.159.131 -p 1314 -f m -i 1 -n 1000M -l 1K
Connecting to host 192.168.159.131, port 1314
[  5] local 192.168.159.132 port 44740 connected to 192.168.159.131 port 1314
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  52.7 MBytes   442 Mbits/sec    0    433 KBytes
[  5]   1.00-2.00   sec   102 MBytes   850 Mbits/sec    0    458 KBytes
[  5]   2.00-3.00   sec  95.5 MBytes   804 Mbits/sec    0    484 KBytes
[  5]   3.00-4.00   sec   103 MBytes   864 Mbits/sec    0    512 KBytes
[  5]   4.00-5.00   sec  99.6 MBytes   835 Mbits/sec    0    512 KBytes
[  5]   5.00-6.00   sec  95.1 MBytes   799 Mbits/sec    0    512 KBytes
[  5]   6.00-7.00   sec   107 MBytes   894 Mbits/sec    0    512 KBytes
[  5]   7.00-8.00   sec   104 MBytes   869 Mbits/sec    0    550 KBytes
[  5]   8.00-9.00   sec  93.2 MBytes   783 Mbits/sec    0    622 KBytes
[  5]   9.00-10.00  sec  78.1 MBytes   655 Mbits/sec    0    622 KBytes
[  5]  10.00-11.00  sec  54.6 MBytes   458 Mbits/sec    1   1.24 MBytes
[  5]  11.00-11.16  sec  16.3 MBytes   846 Mbits/sec    0   1.24 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-11.16  sec  1000 MBytes   752 Mbits/sec    1             sender
[  5]   0.00-11.21  sec   994 MBytes   744 Mbits/sec                  receiver

iperf Done.

UDP

server

iperf3 -s -i 1 -p 1314
-----------------------------------------------------------
Server listening on 1314
-----------------------------------------------------------
Accepted connection from 192.168.159.131, port 58310
[  5] local 192.168.159.131 port 1314 connected to 192.168.159.131 port 57107
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-1.00   sec   113 MBytes   950 Mbits/sec  0.055 ms  35/3660 (0.96%)  
[  5]   1.00-2.00   sec   119 MBytes   999 Mbits/sec  0.048 ms  2/3813 (0.052%)  
[  5]   2.00-3.00   sec   119 MBytes   998 Mbits/sec  0.072 ms  6/3815 (0.16%)  
[  5]   3.00-4.00   sec   117 MBytes   983 Mbits/sec  0.081 ms  66/3815 (1.7%)  
[  5]   4.00-5.00   sec   111 MBytes   932 Mbits/sec  1.192 ms  174/3731 (4.7%)  
[  5]   5.00-6.00   sec   109 MBytes   916 Mbits/sec  0.126 ms  403/3896 (10%)  
[  5]   6.00-7.00   sec   108 MBytes   903 Mbits/sec  0.460 ms  352/3796 (9.3%)  
[  5]   7.00-8.00   sec   116 MBytes   972 Mbits/sec  0.265 ms  118/3834 (3.1%)  
[  5]   8.00-9.00   sec   115 MBytes   968 Mbits/sec  0.140 ms  127/3814 (3.3%)  
[  5]   9.00-10.00  sec   119 MBytes   998 Mbits/sec  0.038 ms  9/3814 (0.24%)  
[  5]  10.00-10.04  sec  4.94 MBytes  1.02 Gbits/sec  0.027 ms  0/158 (0%)  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.04  sec  1.12 GBytes   962 Mbits/sec  0.027 ms  1292/38146 (3.4%)  receiver

client

iperf3 -u -c 192.168.159.131 -b 1000m -t 10 -p 1314
Connecting to host 192.168.159.131, port 1314
[  5] local 192.168.159.131 port 57107 connected to 192.168.159.131 port 1314
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec   119 MBytes   999 Mbits/sec  3814  
[  5]   1.00-2.00   sec   119 MBytes  1.00 Gbits/sec  3814  
[  5]   2.00-3.00   sec   119 MBytes  1000 Mbits/sec  3816  
[  5]   3.00-4.00   sec   119 MBytes  1000 Mbits/sec  3814  
[  5]   4.00-5.00   sec   119 MBytes   999 Mbits/sec  3809  
[  5]   5.00-6.00   sec   119 MBytes  1.00 Gbits/sec  3820  
[  5]   6.00-7.00   sec   119 MBytes   999 Mbits/sec  3813  
[  5]   7.00-8.00   sec   119 MBytes  1.00 Gbits/sec  3816  
[  5]   8.00-9.00   sec   119 MBytes   999 Mbits/sec  3815  
[  5]   9.00-10.00  sec   119 MBytes  1.00 Gbits/sec  3815  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  1.16 GBytes  1000 Mbits/sec  0.000 ms  0/38146 (0%)  sender
[  5]   0.00-10.04  sec  1.12 GBytes   962 Mbits/sec  0.027 ms  1292/38146 (3.4%)  receiver

iperf Done.

🎆
😪


参考

  1. iperf和iperf3详解 - 宅女士 - 博客园 (cnblogs.com)
  2. 第 4 章 Netperf 网络测试 (brinnatt.com)

iperf

命令参数

  1. iperf linux 命令 在线中文手册 (51yip.com)

  2. Iperf参数介绍_cqwei1987的博客-CSDN博客_iperf 参数

  3. [iperf 和 iperf3 命令以及参数详解 - cloudwas - 博客园 (cnblogs.com)](https://www.cnblogs.com/cloudwas/p/13084815.html#:~:text= perf是一个网络性能测试工具。 数据包丢失。,Iperf在linux和windows平台均有二进制版本供自由使用。 iperf3是用来测量一个网络最大带宽的工具。 通信协议。 每次测试,它都会报告网络带宽,丢包率和其他参数。)

使用参考

  1. iperf网络测试工具 - 腾讯云开发者社区-腾讯云 (tencent.com)

  2. Iperf使用方法与参数说明_Aiolos2015的博客-CSDN博客_iperf 参数说明

iperf3

  1. Iperf3网络性能测试工具详解教程 - pycod - 博客园 (cnblogs.com)

  2. iperf3 测试宽带, 设置tcp和udp包大小 - 韩若明瞳 - 博客园 (cnblogs.com)

  3. iperf3使用方法详解 - 知乎 (zhihu.com)

  4. iperf3网络测试工具使用方法_小白典的博客-CSDN博客_iperf3使用方法

  5. 【山外笔记-工具框架】iperf3网络性能测试工具详解教程-云社区-华为云 (huaweicloud.com)文章来源地址https://www.toymoban.com/news/detail-461823.html

到了这里,关于Iperf网络测试工具的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 网络测试工具—— iperf2详细使用方法

    很多公司都在将自己的无线网络升级到802.11n,以实现更大的吞吐量、更广的覆盖范围和更高的可靠性,然而保证无线LAN(WLAN)的性能对于确保足够的网络容量和覆盖率尤为重要。下面,我们将探讨如何通过iPerf来测定网络性能,这是一个简单易用测量TCP/UDP的吞吐量、损耗和

    2024年02月06日
    浏览(72)
  • 网络测试工具——iperf3详细使用说明

    iperf3是一款带宽测试工具,它支持调节各种参数,比如通信协议,数据包个数,发送持续时间,测试完会报告网络带宽,丢包率和其他参数。 操作系统:Ubuntu20.04LTS 打开终端,直接输入 说明:不同的系统安装方式不同,这里只介绍ubuntu系统 环境假设: 假设两台设备。 A(客

    2024年02月03日
    浏览(53)
  • Linux环境安装iperf3(网络性能测试工具)

    iperf官网地址: iPerf - The TCP, UDP and SCTP network bandwidth measurement tool   iperf特性: 测量带宽 报告MSS/MTU大小和观察到的读数大小。 通过套接字缓冲区支持TCP窗口大小。 UDP 客户端可以创建指定带宽的UDP流。 测量数据包丢失 测量延迟抖动 支持多播 跨平台:Windows、Linux、Android、

    2024年02月03日
    浏览(42)
  • 网络丢包带宽测试工具 iperf3 简单认知

    iperf3  是一种网络性能测试工具 工作中用到,这里简单介绍 理解不足小伙伴帮忙指正 对每个人而言,真正的职责只有一个:找到自我。然后在心中坚守其一生,全心全意,永不停息。所有其它的路都是不完整的,是人的逃避方式,是对大众理想的懦弱回归,是随波逐流,是

    2024年02月05日
    浏览(49)
  • 网络测试工具—— iperf2 安卓APK 下载 及简单使用

    项目上有一款安卓车机加载局域网图片加载非常慢,所以需要测试一个安卓车机设备的带宽,经过调研后使用到了iperf2。 iperf2是一款开源的网络性能测试工具,用于测量TCP和UDP带宽质量。它支持测量最大TCP带宽,并具有多种参数和UDP特性。iperf2可以报告带宽、延迟抖动和数据

    2024年02月04日
    浏览(47)
  • iperf3网络带宽性能测试工具 局域网网络最大带宽高阶教程

            iperf3 是一个 TCP, UDP, 和 SCTP (传输层协议)网络带宽测量工具,iperf 是一个用于主动测量 IP 网络上最大可用带宽的工具. 它支持与时间、协议和缓冲区相关的各种参数的调优. 对于每个测试,它报告测量的吞吐量/比特率(带宽), 丢包率和其他参数, iperf的版本不向下兼

    2024年02月20日
    浏览(43)
  • 带宽测试工具 iperf3

    带宽测试工具-iperf3 iperf3是一款带宽测试工具,它支持调节各种参数,比如通信协议,数据包个数,发送持续时间,测试完会报告网络带宽,丢包率和其他参数。 操作系统:centos7.0 软件下载网址:https://iperf.fr/iperf-download.php(选择对应的发行版) 软件名称:iperf3-3.1.3-1.fc24.

    2023年04月09日
    浏览(41)
  • 服务器带宽测试工具:iPerf的安装与使用

    Linux 环境安装及相关使用命令: 一、安装 iperf3 1、 yum 安装 2、其他操作系统可以下载官网的软件包 下载完成后可以通 rpm -ivh 进行安装。 官网地址: https://iperf.fr/iperf-download.php 二、服务端启动命令 1、开启 ipert3 服务器端 2、客户端测速命令 举个例子: Windows 环境安装及相关

    2024年02月07日
    浏览(62)
  • WX1860- ngbe-1.2.5 xdp程序在路由模式下,使用iperf工具测试数据包不转发,用jmeter可以

       本地验证时重定向iperf包有出现calltrace错误,经推断,系统PAGE_SIZE8k时可能出现(getconf PAGE_SIZE指令可查看),按下图将ngbe_main.c的2350行ngbe_rx_bufsz改为ngbe_rx_pg_size可修复。其次,需要将加载xdp重定向的网口改为混杂模式(ifconfig eth promisc),否则iper建立连接时回应的报文

    2024年02月12日
    浏览(33)
  • 开源安全测试工具 | 网络安全工具列表

    • AttackSurfaceMapper (https://github.com/superhedgy/AttackSurfaceMapper) - 自动化渗透测试工具, 使用手册/测试流程 (https://www.uedbox.com/post/59110/)。 • vajra (https://github.com/r3curs1v3-pr0xy/vajra) - 自动化渗透测试. • Savior (https://github.com/Mustard404/Savior) - 渗透测试报告自动生成工具!. • OneForAll (h

    2024年02月03日
    浏览(49)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包