网络时间同步算法中时间延时优化方案
- 格式:pdf
- 大小:175.55 KB
- 文档页数:3
摘
(nho i@ c u e u c ) jzabn t . d . n g 要: 针对 N P技术 中对 网络 时 间延 时测 量 的 不足 , 出了在 网络 支持 下的 高精 度 时 间 同步 T 提
方 法。该 方法采 用数据 包丢 失技 术 , 通过 比较传 送 的数据 报 文 中的特 殊 队 列值 和 所 经过 的路 由器 中 数据 包的排 队 队列 长度 值 来 决 定是 否 对 当前 数 据 报 文 丢 弃。仿 真 实验表 明 , 方 法 具 有很 好 的 可 该
行性 。
关键词 : 时间延 时 ;自我 丢 包; 间 同步 时 中 图分类 号 : P 9 文献标 志码 : T31 A Op i ia in o ea n e wo k tm e s nc r n z to l o ih tm z to fd l y i n t r i y h o ia in ag rt m
d tr n n r n fr b o ai g t e q e e ln t f t e t n i n u e i p cf d q e e v l e o h a k t ee mi i g t s y c mp r h a n u u e g h o h r st g r t r w t a s e i e a i o h i u u a u n t e p c e.
V0 . 7 No 1 12 . 2
De .2 o c o7
网络 时 间同步 算 法 中时 间延 时优化 方 案
赵 斌 ,贺 鹏 ,易 娜 (. 1 三峡 大 学 电 气信 息 学院 , 北 宜 昌 4 3 0 ; 2 三峡 大学 信 息技 术 中心 , 北 宜 昌 4 3 0 ) 湖 40 2 . 湖 402
维普资讯
第2 7卷 第 1 2期
20 0 7年 1 2月
文 章编 号 : 0 — 0 1 20 ) 2~ 0 7— 2 1 1 9 8 (0 7 1 30 0 0
计 算机应 用
Co utrAp lc t n mp e p ia i s o
S mu ain r s t h w t a h smeh a ey g o e sbl y i lt e u ss o h t i o l t t o h s a v r o d fa i i t . d i Ke r s i ea ;s l d s a dn a k t i y c r n z t n y wo d :t me d ly ef ic r i g p c e ;t - me s n h o iai o
s n h o iain meh d w sp o o e ewok y c rn z t to a r p s d i n t r .T e meh d a o td t es l d s a d n a k t e h iu h t s a so o n h t o d p e e - i r i gp c e c nq e ta h f c t Wa a me n f
N P时间同步算法根据服务器 和客户端 的往返报文 来确 T
定两地时钟的差值和报 文在 网络 中传输 的延迟 , 在往返 延时
假设相等的条件下 , 获得精确 的时 间同步。图 1中 , 和
是客户端时钟记 录的发送 N P报文 和接收 N P报文 的时间 , T T 和 是 服务器端时钟记录 的接收和发送 N P报文 的时间。 T 这里可 以设 定服务器 的时钟是 准确 的, 服务器 和客户端 时钟 的时间偏差是 △, 客户 端发送 报文到服 务器端 的 网络 延时 从 是 d , 服务 器 到 客户 端 的 网 络 延 时 l yC n r hn he r sU &  ̄t,Y h n ue4 30 hn ) .n r ai eho g et ,C i T r G g n e i f o o e a e o e y i agH bi 4 0 ,C i c a
A s at I re poeI aue rc ino medl e okTm r oo ( T ) i l rc e i bt c: nodroi rv esrdpeio fi e yi N t r i ePoc l N P ,ahg ypei me r t m n s t a n w t h st
0 引言
随着计算机 网络 的高速 发展 , 种涉及 时间戳相关 的应 各
用和服务 , : 时的网上交易 、 如 实 制造过程控制 、 网络安全性设 计、 分布式的网络计算 和处理 以及数据库文 件管理 等对时 问 精度提 出 了更 高 的要 求 。传 统 的基 于 N P协 议 ( ew r T N tok Tm rt o) iePo c1的时间同步算 法达到 同步 目的的前 提是 , 客 o 在
程式 :
户机和服务器进行通信 的过程 中, 求数据包 与应答 数据包 请 的往返 时延 相等u2。但 由于 网络 阻塞 的原 因 , 向传递延 . j 单
ZHAO n ,HE P n , YINa Bi eg
( . o e eo l tc l n i e n n f r ai c n e hn h e G re U i r t w a g H bi 4 0 ,C i ; 1 C l g e r a gn r g a dI om t nS i c,C i T r og s nv s y l fE c i E ei n o e a e e i ,Y h n u e 4 3 0 h n a