Study of speedtest-cli Command
Experiment:
Study of speedtest-cli Command
๐ฏ Aim
To measure internet bandwidth (download and upload speed) using the speedtest-cli command.
๐ Objective
By the end of this experiment, students will be able to:
- Test internet speed from the command line
- Measure download and upload bandwidth
- Analyze network performance
- Compare speeds under different conditions
๐ Theory
The speedtest-cli is a command-line tool used to:
- Test internet speed using Speedtest.net servers
-
Measure:
- Ping (latency)
- Download speed
- Upload speed
๐ It connects to the nearest or selected server and performs data transfer tests.
๐ Useful for:
- Network troubleshooting
- ISP performance analysis
- Lab performance evaluation
๐งพ Syntax
๐ง Common Options
-
--simple→ Simple output (minimal details) -
--list→ List available test servers -
--server <id>→ Select specific server -
--bytes→ Show speeds in bytes instead of bits -
--share→ Generate shareable result image link
๐งฐ Prerequisites
- Linux system
- Internet connection
-
speedtest-cliinstalled
Installation:
๐ฌ Procedure & Commands
1️⃣ Run Basic Speed Test
2️⃣ Simple Output Format
3️⃣ List Available Servers
4️⃣ Test Using Specific Server
5️⃣ Show Speed in Bytes
6️⃣ Generate Shareable Result
๐ฅ️ Sample Output
๐ Output Interpretation
| Parameter | Meaning |
|---|---|
| Ping | Latency (response time) |
| Download | Speed of receiving data |
| Upload | Speed of sending data |
๐ Exercises for Students
- Perform a speed test and record results.
- Compare results at different times of the day.
- Test using different servers and compare speeds.
- Analyze ping vs download speed relationship.
-
Use
--simpleoption and interpret output.
❓ Viva Questions
-
What is
speedtest-cliused for? - What does ping indicate?
- Difference between download and upload speed?
- Why do speeds vary at different times?
- What is bandwidth?
⚠️ Precautions
- Ensure stable internet connection
- Close background downloads for accurate results
- Results may vary based on server and network load
✅ Result
The speedtest-cli command is a useful tool for measuring internet performance, helping users analyze network speed and reliability.
Comments
Post a Comment