Produktgrupper
Embedded PC
Rugged Laptop & Tablet PC
Medisinsk
Power supply & UPS

Temasider

Precision Time Protocol IEEE1588

Skrevet av Skrevet av Wikipedia,
15/09/2009

The Precision Time Protocol (PTP) is a time-transfer protocol defined in the IEEE 1588-2002 standard that allows precise synchronization of clocks across a network (e.g., Ethernet). Accuracy within the nanosecond range can be achieved with this protocol when using hardware hardward assist to manipulate timestamps.

"IEEE 1588 is designed to fill a niche not well served by either of the two dominant protocols, NTP and GPS. IEEE 1588 is designed for local systems requiring very high accuracies beyond those attainable using NTP. It is also designed for applications that cannot bear the cost of a GPS receiver at each node, or for which GPS signals are inaccessible."[1]

The goal of this protocol is to have a set of slave devices determine the offset between time measurements on their clocks and time measurements on a master device. [2] Let the variable t represent physical time. For a given slave device, the offset o(t) at time t is defined by:

\ o(t) = s(t) - m(t)

where s(t) represents the time measured on the slave device's clock at physical time t, and m(t) represents the time measured on the master device's clock at physical time t.

In the protocol, the master device periodically launches an exchange of messages with slave devices to help each slave clock recompute the offset between its clock and the master's clock. This offset will drift with time, and so these periodic exchanges mitigate the impact of this drift on clock synchronization. One assumption is that this exchange of messages happens over a period of time so small that this offset can safely be considered constant. Another assumption is that the transit time of a message going from the master to a slave is equal to the transit time of a message going from the slave to the master. Finally, it is assumed that both the master and slave can measure the time they send or receive a message. The degree to which these assumptions are enforced in an application regulate the accuracy of the offset measured at a slave device.

Each message exchange begins with a multicast SYNC message sent by the master clock to all the slaves listening on the PTP multicast group. A slave receiving this message takes note of the time T2 measured on its clock when it receives this message.

The master next sends a multicast TIME T1 message to notify the slaves of time T1 when it sent the SYNC message. Each slave now knows T1 and T2.

If d is the transit time of this message, and \tilde{o} is the constant offset during this transaction, then

\ T_2 - T_1 = \tilde{o} + d

Each slave now sends a RESPONSE message back to the master. For implementation reasons, this message is implemented as a multicast message, but it is a directed multicast message in that the packet containing this message includes information about the master it is being sent to. The slave measures the time T3 that it sends this message, and the master measures the time T4 that it receives this message. The master then sends a directed multicast TIME T4 message back to the slave to notify the slave what time it received the RESPONSE message. Note that

\ T_4 - T_3 = - \tilde{o} + d

The slave now knows times T1, T2, T3, and T4. Combining the above two equations, we find that

\tilde{o} = (T_2 + T_3 - T_1 - T_4) / 2

The slave now knows the offset \tilde{o} during this transaction. While this offset will drift with time, it will be corrected the next time this exchange of transactions is launched.

IEEE 1588 Synchronisation Mechanism, Delay Calculation
IEEE 1588 Synchronisation Mechanism, Drift Calculation

0x88F7 is used as EtherType for PTP over Ethernet.

IEEE 1588-2008

Also known as IEEE 1588 Version 2, an updated version of the standard was approved in March 2008. The new version adds the following enhancements:[3]

  • Transparent clocks through 1588-aware network equipment for improved accuracy
  • Reduced size sync messages
  • Protocol support for improved precision
  • Layer 2 transport option
  • Unicast transport option
  • Fault tolerance support
  • Rapid reconfiguration in response to network changes
  • Varied (faster) update rates

This new version of the standard is not directly interoperable with the previous version.

 

Related initiatives

The Institute of Embedded Systems (InES) of the University of Winterthur is addressing the practical implementation and application of PTP.

IEEE 1588 is a key technology in the LXI Standard for Test and Measurement communication and control.

 

Kilde: Wikipedia, the free encyclopedia

Elektronix AS - Strandveien 33 - 1366 Lysaker - +47 67 58 77 70 - Kontakt oss www.elektronix.no
Salgs- og leveringsbetingelser
 
Copyright © 2000-2010 Elektronix AS. All rights reserved. Sidekart