0

I was learning ping command and their options.

In ping -U option is used for full user to user latency.

There is no difference for ping and ping -U option in output.

$ ping google.com
PING google.com (216.58.199.174) 56(84) bytes of data.
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=1 ttl=57 time=49.9 ms
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=2 ttl=57 time=44.6 ms
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=3 ttl=57 time=43.6 ms
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=4 ttl=57 time=45.6 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 43.641/45.990/49.991/2.422 ms

$ ping -U google.com
PING google.com (216.58.199.174) 56(84) bytes of data.
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=1 ttl=57 time=54.9 ms
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=3 ttl=57 time=46.0 ms
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=4 ttl=57 time=42.8 ms
64 bytes from bom05s08-in-f14.1e100.net (216.58.199.174): icmp_req=5 ttl=57 time=42.2 ms
^C
--- google.com ping statistics ---
6 packets transmitted, 4 received, 33% packet loss, time 5013ms
rtt min/avg/max/mdev = 42.267/46.544/54.984/5.091 ms

Can anyone please explain me what is the difference between these two commands and what is the use of -U option in ping command.

  • 1
    Yes, they are different, and in exactly the way described in the man page. – Michael Hampton May 6 '16 at 5:32
  • But in output there is no difference. How can I feel the difference in the output ? – user353185 May 6 '16 at 5:33
  • @suresh As the man page describes, the time measurement is done differently. – Håkan Lindqvist May 6 '16 at 6:02
  • @HåkanLindqvist how the time is measured for the -U option ? – user353185 May 6 '16 at 6:05
0

man ping

   -U     Print  full  user-to-user  latency (the old behaviour). Normally
          ping prints network round trip time, which can be different f.e.
          due to DNS failures.
  • What is meant by full user to user latency and when the time will be different ? – user353185 May 7 '16 at 3:22
  • So what is the difference? – Pierre.Vriens May 7 '16 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy