摘要
针对基于NTP的网络时间同步方法缺乏必要机制对各节点的状态进行监控的问题,提出了一种基于心跳检测的网络时间同步方法,实现了源节点对从节点的状态监控。使用Winpcap开源库在驱动层获取时间戳,能够实现微秒级的时间同步。利用心跳检测机制,从节点可以监测源节点的状态。另外提供了一种备用机制,当源节点故障时,可以实现源节点的动态切换。最后实验验证了方法的可行性。
A new network time synchronization method based heartbeat detection is proposed to solve the problem of NTPbased network time synchronization,which lacks the necessary mechanism to monitor the state of each node.Using the Winpcap open-source library to obtain the time stamp in the driver layer,which can achieve the microsecond time synchronization.With the heartbeat detection mechanism,the slave node can monitor the state of the source.In addition,this paper provides a backup mechanism to achieve the dynamic switching of the source node when the source node fails.Finally,the feasibility of the method is verified by the experiments.
出处
《指挥控制与仿真》
2017年第1期116-121,共6页
Command Control & Simulation
关键词
时间同步
心跳检测
源节点切换
状态监控
time synchronization
heartbeat detection
source node switching
state monitoring