Network response time when no ping response

ping is not the best tool to use to check network response time, as not all hosts are configured to respond to ping. For security reasons, some hosts disable ping response. How do you check response time if no ping response? nmap is the answer
-- nmap -sP <host>
nmap -sP www.google.com

-- result
Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-06 18:47 AEDT
Nmap scan report for www.google.com (172.217.167.68)
Host is up (0.0093s latency).
Other addresses for www.google.com (not scanned): 2404:6800:4006:805::2004
rDNS record for 172.217.167.68: syd15s06-in-f4.1e100.net
Nmap done: 1 IP address (1 host up) scanned in 0.04 seconds
Article here about ping alternative. When there is a ping response.
ping -c 4 www.google.com

-- results
PING www.google.com (216.58.196.132) 56(84) bytes of data.
64 bytes from www.google.com (216.58.196.132): icmp_seq=1 ttl=56 time=9.20 ms
64 bytes from www.google.com (216.58.196.132): icmp_seq=2 ttl=56 time=9.15 ms
64 bytes from www.google.com (216.58.196.132): icmp_seq=3 ttl=56 time=10.0 ms
64 bytes from www.google.com (216.58.196.132): icmp_seq=4 ttl=56 time=10.6 ms

Leave a Reply

Your email address will not be published. Required fields are marked *