CN104683132A - Method and device for determining backup clock source - Google Patents

Method and device for determining backup clock source Download PDF

Info

Publication number
CN104683132A
CN104683132A CN201310628769.3A CN201310628769A CN104683132A CN 104683132 A CN104683132 A CN 104683132A CN 201310628769 A CN201310628769 A CN 201310628769A CN 104683132 A CN104683132 A CN 104683132A
Authority
CN
China
Prior art keywords
clock source
list
priority
clock
attribute
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.)
Withdrawn
Application number
CN201310628769.3A
Other languages
Chinese (zh)
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 CN201310628769.3A priority Critical patent/CN104683132A/en
Priority to PCT/CN2014/080021 priority patent/WO2015078167A1/en
Publication of CN104683132A publication Critical patent/CN104683132A/en
Withdrawn legal-status Critical Current

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

Abstract

The invention discloses a method and a device for determining a backup clock source. The method comprises the following steps of performing detection through a BMC (best master clock) algorithm so as to obtain multiple available GM (grand master) clock sources; selecting the multiple available GM clock sources according to local preset priority so as to determine a GM clock source of which the priority is highest for backup. According to the method and the device disclosed by the invention, the multiple available GM clock sources are detected by utilizing the detection function of the BMC algorithm, and then, the GM clock source of which the priority is highest is selected according to the preset priority for backup; the GM time sources with certain advantages can be selected, so that the convergence time is quickened, and the safety factors of operation and maintenance are increased; the problem that potential danger is brought to the operation and maintenance due to the fact that the convergence time is quite slow when GM clock sources are switched when time source selection is performed according to the BMC algorithm of a 1588V2 protocol in the prior art is solved.

Description

A kind of method and device determining backup clock source
Technical field
The present invention relates to communication field, particularly relate to a kind of method and the device of determining backup clock source.
Background technology
Along with the high speed development of 3G network, 1588 time synchronization protocols are more and more paid attention to and are applied in communication network.Domestic and overseas operators constantly uses 1588 agreements to carry out time synchronized, progressively replaces and uses GPS to carry out time synchronized.
In 1588 time synchronized, GM(Grand Master) be optimum clock source.1588V2 agreement is by BMC(Best Master Clock) algorithm, select optimum clock source, as shown in Figure 1.But in the Operation Network of reality, in order to ensure the stability of clock source, more than exist a GM clock source, mutually to back up.
Prior art mostly just carries out clock source selection according to the BMC algorithm of 1588V2 agreement, causes other GM clock source to be in idle state, as shown in Figure 2 always.This not only adds the burden of GM equipment, makes from GM equipment apart from distant equipment simultaneously, and when GM switches, convergence time is quite slow, brings potential danger to O&M.
Summary of the invention
The invention provides a kind of method and the device of determining backup clock source, when carrying out clock source selection according to the BMC algorithm of 1588V2 agreement in order to solve in prior art, when GM switches time, convergence time is quite slow, brings the problem of potential danger to O&M.
For solving the problems of the technologies described above, on the one hand, the invention provides a kind of method determining backup clock source, comprising: being detected by BMC algorithm, to obtain multiple available GM clock source; Described multiple available GM clock source is selected according to local pre-set priority, to determine that the GM clock source that priority is the highest backs up.
Further, detected by BMC algorithm, before obtaining multiple available GM clock source, also comprise: set up the list of GM clock source, described list records list attribute corresponding to multiple GM clock source, and wherein, described list attribute is used to indicate the O&M situation of GM clock source; The priority that in described list, multiple described GM clock source is corresponding is respectively configured according to described list attribute.
Further, it is one or more that described list attribute comprises in following attribute information: the distance of local GM clock source and described multiple GM clock source, described multiple GM clock source load state, the CLOCKID of described multiple GM clock source.
Further, after setting up the list of GM clock source, also comprise: interval upgrades the list of described GM clock source to schedule; Or, GM clock source list described in real-time update.
Further, described multiple available GM clock source is selected according to local pre-set priority, after determining that GM clock source that priority is the highest backs up, also comprise: when current GM clock source switches, according to the GM clock source of priority selective sequential next one backup from high to low in described multiple available GM clock source.
On the other hand, present invention also offers a kind of device determining backup clock source, comprising: acquisition module, for being detected by BMC algorithm, to obtain multiple available GM clock source; Determination module, for being selected according to local pre-set priority by described multiple available GM clock source, to determine that the GM clock source that priority is the highest backs up.
Further, described device also comprises: GM clock source module, and for setting up the list of GM clock source, described list records list attribute corresponding to multiple GM clock source, and wherein, described list attribute is used to indicate the O&M situation of GM clock source; And configure according to described list attribute the priority that in described list, multiple described GM clock source is corresponding respectively.
Further, described GM clock source module sets up the list of GM clock source according to the one or more attribute informations in following list attribute: the distance of local GM clock source and described multiple GM clock source, described multiple GM clock source load state, the CLOCKID of described multiple GM clock source.
Further, described device also comprises: update module, upgrades the list of described GM clock source for interval to schedule; Or, GM clock source list described in real-time update.
Further, described determination module, also for when current GM clock source switches, according to the GM clock source of priority selective sequential next one backup from high to low in described multiple available GM clock source.
The present invention utilizes the detecting function of BMC algorithm to detect multiple available GM clock source, back up at the GM clock source selecting priority the highest according to the priority preset, the GM clock source with some superiority can be selected, accelerate convergence time, and add the coefficient of safety of O&M, solve when carrying out clock source selection according to the BMC algorithm of 1588V2 agreement in prior art, when GM switches time, convergence time is quite slow, brings the problem of potential danger to O&M.
Accompanying drawing explanation
Fig. 1 is single GM clock source network Organization Chart in prior art;
Fig. 2 is many GM clock source network Organization Chart in prior art;
Fig. 3 is the flow chart of the method determining backup clock source in the embodiment of the present invention;
Fig. 4 is the structural representation of the device determining backup clock source in the embodiment of the present invention;
Fig. 5 is the another kind of structural representation of the device determining backup clock source in the embodiment of the present invention;
Fig. 6 is the preferred structure schematic diagram of the device determining backup clock source in the embodiment of the present invention;
Fig. 7 is network architecture diagram in the preferred embodiment of the present invention;
Fig. 8 is the flow chart of the method determining backup clock source in the preferred embodiment of the present invention.
Embodiment
When carrying out clock source selection according to the BMC algorithm of 1588V2 agreement in order to solve in prior art, when GM switches time, convergence time is quite slow, the problem of potential danger is brought to O&M, the invention provides a kind of method and the device of determining backup clock source, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, do not limit the present invention.
Embodiments provide a kind of method determining backup clock source, the flow process of the method as shown in Figure 3, comprises step S302 to S304:
S302, is detected by BMC algorithm, to obtain multiple available GM clock source.
Carry out in the process of clock selecting at use BMC algorithm, can first detect clock source, determine some available clock sources, the embodiment of the present invention is exactly the detecting function that make use of BMC algorithm, utilizes this function to find available GM clock source.
S304, selects multiple available GM clock source according to local pre-set priority, to determine that the GM clock source that priority is the highest backs up.
The embodiment of the present invention utilizes the detecting function of BMC algorithm to detect multiple available GM clock source, back up at the GM clock source selecting priority the highest according to the priority preset, the GM clock source with some superiority can be selected, accelerate convergence time, and add the coefficient of safety of O&M, solve when carrying out clock source selection according to the BMC algorithm of 1588V2 agreement in prior art, when GM switches time, convergence time is quite slow, brings the problem of potential danger to O&M.
In implementation process, detected by BMC algorithm, before obtaining multiple available GM clock source, the list of GM clock source can also be set up, this list records list attribute corresponding to multiple GM clock source, and wherein, list attribute is used to indicate the O&M situation of GM clock source, such as, the distance of local GM clock source and multiple GM clock source, multiple GM clock source load state, multiple GM clock source CLOCKID etc.; Then, then according to list attribute configure the priority that in the list of GM clock source, multiple GM clock source is corresponding respectively.In this process, the list of GM clock source list multiple be all be suitable for, but the GM clock source be all suitable for is again after the detecting of BMC algorithm, has some GM clock sources may just be not suitable for current demand, and then just can not use, other then may be confirmed to be available GM clock source.
After establishing the list of GM clock source, need to do some and safeguard the list attribute upgraded in list, it can be the renewal of the interval to schedule GM clock source list in cycle, can also be real-time renewal GM clock source list.When realizing, arranging that time shorter predetermined time interval carries out upgrading is the mode that efficiency is higher.
After determining that GM clock source that priority is the highest backs up, system worked well, if current GM clock source needs to switch, then in multiple available GM clock source according to the GM clock source of priority selective sequential next one backup from high to low.
The embodiment of the present invention additionally provides a kind of device determining backup clock source, and the structural representation of this device as shown in Figure 4, comprising: acquisition module 10, for being detected by BMC algorithm, to obtain multiple available GM clock source; Determination module 20, is coupled with acquisition module 10, for being selected according to default local first level by multiple available GM clock source, to determine that the GM clock source that priority is the highest backs up.
When realizing, determination module 10, also for when current GM clock source switches, according to the GM clock source of priority selective sequential next one backup from high to low in multiple available GM clock source.
Fig. 5 shows the another kind of structural representation of said apparatus, device also comprises: GM clock source module 30, be coupled with acquisition module 10, for setting up the list of GM clock source, wherein, list records multiple GM clock source corresponding list attribute, wherein, list attribute is used to indicate the O&M situation of GM clock source; And the priority corresponding respectively according to multiple GM clock source in the list of list attribute configuration GM clock source.Wherein, GM clock source module sets up the list of GM clock source according to following list attribute: the distance of local GM clock source and multiple GM clock source, multiple GM clock source load state, the CLOCKID of multiple GM clock source.
On the basis of Fig. 5, the preferred structure of said apparatus can also as shown in Figure 6, and device also comprises: update module 40, is coupled with GM clock source module 30, for interval renewal GM clock source list to schedule; Or, the list of real-time update GM clock source.
Preferred embodiment
In order to solve in 1588 clock O&Ms, there is multiple GM clock source in the embodiment of the present invention.Only rely on the BMC algorithm of 1588V2, whole clock network can be caused to carry out synchronously with a GM, and cause clock to be restrained slow, GM bears the problem weighed simultaneously.Provide a kind of simple method, not only can by the clock of 1588V2BMC algorithms selection optimum, can meet multiple GM clock source serves as clock synchronous source case in respective region simultaneously.Meanwhile, when GM clock breaks down, the O&M according to network topology configures, and GM clock source that can be synchronously new nearby, its framework as shown in Figure 7.
The present invention by the following technical solutions, the invention provides a kind of method determining backup clock source, and the method is mainly for many 1588 clock source backup and handoff procedures, and namely configure the list of GM clock source, list attribute is identified by the CLOCKID of GM; GM clock source local first level in the list of configurable clock generator source; Equipment finds multiple GM clock source by BMC algorithm; By the GM clock source that BMC algorithm is found, undertaken preferably by local first level, the GM clock source high with local first level carries out clock synchronous.Below in conjunction with Fig. 8, implementation method is described in detail, comprises step S801 to step S805:
Step S801, according to the GM number in clock network and O&M situation, configuration needs the GM clock source list carrying out clock synchronous; And according to the Distance geometry O&M situation of equipment and GM, the local first level of configuration GM clock source.
Step S802, runs BMC algorithm and carries out the detection of GM clock source.
Step S803, the GM clock source selected by BMC algorithm carries out the judgement of local first level, to determine whether the priority of this GM clock source is the GM clock source that local first level is high.When priority is the highest, perform step S804, otherwise, perform step S805.
Step S804, selects to carry out synchronously to back up.
Step S805, does not carry out synchronous.
After backed up in synchronization, can poll again, again perform from step S802, to select the GM clock source of next backup.
The device that the embodiment of the present invention provides comprises with lower module: GM clock source module: be responsible for the local GM clock source list of configuration and local first level; Acquisition module: be responsible for detecting and identify GM clock source; Determination module: this locality of being responsible for clock source is selected and switches.
The process that the device in the determination backup clock source of the embodiment of the present invention realizes said method is as follows:
The first step, by GM clock source module, configuration institute want synchronous GM clock source and this locality selection priority list.
Second step, by acquisition module, detects the list of GM clock source.
3rd step, the GM clock source list detected by BMC algoritic module by determination module is carried out local first level and is compared.
4th step, selects the high GM clock source of local first level to carry out clock synchronous.
Compared with prior art, the present embodiment, on original 1588BMC algorithm basis, increases the list of a local GM clock source, and the local first level attribute of GM clock source, thus the backup achieving many 1588 clock sources is selected.Substantially increase the flexibility of O&M, make multiple GM clock source can mutually share clock synchronous pressure simultaneously.The 1588 clock source lists that the present embodiment increases and local first level, just by simple software logic, low cost, the backup that simple and flexible achieves many 1588 clock sources is selected.
Although be example object, disclose the preferred embodiments of the present invention, it is also possible for those skilled in the art will recognize various improvement, increase and replacement, and therefore, scope of the present invention should be not limited to above-described embodiment.

Claims (10)

1. determine the method in backup clock source, it is characterized in that, comprising:
Detected by BMC algorithm, to obtain multiple available GM clock source;
Described multiple available GM clock source is selected according to local pre-set priority, to determine that the GM clock source that priority is the highest backs up.
2. the method for claim 1, is characterized in that, is detected by BMC algorithm, before obtaining multiple available GM clock source, also comprises:
Set up the list of GM clock source, described list records list attribute corresponding to multiple GM clock source, and wherein, described list attribute is used to indicate the O&M situation of GM clock source;
The priority that in described list, multiple described GM clock source is corresponding is respectively configured according to described list attribute.
3. method as claimed in claim 2, it is characterized in that, it is one or more that described list attribute comprises in following attribute information: the distance of local GM clock source and described multiple GM clock source, described multiple GM clock source load state, the CLOCKID of described multiple GM clock source.
4. method as claimed in claim 2, is characterized in that, after setting up the list of GM clock source, also comprise:
Interval upgrades the list of described GM clock source to schedule; Or,
GM clock source list described in real-time update.
5. the method according to any one of Claims 1-4, is characterized in that, is selected by described multiple available GM clock source according to local pre-set priority, after determining that GM clock source that priority is the highest backs up, also comprises:
When current GM clock source switches, according to the GM clock source of priority selective sequential next one backup from high to low in described multiple available GM clock source.
6. determine the device in backup clock source, it is characterized in that, comprising:
Acquisition module, for being detected by BMC algorithm, to obtain multiple available GM clock source;
Determination module, for being selected according to local pre-set priority by described multiple available GM clock source, to determine that the GM clock source that priority is the highest backs up.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
GM clock source module, for setting up the list of GM clock source, described list records list attribute corresponding to multiple GM clock source, and wherein, described list attribute is used to indicate the O&M situation of GM clock source; And configure according to described list attribute the priority that in described list, multiple described GM clock source is corresponding respectively.
8. device as claimed in claim 7, it is characterized in that, described GM clock source module sets up the list of GM clock source according to the one or more attribute informations in following list attribute: the distance of local GM clock source and described multiple GM clock source, described multiple GM clock source load state, the CLOCKID of described multiple GM clock source.
9. device as claimed in claim 7, it is characterized in that, described device also comprises:
Update module, upgrades the list of described GM clock source for interval to schedule; Or, GM clock source list described in real-time update.
10. the device according to any one of claim 6 to 9, is characterized in that,
Described determination module, also for when current GM clock source switches, according to the GM clock source of priority selective sequential next one backup from high to low in described multiple available GM clock source.
CN201310628769.3A 2013-11-29 2013-11-29 Method and device for determining backup clock source Withdrawn CN104683132A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN104683132A true CN104683132A (en) 2015-06-03

Family

ID=53198293

Family Applications (1)

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

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301647A (en) * 2015-06-05 2017-01-04 中兴通讯股份有限公司 A kind of method and device realizing alternately BMC
WO2021238377A1 (en) * 2020-05-28 2021-12-02 华为技术有限公司 Method and apparatus for clock source management

Citations (6)

* 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
CN102123024A (en) * 2011-03-17 2011-07-13 中兴通讯股份有限公司 Method, system and device for switching and selecting clock source equipment
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
CN103023595A (en) * 2012-06-08 2013-04-03 中兴通讯股份有限公司 Method and device for realizing best master clock algorithm

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035638B (en) * 2009-09-25 2014-09-03 华为技术有限公司 Clock source selection processing method, device and system
CN102237996B (en) * 2010-04-26 2014-03-19 中兴通讯股份有限公司 Clock synchronization method and clock synchronization device
CN102355346B (en) * 2011-10-13 2018-02-09 中兴通讯股份有限公司 A kind of validity judgment method of clock synchronous source device and device
CN103001759B (en) * 2012-11-23 2015-09-02 北京东土科技股份有限公司 A kind of network method for synchronizing time, system and device

Patent Citations (6)

* 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
CN102123024A (en) * 2011-03-17 2011-07-13 中兴通讯股份有限公司 Method, system and device for switching and selecting clock source equipment
CN103023595A (en) * 2012-06-08 2013-04-03 中兴通讯股份有限公司 Method and device for realizing 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

Cited By (4)

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

Also Published As

Publication number Publication date
WO2015078167A1 (en) 2015-06-04

Similar Documents

Publication Publication Date Title
CN103634375A (en) Method, device and equipment for cluster node expansion
CN106708567B (en) Firmware updating method and system
CN104468521A (en) Online migration method, device and system
CN105024798A (en) Method and device for time synchronization
CN111654384A (en) Main/standby switching method, BRAS (broadband remote Access Server) equipment and storage medium
CN103916226A (en) Redundant backup method based on embedded equipment
CN107888434B (en) Network equipment configuration synchronization method and device
CN105553591A (en) Node synchronization method for distributed computer system
CN104683132A (en) Method and device for determining backup clock source
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
CN102983997A (en) Method and device for migrating master services
CN102710356B (en) A kind of real time redundancy master station data synchronization method
CN102904662B (en) Cross-domain clock synchronization method and system based on PTP (Precision Time Protocol)
CN103986601A (en) Message transmission delay obtaining method and device
CN111614702B (en) Edge calculation method and edge calculation system
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
CN106131331A (en) A kind of method, apparatus and system that multiple smart machines are uniformly controlled
CN104243189B (en) A kind of more equipment communication means and its communication system based on same channel
CN105007233A (en) Method for distributing address based on DHCP (dynamic host configuration protocol) server cluster load
WO2016141626A1 (en) Multi-system-based card detection method and device, and terminal
CN109446027B (en) Scene triggering method and device based on bus system
CN115981879B (en) Data synchronization method, device and equipment of redundant structure and storage medium
CN102013918B (en) Method, system and device for transmitting data
CN109150359B (en) Time synchronization method and device of air conditioning unit
CN104080195A (en) Multi-system all-in-one machine networking method and multi-system all-in-one machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20150603

WW01 Invention patent application withdrawn after publication