针对无线传感器网络(WSNs)中节点间通信存在传输延迟,影响同步精度的情况,将加权平均应用于相对时钟斜率的计算,提出了一种带延时的一致性时间同步算法。该算法中每个传感器节点通过与邻居节点通信交换时钟信息,根据一致性理论更新时钟参数,从而到达时间同步的目的。研究了在假定传输延时服从正态分布的情况下对一致性时间同步算法的影响,提出的算法降低了延时对同步精度的影响,Matlab仿真验证了该算法的有效性。
Aiming at problem of transmission delay between nodes which affect synchronization precision in wireless sensor networks (WSNs), apply weighted average in computation of relative clock skew and propose a consensus time synchronization algorithm with time-delay. Every node exchanges clock information through communicating with its neighbor nodes and updates clock parameters according to consensus theory, then time synchronization is realized. Given that the transmission delay obeys normal distribution, influence of transmission delay on synchronization precision of consensus synchronization algorithm is studied, and the proposed algorithm reduces the influence. The Matlab simulations verify effectiveness of the proposed algorithm.