हिन्दी (Hindi)

MTR/Traceroute निदान करें

यह गाइड MTR और Traceroute से कनेक्टिविटी समस्याएँ, विलंबता और पैकेट लॉस विश्लेषण सिखाती है।

📋 पूर्वापेक्षाएँ

  • root/sudo VPS, SSH
  • Ubuntu/Debian

🔧 इंस्टॉलेशन

Bash
# On Ubuntu/Debian sudo apt update sudo apt install traceroute -y
Bash
1# On Ubuntu/Debian 2sudo apt update 3sudo apt install mtr-tiny -y 4 5# For the full version with graphical interface (optional) 6sudo apt install mtr -y
Bash
1# Verify that traceroute is installed 2traceroute --version 3 4# Verify that MTR is installed 5mtr --version

🛠️ Traceroute

Bash
1# Traceroute to a destination 2traceroute google.com 3 4# Traceroute to an IP 5traceroute 8.8.8.8 6 7# Limit the number of hops (default 30) 8traceroute -m 20 google.com 9 10# Specify timeout in seconds 11traceroute -w 5 google.com
Bash
1# Use UDP (default) 2traceroute -U google.com 3 4# Use TCP (more reliable) 5traceroute -T google.com 6 7# Use ICMP (like ping) 8traceroute -I google.com 9 10# Don't resolve DNS names (faster) 11traceroute -n google.com

उदाहरण:

traceroute to google.com (142.250.185.14), 30 hops max, 60 byte packets
 1  10.0.0.1 (10.0.0.1)  0.123 ms  0.089 ms  0.067 ms
 2  192.168.1.1 (192.168.1.1)  5.234 ms  5.189 ms  5.145 ms
 3  * * *
 4  8.8.8.8 (8.8.8.8)  12.456 ms  12.389 ms  12.334 ms
 ...

🚀 MTR (अनुशंसित)

MTR ping + traceroute जोड़कर रीयल-टाइम आँकड़े देता है।

Bash
1# MTR in interactive mode (recommended) 2mtr google.com 3 4# MTR with report (non-interactive) 5mtr --report google.com 6 7# MTR with 10 test packets 8mtr --report --report-cycles 10 google.com 9 10# MTR to an IP 11mtr --report 8.8.8.8
Bash
1# Specify the number of packets to send 2mtr --report --report-cycles 50 google.com 3 4# Use TCP instead of ICMP 5mtr --tcp --port 80 google.com 6 7# Use UDP 8mtr --udp --port 53 8.8.8.8 9 10# Don't resolve DNS names 11mtr --no-dns google.com

इंटरैक्टिव मोड: d विवरण, n DNS, r रीसेट, q बाहर।

📊 परिणाम व्याख्या

विलंबता

  • < 50 ms: उत्कृष्ट
  • 50–100 ms: अच्छा
  • 100–200 ms: स्वीकार्य
  • > 200 ms: उच्च

पैकेट लॉस

  • 0%: परफेक्ट
  • < 1%: सामान्य
  • > 5%: जाँच आवश्यक

तारांकन (*)

एक * = उस पैकेट पर कोई प्रतिक्रिया नहीं; तीन * = timeout या फ़ायरवॉल।

🎯 उपयोग केस

Bash
1# Test to Google DNS 2mtr --report --report-cycles 30 8.8.8.8 3 4# Test to Cloudflare DNS 5mtr --report --report-cycles 30 1.1.1.1 6 7# Test with TCP to bypass ICMP filters 8mtr --tcp --port 443 --report --report-cycles 50 google.com
Bash
1#!/bin/bash 2echo "=== MTR Test to Google DNS ===" 3mtr --report --report-cycles 30 8.8.8.8 4 5echo -e "\n=== MTR Test to Cloudflare DNS ===" 6mtr --report --report-cycles 30 1.1.1.1 7 8echo -e "\n=== MTR Test to your domain ===" 9mtr --report --report-cycles 30 your-domain.com
Bash
1# Save report to a file 2mtr --report --report-cycles 30 google.com > mtr-report-$(date +%Y%m%d).txt 3 4# With CSV format 5mtr --report --report-cycles 30 --csv google.com > mtr-report.csv

✅ सर्वोत्तम अभ्यास

  • MTR को traceroute पर प्राथमिकता
  • कई गंतव्य और समय पर परीक्षण
  • ICMP फ़िल्टर हो तो TCP उपयोग करें
  • मध्यवर्ती hop की उच्च विलंबता हमेशा समस्या नहीं — अंतिम विलंबता मायने रखती है

🆘 समस्या निवारण

Bash
1# If MTR doesn't work in interactive mode, use report mode 2mtr --report destination.com 3 4# Check MTR version 5mtr --version
Bash
1# Reinstall MTR 2sudo apt update 3sudo apt install mtr-tiny -y 4 5# Or install the full version 6sudo apt install mtr -y

सभी hop * दिखाएँ:

Bash
1# Your firewall is blocking ICMP 2# Test with TCP instead 3mtr --tcp --port 443 --report destination.com 4 5# Check firewall rules 6sudo ufw status 7sudo iptables -L

बैंडविड्थ परीक्षण: Speedtest गाइड

❓ अक्सर पूछे जाने वाले प्रश्न

प्र: Traceroute और MTR में अंतर?
उ: Traceroute कुछ पैकेट; MTR निरंतर आँकड़े — निदान के लिए बेहतर।

प्र: मध्यवर्ती hop की उच्च विलंबता?
उ: अंतिम विलंबता अच्छी हो तो चिंता न करें।

प्र: MTR में पैकेट लॉस?
उ: < 1% सामान्य; > 5% जाँच करें।


स्पष्ट नेटवर्क निदान! 🔍

मदद चाहिए?

इस गाइड के बारे में प्रश्न? हमारी टीम और समुदाय मदद के लिए उपलब्ध हैं।

नवीनतम ऑफ़र, छूट और विशेष प्रोमोशन से अपडेट रहें।

प्रोमोशन देखें