WO2015078167A1 - Method and device for determining backup clock source, and computer storage medium - Google Patents

Method and device for determining backup clock source, and computer storage medium Download PDF

Info

Publication number
WO2015078167A1
WO2015078167A1 PCT/CN2014/080021 CN2014080021W WO2015078167A1 WO 2015078167 A1 WO2015078167 A1 WO 2015078167A1 CN 2014080021 W CN2014080021 W CN 2014080021W WO 2015078167 A1 WO2015078167 A1 WO 2015078167A1
Authority
WO
WIPO (PCT)
Prior art keywords
clock
clock source
list
sources
backup
Prior art date
Application number
PCT/CN2014/080021
Other languages
French (fr)
Chinese (zh)
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 WO2015078167A1 publication Critical patent/WO2015078167A1/en

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 and apparatus for determining a backup clock source, and a computer storage medium. Background technique
  • the 1588 time synchronization protocol has received more and more attention and application in communication networks. Domestic and foreign operators continue to use the 1588 protocol for time synchronization and gradually replace the use of GPS for time synchronization.
  • GM Gram Master
  • BMC Best Master Clock
  • the clock source selection is generally performed only according to the BMC algorithm of the 1588V2 protocol, so that other GM clock sources are always idle, as shown in FIG. 2 .
  • This not only increases the burden on the GM device, but also makes the device far away from the GM device.
  • the convergence time is quite slow, posing a potential danger to the operation and maintenance.
  • the embodiment of the invention provides a method and a device for determining a backup clock source, and a computer storage medium, which is used to solve the problem of clock source selection according to the BMC algorithm of the 1588V2 protocol in the prior art.
  • the convergence time is equivalent. Slow, bringing potentially dangerous problems to the operation and maintenance.
  • an embodiment of the present invention provides a method for determining a backup clock.
  • the method includes: detecting by the BMC algorithm to obtain a plurality of available GM clock sources; selecting the plurality of available GM clock sources according to a local preset priority to determine a GM with the highest priority The clock source is backed up.
  • the method further includes: establishing a GM clock source list, where the list records a list attribute corresponding to the plurality of GM clock sources, wherein the list The attribute is used to indicate the operation and maintenance status of the GM clock source; and the priority corresponding to each of the plurality of GM clock sources in the list is configured according to the list attribute.
  • the list attribute includes one or more of the following attribute information: a distance between the local GM clock source and the plurality of GM clock sources, a load status of the plurality of GM clock sources, the plurality of CLOCKID of the GM clock source.
  • the method further includes: updating the GM clock source list according to a predetermined time interval; or updating the GM clock source list in real time.
  • the method further includes: when the current GM clock source is switched, The next backed up GM clock source is selected in order of priority from high to low among the plurality of available GM clock sources.
  • the embodiment of the present invention further provides an apparatus for determining a backup clock source, including: an acquiring module configured to perform detection by a BMC algorithm to obtain a plurality of available GM clock sources; and a determining module configured to The plurality of available GM clock sources are selected according to a local preset priority to determine a highest priority GM clock source for backup.
  • the device further includes: a GM clock source module configured to establish a GM clock source list, wherein the list records a list attribute corresponding to the plurality of GM clock sources, wherein the list attribute is used to indicate the GM clock source An operation and maintenance status; and configuring, according to the list attribute, a priority corresponding to each of the plurality of GM clock sources in the list.
  • a GM clock source module configured to establish a GM clock source list, wherein the list records a list attribute corresponding to the plurality of GM clock sources, wherein the list attribute is used to indicate the GM clock source An operation and maintenance status; and configuring, according to the list attribute, a priority corresponding to each of the plurality of GM clock sources in the list.
  • the GM clock source module is in accordance with one or more of the following list attributes.
  • the information establishes a list of GM clock sources: the distance between the local GM clock source and the plurality of GM clock sources, the load status of the plurality of GM clock sources, and the CLOCKID of the plurality of GM clock sources.
  • the device further includes: an updating module, configured to update the GM clock source list according to a predetermined time interval; or, update the GM clock source list in real time.
  • an updating module configured to update the GM clock source list according to a predetermined time interval; or, update the GM clock source list in real time.
  • the determining module is further configured to: in the case that the current GM clock source is switched, select the next backed up GM clock source according to the priority of the plurality of available GM clock sources in descending order of priority .
  • an embodiment of the present invention further provides a computer storage medium storing computer executable instructions for performing the above method.
  • a plurality of available GM clock sources are detected by using the detection function of the BMC algorithm, and a GM clock source with the highest priority is selected for backup according to a preset priority, and a GM clock source having certain advantages can be selected.
  • the convergence time is accelerated, and the safety factor of the operation and maintenance is increased.
  • the clock source selection according to the BMC algorithm of the 1588V2 protocol is used in the prior art, when the GM is switched, the convergence time is rather slow, which brings the operation and maintenance. Potentially dangerous problem.
  • FIG. 1 is a schematic diagram of a single GM clock source network architecture in the prior art
  • FIG. 2 is a network architecture diagram of a multi-GM clock source in the prior art
  • FIG. 3 is a flowchart of a method for determining a backup clock source in an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for determining a backup clock source according to an embodiment of the present invention
  • FIG. 5 is another schematic structural diagram of an apparatus for determining a backup clock source according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of determining a backup clock according to an embodiment of the present invention
  • a schematic diagram of a preferred structure of a device of the source
  • FIG. 7 is a network architecture diagram of a preferred embodiment of the present invention.
  • FIG. 8 is a flow diagram of a method of determining a backup clock source in a preferred embodiment of the present invention. detailed description
  • An embodiment of the present invention provides a method for determining a backup clock source.
  • the process of the method is as shown in FIG. 3, and includes steps S302 to S304:
  • S302 Perform detection by using a BMC algorithm to obtain multiple available GM clock sources.
  • the clock source is detected first to determine some available clock sources.
  • the detection function of the BMC algorithm is utilized, and the available GM clock source is found by using the function. .
  • S304 Select a plurality of available GM clock sources according to a local preset priority to determine a GM clock source with the highest priority for backup.
  • a plurality of available GM clock sources are detected by using the detection function of the BMC algorithm, and a GM clock source with the highest priority is selected for backup according to a preset priority, and a GM clock source having certain advantages can be selected.
  • the convergence time is accelerated, and the safety factor of the operation and maintenance is increased.
  • the clock source selection according to the BMC algorithm of the 1588V2 protocol is used in the prior art, when the GM is switched, the convergence time is rather slow, which brings the operation and maintenance. Potentially dangerous problem.
  • the BMC algorithm performs detection to obtain a plurality of available GM clock sources, and may also establish a GM clock source list, where the list records a list attribute corresponding to multiple GM clock sources, where the list attribute is used. Indicates the operation and maintenance status of the GM clock source, for example, the distance between the local GM clock source and multiple GM clock sources, the load status of multiple GM clock sources, the CLOCKID of multiple GM clock sources, etc.; then, according to the list attribute configuration GM clock source column The priority of multiple GM clock sources in the table. In this process, multiple of the GM clock source lists are all applicable, but after all applicable GM clock sources are detected by the BMC algorithm, some GM clock sources may not be suitable for the current requirements, and thus cannot be used. Others may be identified as available GM clock sources.
  • GM clock source list After the GM clock source list is established, some maintenance is required to update the list attribute in the list, which may be to update the GM clock source list at regular intervals, or to update the GM clock source list in real time. When implemented, it is an efficient way to set a shorter time interval to update.
  • the system works normally. If the current GM clock source needs to be switched, the next backup is selected in the order of priority from high to low among the available GM clock sources. GM clock source.
  • the embodiment of the present invention further provides a device for determining a backup clock source.
  • the structure of the device is shown in FIG. 4, and includes: an obtaining module 10 configured to perform detection by using a BMC algorithm to obtain multiple available GM clocks.
  • the determining module 20 is coupled to the obtaining module 10 and configured to select a plurality of available GM clock sources according to a preset local priority to determine a highest priority GM clock source for backup.
  • the determining module 10 is further configured to select the next backed up GM clock source in order of priority from high to low among the plurality of available GM clock sources in the event that the current GM clock source is switched.
  • FIG. 5 is a schematic diagram showing another structure of the foregoing apparatus.
  • the device further includes: a GM clock source module 30 coupled to the acquisition module 10, configured to establish a GM clock source list, wherein the list records a plurality of GM clock sources corresponding to The list attribute, wherein the list attribute is used to indicate the operation and maintenance status of the GM clock source; and the priority corresponding to the plurality of GM clock sources in the GM clock source list is configured according to the list attribute.
  • the GM clock source module establishes a GM clock source list according to the following list attribute: a distance between the local GM clock source and multiple GM clock sources, and multiple GM clock sources Load status, CLOCKID of multiple GM clock sources.
  • the apparatus further includes: an update module 40 coupled to the GM clock source module 30, configured to update the GM clock source list according to a predetermined time interval; or Update the list of GM clock sources in real time.
  • GM clock sources in order to solve the 1588 clock operation and maintenance, there are multiple GM clock sources. Only relying on the 1588 V2 BMC algorithm will cause the entire clock network to synchronize with only one GM, resulting in slow clock convergence and heavy GM burden.
  • a simple method is provided, which not only selects the optimal clock through the 1588 V2 BMC algorithm, but also satisfies multiple GM clock sources as clock synchronization source roles in their respective regions.
  • the new GM clock source can be synchronized nearby, and its architecture is shown in FIG. 7.
  • the embodiment of the present invention adopts the following technical solutions.
  • the embodiment of the present invention provides a method for determining a backup clock source.
  • the method is mainly for the backup and switching process of the 1588 clock source, that is, the GM clock source list is configured, and the list attribute is identified by the CLOCKID of the GM.
  • the device searches for multiple GM clock sources through the BMC algorithm.
  • the GM clock source sought by the BMC algorithm is optimized by local priority and the GM clock source with high local priority. Perform clock synchronization.
  • the implementation method will be described in detail below with reference to FIG. 8, including steps S801 to S805:
  • Step S801 Configure a GM clock source list that needs to be clock synchronized according to the number of GMs and operation and maintenance conditions in the clock network, and configure the local priority of the GM clock source according to the distance and operation and maintenance of the device from the GM.
  • Step S802 running a BMC algorithm to perform GM clock source detection.
  • Step S803 performing local priority determination on the GM clock source selected by the BMC algorithm to determine whether the priority of the GM clock source is a GM clock source with a high local priority. In the case where the priority is the highest, step S804 is performed, otherwise, step S805 is performed. Step S804, selecting to perform synchronization for backup.
  • step S805 synchronization is not performed.
  • step S802 After the synchronous backup, polling can be performed again, and execution is started again from step S802 to select the GM clock source of the next backup.
  • the device provided by the embodiment of the present invention includes the following modules: GM clock source module: responsible for configuring a local GM clock source list and local priority; acquiring module: responsible for detecting and identifying the GM clock source; determining module: responsible for local selection of the clock source And switching.
  • the process for implementing the foregoing method for determining the backup clock source in the embodiment of the present invention is as follows: In the first step, the GM clock source to be synchronized and the local priority list are configured through the GM clock source module.
  • the GM clock source list is detected by acquiring the module.
  • the determining module compares the list of GM clock sources detected by the BMC algorithm module with local priority.
  • the GM clock source with a high local priority is selected for clock synchronization.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer executable instructions are stored, and the computer executable instructions are used to execute the method described in any one of the foregoing method embodiments.
  • this embodiment adds a local GM clock source list and a local priority attribute of the GM clock source based on the original 1588 BMC algorithm, thereby implementing backup selection of multiple 1588 clock sources.
  • the flexibility of operation and maintenance is greatly improved, and multiple GM clock sources can share the clock synchronization pressure with each other.
  • the 1588 clock source list and local priority added in this embodiment are simple and flexible, and the backup selection of multiple 1588 clock sources is realized by simple software logic.
  • Each of the above units may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a Field-Programmable Gate Array (FPGA) in an electronic device.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

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

Abstract

A method and device for determining a backup clock source, and a computer storage medium. The method comprises: detecting via a BMC algorithm, so as to acquire a plurality of available GM clock sources; and conducting selection on the plurality of available GM clock sources, according to the locally pre-set priorities, so as to determine a GM clock source with the highest priority for backup. The device comprises: an acquisition module which is configured to detect via a BMC algorithm, so as to acquire a plurality of available GM clock sources; and a determination module which is configured to conduct selection on the plurality of available GM clock sources, according to the locally pre-set priorities, so as to determine a backup clock source with the highest priority for backup.

Description

一种确定备份时钟源的方法及装置、 计算机存储介质 技术领域  Method and device for determining backup clock source, computer storage medium
本发明涉及通讯领域, 特别是涉及一种确定备份时钟源的方法及装置、 计算机存储介质。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for determining a backup clock source, and a computer storage medium. Background technique
随着 3G网络的高速发展, 1588时间同步协议在通讯网络中得到越来 越多的重视和应用。 国内外运营商不断的使用 1588协议进行时间同步, 逐 步替换使用 GPS进行时间同步。  With the rapid development of 3G networks, the 1588 time synchronization protocol has received more and more attention and application in communication networks. Domestic and foreign operators continue to use the 1588 protocol for time synchronization and gradually replace the use of GPS for time synchronization.
在 1588时间同步中, GM ( Grand Master )是最优的时钟源。 1588V2 协议通过 BMC ( Best Master Clock ) 算法, 选择出最优的时钟源, 如图 1 所示。 但是在实际的运营网络中, 为了确保时钟源的稳定性, 不止存在一 个 GM时钟源, 以便相互进行备份。  In 1588 time synchronization, GM (Grand Master) is the optimal clock source. The 1588V2 protocol uses the BMC (Best Master Clock) algorithm to select the optimal clock source, as shown in Figure 1. However, in the actual operating network, in order to ensure the stability of the clock source, there is more than one GM clock source for mutual backup.
现有技术通常仅仅按照 1588V2协议的 BMC算法进行时钟源选择, 造 成其他的 GM时钟源一直处于闲置状态,如图 2所示。这不仅仅增加了 GM 设备的负担, 同时使得离 GM设备距离比较远的设备, 在 GM发生切换的 时候, 收敛时间相当缓慢, 给运维带来潜在的危险。 发明内容  In the prior art, the clock source selection is generally performed only according to the BMC algorithm of the 1588V2 protocol, so that other GM clock sources are always idle, as shown in FIG. 2 . This not only increases the burden on the GM device, but also makes the device far away from the GM device. When the GM switches, the convergence time is quite slow, posing a potential danger to the operation and maintenance. Summary of the invention
本发明实施例提供了一种确定备份时钟源的方法及装置、 计算机存储 介质, 用以解决现有技术中按照 1588V2协议的 BMC算法进行时钟源选择 时, 当 GM发生切换的时候, 收敛时间相当缓慢, 给运维带来潜在的危险 的问题。  The embodiment of the invention provides a method and a device for determining a backup clock source, and a computer storage medium, which is used to solve the problem of clock source selection according to the BMC algorithm of the 1588V2 protocol in the prior art. When the GM is switched, the convergence time is equivalent. Slow, bringing potentially dangerous problems to the operation and maintenance.
为解决上述技术问题, 一方面, 本发明实施例提供一种确定备份时钟 源的方法, 包括:通过 BMC算法进行侦测,以获取多个可用的 GM时钟源; 将所述多个可用的 GM时钟源按照本地预设优先级进行选择, 以确定一个 优先级最高的 GM时钟源进行备份。 To solve the above technical problem, in an aspect, an embodiment of the present invention provides a method for determining a backup clock. The method includes: detecting by the BMC algorithm to obtain a plurality of available GM clock sources; selecting the plurality of available GM clock sources according to a local preset priority to determine a GM with the highest priority The clock source is backed up.
优选的,通过 BMC算法进行侦测,以获取多个可用的 GM时钟源之前, 还包括: 建立 GM时钟源列表, 所述列表记录着多个 GM时钟源对应的列 表属性, 其中, 所述列表属性用于指示 GM时钟源的运维状况; 根据所述 列表属性配置所述列表中多个所述 GM时钟源分别对应的优先级。  Preferably, before the detecting by the BMC algorithm to obtain the plurality of available GM clock sources, the method further includes: establishing a GM clock source list, where the list records a list attribute corresponding to the plurality of GM clock sources, wherein the list The attribute is used to indicate the operation and maintenance status of the GM clock source; and the priority corresponding to each of the plurality of GM clock sources in the list is configured according to the list attribute.
优选的, 所述列表属性包括下述属性信息中的一个或多个: 本地 GM 时钟源与所述多个 GM时钟源的距离,所述多个 GM时钟源的的负载状况, 所述多个 GM时钟源的 CLOCKID。  Preferably, the list attribute includes one or more of the following attribute information: a distance between the local GM clock source and the plurality of GM clock sources, a load status of the plurality of GM clock sources, the plurality of CLOCKID of the GM clock source.
优选的, 建立 GM时钟源列表之后, 还包括: 按照预定时间间隔更新 所述 GM时钟源列表; 或者, 实时更新所述 GM时钟源列表。  Preferably, after the GM clock source list is established, the method further includes: updating the GM clock source list according to a predetermined time interval; or updating the GM clock source list in real time.
优选的,将所述多个可用的 GM时钟源按照本地预设优先级进行选择, 以确定一个优先级最高的 GM时钟源进行备份之后, 还包括: 在当前 GM 时钟源发生切换的情况下, 在所述多个可用的 GM时钟源中按照优先级由 高到低的顺序选择下一个备份的 GM时钟源。  Preferably, after the plurality of available GM clock sources are selected according to a local preset priority to determine a highest priority GM clock source for backup, the method further includes: when the current GM clock source is switched, The next backed up GM clock source is selected in order of priority from high to low among the plurality of available GM clock sources.
另一方面, 本发明实施例还提供了一种确定备份时钟源的装置, 包括: 获取模块,配置为通过 BMC算法进行侦测,以获取多个可用的 GM时钟源; 确定模块, 配置为将所述多个可用的 GM时钟源按照本地预设优先级进行 选择, 以确定一个优先级最高的 GM时钟源进行备份。  In another aspect, the embodiment of the present invention further provides an apparatus for determining a backup clock source, including: an acquiring module configured to perform detection by a BMC algorithm to obtain a plurality of available GM clock sources; and a determining module configured to The plurality of available GM clock sources are selected according to a local preset priority to determine a highest priority GM clock source for backup.
优选的, 所述装置还包括: GM时钟源模块, 配置为建立 GM时钟源 列表, 所述列表记录着多个 GM时钟源对应的列表属性, 其中, 所述列表 属性用于指示 GM时钟源的运维状况; 并根据所述列表属性配置所述列表 中多个所述 GM时钟源分别对应的优先级。  Preferably, the device further includes: a GM clock source module configured to establish a GM clock source list, wherein the list records a list attribute corresponding to the plurality of GM clock sources, wherein the list attribute is used to indicate the GM clock source An operation and maintenance status; and configuring, according to the list attribute, a priority corresponding to each of the plurality of GM clock sources in the list.
优选的, 所述 GM时钟源模块按照如下的列表属性中的一个或多个属 性信息建立 GM时钟源列表: 本地 GM时钟源与所述多个 GM时钟源的距 离,所述多个 GM时钟源的的负载状况,所述多个 GM时钟源的 CLOCKID。 Preferably, the GM clock source module is in accordance with one or more of the following list attributes. The information establishes a list of GM clock sources: the distance between the local GM clock source and the plurality of GM clock sources, the load status of the plurality of GM clock sources, and the CLOCKID of the plurality of GM clock sources.
优选的, 所述装置还包括: 更新模块, 配置为按照预定时间间隔更新 所述 GM时钟源列表; 或者, 实时更新所述 GM时钟源列表。  Preferably, the device further includes: an updating module, configured to update the GM clock source list according to a predetermined time interval; or, update the GM clock source list in real time.
优选的, 所述确定模块, 还配置为在当前 GM时钟源发生切换的情况 下, 在所述多个可用的 GM时钟源中按照优先级由高到低的顺序选择下一 个备份的 GM时钟源。  Preferably, the determining module is further configured to: in the case that the current GM clock source is switched, select the next backed up GM clock source according to the priority of the plurality of available GM clock sources in descending order of priority .
另一方面, 本发明实施例还提供了一种计算机存储介质, 其中存储有 计算机可执行指令, 所述计算机可执行指令用于执行上述方法。  In another aspect, an embodiment of the present invention further provides a computer storage medium storing computer executable instructions for performing the above method.
本发明实施例利用 BMC算法的侦测功能侦测到多个可用的 GM时钟 源, 在根据预设的优先级选择一个优先级最高的 GM时钟源进行备份, 能 够选择具有一定优势的 GM时钟源, 加快了收敛时间, 且增加了运维的安 全系数, 解决了现有技术中按照 1588V2协议的 BMC算法进行时钟源选择 时, 当 GM发生切换的时候, 收敛时间相当缓慢, 给运维带来潜在的危险 的问题。 附图说明  In the embodiment of the present invention, a plurality of available GM clock sources are detected by using the detection function of the BMC algorithm, and a GM clock source with the highest priority is selected for backup according to a preset priority, and a GM clock source having certain advantages can be selected. The convergence time is accelerated, and the safety factor of the operation and maintenance is increased. When the clock source selection according to the BMC algorithm of the 1588V2 protocol is used in the prior art, when the GM is switched, the convergence time is rather slow, which brings the operation and maintenance. Potentially dangerous problem. DRAWINGS
图 1 是现有技术中单 GM时钟源网络架构图;  1 is a schematic diagram of a single GM clock source network architecture in the prior art;
图 2 是现有技术中多 GM时钟源网络架构图;  2 is a network architecture diagram of a multi-GM clock source in the prior art;
图 3 是本发明实施例中确定备份时钟源的方法的流程图;  3 is a flowchart of a method for determining a backup clock source in an embodiment of the present invention;
图 4 是本发明实施例中确定备份时钟源的装置的结构示意图; 图 5 是本发明实施例中确定备份时钟源的装置的另一种结构示意图; 图 6 是本发明实施例中确定备份时钟源的装置的优选结构示意图; 图 7 是本发明优选实施例中网络架构图;  4 is a schematic structural diagram of an apparatus for determining a backup clock source according to an embodiment of the present invention; FIG. 5 is another schematic structural diagram of an apparatus for determining a backup clock source according to an embodiment of the present invention; FIG. 6 is a schematic diagram of determining a backup clock according to an embodiment of the present invention; A schematic diagram of a preferred structure of a device of the source; FIG. 7 is a network architecture diagram of a preferred embodiment of the present invention;
图 8 是本发明优选实施例中确定备份时钟源的方法的流程图。 具体实施方式 8 is a flow diagram of a method of determining a backup clock source in a preferred embodiment of the present invention. detailed description
为了解决现有技术中按照 1588V2 协议的 BMC 算法进行时钟源选择 时, 当 GM发生切换的时候, 收敛时间相当缓慢, 给运维带来潜在的危险 的问题, 本发明实施例提供了一种确定备份时钟源的方法及装置, 以下结 合附图以及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描 述的具体实施例仅仅用以解释本发明, 并不限定本发明。  In the prior art, when the clock source selection is performed according to the BMC algorithm of the 1588V2 protocol in the prior art, when the GM is switched, the convergence time is rather slow, which brings potential danger to the operation and maintenance. The embodiment of the present invention provides a determination. Method and Apparatus for Backing Up Clock Sources The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供了一种确定备份时钟源的方法,该方法的流程如图 3 所示, 包括步骤 S302至 S304:  An embodiment of the present invention provides a method for determining a backup clock source. The process of the method is as shown in FIG. 3, and includes steps S302 to S304:
S302, 通过 BMC算法进行侦测, 以获取多个可用的 GM时钟源。 在使用 BMC算法进行时钟选择的过程中,会先对时钟源进行侦测, 确 定一些可用的时钟源, 本发明实施例就是利用了 BMC算法的侦测功能, 利 用该功能找到可用的 GM时钟源。  S302: Perform detection by using a BMC algorithm to obtain multiple available GM clock sources. In the process of using the BMC algorithm for clock selection, the clock source is detected first to determine some available clock sources. In the embodiment of the present invention, the detection function of the BMC algorithm is utilized, and the available GM clock source is found by using the function. .
S304, 将多个可用的 GM时钟源按照本地预设优先级进行选择, 以确 定一个优先级最高的 GM时钟源进行备份。  S304: Select a plurality of available GM clock sources according to a local preset priority to determine a GM clock source with the highest priority for backup.
本发明实施例利用 BMC算法的侦测功能侦测到多个可用的 GM时钟 源, 在根据预设的优先级选择一个优先级最高的 GM时钟源进行备份, 能 够选择具有一定优势的 GM时钟源, 加快了收敛时间, 且增加了运维的安 全系数, 解决了现有技术中按照 1588V2协议的 BMC算法进行时钟源选择 时, 当 GM发生切换的时候, 收敛时间相当缓慢, 给运维带来潜在的危险 的问题。  In the embodiment of the present invention, a plurality of available GM clock sources are detected by using the detection function of the BMC algorithm, and a GM clock source with the highest priority is selected for backup according to a preset priority, and a GM clock source having certain advantages can be selected. The convergence time is accelerated, and the safety factor of the operation and maintenance is increased. When the clock source selection according to the BMC algorithm of the 1588V2 protocol is used in the prior art, when the GM is switched, the convergence time is rather slow, which brings the operation and maintenance. Potentially dangerous problem.
实施过程中,通过 BMC算法进行侦测, 以获取多个可用的 GM时钟源 之前, 还可以建立 GM时钟源列表, 该列表记录着多个 GM时钟源对应的 列表属性, 其中, 列表属性用于指示 GM时钟源的运维状况, 例如, 本地 GM时钟源与多个 GM时钟源的距离、 多个 GM时钟源的的负载状况、 多 个 GM时钟源的 CLOCKID等; 然后, 再根据列表属性配置 GM时钟源列 表中多个 GM时钟源分别对应的优先级。 该过程中, GM时钟源列表列出 的多个是全部适用的, 但全部适用的 GM时钟源再经过 BMC算法侦测后, 有一些 GM时钟源可能就不适合当前的需求, 进而就不能用, 另一些则可 能被确认为可用的 GM时钟源。 During the implementation process, the BMC algorithm performs detection to obtain a plurality of available GM clock sources, and may also establish a GM clock source list, where the list records a list attribute corresponding to multiple GM clock sources, where the list attribute is used. Indicates the operation and maintenance status of the GM clock source, for example, the distance between the local GM clock source and multiple GM clock sources, the load status of multiple GM clock sources, the CLOCKID of multiple GM clock sources, etc.; then, according to the list attribute configuration GM clock source column The priority of multiple GM clock sources in the table. In this process, multiple of the GM clock source lists are all applicable, but after all applicable GM clock sources are detected by the BMC algorithm, some GM clock sources may not be suitable for the current requirements, and thus cannot be used. Others may be identified as available GM clock sources.
当建立了 GM时钟源列表之后, 需要做一些维护来更新列表中的列表 属性, 其可以是周期的按照预定时间间隔更新 GM时钟源列表, 还可以是 实时的更新 GM时钟源列表。 实现时, 设置一个时间较短的预定时间间隔 来进行更新是效率较高的方式。  After the GM clock source list is established, some maintenance is required to update the list attribute in the list, which may be to update the GM clock source list at regular intervals, or to update the GM clock source list in real time. When implemented, it is an efficient way to set a shorter time interval to update.
当确定一个优先级最高的 GM时钟源进行备份之后, 系统正常工作, 如果当前 GM时钟源需要切换, 则在多个可用的 GM时钟源中按照优先级 由高到低的顺序选择下一个备份的 GM时钟源。  After determining that the GM clock source with the highest priority is backed up, the system works normally. If the current GM clock source needs to be switched, the next backup is selected in the order of priority from high to low among the available GM clock sources. GM clock source.
本发明实施例还提供了一种确定备份时钟源的装置, 该装置的结构示 意如图 4所示, 包括: 获取模块 10, 配置为通过 BMC算法进行侦测, 以 获取多个可用的 GM时钟源; 确定模块 20, 与获取模块 10耦合, 配置为将 多个可用的 GM时钟源按照预设本地优先级进行选择, 以确定一个优先级 最高的 GM时钟源进行备份。  The embodiment of the present invention further provides a device for determining a backup clock source. The structure of the device is shown in FIG. 4, and includes: an obtaining module 10 configured to perform detection by using a BMC algorithm to obtain multiple available GM clocks. The determining module 20 is coupled to the obtaining module 10 and configured to select a plurality of available GM clock sources according to a preset local priority to determine a highest priority GM clock source for backup.
实现时,确定模块 10,还配置为在当前 GM时钟源发生切换的情况下, 在多个可用的 GM时钟源中按照优先级由高到低的顺序选择下一个备份的 GM时钟源。  In implementation, the determining module 10 is further configured to select the next backed up GM clock source in order of priority from high to low among the plurality of available GM clock sources in the event that the current GM clock source is switched.
图 5示出了上述装置另一种结构示意图,装置还包括: GM时钟源模块 30, 与获取模块 10耦合, 配置为建立 GM时钟源列表, 其中, 列表记录着 多个 GM时钟源对应的的列表属性, 其中, 列表属性用于指示 GM时钟源 的运维状况; 并根据列表属性配置 GM时钟源列表中多个 GM时钟源分别 对应的优先级。 其中, GM时钟源模块按照如下的列表属性建立 GM时钟 源列表: 本地 GM时钟源与多个 GM时钟源的距离, 多个 GM时钟源的的 负载状况, 多个 GM时钟源的 CLOCKID。 FIG. 5 is a schematic diagram showing another structure of the foregoing apparatus. The device further includes: a GM clock source module 30 coupled to the acquisition module 10, configured to establish a GM clock source list, wherein the list records a plurality of GM clock sources corresponding to The list attribute, wherein the list attribute is used to indicate the operation and maintenance status of the GM clock source; and the priority corresponding to the plurality of GM clock sources in the GM clock source list is configured according to the list attribute. The GM clock source module establishes a GM clock source list according to the following list attribute: a distance between the local GM clock source and multiple GM clock sources, and multiple GM clock sources Load status, CLOCKID of multiple GM clock sources.
在图 5的基础上, 上述装置的优选结构还可以如图 6所示, 装置还包 括: 更新模块 40, 与 GM时钟源模块 30耦合, 配置为按照预定时间间隔更 新 GM时钟源列表; 或者, 实时更新 GM时钟源列表。  On the basis of FIG. 5, the preferred structure of the foregoing apparatus may also be as shown in FIG. 6. The apparatus further includes: an update module 40 coupled to the GM clock source module 30, configured to update the GM clock source list according to a predetermined time interval; or Update the list of GM clock sources in real time.
优选实施例  Preferred embodiment
本发明实施例为了解决 1588时钟运维中, 存在多个 GM时钟源。 仅仅 依靠 1588 V2的 BMC算法, 会导致整个时钟网络只和一个 GM进行同步, 导致时钟收敛慢, 同时 GM负担重的问题。 提供了一种简单的方法, 不但 可以通过 1588 V2 BMC算法选择最优的时钟, 同时可以满足多个 GM时钟 源在各自的区域担任时钟同步源角色。 同时, 在 GM时钟发生故障时, 根 据网络拓朴的运维配置, 可就近同步新的 GM时钟源, 其架构如图 7所示。  In the embodiment of the present invention, in order to solve the 1588 clock operation and maintenance, there are multiple GM clock sources. Only relying on the 1588 V2 BMC algorithm will cause the entire clock network to synchronize with only one GM, resulting in slow clock convergence and heavy GM burden. A simple method is provided, which not only selects the optimal clock through the 1588 V2 BMC algorithm, but also satisfies multiple GM clock sources as clock synchronization source roles in their respective regions. At the same time, when the GM clock fails, according to the operation and maintenance configuration of the network topology, the new GM clock source can be synchronized nearby, and its architecture is shown in FIG. 7.
本发明实施例采用以下技术方案, 本发明实施例提供一种确定备份时 钟源的方法, 该方法主要针对多 1588时钟源备份及切换过程, 即配置 GM 时钟源列表,列表属性由 GM的 CLOCKID标识; 配置时钟源列表中的 GM 时钟源本地优先级; 设备通过 BMC算法寻找多个 GM时钟源; 将 BMC算 法寻找的 GM时钟源, 通过本地优先级进行优选, 与本地优先级高的 GM 时钟源进行时钟同步。 下面结合图 8对实现方法进行详细说明, 包括步骤 S801至步骤 S805:  The embodiment of the present invention adopts the following technical solutions. The embodiment of the present invention provides a method for determining a backup clock source. The method is mainly for the backup and switching process of the 1588 clock source, that is, the GM clock source list is configured, and the list attribute is identified by the CLOCKID of the GM. Configure the local priority of the GM clock source in the clock source list. The device searches for multiple GM clock sources through the BMC algorithm. The GM clock source sought by the BMC algorithm is optimized by local priority and the GM clock source with high local priority. Perform clock synchronization. The implementation method will be described in detail below with reference to FIG. 8, including steps S801 to S805:
步骤 S801, 根据时钟网络中的 GM数目和运维情况, 配置需要进行时 钟同步的 GM时钟源列表;并根据设备与 GM的距离和运维情况,配置 GM 时钟源的本地优先级。  Step S801: Configure a GM clock source list that needs to be clock synchronized according to the number of GMs and operation and maintenance conditions in the clock network, and configure the local priority of the GM clock source according to the distance and operation and maintenance of the device from the GM.
步骤 S802, 运行 BMC算法进行 GM时钟源探测。  Step S802, running a BMC algorithm to perform GM clock source detection.
步骤 S803, 将 BMC算法选出的 GM时钟源进行本地优先级判断, 以 确定该 GM时钟源的优先级是否为本地优先级高的 GM时钟源。 在优先级 最高的情况下, 执行步骤 S804, 否则, 执行步骤 S805。 步骤 S804, 选择进行同步以进行备份。 Step S803, performing local priority determination on the GM clock source selected by the BMC algorithm to determine whether the priority of the GM clock source is a GM clock source with a high local priority. In the case where the priority is the highest, step S804 is performed, otherwise, step S805 is performed. Step S804, selecting to perform synchronization for backup.
步骤 S805, 不进行同步。  In step S805, synchronization is not performed.
在同步备份后, 可再次轮询, 再次从步骤 S802开始执行, 以选择下一 个备份的 GM时钟源。  After the synchronous backup, polling can be performed again, and execution is started again from step S802 to select the GM clock source of the next backup.
本发明实施例提供的装置包括以下模块: GM时钟源模块: 负责配置本 地的 GM时钟源列表以及本地优先级; 获取模块: 负责侦测及识别 GM时 钟源; 确定模块: 负责时钟源的本地选择以及切换。  The device provided by the embodiment of the present invention includes the following modules: GM clock source module: responsible for configuring a local GM clock source list and local priority; acquiring module: responsible for detecting and identifying the GM clock source; determining module: responsible for local selection of the clock source And switching.
本发明实施例的确定备份时钟源的装置实现上述方法的过程如下: 第一步, 通过 GM时钟源模块, 配置所要同步的 GM时钟源以及本地 选择优先级列表。  The process for implementing the foregoing method for determining the backup clock source in the embodiment of the present invention is as follows: In the first step, the GM clock source to be synchronized and the local priority list are configured through the GM clock source module.
第二步, 通过获取模块, 侦测出 GM时钟源列表。  In the second step, the GM clock source list is detected by acquiring the module.
第三步,通过确定模块将 BMC算法模块侦测到的 GM时钟源列表进行 本地优先级比较。  In the third step, the determining module compares the list of GM clock sources detected by the BMC algorithm module with local priority.
第四步, 选择本地优先级高的 GM时钟源进行时钟同步。  In the fourth step, the GM clock source with a high local priority is selected for clock synchronization.
本发明实施例还提供了一种计算机存储介质, 其中存储有计算机可执 行指令, 所述计算机可执行指令用于执行上述任一方法实施例所述的方法。  The embodiment of the present invention further provides a computer storage medium, wherein the computer executable instructions are stored, and the computer executable instructions are used to execute the method described in any one of the foregoing method embodiments.
与现有技术相比较, 本实施例在原有 1588 BMC算法基础上, 增加一 个本地 GM时钟源列表, 以及 GM时钟源的本地优先级属性, 从而实现了 多 1588时钟源的备份选择。 大大提高了运维的灵活性, 同时使得多个 GM 时钟源可相互分担时钟同步压力。 本实施例增加的 1588时钟源列表和本地 优先级, 只是通过简单的软件逻辑, 低成本, 简单灵活实现了多 1588时钟 源的备份选择。  Compared with the prior art, this embodiment adds a local GM clock source list and a local priority attribute of the GM clock source based on the original 1588 BMC algorithm, thereby implementing backup selection of multiple 1588 clock sources. The flexibility of operation and maintenance is greatly improved, and multiple GM clock sources can share the clock synchronization pressure with each other. The 1588 clock source list and local priority added in this embodiment are simple and flexible, and the backup selection of multiple 1588 clock sources is realized by simple software logic.
上述各单元可以由电子设备中的中央处理器( Central Processing Unit, CPU ). 数字信号处理器 (Digital Signal Processor, DSP )或可编程逻辑阵 列 (Field - Programmable Gate Array, FPGA ) 实现。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可采用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可采用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等)上实施的计算机程序产品的形式。 Each of the above units may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a Field-Programmable Gate Array (FPGA) in an electronic device. Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flow and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功 能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管为示例目的, 已经公开了本发明的优选实施例, 本领域的技术人 员将意识到各种改进、 增加和取代也是可能的, 因此, 本发明的范围应当 不限于上述实施例。  While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.

Claims

权利要求书 claims
1、 一种确定备份时钟源的方法, 其中, 该方法包括: 1. A method for determining a backup clock source, wherein the method includes:
通过 BMC算法进行侦测, 以获取多个可用的 GM时钟源; Detect through BMC algorithm to obtain multiple available GM clock sources;
将所述多个可用的 GM时钟源按照本地预设优先级进行选择, 以确定 一个优先级最高的 GM时钟源进行备份。 The multiple available GM clock sources are selected according to local preset priorities to determine a GM clock source with the highest priority for backup.
2、 如权利要求 1所述的方法, 其中, 通过 BMC算法进行侦测, 以获 取多个可用的 GM时钟源之前, 该方法还包括: 2. The method of claim 1, wherein before detecting through the BMC algorithm to obtain multiple available GM clock sources, the method further includes:
建立 GM时钟源列表, 所述列表记录着多个 GM时钟源对应的列表属 性, 其中, 所述列表属性用于指示 GM时钟源的运维状况; Establish a GM clock source list, which records list attributes corresponding to multiple GM clock sources, where the list attributes are used to indicate the operation and maintenance status of the GM clock source;
根据所述列表属性配置所述列表中多个所述 GM时钟源分别对应的优 先级。 Configure priorities corresponding to multiple GM clock sources in the list according to the list attributes.
3、 如权利要求 2所述的方法, 其中, 所述列表属性包括下述属性信息 中的一个或多个: 本地 GM时钟源与所述多个 GM时钟源的距离, 所述多 个 GM时钟源的的负载状况, 所述多个 GM时钟源的 CLOCKID。 3. The method of claim 2, wherein the list attributes include one or more of the following attribute information: the distance between a local GM clock source and the multiple GM clock sources, the multiple GM clocks The load condition of the source, and the CLOCKID of the multiple GM clock sources.
4、 如权利要求 2所述的方法, 其中, 建立 GM时钟源列表之后, 该方 法还包括: 4. The method of claim 2, wherein after establishing the GM clock source list, the method further includes:
按照预定时间间隔更新所述 GM时钟源列表; 或者, Update the GM clock source list at predetermined time intervals; or,
实时更新所述 GM时钟源列表。 Updates the GM clock source list in real time.
5、 如权利要求 1至 4中任一项所述的方法, 其中, 将所述多个可用的 GM 时钟源按照本地预设优先级进行选择, 以确定一个优先级最高的 GM 时钟源进行备份之后, 该方法还包括: 5. The method according to any one of claims 1 to 4, wherein the multiple available GM clock sources are selected according to local preset priorities to determine a GM clock source with the highest priority for backup. After that, the method also includes:
在当前 GM时钟源发生切换的情况下, 在所述多个可用的 GM时钟源 中按照优先级由高到低的顺序选择下一个备份的 GM时钟源。 When the current GM clock source is switched, the next backup GM clock source is selected from the multiple available GM clock sources in order of priority from high to low.
6、 一种确定备份时钟源的装置, 其中, 该装置包括: 6. A device for determining a backup clock source, wherein the device includes:
获取模块, 配置为通过 BMC算法进行侦测,以获取多个可用的 GM时 钟源; Acquisition module, configured to detect through the BMC algorithm to obtain multiple available GM times Zhong Yuan;
确定模块, 配置为将所述多个可用的 GM时钟源按照本地预设优先级 进行选择, 以确定一个优先级最高的 GM时钟源进行备份。 The determination module is configured to select the multiple available GM clock sources according to local preset priorities to determine a GM clock source with the highest priority for backup.
7、 如权利要求 6所述的装置, 其中, 所述装置还包括: 7. The device according to claim 6, wherein the device further includes:
GM时钟源模块, 配置为建立 GM时钟源列表, 所述列表记录着多个 GM时钟源对应的列表属性, 其中, 所述列表属性用于指示 GM时钟源的 运维状况; 并根据所述列表属性配置所述列表中多个所述 GM时钟源分别 对应的优先级。 The GM clock source module is configured to establish a GM clock source list. The list records list attributes corresponding to multiple GM clock sources, wherein the list attributes are used to indicate the operation and maintenance status of the GM clock source; and according to the list The attributes configure priorities corresponding to multiple GM clock sources in the list.
8、 如权利要求 7所述的装置, 其中, 所述 GM时钟源模块按照如下的 列表属性中的一个或多个属性信息建立 GM时钟源列表: 本地 GM时钟源 与所述多个 GM时钟源的距离, 所述多个 GM时钟源的的负载状况, 所述 多个 GM时钟源的 CLOCKID。 8. The device of claim 7, wherein the GM clock source module establishes a GM clock source list according to one or more attribute information in the following list attributes: local GM clock source and the multiple GM clock sources distance, load conditions of the multiple GM clock sources, and CLOCKIDs of the multiple GM clock sources.
9、 如权利要求 7所述的装置, 其中, 所述装置还包括: 9. The device according to claim 7, wherein the device further includes:
更新模块, 配置为按照预定时间间隔更新所述 GM时钟源列表; 或者, 实时更新所述 GM时钟源列表。 An update module configured to update the GM clock source list at predetermined time intervals; or, update the GM clock source list in real time.
10、 如权利要求 6至 9中任一项所述的装置, 其中, 10. The device according to any one of claims 6 to 9, wherein,
所述确定模块, 还配置为在当前 GM时钟源发生切换的情况下, 在所 述多个可用的 GM时钟源中按照优先级由高到低的顺序选择下一个备份的 GM时钟源。 The determination module is further configured to select the next backup GM clock source among the multiple available GM clock sources in order of priority from high to low when the current GM clock source is switched.
11、 一种计算机存储介质, 其中存储有计算机可执行指令, 所述计算 机可执行指令用于执行所述权利要求 1至 5任一项所述的方法。 11. A computer storage medium in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the method described in any one of claims 1 to 5.
PCT/CN2014/080021 2013-11-29 2014-06-16 Method and device for determining backup clock source, and computer storage medium WO2015078167A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310628769.3 2013-11-29
CN201310628769.3A CN104683132A (en) 2013-11-29 2013-11-29 Method and device for determining backup clock source

Publications (1)

Publication Number Publication Date
WO2015078167A1 true WO2015078167A1 (en) 2015-06-04

Family

ID=53198293

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/080021 WO2015078167A1 (en) 2013-11-29 2014-06-16 Method and device for determining backup clock source, and computer storage medium

Country Status (2)

Country Link
CN (1) CN104683132A (en)
WO (1) WO2015078167A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301647B (en) * 2015-06-05 2019-04-19 中兴通讯股份有限公司 A kind of method and device for realizing alternately BMC
CN113746586B (en) * 2020-05-28 2022-12-06 华为技术有限公司 Method and device for managing clock source

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035638A (en) * 2009-09-25 2011-04-27 华为技术有限公司 Clock source selection processing method, device and system
CN102123024A (en) * 2011-03-17 2011-07-13 中兴通讯股份有限公司 Method, system and device for switching and selecting clock source equipment
WO2011134371A1 (en) * 2010-04-26 2011-11-03 中兴通讯股份有限公司 Method for synchronizing clocks and clock synchronization device
CN102355346A (en) * 2011-10-13 2012-02-15 中兴通讯股份有限公司 Validity judgment method of clock synchronous source device and device
CN103001759A (en) * 2012-11-23 2013-03-27 北京东土科技股份有限公司 Time synchronization method, system and device based on network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771661A (en) * 2008-12-29 2010-07-07 华为技术有限公司 Method, device and system for determining clock source
CN103023595B (en) * 2012-06-08 2017-07-21 中兴通讯股份有限公司 The implementation method and device of a kind of best master clock algorithm
CN102710358A (en) * 2012-06-13 2012-10-03 中兴通讯股份有限公司 Method, device and system for transmitting GM (Grandmaster Clock) state
CN102739389A (en) * 2012-06-13 2012-10-17 中兴通讯股份有限公司 Method and system for multi-GM (Grand Master) equipment time synchronization in packet transport network
CN102868516A (en) * 2012-10-09 2013-01-09 盛科网络(苏州)有限公司 Method and device for synchronizing information distribution of clock in Ethernet

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035638A (en) * 2009-09-25 2011-04-27 华为技术有限公司 Clock source selection processing method, device and system
WO2011134371A1 (en) * 2010-04-26 2011-11-03 中兴通讯股份有限公司 Method for synchronizing clocks and clock synchronization device
CN102123024A (en) * 2011-03-17 2011-07-13 中兴通讯股份有限公司 Method, system and device for switching and selecting clock source equipment
CN102355346A (en) * 2011-10-13 2012-02-15 中兴通讯股份有限公司 Validity judgment method of clock synchronous source device and device
CN103001759A (en) * 2012-11-23 2013-03-27 北京东土科技股份有限公司 Time synchronization method, system and device based on network

Also Published As

Publication number Publication date
CN104683132A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
TWI751402B (en) Data synchronization method, distributed system, computer readable storage and retrieval media, computer equipment and distributed equipment
CN110569309B (en) Apparatus, method, system, and medium for implementing blockchain
WO2016192408A1 (en) Fault detection method and apparatus for node in cluster system
CN106156318B (en) System and method for realizing high availability of multi-node database
WO2014101424A1 (en) Method and system for synchronizing distributed database
WO2015176603A1 (en) Method and device for locating network fault
CN106487467B (en) Time synchronization deviation detection method and device
CN110166562B (en) Data synchronization method and device, storage medium and electronic equipment
US11381333B2 (en) Communication apparatus, communication system, communication method, and computer readable medium
WO2016183967A1 (en) Failure alarm method and apparatus for key component, and big data management system
CN106201690A (en) Application progress control method and device
CN102291232A (en) Clock synchronization method and device
CN105024841A (en) Clock and time synchronization network synchronization fault processing method and system
WO2013023538A1 (en) Synchronization network clock maintenance method and device
CN112713951B (en) Synchronous clock switching method and device, storage medium and electronic equipment
CN112199447A (en) Database synchronization method, device and system and electronic equipment
CN113438111A (en) Method for restoring RabbitMQ network partition based on Raft distribution and application
WO2015078167A1 (en) Method and device for determining backup clock source, and computer storage medium
CN114064217A (en) Node virtual machine migration method and device based on OpenStack
WO2017215373A1 (en) Output clock generating method and apparatus
CN106850354A (en) A kind of processing method and processing device of Single Point of Faliure
CN107005434B (en) Method, device and equipment for synchronizing Virtual Network Function (VNF) state
CN103259639A (en) Clock synchronization method of stacking equipment and stacking equipment
WO2015172398A1 (en) Method and apparatus for acquiring packet transmission delay
WO2017124829A1 (en) Method and device for restoring virtual machine

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

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

Country of ref document: EP

Kind code of ref document: A1