Traceroute determines how packets are being routed to a particular host.
Packages required: system
License required: Level1
Submenu level: /tool
Standards and Technologies: ICMP, UDP, Traceroute
Hardware usage: Not significant
Traceroute is a TCP/IP protocol-based utility, which allows user to determine how packets are being routed to a particular host. Traceroute works by increasing the time-to-live value of packets and seeing how far they get until they reach the given destination; thus, a lengthening trail of hosts passed through is built up.
Traceroute shows the number of hops to the given host address of every passed gateway. Traceroute utility sends packets three times to each passed gateway so it shows three timeout values for each gateway in ms.
The Traceroute Command
Command name: /tool traceroute
(IP address) - IP address of the host you are tracing the route todscp (integer: 0..63) - DSCP field value for the probe packets (in case the route varies depending on the DSCP priority)max-hops (integer) - utmost hops through which packet can be reachedport (integer: 0..65535) - UDP port numberprotocol (UDP | ICMP) - type of protocol to use. If one fails (for example, it is blocked by a firewall), try the othersize (integer: 28..1500; default: 64) - packet size in bytessrc-address (IP address) - change the source address of the packettimeout (time: 1s..8s; default: 1s) - response waiting timeout, i.e. delay between messagesuse-dns (yes | no; default: no) - specifies whether to use DNS server, which can be set in /ip dns menu
Traceroute session may be stopped by pressing [Ctrl]+[C].
To trace the route to 22.214.171.124 host using ICMP protocol with packet size of 64 bytes, setting DSCP field to 8 and extending the timeout to 4 seconds:
[admin@MikroTik] tool> traceroute 126.96.36.199 protocol=icmp size=64 dscp=8 timeout=4s
1 188.8.131.52 3ms 3ms 3ms
2 184.108.40.206 80ms 169ms 14ms
3 220.127.116.11 6ms 4ms 4ms
4 18.104.22.168 111ms 110ms 110ms
5 22.214.171.124 124ms 120ms 129ms
6 126.96.36.199 139ms 146ms 135ms
7 188.8.131.52 132ms 131ms 136ms
8 184.108.40.206 211ms 215ms 215ms
9 220.127.116.11 225ms 239ms 0s
10 18.104.22.168 283ms 269ms 281ms
11 22.214.171.124 267ms 260ms 266ms
12 126.96.36.199 296ms 296ms 290ms
13 188.8.131.52 288ms 297ms 294ms
14 184.108.40.206 297ms 317ms 319ms
15 220.127.116.11 137ms 136ms 134ms
16 18.104.22.168 135ms 134ms 134ms
17 22.214.171.124 134ms 134ms 135ms