[go: up one dir, main page]

CN105323086B - Method, device and system for indicating synchronous time source selection - Google Patents

Method, device and system for indicating synchronous time source selection Download PDF

Info

Publication number
CN105323086B
CN105323086B CN201410330416.XA CN201410330416A CN105323086B CN 105323086 B CN105323086 B CN 105323086B CN 201410330416 A CN201410330416 A CN 201410330416A CN 105323086 B CN105323086 B CN 105323086B
Authority
CN
China
Prior art keywords
node
time
synchronization
clock
nodes
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201410330416.XA
Other languages
Chinese (zh)
Other versions
CN105323086A (en
Inventor
张建军
江涛
杨明杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201410330416.XA priority Critical patent/CN105323086B/en
Priority to PCT/CN2014/094420 priority patent/WO2015184763A1/en
Publication of CN105323086A publication Critical patent/CN105323086A/en
Application granted granted Critical
Publication of CN105323086B publication Critical patent/CN105323086B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a method, a device and a system for indicating synchronous time source selection. Wherein, the method comprises the following steps: the first node determines that the clock synchronization of the first node is abnormal; the first node outputs time state information of the first node, wherein the time state information comprises indication information indicating that clock synchronization of the first node is abnormal, and other nodes are indicated to select output time of a second node except the first node as a synchronization time source.

Description

指示同步时间源选择的方法、装置及系统Method, apparatus and system for indicating synchronization time source selection

技术领域technical field

本发明涉及通信领域,具体而言,涉及一种指示同步时间源选择的方法、装置及系统。The present invention relates to the field of communications, and in particular, to a method, device and system for indicating synchronization time source selection.

背景技术Background technique

在承载网波分系统中实现时钟时间同步,首先实现时钟同步,只有时钟同步了,才有可能实现时间同步。波分系统中业界通常的做法是时钟同步采用同步状态消息(Synchronization Status Message,SSM)算法,时间同步采用1588算法。To realize clock time synchronization in the WDM system of the bearer network, first realize the clock synchronization. Only when the clocks are synchronized can the time synchronization be realized. A common practice in the industry in the wavelength division system is to use a synchronization status message (Synchronization Status Message, SSM) algorithm for clock synchronization, and a 1588 algorithm for time synchronization.

时钟同步SSM算法中,结合时钟芯片判断出的时钟物理质量以及线路上定时接收到的标识时钟质量等级高低的SSM字节信息来决策出本节点的时钟源,最终通过配置时钟芯片完成本节点时钟的切换。如图1所示,时钟同步SSM算法中,假如节点3上设置了导入节点1和节点2的时钟。节点3上的时钟芯片判断出来自节点1和节点2的时钟物理质量是否足够好,首先排除不满足节点3上时钟锁定门限的时钟。然后节点3对满足锁定门限的时钟依据G.781标准中的定义判断各路时钟的等级高低(如表1所示),判断比较节点1和节点2线路上传过来的分别标识各自线路时钟质量高低的SSM线路等级,从而优选出满足时钟锁定门限且SSM质量等级高的时钟。节点3优选出质量等级最高的时钟后,会配置时钟芯片锁定该路时钟,完成本节点同上游时钟节点的时钟同步。In the clock synchronization SSM algorithm, the clock source of the node is determined by combining the physical quality of the clock judged by the clock chip and the SSM byte information that identifies the clock quality level regularly received on the line, and finally completes the clock source of the node by configuring the clock chip. switch. As shown in Figure 1, in the clock synchronization SSM algorithm, if node 3 is set to import the clocks of node 1 and node 2. The clock chip on node 3 determines whether the physical quality of the clocks from node 1 and node 2 is good enough, and first excludes clocks that do not meet the clock lock threshold on node 3. Then node 3 judges the level of the clocks of each channel according to the definition in the G.781 standard for the clocks that meet the locking threshold (as shown in Table 1), and judges and compares the clock quality of the respective lines uploaded by nodes 1 and 2. The SSM line level is selected, so that the clock that meets the clock lock threshold and has a high SSM quality level is selected. After node 3 selects the clock with the highest quality level, it will configure the clock chip to lock the clock of this channel to complete the clock synchronization between the node and the upstream clock node.

时间同步1588算法是根据本节点定时接收到的Announce报文,依照1588协议来比较Announce报文中的grandmasterPriority1等字段,完成时间选源,最终通过1588协议所描述的与时间源精确时间协议(Precision Time Protocol,PTP,1588的简称)对时报文的交互来完成同时间源的时间同步。如图1所示,节点3根据接收到的节点1和节点2发过来的Announce报文(如表2所示),按照1588协议的描述运行最优主时钟(Best master clock,BMC)算法比较出节点1和节点2中更优一路的时间,从而决定本节点需要与哪一路的时间做同步。节点3向优选出的某一路时间依据1588协议中规定的时间同步方法通过PTP对时报文的交互完成本节点同上游时间节点的时间同步。The time synchronization 1588 algorithm is based on the Announce message received regularly by the node, according to the 1588 protocol to compare the grandmasterPriority1 and other fields in the Announce message, to complete the time source selection, and finally through the 1588 protocol described with the time source Precision Time Protocol (Precision Time Protocol, PTP, short for 1588) interacts with time messages to complete the time synchronization of the same time source. As shown in Figure 1, node 3 runs the Best master clock (BMC) algorithm comparison according to the description of the 1588 protocol according to the received Announce message (as shown in Table 2) sent by node 1 and node 2 The time of the better route in node 1 and node 2 is output, so as to determine which route the node needs to synchronize with. Node 3 completes the time synchronization between the node and the upstream time node through the interaction of the PTP time-synchronization message to the selected time according to the time synchronization method specified in the 1588 protocol.

通常时钟时间网可分离,当时钟网的时钟注入源头或其上的某一时钟节点发生故障时,将导致时间网异常。在这种情况下,如果不关联时钟同步SSM算法与时间同步1588算法,则使得时钟网上节点发生故障进行切换时,时间网上的节点不会进行切换。从而导致时间网上的节点选择错误的同步时间源进行时间同步。Usually, the clock time network can be separated. When the clock injection source of the clock network or a clock node on the clock network fails, the time network will be abnormal. In this case, if the clock synchronization SSM algorithm and the time synchronization 1588 algorithm are not associated, the nodes on the time network will not be switched when the node on the clock network fails to switch. As a result, the nodes on the time network select the wrong synchronization time source for time synchronization.

表1.SSM信息的定义Table 1. Definition of SSM Information

Figure BDA0000536497130000021
Figure BDA0000536497130000021

表2.Annouce报文的定义Table 2. Definition of Annouce message

Figure 1
Figure 1

发明内容SUMMARY OF THE INVENTION

针对相关技术中,在时钟网上节点发生故障进行切换时,时间网上的节点不会进行切换。从而导致时间网上的节点选择错误的同步时间源进行时间同步的问题,本发明提供了一种指示同步时间源选择的方法、装置及系统,以至少解决上述问题。In the related art, when a node on the clock network fails to perform switching, the nodes on the time network will not switch. This leads to the problem that nodes on the time network select the wrong synchronization time source for time synchronization. The present invention provides a method, device and system for instructing synchronization time source selection to at least solve the above problem.

根据本发明的一个方面,提供了一种指示同步时间源选择的方法,包括:第一节点确定本节点时钟同步异常;所述第一节点输出所述第一节点的时间状态信息,其中,所述时间状态信息中包含指示所述第一节点时钟同步异常的指示信息,指示其它节点选择除所述第一节点之外的第二节点的输出时间为同步时间源。According to an aspect of the present invention, there is provided a method for indicating the selection of a synchronization time source, comprising: a first node determining that the clock synchronization of the local node is abnormal; the first node outputting time state information of the first node, wherein the The time status information includes indication information indicating that the clock synchronization of the first node is abnormal, and instructs other nodes to select the output time of the second node other than the first node as the synchronization time source.

可选地,所述第一节点输出所述第一节点的时间状态信息,包括:所述第一节点输出通告报文,其中,所述通告报文中携带的用于其它节点进行时间选源的优先级的取值为所述第一节点所在的承载网波分系统中的最低优先级的值。Optionally, the first node outputting the time status information of the first node includes: the first node outputting a notification message, wherein the message carried in the notification message is used for other nodes to select time sources. The value of the priority is the value of the lowest priority in the wavelength division system of the bearer network where the first node is located.

可选地,所述第一节点输出所述第一节点的时间状态信息之前,所述方法还包括:所述第一节点确定开启时钟时间关联功能。Optionally, before the first node outputs the time state information of the first node, the method further includes: the first node determines to enable a clock time association function.

可选地,在所述第一节点输出所述第一节点的时间状态信息之后,所述方法还包括:所述其它节点接收到所述时间状态信息,根据所述时间状态信息重新运行时间源选源算法,选择除所述第一节点之外的第二节点的输出时间为同步时间源。Optionally, after the first node outputs the time state information of the first node, the method further includes: the other node receives the time state information, and re-runs the time source according to the time state information The source selection algorithm selects the output time of the second node other than the first node as the synchronization time source.

根据本发明的另一个方面,提供了一种指示同步时间源选择的装置,包括:第一确定模块,用于确定第一节点时钟同步异常;输出模块,用于输出所述第一节点的时间状态信息,其中,所述时间状态信息中包含指示所述第一节点时钟同步异常的指示信息,指示其它节点选择除所述第一节点之外的第二节点的输出时间为同步时间源。According to another aspect of the present invention, there is provided an apparatus for indicating synchronization time source selection, comprising: a first determination module for determining that the clock of the first node is abnormally synchronized; an output module for outputting the time of the first node Status information, wherein the time status information includes indication information indicating that the clock synchronization of the first node is abnormal, instructing other nodes to select the output time of the second node other than the first node as the synchronization time source.

可选地,所述输出模块通过以下方式输出所述时间状态信息:输出通告报文,其中,所述通告报文中携带的用于其它节点进行时间选源的优先级的取值为所述第一节点所在的承载网波分系统中的最低优先级的值。Optionally, the output module outputs the time status information in the following manner: outputting a notification message, wherein the value of the priority carried in the notification message for other nodes to select the time source is the The value of the lowest priority in the WDM system of the bearer network where the first node is located.

可选地,还包括:第二确定模块,用于确定所述第一节点开启时钟时间关联功能。Optionally, the method further includes: a second determining module, configured to determine that the first node enables a clock time association function.

根据本发明的又一个方面,提供了一种指示同步时间源选择的系统,包括:第一节点和所述第一节点所在的承载网波分系统中除所述第一节点之外的其他节点;其中,所述第一节点包括上述的装置,用于在所述第一节点的时钟同步异常时,输出时间状态信息,其中,所述时间状态信息中包含指示所述第一节点时钟同步异常的指示信息,指示其它节点选择除所述第一节点之外的第二节点的输出时间为同步时间源;所述其他节点,用于根据所述第一节点输出的所述时间状态信息,重新运行时间源选源算法,选择除所述第一节点之外的第二节点的输出时间为同步时间源。According to another aspect of the present invention, a system for indicating synchronization time source selection is provided, comprising: a first node and other nodes other than the first node in the wavelength division system of the bearer network where the first node is located ; wherein, the first node includes the above-mentioned device for outputting time status information when the clock synchronization of the first node is abnormal, wherein the time status information includes an indication that the clock synchronization of the first node is abnormal The indication information, instructing other nodes to select the output time of the second node other than the first node as the synchronization time source; the other nodes are used for resetting the time status information output by the first node The time source selection algorithm is run, and the output time of the second node other than the first node is selected as the synchronization time source.

通过本发明,承载网波分系统中的节点在时钟同步异常时,输出指示时钟同步异常的时间状态信息,在时钟网上节点发生故障进行切换时,时间网上的节点会根据该时间状态信息进行同步时间源的切换,建立了时钟同步与时间同步之间的关联,避免了时钟节点出现异常的时候有可能引出的错误时间同步。Through the present invention, when the clock synchronization is abnormal, the nodes in the bearer network wavelength division system output the time state information indicating the abnormal clock synchronization. When the node on the clock network fails to perform switching, the nodes on the time network will synchronize according to the time state information. The switching of the time source establishes the association between the clock synchronization and the time synchronization, and avoids the wrong time synchronization that may be caused when the clock node is abnormal.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1是根据相关技术的多节点时钟时间同步组网示意图;1 is a schematic diagram of a multi-node clock time synchronization networking according to the related art;

图2是根据本发明实施例的指示同步时间源选择的方法的流程图;2 is a flowchart of a method for indicating synchronization time source selection according to an embodiment of the present invention;

图3是根据本发明实施例的指示同步时间源选择的系统的结构示意图;3 is a schematic structural diagram of a system for indicating synchronization time source selection according to an embodiment of the present invention;

图4是根据本发明实施例的指示同步时间源选择的装置的结构示意图;4 is a schematic structural diagram of an apparatus for indicating synchronization time source selection according to an embodiment of the present invention;

图5是本发明可选实施例的节点根据时钟同步状态关联输出时间状态信息的流程图;5 is a flowchart of a node according to an optional embodiment of the present invention outputting time state information associated with a clock synchronization state;

图6是本发明可选实施例中时钟同步正常时下游节点的时钟时间源的选择示意图;6 is a schematic diagram of selection of a clock time source of a downstream node when clock synchronization is normal in an optional embodiment of the present invention;

图7是本发明可选实施例中时钟时间关联算法开关没打开且时钟同步异常时下游节点的时间源的选择示意图;7 is a schematic diagram of selection of a time source of a downstream node when the clock time correlation algorithm switch is not turned on and the clock synchronization is abnormal in an optional embodiment of the present invention;

图8是本发明可选实施例中时钟时间关联算法开关打开时钟同步且异常时下游节点的时间源的选择示意图。FIG. 8 is a schematic diagram of selecting a time source of a downstream node when the clock time correlation algorithm switch is turned on for clock synchronization and abnormal in an optional embodiment of the present invention.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in conjunction with embodiments. It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict.

针对相关技术中存在的上述问题,本发明实施例提供了一种承载网波分系统中指示同步时间源选择的方法,该方法将时钟同步算法(例如,SSM算法)与时间同步算法(例如,1588算法)相关联。通过该方法在时钟时间网分离的情况下,时钟网节点异常发生切换时,时间网节点可根据需要进行相应切换。In view of the above problems existing in the related art, an embodiment of the present invention provides a method for indicating synchronization time source selection in a wavelength division system of a bearer network. The method combines a clock synchronization algorithm (for example, SSM algorithm) with a time synchronization algorithm (for example, 1588 algorithm) associated. Through this method, when the clock network node is separated, when the clock network node switches abnormally, the time network node can perform corresponding switching according to the needs.

需要说明的是,本发明实施例中,“节点时钟同步正常”是指节点时钟芯片锁定到了上游线路过来的时钟。节点“时钟同步异常”是指节点时钟芯片判断出上游线路上的时钟没有可以锁定的。另外,在本发明实施例中,时间源的切换是指下游节点不再与本节点通过PTP对时报文完成时间的同步,下游节点决策出新的时间源后就会与新的时间源进行PTP对时报文交互来完成时间同步。It should be noted that, in the embodiment of the present invention, "node clock synchronization is normal" means that the node clock chip is locked to the clock from the upstream line. The node "clock synchronization is abnormal" means that the node clock chip determines that the clock on the upstream line cannot be locked. In addition, in the embodiment of the present invention, the switching of the time source means that the downstream node no longer synchronizes the time synchronization with the current node through PTP, and the downstream node will perform PTP with the new time source after deciding on a new time source. Time synchronization is accomplished by interacting with time messages.

图2是根据本发明实施例的指示同步时间源选择的方法的流程图,如图2所示,该方法主要包括以下步骤:FIG. 2 is a flowchart of a method for instructing selection of a synchronization time source according to an embodiment of the present invention. As shown in FIG. 2 , the method mainly includes the following steps:

步骤S202,第一节点确定本节点时钟同步异常。Step S202, the first node determines that the clock synchronization of the node is abnormal.

在具体实施过程中,承载网波分系统中的第一节点可以按照现有方式确定其时钟同步是否异常。具体本发明实施例不作限定。In a specific implementation process, the first node in the wavelength division system of the bearer network can determine whether its clock synchronization is abnormal according to the existing method. The specific embodiments of the present invention are not limited.

步骤S204,所述第一节点输出所述第一节点的时间状态信息,其中,所述时间状态信息中包含指示所述第一节点时钟同步异常的指示信息,指示其它节点选择除所述第一节点之外的第二节点的输出时间为同步时间源。Step S204, the first node outputs time state information of the first node, wherein the time state information includes indication information indicating that the clock synchronization of the first node is abnormal, instructing other nodes to select the first node except the first node. The output time of the second node other than the node is the synchronization time source.

可选地,所述第一节点可以通过通告(Announce)报文输出所述时间状态信息,其中,所述通告报文中携带的用于其它节点进行时间选源的优先级(例如,Announce报文中的grandmasterPriority1字段)的取值为所述第一节点所在的承载网波分系统中的最低优先级的值。Optionally, the first node may output the time status information through an announcement (Announce) packet, where the priority carried in the announcement packet for other nodes to select a time source (for example, an Announce packet). The value of the grandmasterPriority1 field in the text is the value of the lowest priority in the wavelength division system of the bearer network where the first node is located.

可选地,所述第一节点输出所述第一节点的时间状态信息之前,所述方法还包括:所述第一节点确定开启时钟时间关联功能。在具体实施过程中,可以在节点中设置一个时钟时间关联开关,通过该开关来开启或关闭时钟时间关联功能。通过该可选实施方式,可以开启或关闭时钟时间关联功能,从而可以满足多种需求。Optionally, before the first node outputs the time state information of the first node, the method further includes: the first node determines to enable a clock time association function. In a specific implementation process, a clock time correlation switch can be set in the node, and the clock time correlation function can be turned on or off through the switch. Through this optional implementation manner, the clock time correlation function can be turned on or off, so that various requirements can be met.

在本发明实施例中,在所述第一节点输出所述第一节点的时间状态信息之后,所述方法还包括:所述其它节点接收到所述时间状态信息,根据所述时间状态信息重新运行时间源选源算法,选择除所述第一节点之外的第二节点的输出时间为同步时间源。In this embodiment of the present invention, after the first node outputs the time state information of the first node, the method further includes: the other nodes receive the time state information, and regenerate the time state information according to the time state information. The time source selection algorithm is run, and the output time of the second node other than the first node is selected as the synchronization time source.

在本发明实施例的一个优选实施方式中,当承载网波分系统中本节点时钟同步异常的时候,需要判断时钟时间关联算法开关是否打开,如果时钟时间关联算法开关不打开,则时间同步算法仍然独立运行,时间同步路径保持不变。当承载网波分系统中本节点时钟同步异常的时候,如果时钟时间关联算法开关打开,则本节点的时间状态信息输出需要反应出时钟异常,具体对应于时间同步端口体现如下:本节点PTP端口Announce报文输出的grandmasterPriority1发送系统中最低优先级的值。承载网波分系统中的其他节点接收到的本节点Announce报文发生变化且包含的grandmasterPriority1为最低优先级,其他节点依照1588协议重新运行时间源选源算法,由于1588协议中描述的选源算法会首先比较grandmasterPriority1优先级的高低来决策出最终同步的时间源,这样grandmasterPriority1设置为最低优先级,会导致其他节点切换到其他时间源,不再同步到本节点的输出时间。In a preferred implementation of the embodiment of the present invention, when the clock synchronization of the local node in the WDM system of the bearer network is abnormal, it is necessary to judge whether the clock time correlation algorithm switch is turned on. If the clock time correlation algorithm switch is not turned on, the time synchronization algorithm Still running independently, the time synchronization path remains the same. When the clock synchronization of the local node in the WDM system of the bearer network is abnormal, if the clock time correlation algorithm switch is turned on, the time status information output of the local node needs to reflect the clock abnormality. The value of the lowest priority in the sending system of the grandmasterPriority1 sent by the Announce message. The Announce message received by other nodes in the WDM system of the bearer network changes and contains grandmasterPriority1 as the lowest priority. Other nodes rerun the time source selection algorithm according to the 1588 protocol. Because the source selection algorithm described in the 1588 protocol It will first compare the priority of grandmasterPriority1 to determine the final synchronization time source. In this way, setting grandmasterPriority1 to the lowest priority will cause other nodes to switch to other time sources and no longer synchronize to the output time of this node.

通过本发明实施例提供的上述方法,在承载网波分系统中可以更合理的运用时钟同步与时间同步独立选源算法,建立了时钟同步与时间同步之间的关联,避免了时钟节点出现异常的时候有可能引出的错误时间同步。Through the above method provided by the embodiment of the present invention, the clock synchronization and time synchronization independent source selection algorithm can be more reasonably used in the bearer network wavelength division system, the correlation between the clock synchronization and the time synchronization is established, and the abnormality of the clock node is avoided. It may lead to wrong time synchronization.

根据本发明实施例,还提供了一种指示同步时间源选择的系统。According to an embodiment of the present invention, a system for indicating synchronization time source selection is also provided.

图3为根据本发明实施例的指示同步时间源选择的系统的结构示意图,如图3所示,该系统包括:第一节点30和所述第一节点所在的承载网波分系统中除所述第一节点之外的其他节点32;其中,所述第一节点32用于在所述第一节点的时钟同步异常时,输出时间状态信息,其中,所述时间状态信息中包含指示所述第一节点时钟同步异常的指示信息,指示其它节点选择除所述第一节点之外的第二节点的输出时间为同步时间源;所述其他节点32,用于根据所述第一节点30输出的所述时间状态信息,重新运行时间源选源算法,选择除所述第一节点30之外的第二节点的输出时间为同步时间源。FIG. 3 is a schematic structural diagram of a system for indicating synchronization time source selection according to an embodiment of the present invention. As shown in FIG. 3 , the system includes: a first node 30 and a wavelength division system of a bearer network where the first node is located. other nodes 32 other than the first node; wherein, the first node 32 is configured to output time status information when the clock synchronization of the first node is abnormal, wherein the time status information contains instructions indicating the The indication information of the abnormal clock synchronization of the first node, instructing other nodes to select the output time of the second node other than the first node as the synchronization time source; the other nodes 32 are used for outputting according to the first node 30 The time state information is obtained, re-run the time source selection algorithm, and select the output time of the second node other than the first node 30 as the synchronization time source.

可选地,第一节点30可以包括图4所示的指示同步时间源选择的装置。Optionally, the first node 30 may include the apparatus for indicating synchronization time source selection shown in FIG. 4 .

图4是根据本发明实施例的指示同步时间源选择的装置的结构示意图,如图4所示,该装置主要包括:第一确定模块40,用于确定第一节点时钟同步异常;输出模块42,用于输出所述第一节点的时间状态信息,其中,所述时间状态信息中包含指示所述第一节点时钟同步异常的指示信息,指示其它节点选择除所述第一节点之外的第二节点的输出时间为同步时间源。FIG. 4 is a schematic structural diagram of an apparatus for instructing selection of a synchronization time source according to an embodiment of the present invention. As shown in FIG. 4 , the apparatus mainly includes: a first determination module 40 for determining an abnormal clock synchronization of the first node; an output module 42 , used to output the time state information of the first node, wherein the time state information includes indication information indicating that the clock synchronization of the first node is abnormal, and instructs other nodes to select the first node other than the first node. The output time of the two nodes is the synchronization time source.

可选地,所述输出模块42可以通过以下方式输出所述时间状态信息:输出通告报文,其中,所述通告报文中携带的用于其它节点进行时间选源的优先级的取值为所述第一节点所在的承载网波分系统中的最低优先级的值。Optionally, the output module 42 may output the time status information in the following manner: outputting a notification message, wherein the value of the priority carried in the notification message for other nodes to select a time source is a value of The value of the lowest priority in the WDM system of the bearer network where the first node is located.

可选地,该装置还可以包括:第二确定模块,用于确定所述第一节点开启时钟时间关联功能。Optionally, the apparatus may further include: a second determination module, configured to determine that the first node enables the clock time association function.

下面通过一个可选实施例,对本发明实施例中节点根据时钟同步状态关联输出时间状态信息的流程进行描述。An optional embodiment is used below to describe the process of the node outputting time state information according to the clock synchronization state in the embodiment of the present invention.

图5为本发明可选实施例的节点根据时钟同步状态关联输出时间状态信息的流程图,如图5所示,主要包括以下步骤:FIG. 5 is a flowchart of a node according to an optional embodiment of the present invention outputting time state information associated with a clock synchronization state. As shown in FIG. 5 , it mainly includes the following steps:

步骤501:第一节点首先依据时钟同步SSM算法判断出本节点时钟同步是否正常。Step 501: The first node first determines whether the clock synchronization of the node is normal according to the clock synchronization SSM algorithm.

步骤502:如果本节点时钟同步正常,则时间同步1588算法独立运行输出相应的Announce报文,下游时间节点选源算法不发生切换。如图6所示,下游节点3时钟时间优选到优先级高的节点1。Step 502: If the clock synchronization of the local node is normal, the time synchronization 1588 algorithm runs independently and outputs the corresponding Announce message, and the downstream time node source selection algorithm does not switch. As shown in FIG. 6 , the clock time of the downstream node 3 is preferably the node 1 with a higher priority.

步骤503:如果本节点时钟同步异常,则判断时钟时间关联算法开关是否打开,此关联算法开关作为可选判断,如果时钟时间关联算法开关没有打开则时间同步1588算法同步骤502。如图7所示,下游节点3时间同步1588算法不受时钟选择影响仍然选择到节点1的时间,这个时候节点1上由于时钟不再同步,其时间不再可信,会导致下游节点3同步到错误的时间源上。Step 503 : If the clock synchronization of the local node is abnormal, it is judged whether the clock time correlation algorithm switch is turned on. This correlation algorithm switch is an optional judgment. As shown in Figure 7, the time synchronization 1588 algorithm of downstream node 3 is not affected by the clock selection and still selects the time of node 1. At this time, since the clock on node 1 is no longer synchronized, its time is no longer reliable, which will cause downstream node 3 to synchronize. to the wrong time source.

步骤504:如果本节点时钟同步异常,时钟时间关联算法开关打开,则本节点输出的Announce报文中的grandmasterPriority1优先级设置为系统最低优先级,以便下游节点可以切换时间源。如图8所示,节点1输出的Announce报文包含的grandmasterPriority1优先级被设置为了系统最低优先级。Step 504: If the clock synchronization of the local node is abnormal and the clock time correlation algorithm switch is turned on, the grandmasterPriority1 priority in the Announce message output by the local node is set to the lowest priority of the system, so that the downstream node can switch the time source. As shown in Figure 8, the grandmasterPriority1 priority contained in the Announce packet output by node 1 is set to the lowest priority of the system.

步骤505:下游节点时间同步1588算法判断出接收到的Announce报文发生变化,重新选择时间源。由于接收到的Announce报文中的grandmasterPriority1优先级被设置为了系统最低优先级,重新运行时间选源算法的结果会导致下游节点的时间同步源切换到时钟正常的上游节点上来。如图8所示,下游节点3时间同步1588算法会受时钟选择影响,使得下游节点3的时间能够倒换到正确的时间路径上来,最终节点3会选择时钟正常的节点2作为上游时间同步源。Step 505: The downstream node time synchronization 1588 algorithm determines that the received Announce message has changed, and reselects the time source. Since the grandmasterPriority1 priority in the received Announce packet is set to the lowest priority of the system, the result of re-running the time source selection algorithm will cause the time synchronization source of the downstream node to switch to the upstream node with a normal clock. As shown in Figure 8, the time synchronization 1588 algorithm of downstream node 3 will be affected by the clock selection, so that the time of downstream node 3 can be switched to the correct time path, and finally node 3 will select node 2 with a normal clock as the upstream time synchronization source.

可选地,在上述步骤504中,也可以通过输出其他能够导致下游节点时间同步1588算法切换时间源的方法,使得下游节点能够切换到时钟正常的时间源上,使得整个承载网系统完成正确的时钟时间同步。Optionally, in the above step 504, it is also possible to output other methods that can cause the downstream node time synchronization 1588 algorithm to switch the time source, so that the downstream node can switch to the time source with a normal clock, so that the entire bearer network system can complete the correct time source. Clock time synchronization.

从以上的描述中,可以看出,本发明实施例中,承载网波分系统中的节点在时钟同步异常时,输出指示时钟同步异常的时间状态信息,在时钟网上节点发生故障进行切换时,时间网上的节点会根据该时间状态信息进行同步时间源的切换,建立了时钟同步与时间同步之间的关联,避免了时钟节点出现异常的时候有可能引出的错误时间同步。From the above description, it can be seen that, in this embodiment of the present invention, when a node in the WDM system of the bearer network is abnormal in clock synchronization, it outputs time status information indicating abnormal clock synchronization. The nodes on the time network will switch the synchronization time source according to the time status information, and establish the association between the clock synchronization and the time synchronization, so as to avoid the wrong time synchronization that may be caused when the clock node is abnormal.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device and executed by the computing device, and in some cases, in a different order than here The steps shown or described are performed either by fabricating them separately into individual integrated circuit modules, or by fabricating multiple modules or steps of them into a single integrated circuit module. As such, the present invention is not limited to any particular combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (3)

1. A method for indicating synchronized time source selection, comprising:
the first node determines that the clock synchronization of the first node is abnormal;
the first node outputs the time state information of the first node, including: the first node outputs an announcement message, wherein the value of the priority for other nodes to perform time source selection carried in the announcement message is the value of the lowest priority in a wavelength division system of a bearer network where the first node is located, wherein the time state information comprises indication information indicating that the clock synchronization of the first node is abnormal, and the time state information indicates that other nodes select the output time of a second node except the first node as a synchronization time source;
before the first node outputs the time state information of the first node, the method further comprises: the first node determines to start a clock time correlation function, wherein the first node independently runs a time synchronization algorithm when the clock time correlation function is determined not to be started; under the condition that the clock time correlation function is determined to be started, the first node acquires the value of the priority of the time selection source through a port, and the other nodes operate the time selection source algorithm again;
wherein after the first node outputs the time state information of the first node, the method further comprises: and the other nodes receive the time state information, operate a time source selection algorithm again according to the time state information, and select the output time of the second nodes except the first node as a synchronous time source.
2.An apparatus for indicating synchronized time source selection, comprising:
the first determining module is used for determining that the clock synchronization of the first node is abnormal;
an output module, configured to output time status information of the first node, including: outputting an announcement message, wherein a value of a priority for time source selection of other nodes carried in the announcement message is a value of a lowest priority in a carrier network wavelength division system where the first node is located, wherein the time state information includes indication information indicating that clock synchronization of the first node is abnormal, and indicates that other nodes select output time of a second node except the first node as a synchronization time source;
wherein the apparatus further comprises: a second determining module, configured to determine that the clock time correlation function is started by the first node, where the first node independently runs a time synchronization algorithm when it is determined that the clock time correlation function is not started; under the condition that the clock time correlation function is determined to be started, the first node acquires the value of the priority of the time selection source through a port, and the other nodes operate the time selection source algorithm again;
the device is further configured to, after the first node outputs the time status information of the first node and the other nodes receive the time status information, run a time source selection algorithm again according to the time status information, and select the output time of the second node except the first node as a synchronization time source.
3. A system for indicating synchronized time source selection, comprising: a first node and other nodes except the first node in a bearing network wavelength division system where the first node is located; wherein,
the first node comprises the device in claim 2, and is configured to output time status information when the clock synchronization of the first node is abnormal, where the time status information includes indication information indicating that the clock synchronization of the first node is abnormal, and indicates other nodes to select output time of a second node other than the first node as a synchronization time source;
and the other nodes are used for running the time source selection algorithm again according to the time state information output by the first node, and selecting the output time of the second node except the first node as a synchronous time source.
CN201410330416.XA 2014-07-11 2014-07-11 Method, device and system for indicating synchronous time source selection Active CN105323086B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410330416.XA CN105323086B (en) 2014-07-11 2014-07-11 Method, device and system for indicating synchronous time source selection
PCT/CN2014/094420 WO2015184763A1 (en) 2014-07-11 2014-12-19 Method, apparatus and system for instructing to select synchronization time source

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410330416.XA CN105323086B (en) 2014-07-11 2014-07-11 Method, device and system for indicating synchronous time source selection

Publications (2)

Publication Number Publication Date
CN105323086A CN105323086A (en) 2016-02-10
CN105323086B true CN105323086B (en) 2020-03-10

Family

ID=54766023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410330416.XA Active CN105323086B (en) 2014-07-11 2014-07-11 Method, device and system for indicating synchronous time source selection

Country Status (2)

Country Link
CN (1) CN105323086B (en)
WO (1) WO2015184763A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448548B (en) * 2019-09-06 2024-11-15 华为技术有限公司 Method, device, system and storage medium for implementing clock source selection
CN117062207A (en) * 2022-05-06 2023-11-14 华为技术有限公司 Communication method and device
CN119995762A (en) * 2023-11-13 2025-05-13 华为技术有限公司 Clock source selection method and device, and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710358A (en) * 2012-06-13 2012-10-03 中兴通讯股份有限公司 Method, device and system for transmitting GM (Grandmaster Clock) state
CN102957488A (en) * 2011-08-18 2013-03-06 中兴通讯股份有限公司 Method and device for selecting time synchronization sources
CN103001720A (en) * 2012-11-12 2013-03-27 中兴通讯股份有限公司 Time synchronization method and device
CN103138863A (en) * 2011-12-01 2013-06-05 中兴通讯股份有限公司 Time synchronization method and device
CN103166750A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 Clock time synchronous resource distribution method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5560833B2 (en) * 2010-03-29 2014-07-30 富士通株式会社 Optical interface device and input frequency deviation abnormality monitoring method
CN102457346A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Time synchronization implementation method and clock node
CN103686982B (en) * 2012-09-17 2017-03-29 中国移动通信集团公司 A kind of method for synchronizing time and node device based on clock information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957488A (en) * 2011-08-18 2013-03-06 中兴通讯股份有限公司 Method and device for selecting time synchronization sources
CN103138863A (en) * 2011-12-01 2013-06-05 中兴通讯股份有限公司 Time synchronization method and device
CN103166750A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 Clock time synchronous resource distribution method and device
CN102710358A (en) * 2012-06-13 2012-10-03 中兴通讯股份有限公司 Method, device and system for transmitting GM (Grandmaster Clock) state
CN103001720A (en) * 2012-11-12 2013-03-27 中兴通讯股份有限公司 Time synchronization method and device

Also Published As

Publication number Publication date
CN105323086A (en) 2016-02-10
WO2015184763A1 (en) 2015-12-10

Similar Documents

Publication Publication Date Title
EP3140932B1 (en) A method for robust ptp synchronization with default 1588v2 profile
US9577774B2 (en) Time synchronization method and system
JP6125652B2 (en) Time synchronization method and apparatus
CN102714559B (en) Synchronization network configuration
CN113472669B (en) Method for updating clock synchronization topology, method and equipment for determining clock synchronization path
EP2782290A1 (en) Method, system and apparatus for implementing hybrid networking of multiple clock synchronization technologies
CN110505033A (en) Symmetric path/link on LAG interface using LLDP for time synchronization between two nodes using PTP
US11394480B2 (en) Systems and methods for synchronizing device clocks
EP2738971A1 (en) Mehtod and device for clock synchronization
US20160156427A1 (en) Clock recovery in a packet based network
WO2015165192A1 (en) Time synchronization method and device
US20180262287A1 (en) Time synchronization packet processing method and device
WO2013170736A1 (en) Packet network synchronization method, apparatus and system
US20150229587A1 (en) Method and apparatus for selecting passive port of transparent clock node based on ptp
CN101848193B (en) Method, system and network node for network synchronization
JP2016225677A (en) Communication device to perform time synchronization
CN105323086B (en) Method, device and system for indicating synchronous time source selection
TW202016676A (en) Time synchronization system, time master, management master and method for time synchronization
US10887036B2 (en) Simplified synchronized ethernet implementation
US9762510B2 (en) Relay system and switching device
EP3306852A1 (en) Method and apparatus for implementing alternate bmc
WO2016091050A1 (en) Time synchronization method and device
CN102904661A (en) Method for implementing smooth restart of PTP equipment and PTP equipment
CN108023739B (en) Protection switching method and controller
CN112152745A (en) Time synchronization method, time synchronization sending end, time synchronization receiving end and time synchronization system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant