Traditionally the traceroute (print the route packets take to network host) and ping (send ICMP ECHO_REQUEST to network hosts) programs are used in a single network as diagnostic tool.
It takes some time to use both tools to diagnose such problem. However, you can use mtr program which is a network diagnostic tool. It is the combination of traceroute and ping programs (in terms of functionality) and works as a single network diagnostic tool.
How mtr works?
Once mtr invoked it starts investigates the network connection between the hosts mtr runs on and HOSTNAME by sending packets with purposely low TTLs (time to live). It will continue to send packets with low TTL, noting the response time of the intervening routers. This allows mtr to print the response percentage and response times of the internet route to HOSTNAME
During this run if you notice a sudden increase in packet-loss or response time is an indication of overloaded link or a bad link.
Examples
mtr works on both GUI and curses based terminal interface (good for remote Linux boxes).
To start mtr just type command (default is GUI interface):$ mtr upstream.router.isp.com
$ mtr sl-gw9-nyc-8-0.sprintlink.net
$ mtr -n router-ip
$ mtr gsrmum.vsnl.net.in
Force mtr to use the curses based terminal interface:$ mtr -t www.cyberciti.biz
An example of failed router (core-router.centramedia.net):$ mtr core-router.centramedia.net
Use mtr from shell/perl script:$ mtr -c 5 -r gsrmum.vsnl.net.in >/tmp/output.vsnl.routerWhere,
- -c: Use this option to set the number of pings sent to determine both the machines on the network and the reliability of those machines.
- -r: This option puts mtr into report mode.
- -t: Force mtr to use the curses based terminal interface
- -n: Disable DNS (i.e. not try to resolve the host names)
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop












{ 3 comments… read them below or add one }
Very nice tool. Thanks for this great tutorial.
Edinaldo La-Roque
Author of XFwall
http://sourceforge.net/projects/xfwall
Well…great, but…
What criteria is used for distint bad link of link overloaded ? How to identify the diference betwen overloaded and bad link?
thanks…
Tiago,
if you notice a sudden increase in packetloss or response time is an indication of overloaded link or a bad link.