This paper describes a novel consensus-based protocol, referred as
Average TimeSync (ATS), for synchronizing a wireless
sensor network. This algorithm is based on a cascade of two consensus algorithms, whose
main idea is averaging local information. The proposed algorithm has the advantage to be tot...