When there're abnormal request latencies, one of the possible causes is packet loss, as it leads to reconnections. ICMP is not always enabled along the hops. mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool. It can test connectivity on any TCP port.
This knowledge article explains how to use mtr to diagnose the latency issue potentially caused by packet loss.
$ cat getmtr.sh #!/bin/sh while true; do mtr -P 443 -T <TargetHost> -c 55 -r -n >> /tmp/mtr.log; sleep 60; done;2. Then chmod 775 to let the script be executable
$ chmod 775 getmtr.sh3. Run the script as a background job
$ ./getmtr.sh &4. Once you have captured mtr for the desired period, make sure to stop the background job
$ ps -ef | grep mtr $ kill <pid for the job>5. Now you will see the mtr result which was taken every 60 sec in the logfile(in this case it is in /tmp/mtr.log)
mtr -P 443 -T <IP or FQDN> -r -n
001114985

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.