一种基于IPsec的频率同步方法和相关设备技术

技术编号:6080797 阅读:309 留言:0更新日期:2012-04-11 18:40
本发明专利技术实施例公开了一种基于IPsec的频率同步方法和相关设备,其中,一种基于IPsec的频率同步方法包括:从时钟设备与主时钟设备所在网络的网关建立用于封装时间同步报文的IPsec隧道,其中,时间同步报文中携带所述主时钟设备发送所述时间同步报文的时刻T1,IPsec隧道由隧道标识符唯一标识;获取当前接收到的IPsec加密报文的隧道标识符;根据所述隧道标识符判断当前接收到的IPsec加密报文为所述时间同步报文时,将接收到IPsec加密报文的时刻T2记录在所述IPsec加密报文上;利用所述T1和T2,采用自适应时钟恢复ACR进行频率同步处理。本发明专利技术实施例提供的技术方案有效了IPsec场景下从时钟设备的频率同步问题。

A frequency synchronization method based on IPsec and related equipment

The embodiment of the invention discloses a frequency synchronization method which IPsec and related equipment, based on a frequency synchronization method based on IPsec includes: setting up from the gateway device and the main clock clock device where the network for IPsec tunnel encapsulation time synchronization message, time synchronization message carrying the device sends the master clock the time synchronization message time T1, IPsec tunnel by the tunnel identifier uniquely identifies a tunnel identifier to obtain IPsec encryption; message currently received; according to the IPsec encryption message identifier to determine the current tunnel received for the time synchronization message, will receive IPsec encrypted message time T2 record in the IPsec the encrypted messages; using the T1 and T2, using adaptive clock recovery ACR frequency synchronization. The technical proposal provided by the embodiment of the invention effectively solves the frequency synchronization problem from the clock device in the IPsec scene.

【技术实现步骤摘要】

【技术保护点】
1.一种基于以太网协议安全性协议IPsec的频率同步方法,其特征在于,包括:从时钟设备与主时钟设备所在网络的网关建立用于封装时间同步报文的IPsec隧道,所述时间同步报文中携带所述主时钟设备发送所述时间同步报文的时刻T1,所述IPsec隧道由隧道标识符唯一标识;从时钟设备获取当前接收到的IPsec加密报文的隧道标识符;从时钟设备根据所述隧道标识符判断当前接收到的IPsec加密报文为所述时间同步报文时,将接收到所述IPsec加密报文的时刻T2记录在所述IPsec加密报文上;从时钟设备利用所述T1和T2,采用自适应时钟恢复ACR进行频率同步处理。

【技术特征摘要】

【专利技术属性】
技术研发人员:常锁林王江胜陈佳佳
申请(专利权)人:上海华为技术有限公司
类型:发明
国别省市:31

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1