Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the network speed measurement tools of Linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

What are the knowledge points of this article "what are the network speed measurement tools of Linux?" most people do not understand, so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this article "what are the network speed measurement tools of Linux?"

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 provides the most basic network download speed measurement, both on the web side and on the command line. The easiest way to use it on the command line is as follows:

As can be seen from the above results, $fast 93 Mbps ↓ will only return the network download speed if you use the fast command directly. 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 ↑ speedtestspeedtest 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:

When using $sudo apt install speedtest-cli or $sudo pip3 install speedtest-cli, you can simply run the speedtest command:

$speedtest Retrieving 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 ms Testing download speed.... Download: 56.20 Mbit/s Testing upload speed. Upload: 1.03 Mbit/s from the running results, we can see that 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.

IPerfiperf 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:

The $sudo apt install iperf 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 scope global dynamic noprefixroute ens33 24 brd 192.168.242.255 We know that in the 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 passes the test for a few seconds, and it returns the network transmission rate and bandwidth.

The above is about the content of this article on "what are the network speed measurement tools of Linux". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report