About nixCraft

Topics

Finding out a bad or simply overloaded network link with Linux/UNIX oses

Posted by Vivek Gite [Last updated: November 8, 2006]

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,

Tell us how we're doing: Please answer a few questions about your experience to help us improve nixCraft.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Anonymous Says:

    Very nice tool. Thanks for this great tutorial.

    Edinaldo La-Roque
    Author of XFwall
    http://sourceforge.net/projects/xfwall

  2. Tiago Says:

    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…

  3. nixcraft Says:

    Tiago,

    if you notice a sudden increase in packetloss or response time is an indication of overloaded link or a bad link.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.