CN102710358A - Method, device and system for transmitting GM (Grandmaster Clock) state - Google Patents

Method, device and system for transmitting GM (Grandmaster Clock) state Download PDF

Info

Publication number
CN102710358A
CN102710358A CN2012101947669A CN201210194766A CN102710358A CN 102710358 A CN102710358 A CN 102710358A CN 2012101947669 A CN2012101947669 A CN 2012101947669A CN 201210194766 A CN201210194766 A CN 201210194766A CN 102710358 A CN102710358 A CN 102710358A
Authority
CN
China
Prior art keywords
time
state
source
time source
priority
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.)
Pending
Application number
CN2012101947669A
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 CN2012101947669A priority Critical patent/CN102710358A/en
Publication of CN102710358A publication Critical patent/CN102710358A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a method, a device and a system for transmitting the GM (Grandmaster Clock) state. The method comprises the following steps of: detecting the state of a time source corresponding to a GM on the GM of each time synchronization chain; updating the state of the GM according to the detected state of the time source by each GM; and respectively transmitting the state of the GM and the priority of the GM to each equipment on the time synchronization chain where the GM is positioned by each GM. According to the method disclosed by the invention, each equipment on each time chain can select the currently-used time source according to the state and the priority of each GM.

Description

The sending method of GM state, Apparatus and system
Technical field
The present invention relates to the communications field, in particular to a kind of sending method, Apparatus and system of GM state.
Background technology
Along with of the development of the third generation (3rd Generation abbreviates 3G as) business, to the increasing demand increase of time synchronized reliability with Long Term Evolution (Long Term Evolution abbreviates LTE as).When breaking down, how realizing that the quick and smooth of the whole network time switches with main global positioning system (Global Position System abbreviates GPS as) main, is the key that guarantees time synchronized.
In the correlation technique; The quick and smooth of realizing the whole network time switches; Be in whole network trace master GPS source, be equipped with the GPS source as isolated island, when main GPS breaks down; Again confirm link lock in time through optimal synchronisation clock (BMC) algorithm, realization will say that the clock source of network switches to subsequent use GPS source.The whole network switches to subsequent use GPS source from main with the GPS source, and then step by step subsequent use GPS is delivered to the whole network until stable from subsequent use grandfather's clock (Grandmaster Clock abbreviates GM as) beginning, and this process is an oscillatory process.This oscillatory process can produce certain influence to related service, for example, causes the temporary transient interruption of 3G video calling or picture asynchronous with voice.
To in the correlation technique when main GPS breaks down, how to realize that time synchronization network takes over seamlessly the problem of synchronous chain of standby time by main with the time synchronization link, does not propose effective solution at present as yet.
Summary of the invention
In correlation technique, when time source breaks down, can't realize the problem that takes over seamlessly of time synchronized link, the invention provides a kind of handover scheme of time source, to address the above problem at least.
According to an aspect of the present invention, a kind of sending method of GM state is provided, has comprised: the GM on each time synchronized link detects the state with this GM time corresponding source; Each said GM upgrades the state of this GM according to the state of detected said time source; Each said GM is each equipment on the time synchronized link at this GM place respectively, the priority of sending state and this GM of this GM.
Preferably, each said GM is according to the state of this GM of state renewal of detected said time source, and comprising: whether judgement is upstate with the state in said GM time corresponding source; If then the state with said GM is updated to upstate, otherwise, the state of said GM is updated to down state.
Preferably, the state of said GM is updated to upstate, comprises: judge with said GM time corresponding source to switch to time period of upstate, whether greater than preset value from down state; If then the state with said GM is updated to upstate.
Preferably, said time source comprises primary timing source and is equipped with time source, said GM comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.
Preferably, the priority of said main GM is higher than the priority of the said GM of being equipped with.
According to another aspect of the present invention, a kind of definite method of time source is provided, has comprised: received the state of each GM that is connected with each time source and the priority of said each GM; Confirm the time source of current use according to the priority of the state of each GM and said each GM.
Preferably, confirm to comprise the time source of current use: confirm current available time source according to the priority of the state of each GM and said each GM according to the state of said each GM; From current available time source, choose the time source that the highest GM of priority connects, as the time source of current use.
Preferably, said time source comprises primary timing source and is equipped with time source, said GM comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.
Preferably, the priority of said main GM is higher than the priority of the said GM of being equipped with.
Preferably, confirm to comprise the time source of current use: judge according to the state of said main GM whether the primary timing source that links to each other with said main GM is available according to the priority of the state of each GM and said each GM; If confirm that then the time source of current use is said primary timing source.
Preferably, under the disabled situation of said main GM, also comprise: according to the said state that is equipped with GM judge link to each other with the said GM of being equipped with whether time source available fully; If the time source of confirming current use is the said time source that is equipped with.
Preferably, after the time source of confirming current use is said time source fully, also comprise: judge according to the state of the current said main GM that receives whether the continuous primary timing source of said main GM is available; If then the time source with current use switches to said primary timing source.
According to a further aspect of the invention, a kind of dispensing device of GM state is provided, has been arranged in the GM on each time synchronized link, having comprised: detection module is used to detect the state with said GM time corresponding source; Update module is used for upgrading according to the state of detected said time source the state of said GM; Sending module, each equipment that is used on the time synchronized link at said GM place sends the state of this GM and the priority of this GM.
Preferably, said update module comprises: judging unit is used to judge whether the state with said GM time corresponding source is upstate; Updating block is used in judged result when being, then the state with said GM is updated to upstate, otherwise, the state of said GM is updated to down state.
Whether preferably, said updating block is updated to upstate with the state of said GM in such a way: judge with said GM time corresponding source to switch to time of upstate from down state, greater than preset value; If then the state with said GM is updated to upstate.
According to a further aspect of the invention, a kind of definite device of time source is provided, has it is characterized in that, having comprised: receiver module is used to receive the priority of state and said each GM of each GM that is connected with each time source; Determination module is used for confirming according to the priority of the state of each GM and said each GM the time source of current use.
Preferably, said determination module comprises: confirm the unit, be used for confirming current available time source according to the state of said each GM; Choose the unit, be used for choosing the time source that the highest GM of priority connects, as the time source of current use from current available time source.
Preferably, said time source comprises primary timing source and is equipped with time source, said node comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.
Preferably, the priority of said main GM is higher than the priority of the said GM of being equipped with.
Preferably, said determination module comprises: first judging unit is used for judging according to the state of said main GM whether the primary timing source that links to each other with said main GM is available; First confirms the unit, is used in the judged result of said first judging unit when being, the time source of confirming current use is said primary timing source.
Preferably, said determination module also comprises: second judging unit, be used in the judged result of said first judging unit for not the time, according to the state of the said GM of being equipped with judge link to each other with the said GM of being equipped with whether time source available fully; Second confirms the unit, is used in the judged result of said second judging unit when being, the time source of confirming current use is said time source fully.
Preferably, said determination module also comprises: the 3rd judging unit, be used for confirming said being equipped with after time source is the time source of current use, and judge according to the state of the current said main GM that receives whether the primary timing source that said main GM links to each other is available; Switch unit is used in the judged result of said the 3rd judging unit when being, the time source of current use is switched to said primary timing source.
According to a further aspect of the invention, a kind of transmitting system of GM state is provided, has it is characterized in that, having comprised: a plurality of GM, wherein, each GM comprises the dispensing device of above-mentioned GM state provided by the invention.
Preferably, this system also comprises: the equipment on the time synchronized link at a plurality of GM place, wherein, each said equipment comprises that the present invention provides definite device of above-mentioned time source.
Through the present invention; GM on each time synchronized link detects the state with this GM time corresponding source; And upgrading the state of this GM according to the state of detected time source, each GM each equipment on the time synchronized link at this GM place respectively sends the state of this GM and the priority of this GM.Each equipment on each time link that makes can be chosen the time source of current use according to state and the priority of each GM.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart according to the sending method of the GM state of the embodiment of the invention;
Fig. 2 is the structural representation according to the gps time source networking of the embodiment of the invention;
Fig. 3 is the sketch map according to the time synchronized link of the main GPS of the embodiment of the invention;
Fig. 4 is the sketch map according to the time synchronized link that is equipped with GPS of the embodiment of the invention;
Fig. 5 is according to the flow chart of the preferred GM of the embodiment of the invention to the detection method of GPS;
Fig. 6 is the structured flowchart according to the dispensing device of the GM state of the embodiment of the invention;
Fig. 7 is the structured flowchart according to the preferred update module of the embodiment of the invention;
Fig. 8 is the flow chart according to definite method of the time source of the embodiment of the invention;
Fig. 9 is the structured flowchart according to definite device of the time source of the embodiment of the invention;
Figure 10 is the structured flowchart one according to the preferred determination module of the embodiment of the invention;
Figure 11 is the structured flowchart two according to the preferred determination module of the embodiment of the invention;
Figure 12 is the structured flowchart three according to the preferred determination module of the embodiment of the invention;
Figure 13 is the structured flowchart four according to the preferred determination module of the embodiment of the invention;
Figure 14 is the flow chart according to the choosing method of the time source of the embodiment of the invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
Embodiment one
According to the embodiment of the invention; A kind of sending method of GM state is provided; Realization each equipment in time synchronization network sends the state of the GM on each time synchronized link; Make each equipment choose the time source of current use, carry out time synchronized through corresponding time synchronized link according to the state of each GM.
Fig. 1 is the flow chart according to the sending method of the GM state of the embodiment of the invention, and is as shown in Figure 1, and this method comprises that mainly step S102 is to step S106.
Step S102, the GM on each time synchronized link detects the state with this GM time corresponding source.
Step S104, each GM upgrade the state of this GM according to the state of detected time source.
Step S106, each GM be each equipment on the time synchronized link at this GM place respectively, the priority of sending state and this GM of this GM.
Pass through the embodiment of the invention; GM on each time synchronized link detects the state with this GM time corresponding source; And upgrading the state of this GM according to the state of detected time source, each GM each equipment on the time synchronized link at this GM place respectively sends the state of this GM and the priority of this GM.Make that each equipment on each time link can be according to state and the priority of each GM; Choose the time source of current use; Realized when time source breaks down, chosen new time source, directly carried out time synchronized through new time source time corresponding synchronization link according to the priority of the state of GM; Improve the efficient of time synchronized link switchover, realized taking over seamlessly of time synchronized link.
In the correlation technique, when the time source of current use breaks down, can confirm the time synchronized link again, the time source of network is switched to available time source through the BMC algorithm.Switch to the available time in a steady stream from the current time source, and then begin, step by step available time source is delivered to each equipment in the time synchronized link from the GM corresponding with available time source, stable up to new time synchronized link.This process is an oscillatory process, with influencing normally carrying out of Network.
In embodiments of the present invention; In order to realize taking over seamlessly of time synchronized link; In Time Synchronization Network, set up many time synchronized links simultaneously; When the time source of the time synchronized link of current use breaks down, from a plurality of many time synchronized links of having set up, choose new time synchronized link, with the time source of the time synchronized link of choosing time source as current use.For example, in Time Synchronization Network as shown in Figure 2, comprise two gps time sources, set up two time synchronized links simultaneously, the time synchronized link of GPS1 and GPS2 is respectively like Fig. 3 and shown in Figure 4.The current use of this network GPS1 time corresponding synchronization link (as shown in Figure 3) carries out synchronously; When GPS1 broke down, each equipment in the Time Synchronization Network can be directly with the time synchronized link (as shown in Figure 4) of time synchronized link switchover to GPS2.
In Time Synchronization Network; Can be by GM synchronization link administrative time, GM detects the state of the time source that is attached thereto, and upgrades the state of this GM according to the state of detected time source; For example; Can use if detect GM time corresponding source, then the time synchronized link of this time source can be used, and can the state of this GM be updated to available; If it is unavailable to detect GM time corresponding source, then the time synchronized link of this time source is unavailable, can the state of this GM be updated to unavailable.Therefore, in a preferred implementation of the embodiment of the invention, when each GM upgrades the state of this GM according to the state of detected time source, can judge whether the state with this GM time corresponding source is upstate; If then the state with this GM is updated to upstate, otherwise, can the state of GM be updated to down state.Equipment on the time synchronized link at GM place can confirm whether this GM time corresponding source is available according to the state of GM, thereby determines whether and can carry out time synchronized through the time synchronized link of this GM.
In addition, after time source breaks down, time source can from unavailable return to available; And return in available a period of time from unavailable; Time source may be unstable, and for stability and the reliability that improves time synchronized, time source is in unavailable a period of time that returns to after available; Can think that this time source is unavailable, each equipment on the time synchronized link does not adopt the time source of this time source as current use.Therefore; In a preferred implementation of the embodiment of the invention; When the state of GM is updated to upstate; Can also judge with this GM time corresponding source from time period that down state switches to upstate whether greater than preset value, if then the state with this GM is updated to upstate.
In practical implementation, an alarm condition (WTR) can be set on GM, be used for representing that this GM time corresponding source returns to availablely from unavailable, the time period after recovery is eliminated the alarm condition of this GM during greater than preset value, and GM is updated to upstate.For example, a timer can be set in GM, but return to the time spent from unavailable detecting time source, timer picks up counting, and when the timing of timer accumulative total surpasses preset value, eliminates the alarm condition of GM, is updated to the state of GM available.In timing course, if time source is unavailable once more,, but return to the time spent at time source then with the timer zero clearing, restart timing.
Further, be example with GPS as time source, GM is described the preferred implementation of the detection method of time source.Fig. 5 is according to the flow chart of the preferred GM of the embodiment of the invention to the detection method of GPS, and is as shown in Figure 5, and this method comprises that mainly step S502 is to step S508:
Step S502 detects whether the GPS state is available (OK), if the GPS state is unavailable (NOK), and execution in step S506; If the GPS state is OK, execution in step S504;
Step S504 detects this GM and whether is in the WTR state, if, execution in step S506 then; If not, execution in step S508;
Step S506 is updated to NOK with the state of GM;
Step S508 is updated to OK with the state of GM.
In practical application, can comprise two time sources in the network, time source is as the main time source of use of time synchronized, i.e. primary timing source, another is as the standby time source, i.e. time source fully.When primary timing source breaks down, time source is switched to time source fully, guarantee the reliability of time synchronized.Therefore, in a preferred implementation of the embodiment of the invention, the time source described in the embodiment of the invention can comprise primary timing source and be equipped with time source.Each time source can corresponding one or more GM, and the time synchronized link of this time source is managed.Therefore, the GM in the embodiment of the invention can comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.Preferably, the GM that is connected to a time source can have a plurality of, when a GM breaks down, and can be with other equipment that are connected to this time source as new GM.
GM each equipment on this GM place time synchronized link sends the state and this GM priority of this GM; Each equipment judgement judges according to the state of GM whether corresponding time source is available; If GM is a upstate; Then the time source of this GM can be used, if the state of GM is unavailable, then the time source of this GM is unavailable.After the time source of confirming GM can be used, can also select the time source of the time source of the high GM of priority according to the priority orders of each GM as current use, carry out time synchronized through the corresponding hungry time synchronized link of choosing of time source.Under GM comprised main GM and the situation that is equipped with GM, the priority that main GM can be set was higher than the priority of GM fully.
Each equipment in the Time Synchronization Network can be chosen the time source of current use according to main GM and the state and the priority that are equipped with the GM transmission.For example, priority that can main GM is set to " 1 ", and the priority that is equipped with GM is set to " 2 "; After each equipment receives state information and priority; Judge whether this GM is available,, then judge the priority of GM if this GM can use; Choose the time source of the high GM of priority, as the time source of current use.Perhaps; Also can in the information that GM issues, carry the attribute of GM, the GM of indication transmission information is that main GM still is equipped with GM, and whether each equipment is available according to the state judgement time source of GM; If it is available; Then judge whether to be main GM, if then directly choose the time source of the time source of main GM as current use.In practical application, adopt the time source of the time source (primary timing source) of main GM as current use, only when primary timing source breaks down, adopt to be equipped with the time source of time source as current use.The priority that therefore, GM can be set is higher than the priority of GM fully.
According to the embodiment of the invention, a kind of dispensing device of GM state also is provided, be arranged in the GM on each time synchronized link, in order to realize the said method of the embodiment of the invention.
Fig. 6 is the structured flowchart according to the dispensing device of the GM state of the embodiment of the invention, and is as shown in Figure 6, and this device mainly comprises: detection module 10, update module 20 and sending module 30.Wherein, detection module 10 is used to detect the state with GM time corresponding source; Update module 20 is coupled with detection module 10, is used for upgrading according to the state of detected time source the state of GM; Sending module 30 is coupled with update module 20, and each equipment that is used on the time synchronized link at GM place sends the state of this GM and the priority of this GM.
Pass through the embodiment of the invention; The detection module 10 of GM on each time synchronized link detects the state with this GM time corresponding source; Upgrade the state of this GM by the update module 20 of GM according to the state of detected time source, and the sending module 30 of GM respectively each equipment on the time synchronized link at this GM place send the state of this GM and the priority of this GM.Make that each equipment on each time link can be according to state and the priority of each GM; Choose the time source of current use; Realized when time source breaks down, chosen new time source, directly carried out time synchronized through new time source time corresponding synchronization link according to the priority of the state of GM; Improve the efficient of time synchronized link switchover, realized taking over seamlessly of time synchronized link.
In Time Synchronization Network; Can be by GM synchronization link administrative time, GM detects the state of the time source that is attached thereto, and upgrades the state of this GM according to the state of detected time source; For example; Can use if detect GM time corresponding source, then the time synchronized link of this time source can be used, and can the state of this GM be updated to available; If it is unavailable to detect GM time corresponding source, then the time synchronized link of this time source is unavailable, can the state of this GM be updated to unavailable.Therefore, in a preferred implementation of the embodiment of the invention, as shown in Figure 7, update module 20 can comprise: judging unit 202 is used to judge whether the state with GM time corresponding source is upstate; Updating block 204 is coupled with judging unit 202, is used in judged result when being, then the state with GM is updated to upstate, otherwise, the state of GM is updated to down state.
In addition, after time source breaks down, time source can from unavailable return to available; And return in available a period of time from unavailable; Time source may be unstable, and for stability and the reliability that improves time synchronized, time source is in unavailable a period of time that returns to after available; Can think that this time source is unavailable, each equipment on the time synchronized link does not adopt the time source of this time source as current use.Therefore; In a preferred implementation of the embodiment of the invention; Whether updating block 202 can be in such a way be updated to upstate with the state of GM: judge with GM time corresponding source to switch to time of upstate from down state, greater than preset value; If then the state with GM is updated to upstate.
In practical application, can comprise two time sources in the network, time source is as the main time source of use of time synchronized, i.e. primary timing source, another is as the standby time source, i.e. time source fully.When primary timing source breaks down, time source is switched to time source fully, guarantee the reliability of time synchronized.Therefore, therefore, in a preferred implementation of the embodiment of the invention, the time source described in the embodiment of the invention can comprise primary timing source and be equipped with in the time source.Simultaneously, each time source can corresponding one or more GM, and the time synchronized link of this time source is managed.Therefore, the GM in the embodiment of the invention can comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.Therefore, the said apparatus that provides of the embodiment of the invention can be arranged in main GM and be equipped with GM.
Embodiment two
According to the embodiment of the invention; A kind of definite method of time source is provided; The method that provides with the embodiment of the invention one is used; Each equipment on the realization time synchronized link is confirmed the time source of current use, thereby is carried out time synchronized through the time synchronized link of this time source according to state and the priority of GM.
Fig. 8 is the flow chart according to definite method of the time source of the embodiment of the invention, and is as shown in Figure 8, and this method comprises that mainly step S802 is to step S804.
Step S802, the state of each GM that reception is connected with each time source and the priority of each GM.
Step S804 confirms the time source of current use according to the priority of the state of each GM and each GM.
Through the embodiment of the invention, receive the priority of state and each GM of each GM be connected with each time source, and confirm the time source of current use according to the priority of the state of each GM and each GM.Each equipment on each time link of having realized can be chosen the time source of current use according to state and the priority of each GM.When time source breaks down; Can choose new time source according to the priority of the state of GM; Directly carry out time synchronized, improved the efficient of time synchronized link switchover, realized taking over seamlessly of time synchronized link through new time source time corresponding synchronization link.
In order to realize taking over seamlessly of time synchronized link; In Time Synchronization Network, set up many time synchronized links simultaneously; When the time source of the time synchronized link of current use breaks down; From a plurality of many time synchronized links of having set up, choose new time synchronized link, with the time source of the time synchronized link of choosing time source as current use.For example, can comprise two, time source, one a conduct is equipped with time source as primary timing source, sets up two time synchronized links simultaneously, i.e. link of main time and by the time link.The current use primary timing source of this network time corresponding synchronization link carries out synchronously, and when primary timing source broke down, each equipment in the Time Synchronization Network can directly extremely be equipped with the time synchronized link switchover time synchronized link of time source.
In a preferred implementation of the embodiment of the invention; When confirming the time source of current use according to the priority of the state of each GM and each GM; Can confirm current available time source according to the state of each GM; From current available time source, choose the time source that the highest GM of priority connects, as the time source of current use.For example; Each equipment receives state and the priority of each GM, judges according to the state of each GM whether the time source of this GM is available respectively, if available; Judge then whether this GM is the available the highest GM of GM medium priority; If, then choose the time source of the time source of this GM as current use, the time synchronized link through this time source carries out time synchronized.
In practical application, can comprise two time sources in the network, time source is as the main time source of use of time synchronized, i.e. primary timing source, another is as the standby time source, i.e. time source fully.When primary timing source breaks down, time source is switched to time source fully, guarantee the reliability of time synchronized.Therefore, the time source described in the embodiment of the invention can comprise primary timing source and be equipped with time source.Each time source can corresponding one or more GM, and the time synchronized link of this time source is managed.Therefore, the GM in the embodiment of the invention can comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.Preferably, the GM that is connected to a time source can have a plurality of, when a GM breaks down, and can be with other equipment that are connected to this time source as new GM.
Each equipment in the Time Synchronization Network can be chosen the time source of current use according to main GM and the state and the priority that are equipped with the GM transmission.In practical application, can adopt the time source of the time source (primary timing source) of main GM as current use, when primary timing source breaks down, adopt to be equipped with the time source of time source as current use.The priority that therefore, GM can be set is higher than the priority of GM fully.
In a preferred implementation of the embodiment of the invention, when confirming the time source of current use, can judge whether the primary timing source that link to each other with main GM is available according to the state of main GM according to the priority of the state of each GM and each GM; If confirm that then the current time source that uses is primary timing source.For example, priority that can main GM is set to " 1 ", and the priority that is equipped with GM is set to " 2 "; After each equipment receives state information and priority; Judge whether this GM is available,, then judge the priority of GM if this GM can use; Choose the time source of the high GM of priority, as the time source of current use.Perhaps; Also can in the information that GM issues, carry the attribute of GM, the GM of indication transmission information is that main GM still is equipped with GM, and whether each equipment is available according to the state judgement time source of GM; If it is available; Then judge whether to be main GM, if then directly choose the time source of the time source of main GM as current use.
Further, under the disabled situation of main GM, can use, then can also choose the time source of the time source of GM fully as current use if be equipped with the time source of GM.Concrete, can according to the state that is equipped with GM judge be equipped with that GM links to each other whether be equipped with time source available, if the time source of confirming current use is time source fully.Through the judgement of the state of GM having been confirmed primary timing source and the state that is equipped with time source; Under the disabled situation of primary timing source; Can choosing fully, time source directly arrives the time synchronized link that is equipped with time source with the time synchronized link switchover as the time source of current use.
For after being equipped with time source,, then can time source be switched to primary timing source at the time source of confirming current use if the time source of main GM returns to upstate.In order to realize this purpose; In a preferred implementation of the embodiment of the invention; At the time source of confirming current use for after being equipped with time source; Can judge whether the continuous primary timing source of main GM is available according to the state of the current main GM that receives, if then the time source with current use switches to primary timing source.
According to the embodiment of the invention, corresponding to the said method of the embodiment of the invention, a kind of definite device of time source is provided also, in order to realize by the said method of inventive embodiments.
Fig. 9 is the structured flowchart according to definite device of the time source of the embodiment of the invention, and is as shown in Figure 9, and this device mainly comprises: receiver module 40 and determination module 50.Wherein, receiver module 40 is used to receive the priority of state He each GM of each GM that is connected with each time source; Determination module 50 is coupled with receiver module 40, is used for confirming according to the priority of the state of each GM and each GM the time source of current use.
Through the embodiment of the invention, receiver module 40 receives the priority of state and each GM of each GM that is connected with each time source, and confirms the time source of current use according to the priority of the state of each GM and each GM by determination module 50.Each equipment on each time link of having realized can be chosen the time source of current use according to state and the priority of each GM.When time source breaks down; Can choose new time source according to the priority of the state of GM; Directly carry out time synchronized, improved the efficient of time synchronized link switchover, realized taking over seamlessly of time synchronized link through new time source time corresponding synchronization link.
When confirming the time source of current use according to the priority of the state of each GM and each GM; Can confirm current available time source according to the state of each GM; From current available time source, choose the time source that the highest GM of priority connects, as the time source of current use.In order to achieve the above object, in a preferred implementation of the embodiment of the invention, shown in figure 10, determination module 50 can comprise: confirm unit 502, be used for confirming current available time source according to the state of each GM; Choose unit 504, be used for choosing the time source that the highest GM of priority connects, as the time source of current use from current available time source.
In practical application, can comprise two time sources in the network, time source is as the main time source of use of time synchronized, i.e. primary timing source, another is as the standby time source, i.e. time source fully.When primary timing source breaks down, time source is switched to time source fully, guarantee the reliability of time synchronized.Therefore, the time source described in the embodiment of the invention can comprise primary timing source and be equipped with time source.Each time source can corresponding one or more GM, and the time synchronized link of this time source is managed.Therefore, the GM in the embodiment of the invention can comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.Preferably, the GM that is connected to a time source can have a plurality of, when a GM breaks down, and can be with other equipment that are connected to this time source as new GM.
Each equipment in the Time Synchronization Network can be chosen the time source of current use according to main GM and the state and the priority that are equipped with the GM transmission.In practical application, can adopt the time source of the time source (primary timing source) of main GM as current use, when primary timing source breaks down, adopt to be equipped with the time source of time source as current use.The priority that therefore, GM can be set is higher than the priority of GM fully.
When confirming the time source of current use, can judge whether the primary timing source that link to each other with main GM is available according to the state of main GM according to the priority of the state of each GM and each GM; If confirm that then the current time source that uses is primary timing source.Therefore, in a preferred implementation of the embodiment of the invention, as shown in Figure 1, determination module 50 can comprise: first judging unit 506 is used for judging according to the state of main GM whether the primary timing source that links to each other with main GM is available; First confirms to be coupled with first judging unit 506 unit 508, is used in the judged result of first judging unit 506 confirming that the current time source that uses is primary timing source when being.
Further, under the disabled situation of main GM, can use, then can also choose the time source of the time source of GM fully as current use if be equipped with the time source of GM.Concrete, can according to the state that is equipped with GM judge be equipped with that GM links to each other whether be equipped with time source available, if the time source of confirming current use is time source fully.Therefore; In a preferred implementation of the embodiment of the invention, shown in figure 12, determination module 50 can also comprise: second judging unit 510; Be used in the judged result of first judging unit 506 for not the time, according to the state that is equipped with GM judge be equipped with that GM links to each other whether time source available fully; Second confirms to be coupled with second judging unit 510 unit 512, is used in the judged result of second judging unit 510 when being, the time source of confirming current use is time source fully.
For after being equipped with time source,, then can time source be switched to primary timing source at the time source of confirming current use if the time source of main GM returns to upstate.In order to realize this purpose; In a preferred implementation of the embodiment of the invention; Shown in figure 13; Determination module 50 can also comprise: the 3rd judging unit 514 is used for after confirming that being equipped with time source is the time source of current use, judging according to the state of the current main GM that receives whether the continuous primary timing source of main GM is available; Switch unit 516 is coupled with the 3rd judging unit 514, is used in the judged result of the 3rd judging unit 514 when being, the time source of current use is switched to primary timing source.
Embodiment three
According to the embodiment of the invention, a kind of GPS source 1:1 is provided active and standby implementation method.Set up the time synchronized chain of 1:1 exactly for active and standby GPS.When the master was broken down with GPS, time synchronization network took over seamlessly synchronous chain of standby time by main with synchronous chain of time, waited main returning again with the time recovery and after stablizing to cut.Through introducing primary, spare time synchronized chain, the whole network time is taken over seamlessly between active and standby GPS, eliminated in the correlation technique handoff procedure to the influence of business.
In networking as shown in Figure 2, GPS1 is that main to use time source, GPS2 be the standby time source.Four equipment are formed looped network, whole looped network operation two cover time synchronized links.Every cover time link is pressed BMC algorithm decision state respectively.Equivalence is the time synchronized link stack of Fig. 3 and Fig. 4.The state of active and standby GM and priority issue toward equipment through message, and each equipment is according to state and the priority of GM, seclected time the source.Below in conjunction with Figure 14 the method for the embodiment of the invention is further described.
Figure 14 is the flow chart according to the choosing method of the time source of the embodiment of the invention, and is shown in figure 14, and this method comprises that mainly step S1402 is to step S1408.
Step S1402 sets up two cover time synchronized chains, like Fig. 3 and shown in Figure 4 in network environment.
Step S1404 is priority of GM appointment of above-mentioned two cover time synchronized chains, and the master uses priority level initializing to be height.
Step S1406, active and standby GM revise the state of GM separately according to the last state in detected GPS source, and issue separately priority and state information.
Step S1408, on the time synchronized chain each equipment according to the GM state and the priority that receive, according to state OK whether relatively earlier, order source seclected time of priority relatively again.
In above-mentioned steps S1406, active and standby GM can comprise following step to the GPS status detection:
Step 1: whether inspection GPS state OK, if GPS N state OK, then this GM state is NOK.
Step 2: if GPS state OK checks then whether this GM is in the WTR state.If the GM state still is NOK.
Step 3: if GPS state OK, and GM be not in the WTR state then the GM state be OK.
Conversion about the WTR state can be used following method: when the GPS state by NOK when OK changes, the WTR state puts 1, and starts timer, but during timer aggregate-value greater than set point after the WTR state remove.Add up in the process if GPS N state OK, then count value zero clearing occur at timer value.
Embodiment four
According to the embodiment of the invention, a kind of transmitting system of GM state also is provided, in order to realize the method for the above embodiment of the present invention.
This system can comprise a plurality of GM, and wherein, each GM can comprise the device that the embodiment of the invention one provides.Preferably, this system can also comprise: the equipment on the time synchronized link at a plurality of GM place, wherein, each equipment can comprise the device that the embodiment of the invention two provides.
Further, also can comprise the device of the embodiment of the invention two among each GM, each equipment also can comprise the device of the embodiment of the invention one.When the GM on the time synchronized link breaks down, can choose possess identical function equipment as new GM, to guarantee the reliability of time synchronized.
From above description, can find out that the present invention has realized following technique effect:
1) state in the detection of the GM on each time synchronized link and this GM time corresponding source; And upgrading the state of this GM according to the state of detected time source, each GM each equipment on the time synchronized link at this GM place respectively sends the state of this GM and the priority of this GM.Make that each equipment on each time link can be according to state and the priority of each GM; Choose the time source of current use; Realized when time source breaks down, chosen new time source, directly carried out time synchronized through new time source time corresponding synchronization link according to the priority of the state of GM; Improve the efficient of time synchronized link switchover, realized taking over seamlessly of time synchronized link.
2) receive the priority of state and each GM of each GM be connected with each time source, and confirm the time source of current use according to the priority of the state of each GM and each GM.Each equipment on each time link of having realized can be chosen the time source of current use according to state and the priority of each GM.When time source breaks down; Can choose new time source according to the priority of the state of GM; Directly carry out time synchronized, improved the efficient of time synchronized link switchover, realized taking over seamlessly of time synchronized link through new time source time corresponding synchronization link.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (24)

1. the sending method of a GM state is characterized in that, comprising:
Grandfather's clock GM on each time synchronized link detects the state with this GM time corresponding source;
Each said GM upgrades the state of this GM according to the state of detected said time source;
Each said GM is each equipment on the time synchronized link at this GM place respectively, the priority of sending state and this GM of this GM.
2. method according to claim 1 is characterized in that, each said GM comprises according to the state of this GM of state renewal of detected said time source:
Whether judgement is upstate with the state in said GM time corresponding source;
If then the state with said GM is updated to upstate, otherwise, the state of said GM is updated to down state.
3. method according to claim 2 is characterized in that, the state of said GM is updated to upstate, comprising:
Judge with said GM time corresponding source to switch to time period of upstate, whether greater than preset value from down state;
If then the state with said GM is updated to upstate.
4. according to each described method in the claim 1 to 3, it is characterized in that said time source comprises primary timing source and be equipped with time source, said GM comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.
5. method according to claim 4 is characterized in that, the priority of said main GM is higher than the priority of the said GM of being equipped with.
6. definite method of a time source is characterized in that, comprising:
Receive the state of each grandfather's clock GM that is connected with each time source and the priority of said each GM;
Confirm the time source of current use according to the priority of the state of each GM and said each GM.
7. method according to claim 6 is characterized in that, confirms to comprise the time source of current use according to the priority of the state of each GM and said each GM:
Confirm current available time source according to the state of said each GM;
From current available time source, choose the time source that the highest GM of priority connects, as the time source of current use.
8. method according to claim 6 is characterized in that, said time source comprises primary timing source and be equipped with time source, said GM comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.
9. method according to claim 8 is characterized in that, the priority of said main GM is higher than the priority of the said GM of being equipped with.
10. method according to claim 9 is characterized in that, confirms to comprise the time source of current use according to the priority of the state of each GM and said each GM:
Judge according to the state of said main GM whether the primary timing source that links to each other with said main GM is available;
If confirm that then the time source of current use is said primary timing source.
11. method according to claim 10 is characterized in that, under the disabled situation of said main GM, also comprises:
According to the said state that is equipped with GM judge link to each other with the said GM of being equipped with whether time source available fully;
If the time source of confirming current use is the said time source that is equipped with.
12. method according to claim 11 is characterized in that, after the time source of confirming current use is said time source fully, also comprises:
Judge according to the state of the current said main GM that receives whether the continuous primary timing source of said main GM is available;
If then the time source with current use switches to said primary timing source.
13. the dispensing device of a GM state is arranged in the grandfather's clock GM on each time synchronized link, it is characterized in that, comprising:
Detection module is used to detect the state with said GM time corresponding source;
Update module is used for upgrading according to the state of detected said time source the state of said GM;
Sending module, each equipment that is used on the time synchronized link at said GM place sends the state of this GM and the priority of this GM.
14. device according to claim 13 is characterized in that, said update module comprises:
Judging unit is used to judge whether the state with said GM time corresponding source is upstate;
Updating block is used in judged result when being, then the state with said GM is updated to upstate, otherwise, the state of said GM is updated to down state.
15. device according to claim 14 is characterized in that, said updating block is updated to upstate with the state of said GM in such a way:
Judge with said GM time corresponding source to switch to time of upstate, whether greater than preset value from down state;
If then the state with said GM is updated to upstate.
16. definite device of a time source is characterized in that, comprising:
Receiver module is used to receive the priority of state and said each GM of each GM that is connected with each time source;
Determination module is used for confirming according to the priority of the state of each GM and said each GM the time source of current use.
17. device according to claim 16 is characterized in that, said determination module comprises:
Confirm the unit, be used for confirming current available time source according to the state of said each GM;
Choose the unit, be used for choosing the time source that the highest GM of priority connects, as the time source of current use from current available time source.
18. device according to claim 16 is characterized in that, said time source comprises primary timing source and is equipped with time source, said node comprise the main GM that is connected with primary timing source and be equipped with the GM fully that time source is connected.
19. device according to claim 18 is characterized in that, the priority of said main GM is higher than the priority of the said GM of being equipped with.
20. device according to claim 19 is characterized in that, said determination module comprises:
First judging unit is used for judging according to the state of said main GM whether the primary timing source that links to each other with said main GM is available;
First confirms the unit, is used in the judged result of said first judging unit when being, the time source of confirming current use is said primary timing source.
21. device according to claim 20 is characterized in that, said determination module also comprises:
Second judging unit is used in the judged result of said first judging unit for not the time, according to the state of the said GM of being equipped with judge link to each other with the said GM of being equipped with whether time source available fully;
Second confirms the unit, is used in the judged result of said second judging unit when being, the time source of confirming current use is said time source fully.
22. device according to claim 21 is characterized in that, said determination module also comprises:
The 3rd judging unit is used for confirming said being equipped with after time source is the time source of current use, judges according to the state of the current said main GM that receives whether the primary timing source that said main GM links to each other is available;
Switch unit is used in the judged result of said the 3rd judging unit when being, the time source of current use is switched to said primary timing source.
23. the transmitting system of a GM state is characterized in that, comprising: a plurality of grandfather's clock GM, wherein,
Each said GM comprises each described device in the claim 13 to 15.
24. system according to claim 23 is characterized in that, also comprises:
Equipment on the time synchronized link at said a plurality of GM place, wherein, each said equipment comprises each described device in the claim 16 to 22.
CN2012101947669A 2012-06-13 2012-06-13 Method, device and system for transmitting GM (Grandmaster Clock) state Pending CN102710358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101947669A CN102710358A (en) 2012-06-13 2012-06-13 Method, device and system for transmitting GM (Grandmaster Clock) state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101947669A CN102710358A (en) 2012-06-13 2012-06-13 Method, device and system for transmitting GM (Grandmaster Clock) state

Publications (1)

Publication Number Publication Date
CN102710358A true CN102710358A (en) 2012-10-03

Family

ID=46902938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101947669A Pending CN102710358A (en) 2012-06-13 2012-06-13 Method, device and system for transmitting GM (Grandmaster Clock) state

Country Status (1)

Country Link
CN (1) CN102710358A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683132A (en) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 Method and device for determining backup clock source
CN105323086A (en) * 2014-07-11 2016-02-10 中兴通讯股份有限公司 Synchronization time source selection indication method, device and system
CN107493499A (en) * 2017-08-08 2017-12-19 青岛海信电器股份有限公司 Terminal system method for updating time, device and electronic equipment
WO2023212874A1 (en) * 2022-05-05 2023-11-09 Zte Corporation A method, system and apparatus of time synchronization switching

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102237996A (en) * 2010-04-26 2011-11-09 中兴通讯股份有限公司 Clock synchronization method and clock synchronization device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102237996A (en) * 2010-04-26 2011-11-09 中兴通讯股份有限公司 Clock synchronization method and clock synchronization device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宿飞等: "1588v2在电信网应用的标准化进程", 《中兴通讯技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104683132A (en) * 2013-11-29 2015-06-03 中兴通讯股份有限公司 Method and device for determining backup clock source
CN105323086A (en) * 2014-07-11 2016-02-10 中兴通讯股份有限公司 Synchronization time source selection indication method, device and system
CN105323086B (en) * 2014-07-11 2020-03-10 中兴通讯股份有限公司 Method, device and system for indicating synchronous time source selection
CN107493499A (en) * 2017-08-08 2017-12-19 青岛海信电器股份有限公司 Terminal system method for updating time, device and electronic equipment
WO2023212874A1 (en) * 2022-05-05 2023-11-09 Zte Corporation A method, system and apparatus of time synchronization switching

Similar Documents

Publication Publication Date Title
EP2632081B1 (en) Path switch-back method and apparatus in transport network
US9954735B2 (en) Realizing graceful restart in IS-IS network
CN103248445A (en) Clock synchronization method and device
CN105024798A (en) Method and device for time synchronization
US6185247B1 (en) Method of reducing synchronization rearrangements in synchronous transmission systems
CN105790965A (en) Method and device for link switching and line card
CN102710358A (en) Method, device and system for transmitting GM (Grandmaster Clock) state
CN102968357A (en) Software upgrading method and system for distributed communication device
CN103001759B (en) A kind of network method for synchronizing time, system and device
US8483049B2 (en) System and method for communications system routing component level high availability
CN102780635A (en) Method for realizing protection switching based on TRILL (transparent interconnection of lots of link) network, TOR (top of rack) switchboard and system
CN102143077B (en) Method and system for realizing multi-service link of route equipment and route equipment thereof
CN102571458A (en) Switching method and device for tunnel protection sets
CN101827035B (en) Method for ensuring graceful restarting and dual master control network device
CN102420746A (en) Forwarding method for multicast flow and network equipment therefor
CN101645768B (en) Router and main/standby switch method thereof
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
CN102420766B (en) Routing determination method and routing device
CN103166847B (en) Ensure the method and apparatus of Graceful Restart
CN102170398A (en) Switching method of external time port and device thereof
CN110336728B (en) Message processing method, node equipment, electronic equipment and readable storage medium
CN111064622B (en) Network device, synchronization apparatus, and information transmission method
CN108174417B (en) Main/standby switching method and device, related electronic equipment and readable storage medium
CN113346974A (en) Method, apparatus, communication system and storage medium for clock synchronization
CN112787802A (en) Key switching method, device, terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121003