23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18<br />

Clock Synchronization<br />

in Distributed Systems<br />

Georg Gaderer<br />

Austrian Academy<br />

of Sciences<br />

Patrick Loschmidt<br />

Austrian Academy<br />

of Sciences<br />

18.1 Introduction..................................................................................... 18-1<br />

18.2 Precision Time Protocol................................................................. 18-1<br />

18.3 IEEE 1588 System Model............................................................... 18-2<br />

18.4 Service Access Points...................................................................... 18-3<br />

18.5 Ordinary Clocks.............................................................................. 18-3<br />

18.6 Boundary Clocks.............................................................................18-4<br />

18.7 Precision Time Protocol, IEEE 1588–2008 (PTPv2).................18-5<br />

18.8 Network Time Protocol..................................................................18-6<br />

18.9 Network Time Protocol Strata...................................................... 18-7<br />

18.10 Architecture, Protocol, and Algorithms......................................18-8<br />

18.11 NTP Clock Synchronization Hardware Requirements.............18-8<br />

18.12 Synchronization Algorithms of NTP...........................................18-8<br />

References.................................................................................................. 18-10<br />

18.1 Introduction<br />

It is known that technologies to synchronize clocks are not an exclusive research topic of the computer<br />

age. As a matter of fact, the construction of highly accurate clocks and the resulting requirements for<br />

synchronization date back to the seventeenth century. However, the actual research for the usage in<br />

distributed <strong>systems</strong> began with the introduction of networked computing. The issue was first discussed<br />

in depth with the topic of event ordering by Lamport [Lamport1978]. A good, general overview on<br />

available algorithms can be found in [Anceaume1997]. Later, especially with the upcoming real-time<br />

networks [Kopetz1987,Palumbo1992,Liskov,Patt1994], the problem came again into scientific discussion.<br />

This chapter gives an overview of the state of the art of clock synchronization protocols as well as<br />

their application in real-time networks.<br />

18.2 Precision Time Protocol<br />

The precision time protocol (PTP or IEEE 1588) is a protocol designed for highly accurate clock synchronization<br />

focused especially on test and measurement, as well as power engineering (e.g., substation<br />

automation), and factory automation. The standard is IEEE approved since 2002 [IEEE1588v1].<br />

In 2008, a positive ballot on version 2 of the protocol was submitted to the IEEE [IEEE1588v2].<br />

While the test and measurement industry needs synchronized clocks for data collection<br />

[Eidson2005,Owen2005, Pleasant2005], other classes of applications, like the factory automation community,<br />

need synchronized clocks in order to coordinate the access to the network and thus guarantee<br />

18-1<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!