CN102388556B - Method for clockclass grading and relative device - Google Patents
Method for clockclass grading and relative device Download PDFInfo
- Publication number
- CN102388556B CN102388556B CN201180001783.XA CN201180001783A CN102388556B CN 102388556 B CN102388556 B CN 102388556B CN 201180001783 A CN201180001783 A CN 201180001783A CN 102388556 B CN102388556 B CN 102388556B
- Authority
- CN
- China
- Prior art keywords
- time synchronism
- synchronism equipment
- clockclass
- time
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
- H04J3/0667—Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays
Abstract
The embodiments of the invention disclose a method for clockclass grading and a relative deivce.The method includes the steps of a time synchronous device determing whether a tracing main reference time source is lost, wherein the clockclass B is used for indicating clockcloss entering into a retaining mode after the time synchronous device loses the tracing main reference time source, and B is determined by accuracy of the local clock entering into a retaining mode. The higher the accuracy of the local clock, the smaller the value of B. When the loss of the tracing main reference time source is determined, clockclass B is sent to a downstream device of the time synchronous device. The solution of the invention is used for solving the problem that a downstream of a time synchronous device under some scences can not be shifted to the time synchronous device with high clock accuracy.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of clock grade stage division and relevant device.
Background technology
(the IEEE of IEEE-USA, Institute of Electrical and Electronics Engineers) 1588v2 precision interval clock synchronous protocol (PTP, Precision Time Protocol) clock synchronous of dispersion, independent operating in measurement and control system can be got up, synchronization accuracy can reach submicrosecond level.Fig. 1 is the Time Synchronizing in telecommunications application scenarios, as shown in Figure 1, time synchronism equipment 11, load bearing equipment 12 and base station 13 are enabled after PTP, the time in main reference time source 10 can be transferred to base station 13 by time synchronism equipment 11 and load bearing equipment 12, so just need to not configure main reference time source separately in each base station, thereby can reduce the programmed cost of network.
In PTP agreement, each clockwork (comprising time synchronism equipment, load bearing equipment and base station) definition has the clock attribute of self, according to these clock attributes, based on best master clock algorithm (BMC, Best Master Clock) can calculate the master slave relation of clockwork in network, thereby by adjusting local zone time, realize principal and subordinate's time synchronized from clockwork.In clock attribute, by clock grade clockclass parameter, defined the clock quality rank of clockwork, if table 1 is main clockclass parameter value and the implication of 1588v2 protocol definition:
Table 1
Wherein, the value outside bracket is the undefined clockclass parameter value of target scene while using PTP, and the value in bracket is the undefined clockclass parameter value of target scene while using independent (ARB, arbitrary).
In actual 1588v2 application, the variation of the ClockClass parameter value by time synchronism equipment comes the clock quality of reflecting time synchronizer to change.Suppose that table 2 is for the current clock attribute of each clockwork in Fig. 1 is (for ease of two time synchronism equipments 11 in component-bar chart 1, time synchronism equipment in Fig. 1 left side 11 is described as to BITS-A below, the time synchronism equipment 11 in Fig. 1 the right is described as to BITS-B).
Table 2
Wherein, clock mark (clockID, clockIdentity) parameter value in table is the numeral of 8 byte-sized, supposes that the clockID of BITS-A is less than the clockID of BITS-B, be a < b, the markers type that BITS-A and BITS-B are used is PTP markers.Based on existing 1588v2 agreement, when BITS-A and BITS-B all can normally follow the tracks of the main reference time during source 10, BITS-A and BITS-B are 6 to the Clockclass parameter value of load bearing equipment 12 outputs, and load bearing equipment is according to BMC algorithm, and the clock source that calculates current network is BITS-A.
If lose in the main reference time source 10 that now BITS-B follows the tracks of, suppose that BITS-B enters Holdover mode and meets maintenance requirement, now, BITS-A is still 6 to the Clockclass parameter value of load bearing equipment 12 outputs, BITS-B reduces to 7 to the Clockclass parameter value of load bearing equipment 12 outputs, load bearing equipment is according to BMC algorithm, and the clock source that calculates current network is BITS-A.
If the main reference time that now BITS-A and BITS-B follow the tracks of loses in a steady stream simultaneously, suppose that BITS-A and BITS-B enter Holdover mode and satisfied maintenance is required to meet maintenance requirement,, BITS-A reduces to 7 to the Clockclass parameter value of load bearing equipment 12 outputs, BITS-B reduces to 7 to the Clockclass parameter value of load bearing equipment 12 outputs, because the clockID value of BITS-A is less than the clockID value of BITS-B, load bearing equipment is according to BMC algorithm, and the clock source that calculates current network is BITS-A.
Visible, in above-mentioned application scenarios, if the clock accuracy of BITS-B is higher than the clock accuracy of BITS-A, load bearing equipment is appointed the clock source using BITS-A as current network, and cannot trace into the BITS-B that clock accuracy is higher, visible, at least there is following drawback in the ClockClass ranking score level method of existing 1588v2 protocol definition, at the priority P riority of all time synchronism equipments all under identical scene, when the main reference time of all time synchronism equipments all loses in a steady stream, the upstream device that cannot guarantee time synchronism equipment can be switched on the time synchronism equipment that clock accuracy is higher.
Summary of the invention
The embodiment of the present invention provides a kind of clock grade stage division and relevant device, for solving the upstream device of part scene time synchronism equipment, cannot be switched to the problem on the time synchronism equipment that clock accuracy is higher.
The technical scheme providing for the embodiment of the present invention below:
A clock grade stage division, comprising:
Whether lose in the main reference time source that time synchronism equipment judgement is followed the tracks of; On above-mentioned time synchronism equipment, preserve clock grade clockclass B, clock grade when above-mentioned clockclass B is used to indicate and enters Holdover mode behind the main reference time source that above-mentioned time synchronism equipment loses tracking, wherein, above-mentioned B is determined by above-mentioned local clock precision while entering Holdover mode, above-mentioned local clock precision is higher, and B is less;
When judging followed the tracks of source of main reference time and lose, to the upstream device of above-mentioned time synchronism equipment, export above-mentioned clockclass B.
A time synchronism equipment, comprising:
Memory cell, for store clock grade clockclass B, clock grade when above-mentioned clockclass B is used to indicate and enters Holdover mode behind the main reference time source that above-mentioned time synchronism equipment loses tracking, above-mentioned B is determined by above-mentioned local clock precision while entering Holdover mode, above-mentioned local clock precision is higher, and B is less;
Judging unit, for judging whether the main reference time source of tracking loses;
Output unit, while losing for judge the source of main reference time of above-mentioned tracking when above-mentioned judging unit, exports above-mentioned clockclass B to the upstream device of above-mentioned time synchronism equipment.
A clock synchronization system, comprising:
Time synchronism equipment and load bearing equipment;
On above-mentioned time synchronism equipment, preserve clock grade clockclass B, clock grade when above-mentioned clockclass B is used to indicate and enters Holdover mode behind the main reference time source that above-mentioned time synchronism equipment loses tracking, wherein, above-mentioned B is determined by above-mentioned local clock precision while entering Holdover mode, above-mentioned local clock precision is higher, and B is less;
Above-mentioned time synchronism equipment is for judging whether the main reference time source of tracking loses; When judging followed the tracks of source of main reference time and lose, to above-mentioned load bearing equipment, export above-mentioned clockclass B.
Therefore, in the technical scheme that the embodiment of the present invention provides, time synchronism equipment is being lost the main reference time follow the tracks of during source, to its upstream device output, be kept at the clockclass B on this time synchronism equipment, and when time synchronism equipment enters Holdover mode local clock precision higher, the clockclass parameter value of this time synchronism equipment output is less, be that B is less, on the one hand, upstream device can be known the current clock accuracy rank of time synchronism equipment of losing the main reference time source of following the tracks of according to the clockclass parameter value receiving, on the other hand, when the priority of all time synchronism equipments of following the tracks of when above-mentioned upstream device all equates, because the clock accuracy of time synchronism equipment is higher, its clockclass parameter value of exporting to its upstream device after losing the main reference time source of following the tracks of is less, therefore, guaranteed that above-mentioned upstream device switches to the time synchronism equipment that clock accuracy is higher after calculating by BMC algorithm, thereby solved under this scene and cannot guarantee that above-mentioned upstream device is switched to the problem on the time synchronism equipment that clock accuracy is higher.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic network structure of the Time Synchronizing in telecommunications application scenarios;
Fig. 2 is embodiment schematic flow sheet of a kind of clock grade stage division provided by the invention;
Fig. 3 is another embodiment schematic flow sheet of a kind of clock grade stage division provided by the invention;
Fig. 4 is the schematic network structure under an application scenarios embodiment provided by the invention;
Fig. 5 is example structure schematic diagram of a kind of time synchronism equipment provided by the invention;
Fig. 6 is example structure schematic diagram of a kind of clock synchronization system provided by the invention.
Embodiment
The embodiment of the present invention provides a kind of clock grade stage division and relevant device.
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, but not whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
A kind of clock grade the stage division below embodiment of the present invention being provided is described, and refers to Fig. 2, and the clock grade stage division in the embodiment of the present invention comprises:
Whether lose in the main reference time source that 201, time synchronism equipment judgement is followed the tracks of;
On above-mentioned time synchronism equipment, preserve clockclass B, clock grade when clockclass B is used to indicate and enters Holdover mode behind the main reference time source that above-mentioned time synchronism equipment loses tracking, wherein, local clock precision when the value of B enters Holdover mode by above-mentioned time synchronism equipment determines, and, above-mentioned local clock precision is higher, and B is less.
202, when judging followed the tracks of source of main reference time and lose, to the upstream device output clockclass B of this time synchronism equipment;
When time synchronism equipment cannot receive the signal in main reference time source, can judge that current followed the tracks of main reference time source loses.
In one embodiment of the invention, time synchronism equipment docks by 1588 interfaces with its upstream device, time synchronism equipment is when judging followed the tracks of source of main reference time and lose, to its upstream device output, carry the notification packet (being announce message) of clockclass B, wherein, 1588v2 agreement is defined the form of notification packet, as shown in table 3:
Table 3
Wherein, grandmasterClockQuality parameter telltable clock quality in table, from table 4, grandmasterClockQuality parameter comprises 4 bytes, by clockclass parameter, clockaccuracy (clock accuracy) parameter and offsetscaledlogvariance (side-play amount estimation) parameter forms, in embodiments of the present invention, and using the value output of above-mentioned B clockclass parameter in notification packet.
In another embodiment of the invention, time synchronism equipment is by pulse per second (PPS) (1PPS, one pulse per second)+temporal information (TOD, Time of day) interface docking, time synchronism equipment is exported clockclass B by the pulse per second (PPS) index signal in TOD information to its upstream device, wherein, clockclass parameter value is corresponding one by one with pulse per second (PPS) index signal, and different clockclass parameter values is indicated by different pulse per second (PPS) index signals.
In the invention process, above-mentioned main reference time source can be big-dipper satellite navigation system, can be also global positioning system (GPS, Global Positioning System), or other navigation system, is not construed as limiting herein.
Therefore, in the technical scheme that the embodiment of the present invention provides, time synchronism equipment is being lost the main reference time follow the tracks of during source, to its upstream device output, be kept at the clockclass B on this time synchronism equipment, and when time synchronism equipment enters Holdover mode local clock precision higher, the clockclass parameter value of this time synchronism equipment output is less, be that B is less, on the one hand, upstream device can be known the current clock accuracy rank of time synchronism equipment of losing the main reference time source of following the tracks of according to the clockclass parameter value receiving, on the other hand, when the priority of all time synchronism equipments of following the tracks of when above-mentioned upstream device all equates, because the clock accuracy of time synchronism equipment is higher, its clockclass parameter value of exporting to its upstream device after losing the main reference time source of following the tracks of is less, therefore, guaranteed that above-mentioned upstream device switches to the time synchronism equipment that clock accuracy is higher after calculating by BMC algorithm, thereby solved under this scene and cannot guarantee that above-mentioned upstream device is switched to the problem on the time synchronism equipment that clock accuracy is higher.
A kind of clock grade the stage division below embodiment of the present invention being provided is further described.
In embodiments of the present invention, according to the hardware configuration of time synchronism equipment itself and characteristic, time synchronism equipment is divided into one-level time synchronism equipment, secondary time synchronism equipment and three grades of time synchronism equipments successively according to rank height.
Wherein, one-level time synchronism equipment is the time synchronism equipment that meets following standard: at least comprise a caesium clock and a satellite time transfer receiver, can, by special-purpose comparison means, be traceable to punctual benchmark (as national time service center) of more high-grade time of this country;
Wherein, secondary time synchronism equipment is the time synchronism equipment that meets following standard: at least comprise a rubidium clock and a satellite time transfer receiver, support will be traced to the source to one-level time synchronism equipment by ground means the time, support the punctual function of ground frequency signal, and can be traceable to reliably national Frequency Synchronization net;
Wherein, three grades of time synchronism equipments are the time synchronism equipment that meets following standard: at least comprise a high stability crystal oscillator and a satellite time transfer receiver, support will be traced to the source to secondary time synchronism equipment or one-level time synchronism equipment by ground means the time, support the punctual function of ground frequency signal, and can be traceable to reliably national Frequency Synchronization net.
For three kinds of other time synchronism equipments of level, the embodiment of the present invention is carried out the definition as table 4 to main clockclass parameter value and implication:
Table 4
Wherein, the maintenance of one-level time synchronism equipment requires to refer to and utilizes cesium-beam atomic clock to keep, or it is punctual to the frequency synchronization signal of primary reference clock (PRC, Primary Reference Clock) to trace to the source; The maintenance of secondary time synchronism equipment requires to refer to and utilizes rubidium atomic clock to keep; Three grades of time synchronism equipments maintenances require to refer to and utilize high stability crystal oscillator to keep.
Wherein, the A in table, B
1, B
2and B
3be natural number, and meet the following conditions:
A<B
1<B
2<B
3。
In one embodiment of the invention, the markers type of using when time synchronism equipment timestamp during for PTP, can make A, B
1, B
2and B
3value be respectively 6,7,8 and 52.
In another embodiment of the invention, the markers type of using when time synchronism equipment timestamp during for ARB, can make A, B
1, B
2and B
3value be respectively 13,14,15 and 53.
Certainly, A, B
1, B
2and B
3also can be to meet A < B
1< B
2< B
3other value, be not construed as limiting herein.
Consult Fig. 3, another embodiment of a kind of clock grade stage division of the present invention comprises:
Whether lose in the main reference time source that 301, time synchronism equipment judgement is followed the tracks of;
On above-mentioned time synchronism equipment, preserve clockclass B, clock grade when clockclass B is used to indicate and enters Holdover mode behind the main reference time source that above-mentioned time synchronism equipment loses tracking, wherein, local clock precision when the value of B enters Holdover mode by above-mentioned time synchronism equipment determines, if above-mentioned local clock precision meets one-level time synchronism equipment, keep requirement, B equals B
1; If above-mentioned local clock precision meeting tier 2 time synchronism equipment keeps requirement, B equals B
2; If above-mentioned local clock precision meets three grades of time synchronism equipments, keep requirement, B equals B
3.
When time synchronism equipment can normally receive the signal in main reference time source, can judge that current followed the tracks of main reference time source do not lose, perform step 302.When time synchronism equipment cannot receive the signal in main reference time source, can judge that current followed the tracks of main reference time source loses, perform step 303.
302, the clockclass of equipment output downstream A;
Time synchronism equipment is exported clockclass A to its upstream device.
Wherein, the implementation of the clockclass of equipment output downstream A can, as the description in Fig. 2 step 202, repeat no more herein.
303, the clockclass of equipment output downstream B;
Wherein, the implementation of the clockclass of equipment output downstream B can, with reference to the description in Fig. 2 step 202, repeat no more herein.
Therefore, in the technical scheme that the embodiment of the present invention provides, time synchronism equipment is being lost the main reference time follow the tracks of during source, to its upstream device output, be kept at the clockclass B on this time synchronism equipment, and when time synchronism equipment enters Holdover mode local clock precision higher, the clockclass parameter value of this time synchronism equipment output is less, be that B is less, on the one hand, upstream device can be known the current clock accuracy rank of time synchronism equipment of losing the main reference time source of following the tracks of according to the clockclass parameter value receiving, on the other hand, when the priority of all time synchronism equipments of following the tracks of when above-mentioned upstream device all equates, because the clock accuracy of time synchronism equipment is higher, its clockclass parameter value of exporting to its upstream device after losing the main reference time source of following the tracks of is less, therefore, guaranteed that above-mentioned upstream device switches to the time synchronism equipment that clock accuracy is higher after calculating by BMC algorithm, thereby solved under this scene and cannot guarantee that above-mentioned upstream device is switched to the problem on the time synchronism equipment that clock accuracy is higher.
Below with a concrete application scenarios example, a kind of clock grade stage division to the embodiment of the present invention is described, be illustrated in figure 4 the clock synchronization system Organization Chart under this application scene, comprise time synchronism equipment 43 and time synchronism equipment 44, wherein, time synchronism equipment 43 is one-level time synchronism equipment, when entering Holdover mode, utilize cesium-beam atomic clock to keep, it follows the tracks of main reference time source 41, time synchronism equipment 44 is secondary time synchronism equipment, when entering Holdover mode, utilize rubidium atomic clock to keep, it follows the tracks of main reference time source 42, load bearing equipment 45 is the upstream device of time synchronism equipment 43 and time synchronism equipment 44.
In this application scene, main clockclass parameter value and the definition of implication are as table 5:
Table 5
Wherein, the value outside bracket is the undefined clockclass parameter value of target scene while using PTP, and the value in bracket is the undefined clockclass parameter value of target scene while using ARB.
In this application scene, suppose that time synchronism equipment 43 and time synchronism equipment 44 are all used PTP markers, and clock attribute is as shown in table 6:
Table 6
Wherein, a and b are the numeral of 8 byte-sized, and a > b.At time synchronism equipment 43, can normally follow the tracks of main reference time source 41, time synchronism equipment 44 can normally be followed the tracks of the main reference time during source 42, time synchronism equipment 43 equals 6 to the Clockclass parameter value m of load bearing equipment 45 outputs, time synchronism equipment 44 equals 6 to the Clockclass parameter value n of load bearing equipment 45 outputs, load bearing equipment 45 is according to BMC algorithm, the clock source that can calculate current network is time synchronism equipment 44, when time synchronism equipment 43 and time synchronism equipment 44 are all lost the followed the tracks of main reference time during source, time synchronism equipment 43 utilizes cesium-beam atomic clock to keep while entering Holdover mode, now the local clock precision of time synchronism equipment 43 meets one-level time synchronism equipment maintenance requirement, its Clockclass parameter value m to load bearing equipment 45 outputs equals 7, and time synchronism equipment 44 utilizes while entering Holdover mode rubidium atomic clock to keep, now the local clock precision meeting tier 2 time synchronism equipment of time synchronism equipment 44 keeps requirement, its Clockclass parameter value n to load bearing equipment 45 outputs equals 7, load bearing equipment 45 is according to BMC algorithm, the clock source that can calculate current network is time synchronism equipment 43, and, load bearing equipment 45 is according to the Clockclass parameter value receiving, the current clock accuracy of time synchronism equipment 43 that the Clockclass parameter value that can know transmission is 7 meets one-level time synchronism equipment and keeps requirement, the current clock accuracy meeting tier 2 time synchronism equipment of time synchronism equipment 44 that the Clockclass parameter value sending is 8 keeps requirement.
Therefore, in the technical scheme that the embodiment of the present invention provides, time synchronism equipment is being lost the main reference time follow the tracks of during source, according to this time synchronism equipment, enter the clock accuracy of Holdover mode, equipment is exported corresponding clockclass parameter value downstream, and the clock accuracy that enters Holdover mode is higher, B is less, on the one hand, upstream device can be known the current clock accuracy rank of time synchronism equipment of losing the main reference time source of following the tracks of according to the clockclass parameter value receiving, on the other hand, when the priority of all time synchronism equipments of following the tracks of when above-mentioned upstream device all equates, because the clock accuracy of time synchronism equipment is higher, its clockclass parameter value of exporting to its upstream device after losing the main reference time source of following the tracks of is less, therefore, guaranteed that above-mentioned upstream device switches to the time synchronism equipment that clock accuracy is higher after calculating by BMC algorithm, thereby solved under this scene and cannot guarantee that above-mentioned upstream device is switched to the problem on the time synchronism equipment that clock accuracy is higher.
Below a kind of time synchronism equipment of the embodiment of the present invention is described, refers to Fig. 5, the time synchronism equipment 500 of the embodiment of the present invention comprises:
Judging unit 502, for judging whether the main reference time source of tracking loses.
In one embodiment of the invention, time synchronism equipment 500 docks by 1588 interfaces with its upstream device, and output unit 503 is exported clockclass B by notification packet (being announce message) to its upstream device.
In another embodiment of the invention, time synchronism equipment 500 docks by 1PPS+TOD interface, output unit 503 is exported clockclass B by the pulse per second (PPS) index signal in TOD information to its upstream device, wherein, clockclass parameter value is corresponding one by one with pulse per second (PPS) index signal, and different clockclass parameter values is indicated by different pulse per second (PPS) index signals.
Further, memory cell 501 is also for storing clockclass A, and wherein, clockclass A is used to indicate main reference time that time synchronism equipment 500 do not lose tracking clock grade during source, wherein A < B; Output unit 503 is also when judging followed the tracks of main reference time source and do not lose, to its upstream device output clockclass A when judging unit 502.
It should be noted that, the time synchronism equipment 500 of the present embodiment can be as the time synchronism equipment in above-mentioned embodiment of the method, can be for realizing the whole technical schemes in said method embodiment, the function of its each functional module can be according to the method specific implementation in said method embodiment, its specific implementation process can, with reference to the associated description in above-described embodiment, repeat no more herein.
Therefore, in the technical scheme that the embodiment of the present invention provides, time synchronism equipment is being lost the main reference time follow the tracks of during source, to its upstream device output, be kept at the clockclass B on this time synchronism equipment, and when time synchronism equipment enters Holdover mode local clock precision higher, the clockclass parameter value of this time synchronism equipment output is less, be that B is less, on the one hand, upstream device can be known the current clock accuracy rank of time synchronism equipment of losing the main reference time source of following the tracks of according to the clockclass parameter value receiving, on the other hand, when the priority of all time synchronism equipments of following the tracks of when above-mentioned upstream device all equates, because the clock accuracy of time synchronism equipment is higher, its clockclass parameter value of exporting to its upstream device after losing the main reference time source of following the tracks of is less, therefore, guaranteed that above-mentioned upstream device switches to the time synchronism equipment that clock accuracy is higher after calculating by BMC algorithm, thereby solved under this scene and cannot guarantee that above-mentioned upstream device is switched to the problem on the time synchronism equipment that clock accuracy is higher.
Below a kind of clock synchronization system in the invention process is described, refers to Fig. 6, the clock synchronization system 600 in the embodiment of the present invention comprises:
Time synchronism equipment 601 and load bearing equipment 602;
On time synchronism equipment 601, preserve clock grade clockclass B, wherein, clock grade when clockclass B is used to indicate and enters Holdover mode behind the main reference time source that time synchronism equipment 601 loses tracking, B is determined by above-mentioned local clock precision while entering Holdover mode, above-mentioned local clock precision is higher, and B is less.
Time synchronism equipment 601 is for judging whether the main reference time source of tracking loses; When judging followed the tracks of source of main reference time and lose, to the above-mentioned clockclass B of load bearing equipment 602 output.
Further, also preserve clockclass A on time synchronism equipment 601, wherein, clockclass A is used to indicate main reference time that time synchronism equipment 601 do not lose tracking clock grade during source, wherein A < B; Time synchronism equipment 601 also, for when judging followed the tracks of main reference time source and do not lose, is exported above-mentioned clockclass A to its upstream device.
In embodiments of the present invention, when the normal tracking time synchronizer 601 of load bearing equipment 602 energy, the clockclass parameter value of load bearing equipment 602 outputs is consistent with the clockclass parameter value of the time synchronism equipment 601 receiving, when load bearing equipment 602 is normally during tracking time synchronizer 601, the clockclass parameter value of load bearing equipment 602 output acquiescences.
It should be noted that, the time synchronism equipment 601 of the present embodiment can be as the time synchronism equipment in above-mentioned embodiment of the method, can be for realizing the whole technical schemes in said method embodiment, the function of its each functional module can be according to the method specific implementation in said method embodiment, its specific implementation process can, with reference to the associated description in above-described embodiment, repeat no more herein.
Therefore, time synchronism equipment in the clock synchronization system 600 that the embodiment of the present invention provides is being lost the main reference time follow the tracks of during source, to its upstream device output, be kept at the clockclass B on this time synchronism equipment, and when time synchronism equipment enters Holdover mode local clock precision higher, the clockclass parameter value of this time synchronism equipment output is less, be that B is less, on the one hand, upstream device can be known the current clock accuracy rank of time synchronism equipment of losing the main reference time source of following the tracks of according to the clockclass parameter value receiving, on the other hand, when the priority of all time synchronism equipments of following the tracks of when above-mentioned upstream device all equates, because the clock accuracy of time synchronism equipment is higher, its clockclass parameter value of exporting to its upstream device after losing the main reference time source of following the tracks of is less, therefore, guaranteed that above-mentioned upstream device switches to the time synchronism equipment that clock accuracy is higher after calculating by BMC algorithm, thereby solved under this scene and cannot guarantee that above-mentioned upstream device is switched to the problem on the time synchronism equipment that clock accuracy is higher.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), the various media that can be program code stored such as random access memory (RAM, Random Access Memory), magnetic disc or CD.
Above a kind of clock grade stage division provided by the present invention and relevant device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, to sum up, this description should not be construed as limitation of the present invention.
Claims (12)
1. a clock grade stage division, is characterized in that, comprising:
Whether lose in the main reference time source that time synchronism equipment judgement is followed the tracks of; On described time synchronism equipment, preserve clock grade clockclass B, clock grade when described clockclass B is used to indicate and enters Holdover mode behind the main reference time source that described time synchronism equipment loses tracking, wherein, described B is determined by described local clock precision while entering Holdover mode, described local clock precision is higher, and B is less;
When judging followed the tracks of source of main reference time and lose, to the upstream device of described time synchronism equipment, export described clockclass B;
Wherein, the upstream device of described clock synchronization device calculates main time synchronism equipment by best master clock algorithm.
2. method according to claim 1, it is characterized in that, on described time synchronism equipment, also preserve clockclass A, described clockclass A is used to indicate main reference time that described time synchronism equipment do not lose tracking clock grade during source, wherein said A<B, whether the main reference time source that described judgement is followed the tracks of comprises after losing:
When judging followed the tracks of main reference time source and do not lose, to the upstream device of described time synchronism equipment, export described clockclass A.
3. method according to claim 2, is characterized in that, the markers type that described time synchronism equipment is used is precision clock agreement PTP markers, and described A equals 6;
If described local clock precision meets one-level time synchronism equipment, keep requirement, described B equals 7;
If described local clock precision meeting tier 2 time synchronism equipment keeps requirement, described B equals 8;
If described local clock precision meets three grades of time synchronism equipments, keep requirement, described B equals 52.
4. method according to claim 2, is characterized in that, the markers type that described time synchronism equipment is used is independent ARB markers, and described A equals 13;
If described local clock precision meets one-level time synchronism equipment, keep requirement, described B equals 14;
If described local clock precision meeting tier 2 time synchronism equipment keeps requirement, described B equals 15;
If described local clock precision meets three grades of time synchronism equipments, keep requirement, described B equals 53.
5. according to the described method of any one in claim 1 to 4, it is characterized in that, described time synchronism equipment is exported described clockclass B by the pulse per second (PPS) index signal of temporal information TOD to described upstream device.
6. a time synchronism equipment, is characterized in that, comprising:
Memory cell, for store clock grade clockclass B, clock grade when described clockclass B is used to indicate and enters Holdover mode behind the main reference time source that described time synchronism equipment loses tracking, described B is determined by described local clock precision while entering Holdover mode, described local clock precision is higher, and B is less;
Judging unit, for judging whether the main reference time source of tracking loses;
Output unit, while losing for judge the source of main reference time of described tracking when described judging unit, exports described clockclass B to the upstream device of described time synchronism equipment;
Wherein, the upstream device of described clock synchronization device calculates main time synchronism equipment by best master clock algorithm.
7. time synchronism equipment according to claim 6, is characterized in that,
Described memory cell is also for storing clockclass A, and described clockclass A is used to indicate main reference time that described time synchronism equipment do not lose tracking clock grade during source, wherein said A<B;
Described output unit also when judging the main reference time source of described tracking when described judging unit and do not lose, is exported described clockclass A to the upstream device of described time synchronism equipment.
8. time synchronism equipment according to claim 7, is characterized in that, the markers type that described time synchronism equipment is used is precision clock agreement PTP markers, and described A equals 6;
If described local clock precision meets one-level time synchronism equipment, keep requirement, described B equals 7;
If described local clock precision meeting tier 2 time synchronism equipment keeps requirement, described B equals 8;
If described local clock precision meets three grades of time synchronism equipments, keep requirement, described B equals 52.
9. time synchronism equipment according to claim 7, is characterized in that, the markers type that described time synchronism equipment is used is independent ARB markers, and described A equals 13;
If described local clock precision meets one-level time synchronism equipment, keep requirement, described B equals 14;
If described local clock precision meeting tier 2 time synchronism equipment keeps requirement, described B equals 15;
If described local clock precision meets three grades of time synchronism equipments, keep requirement, described B equals 53.
10. according to the time synchronism equipment described in claim 6 to 9 any one, it is characterized in that,
Described output unit is exported described clockclass B by the pulse per second (PPS) index signal of temporal information TOD to described upstream device.
11. 1 kinds of clock synchronization systems, is characterized in that, comprising:
Time synchronism equipment and load bearing equipment;
On described time synchronism equipment, preserve clock grade clockclass B, clock grade when described clockclass B is used to indicate and enters Holdover mode behind the main reference time source that described time synchronism equipment loses tracking, wherein, described B is determined by described local clock precision while entering Holdover mode, described local clock precision is higher, and B is less;
Described time synchronism equipment is for judging whether the main reference time source of tracking loses; When judging followed the tracks of source of main reference time and lose, to described load bearing equipment, export described clockclass B;
Wherein, the upstream device of described clock synchronization device calculates main time synchronism equipment by best master clock algorithm.
12. systems according to claim 11, is characterized in that,
On described time synchronism equipment, also preserve clockclass A, described clockclass A is used to indicate main reference time that described time synchronism equipment do not lose tracking clock grade during source, wherein said A<B;
Described time synchronism equipment also, for when judging followed the tracks of main reference time source and do not lose, is exported described clockclass A to described load bearing equipment.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/079861 WO2012149751A1 (en) | 2011-09-20 | 2011-09-20 | Method and related device for grading clock classes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102388556A CN102388556A (en) | 2012-03-21 |
CN102388556B true CN102388556B (en) | 2014-02-26 |
Family
ID=45826501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180001783.XA Active CN102388556B (en) | 2011-09-20 | 2011-09-20 | Method for clockclass grading and relative device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102388556B (en) |
WO (1) | WO2012149751A1 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686982B (en) * | 2012-09-17 | 2017-03-29 | 中国移动通信集团公司 | A kind of method for synchronizing time and node device based on clock information |
CN102904662B (en) * | 2012-09-29 | 2015-06-24 | 北京东土科技股份有限公司 | Cross-domain clock synchronization method and system based on PTP (Precision Time Protocol) |
CN104079365A (en) * | 2014-07-21 | 2014-10-01 | 昆明联诚科技股份有限公司 | Control system and method for railway clock synchronization network |
CN112152745B (en) * | 2019-08-07 | 2021-09-28 | 中兴通讯股份有限公司 | Time synchronization method, time synchronization sending end, time synchronization receiving end and time synchronization system |
WO2021223102A1 (en) * | 2020-05-06 | 2021-11-11 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and time synchronization (ts) node for enabling extended holdover time |
CN112394634A (en) * | 2021-01-21 | 2021-02-23 | 国汽智控(北京)科技有限公司 | Time service method, device, equipment and storage medium for vehicle-mounted computing platform |
EP4289100A1 (en) * | 2021-02-05 | 2023-12-13 | Telefonaktiebolaget LM Ericsson (publ) | Method and apparatus for clock distribution in network |
CN114465690A (en) * | 2021-12-30 | 2022-05-10 | 华为技术有限公司 | Method, device and system for sending precision information |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207606A (en) * | 2006-12-18 | 2008-06-25 | 华为技术有限公司 | Method and apparatus for main clock selecting |
CN101299749A (en) * | 2007-04-30 | 2008-11-05 | 华为技术有限公司 | Method and apparatus for transferring clock between networks |
CN101399655A (en) * | 2007-09-27 | 2009-04-01 | 华为技术有限公司 | Determining method and apparatus for synchronization port of transparent clock device |
CN101867469A (en) * | 2010-06-10 | 2010-10-20 | 北京东土科技股份有限公司 | Realization method of precision synchronous clock |
CN102036361A (en) * | 2009-09-25 | 2011-04-27 | 华为技术有限公司 | Processing method, device and system for clock source selection |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101465707B (en) * | 2008-12-15 | 2013-03-27 | 中兴通讯股份有限公司 | Method and system for transferring protection time in synchronous network |
JP5560706B2 (en) * | 2009-12-28 | 2014-07-30 | 富士通株式会社 | Node equipment |
-
2011
- 2011-09-20 WO PCT/CN2011/079861 patent/WO2012149751A1/en active Application Filing
- 2011-09-20 CN CN201180001783.XA patent/CN102388556B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101207606A (en) * | 2006-12-18 | 2008-06-25 | 华为技术有限公司 | Method and apparatus for main clock selecting |
CN101299749A (en) * | 2007-04-30 | 2008-11-05 | 华为技术有限公司 | Method and apparatus for transferring clock between networks |
CN101399655A (en) * | 2007-09-27 | 2009-04-01 | 华为技术有限公司 | Determining method and apparatus for synchronization port of transparent clock device |
CN102036361A (en) * | 2009-09-25 | 2011-04-27 | 华为技术有限公司 | Processing method, device and system for clock source selection |
CN101867469A (en) * | 2010-06-10 | 2010-10-20 | 北京东土科技股份有限公司 | Realization method of precision synchronous clock |
Also Published As
Publication number | Publication date |
---|---|
WO2012149751A1 (en) | 2012-11-08 |
CN102388556A (en) | 2012-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102388556B (en) | Method for clockclass grading and relative device | |
US11706730B2 (en) | Time synchronization method and electronic device | |
CN103532652B (en) | A kind of time synchronism apparatus and method | |
CN203164620U (en) | High precision time synchronization device | |
CN103634092A (en) | High precision timer in CPU cluster | |
CN103210689B (en) | Method, device and system for performing time synchronization on PCIE device | |
CN106685566B (en) | A kind of selection method and clock server of clock source | |
CN111385051B (en) | Clock synchronization method, device and storage medium | |
CN103916950A (en) | Time synchronization method and system | |
CN110492965A (en) | The method and apparatus of serial message clock synchronization in a kind of master-slave system | |
CN103563287A (en) | Synchronization device and synchronization method | |
CN111385050B (en) | Clock synchronization method, device and storage medium | |
WO2021008532A1 (en) | Active antenna unit delay alignment method and apparatus and active antenna unit | |
CN101765198A (en) | Clock synchronization method, clock synchronization device and clock synchronization system | |
CN101873187A (en) | Method and system of clock synchronization | |
CN109644120B (en) | Method and apparatus for time synchronization | |
CN103546268A (en) | Method and device for compensating system time | |
CN110417503A (en) | A kind of method and digital communication equipment for test clock network delay | |
CN102313859A (en) | Method and system for positioning fault of underground cable on basis of IEEE 1588 (network measurement and control system precision clock synchronization protocol) | |
CN101145896A (en) | Control system and method for clock synchronization between control stations | |
CN108134644B (en) | Synchronous method, device, synchronizer and system | |
CN103686990A (en) | Device for achieving clock synchronization | |
CN101034950B (en) | Clock synchronization method and device | |
CN109343332A (en) | Time dissemination system based on Big Dipper satellite signal | |
CN112564842B (en) | Control system timing method and device for railway vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |