针对节点时钟频率不一致而引起时隙漂移的情况,分析分布式时隙同步算法的性能。通过把一个时隙周期内的累积时钟偏差等效为时隙相位偏差,建立干扰模型,证明了采用分布式平均的时隙互同步算法可以避免节点时隙偏移量随时间的累积,并将节点之间的最大时隙偏差控制在一定范围内。最后,用计算机仿真和实物测试验证了分布式时隙同步算法可以保证节点之间的同步。
The performance of the distributed slot synchronization algorithm is analyzed under the situation of slot drift due to different crystal frequencies.An interference model is established by setting the accumulate clock deviation to be equivalent to a slot phase deviation.It is proved that the accumulation of slot deviation can be avoided and the maximum of slot deviation can be controlled within a limited range by using the distributed slot synchronization algorithm.Finally,the simulation and reality test show that using the distributed slot synchronization algorithm can assure the slot synchronization of each node in ad hoc network.