In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to use iPerf speed measurement software, in view of this problem, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.
Server system CentOS7-64 bit
Client: win10 64 bit
How to use iperf tool
As mentioned earlier, iPerf works by specifying either Server mode or Client mode, distinguished by different parameters (- s and-c). The functions supported by iPerf3 are also achieved by setting different parameters. The parameters of iPerf can be divided into three categories: general parameters, Server-side parameters and Client-side parameters. The common parameters are those that can be used by both Server and Client. The following are all the parameters supported by iPerf 3.1.2:
General parameters:
-p,-- port #, port number of Server port listening and Client port connection
-f,-- format [kmgKMG], the data units used in the report, Kbits, Mbits, KBytes, Mbytes
-I,-- interval #, the interval of each report in seconds
-F,-- file name, the file name of the file used for the test. If used on the Client side, the file is sent as a test; if used on the Server side, the data is written to the file instead of discarded
-A,-- affinity nplink npender m, set the CPU affinity
-B,-- bind, binds the specified Nic interface
-V,-- verbose, output more details at runtime
-J,-- json, the runtime outputs the results in JSON format
-- logfile f, export to a file
-d,-- debug, output the result in debug mode
-v,-- version, display version information and exit
-h,-- help, displays help information and exits.
Server side parameters:
-s,-- server, running in Server mode
-D,-- daemon, running as a daemon in the background
-I,-- pidfile file, specify the pid file
-1,-- one-off, accept only one test from the Client side, and then exit.
Client end parameters
-c,-- client, which runs in Client mode and specifies the address of the Server side
-u,-- udp, testing with UDP protocol
-b,-- bandwidth # [KMG] [/ #], limit test bandwidth. UDP defaults to 1Mbit/ seconds, and TCP has no limit by default
-t,-- time #. Test with time as the end condition. Default is 10 seconds.
-n,-- bytes # [KMG], test with the data transfer size as the end condition of the test
-k,-- blockcount # [KMG] to test with the number of transmitted packets as the end condition of the test
-l,-- len # [KMG], the length of the read / write buffer. TCP defaults to 128K.
-- cport, which specifies the TCP or UDP port used by the Client side to run. The default is a temporary port.
-P,-- parallel #, number of concurrency of test data streams
-R,-- reverse, running in reverse mode (sent by Server side, received by Client side)
-w,-- window # [KMG], set socket buffer size, window size in TCP mode
-C,-- congestion, set TCP congestion control algorithm (only Linux and FreeBSD are supported)
-M,-- set-mss #, sets the maximum segment length of TCP/SCTP (MSS,MTU minus 40 bytes)
-N,-- no-delay, set TCP/SCTP no delay, mask Nagle algorithm
-4,-- version4, use IPv4 only
-6,-- version6, use IPv6 only
-S,-- tos N, set IP service type (TOS,Type Of Service)
-L,-- flowlabel N, set IPv6 stream label (only Linux is supported)
-Z,-- zerocopy, using the "zerocopy" (zero copy) method to send data
-O,-- omit N, ignore the test in the first n seconds
-T,-- title str, set the prefix for each line of test results
-- get-server-output to obtain the test results from the Server side
-- udp-counters-64bit, using 64-bit counters in UDP test packages (to prevent counters from overflowing).
IPerf is very powerful and supports a lot of parameters. However, in practical use, it is not necessary to use so many parameters at the same time. When using, it is OK to set the key parameters according to the actual needs.
Example:
Two computers A for the server and IP:10.10.10.10,B for the client
A server side opens iperf
[root@fq ~] # iperf-s-u / / run iperf as service mode and turn on UDP mode
Ctrl+c terminates the iperf process
B client downloads iperf and decompresses it, and CMD enters the directory.
C:\ iperf2 > iperf-u-c 10.10.10.10-b 100m-t 30-I 10 / / run iperf as the client and use udp to measure speed. The speed measurement ip is 10.10.10.10, the speed measurement bandwidth is 100m, the speed measurement time is 30 seconds, and the reported interval is 10.
In addition to the above point-to-point speed measurement, you can also measure the speed from the host to the public server of iperf. As shown in the figure below, the exit bandwidth of our server can reach 4.54G, resulting in an instant burst of satisfaction.
This is the answer to the question about how to use the iPerf speed measurement software. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.