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

speedtest-cli [options]

๐Ÿ”ง 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-cli installed

Installation:

sudo apt install speedtest-cli

๐Ÿ”ฌ Procedure & Commands

1️⃣ Run Basic Speed Test

speedtest-cli

2️⃣ Simple Output Format

speedtest-cli --simple

3️⃣ List Available Servers

speedtest-cli --list

4️⃣ Test Using Specific Server

speedtest-cli --server <server_id>

5️⃣ Show Speed in Bytes

speedtest-cli --bytes

6️⃣ Generate Shareable Result

speedtest-cli --share

๐Ÿ–ฅ️ Sample Output

Ping: 20.45 ms Download: 45.32 Mbit/s Upload: 12.67 Mbit/s

๐Ÿ” Output Interpretation

ParameterMeaning
Ping        Latency (response time)
Download        Speed of receiving data
Upload        Speed of sending data

๐Ÿ“ Exercises for Students

  1. Perform a speed test and record results.
  2. Compare results at different times of the day.
  3. Test using different servers and compare speeds.
  4. Analyze ping vs download speed relationship.
  5. Use --simple option and interpret output.

❓ Viva Questions

  • What is speedtest-cli used 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

Popular posts from this blog

Networks Lab PCCSL507 Semester 5 KTU CS 2024 Scheme - Dr Binu V P

Analysis of HTTP Protocol using Wireshark

Study and Use of ifconfig Command