Linux/centos Detecting network bandwidth and latency

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.