针对交换式电力监测网中NTP同步精度较低的问题,提出一种理论上可使同步精度提高到原来的17倍且不增加硬件的改进协议。SN-NTP利用了交换机的IEEE802.1p优先级调度功能,首先由NTP客户端向NTP服务器不间断地发送具有高优先级的短包,使所经路径被短包抢占,交换机中其他数据包处于等待状态;然后发送优先级高于短包的NTP请求包,使NTP请求包在传输路径上抢占短包优先权,从而使请求包在交换机中的最大等待时间变为原来的1/17,以此提高同步精度。基于船电监测网的SN-NTP协议性能试验显示,该方法可使同步精度提高到原来的15~24倍,与理论值基本吻合。
In order to improve the synchronization accuracy of NTP(Network Time Protocol) for switch-oriented power monitoring networks,an improved protocol,SN-NTP(Switch Networks-NTP),is proposed,which enhances the synchronization accuracy to 17 times the original theoretically.SN-NTP is based on the priority scheduling foundation of switch protocol IEEE802.1p.First,NTP client continuously sends the short packets with higher priority to NTP server to block the switch path and make other data packets in waiting state.Then,NTP client sends NTP request packet with highest priority to NTP server to seize the switch path of short packets.By the above two steps,the maximum waiting time of request packet under SN-NTP becomes one seventeenth of that under NTP and the synchronization accuracy is improved.SN-NTP performance test of ship power monitoring network shows that the synchronization accuracy is improved to 15 to 24 times the original,coinciding with theoretical analysis.