I am using ptpd to tightly sync the clock between two linux hosts that we are using to test a low latency application.

I would like to see, programatically, how well the clocks are synced. I was thinking we could use a client/server script (python?) as follows:

  • Use netperf TCPRR test to accuratly determine TCP latency.
  • Start a server that waits for a client to connect.
  • Start a client with a paramater that is the time offset (network latency determined by netperf).
  • The client reads the servers timestamp off the socket, applies offset, compares to its own clock?

Does this sound sane?

link|improve this question
what ptp cards are you using? do you need to use ptp? why is ntp insufficient? – dfc Nov 2 '11 at 20:07
feedback

migrated from stackoverflow.com Jul 13 '11 at 3:45

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown