With the development of networks, measurement and control applications are increasingly using distributed system technologies such as network communication, local computing, and distributed objects. Many of these applications will be enhanced by having an accurate system wide sense of time achieved by having local clocks in each system device. Without a standardized protocol for synchronizing these clocks, it is unlikely that the real time control function will be done by each device. Existing protocol for clock synchronization are not optimum for these applications. For example, Network Time Protocol (NTP) targets large distributed systems with millisecond synchronization requirements. IEEE1588 defines a protocol enabling synchronization of clock in measurement and control systems. This protocol will applicable to systems communicating by local area network supporting multicast messaging including, but not limited to, Ethernet.This thesis firstly introduces IEEE1588 protocol and analyses its synchronization method. Then it specifies the implementation of this protocol, including hardware platform and software platform. This thesis also analyses the factor of causing synchronization error and unsteadiness. Based on the analysis, the corrective action is implemented in the system, and it improves the performance of the system. At last, this thesis introduces an application which uses IEEE1588 to synchronize its distributed nodes. |