In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what are the commonly used network speed measurement tools in Linux. It is very detailed and has certain reference value. Friends who are interested must finish reading it.
Fast
Fast is a service provided by Netflix, which can be used not only from the command line, but also directly on the Web side: fast.com.
We can install this tool with the following command:
$npm install-global fast-cli
Whether it is the web side or the command line, it provides the most basic network download speed measurement. The easiest way to use it on the command line is as follows:
$fast 93 Mbps ↓
As can be seen from the above results, if you use the fast command directly, you will only return the network download speed. If you also want to get the upload speed of the network, you need to use the-u option.
$fast-u / 81 Mbps ↓ / 8.3 Mbps ↑ speedtest
Speedtest is a better 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:
$sudo apt install speedtest-cli$ sudo pip3 install speedtest-cli
When using it, you can run the speedtest command directly:
$speedtestRetrieving speedtest.net configuration...Testing from Tencent cloud computing (140.143.139.14)... Retrieving speedtest.net server list...Selecting best server based on ping...Hosted by Henan CMCC 5G (Zhengzhou) [9.69 km]: 28.288 msTesting download speed... .. Download: 56.20 Mbit/s
Testing upload speed... Upload: 1.03 Mbit/s
As you can see from the running results, the speedtest command will directly provide the upload / download rate, and the testing process is quite fast. You can write a script to call this command, then conduct regular network tests 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 maximum TCP bandwidth, has multiple parameters and UDP characteristics, and can report bandwidth, delay jitter and packet loss. Using the feature of iperf, it can be used to test the performance of some network devices such as routers, firewalls, switches and so on.
Debian distributions can install iPerf using the following command:
$sudo apt install iperf
This tool is available not only on Linux, but also on Mac and Windows.
If you want to test network bandwidth, you need two computers. Both computers need to be on the same network, one as a server and the other as a client, and both must have iPerf installed.
You can obtain the IP address of the server with the following command:
$ip addr show | grep inet.*brd inet 192.168.242.128 brd 24 brd 192.168.242.255 scope global dynamic noprefixroute ens33
We know that in a LAN, 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:
$iperf-s
Then we can wait for the client to connect. The client can connect to the server using the following command:
$iperf-c 192.168.242.128
After a few seconds of testing, it will return the network transmission rate and bandwidth.
The above is all the contents of the article "what are the commonly used network speed measurement tools in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.