Wireless Personal Communications

, Volume 95, Issue 4, pp 4579–4600 | Cite as

A Distributed Consensus-Based Clock Synchronization Protocol for Wireless Sensor Networks

  • Habib Aissaoua
  • Makhlouf Aliouat
  • Ahcène Bounceur
  • Reinhardt Euler


The birth of computer networks and distributed systems has led to the appearance of the clock synchronization problem. This issue has gained increasing importance with the emergence of new resource constrained networks such as wireless sensor networks. In this paper, we propose a new distributed clock synchronization algorithm, referred to as Weighted Consensus Clock Synchronization (WCCS), whose objective is to achieve a consensus clock among network nodes. In this distributed approach and in contrast to centralized schemes, each node periodically exchanges the local clock reading with its immediate neighbor nodes. Then, each node employs these time informations to calculate its relative offset and skew with respect to its neighbor nodes using a weighted average consensus based technique. The effectiveness of WCCS is proved through both simulations and an experimental study on TelosB mote using TinyOS.


Consensus algorithm Convergence Clock drift Wireless sensor networks Distributed algorithms 



This paper has been written while the first author was visiting the Wireless Sensor group at Lab-STICC in Brest. Financial support through the PNE program established by the Government of Algeria is gratefully acknowledged.


  1. 1.
    Mills, D. (1991). Internet time synchronization: The network time protocol. IEEE Transactions on Communications, 39, 1482–1493. CrossRefGoogle Scholar
  2. 2.
    Elson, J., & Römer, K. (2003). Wireless sensor networks: A new regime for time synchronization. ACM SIGCOMM Computer Communication Review, 33(1), 149–154.CrossRefGoogle Scholar
  3. 3.
    Elson, J., Girod, L., & Estrin, D. (2002). Fine-grained network time synchronization using reference broadcasts. ACM SIGOPS Operating Systems Review, 36, 147–163.CrossRefGoogle Scholar
  4. 4.
    Ganeriwal, S., Kumar, R., & Srivastava, M. B. (2003). Timing-sync protocol for sensor networks. In Proceedings of the 1st international conference on embedded networked sensor systems (pp. 138–149).Google Scholar
  5. 5.
    Maróti, M., Kusy, B., Simon, G., & Lédeczi, Á. (2004). The flooding time synchronization protocol. In ACM second international conference on embedded networked sensor systems (SenSys 04) (pp. 39–49).Google Scholar
  6. 6.
    Maggs, M. K., O’Keefe, S. G., & Thiel, D. V. (2012). Consensus clock synchronization for wireless sensor networks. IEEE Sensors Journal, 12(6), 2269–2277.CrossRefGoogle Scholar
  7. 7.
    Sommer, P., & Wattenhofer, R. (2009). Gradient clock synchronization in wireless sensor networks. In R. Gupta (Ed.), Proceedings of the 2009 international conference on information processing in sensor networks (pp. 37–48). Washington: IEEE Computer Society. Google Scholar
  8. 8.
    Lenzen, C., Sommer, P., & Wattenhofer, R. (2015). PulseSync: An efficient and scalable clock synchronization protocol. IEEE/ACM Transactions on Networking.Google Scholar
  9. 9.
    Schenato, L., & Fiorentin, F. (2011). Average TimeSynch: A consensus-based protocol for clock synchronization in wireless sensor networks. Automatica, 47(9), 1878–1886.MathSciNetCrossRefMATHGoogle Scholar
  10. 10.
    He, J., Cheng, P., Shi, L., Chen, J., & Sun, Y. (2014a). Time synchronization in WSNs: A maximum-value-based consensus approach. IEEE Transactions on Automatic Control, 59(3), 660–675.MathSciNetCrossRefMATHGoogle Scholar
  11. 11.
    Kusy, B., Dutta, P., Levis, P., Maroti, M., Ledeczi, A., & Culler, D. (2006). Elapsed time on arrival: A simple and versatile primitive for canonical time synchronisation services. International Journal of Ad Hoc and Ubiquitous Computing, 1(4), 239–251.CrossRefGoogle Scholar
  12. 12.
    Sommer, P., & Wattenhofer, R. (2008). Symmetric clock synchronization in sensor networks. In A. Dunkels & P. J. Marron (Eds.), Proceedings of the workshop on Real-world wireless sensor networks (pp. 11–15). New York: ACM.Google Scholar
  13. 13.
    Chen, Y., Tron, R., Terzis, A., & Vidal, R. (2011). Accelerated corrective consensus: Converge to the exact average at a faster rate. In American control conference (ACC), 2011 (pp. 3417–3422). IEEE.Google Scholar
  14. 14.
    Oreshkin, B. N., Aysal, T. C., & Coates, M. J. (2008). Distributed average consensus with increased convergence rate. In IEEE international conference on acoustics, speech and signal processing, 2008. ICASSP 2008 (pp. 2285–2288). IEEE.Google Scholar
  15. 15.
    Lenzen, C., Sommer, P., & Wattenhofer, R. (2009). Optimal clock synchronization in networks. In Proceedings of the 7th ACM conference on embedded networked sensor systems (pp. 225–238).Google Scholar
  16. 16.
    He, J., Cheng, P., Shi, L., Chen, J., & Sun, Y. (2014b). Time synchronization in WSNs: A maximum-value-based consensus approach. IEEE Transactions on Automatic Control, 59(3), 660–675.MathSciNetCrossRefMATHGoogle Scholar
  17. 17.
    Wu, J., Zhang, L., Bai, Y., & Sun, Y. (2015). Cluster-based consensus time synchronization for wireless sensor networks. IEEE Sensors Journal, 15(3), 1404–1413.CrossRefGoogle Scholar
  18. 18.
    Heinzelman, W. B., Chandrakasan, A. P., & Balakrishnan, H. (2002). An application-specific protocol architecture for wireless microsensor networks. IEEE Transactions on Wireless Communications, 1(4), 660–670.CrossRefGoogle Scholar
  19. 19.
    Yang, Z., He, L., Cai, L., & Pan, J. (2014). Temperature-assisted clock synchronization and self-calibration for sensor networks. IEEE Transactions on Wireless Communications, 13(6), 3419–3429.CrossRefGoogle Scholar
  20. 20.
    Xu, M., & Xu, W. (2013). Taco: Temperature-aware compensation for time synchronization in wireless sensor networks. In 2013 IEEE 10th international conference on mobile ad-hoc and sensor systems (MASS) (pp. 122–130). IEEE.Google Scholar
  21. 21.
    Benzaïd, C., Bagaa, M., & Younis, M. (2016). Efficient clock synchronization for clustered wireless sensor networks. Ad Hoc Networks, 56, 13–27.CrossRefGoogle Scholar
  22. 22.
    Djenouri, D., Merabtine, N., Mekahlia, F. Z., & Doudou, M. (2013). Fast distributed multi-hop relative time synchronization protocol and estimators for wireless sensor networks. Ad Hoc Networks, 11(8), 2329–2344.CrossRefGoogle Scholar
  23. 23.
    Luo, B., Cheng, L., & Wu, Y.-C. (2016). Fully distributed clock synchronization in wireless sensor networks under exponential delays. Signal Processing, 125, 261–273.CrossRefGoogle Scholar
  24. 24.
    Bliman, P.-A., & Ferrari-Trecate, G. (2008). Average consensus problems in networks of agents with delayed communications. Automatica, 44(8), 1985–1995.MathSciNetCrossRefMATHGoogle Scholar
  25. 25.
    Carli, R. (2008). Topics on the average consensus problems. Ph.D. thesis, PhD school in Information Engineering – University of Padua.Google Scholar
  26. 26.
    Avrachenkov, K., El Chamie, M., & Neglia, G. (2011). A local average consensus algorithm for wireless sensor networks. In 2011 international conference on Distributed computing in sensor systems and workshops (DCOSS) (pp. 1–6). IEEE.Google Scholar
  27. 27.
    Knorn, F., Stanojevic, R., Corless, M., & Shorten, R. (2009). A framework for decentralised feedback connectivity control with application to sensor networks. International Journal of Control, 82(11), 2095–2114.MathSciNetCrossRefMATHGoogle Scholar
  28. 28.
    Cao, M., Morse, A. S., & Anderson, B. D. O. (2008). Reaching a consensus in a dynamically changing environment: A graphical approach. SIAM Journal on Control and Optimization, 47(2), 575–600.MathSciNetCrossRefMATHGoogle Scholar
  29. 29.
    Olshevsky, A., & Tsitsiklis, J. N. (2009). Convergence speed in distributed consensus and averaging. SIAM Journal on Control and Optimization, 48(1), 33–55.MathSciNetCrossRefMATHGoogle Scholar
  30. 30.
    Sivrikaya, F., & Yener, B. (2004). Time synchronization in sensor networks: A survey. IEEE Network, 18(4), 45–50.CrossRefGoogle Scholar
  31. 31.
    Lundelius, J., & Lynch, N. (1984). An upper and lower bound for clock synchronization. Information and Control, 62(23), 190–204.MathSciNetCrossRefMATHGoogle Scholar
  32. 32.
    Graham, S., & Kumar, P.R. (2004). Time in general-purpose control systems: The control time protocol and an experimental evaluation. In 43rd IEEE conference on decision and control, 2004. CDC (vol. 4, pp. 4004–4009).Google Scholar
  33. 33.
    Boulis, A. (2007). Castalia: Revealing pitfalls in designing distributed algorithms in WSN. In Proceedings of the 5th international conference on Embedded networked sensor systems (pp. 407–408). New York: ACM.Google Scholar
  34. 34.
    Pediaditakis, D., Tselishchev, Y., & Boulis, A. (2010). Performance and scalability evaluation of the Castalia wireless sensor network simulator. In Proceedings of the 3rd international ICST conference on simulation tools and techniques (p. 53). ICST (Institute for Computer Sciences, Social-Informatics and Telecommunications Engineering).Google Scholar
  35. 35.
    Ren, F., Lin, C., & Liu, F. (2008). Self-correcting time synchronization using reference broadcast in wireless sensor network. IEEE Wireless Communications, 15(4), 79–85. CrossRefGoogle Scholar
  36. 36.
    Hussain, S. S., & Sprent, P. (1983). Non-parametric regression. Journal of the Royal Statistical Society Series A (General), 146, 182–191. MathSciNetCrossRefGoogle Scholar

Copyright information

© Springer Science+Business Media New York 2017

Authors and Affiliations

  • Habib Aissaoua
    • 1
    • 3
  • Makhlouf Aliouat
    • 2
  • Ahcène Bounceur
    • 3
  • Reinhardt Euler
    • 3
  1. 1.Department of Computer ScienceUniversity of Abderrahmane MiraBejaïaAlgeria
  2. 2.Department of Computer ScienceUniversity of Ferhat Abbas Setif 1SétifAlgeria
  3. 3.Lab-STICC CNRS LaboratoryUniversity of Western BrittanyBrestFrance

Personalised recommendations