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 three convenient command line network speed testing tools?

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article will explain in detail what the three convenient command line network speed testing tools are, and the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Use these three open source tools to check your Internet and LAN speed.

The ability to verify the speed of the network connection allows you to control the computer. The three open source tools that allow you to check the Internet and network speed on the command line are Speedtest, Fast, and iPerf.

Speedtest

Speedtest is an old pet. It is implemented in Python and packaged in Apt, or it can be installed in pip. You can use it as a command line tool or in Python scripts.

Use the following command to install:

Sudo apt install speedtest-cli

Or

Sudo pip3 install speedtest-cli

Then run it using the command speedtest:

$speedtestRetrieving speedtest.net configuration...Testing from CenturyLink (65.128.194.58)... Retrieving speedtest.net server list...Selecting best server based on ping...Hosted by CenturyLink (Cambridge UK) [20.49 km]: 31.566 msTesting download speed....Download: 68.62 Mbit/sTesting upload speed. .Upload: 10.93 Mbit/s

It provides you with the speed of uploading and downloading from the Internet. It is fast and scriptable, so you can run it periodically and save the output to a file or database to record the network speed over a period of time.

Fast

Fast is a service provided by Netflix. Its URL is Fast.com, and it has a command-line tool that can be installed through npm:

Npm install-global fast-cli

Both the website and the command line program provide the same basic interface: it is a speed test as simple as possible:

$fast 82 Mbps ↓

This command returns your network download speed. To get the upload speed, use the-u flag:

$fast-u / 80 Mbps ↓ / 8.2 Mbps ↑ iPerf

IPerf is a good way to test the speed of a local area network (rather than the speed of the Internet, as in the first two tools). Debian, Raspbian, and Ubuntu users can install it using apt:

Sudo apt install iperf

It can also be used for Mac and Windows.

After the installation is complete, you need to use it on two computers on the same network (both must have iPerf installed). Specify one of them as the server.

Get the IP address of the server computer:

Ip addr show | grep inet.*brd

Your local IP address (assuming IPv4 local network) starts with 192.168 or 10. Make a note of the IP address so that it can be used on another computer (the computer designated as the client).

Start iperf on the server:

Iperf-s

It waits for an incoming connection from the client. Use another computer as the client and run this command, replacing the IP in the example with the IP of the server computer:

Iperf-c 192.168.1.2

IPerf

It only takes a few seconds to complete the test, and then return the transmission size and the calculated bandwidth. I used a home server as a server and did some tests on PC and laptops. I recently installed Category 6 Ethernet around my house, so my cable connection speed is 1Gbps, but the WiFi connection speed is much slower.

You may have noticed that it was recorded as 16Gbps. That's when I use the server to test myself, so it's just testing the speed of writing to disk. The server has only 16 Gbps of hard drives, but my desktop has 46Gbps, and my (newer) laptop surpasses the 60Gbps because they all have solid state drives.

Using these tools to understand your network speed is a very simple task. If you prefer scripting or running from the command line, any of the above will satisfy you. If you want to know peer-to-peer metrics, iPerf can satisfy you.

On the three convenient command line network speed testing tools what are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Internet Technology

Wechat

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

12
Report