About
mtr combines the hop-by-hop view of a trace with repeated sampling. Packet loss and latency per hop update live. A report mode runs a fixed number of cycles and exits.
Install it
pkg install mtr
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
5 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
mtr -rwc 10 example.com Run ten cycles and print a final report. The form you would paste into a bug report. mtr --report example.com Produce a single report and exit, without the live display. mtr -n example.com Keep addresses numeric. The report stays compact and quick. mtr -u -c 20 example.com Sample over UDP to match how DNS and streaming traffic behaves. mtr --tcp -P 443 example.com Probe with TCP on port 443 to follow a path that treats web traffic differently. Worked example
Run mtr -rwc 10 example.com and this is what you should see.
$ mtr -rwc 10 example.com
HOST: phone Loss% Snt Last Avg Best Wrst
1.|-- 192.168.1.1 0.0% 10 1.2 1.4 1.1 2.0
2.|-- 10.20.0.1 0.0% 10 8.4 8.9 8.1 12.0
3.|-- 93.184.216.34 10.0% 10 11.7 12.0 11.4 18.2 Developed by
Roger Wolff .