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?