Re: How accurate is ping?

From: Jerry Smiley (jsmiley_at_nc.rr.com)
Date: 04/07/04


Date: Wed, 07 Apr 2004 11:49:02 GMT

Marc Fouquet wrote:

> When I ping machines in my 100 MBit Network it appears to me like ping can
> measure times very accurately (+- 100 microseconds or better).
>
> However when ones reads about timing measurements in Linux it always
> sounds like +-10 ms are the best accuracy one can expect from any program
> because of "ticks", taskswitching etc.
>
> How reliable are the mesurements performed by ping? Does it use special
> techniques to be more precise than other "user mode" programs (I read that
> root rights are needed to send ICMP packets)?
>
> Thanks
> Marc

man ping

May answer some of your questions...also giving an user root priv will
allow you to run 'icmp' packets too...



Relevant Pages

  • Re: How to test whether a host is reachable?
    ... As the subject says I need to test whether a host computer in our ... network is reachable or not. ... Just because you could ping with ICMP packets doesn't mean you could ...
    (comp.lang.python)
  • Re: nethack.alt.org down again???
    ... ping when it was up was when a shoddy nntp server ... started blocking pings (or the firewall before it as you say) and ... Many/most corporate firewalls block most/all ICMP packets, ... responding to ICMP packets. ...
    (rec.games.roguelike.nethack)
  • ICMP - Raw socket
    ... If i ping my machine from other pcs, ... which means there are some icmp packets reached my machine, ... But if i ping other pcs from my machine, recvfrom returns ...
    (microsoft.public.win32.programmer.networks)
  • Re: distributed natd
    ... > Keeping with the above ping pong idea, maybe instead of icmp packets you can ... By "ping" I did not mean sending ICMP to peer gateway, ... traffic, then we have state tables updated constantly, thus alive gateway ...
    (FreeBSD-Security)
  • Re: How to test whether a host is reachable?
    ... I think of something like a python version of ping ... which only tries to send ICMP packets. ... Server or a firewall in between most probably will filter out any ICMP ...
    (comp.lang.python)