Revision history [back]

click to hide/show revision 1
initial version

IMHO, time synchronization between two nodes of a network (distributed system) is best achieved via NTP.

To measure latency between two nodes, you can try using ajn::BusAttachment::Ping.

A crude form of time synchronization using AllJoyn is possible by doing the following:

  • Set up an AllJoyn session between the two nodes
  • Send multiple ajn::BusAttachment::Ping messages between the two nodes to get an average round-trip-time.
  • Send AllJoyn messages containing the time-stamp at one end to the other node (after defining necessary objects, interfaces and members)
  • Based on this, one should be able to calculate the time difference between the clocks of two nodes

As I mentioned already, the above is quite crude. NTP is far more sophisticated to synchronize times between two nodes.