WO2013010417A1 - 一种时钟源的选择方法 - Google Patents

一种时钟源的选择方法 Download PDF

Info

Publication number
WO2013010417A1
WO2013010417A1 PCT/CN2012/077018 CN2012077018W WO2013010417A1 WO 2013010417 A1 WO2013010417 A1 WO 2013010417A1 CN 2012077018 W CN2012077018 W CN 2012077018W WO 2013010417 A1 WO2013010417 A1 WO 2013010417A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
clock source
link
source
alarm
Prior art date
Application number
PCT/CN2012/077018
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 WO2013010417A1 publication Critical patent/WO2013010417A1/zh

Links

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

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for selecting a clock source. Background technique
  • PTP Precision Time Protocol
  • has the advantages of being able to meet higher-precision time synchronization requirements and having lower construction and maintenance costs.
  • a network to which the ⁇ protocol is applied is called a , domain, and there is only one synchronous clock in the , domain, and all devices in the domain are synchronized with the clock.
  • the port on the device running the protocol is called the port.
  • the roles of the port can be divided into the following three types:
  • Master Port The port that advertises the synchronization time. It can exist on the BC (Boundary Clock) or OC (Ordinary Clock).
  • Slave Port The port that receives the synchronization time, which can exist on the BC or OC.
  • Passive Port A port that neither receives the synchronization time nor publishes the synchronization time. It exists only on the BC.
  • the nodes in the PTP domain are called clock nodes.
  • the PTP protocol defines the following three types of basic clock nodes:
  • the clock node has only one PTP port in the same PTP domain to participate in time synchronization, and synchronizes time from the upstream clock node through the PTP port.
  • the clock node has multiple PTP ports in the same PTP domain to participate in time synchronization. It synchronizes time from the upstream clock node through one of the PTP ports and passes the remaining PTP ports. Publish time to the downstream clock node;
  • TC Transparent Clock: Compared with BC/OC, BC/OC needs to keep time synchronization with other clock nodes, while TC does not keep time synchronization with other clock nodes; TC has multiple PTP ports, but it only Forward PTP protocol packets between these PTP ports and perform forwarding delay correction on them without synchronizing time through any one port.
  • a clock source selection method is applied to a precise clock synchronization protocol network, where the accurate clock synchronization protocol network includes a primary clock source and an alternate clock source, and the method includes: detecting each clock link in real time, when generating an alarm, Select a new primary clock source based on the type of alarm.
  • the clock source with the highest clock level is directly selected from the candidate clock source as the main clock source; Otherwise, the current primary clock source is maintained.
  • the optimal master clock protocol election is re-executed after the time quality parameter of the clock node that is abnormally degraded, from all clock nodes. A new primary clock source is selected; otherwise, the current primary clock source is maintained.
  • the time quality parameter of the clock node whose abnormality occurs is: reducing the clock level of the clock node where the abnormality occurs.
  • the method further includes: if the clock link degradation recovery or the clock link failure recovery is detected, directly performing the optimal primary clock protocol election, and selecting a new primary clock source from all the clock nodes.
  • the method further includes: if it is detected that the clock link changes from the link failure to the link degradation, re-performing the best master clock protocol election after all the clocks after the time quality parameter of the clock node that is abnormally degraded A new primary clock source is selected in the node.
  • each clock link is detected by using a ping, a bidirectional forwarding detection method, a multi-protocol label conversion detection method, or a quality of service analysis detection method.
  • the number of degradations required to reduce the clock level of the clock node where the abnormality occurs is configured according to the current packet loss rate.
  • the embodiment of the invention has the following beneficial effects:
  • the present invention performs a primary clock source reselection process for an alarm that affects the long-term clock accuracy, and directly reselects the primary clock source for the link failure alarm.
  • the link degradation alarm is re-used by lowering the clock level to affect the BMC selection. Selecting the primary clock source optimizes the selection method of the existing clock source, effectively reducing the impact of link failure/link degradation on clock accuracy.
  • FIG. 1 is a schematic diagram of a basic clock node in an embodiment of the present invention
  • 2 is a process flow when a link failure occurs in a line in the embodiment of the present invention
  • FIG. 3 is a process flow when a link is degraded in a line in the embodiment of the present invention
  • FIG. 4 is a processing flow when a line has a problem and then resumes in the embodiment of the present invention.
  • FIG. 5 is a flow chart of the transient alarm processing in the embodiment of the present invention. detailed description
  • link alarms There are two types of link alarms: 1) Alarms that affect long-term clock accuracy, including link failure and link degradation. 2) Alarms that affect transient clock accuracy, including forward link defects and forward link switching. .
  • the link failure alarm the main clock source is reselected by directly re-selecting the line; for the link degradation alarm, the method for reducing the clock quality affects the state selection of the BMC, and the main clock source is reselected;
  • the protocol status does not change, but noise is introduced for clock frequency and phase recovery.
  • the alarm will be used as a parameter to assist the clock frequency and phase recovery algorithm to accelerate convergence. The specific convergence method is not within the scope of this patent.
  • the clock level is the clockClass field in the IEEE 1588V2 protocol clock quality.
  • ClockQuality also includes other fields such as time precision, variance, and so on.
  • the BMC algorithm selects the primary clock source and the secondary clock source according to the level of the clock level; when the clock level is the same, the BMC algorithm selects according to other parameter calculations.
  • the core idea of the present invention is to reduce the clock quality of an abnormally generated clock node by degrading the clock quality parameter when generating an alarm, thereby affecting the selection result of the BMC algorithm.
  • the clock level of the clock node is more clearly reflected in the embodiment of the present invention.
  • devices 1, 2, 3, 4 are used as BC (boundary clock) devices, 5 as TC (transparent clock) devices, and device 1 has three clocks from devices 2, 3, and 4.
  • Link assuming that the clock levels of device 1 to device 4 are 130, 110, 115, 120, respectively.
  • the device 1 creates a PTP port 1 and 2 on the ports connecting the device 2 and the device 5, respectively, and creates a PTP port for connecting the device 1 on the device 2, the device 3, and the device 4.
  • the BMC calculation is performed, and the device 2 is selected as the primary clock source, the device 3 and the device 4 are the alternate clock sources, and the PTP port 1 and the PTP port 2 of the device 1 are The SLAVE status, the PASSIVE status, the PTP port on Device 2, Device 3, and Device 4 are the MASTER status.
  • the processing flow when generating various alarms will be separately described below.
  • the line detection method may adopt general line detection technologies in the communication field, such as ping, BFD (bidirectional forwarding detection method), MPLS-OAM (multi-protocol label conversion detection method), SQA (Quality analysis and detection method), etc., can also detect the line quality by detecting the stability of the line delay of the synchronization message;
  • the clock link between the PTP port 2 of the device 1 and the PTP port of the device 2 (ie, the clock link 3) is detected to be invalid.
  • the device 2 is no longer used as the primary clock source, and the candidate clock source with the highest clock level is selected as the new primary clock source according to the clock level of all the alternate clock sources.
  • the candidate clock source includes Two devices 3 and 4, and the clock level of the device 3 is higher than the clock level of the device 4, so the device 3 is selected as the primary clock source for clock synchronization.
  • the clock link (ie, clock link 3) between the PTP port 2 of the device 1 and the port 2 of the device 2 is detected to be degraded.
  • the BMC protocol election is performed again, and a new one is selected from the device 1 to the device 4.
  • Main clock source Since the clock level of device 3 is the highest, that is, the clock quality is the highest, device 3 is selected as the main clock source for clock synchronization.
  • the device 2 is elected as the primary clock source by using the BMC protocol. If the failure is from failure to degradation, refer to Figure 3 to perform the degradation process.
  • a transient alarm is detected.
  • the method for selecting a clock source is applied to an accurate clock synchronization protocol network, where the accurate clock synchronization protocol network includes a primary clock source and an alternate clock source, and the method includes: Each clock link is detected. When an alarm is generated, a new primary clock source is selected according to the type of alarm.
  • the clock source with the highest clock level is directly selected from the candidate clock source as the primary clock source; otherwise, the current master is maintained.
  • the clock source is unchanged.
  • the optimal master clock protocol election is re-executed after all the clocks of the clock node whose abnormality has occurred.
  • a new primary clock source is selected in the node; otherwise, the current primary clock source is maintained.
  • the manner in which the time quality parameter of the clock node whose abnormality occurs is abnormal may be: reducing the clock level of the clock node where the abnormality occurs.
  • the current primary clock source is maintained unchanged.
  • the method further includes: if the clock link degradation recovery or the clock link failure recovery is detected, directly performing the optimal primary clock protocol election, and selecting a new primary clock source from all the clock nodes.
  • the method further includes: if it is detected that the clock link changes from the link failure to the link degradation, re-performing the optimal master clock protocol after the time quality parameter of the clock node that is abnormally degraded, from all A new primary clock source is selected among the clock nodes.
  • the number of degradations required to reduce the clock level of the clock node where the abnormality occurs is configured according to the current packet loss rate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种时钟源的选择方法,应用于精确时钟同步协议网络,所述精确时钟同步协议网络中包括主时钟源和备选时钟源,该方法包括:实时检测各个时钟链路,在产生告警时,根据告警类型选择新的主时钟源。本发明针对影响长期时钟精度的告警进行主时钟源重选处理,对链路失效告警采用直接重新选择主时钟源的方式,对链路劣化告警采用通过降低时钟等级来影响最佳主时钟(BMC)选择的方式来重新选择主时钟源,优化了现有时钟源的选择方法,有效降低了链路失效/链路劣化对时钟精度的影响。

Description

一种时钟源的选择方法 技术领域
本发明涉及通信领域, 尤其涉及一种时钟源的选择方法。 背景技术
PTP ( Precision Time Protocol , 精确时间协议 )是一种时间同步的协议, 其本身只是用于设备之间的高精度时间同步, 但也可用于设备之间的频率 同步。 相比现有的各种时间同步机制, ΡΤΡ具备能够满足更高精度的时间 同步要求、 具备更低的建设和维护成本等优势。
通常, 将应用了 ΡΤΡ协议的网络称为 ΡΤΡ域, ΡΤΡ域内有且只有一个 同步时钟, 域内的所有设备都与该时钟保持同步。
设备上运行了 ΡΤΡ协议的端口称为 ΡΤΡ端口, ΡΤΡ端口的角色主要可 分为以下三种:
主端口 ( Master Port ): 发布同步时间的端口, 可存在于 BC ( Boundary Clock, 边界时钟)或 OC ( Ordinary Clock, 普通时钟)上;
从端口 (Slave Port ): 接收同步时间的端口, 可存在于 BC或 OC上; 被动端口 ( Passive Port ): 既不接收同步时间、 也不对外发布同步时间 的端口, 只存在于 BC上。
PTP域中的节点称为时钟节点, PTP协议定义了以下三种类型的基本 时钟节点:
OC: 该时钟节点在同一个 PTP域内只有一个 PTP端口参与时间同步, 并通过该 PTP端口从上游时钟节点同步时间;
BC: 该时钟节点在同一个 PTP域内拥有多个 PTP端口参与时间同步, 它通过其中一个 PTP端口从上游时钟节点同步时间, 并通过其余 PTP端口 向下游时钟节点发布时间;
TC ( Transparent clock, 透明时钟): 与 BC/OC相比, BC/OC需要与其 它时钟节点保持时间同步, 而 TC则不与其它时钟节点保持时间同步; TC 有多个 PTP端口,但它只在这些 PTP端口间转发 PTP协议报文并对其进行 转发延时校正, 而不会通过任何一个端口同步时间。
PTP域中所有的时钟节点都按一定的层次组织在一起, 整个域的参考 时间就是 GM ( Grandmaster Clock, 最优时钟), 即最高层次的时钟。 目前, 通常在通过通告报文形成拓朴后, 根据各时钟节点之间交互的通告 ( Announce )报文中所携带的最优时钟优先级、 时钟等级、 时间精度等信 息进行 BMC ( Best Master Clock, 最佳主时钟)协议选举, 得出该域中的 主时钟源和备选时钟源以及各个时钟节点上 PTP端口的状态。 然而, 由于 网络不稳定, PTP域中的时钟链路会出现链路失效、 链路劣化等问题, 这 些问题大大影响了时钟精度,而目前采用 BMC选举出时钟源后不能根据时 钟链路的状况实时更换新的合适的时钟源, 因而有必要提出一种解决方案 来避免时钟精度的下降。 发明内容
本发明的目的在于提供一种时钟源的选择方法, 能够在检测到链路告 警时重新选择时钟源, 从而对时钟源选择进行优化, 降低链路突发状况对 时钟精度的影响。
本发明的目的是通过以下技术方案实现的:
一种时钟源的选择方法, 应用于精确时钟同步协议网络, 所述精确时 钟同步协议网络中包括主时钟源和备选时钟源, 该方法包括: 实时检测各 个时钟链路, 在产生告警时, 根据告警类型选择新的主时钟源。
优选地, 在产生时钟链路失效告警时, 若发生异常的时钟节点为主时 钟源, 则直接从备选时钟源中选择时钟等级最高的时钟源作为主时钟源; 否则, 维持当前的主时钟源不变。
优选地, 在检测到时钟链路劣化告警时, 若发生异常的时钟节点为主 时钟源, 则在劣化发生异常的时钟节点的时间质量参数后重新进行最佳主 时钟协议选举, 从所有时钟节点中选择出新的主时钟源; 否则, 维持当前 的主时钟源不变。
优选地, 所述劣化发生异常的时钟节点的时间质量参数的方式为: 降 低发生异常的时钟节点的时钟等级。
优选地, 上述方法中, 若产生瞬态告警, 则维持当前的主时钟源不变。 优选地, 上述方法还包括: 若检测到时钟链路劣化恢复或者时钟链路 失效恢复, 则直接重新进行最佳主时钟协议选举, 从所有时钟节点中选择 出新的主时钟源。
优选地, 上述方法还包括: 若检测到有时钟链路从链路失效变成链路 劣化, 则在劣化发生异常的时钟节点的时间质量参数后重新进行最佳主时 钟协议选举, 从所有时钟节点中选择出新的主时钟源。
优选地, 上述方法中, 采用 ping、 双向转发检测方法、 多协议标签转 换检测方法或服务质量分析检测方法检测各个时钟链路。
优选地, 上述方法中, 所述在降低发生异常的时钟节点的时钟等级时 所需的劣化数根据当前的丟包率来配置。
与现有技术相比, 本发明实施例具有以下有益效果:
本发明针对影响长期时钟精度的告警进行主时钟源重选处理, 对链路 失效告警采用直接重新选择主时钟源的方式, 对链路劣化告警采用通过降 低时钟等级来影响 BMC选择的方式来重新选择主时钟源,优化了现有时钟 源的选择方法, 有效降低了链路失效 /链路劣化对时钟精度的影响。 附图说明
图 1是本发明实施例中基本时钟节点示意图; 图 2是本发明实施例中当线路出现链路失效时的处理流程; 图 3是本发明实施例中当线路出现链路劣化时的处理流程;
图 4是本发明实施例中当线路出现问题然后又恢复时的处理流程; 图 5是本发明实施例中瞬态告警处理流程。 具体实施方式
为了使本发明所要解决的技术问题、 技术方案及有益效果更加清楚、 明白, 以下结合附图和实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发明。
链路告警分为两种: 1 )影响长期时钟精度的告警, 主要包括链路失效 和链路劣化; 2 )影响瞬态时钟精度的告警, 主要包括前向链路缺陷和前向 链路倒换。 本发明中, 对于链路失效告警, 采用直接重新进行线路选择的 方法来重选主时钟源; 对于链路劣化告警, 采用降低时钟质量的方法影响 BMC的状态选择, 达到主时钟源重选; 对于前向链路缺陷等告警, 协议状 态不会变化, 但是对时钟频率和相位恢复有噪声引入, 告警将作为参数协 助时钟频率和相位恢复算法加速收敛, 具体收敛方法不在本专利范围内。
时钟等级是 IEEE 1588V2协议时钟质量( ClockQuality )中的 clockClass 字段, 时钟等级的参数值越高, 表明时钟等级越低、 时钟质量越低。 ClockQuality中还包括其他字段,如时间精度、方差等参数。在实际应用中, 在各时钟节点的时钟等级不同时, BMC算法根据时钟等级的高低来选择出 主时钟源和从时钟源; 在时钟等级相同的情况下, BMC算法根据其他参数 计算来选择出主时钟源和从时钟源。 本发明的核心思想就是, 在产生告警 时, 通过劣化时钟质量参数来降低发生异常的时钟节点的时钟质量, 从而 来影响 BMC算法的选择结果。 由于与其他参数相比, 时钟等级的高低更清 楚地反映了时钟节点的时钟质量, 所以本发明实施例中以通过修改时钟等 级为例进行描述。 参考图 1 , 有 5个时钟节点, 其中设备 1、 2、 3、 4作为 BC (边界时钟) 设备, 5作为 TC (透明时钟)设备, 设备 1有来自于设备 2、 3、 4三个时 钟链路, 假设设备 1至设备 4的时钟等级分别是 130、 110、 115、 120。 设 备 1分别在连接设备 2、 设备 5的端口上创建 PTP端口 1、 2, 设备 2、 设 备 3、 设备 4上分别创建连接设备 1的 PTP端口。 在初始时刻, 根据各设 备的时钟等级、 时间精度等信息进行 BMC计算后选出设备 2为主时钟源、 设备 3和设备 4为备选时钟源, 且设备 1的 PTP端口 1和 PTP端口 2分别 是 SLAVE (从)状态、 PASSIVE (被动)状态, 设备 2、 设备 3、 设备 4 上的 PTP端口是 MASTER (主)状态。 下面将分别描述在产生各种告警时 的处理流程。
参阅图 2, 当线路出现链路失效时处理流程:
201、 对三条时钟链路进行线路检测; 线路检测方法可采用通信领域中 的通用的线路检测技术, 如 ping、 BFD (双向转发检测方法)、 MPLS-OAM (多协议标签转换检测方法)、 SQA (服务质量分析检测方法)等, 也可以 通过对同步报文的线路延迟的稳定性检测来检测线路质量;
202、 检测到设备 1的 PTP端口 2与设备 2的 PTP端口之间的时钟链 路(即时钟链路 3 ) 失效;
203、 标记时钟链路 3失效;
204、 不再使用设备 2为主时钟源, 直接根据所有备选时钟源的时钟等 级大小选择时钟等级最高的备选时钟源作为新的主时钟源; 本实施例中, 由于备选时钟源包括设备 3和设备 4这两个, 且设备 3的时钟等级高于设 备 4的时钟等级, 因而选择设备 3作为主时钟源进行时钟同步。
参考图 3, 当线路出现链路劣化时的处理流程:
301、 对三条时钟链路进行线路检测, 同时预先配置时钟等级的劣化数 为 6; 劣化数也可采用算法来动态计算得出, 比如采用根据丟包率来计算的 302、 检测到设备 1的 PTP端口 2与设备 2的 ΡΤΡ端口之间的时钟链 路 (即时钟链路 3 )劣化;
303、 标记时钟链路 3劣化;
304、 降低设备 2的时钟等级, 本实施例中, 此时设备 2的时钟等级参 数值为 116 ( 110+6 )后, 再重新进行 BMC协议选举, 从设备 1至设备 4 中选择出新的主时钟源, 由于此时设备 3 的时钟等级最高, 即时钟质量最 高, 因此选择设备 3作为主时钟源进行时钟同步。
参考图 4, 当线路出现问题然后又恢复时的处理流程:
401、 对三条时钟链路进行线路检测, 同时预先配置时钟等级的劣化数 为 6; 劣化数也可采用算法来动态计算得出, 比如采用根据丟包率来计算的 算法;
402、检测到时钟链路 3上链路劣化 /链路失效正在恢复, 或从失效到劣 化;
403、 等待 WTR (恢复等待时间)长度的时间;
404、 如果链路劣化 /链路失效恢复,采用 BMC协议选举出设备 2为主 时钟源; 如果是从失效到劣化, 参考图 3 , 执行劣化处理流程。
参考图 5 , 瞬态告警处理流程:
501、 对三条时钟链路进行线路检测;
502、 检测到瞬态告警;
503、 维持当前设备 2作为主时钟源不变, 并通知时钟恢复算法进行相 关处理。
当在一个 ΡΤΡ端口上有多条链路连接时, 例如: 设备 1同设备 3、 4的 链路, 检测结果将影响到 ΡΤΡ端口父辈数据集的选择, 和上述处理基本一 致。 综上所述, 本发明实施例提供的一种时钟源的选择方法, 应用于精确 时钟同步协议网络, 所述精确时钟同步协议网络中包括主时钟源和备选时 钟源, 该方法包括: 实时检测各个时钟链路, 在产生告警时, 根据告警类 型选择新的主时钟源。
较佳的, 在产生时钟链路失效告警时, 若发生异常的时钟节点为主时 钟源, 则直接从备选时钟源中选择时钟等级最高的时钟源作为主时钟源; 否则, 维持当前的主时钟源不变。
较佳的, 在检测到时钟链路劣化告警时, 若发生异常的时钟节点为主 时钟源, 则在劣化发生异常的时钟节点的时间质量参数后重新进行最佳主 时钟协议选举, 从所有时钟节点中选择出新的主时钟源; 否则, 维持当前 的主时钟源不变。 所述劣化发生异常的时钟节点的时间质量参数的方式可 以为: 降低发生异常的时钟节点的时钟等级。
较佳的, 若产生瞬态告警, 则维持当前的主时钟源不变。
较佳的, 该方法还包括: 若检测到时钟链路劣化恢复或者时钟链路失 效恢复, 则直接重新进行最佳主时钟协议选举, 从所有时钟节点中选择出 新的主时钟源。
较佳的, 该方法还包括: 若检测到有时钟链路从链路失效变成链路劣 化, 则在劣化发生异常的时钟节点的时间质量参数后重新进行最佳主时钟 协议选举, 从所有时钟节点中选择出新的主时钟源。
较佳的, 所述在降低发生异常的时钟节点的时钟等级时所需的劣化数 根据当前的丟包率来配置。
上述说明示出并描述了本发明的一个优选实施例, 但如前所述, 应当 理解本发明并非局限于本文所披露的形式, 不应看作是对其他实施例的排 除, 而可用于各种其他组合、 修改和环境, 并能够在本文所述发明构想范 围内, 通过上述教导或相关领域的技术或知识进行改动。 而本领域人员所 进行的改动和变化不脱离本发明的精神和范围, 则都应在本发明所附权利 要求的保护范围内。

Claims

权利要求书
1、 一种时钟源的选择方法, 应用于精确时钟同步协议网络, 所述精确 时钟同步协议网络中包括主时钟源和备选时钟源, 该方法包括: 实时检测 各个时钟链路, 在产生告警时, 根据告警类型选择新的主时钟源。
2、 如权利要求 1所述时钟源的选择方法, 其中, 在产生时钟链路失效 告警时, 若发生异常的时钟节点为主时钟源, 则直接从备选时钟源中选择 时钟等级最高的时钟源作为主时钟源; 否则, 维持当前的主时钟源不变。
3、 如权利要求 1所述时钟源的选择方法, 其中, 在检测到时钟链路劣 化告警时, 若发生异常的时钟节点为主时钟源, 则在劣化发生异常的时钟 节点的时间质量参数后重新进行最佳主时钟协议选举, 从所有时钟节点中 选择出新的主时钟源; 否则, 维持当前的主时钟源不变。
4、 如权利要求 3所述时钟源的选择方法, 其中, 所述劣化发生异常的 时钟节点的时间质量参数的方式为: 降低发生异常的时钟节点的时钟等级。
5、 如权利要求 1所述时钟源的选择方法, 其中, 若产生瞬态告警, 则 维持当前的主时钟源不变。
6、 如权利要求 1至 5任一项所述时钟源的选择方法, 其中, 该方法还 包括: 若检测到时钟链路劣化恢复或者时钟链路失效恢复, 则直接重新进 行最佳主时钟协议选举, 从所有时钟节点中选择出新的主时钟源。
7、 如权利要求 1至 5任一项所述时钟源的选择方法, 其中, 该方法还 包括: 若检测到有时钟链路从链路失效变成链路劣化, 则在劣化发生异常 的时钟节点的时间质量参数后重新进行最佳主时钟协议选举, 从所有时钟 节点中选择出新的主时钟源。
8、 如权利要求 1所述时钟源的选择方法, 其中, 采用 ping、 双向转发 检测方法、 多协议标签转换检测方法或服务质量分析检测方法检测各个时 钟链路。
9、 如权利要求 4所述时钟源选择方法, 其中, 所述在降低发生异常的 时钟节点的时钟等级时所需的劣化数根据当前的丟包率来配置。
PCT/CN2012/077018 2011-07-21 2012-06-15 一种时钟源的选择方法 WO2013010417A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110205662.9 2011-07-21
CN201110205662.9A CN102263630B (zh) 2011-07-21 2011-07-21 一种时钟源的选择方法

Publications (1)

Publication Number Publication Date
WO2013010417A1 true WO2013010417A1 (zh) 2013-01-24

Family

ID=45010105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077018 WO2013010417A1 (zh) 2011-07-21 2012-06-15 一种时钟源的选择方法

Country Status (2)

Country Link
CN (1) CN102263630B (zh)
WO (1) WO2013010417A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719135A (zh) * 2019-10-17 2020-01-21 Ut斯达康通讯有限公司 时间校准方法、系统及电子装置

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263630B (zh) * 2011-07-21 2017-06-16 中兴通讯股份有限公司 一种时钟源的选择方法
CN102664700B (zh) * 2012-04-13 2015-08-19 烽火通信科技股份有限公司 网状网中的节点时钟同步规划方法
CN103001759B (zh) * 2012-11-23 2015-09-02 北京东土科技股份有限公司 一种基于网络的时间同步方法、系统及装置
CN106105103B (zh) 2014-03-05 2020-09-18 华为技术有限公司 时钟同步方法、设备及通信系统
CN105024798A (zh) * 2014-04-28 2015-11-04 中兴通讯股份有限公司 一种时间同步的方法及装置
CN105099806A (zh) * 2014-05-21 2015-11-25 中兴通讯股份有限公司 一种时钟切换方法及装置
CN107251457B (zh) 2016-01-19 2019-08-27 华为技术有限公司 传输时钟报文的方法和装置
CN105763279A (zh) * 2016-02-24 2016-07-13 华东交通大学 网络系统分布节点时钟中的最优主时钟确定方法
CN106533648A (zh) * 2016-12-06 2017-03-22 南京南瑞继保电气有限公司 一种基于hsr网络的ieee 1588对时和监控方法
CN106603187A (zh) * 2016-12-29 2017-04-26 广东大普通信技术有限公司 一种时钟设备自动选择参考源的方法和时钟设备
CN106851696B (zh) * 2017-04-07 2023-10-13 深圳市普渡科技有限公司 一种基于无线时钟同步的uwb多标签多基站的调度系统
CN107342831B (zh) * 2017-06-07 2019-02-26 北京东土军悦科技有限公司 一种主定时源确定方法及装置
CN109218007B (zh) * 2017-07-03 2022-11-01 中兴通讯股份有限公司 路径选择方法、设备及存储介质
JP2019068190A (ja) * 2017-09-29 2019-04-25 株式会社明電舎 ネットワーク機器
CN108540379A (zh) * 2018-04-19 2018-09-14 南方电网科学研究院有限责任公司 基于ieee 1588v2的时间同步故障倒换方法、时间同步装置及系统
CN111061338B (zh) * 2019-11-30 2021-06-01 苏州浪潮智能科技有限公司 一种基板管理控制器时序的更新方法、系统及设备
CN111355569B (zh) * 2020-02-27 2024-01-09 华云数据控股集团有限公司 时间同步方法、装置、系统、节点及可读存储介质
TWI748902B (zh) * 2020-05-19 2021-12-01 瑞昱半導體股份有限公司 用於無縫精確時間協定的控制方法以及時間感知橋接裝置
CN114650113A (zh) * 2020-12-18 2022-06-21 华为技术有限公司 选择时钟源的方法及装置
WO2023236048A1 (en) * 2022-06-07 2023-12-14 Telefonaktiebolaget Lm Ericsson (Publ) Method and network device for ptp clock synchronization

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798018A (zh) * 2004-12-30 2006-07-05 中兴通讯股份有限公司 一种系统时钟同步装置及方法
CN101159533A (zh) * 2007-11-06 2008-04-09 中兴通讯股份有限公司 一种分组传送网中时钟链路自动保护的方法
CN101207606A (zh) * 2006-12-18 2008-06-25 华为技术有限公司 主时钟选举的方法和装置
CN101895385A (zh) * 2010-07-26 2010-11-24 国电南瑞科技股份有限公司 用于实现时钟切换的合并单元的对时时钟系统
CN102263630A (zh) * 2011-07-21 2011-11-30 中兴通讯股份有限公司 一种时钟源的选择方法

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI411277B (zh) * 2009-12-23 2013-10-01 Ind Tech Res Inst 網路從節點與網路系統精確時間同步之方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798018A (zh) * 2004-12-30 2006-07-05 中兴通讯股份有限公司 一种系统时钟同步装置及方法
CN101207606A (zh) * 2006-12-18 2008-06-25 华为技术有限公司 主时钟选举的方法和装置
CN101159533A (zh) * 2007-11-06 2008-04-09 中兴通讯股份有限公司 一种分组传送网中时钟链路自动保护的方法
CN101895385A (zh) * 2010-07-26 2010-11-24 国电南瑞科技股份有限公司 用于实现时钟切换的合并单元的对时时钟系统
CN102263630A (zh) * 2011-07-21 2011-11-30 中兴通讯股份有限公司 一种时钟源的选择方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719135A (zh) * 2019-10-17 2020-01-21 Ut斯达康通讯有限公司 时间校准方法、系统及电子装置

Also Published As

Publication number Publication date
CN102263630A (zh) 2011-11-30
CN102263630B (zh) 2017-06-16

Similar Documents

Publication Publication Date Title
WO2013010417A1 (zh) 一种时钟源的选择方法
US9819541B2 (en) PTP over IP in a network topology with clock redundancy for better PTP accuracy and stability
JP5560706B2 (ja) ノード装置
JP6125652B2 (ja) 時間同期方法及び装置
US9749073B2 (en) Clock recovery in a packet based network
US8339969B2 (en) Distributed ethernet system and method for detecting fault based thereon
JP5480977B2 (ja) 時刻同期および周波数同期のための同期トレイルを有する同期ネットワーク構成
JP5358813B2 (ja) ネットワークノード、時刻同期方法及びネットワークシステム
EP2597830B1 (en) Method, router bridge, and system for trill network protection
JP5878641B2 (ja) ネットワーク要素間における1588時間誤差の検出方法及び検出装置
WO2012163172A1 (zh) 一种时钟同步方法及设备
US9485045B2 (en) Communication control equipment
WO2017101528A1 (zh) 一种时钟链路切换方法、装置及基站
WO2013170736A1 (zh) 一种分组网络同步方法、装置及系统
JP2019508986A (ja) クロック同期トポロジを更新する方法、クロック同期経路を決定する方法およびデバイス
WO2013029441A1 (zh) 一种时钟同步方法及装置
WO2013117143A1 (zh) 一种时钟同步方法和装置
WO2015161621A1 (zh) 一种时钟和时间同步网络的同步故障处理方法和系统
JP2013104772A (ja) フレーム伝送装置及び同期方法
JP5450656B2 (ja) 通信装置及び時刻同期システム
WO2015165192A1 (zh) 一种时间同步的方法及装置
JP5915379B2 (ja) 伝送装置および伝送方法
WO2011134371A1 (zh) 一种同步时钟的方法和时钟同步装置
JP2015207864A (ja) 基地局装置
Simanic et al. Compensation of asymmetrical latency for ethernet clock synchronization

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: 12815386

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: 12815386

Country of ref document: EP

Kind code of ref document: A1