期刊文献+

网络测量中高精度时间戳研究与实现 被引量:10

High Precision Timestamps in Network Measurement
下载PDF
导出
摘要 在网络测量中,时间戳记录数据包接收和发送的时间,是时延、带宽以及抖动等网络参数测量的基础.受缓存延迟、中断响应时间不确定等因素影响,软件时间戳只能达到毫秒级精度;基于GPS(global positioning system)时钟的硬件时间戳可以达到纳秒级精度,但其成本高且安装部署不方便.基于对网络测量系统中时间戳误差来源的详细分析,设计了精确时间戳测量系统,系统利用硬件产生时间戳,消除各种软件延迟影响,通过基于预测的时钟同步算法PCS(prediction-based clock synchronization)同步各测量节点时钟,达到了与GPS相当的精度.基于自行设计的千兆网卡实现了测量系统原型,测试表明各测量节点时间戳误差不超过100ns. Timestamps are used to record receiving and transmitting time for each packet and are of great importance in measuring network performance metrics such as delay, bandwidth and jitters. Limited by the uncertainty of packet buffering delay and interrupts, software-based timestamps can only achieve milliseconds-precision. Although timestamps based on global positioning system (GPS) can achieve nanoseconds-precision, it is too expensive and inconvenient for large scale use. In this paper, we analyze the root cause of inaccuracy for software-based timestamps. Based on these analyses, we propose a timestamp system which involves programmable network interface card (NIC) and prediction-based clock synchronization (PCS) algorithm. When a packet arrives at the NIC, a hardware timestamp is generated in the NIC which precisely records the accurate time. As the timestamp is inserted by hardware, all the uncertainty introduced by software are eliminated. PCS algorithm is used to synchronize the clock of one NIC with other NICs. With one NIC set to be master, other slave NIC will adjust their clock according to PCS algorithm to synchronize with the master's clock. We implement the prototype system in our gigabit network interface card. The system achieves the same accuracy as GPS does. Test results show that the deviation between two cards is no bigger than 100ns.
出处 《计算机研究与发展》 EI CSCD 北大核心 2010年第12期2049-2058,共10页 Journal of Computer Research and Development
基金 国家"九七三"重点基础研究发展计划基金项目(2007CB3l0702) 国家自然科学基金项目(60903208 60873242) 中国科学院重大科研装备研制基金项目(YZ200926)
关键词 网络测量 时钟同步 GPS 误差 时间戳 network measurement clock synchronization GPS time deviation timestamp
  • 相关文献

参考文献15

  • 1Mills D,Thyagarajan A,Huffman B C.Internet timekeeping around the globe[C]//Proc of Precision Time and Time Interval (PTTI) Applications and Planning Meeting.New York:ACM,1997:365-371.
  • 2徐朝农,徐勇军,李晓维.无线传感器网络时间同步新技术[J].计算机研究与发展,2008,45(1):138-145. 被引量:31
  • 3Pasztor A,Veitch D.PC based precision timing without GPS[C]//Proc of ACM SIGMETRICS Performance Evaluation Review.New York:ACM,2002:1-10.
  • 4Veitch D,Babu S,Pasztor A.Robust synchronization of software clocks across the Internet[C]//Proc of the 4th ACM SIGCOMM Conf on Internet Measurement.New York:ACM,2004:219-232.
  • 5Gurewitz O,Cidon I,Sidi M.Network classes time protocol based on clock offset optimization[J].IEEE/ACM Trans on Networking,2006,14(4):876-888.
  • 6Horauer M,Holler R.Integration of highly accurate clock synchronization into Ethernet-based distributed systems[C]//Proc of the Int Conf on Advances in Infrastructure for e-Business,e-Education.New York:ACM,2002.
  • 7Hoeller R,Horauer M,Griedling G,et al.SynUTC-High precision time synchronization over Ethernet networks[C]//Proc of the 8th Workshop on Electronics for LHC Experiments.New York:ACM,2002:428-432.
  • 8IEEE Standard 1588.IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems[S].2002.
  • 9Eidson J,Lee K.Sharing a common sense of time[J].IEEE Instrumentation & Measurement Magazine,2003,6(1):26-32.
  • 10Micheel J,Donnelly S,Graham L.Precision timestamping of network packets[C]//Proc of the 1st ACM SIGCOMM Workshop on Internet Measurement.New York:ACM,2001:273-277.

二级参考文献41

  • 1黎文伟,王俊峰,谢高岗,张大方.基于包对采样的IP网络时延变化测量方法[J].计算机研究与发展,2004,41(8):1352-1360. 被引量:13
  • 2徐朝农,赵磊,徐勇军,李晓维.无线传感器网络时间同步协议的改进策略[J].计算机学报,2007,30(4):514-523. 被引量:16
  • 3Sundararaman B,Buy U,Kshemkalyani AD.Clock synchronization for wireless sensor networks:A survey.Elsevier Ad Hoc Network,2005,3(3):281-323.
  • 4Sivrikaya F,Yener B.Time synchronization in sensor networks:A survey.IEEE Network,2004,18(4):45-50.
  • 5Elson J,Romer K.Wireless sensor networks:A new regime for time synchronization.In:Proc.of the 1st Workshop on Hot Topics in Networks (HotNets-I).2002.28-29.
  • 6Elson J,Girod L,Estrin D.Fine-Grained network time synchronization using reference broadcasts.In:Proc.of the 5th Symp.on Operating Systems Design and Implementation.ACM Press,2002.147-163.
  • 7Ping S.Delay measurement time synchronization for wireless sensor networks.Int'l Research Berkeley Lab.,2003.
  • 8Maroti M,Kusy B,Simon G,Ledeczi A.The flooding time synchronization protocol.In:Proc.of the 2nd Int'l Conf.on Embedded Networked Sensor Systems.2004.39-49.
  • 9Li Q,Rus D.Global clock synchronization in sensor networks.In:Proc.of the IEEE INFOCOM 2004.Hong Kong,2004.
  • 10Ganeriwal S,Kumar R,Srivastava MB.Timing-Sync protocol for sensor networks.In:Proc.of the 1st ACM Conf.on Embedded Networked Sensor Systems (SenSys).ACM Press,2003.138-149.

共引文献108

同被引文献143

引证文献10

二级引证文献29

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部