ntp in python

Jeremy Sanders jeremy+complangpython at jeremysanders.net
Tue Aug 29 09:02:27 EDT 2006


Janto Dreijer wrote:

> I want to measure the packet delivery delays over various network
> links. For this I need to synchronise the times of the sender and
> receiver, either against NTP or eachother.

Couldn't you just use NTP itself to get the delivery delay? You can read the
delay out from the ntpdc console using dmpeers, or lopeers in ntpq. You
could have two peers either side of the link and measure the delay from
NTP.

You may also be able to query remote ntp servers to get their delays to
their peers.

Jeremy

-- 
Jeremy Sanders
http://www.jeremysanders.net/



More information about the Python-list mailing list