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/03 Report--
Server System CentOS 7 -64 bit
Client: win10 64 bit
How to use iperf tool
As mentioned earlier, iPerf works in Server mode or Client mode, distinguished by different parameters (-s and-c). The functions supported by iPerf3 are also implemented by setting different parameters. The parameters of iPerf are divided into three categories: general parameters, server-side parameters, and client-side parameters. Common parameters are parameters that can be used by both Server and Client. Here are all the parameters supported by iPerf 3.1.2:
General parameters:
-p, --port #, the port number for server-side listening and client-side connection;
-f, --format [kmgKMG], units of data used in the report, Kbits, Mbits, KBytes, Mbytes;
-i, --interval #, the interval between reports in seconds;
-F, --file name, the file name of the file used for the test. If used on the Client side, send the file as a test; if used on the Server side, write the data to the file instead of discarding it;
-A, --affinity n/n,m, sets CPU affinity;
-B, --bind, bind the specified NIC interface;
-V, --verbose, output more details at runtime;
-J, --json, outputs results in JSON format at runtime;
--logfile f, output to file;
-d, --debug, outputs results in debug mode;
-v, --version, displays version information and exits;
-h, --help, displays help information and exits.
Server-side parameters:
-s, --server, running in Server mode;
-D, --daemon, runs as a daemon in the background;
-I, --pidfile, specifies the pid file;
-1, --one-off, accept only one test from the Client side, and then exit.
Client-side parameters
-c, --client, which runs in Client mode and specifies the server-side address;
-u, --udp, tested in UDP protocol;
-b, --bandwidth #[KMG][/#], limits test bandwidth. UDP defaults to 1Mbit/s, TCP defaults to unlimited;
-t, --time #, test with time as the test end condition, default is 10 seconds;
-n, --bytes #[KMG], test with data transfer size as test end condition;
-k, --blockcount #[KMG], test with the number of transmitted packets as the test end condition;
-l, --len #[KMG], length of read-write buffer, TCP default is 128K, UDP default is 8K;
--cport, specifies the TCP or UDP port used by the Client to run, default is temporary port;
-P, --parallel #, number of concurrent test streams;
-R, --reverse, reverse mode operation (Server side sends, Client side receives);
-w, --window #[KMG], set socket buffer size, window size in TCP mode;
-C, --congestion, setting TCP congestion control algorithm (Linux and FreeBSD only);
-M, --set-mss #, set TCP/SCTP maximum fragment length (MSS, MTU minus 40 bytes);
-N, --no-delay, set TCP/SCTP no delay, shield Nagle algorithm;
-4, --version4, IPv4 only;
-6, --version6, IPv6 only;
-S, --tos N, set IP type Of service (TOS);
-L, --flowlabel N, set IPv6 flow label (Linux only);
-Z, --zerocopy, sending data using the "zero copy" method;
-O, --omit N, ignoring the test of the first n seconds;
-T, --title str, sets the prefix of each line of test results;
--get-server-output, get test results from Server;
--udp-counters-64bit, use 64 bit counters in UDP test packets (to prevent counter overflow).
iPerf is very powerful and supports a lot of parameters. However, in practice, it is not necessary to use so many parameters simultaneously. When using, according to actual needs to set key parameters can be.
Examples:
Two computers A for server IP:10.10.10.10, B for client
A server side to open iperf
[root@fq ~]# iperf -s -u //Run iperf for service mode and turn on UDP mode
Ctrl+ C ends the Iperf process.
B client download iperf decompression, CMD into the directory.
C:\iperf2>iperf -u -c 10.10.10.10-b 100M -t 30 -i 10 //Run iperf as client, speed measurement using udp, speed measurement ip is 10.10.10.10, speed measurement bandwidth is 100M, speed measurement time is 30 seconds, report interval is 10
In addition to the above point-to-point speed measurement, you can also measure the speed of the host to the public server of iperf, as shown below, the exit bandwidth of my server can reach 4.54G, satisfying the instant explosion.
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.