Study of mtr Command
Experiment
Study of mtr Command
๐ฏ Aim
To analyze network connectivity and performance using the mtr command.
๐ Objective
By the end of this experiment, students will be able to:
-
Combine the functionality of
pingandtraceroute - Monitor real-time network path performance
- Identify packet loss and latency at each hop
- Diagnose network issues effectively
๐ Theory
The mtr (My Traceroute) command is a powerful network diagnostic tool that:
-
Combines
ping(latency measurement) -
Combines
traceroute(path discovery)
๐ It continuously sends packets and displays:
- Route path (like traceroute)
- Packet loss percentage
- Round-trip time statistics
๐ Unlike traceroute, it provides real-time dynamic updates.
๐งพ Syntax
๐ง Common Options
-
-c <count>→ Number of packets to send -
-n→ Do not resolve hostnames -
-r→ Report mode (non-interactive) -
-w→ Wide report format -
-i <interval>→ Set interval between packets -
-u→ Use UDP instead of ICMP
๐งฐ Prerequisites
- Linux system
- Internet connectivity
-
mtrinstalled
Installation:
๐ฌ Procedure & Commands
1️⃣ Run mtr (Interactive Mode)
๐ Displays real-time updates of network path.
2️⃣ Run in Report Mode
๐ Generates a summary after completion.
3️⃣ Set Number of Packets
4️⃣ Disable Hostname Resolution
5️⃣ Wide Report Format
๐ฅ️ Sample Output
๐ Output Interpretation
| Field | Meaning |
|---|---|
| Loss% | Packet loss percentage |
| Snt | Number of packets sent |
| Last | Last RTT |
| Avg | Average RTT |
| Best | Minimum RTT |
| Wrst | Maximum RTT |
| StDev | Variation in delay |
๐ Exercises for Students
-
Run
mtrto a website and observe live updates. - Identify hops with high latency.
- Detect packet loss in the route.
-
Compare results with
pingandtraceroute. - Use report mode and analyze statistics.
❓ Viva Questions
-
What is
mtr? -
How is
mtrdifferent fromping? -
How is
mtrdifferent fromtraceroute? - What does packet loss indicate?
-
Why is
mtrpreferred for troubleshooting?
⚠️ Precautions
- Continuous monitoring may generate network traffic
- Some routers may block probes
- Use in controlled lab environments
✅ Result
The mtr command is an advanced network diagnostic tool that provides real-time insights into network paths, latency, and packet loss, making it highly useful for troubleshooting.
Comments
Post a Comment