Use the QPERF command to test network bandwidth and network latency under Linux
If no command can be installed with Yum, the command is as follows:
#yum-y Install Qperf
If there is no yum or no network, install the following RPM package in turn, this test is done on the CENTOS6 version, the package used is also version 6,
Download RPM Package Address: Centos6/redhat6 http://mirrors.163.com/centos/6/os/x86_64/Packages/or can be added at the bottom of the free access
After the RPM package is downloaded, install it sequentially and the command is as follows:
RPM–IVH--nodeps libibverbs-1.1.8-4.el6.x86_64.rpm
RPM–IVH--nodeps librdmacm-1.0.21-0.el6.x86_64.rpm
RPM–IVH qperf-0.4.9-1.el6.x86_64.rpm
These three RPM packages are installed on both the server and the client side
For example, I test the bandwidth and latency of 192.168.0.129 to 192.168.0.91 so 192.168.0.91 is the server, 192.168.0.129 is the client
Execute the following command on the 192.168.0.91 (server side):
#qperf
As shown, after executing the command, it stops there, stating that the boot was successful and then going to the client to perform the command test
Execute the following command on the 192.168.0.129 (client)
#qperf-T--use_bits_per_sec 192.168.0.91 TCP_BW
BW = 93.7 Mb/sec--------->>> This is the network bandwidth
Execute the following command on the 192.168.0.129 (client)
#qperf-T--use_bits_per_sec 192.168.0.91 Tcp_lat
Latency = 187us--------->>> This is network latency.
Because it is in the intranet test bandwidth comparison of large latency is small, are microseconds (US)
Here is the definition of network latency:
Network delay refers to a variety of data in the network media through the network protocol (such as TCP/IP) transmission, if the information is too large to limit, excess network traffic will cause the device slow response, resulting in network latency.
1~30ms: Very fast, almost imperceptible delay, play any game speed is particularly smooth.
31~50ms: Good, can play normal, no obvious delay situation.
51~100ms: Normal, the game of confrontation can feel a noticeable delay, a slight pause.
Greater than 100ms: poor, can not play the game, there is a lag, lost packets and drop the phenomenon.
If you are interested in this, please scan the QR code below for free for more details
Linux/centos Detecting network bandwidth and latency