No matter what operating system you use, network speed is a performance indicator that you care about very much. After all, no one wants to watch a video and then the network speed is so slow that you doubt your life. This article introduces three network speed test tools under the Linux command line, so that you can know your network status anytime and anywhere.
fast Fast is a service provided by Netflix. It can be used not only through the command line, but also directly on the Web: fast.com. We can install this tool with the following command:
Whether it is a web page or a command line, it provides the most basic network download speed test. The simplest way to use it under the command line is as follows:
From the above results, we can see that if we use the fast command directly, it will only return the network download speed. If you also want to get the network upload speed, you need to use the -u option.
speedtest speedtest is a more well-known tool. It is written in Python and can be installed using the apt or pip command. You can use it from the command line or import it directly into your Python project. Installation method:
When using it, you can directly run the speedtest command:
As you can see from the running results, the speedtest command will directly provide the upload/download rate, and the test process is also very fast. You can write a script to call this command, and then perform network tests regularly and save the results in a file or database, so that you can track your network status in real time. iPerf iperf is a network performance testing tool that can test TCP and UDP bandwidth quality, measure the maximum TCP bandwidth, have multiple parameters and UDP features, and report bandwidth, delay jitter, and packet loss. Using this feature, iperf can be used to test the performance of some network devices such as routers, firewalls, switches, etc. For Debian based distributions, you can install iPerf using the following command:
This tool is not only available on Linux systems, but also on Mac and Windows systems. If you want to test network bandwidth, you need two computers. These two computers need to be in the same network, one as the server and the other as the client, and both must have iPerf installed. You can get the server's IP address by running the following command:
We know that in the local area network, our ipv4 address usually starts with 192.168. After running the above command, we need to write down the address of the server, which will be used later. After that, we start the iperf tool on the server:
Then, we can wait for the client to connect. The client can use the following command to connect to the server:
After a few seconds of testing, it will return the network transmission rate and bandwidth. |
HostingViet has launched a promotion for the firs...
OneTechCloud is offering a 20% discount on monthl...
Part 01 Audio and video communication process Aud...
UFOVPS is currently carrying out a spring promoti...
On January 25, China's Ministry of Industry a...
Recently, China Mobile announced the bidding resu...
The term Ethernet refers to a wired connection th...
AlphaVPS recently announced that it has started t...
V5.NET has announced the news of new cloud server...
As digital transformation progresses and cloud-ne...
5G communication networks are reportedly faster t...
The pandemic has exposed gaps in nearly every ind...
HostUS has a low presence now, but it was very po...
Thanks to the rapid deployment of the network and...
[[247528]] According to foreign media reports, an...