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. |
At this early stage, 6G wide-area wireless has fe...
Hello everyone, I am Zhibeijun. Today, I will lea...
V5 Server (V5.NET) mainly provides independent se...
After the Chinese New Year, HostKvm sent a specia...
The business of the three major operators has bee...
Want to self-check and improve your cybersecurity...
Recently, VIAVI Solutions, a provider of communic...
The construction industry is an important pillar ...
[Original article from 51CTO.com] Not long ago, a...
[51CTO.com original article] Recalling the scene ...
On May 8, the "2021 China Digital Ecosystem ...
Tribes often share information about CloudCone, m...
Just like cellular standards, Wi-Fi standards are...
[[412406]] As an industry that deeply integrates ...
[[346255]] On the one hand, it is because various...