in the master clock takes place, we observe a larger
error (deviation from 0) than for the same slave in
Fig. 8, which validates our analysis in Sect. 4.2.
0 20 40 60
−5
0
5
x 10
−6
slave 19
simulation time [s]
absolute error [us]
0 20 40 60
−5
0
5
x 10
−6
slave 39
simulation time [s]
absolute error [us]
0 20 40 60
−5
0
5
x 10
−6
slave 59
simulation time [s]
absolute error [us]
0 20 40 60
−5
0
5
x 10
−6
slave 79
simulation time [s]
absolute error [us]
Figure 9: Synchronization error when using peer RCF.
0 20 40 60
−5
0
5
x 10
−6
slave 19
simulation time [s]
absolute error [us]
0 20 40 60
−5
0
5
x 10
−6
slave 39
simulation time [s]
absolute error [us]
0 20 40 60
−5
0
5
x 10
−6
slave 59
simulation time [s]
absolute error [us]
0 20 40 60
−5
0
5
x 10
−6
slave 79
simulation time [s]
absolute error [us]
Figure 10: Synch. error with peer RCF and master RCF.
In Fig. 10 we simulate the algorithm where peer
RCF and master RCF are combined. We see a better
initialization compared with the result in Fig. 8 and
smaller error during the frequency drift compared to
Fig. 9. This confirms the improved performance we
expect for the combination of peer and master RCF
calculation.
7 CONCLUSIONS
In this paper, we have introduced two methods that
calculate the frequency ratio of two elements based
on the information contained in PTP messages. The
peer RCF calculation utilizes delay messages locally
and leads to fast convergence. The
master RCF
calculation use Sync messages to calculate the
frequency ratio between the grandmaster and the
slave. It performs better when there is constant
frequency drift in the master clock. It has been
shown both through analysis and simulation results
that a combination of both methods improves
synchronization performance. Future work could
illuminate the optimal combination of master RCF
and peer RCF estimation for widely different system
parameters or system requirements.
REFERENCES
Chen B., Chen Y.P., Xie J.M., Zhou Z.D., Sa J.M., 2005.
Control methodologies in networked motion control
systems. In: Proc. of 2005 International Conference
on Machine Learning and Cybernetics, Guangzhou.
IEEE, 1997. Standard for LAN/MAN CSMA/CD Access
Method, IEEE, New York.
IEEE, 2002. IEEE Standard for a Precision Clock
Synchronization Protocol for Networked Measurement
and Control Systems. IEEE, New York. ANSI/IEEE
Std 1588-2002.
IEEE, 2007. Standard for Local and Metropolitan Area
Networks - Timing and Synchronization for Time-
Sensitive Applications in Bridged Local Area
Networks, IEEE, New York.
IEEE, 2007. IEEE P1588
TM
D2.2 Draft Standard for a
Precision Clock Synchronization Protocol for
Networked Measurement and Control Systems, IEEE,
New York.
Jasperneite J., Shehab K., Weber K., 2004. Enhancements
to the time synchronization standard IEEE-1588 for a
system of cascaded bridges. In: Proc. of 2004 IEEE
International Workshop on Factory Communication
Systems, Vienna.
Jasperneite J., Neumann P., 2004. How to guarantee real-
time behaviour using Ethernet. In: Proc. of 11th IFAC
Symposium on Information Control Problems in
Manufacturing (IN-COM2004), Salvador-Bahia.
Jasperneite J., Feld J., 2005. PROFINET: an integration
platform for heterogeneous industrial communication
systems. In: Proc. of ETFA 2005, 10th IEEE
International Conference on, Catania.
Mills, D.L., 1989. Internet time synchronization: The
network time protocol. Network Working Group
Request for Comments.
Mills, D.L., 1994. Precision synchronization of computer
network clocks. Available: citeseer.nj.nec.com/
mills94precision.html.
Na, C., Obradovic D., Scheiterer R.L., Steindl G. and
Goetz F.J., 2007. Synchronization Performance of the
Precision Time Protocol. In: 2007 IEEE International
Symposium on Precision Clock Synchronization for
Measurement, Control and Communication, Vienna.
Na, C., Obradovic D., Scheiterer R.L., Steindl G. and
Goetz F.J., 2008. Enhancement of the Precision Time
Protocol in Automation Networks with a Line
Topology. Submitted to: IFAC 2008, Seoul.
Nieminen, J., 2007. Synchronization of Next Generation
Wireless Communication Systems. Master thesis,
Helsinki University of Technology, Helsinki.
ICINCO 2008 - International Conference on Informatics in Control, Automation and Robotics
92