mtr

Network diagnostic tool that combines traceroute and ping, showing running per-hop statistics along the path to a destination host.

install

mtr is a network diagnostic tool that combines the functionality of traceroute and ping in a single program. Given a destination hostname or IP address, it investigates the network connection between the local host and that destination.

It sends probes with successively larger time-to-live values and uses the responses from intervening routers to discover and measure the path. While running, it prints continuously updated statistics for each hop. The README notes that routers may be configured to never send these ICMP responses or to rate-limit them, so apparent loss at an intermediate hop does not always mean forwarded traffic is being lost there.

Usage is sudo ./mtr <host> after building. The helper binary mtr-packet must be suid-root because it needs raw IP sockets. Builds from git use ./bootstrap.sh && ./configure && make; release tarballs use ./configure && make. A GTK front end is optional (./configure --without-gtk). Solaris requires GNU make, and macOS needs no special steps. On Windows, mtr runs under WSL, or it can be built under Cygwin. It is aimed at network administrators, SREs, and developers troubleshooting latency and packet loss along a route. It is licensed under GPL v2.

Installation

# via apt (WSL on Windows)
sudo apt-get -y install mtr
# via Build from git
./bootstrap.sh && ./configure && make
# via Build from tarball
./configure && make

Alternatives & related tools

add a badge to your README

Maintain mtr? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/mtr.svg)](https://www.trmn.sh/tools/mtr?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/mtr?utm_source=badge"><img src="https://www.trmn.sh/badge/mtr.svg" alt="Featured on trmn" height="20"></a>