CN101459500A - Method for implementing time master-slave protection and time master-slave protection device - Google Patents

Method for implementing time master-slave protection and time master-slave protection device Download PDF

Info

Publication number
CN101459500A
CN101459500A CNA2007103021160A CN200710302116A CN101459500A CN 101459500 A CN101459500 A CN 101459500A CN A2007103021160 A CNA2007103021160 A CN A2007103021160A CN 200710302116 A CN200710302116 A CN 200710302116A CN 101459500 A CN101459500 A CN 101459500A
Authority
CN
China
Prior art keywords
clock
time
module
plate
frame head
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.)
Granted
Application number
CNA2007103021160A
Other languages
Chinese (zh)
Other versions
CN101459500B (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2007103021160A priority Critical patent/CN101459500B/en
Priority to PCT/CN2008/073465 priority patent/WO2009082909A1/en
Publication of CN101459500A publication Critical patent/CN101459500A/en
Application granted granted Critical
Publication of CN101459500B publication Critical patent/CN101459500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master

Landscapes

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

Abstract

The embodiment of the invention discloses a method for realizing the time master spare protection and a time master spare protection device, wherein a master clock time module and a spare clock time module in the time master spare protection device can receive timestamp information, and respectively restore the time information from the timestamp information, the master clock time module selects the time information restored from the board thereof to calibrate the real-time clock of the board, and sends the board real-time clock information after calibrated for the spare clock time module, and the spare clock time module selects the real-time clock information sent by the master clock time module as a reference to calibrate the real-time clock of the board thereof. The invention can be applied to realize the master spare protection of time.

Description

The method of realization time main-apparatus protection and time master-slave protection device
Technical field
The present invention relates to the communication transmission, particularly a kind of method and time master-slave protection device of realizing the time main-apparatus protection.
Background technology
Along with the development of mobile communication technology and next generation network technology, how to come passing time information to cause the very big concern on communication circle with lower cost, more excellent quality.IEEE1588, NTP (Network Time Protocol) (NTP, Network Time Protocol) equal time transmission technology have solved the how method problem of passing time of network.But, how can make the temporal information of being transmitted more reliable? how to guarantee that the temporal information of being transmitted can satisfy professional requirement (as: the 3G business is for the requirement of time)?
Need the delivery network clock in the conventional communication networks, the reliability of the network clocking of transmitting in order to guarantee adopts the clock active/standby protection scheme usually.Fig. 1 is the principle schematic of existing clock active/standby protective device.Referring to Fig. 1: A plate and B plate backup each other; clock module in clock module in the A plate and the B plate backups each other; it is identical that structure is formed in the inside of the clock module in clock module in the A plate and the B plate, and logic module is used for the output of the master clock module output as whole clock active/standby protective device.
When not needing to carry out masterslave switchover, above-mentioned existing clock active/standby protective device is mainly finished the tracking timing reference input, the function of output system clock frequency and system's frame head, and its operation principle is:
Master clock module and be equipped with clock module and follow the tracks of same road timing reference input recovers system clock frequency respectively, and the system of generation frame head, and to plate being sent system clock frequency that this plate recovers and the system's frame head that is produced;
The master clock module is directly exported system clock frequency that is recovered and the system's frame head that is produced;
Be equipped with clock module and calibrate this plate system clock frequency and system's frame head according to system clock frequency and system's frame head that the master clock module sends, that is: adjust the phase place of this plate system clock frequency and system's frame head, make it with to the system clock frequency of plate and the phase alignment of system's frame head, and will be through system clock frequency after the calibration and the output of system frame head;
Logic module will be selected system clock frequency and system's frame head output of master clock module according to the index signal that comes from A plate and B plate.The index signal of the described A of coming from plate and B plate is used for the active and standby pattern to logic module indication A plate and B plate.
When detecting the undesired and slave board of mainboard work when working properly; system carries out switching of active and standby pattern with control main board and slave board, and system clock frequency and system's frame head that the master clock module after switching is exported are exported as system clock frequency and system's frame head of clock active/standby protective device.By the operation principle of above-mentioned clock active/standby protective device as seen; be equipped with clock module master clock module and the system clock frequency that clock module produced have fully been carried out phase alignment; in addition; clock module has carried out main system frame head and the phase alignment that is equipped with system's frame head according to system's frame head of master clock module fully; aforesaid operations has guaranteed: when carrying out masterslave switchover; the master clock module is consistent with the phase place that is equipped with system clock frequency that clock module exports separately and system frame head; thereby guaranteed when clock module is switched; apparent in view phase hit can not take place in the clock signal that the clock active/standby protective device is exported, and guarantees that the jumping mutually when clock active/standby is switched is very little that is:.
Yet above-mentioned existing clock active/standby protection scheme can only guarantee the reliability of clock signal, and the jumping mutually when guaranteeing that clock active/standby is switched is very little; Can not processing time information, can not provide reliable temporal information for network, and jumping mutually during masterslave switchover lessly can not guarantee that the saltus step of time is less.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method and time master-slave protection device of realizing the time main-apparatus protection, realizes the main-apparatus protection of time.
For achieving the above object, the technical scheme of the embodiment of the invention specifically is achieved in that
A kind of method that realizes the time main-apparatus protection comprises:
Master clock time module and be equipped with clock time module time of reception and stab information recovers temporal information respectively from the timestamp information that is received;
The temporal information that the master clock time module selects this plate to recover is calibrated the real-time clock (RTC) of this plate, and to the firm and hard clock information of basis that is equipped with after the clock time module sends calibration;
The real-time clock (RTC) information of clock time module selection master clock time module transmission is calibrated the real-time clock (RTC) of this plate as a reference fully.
A kind of time master-slave protection device comprises:
The master clock time module is used for time of reception and stabs information, recovers temporal information from described timestamp information, and the temporal information that is used to select this plate to recover calibrates the real-time clock (RTC) of this plate, sends this firm and hard clock information to being equipped with the clock time module;
Be equipped with the clock time module, be used for time of reception and stab information, from described timestamp information, recover temporal information, and be used to select real-time clock (RTC) information that the master clock time module sends as a reference, calibrate the real-time clock (RTC) of this plate;
Logic module is used for the real-time clock (RTC) information output with the master clock time module.
As seen from the above technical solution, the technical scheme of the realization time main-apparatus protection that the embodiment of the invention provided, by two mutually redundant clock time modules are set, by the master clock time module be equipped with the clock time module and from the timestamp information that receives, recover temporal information; The temporal information of selecting this plate to recover by the master clock time module is calibrated the real-time clock (RTC) of this plate then, and sends this firm and hard clock information to being equipped with the clock time module; By the real-time clock (RTC) information that is equipped with the transmission of clock time module selection master clock time module as a reference, calibrate the real-time clock (RTC) of this plate, and send this firm and hard clock information to the master clock time module; At last, the real-time clock (RTC) information of output master clock time module, thus realized the time main-apparatus protection.And, because in the disclosed technical scheme of the embodiment of the invention, the master clock time module is with self working state, system clock frequency, system's frame head and temporal information send to clock time module fully, be equipped with the clock time module and be real-time clock (RTC) information with the master clock time module and be reference when carrying out the calibration of this firm and hard clock, this can guarantee in the master clock time module and when being equipped with clock time module generation masterslave switchover, the saltus step of assurance time is less, realize masterslave switchover comparatively stably, thereby the reliability of the temporal information provided is provided, satisfies in the network miscellaneous service the requirement of temporal information.
Description of drawings
Fig. 1 is the principle schematic of existing clock active/standby protective device;
Fig. 2 is a schematic flow sheet of realizing the method for time main-apparatus protection in the embodiment of the invention;
Fig. 3 switches schematic flow sheet for the mode of operation of master clock time module in the embodiment of the invention;
Fig. 4 switches schematic flow sheet for the mode of operation that is equipped with the clock time module in the embodiment of the invention;
Fig. 5 is the composition structural representation of time master-slave protection device in the embodiment of the invention one;
Fig. 6 is the composition structural representation of clock time module in the time master-slave protection device of the embodiment of the invention one;
Fig. 7 is the composition structural representation of time master-slave protection device in the embodiment of the invention two;
Fig. 8 is the composition structural representation of clock time module in the time master-slave protection device of the embodiment of the invention two.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
Fig. 2 is a schematic flow sheet of realizing the method for time main-apparatus protection in the embodiment of the invention.Referring to Fig. 2, this method comprises:
Step 201: master clock time module and be equipped with clock time module time of reception and stab information recovers temporal information respectively from the timestamp information that is received;
Step 202: the temporal information that the master clock time module selects this plate to recover is calibrated the real-time clock (RTC) of this plate, and to the firm and hard clock information of basis that is equipped with after the clock time module sends calibration;
Step 203: the real-time clock (RTC) information of clock time module selection master clock time module transmission is calibrated the real-time clock (RTC) of this plate as a reference fully.
So far, finish the method flow that present embodiment is realized the time main-apparatus protection.Can be with the real-time clock (RTC) output of master clock time module.
In above-mentioned steps 203, be equipped with the clock time module and also can send this firm and hard clock information to the master clock time module.
Because can not only recover temporal information according to timestamp information can also recover system clock frequency, therefore, in above-mentioned steps 201, master clock time module and be equipped with the clock time module and can further from described timestamp information, recover system clock frequency respectively, and send to plate.In this case, when the real-time clock (RTC) information of step 204 output master clock time module, the system clock frequency that the master clock time module recovers will be exported further.
Certainly; consider compatibility with existing clock active/standby protection scheme; also can adopt mode recovery system clock frequency same as the prior art; that is: master clock time module and be equipped with the clock time module except that time of reception stamp information; also further receive clock reference source; follow the tracks of the timing reference input that is received respectively and recover system clock frequency, and send to plate.In this case, when the real-time clock (RTC) information of step 204 output master clock time module, also will further export the system clock frequency that the master clock time module recovers.
In the said method, master clock time module and to be equipped with the timestamp information that the clock time module received can be same timestamp information also can be that different time stabs information.This be because: be used for information recovery time if time of reception stabs information spinner, and according to above-mentioned steps 203, be equipped with real-time clock (RTC) information that the clock time module will send with the master clock time module as a reference, calibrate the real-time clock (RTC) of this plate, like this, just can guarantee the not saltus step of time of origin when masterslave switchover takes place, thereby realize purpose of the present invention.Similarly, master clock time module and to be equipped with the reference clock source that the clock time module received can be same road reference clock source also can be different reference clock source.
In the said method, described real-time clock (RTC) information comprises: temporal information and system's frame head.
Step 202 and step 203 relate to the master clock time module and are equipped with the clock time module how to carry out the calibration and the output of this firm and hard clock.Because, the calibration of real-time clock (RTC) is comprised two aspects: be time on the one hand according to system's frame head and temporal information calibration real-time clock (RTC); Be the calibration system clock frequency on the other hand, and the system clock frequency after will calibrating is as the operation clock of real-time clock (RTC); Therefore, corresponding, the described calibration of step 202 and step 203 will be referred to temporal information, system clock frequency and three aspects of system's frame head.
For the master clock time module, when the mode of operation of determining this plate is holotype, the real-time clock (RTC) of described this plate of calibration comprises: the system clock frequency of directly selecting this plate and being recovered is as system clock frequency and the operation clock that moves this firm and hard clock, directly obtain system's frame head, the time of the local real-time clock (RTC) of the temporal information of directly selecting this plate and being recovered by this plate system clock frequency.
For being equipped with the clock time module, when the mode of operation of determining this plate when being equipped with pattern, can adopt multiple mode to carry out the calibration of local real-time clock (RTC), below lifting four kinds of modes is example:
First kind of mode:
Directly select system clock frequency that plate recovered as system clock frequency and the operation clock that moves this firm and hard clock, directly select system's frame head that plate produced as system's frame head, according to the time that system's frame head that plate sent and temporal information are calibrated this firm and hard clock.
Under this mode, in the master clock time module be equipped with when the switching of active and standby pattern taken place between the clock time module, the clock time module that is equipped with before switching can be according to system clock frequency and system's frame head of the master clock time module before switching, this plate system clock frequency and system's frame head are carried out the phase place adjustment, with after guaranteeing to switch, master clock time module and the system clock frequency, the system's frame head that are equipped with the clock time module can realize that phase place takes over seamlessly, and guarantee that the saltus step of the temporal information exported is less.In subsequent descriptions process of the present invention, when relating to the phase place adjustment, can adopt multiple phase place adjustment technology, as: digital phase-locked loop, analog phase-locked look etc.
This mode not only generally is applicable to various application scenarioss, also be applicable to following special screne: the master clock time module sends to clock time module fully with system clock frequency, and slave board does not carry out the operation according to timestamp information or reference clock source recovery system clock frequency.
The second way:
With as a reference, calibrate this plate system clock frequency, with the operation clock of the system clock frequency after the calibration as this firm and hard clock to system clock frequency that plate was recovered; With as a reference, calibrate this plate system frame head to system's frame head that plate was produced; According to the time that system's frame head that plate sent and temporal information are calibrated this firm and hard clock.
The third mode:
This buttress obtains this plate system clock frequency according to system's frame head that plate is sent, with the operation clock of this system clock frequency as this firm and hard clock, directly select system's frame head that plate produced as system's frame head, according to the time that system's frame head that plate sent and temporal information are calibrated this firm and hard clock.
This mode is at following situation: the master clock time module does not send to system clock frequency clock time module fully, be equipped with the clock time module and only the system-frame hair is given, and slave board does not carry out the operation according to timestamp information or reference clock source recovery system clock frequency.
Under above-mentioned three kinds of modes, be equipped with the clock time module and be according to the concrete grammar of the time that system's frame head that plate sent and temporal information are calibrated this firm and hard clock:
Receiving system frame head and temporal information (being designated as t); Judge whether system's frame head is from surpassing the time that sets in advance to plate to delivery time (being designated as Tfl) of this plate; Usually, this time that sets in advance inverse that to be system clock frequency;
If surpass the time that sets in advance, then when receiving next system frame head, with the time of this firm and hard clock of the generation period T fp sum set of described delivery time Tfl, described temporal information t and described system frame head, that is: with time of this firm and hard clock of (t+Tfp+Tfl) set;
If be no more than the time that sets in advance, then when receiving next system frame head, with the time of this firm and hard clock of generation period T fp sum set of described temporal information t and described system frame head, that is: with time of this firm and hard clock of (t+Tfp) set.
When the clock time module breaks down, when causing working state abnormal, may need to carry out masterslave switchover.The mode of operation that Fig. 3 and Fig. 4 show master clock time module in the embodiment of the invention respectively and be equipped with the clock time module is switched schematic flow sheet.Total principle is:
When this plate is holotype, as long as to the plate working state abnormal, masterslave switchover will take place never;
When this plate is when being equipped with pattern, as long as masterslave switchover will take place this plate working state abnormal never.
Referring to Fig. 3, the mode of operation of master clock time module is switched flow process and be may further comprise the steps:
Step 301: this plate mode of operation is a holotype, and this firm and hard clock is directly followed the tracks of system clock frequency and the temporal information that this plate recovers.
Step 302: judge whether this plate operating state is normal,, continue execution in step 301 if normal, otherwise, continue execution in step 303.
Step 303: judge whether normally,, continue execution in step 304 if normal to the plate operating state, otherwise, continue execution in step 301.
Step 304: mode of operation is switched to being equipped with pattern, and local real-time clock (RTC) switches to system clock frequency, system's frame head and the temporal information that tracking sends over plate.
Referring to Fig. 4, the mode of operation that is equipped with the clock time module is switched flow process and be may further comprise the steps:
Step 401: this plate mode of operation is for being equipped with pattern, system clock frequency, system's frame head and temporal information that this firm and hard clock tracing sends over plate.
Step 402: judge whether normally,, continue execution in step 401 if normal to the plate operating state, otherwise, continue execution in step 403.
Step 403: judge whether this plate operating state is normal,, continue execution in step 404 if normal, otherwise, continue execution in step 401.
Step 404: mode of operation is switched and is holotype, and this firm and hard clock switches to system clock frequency and the temporal information that direct this plate of tracking recovers.
By as seen above-mentioned, the technical scheme of the realization time main-apparatus protection that the embodiment of the invention provided, by two mutually redundant clock time modules are set, by the master clock time module be equipped with the clock time module and from the timestamp information that receives, recover temporal information; The temporal information of selecting this plate to recover by the master clock time module is calibrated the real-time clock (RTC) of this plate then, and sends this firm and hard clock information to being equipped with the clock time module; By the real-time clock (RTC) information that is equipped with the transmission of clock time module selection master clock time module as a reference, calibrate the real-time clock (RTC) of this plate; At last, export the real-time clock (RTC) information of master clock time module, thereby reach the purpose of time main-apparatus protection.And, because in the disclosed technical scheme of the embodiment of the invention, be equipped with the clock time module and be real-time clock (RTC) information with the master clock time module and be reference when carrying out the calibration of this firm and hard clock, this can guarantee in the master clock time module and when being equipped with clock time module generation masterslave switchover, the saltus step of assurance time is less, realize masterslave switchover comparatively stably, thereby the reliability of the temporal information that is provided is provided, satisfy in the network miscellaneous service the requirement of temporal information.
Corresponding to the method for above-mentioned realization main-apparatus protection, corresponding time master-slave protection device is provided in the embodiment of the invention, be elaborated by two embodiment below in conjunction with accompanying drawing.
Embodiment one:
In the present embodiment, master clock time module and be equipped with clock time module time of reception and stab information, from the timestamp information that is received recovery time information and system clock frequency, and output system clock frequency, system's frame head and temporal information.
Fig. 5 is the composition structural representation of time master-slave protection device in the embodiment of the invention one.Referring to Fig. 5, this time master-slave protection device comprises:
Master clock time module 510 is used for time of reception and stabs information, recovers temporal information from described timestamp information, and the temporal information that is used to select this plate to recover calibrates the real-time clock (RTC) of this plate, sends these firm and hard clock informations to being equipped with clock time module 520;
Be equipped with clock time module 520, be used for time of reception and stab information, from described timestamp information, recover temporal information, and be used to select real-time clock (RTC) information that master clock time module 510 sends as a reference, calibrate the real-time clock (RTC) of this plate;
Logic module 530 is used for the real-time clock (RTC) information output with master clock time module 510.Here, same as the prior art, logic module 530 will receive real-time clock (RTC) information that comes from master clock time module 510 and the real-time clock (RTC) information that is equipped with clock time module 520, and select the real-time clock (RTC) information output of master clock time module 510 according to index signal.
Master clock time module shown in Figure 5 and be equipped with the clock time module also is used for recovering system clock frequency from the timestamp information that is received, and produces system's frame head according to described system clock frequency;
Described master clock time module 510 also is used for giving clock time module 520 fully with described system clock frequency that recovers and system-frame hair;
The described clock time module 520 that is equipped with also is used for the system clock frequency that recovers with master clock time module 510 and system's frame head as a reference, calibrates this plate system clock frequency and system's frame head;
Described logic module 530 also is used for the system clock frequency output that master clock time module 510 is recovered.
In clock active/standby protective device shown in Figure 5, master clock time module and be equipped with can be mutually to the operating state that plate is sent this plate, system clock frequency, system's frame head and temporal information between the clock time module.As previously mentioned, the master clock time module also can not send to system clock frequency clock time module fully, and at this moment, being equipped with the clock time module can obtain system clock frequency according to system's frame head that the master clock time module is sent.
Among Fig. 5; master clock time module 510 and the main and standby relation that is equipped with between the clock time module 520 are not changeless; why between the clock time module titled with attribute " master " and " being equipped with "; be operation principle needs for the description time master-slave protection device; in fact, master clock time module 510 is identical with the inside composition structure that is equipped with clock time module 520.Other parts of this specification related to master clock time module and the differentiation that is equipped with the clock time module, also be clearly to need, and the mode of operation of non-limiting certain clock time module must be holotype or be equipped with pattern for describing.
Fig. 6 is the composition structural representation of clock time module in the time master-slave protection device of the embodiment of the invention one, and structural representation is formed in master clock time module 510 just shown in Figure 5 and the inside that is equipped with clock time module 520.Referring to Fig. 6, this clock time module comprises:
Clock time recovers module 610, be used for time of reception and stab information, from described timestamp information, recover temporal information and system clock frequency, the operating state of temporal information, system clock frequency and this plate of recovering is sent to the selection module 620 of this plate, the system clock frequency that recovers and the operating state of this plate are sent to plate;
Select module 620, be used for according to this plate with to the operating state of plate, the system clock frequency of selection master clock time module as a reference, calibrate this plate system clock frequency, and the system clock frequency after the described calibration is sent to the real-time clock (RTC) module 630 of this plate, and be used for according to this plate with to the operating state of plate, select the temporal information of master clock time module to send to the real-time clock (RTC) module 630 of this plate;
Real-time clock (RTC) module 630 is used for, and to select temporal information that module 620 sends as a reference, calibrates the time of this firm and hard clock; To select system clock frequency that module 620 sends as a reference, calibrate this plate system clock frequency, and move the real-time clock (RTC) of this plate, to the real-time clock (RTC) information that plate is sent this plate with this plate system clock frequency after the described calibration.
Wherein, select further can comprise as lower unit in the module 620:
Mode selecting unit 621, according to this plate operating state with to what plate sent the plate operating state is determined mainboard, and transmit control signal 623 to phasing unit 622 and temporal information selected cell, described control signal is used for system clock frequency that control phase adjustment unit 622 selects the master clock time module as a reference, and control time information selecting section 623 selects the temporal information of master clock time module to send to this firm and hard clock module;
Phasing unit 622, be used for selecting corresponding system clock frequency as a reference, this plate system clock frequency is carried out the phase place adjustment according to the control signal that comes from mode selecting unit, and adjusted plate system clock frequency of phase place sent to this firm and hard clock module 630, and output;
Temporal information selected cell 623 is used for selecting corresponding temporal information to send to real-time clock (RTC) module 630 according to the control signal that comes from mode selecting unit.
For being in the clock time module of pattern fully, may further include in the real-time clock (RTC) module 630 shown in Figure 6:
Receiving element 631 is used for receiving system frame head and temporal information;
Judging unit 632 is used to judge that system's frame head is from whether plate is surpassed the time that sets in advance to delivery time of this plate, with described delivery time and judged result notice unit time calibration 633;
Time calibration, the unit 633, be used for notice according to judging unit 632, if judged result is for being, then when receiving next system frame head, with the time of this firm and hard clock of generation cycle sum set of described delivery time, described temporal information and described system frame head; If judged result is not for, then when receiving next system frame head, with the time of generation cycle sum set firm and hard clock of described temporal information and described system frame head.
Embodiment two:
In the present embodiment, master clock time module and be equipped with clock time module time of reception and stab information and timing reference input, from timestamp information recovery time information, recovery system clock frequency from timing reference input, and output system clock frequency, system's frame head and temporal information.
Fig. 7 is the composition structural representation of time master-slave protection device in the embodiment of the invention two.Referring to Fig. 7, this time master-slave protection device comprises:
Master clock time module 710 is used for time of reception and stabs information and timing reference input, recovers temporal information from described timestamp information, follows the tracks of described timing reference input and recovers system clock frequency, produces system's frame head; And the real-time clock (RTC) that is used to select temporal information that this plate recovers and system clock frequency to calibrate this plate, send these firm and hard clock information and system clock frequencys to being equipped with clock time module 720;
Be equipped with clock time module 720, be used for time of reception and stab information and timing reference input, from described timestamp information, recover temporal information, follow the tracks of described timing reference input recovery system clock frequency, and be used to select real-time clock (RTC) information that master clock time module 720 sends as a reference, calibrate the real-time clock (RTC) information of this plate, send this firm and hard clock information to master clock time module 720, the system clock frequency that selection master clock time module 720 sends is calibrated the system clock frequency of this plate as a reference;
Logic module 730 is used for real-time clock (RTC) information and system clock frequency output with master clock time module 720.
In clock active/standby protective device shown in Figure 7, master clock time module and be equipped with will be mutually to the operating state that plate is sent this plate, system clock frequency, system's frame head and temporal information between the clock time module.As previously mentioned, the master clock time module also can not send to system clock frequency clock time module fully, and at this moment, being equipped with the clock time module can obtain system clock frequency according to system's frame head that the master clock time module is sent.
Fig. 8 is the composition structural representation of clock time module in the time master-slave protection device of the embodiment of the invention two, and structural representation is formed in master clock time module 710 just shown in Figure 7 and the inside that is equipped with clock time module 720.Referring to Fig. 8, this clock time module comprises
Time is recovered module 810, is used for time of reception and stabs information, recovers temporal information from described timestamp information, and the temporal information that recovers is sent to the selection module 830 of this plate, the operating state of this plate is sent to the selection module 830 of this plate and to plate;
Clock tracing module 820 is used for the receive clock reference source, follows the tracks of described timing reference input and recovers system clock frequency, and the system clock frequency that recovers is sent to selection module 830 to plate and this plate;
Select module 830, be used for according to this plate with to the operating state of plate, the system clock frequency of selection master clock time module as a reference, calibrate this plate system clock frequency, and the system clock frequency after the described calibration is sent to the real-time clock (RTC) module 830 of this plate, and be used for according to this plate with to the operating state of plate, select the temporal information of master clock time module to send to the real-time clock (RTC) module 830 of this plate;
Real-time clock (RTC) module 840 is used for according to this plate with to the operating state of plate, with the real-time clock (RTC) information of master clock time module as a reference, calibrates the time of this firm and hard clock; The system clock frequency that recovers with the master clock time module is calibrated this plate system clock frequency as a reference, and moves the real-time clock (RTC) of this plate with this plate system clock frequency after the described calibration, to the real-time clock (RTC) information that plate is sent this plate.
Can comprise mode selecting unit 621, phasing unit 622 and the temporal information selected cell 623 selected as shown in Figure 6 in the module 620 in the selection module 830 shown in Figure 8, function that described each unit is finished and corresponding units shown in Figure 6 are identical, do not repeat them here.
For being in the clock time module of pattern fully, also can comprise in the real-time clock (RTC) module 840 shown in Figure 8 receiving element 631 in the real-time clock (RTC) module 630 as shown in Figure 6, judging unit 632 and time calibration unit 633, function that described each unit is finished and corresponding units shown in Figure 6 are identical, do not repeat them here.
The time master-slave protection device that the embodiment of the invention provided is by being provided with two mutually redundant clock time modules, by the master clock time module be equipped with the clock time module recover temporal information from the timestamp information that receives; The temporal information of selecting this plate to recover by the master clock time module is calibrated the real-time clock (RTC) of this plate then, and sends this firm and hard clock information to being equipped with the clock time module; By the real-time clock (RTC) information that is equipped with the transmission of clock time module selection master clock time module as a reference, calibrate the real-time clock (RTC) of this plate, and send this firm and hard clock information to the master clock time module; At last, the real-time clock (RTC) information of output master clock time module, thus realized the time main-apparatus protection.And, because in the disclosed technical scheme of the embodiment of the invention, master clock time module and be equipped with the operating state that will send mutually between the clock time module each other, system clock frequency, system's frame head and temporal information, be equipped with the clock time module and be real-time clock (RTC) information with the master clock time module and be reference when carrying out the calibration of this firm and hard clock, this can guarantee in the master clock time module and when being equipped with clock time module generation masterslave switchover, the saltus step of assurance time is less, realize masterslave switchover comparatively stably, thereby the reliability of the temporal information provided is provided, satisfies in the network miscellaneous service the requirement of temporal information.
One of ordinary skill in the art will appreciate that when realizing the foregoing description method and can finish by the relevant hardware of program command that described program can be stored in the read/write memory medium, this program is carried out the corresponding step in the said method when carrying out.Described storage medium can be as ROM/RAM, magnetic disc, CD etc.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.All any modifications of being done within the spirit and principles in the present invention, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1, a kind of method that realizes the time main-apparatus protection is characterized in that, comprising:
Master clock time module and be equipped with clock time module time of reception and stab information, and from the timestamp information that is received, recover temporal information respectively;
The temporal information that the master clock time module selects this plate to recover is calibrated the real-time clock (RTC) of this plate, and to the firm and hard clock information of basis that is equipped with after the clock time module sends calibration;
The real-time clock (RTC) information of clock time module selection master clock time module transmission is calibrated the real-time clock (RTC) of this plate as a reference fully.
2, method according to claim 1 is characterized in that, described method further comprises:
Master clock time module and be equipped with the clock time module and from the timestamp information that is received, recover system clock frequency respectively, and produce system's frame head according to described system clock frequency; The master clock time module is given clock time module fully with described system clock frequency that recovers and system-frame hair; Be equipped with system clock frequency that the clock time module recovers with the master clock time module and system's frame head as a reference, calibrate this plate system clock frequency and system's frame head.
3, method according to claim 1 is characterized in that, described method further comprises:
Master clock time module and be equipped with clock time module receive clock reference source is followed the tracks of the timing reference input that is received respectively and is recovered system clock frequency, and produces system's frame head according to described system clock frequency; The master clock time module is given clock time module fully with described system clock frequency that recovers and system-frame hair; Be equipped with system clock frequency that the clock time module recovers with the master clock time module and system's frame head as a reference, calibrate this plate system clock frequency and system's frame head.
According to claim 2 or 3 described methods, it is characterized in that 4, the real-time clock (RTC) that described master clock time module is calibrated this plate comprises: the time that the temporal information that recovers with this plate is calibrated this firm and hard clock; The system clock frequency that recovers with this plate moves the real-time clock (RTC) of this plate;
The described real-time clock (RTC) that is equipped with this plate of clock time modular calibration comprises: send real-time clock (RTC) information as a reference with the master clock time module, calibrate the time of this firm and hard clock; The system clock frequency that recovers with the master clock time module is calibrated this plate system clock frequency, and is moved the real-time clock (RTC) of this plate with this plate system clock frequency after the described calibration as a reference.
5, method according to claim 4 is characterized in that, described master clock time module comprises to the firm and hard clock information of basis that is equipped with the transmission of clock time module: system's frame head and temporal information;
Describedly send real-time clock (RTC) information as a reference with the master clock time module, the time of calibrating this firm and hard clock comprises:
Receiving system frame head and temporal information; Judge whether system's frame head is from surpassing the time that sets in advance to plate to delivery time of this plate, if surpass, then when receiving next system frame head, with the time of this firm and hard clock of generation cycle sum set of described delivery time, described temporal information and described system frame head; If be no more than, then when receiving next system frame head, with the time of this firm and hard clock of generation cycle sum set of described temporal information and described system frame head.
6, method according to claim 4 is characterized in that, the described system clock frequency that recovers with the master clock time module and system's frame head are calibrated this plate system clock frequency and system's frame head comprises as a reference:
Directly the system clock frequency that the master clock time module is recovered and system's frame head are as system clock frequency and system's frame head of this plate;
Or system clock frequency and system's frame head according to the master clock time module recovers carry out the phase place adjustment to this plate system clock frequency and system's frame head;
Or, directly with system's frame head of master clock time module system's frame head, obtain this plate system clock frequency according to system's frame head of master clock time module as this plate.
7, method according to claim 6, it is characterized in that, for the system clock frequency that directly the master clock time module is recovered and system's frame head system clock frequency and system's frame head as this plate, when described master clock time module be equipped with when the switching of active and standby pattern taken place between the clock time module, the clock time module basis that is equipped with before switching is switched system clock frequency and system's frame head of master clock time module before, and this plate system clock frequency and system's frame head are carried out the phase place adjustment.
8, a kind of time master-slave protection device is characterized in that, comprising:
The master clock time module is used for time of reception and stabs information, recovers temporal information from described timestamp information, and the temporal information that is used to select this plate to recover calibrates the real-time clock (RTC) of this plate, sends this firm and hard clock information to being equipped with the clock time module;
Be equipped with the clock time module, be used for time of reception and stab information, from described timestamp information, recover temporal information, and be used to select real-time clock (RTC) information that the master clock time module sends as a reference, calibrate the real-time clock (RTC) of this plate;
Logic module is used for the real-time clock (RTC) information output with the master clock time module.
9, clock active/standby protective device according to claim 8, it is characterized in that, described master clock time module and be equipped with the clock time module also is used for recovering system clock frequency from the timestamp information that is received, and produces system's frame head according to described system clock frequency;
Described master clock time module also is used for giving clock time module fully with described system clock frequency that recovers and system-frame hair;
The described clock time module that is equipped with also is used for the system clock frequency that recovers with the master clock time module and system's frame head as a reference, calibrates this plate system clock frequency and system's frame head;
Described logic module also is used for the system clock frequency output that the master clock time module is recovered.
10, clock active/standby protective device according to claim 8, it is characterized in that, described master clock time module and be equipped with the clock time module, also be used for the receive clock reference source, follow the tracks of the timing reference input that is received respectively and recover system clock frequency, and produce system's frame head according to described system clock frequency;
Described master clock time module also is used for giving clock time module fully with described system clock frequency that recovers and system-frame hair;
The described clock time module that is equipped with also is used for the system clock frequency that recovers with the master clock time module and system's frame head as a reference, calibrates this plate system clock frequency and system's frame head;
Described logic module also is used for the system clock frequency output that the master clock time module is recovered.
11, clock active/standby protective device according to claim 9 is characterized in that, described master clock time module comprises with being equipped with in the clock time module:
Clock time recovers module, be used for time of reception and stab information, from described timestamp information, recover temporal information and system clock frequency, the operating state of temporal information, system clock frequency and this plate of recovering is sent to the selection module of this plate, the system clock frequency that recovers and the operating state of this plate are sent to plate;
Select module, be used for according to this plate with to the operating state of plate, the system clock frequency of selection master clock time module as a reference, calibrate this plate system clock frequency, and the system clock frequency after the described calibration is sent to the real-time clock (RTC) module of this plate, and be used for according to this plate with to the operating state of plate, select the temporal information of master clock time module to send to the real-time clock (RTC) module of this plate;
The real-time clock (RTC) module is used for calibrating the time of this firm and hard clock to select temporal information that module sends as a reference; To select system clock frequency that module sends as a reference, calibrate this plate system clock frequency, and move the real-time clock (RTC) of this plate, to the real-time clock (RTC) information that plate is sent this plate with this plate system clock frequency after the described calibration.
12, clock active/standby protective device according to claim 10 is characterized in that, described master clock time module comprises with being equipped with in the clock time module:
Time is recovered module, is used for time of reception and stabs information, recovers temporal information from described timestamp information, and the temporal information that recovers is sent to the selection module of this plate, the operating state of this plate is sent to the selection module of this plate and to plate;
The clock tracing module is used for the receive clock reference source, follows the tracks of described timing reference input and recovers system clock frequency, and the system clock frequency that recovers is sent to selection module to plate and this plate;
Select module, be used for according to this plate with to the operating state of plate, the system clock frequency of selection master clock time module as a reference, calibrate this plate system clock frequency, and the system clock frequency after the described calibration is sent to the real-time clock (RTC) module of this plate, and be used for according to this plate with to the operating state of plate, select the temporal information of master clock time module to send to the real-time clock (RTC) module of this plate;
The real-time clock (RTC) module is used for calibrating the time of this firm and hard clock to select temporal information that module sends as a reference; To select system clock frequency that module sends as a reference, calibrate this plate system clock frequency, and move the real-time clock (RTC) of this plate, to the real-time clock (RTC) information that plate is sent this plate with this plate system clock frequency after the described calibration.
13, according to claim 11 or 12 described clock active/standby protective devices, it is characterized in that, comprise in the described selection module:
Mode selecting unit, according to this plate operating state with to what plate sent the plate operating state is determined mainboard, and transmit control signal to phasing unit and temporal information selected cell, described control signal is used for system clock frequency that the control phase adjustment unit selects the master clock time module as a reference, and the control time information selecting section selects the temporal information of master clock time module to send to this firm and hard clock module;
Phasing unit, be used for selecting corresponding system clock frequency as a reference, this plate system clock frequency is carried out the phase place adjustment according to the control signal that comes from mode selecting unit, and adjusted plate system clock frequency of phase place sent to this firm and hard clock module, and output;
The temporal information selected cell is used for selecting corresponding temporal information to send to the real-time clock (RTC) module according to the control signal that comes from mode selecting unit.
According to claim 11 or 12 described clock active/standby protective devices, it is characterized in that 14, the described real-time clock (RTC) module that is equipped with in the clock time module comprises:
Receiving element is used for receiving system frame head and temporal information;
Judging unit is used to judge that system's frame head is from whether plate is surpassed the time that sets in advance to delivery time of this plate, with described delivery time and judged result notice unit time calibration;
Time calibration, the unit was used for the notice according to judging unit, if judged result is for being, then when receiving next system frame head, with the time of this firm and hard clock of generation cycle sum set of described delivery time, described temporal information and described system frame head; If judged result is not for, then when receiving next system frame head, with the time of generation cycle sum set firm and hard clock of described temporal information and described system frame head.
CN2007103021160A 2007-12-14 2007-12-14 Method for implementing time master-slave protection and time master-slave protection device Active CN101459500B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2007103021160A CN101459500B (en) 2007-12-14 2007-12-14 Method for implementing time master-slave protection and time master-slave protection device
PCT/CN2008/073465 WO2009082909A1 (en) 2007-12-14 2008-12-11 Method for realizing time master-standby protection and time master-standby protection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007103021160A CN101459500B (en) 2007-12-14 2007-12-14 Method for implementing time master-slave protection and time master-slave protection device

Publications (2)

Publication Number Publication Date
CN101459500A true CN101459500A (en) 2009-06-17
CN101459500B CN101459500B (en) 2011-11-16

Family

ID=40770146

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007103021160A Active CN101459500B (en) 2007-12-14 2007-12-14 Method for implementing time master-slave protection and time master-slave protection device

Country Status (2)

Country Link
CN (1) CN101459500B (en)
WO (1) WO2009082909A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001759A (en) * 2012-11-23 2013-03-27 北京东土科技股份有限公司 Time synchronization method, system and device based on network
CN104062896A (en) * 2014-06-24 2014-09-24 北京航天自动控制研究所 Synchronization signal periodic control redundancy realization method
CN103095446B (en) * 2011-10-28 2015-09-02 上海贝尔股份有限公司 The changing method of multi-mode clock and corresponding multi-mode clock

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114220380B (en) * 2022-02-22 2022-06-10 深圳通锐微电子技术有限公司 Calibration digital circuit, source driver and display panel

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040008973A1 (en) * 2002-07-12 2004-01-15 Marshall Robert Alexander Method and system for synchronizing operation of remote timer with centeral control control unit
CN100438361C (en) * 2003-08-01 2008-11-26 华为技术有限公司 Method for controlling master spare clock phase for synchronous digital system equipment
CN100395961C (en) * 2003-08-27 2008-06-18 华为技术有限公司 Phase alignment method for master and stand-by clocks
US7835366B2 (en) * 2005-11-01 2010-11-16 Ciena Corporation Three-way message exchange clock synchronization

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095446B (en) * 2011-10-28 2015-09-02 上海贝尔股份有限公司 The changing method of multi-mode clock and corresponding multi-mode clock
CN103001759A (en) * 2012-11-23 2013-03-27 北京东土科技股份有限公司 Time synchronization method, system and device based on network
CN103001759B (en) * 2012-11-23 2015-09-02 北京东土科技股份有限公司 A kind of network method for synchronizing time, system and device
CN104062896A (en) * 2014-06-24 2014-09-24 北京航天自动控制研究所 Synchronization signal periodic control redundancy realization method

Also Published As

Publication number Publication date
CN101459500B (en) 2011-11-16
WO2009082909A1 (en) 2009-07-09

Similar Documents

Publication Publication Date Title
CN101667906B (en) Method and system for switching main and backup clocks
CN101459500B (en) Method for implementing time master-slave protection and time master-slave protection device
CN100571114C (en) A kind of synchronised clock providing device and implementation method
CN101043309B (en) Method and apparatus for controlling main-slave switching
US6707828B1 (en) Synchronization of a network element in a synchronous digital communications network
CN101621372B (en) Method for transmitting network asynchronous backplane active/standby changeover and device thereof
US6920603B2 (en) Path error monitoring method and apparatus thereof
CN100338967C (en) Method and apparatus for realizing clock redundancy back-up in WCDMA system base station
CN101621371B (en) Clock design method and clock device
CN103297216A (en) Method and device for enabling equipment to achieve synchronization
WO2001028144A1 (en) Synchronizing device and synchronizing system
US6754172B1 (en) Non-interruptive protection switching device and network system using the same
CN1151627C (en) Synchronous clock supply device
JPH11112389A (en) Switching system for line without hit and transmission device
CN101155056A (en) Method and system for improving output reliability of BITS equipment
CN101958762B (en) Main and standby clock switching device and method
KR100298349B1 (en) Apparatus and method for backup reference of base station in cellular system
CN101615965B (en) Method and device for switching master/backup clock
JP4679090B2 (en) Transmission end switching method and set spare terminal equipment
CN1302121A (en) Clock signal switching and selecting method in synchronous clock supply system and its device
CN100454803C (en) Fast burr-less clock inverting method and device thereof
JPH0338128A (en) Hitless switching method
JP2785755B2 (en) Hitless switching device
CN105790872A (en) Network clock synchronization device and working method of the network clock synchronization device
US7418036B2 (en) Method and circuit for timing pulse generation

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