WO2016184225A1 - 一种时间同步消息发送方法和装置 - Google Patents

一种时间同步消息发送方法和装置 Download PDF

Info

Publication number
WO2016184225A1
WO2016184225A1 PCT/CN2016/075971 CN2016075971W WO2016184225A1 WO 2016184225 A1 WO2016184225 A1 WO 2016184225A1 CN 2016075971 W CN2016075971 W CN 2016075971W WO 2016184225 A1 WO2016184225 A1 WO 2016184225A1
Authority
WO
WIPO (PCT)
Prior art keywords
time synchronization
time
network unit
optical network
line terminal
Prior art date
Application number
PCT/CN2016/075971
Other languages
English (en)
French (fr)
Inventor
黄健
黄文杰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016184225A1 publication Critical patent/WO2016184225A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems

Definitions

  • the present application relates to, but is not limited to, the field of optical communication technologies, and in particular, to a time synchronization message sending method and apparatus.
  • Optical access technology can provide large bandwidth and high reliability.
  • Passive Optical Network PON
  • PON Passive Optical Network
  • PON technology has the full service access capability of data, voice and Time Division Multiplex (TDM) to meet the evolving wireless access requirements.
  • TDM Time Division Multiplex
  • the convergence characteristics of PON can make the whole network layer clear, convenient construction and efficient management.
  • the time synchronization method on the PON network is: an optical line terminal (Optical Line Terminal, OLT for short), an external clock (for example, a GPS clock) signal or a slave network precise timing protocol (Precision Time Protocol, PTP for short).
  • OLT optical Line Terminal
  • PTP Precision Time Protocol
  • the standard G.988.9.12.2 specifies the time synchronization message sent by the OLT to the ONU, including two parts.
  • the first part (4 bytes) is super frame N, that is, the super frame counter, the second part (10 bytes).
  • Is TstampN that is, timestamp.
  • the ONU receives the Nth super frame, the local time is generated according to the synchronization mechanism of the PON system itself according to the received time synchronization message (N, TstampN), and the time synchronization is achieved.
  • the OLT controls the timing of sending time synchronization messages to the ONU.
  • the standard G984.3Amd2 is recommended to be synchronized at least once every 24 hours and once when the ONU is activated for the first time.
  • Synchronize messages by sending time In order to ensure continuous synchronization of the OLT and ONU time, generally, in a fixed time Synchronize messages by sending time.
  • the ONU recovery clock and the OLT clock information are bound to be inconsistent. In this way, the time between the OLT and the ONU is not synchronized, which seriously affects services such as TDM that rely on the time synchronization mechanism on the PON. If the transmission interval is reduced indefinitely, there will be a large number of OMCI (ONU Management and Control Interface) message interactions, especially for the OLT, a lot of meaningless OMCI messages will be sent.
  • OMCI ONU Management and Control Interface
  • the above control method for time synchronization message transmission has inevitable defects and limitations in implementation, especially in the case of drift, error or other loss of lock of the OLT clock source, OLT The clock may not be synchronized with the ONU for a long period of time and no improvement is needed.
  • the embodiment of the invention provides a method and a device for transmitting a time synchronization message, which can ensure the time synchronization of an optical line terminal (OLT) and an optical network unit (ONU) in a passive optical network system.
  • OLT optical line terminal
  • ONU optical network unit
  • the embodiment of the invention provides a time synchronization message sending method, which is applied to an optical line terminal, and the method includes:
  • a time synchronization message is sent to the optical network unit.
  • the detecting a time synchronization signal between the optical line terminal and the optical network unit includes:
  • the time synchronization signal carries clock source information of the optical line terminal, and the clock source information includes a super frame number N and a time stamp TstampN.
  • the detecting, by using the first time interval, the time synchronization signal between the optical line terminal and the optical network unit includes:
  • N2 and N1 are super frame numbers, and TstampN2 and TstampN1 are time stamps;
  • T diff
  • the method further includes:
  • the method further includes:
  • a time synchronization message is sent to the optical network unit when the optical network unit is first activated.
  • the embodiment of the invention provides a time synchronization message sending device, which is applied to an optical line terminal, and includes:
  • the detecting module is configured to: detect a time synchronization signal between the optical line terminal and the optical network unit;
  • the message sending module is configured to: when the deviation of the time synchronization signal exceeds a threshold, send a time synchronization message to the optical network unit.
  • the detection module is set to:
  • the time synchronization signal carries clock source information of the optical line terminal, and the clock source information includes a super frame number N and a time stamp TstampN.
  • the detecting module detects the time synchronization signal between the optical line terminal and the optical network unit at the first time interval by:
  • N2 and N1 are super frame numbers, and TstampN2 and TstampN1 are time stamps;
  • T diff
  • the message sending module is further configured to: send a time synchronization message to the optical network unit at a second time interval; wherein the second time interval is greater than the first time interval.
  • the message sending module is further configured to: send a time synchronization message to the optical network unit when the optical network unit is activated for the first time.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, and the time synchronization message sending method is implemented when the computer executable instructions are executed.
  • a time synchronization message sending method and apparatus when detecting that a deviation of a time synchronization signal between an optical line terminal and an optical network unit exceeds a threshold, to an optical network
  • the unit sends a time synchronization message to ensure that the time of the optical line terminal (OLT) and the optical network unit (ONU) in the passive optical network system is continuously synchronized, and the OLT and the ONU are prevented from drifting, error or other loss of lock of the OLT clock source.
  • the clock cannot be kept synchronized for a long time because it waits for the next time synchronization message transmission cycle.
  • FIG. 1 is a flowchart of a method for sending a time synchronization message according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a time synchronization message sending apparatus according to an embodiment of the present invention
  • FIG. 3 is an information interaction diagram of a time synchronization message sending method according to an application example of an embodiment of the present invention.
  • an embodiment of the present invention provides a time synchronization message sending method, which is applied to an optical line terminal, and the method includes:
  • Step S10 detecting a time synchronization signal between the optical line terminal and the optical network unit
  • Step S20 Send a time synchronization message to the optical network unit when the deviation of the time synchronization signal exceeds a threshold.
  • the detecting a time synchronization signal between the optical line terminal and the optical network unit includes:
  • the time synchronization signal carries clock source information of the optical line terminal, and the clock source information includes a super frame number N and a time stamp TstampN.
  • the deviation of the time synchronization signal may be caused by a drift, error or other loss of lock of the clock source of the optical line terminal.
  • the time synchronization signal between the optical line terminal and the optical network unit is detected at the first time interval, including:
  • N2 and N1 are super frame numbers, and TstampN2 and TstampN1 are time stamps;
  • T diff
  • t 1/8000 seconds.
  • the method further includes:
  • the method further includes:
  • a time synchronization message is sent to the optical network unit when the optical network unit is first activated.
  • the second time interval can be set to be large, and the first time interval is set to be small (for example, the time of one superframe is separated).
  • the ONU does not wait for the transmission period of the second time interval, but synchronizes the signal deviation by every other time interval. Detect and quickly synchronize with the OLT.
  • This processing method not only reduces message interaction, rationally utilizes resources, but also ensures that the time between the OLT and the ONU is consistent.
  • an embodiment of the present invention provides a time synchronization message sending apparatus, which is applied to an optical line terminal, and includes:
  • the detecting module is configured to: detect a time synchronization signal between the optical line terminal and the optical network unit;
  • the message sending module is configured to: when the deviation of the time synchronization signal exceeds a threshold, send a time synchronization message to the optical network unit.
  • the detection module is set to:
  • the time synchronization signal carries clock source information of the optical line terminal, and the clock source information includes a super frame number N and a time stamp TstampN.
  • the deviation of the time synchronization signal may be caused by a drift, error or other loss of lock of the clock source of the optical line terminal.
  • the detecting module detects the time synchronization signal between the optical line terminal and the optical network unit at the first time interval by:
  • N2 and N1 are super frame numbers, and TstampN2 and TstampN1 are time stamps;
  • T diff
  • the message sending module is further configured to: send the optical network unit to the optical network unit at a second time interval. Sending a time synchronization message; wherein the second time interval is greater than the first time interval.
  • the message sending module is further configured to: send a time synchronization message to the optical network unit when the optical network unit is activated for the first time.
  • a time synchronization method between an OLT and an ONU includes the following steps:
  • Step S101 When the OLT arrives at the fixed transmission period Tcycle (the time synchronization message is sent to the ONU), the OLT calculates the timestamp TstampN1 corresponding to the arrival of the N1 superframe to the ONU; the OLT sends the N1-X super to the ONU.
  • the super frame is N1-X
  • the time synchronization message is sent to the ONU through the OMCI message, where the clock source information of the OLT (N1, TstampN1) is carried;
  • Step S102 The OLT sends the N1th super frame to the ONU; when the N1 super frame arrives, the ONU recovers the time information according to the previously received (N1, TstampN1);
  • Step S103 When the OLT sends the N2-X super frames N2-X to the ONU, according to the clock source information (N2, TstampN2) of the time synchronization message that should be sent to the ONU, and the last time sent to the optical network.
  • the clock source information (N1, TstampN1) of the time synchronization message of the unit determines the deviation amount T diff of the current time synchronization signal. If the T diff exceeds the threshold, the time synchronization message is sent to the ONU through the OMCI message, where the clock source information of the OLT is carried ( N2, TstampN2);
  • Step S104 The OLT sends the N2th super frame to the ONU; when the N2th super frame arrives, the ONU recovers the time information according to the previously received (N2, TstampN2);
  • Step S105 When the next fixed transmission period Tcycle arrives, the OLT sends a time synchronization message to the ONU through the OMCI message when the N3-X super frame N3-X is sent to the ONU, where the OLT carries the clock source information of the OLT ( N3, TstampN3);
  • Step S106 The OLT sends the N3th super frame to the ONU; when the N3th super frame arrives, the ONU recovers the time information according to the previously received (N3, TstampN3).
  • the method and device for transmitting a time synchronization message provided by the foregoing embodiment can ensure that a time synchronization message is sent to the optical network unit when the deviation of the time synchronization signal between the optical line terminal and the optical network unit exceeds a threshold.
  • Optical line termination (OLT) and passive optical network systems The time of the optical network unit (ONU) is continuously synchronized to avoid drift, error or other loss of lock of the OLT clock source. The OLT and the ONU cannot wait for the longer time clock to keep synchronizing because they wait for the next time synchronization message transmission period.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, and the time synchronization message sending method is implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. Instructions to achieve their corresponding functions. This application is not limited to any specific combination of hardware and software.
  • the embodiment of the invention provides a method and a device for transmitting a time synchronization message, which can ensure that the time of the OLT and the ONU in the passive optical network system is continuously synchronized, and the OLT and the ONU are prevented from drifting, error or other loss of lock of the OLT clock source.
  • the clock cannot be kept synchronized for a long time because it waits for the next time synchronization message transmission cycle.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Optical Communication System (AREA)
  • Small-Scale Networks (AREA)

Abstract

一种时间同步消息发送方法,应用于光线路终端,该方法包括:检测本光线路终端与光网络单元之间的时间同步信号;在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。上述方法能够保证无源光网络***中光线路终端OLT和光网络单元ONU的时间持续同步。本申请还公开了一种时间同步消息发送装置。

Description

一种时间同步消息发送方法和装置 技术领域
本申请涉及但不限于光通信技术领域,尤其涉及的是一种时间同步消息发送方法和装置。
背景技术
光接入技术能够提供大带宽和高可靠性,无源光网络(Passive Optical Network,PON)是一种主要的光接入技术,作为主流接入技术,在全球多个地区都得到了大规模应用。
数据业务的飞速发展突显了对数据接入的可移动性的要求,有线、无线的融合将能够更好地满足用户的要求,提高用户的体验。PON技术具有数据、语音和时分多址(Time Division Multiplex,简称为TDM)全业务接入能力,能够满足不断演进的无线接入需求。特别是在微蜂窝、家庭基站接入应用中,PON的收敛特性能使整个网络层次清楚、施工方便、管理高效。
相关技术中,PON网络上进行时间同步的方法为:光线路终端(Optical Line Terminal,简称为OLT)将外部时钟(例如,GPS时钟)信号或从网络精确定时协议(Precision Time Protocol,简称为PTP)消息中恢复的时间生成一个时间同步消息,然后,通过业务、管理或者数据链路层的通道将该时间同步消息发送给光网络单元(Optical Network Unit,简称为ONU)。
标准G.988.9.12.2中规定了OLT发送给ONU的时间同步消息,包括两个部分,第一部分(4字节)是super frame N,也即,超帧计数器,第二部分(10字节)是TstampN,也即,时间戳。ONU下行接收到第N个超帧(super frame)时,根据接收到的时间同步消息(N,TstampN),结合PON***本身的同步机制生成本地时间,达到时间同步的目的。
作为一种点到多点的***,OLT控制着向ONU发送时间同步消息的时机。标准G984.3Amd2建议24小时至少同步一次,且当ONU第一次被激活时同步一次。为了确保OLT和ONU时间持续同步,一般地,以固定时间间 隔发送时间同步消息。
但是,如果OLT上时钟信息有变化而没有到固定时间间隔,势必造成ONU恢复时钟与OLT时钟信息不一致。这样,就会出现OLT和ONU上时间不同步的情况,从而严重影响了PON上依赖于时间同步机制的TDM等业务。如果单纯无限减小发送间隔,会有大量的OMCI(ONU Management and Control Interface,光网络单元管理控制接口)消息交互,尤其对于OLT来说,要多发很多无意义的OMCI消息。
综上所述,在现有场景下,以上时间同步消息发送的控制方法在实现时具有无法避免的缺陷和局限性,尤其是在OLT时钟源出现漂移、误差或者其他失锁的情况下,OLT和ONU可能有较长的时间段内时钟不能保持同步,亟需改进。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供一种时间同步消息发送方法和装置,能够保证无源光网络***中光线路终端(OLT)和光网络单元(ONU)的时间持续同步。
本发明实施例提供了一种时间同步消息发送方法,应用于光线路终端,该方法包括:
检测本光线路终端与光网络单元之间的时间同步信号;
在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。
可选地,所述检测本光线路终端与光网络单元之间的时间同步信号,包括:
以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测;
其中,所述时间同步信号携带本光线路终端的时钟源信息,所述时钟源信息包括超帧号N和时间戳TstampN。
可选地,所述以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测,包括:
在每一次第一时间间隔到时,根据当前应该向光网络单元发送的时间同步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff;其中,N2、N1为超帧号,TstampN2、TstampN1为时间戳;
其中,Tdiff=|TstampN1+(N2-N1)*t-TstampN2|;
其中,t为相邻两个超帧号之间的时间差;|.|为绝对值符号。
可选地,该方法还包括:
以第二时间间隔向所述光网络单元发送时间同步消息;其中,所述第二时间间隔大于所述第一时间间隔。
可选地,该方法还包括:
在光网络单元第一次被激活时,向所述光网络单元发送时间同步消息。
本发明实施例提供了一种时间同步消息发送装置,应用于光线路终端,包括:
检测模块,设置为:检测本光线路终端与光网络单元之间的时间同步信号;
消息发送模块,设置为:在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。
可选地,检测模块是设置为:
以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测;
其中,所述时间同步信号携带本光线路终端的时钟源信息,所述时钟源信息包括超帧号N和时间戳TstampN。
可选地,检测模块通过以下方式以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测:
在每一次第一时间间隔到时,根据当前应该向光网络单元发送的时间同 步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff;其中,N2、N1为超帧号,TstampN2、TstampN1为时间戳;
其中,Tdiff=|TstampN1+(N2-N1)*t-TstampN2|;
其中,t为相邻两个超帧号之间的时间差;|.|为绝对值符号。
可选地,消息发送模块,还设置为:以第二时间间隔向所述光网络单元发送时间同步消息;其中,所述第二时间间隔大于所述第一时间间隔。
可选地,消息发送模块,还设置为:在光网络单元第一次被激活时,向所述光网络单元发送时间同步消息。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现所述时间同步消息发送方法。
与现有技术相比,本发明实施例提供的一种时间同步消息发送方法和装置,通过在检测到本光线路终端与光网络单元之间的时间同步信号的偏差超过阈值时,向光网络单元发送时间同步消息,能够保证无源光网络***中光线路终端(OLT)和光网络单元(ONU)的时间持续同步,避免OLT时钟源出现漂移、误差或者其他失锁的情况下,OLT和ONU因为等待下一个时间同步消息发送周期而导致较长时间时钟不能保持同步。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例的一种时间同步消息发送方法的流程图;
图2为本发明实施例的一种时间同步消息发送装置的结构示意图;
图3为本发明实施例的应用示例的一种时间同步消息发送方法的信息交互图。
本发明的实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在 不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
如图1所示,本发明实施例提供了一种时间同步消息发送方法,应用于光线路终端,该方法包括:
步骤S10,检测本光线路终端与光网络单元之间的时间同步信号;
步骤S20,在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。
其中,检测本光线路终端与光网络单元之间的时间同步信号,包括:
以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测;
其中,所述时间同步信号携带本光线路终端的时钟源信息,所述时钟源信息包括超帧号N和时间戳TstampN。
其中,所述时间同步信号的偏差可能是由于光线路终端的时钟源出现漂移、误差或者其他失锁的情况而引起的。
其中,以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测,包括:
在每一次第一时间间隔到时,根据当前应该向光网络单元发送的时间同步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff;其中,N2、N1为超帧号,TstampN2、TstampN1为时间戳;
其中,Tdiff=|TstampN1+(N2-N1)*t-TstampN2|;
其中,t为相邻两个超帧号之间的时间差;|.|为绝对值符号。
比如,假设每秒有8000个下行帧,则t为1/8000秒。
其中,所述方法还包括:
以第二时间间隔向所述光网络单元发送时间同步消息;其中,所述第二时间间隔大于所述第一时间间隔。
其中,所述方法还包括:
在光网络单元第一次被激活时,向所述光网络单元发送时间同步消息。
采用本发明实施例提供的所述方法,可以将第二时间间隔设得很大,而将第一时间间隔设得很小(比如,间隔一个超帧的时间)。在OLT上时钟源有变化(比如,时钟源出现漂移、误差或者其他失锁的情况)时,ONU不用等待第二时间间隔的发送周期,而是通过每隔第一时间间隔的时间同步信号偏差检测,快速与OLT保持同步。这种处理方式既减少消息交互、合理利用资源,又能保证OLT与ONU的时间保持一致。
如图2所示,本发明实施例提供了一种时间同步消息发送装置,应用于光线路终端,包括:
检测模块,设置为:检测本光线路终端与光网络单元之间的时间同步信号;
消息发送模块,设置为:在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。
其中,检测模块是设置为:
以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测;
其中,所述时间同步信号携带本光线路终端的时钟源信息,所述时钟源信息包括超帧号N和时间戳TstampN。
其中,所述时间同步信号的偏差可能是由于光线路终端的时钟源出现漂移、误差或者其他失锁的情况而引起的。
其中,检测模块通过以下方式以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测:
在每一次第一时间间隔到时,根据当前应该向光网络单元发送的时间同步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff;其中,N2、N1为超帧号,TstampN2、TstampN1为时间戳;
其中,Tdiff=|TstampN1+(N2-N1)*t-TstampN2|;
其中,t为相邻两个超帧号之间的时间差;|.|为绝对值符号。
其中,消息发送模块,还设置为:以第二时间间隔向所述光网络单元发 送时间同步消息;其中,所述第二时间间隔大于所述第一时间间隔。
其中,消息发送模块,还设置为:在光网络单元第一次被激活时,向所述光网络单元发送时间同步消息。
下面说明本发明实施例的应用示例。
采用本发明上述实施例的方法,OLT与ONU之间的时间同步方法,包括下述步骤:
步骤S101:OLT在固定发送周期Tcycle(定时向ONU发送时间同步消息)到来时,计算第N1个超帧(super frame)到达ONU时对应的时间戳TstampN1;OLT向ONU发送第N1-X个超帧(super frame)N1-X时,通过OMCI消息发送时间同步消息给ONU,其中携带OLT的时钟源信息(N1,TstampN1);
步骤S102:OLT向ONU发送第N1个super frame;ONU在第N1个super frame到达时,根据之前收到的(N1,TstampN1)恢复出时间信息;
步骤S103:OLT向ONU发送第N2-X个超帧(super frame)N2-X时,根据当前应该向ONU发送的时间同步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff,如Tdiff超出阈值,通过OMCI消息发送时间同步消息给ONU,其中携带OLT的时钟源信息(N2,TstampN2);
步骤S104:OLT向ONU发送第N2个super frame;ONU在第N2个super frame到达时,根据之前收到的(N2,TstampN2)恢复出时间信息;
步骤S105:OLT在下一个固定发送周期Tcycle到来时,向ONU发送第N3-X个超帧(super frame)N3-X时,通过OMCI消息发送时间同步消息给ONU,其中携带OLT的时钟源信息(N3,TstampN3);
步骤S106:OLT向ONU发送第N3个super frame;ONU在第N3个super frame到达时,根据之前收到的(N3,TstampN3)恢复出时间信息。
上述实施例提供的一种时间同步消息发送方法和装置,通过在检测到本光线路终端与光网络单元之间的时间同步信号的偏差超过阈值时,向光网络单元发送时间同步消息,能够保证无源光网络***中光线路终端(OLT)和 光网络单元(ONU)的时间持续同步,避免OLT时钟源出现漂移、误差或者其他失锁的情况下,OLT和ONU因为等待下一个时间同步消息发送周期而导致较长时间时钟不能保持同步。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现所述时间同步消息发送方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。
需要说明的是,本申请还可有其他多种实施例,在不背离本申请精神及其实质的情况下,熟悉本领域的技术人员可根据本申请作出各种相应的改变和变形,但这些相应的改变和变形都应属于本申请所附的权利要求的保护范围。
工业实用性
本发明实施例提供一种时间同步消息发送方法和装置,能够保证无源光网络***中OLT和ONU的时间持续同步,避免OLT时钟源出现漂移、误差或者其他失锁的情况下,OLT和ONU因为等待下一个时间同步消息发送周期而导致较长时间时钟不能保持同步。

Claims (11)

  1. 一种时间同步消息发送方法,应用于光线路终端,该方法包括:
    检测本光线路终端与光网络单元之间的时间同步信号;
    在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。
  2. 如权利要求1所述的方法,其中,所述检测本光线路终端与光网络单元之间的时间同步信号,包括:
    以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测;
    其中,所述时间同步信号携带本光线路终端的时钟源信息,所述时钟源信息包括超帧号N和时间戳TstampN。
  3. 如权利要求2所述的方法,其中,所述以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测,包括:
    在每一次第一时间间隔到时,根据当前应该向光网络单元发送的时间同步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff;其中,N2、N1为超帧号,TstampN2、TstampN1为时间戳;
    其中,Tdiff=|TstampN1+(N2-N1)*t-TstampN2|;
    其中,t为相邻两个超帧号之间的时间差;|.|为绝对值符号。
  4. 如权利要求1或2或3所述的方法,所述方法还包括:
    以第二时间间隔向所述光网络单元发送时间同步消息;其中,所述第二时间间隔大于所述第一时间间隔。
  5. 如权利要求1或2或3所述的方法,所述方法还包括:
    在光网络单元第一次被激活时,向所述光网络单元发送时间同步消息。
  6. 一种时间同步消息发送装置,应用于光线路终端,包括:
    检测模块,设置为:检测本光线路终端与光网络单元之间的时间同步信号;
    消息发送模块,设置为:在所述时间同步信号的偏差超过阈值时,向所述光网络单元发送时间同步消息。
  7. 如权利要求6所述的装置,其中,所述检测模块是设置为:
    以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测;
    其中,所述时间同步信号携带本光线路终端的时钟源信息,所述时钟源信息包括超帧号N和时间戳TstampN。
  8. 如权利要求7所述的装置,其中,所述检测模块通过以下方式以第一时间间隔对本光线路终端与光网络单元之间的时间同步信号进行检测:
    在每一次第一时间间隔到时,根据当前应该向光网络单元发送的时间同步消息的时钟源信息(N2,TstampN2)与上次已发送给光网络单元的时间同步消息的时钟源信息(N1,TstampN1),确定当前时间同步信号的偏差量Tdiff;其中,N2、N1为超帧号,TstampN2、TstampN1为时间戳;
    其中,Tdiff=|TstampN1+(N2-N1)*t-TstampN2|;
    其中,t为相邻两个超帧号之间的时间差;|.|为绝对值符号。
  9. 如权利要求6或7或8所述的装置,其中,所述消息发送模块还设置为:以第二时间间隔向所述光网络单元发送时间同步消息;其中,所述第二时间间隔大于所述第一时间间隔。
  10. 如权利要求6或7或8所述的装置,其中,所述消息发送模块还设置为:在光网络单元第一次被激活时,向所述光网络单元发送时间同步消息。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现权利要求1至5任一项所述的方法。
PCT/CN2016/075971 2015-05-21 2016-03-09 一种时间同步消息发送方法和装置 WO2016184225A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510264092.9 2015-05-21
CN201510264092.9A CN106301646B (zh) 2015-05-21 2015-05-21 一种时间同步消息发送方法和装置

Publications (1)

Publication Number Publication Date
WO2016184225A1 true WO2016184225A1 (zh) 2016-11-24

Family

ID=57319384

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/075971 WO2016184225A1 (zh) 2015-05-21 2016-03-09 一种时间同步消息发送方法和装置

Country Status (2)

Country Link
CN (1) CN106301646B (zh)
WO (1) WO2016184225A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995387B (zh) * 2019-11-28 2021-05-25 广东邮电职业技术学院 一种gpon网络承载高精度时钟的实现方法
CN111787013B (zh) * 2020-07-03 2022-02-25 中国电子科技集团公司第三十研究所 一种光纤时间同步***的攻击监测装置与方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431385A (zh) * 2008-08-26 2009-05-13 中兴通讯股份有限公司 一种无源光网络中频率及时间的同步方法
CN101707505A (zh) * 2008-08-13 2010-05-12 华为技术有限公司 一种在无源光网络中时间同步的方法、装置及无源光网络
US20110129218A1 (en) * 2009-11-27 2011-06-02 Electronics And Telecommunications Research Institute Optical network terminal, method for time syncronization thereof, optical line terminal, and method for managing network thereof
CN102932905A (zh) * 2011-08-10 2013-02-13 中兴通讯股份有限公司 自动补偿1588链路非对称性时延的实现方法及***
CN104486017A (zh) * 2014-11-07 2015-04-01 中国电子科技集团公司第二十八研究所 一种基于ip光传输的卫星授时多节点同步监测方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945305A (zh) * 2009-07-09 2011-01-12 大唐移动通信设备有限公司 一种实现时间同步的方法及***
KR102060496B1 (ko) * 2013-02-12 2019-12-30 삼성전자주식회사 시간 동기화를 위한 단말 장치 및 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707505A (zh) * 2008-08-13 2010-05-12 华为技术有限公司 一种在无源光网络中时间同步的方法、装置及无源光网络
CN101431385A (zh) * 2008-08-26 2009-05-13 中兴通讯股份有限公司 一种无源光网络中频率及时间的同步方法
US20110129218A1 (en) * 2009-11-27 2011-06-02 Electronics And Telecommunications Research Institute Optical network terminal, method for time syncronization thereof, optical line terminal, and method for managing network thereof
CN102932905A (zh) * 2011-08-10 2013-02-13 中兴通讯股份有限公司 自动补偿1588链路非对称性时延的实现方法及***
CN104486017A (zh) * 2014-11-07 2015-04-01 中国电子科技集团公司第二十八研究所 一种基于ip光传输的卫星授时多节点同步监测方法

Also Published As

Publication number Publication date
CN106301646A (zh) 2017-01-04
CN106301646B (zh) 2019-08-23

Similar Documents

Publication Publication Date Title
US10862601B1 (en) Bridges including physical layer devices for indicating transmission times of synchronization frames by modifying previously generated corresponding follow up frames
CN106488550B (zh) 确定终端与基站时钟时间偏差的方法与装置
CN102907021B (zh) 优化定时分组传输
US8929405B2 (en) Method and apparatus for optimizing packet timing transport
CN102013931B (zh) 时间同步方法及***、从属定时设备及主定时设备
US20150358700A1 (en) Apparatus and method for enabling a passive optical network on supporting time synchronization
WO2017012486A1 (zh) 一种otn网元设备、otn时钟和时间的同步方法及***
CN102244603B (zh) 传输承载时间的报文的方法、设备及***
CN102938676A (zh) 时间同步处理方法、装置及***
CN103259640B (zh) 一种同步时间的方法和设备
EP2448168A1 (en) Method and system for bearing time synchronization protocol in optical transport network
Magee Synchronization in next-generation mobile backhaul networks
WO2012163172A1 (zh) 一种时钟同步方法及设备
WO2012065334A1 (zh) 在时分复用网络中实现时间同步的方法、设备和***
US20210400610A1 (en) Time synchronization in integrated 5g wireless and time-sensitive networking systems
US20130107998A1 (en) Clock Synchronization in Shared Baseband Deployments
US8948586B2 (en) Method and apparatus for laser overlap detection
JP5051665B2 (ja) Geponシステム、局側装置及び端末側装置
WO2015125439A1 (ja) 通信システム、無線通信装置及び無線通信方法
CN113424466B (zh) 时钟同步的方法和装置
US20140334311A1 (en) Symmetrical latency with tdm circuit emulated service
WO2016184225A1 (zh) 一种时间同步消息发送方法和装置
WO2013029453A1 (zh) 穿越第三方同步网络的同步方法和***
JP6540957B2 (ja) Ponシステムおよび伝送方法
WO2016082369A1 (zh) 时钟源属性的同步方法、装置及***

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16795712

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16795712

Country of ref document: EP

Kind code of ref document: A1