文档介绍:局域网环境的网络时间协议性能测试摘要:网络时间协议(ntp)能够实现多节点时间和频率同步,具有简单、经济和高效等特点,但在性能测试方面的相关研究不多,使得在实际系统中是否釆用ntp时缺乏参考数据。针对这一问题,开展了局域网环境下的ntp性能测试,分析了系统负载和网络负载对ntp性能的影响。在实际系统中,,近似获取了计算机基准时钟信号的频率偏差,该误差值与ntp测算的结果基本一致,表明本地一级ntp服务器时间同步和频率同步性能良好。对ntp的实际应用和windows平台下时间敏感应用程序的设计提供了参考。关键词:网络时间协议;吋间同步;频率同步;性能测试;,2*,wang1ei1(instituteofappliedelectronics,chinaacademyofengineeringphysics,mianyangsichuan621900,china;graduateschool,chinaacademyofengineeringphysics,mianyangsichuan621900,worktimeprotocol(ntp)isasimple,plishtimeandfrequencysynchronizationofmultiplenodes,whileperformanceevaluationrelatedworkishardtofindinliterature,,workntpperformance,workload,aremeasuredandanalyzedonwindowsplatform・paringtimevalueobtainedfromirig-btimecodereaderandgetlocaltimewindowsapi,puterclocksignalisapproximated,-worktimeprotocol(ntp)isasimple,plishtimeandfrequencysynchronizationtheperformancewhichmakesitaconcerningthisofmultiplenodes,whilerelevantstudyonevaluationishardtofindinliterature,questionwhethertousentpinapplicatiorieproblem,workloadweremeasuredandanalyzedonwindowsplatform,parin£,puterclocksignalwasapproximated<(ntp);timesynchronization;frequencysynchronization;performanceevaluation;linearfit0引言对于许多分布式应用,精确的时间同步是整个系统正常工作的基本条件之一。例如控制系统、金融实时交易系统、交通运输调度系统等,都要求不同程度的时间同步。worktimeprotocol,ntp)提供高精度的时间校正和频率同步,目前已在许多领域得到了广泛应用。在实际系统屮决策是否以ntp作为时间同步手段时,首先关心的是给定应用环境中ntp能够达到何种性能。通常认为,广域网中ntp对时精度为lms~50nis,局域网环境下则可达1ms[1-2];使用改进型ntp,在物理层产生和处理时戳标记,减少了协议处理延迟,时间精度可达1011s量级[3];赵英等[4]开发了基于java的ntp客户端,对服务器运行状态和网络链路状态进行了测量和评估;wolfgang等[