CN102123046B - Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device - Google Patents

Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device Download PDF

Info

Publication number
CN102123046B
CN102123046B CN2011100232109A CN201110023210A CN102123046B CN 102123046 B CN102123046 B CN 102123046B CN 2011100232109 A CN2011100232109 A CN 2011100232109A CN 201110023210 A CN201110023210 A CN 201110023210A CN 102123046 B CN102123046 B CN 102123046B
Authority
CN
China
Prior art keywords
time
interface
cross trade
1pps
standby
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2011100232109A
Other languages
Chinese (zh)
Other versions
CN102123046A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN2011100232109A priority Critical patent/CN102123046B/en
Publication of CN102123046A publication Critical patent/CN102123046A/en
Application granted granted Critical
Publication of CN102123046B publication Critical patent/CN102123046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a packet transport network (PTN) device and a method for realizing time synchronization protection switching (PS) by using a main cross disk and a spare cross disk of the PTN device. The PTN device comprises the main cross disk and the spare cross disk, wherein the main cross disk and the standby cross disk respectively comprise a 1 pulse per second (pps) + time of day (TOD) interface and a time synchronization processing module, wherein each 1pps + TOD interface accesses to the panels of the main cross disk and the standby cross disk respectively, and the redundanciesof the interfaces are utilized to provide interface protection; and the time synchronization processing modules are embedded in the main cross disk and the standby cross disk, and a PS function between the main cross disk and the standby cross disk is utilized to provide the hot backups for the time synchronization processing modules. The method can be realized on the cross disks so as to providethe hot backups for the 1pps + TOD interfaces and the time synchronization processing modules; the method is used to realize the effective protection by using an out of band (OOB) synchronized mode and an inband synchronized mode; and a time source is switched stably, the input output time jitter is low, and the related requirements in the industry are met.

Description

PTN equipment and active and standby Cross Trade thereof realize the method that the time synchronized protection is switched
Technical field
The present invention relates to the exact time synchronization technical field that PTN (Packet Transport Network, Packet Transport Network) transmits net, particularly relate to the method that a kind of PTN equipment and active and standby Cross Trade thereof realize that the time synchronized protection is switched.
Background technology
TD-SCDMA (Time Division-Synchronous Code Division MultipleAccess, TD SDMA) wireless system is an exact time synchronization system, for satisfying related synchronization function and the interface requirement of TD-SCDMA system equipment, in the industry planning implementation via satellite, the measure of multiple time synchronized transmission such as ground carries out synchronously the TD-SCDMA base station, to guarantee stable, the work reliably of whole net.
Synchronous for ground elapsed time, can transmit net by PTN at present and realize with the Ethernet bag interactive mode of supporting IEEE 1588v2 agreement.This time synchronized transmittance process that transmits the net realization by PTN roughly can be divided into three phases.
Wherein, the phase I be time synchronism equipment to the PTN transfer equipment synchronously, the PTN transfer equipment is by 1pps+TOD (1pps-1Pulse per Second, i.e. pulse per second (PPS); TOD-Time of Day, i.e. Time of Day) time interface with external time synchronizer be connected, and receive 1pps signal and TOD information from time synchronism equipment, finish the local zone time calibration.
Second stage is that PTN transmits the inner time synchronized of net, by the transmission node of finishing local zone time calibration as MASTER (clock equipment), initiate with 1588 Ethernet bags as the connected node of SLAVE (being equipped with clockwork) mutual, realization is to time synchronized and the transmission of SLAVE node, as the intermediate node of SLAVE after the deadline calibration, again with own as new MASTER, finish same bag reciprocal process with the next node that links to each other ... through synchronous and transmission step by step, finally finish the time synchronized in the whole transmission net like this.
Phase III for transmit the network edge node to the base station synchronously, this moment, transfer equipment was connected with the base station by the 1pps+TOD time interface, and exported 1pps signal and TOD information to the base station, realization is to the exact time synchronization of base station.
This three phases is summarized as two kinds of methods of synchronization again traditionally according to the synchronization principles difference, namely is with external sync mode and band internal synchronization mode.Wherein phase I and phase III belong to the band external sync mode, and this mode directly transmits precise time information by the 1pps+TOD time interface and realizes; Second stage belongs to the band internal synchronization mode, realizes alternately by 1588 Ethernet bags.
In actual applications, for fail safe and the reliability that improves the time synchronized function, must be protected each link of network transfer path.IEEE 1588v2 agreement has proposed a kind of BMC (Best Master Clock at present; best master clock) algorithm is realized the protection of network level; but the part as reliability design; the Hot Spare (Hot Backup) of device level need be provided for 1pps+TOD time interface and time synchronizing module; therefore; how being embodied as 1pps+TOD time interface and time synchronizing module provides the Hot Spare of device level, becomes the technical problem that this area needs to be resolved hurrily.
Summary of the invention
The objective of the invention is in order to overcome the deficiency of above-mentioned background technology; provide a kind of PTN equipment and active and standby Cross Trade thereof to realize the method that the time synchronized protection is switched; the present invention can concentrate in Cross Trade and realize; for 1pps+TOD time interface and time synchronizing module provide Hot Spare; outside being with and be with interior two kinds of methods of synchronization to realize effective protection; and the time source switching steadily, and the input and output time jitter is little, has reached related request in the industry.
PTN equipment provided by the invention, comprise the main crossings dish and be equipped with Cross Trade, described main crossings dish and be equipped with Cross Trade and respectively comprise a 1pps+TOD time interface and a time synchronizing module, each 1pps+TOD time interface is linked into the main crossings dish respectively and is equipped with on the panel of Cross Trade, utilizes the redundancy of interface that interface protection is provided; The time synchronizing module is embedded in the main crossings dish and is equipped with in the Cross Trade, by the main crossings dish be equipped with protection switch function between the Cross Trade, for the time synchronizing module provides Hot Spare.
The invention provides a kind of active and standby Cross Trade at above-mentioned PTN equipment and realize the method that the time synchronized protection is switched: for the band external sync mode, when the switching between the active and standby Cross Trade takes place, active and standby two 1pps+TOD time interface are kept former output earlier, be synchronized to higher level MASTER node up to new in running order Cross Trade, and finish local zone time and calibrate, just switch on the time source of described in running order Cross Trade newly, realize the smooth transition of external time output; For the band internal synchronization mode, when the switching between the active and standby Cross Trade takes place, system stops the bag reciprocal process of the SLAVE node that links to each other with all immediately, be synchronized to higher level MASTER node up to new in running order Cross Trade, and finish the local zone time calibration, just initiate the bag of SLAVE node mutual again; During this period, it is former free that the SLAVE node that links to each other with our station keeps, and continue downstream node is with inter-sync output.
In technique scheme, for the band external sync mode, when the 1pps+TOD time interface is operated in input mode, temporal information is sent to time synchronizing module in this Cross Trade and the antithesis Cross Trade simultaneously, adopt and select debit's formula to carry out redundancy protecting automatically; When the 1pps+TOD time interface is operated in the way of output, select the time synchronizing module of current in running order Cross Trade, as the output time source, with the temporal information of this Cross Trade time synchronizing module by concurrent mode, output on two 1pps+TOD time interface in this Cross Trade and the antithesis Cross Trade, and use asymmetric output compensation, the time of coming synchronous two 1pps+TOD time interface output.
The present invention has successfully realized the protection switch function to time synchronized on system equipment, system verification is the result prove:
(1) outside being with and be with interior two kinds of methods of synchronization to realize effective protection, and time source switches steadily, and the input and output time jitter is little, has reached related request in the industry;
(2) needn't design extra 1pps+TOD time interface terminal board, save valuable system space;
(3) the hardware input cost is low, can share FPGA and the master/slave switch circuit resource of Cross Trade;
(4) main control function realizes in the software state machine mode, the algorithm simple and clear, and the module operation is independent, is easy to transplant and safeguard.
Description of drawings
Fig. 1 is the functional block diagram of the active and standby Cross Trade of PTN equipment in the embodiment of the invention;
Fig. 2 is 1pps+TOD time interface when being operated in input mode, the method flow diagram of the embodiment of the invention;
Fig. 3 is 1pps+TOD time interface when being operated in the way of output, the method flow diagram of the embodiment of the invention.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
The embodiment of the invention provides a kind of PTN equipment, comprise the main crossings dish and be equipped with Cross Trade, described main crossings dish and be equipped with Cross Trade and respectively comprise a 1pps+TOD time interface and a time synchronizing module, each 1pps+TOD time interface is linked into the main crossings dish respectively and is equipped with on the panel of Cross Trade, utilizes the redundancy of interface that interface protection is provided; The time synchronizing module is embedded in the main crossings dish and is equipped with in the Cross Trade, by the main crossings dish be equipped with protection switch function between the Cross Trade, for the time synchronizing module provides Hot Spare.
The flow direction relation of functional module composition and the main signal of the active and standby Cross Trade of PTN equipment among the embodiment has been shown among Fig. 1, has mainly comprised with lower unit:
(1) system control unit: served as by CPU, Cross Trade is normal to be moved all control actions that relate to except finishing, and also wants the task (or process) that the management and dispatching band is interior, be with outer time synchronized; Finish the mutual process of 1588 Ethernet bags; Finish correlation computations, and local zone time is calibrated; Action between each functional module of coordination control etc.
(2) 1588 time synchronized unit: an embedded high accuracy clock oscillator, single-deck local zone time are exactly to produce by the counting to this clock oscillator; Support IEEE 1588 v2 agreements, by the calibration of packet switch realization to local zone time; Accept the control of CPU, local zone time can be read and local zone time is made amendment by the read-write operation to sheet inside counting module.
(3) 1pps delivery unit: select the 1pps signal source, and transmit processing, 1pps delivery unit and TOD store and forward unit are realized by FPGA, accept the control of CPU.FPGA does transparent transmission to the 1pps signal that comes self-dual dish 1588 time synchronized unit and handles, the 1pps signal that coils 1588 time synchronized unit from this is added delay circuit at its transfer path, carry out signal correction in conjunction with software output compensation method again, reach and both guarantee that the 1pps signal accurately exports, guarantee again no matter it still is the antithesis dish from this dish for 1pps signal from 1588 time synchronized unit output, be sent to the purpose that transmission time of 1pps+TOD interface all equates.
(4) TOD store and forward unit: when exporting to the 1pps+TOD interface, selection is from master or be equipped with the precise time information source of 1588 time synchronized unit of dish, extracting time information also is converted to TOD signal format, behind 1pps rising edge 1ms, begin output according to code requirement in the industry, in 500ms, passed; When importing from the 1pps+TOD interface, select the TOD signal source, extraction and temporary temporal information read for CPU.
(5) 1pps+TOD time interface: accept the control of CPU, 1pps and TOD signal are carried out I/O enable control and level conversion, adapt to and transmit requirement.
On the hardware foundation in the active and standby Cross Trade of above-mentioned PTN equipment, the embodiment of the invention provides a kind of method that realizes that the time synchronized protection is switched:
For the band external sync mode, when the switching between the active and standby Cross Trade takes place, active and standby two 1pps+TOD time interface are kept former output earlier, be synchronized to higher level MASTER node up to new in running order Cross Trade, and finish local zone time and calibrate, just switch on the time source of described in running order Cross Trade newly, realize the smooth transition of external time output; For the band internal synchronization mode, when the switching between the active and standby Cross Trade takes place, system stops the bag reciprocal process of the SLAVE node that links to each other with all immediately, be synchronized to higher level MASTER node up to new in running order Cross Trade, and finish the local zone time calibration, just initiate the bag of SLAVE node mutual again; During this period, it is former free that the SLAVE node that links to each other with our station keeps, and continue downstream node is with inter-sync output.
For the band external sync mode, when the 1pps+TOD time interface is operated in input mode, temporal information is sent to time synchronizing module in this Cross Trade and the antithesis Cross Trade simultaneously, adopt and select debit's formula to carry out redundancy protecting automatically; When the 1pps+TOD time interface is operated in the way of output, select the time synchronizing module of current in running order Cross Trade, as the output time source, with the temporal information of this Cross Trade time synchronizing module by concurrent mode, output on two 1pps+TOD time interface in this Cross Trade and the antithesis Cross Trade, and use asymmetric output compensation, the time of coming synchronous two 1pps+TOD time interface output.
Carry out the course of work that flow process specifies system according to the CPU main program below.
Referring to shown in Figure 2, the 1pps+TOD time interface is operated in input mode, and task begins:
Step 101: judge that whether current external time source is from main interface, if then forward step 102 to, otherwise forward step 103 to;
Step 102: detect the alarm status of active and standby interface, alarm is arranged and be equipped with interface with nowhere to turn to the police if detect main interface, then forward step 104 to, otherwise forward step 111 to;
Step 103: detect the alarm status of active and standby interface, main interface then forwards step 105 to, otherwise forwards step 106 to nowhere to turn to the police if detect fully that interface has alarm;
Step 104: immediately the inside connection is switched to interface fully, the standby time source is received in choosing, forwards step 111 to;
Step 105: immediately the inside connection is switched to main interface, choosing is received the master and is used time source, forwards step 111 to;
Step 106: detect the alarm status of active and standby interface, if detect active and standby interface all with nowhere to turn to the police, then forward step 107 to, otherwise forward step 108 to;
Step 107: start the timer timing, forward step 109 to;
Step 108: the timer zero clearing forwards step 111 to;
Step 109: when task is called once again and carries out here, for example detect timing time and arrive, then forward step 110 to, otherwise forward step 111 to;
Step 110: stop timing, the inside connection is switched back to main interface again, the main time source of using is received in choosing;
Step 111: read the precise time information in source of current external time, and local zone time is calibrated, for eliminating active/standby time interface to the not isometric error that causes of the transfer path of FPGA, the time of providing interface for oneself is carried out nanosecond bear compensation;
Step 112: judge whether this subtask has active and standby time interface handover event to take place in carrying out, and namely whether time source changes, if then forward step 113 to, otherwise forward step 114 to;
Step 113: timer zero clearing;
Step 114: time-delay.
So far this subtask is finished, and task suspension is also waited for scheduling next time.
Referring to shown in Figure 3, the 1pps+TOD time interface is operated in the way of output, and task begins:
Whether step 201: detecting this Cross Trade and whether be in operating state, is the work at present dish namely, if then forward step 202 to, otherwise forward step 205 to;
Step 202: this Cross Trade has confirmed it self is the work at present dish, judges whether to exist the antithesis Cross Trade, if then forward step 203 to, otherwise forward step 204 to;
Step 203: the time of transmitting this Cross Trade by mutual bus between dish to the antithesis Cross Trade;
Step 204: judged whether that active and standby Cross Trade handover event takes place, if then forward step 206 to, otherwise forward step 207 to;
Step 206: put the sign that active and standby Cross Trade has just switched, calibrate by the band internal synchronization mode deadline at new scratch diskette, this section before the sign that the active and standby Cross Trade of removing switches is in transit time, it is the local zone time source that this dish is still selected the former scratch diskette time, and to active and standby interface output, finish up to time calibration, just clear flag, select the time output of new scratch diskette, forward step 210 to;
Step 207: do not detect active and standby Cross Trade handover event and take place, select this Cross Trade time as the output of local zone time source, forward step 210 to;
Step 205: this Cross Trade learns it self is not the work at present dish, has judged whether that directly active and standby Cross Trade handover event takes place, if then forward step 208 to, otherwise forward step 209 to;
Step 208: because active and standby Cross Trade is just switched, calibrate by the band internal synchronization mode deadline at new scratch diskette, this section before removing active and standby Cross Trade handover event sign is in transit time, it is the local zone time source that the former scratch diskette time is still selected in this Cross Trade, and to active and standby interface output, finish up to time calibration, select the time output of new scratch diskette, forward step 210 to;
Step 209: do not detect active and standby Cross Trade handover event and take place, selecting the antithesis Cross Trade time is the local zone time source, and to active and standby interface output;
Step 210: time-delay.
So far this subtask is finished, and task suspension is also waited for scheduling next time.
Above mention, when the 1pps+TOD time interface is operated in the way of output, can be to adding delay circuit on the 1pps transfer path from the 1588 time synchronized unit of this Cross Trade, to prevent because the external output time saltus step of active/standby interface that causes is switched in the local zone time source.In order to remedy this measure to the influence of output time accuracy, also output time has been done the negative compensation of nanosecond in this task.
The operation principle of the embodiment of the invention is elaborated as follows:
1pps+TOD time interface in each Cross Trade all simultaneously by concurrent or select debit's formula, connects active and standby two Cross Trades.When the 1pps+TOD time interface is operated in input mode; the time synchronizing module of temporal information on giving this Cross Trade; send to the time synchronizing module of an other Cross Trade simultaneously by backboard; so; the time synchronizing module of each Cross Trade can be selected the external time information of this Cross Trade or another Cross Trade; can adopt in the design and select debit's formula to carry out redundancy protecting automatically; its principle is: under the normal condition; the Cross Trade choosing receives the temporal information of autonomous time interface; be equipped with interface just often when detecting the main interface abnormal state; switch to the information in interface reception standby time source fully immediately; if it is unusual and main interface recovers just often after this to detect fully Interface status, switch back to main interface again immediately.Here also can introduce Wait-to-Restore mechanism, with satisfy under normal condition system can be synchronized with precision higher external time the source application demand.In the practical application, also can be that the webmaster fixed configurations is from the interface of a certain Cross Trade.No matter be the source of selecting automatically, or the webmaster fixed configurations, the selection action of two Cross Trades all is harmonious, through after the identical 1pps+TOD time interface input source information calibration, the time of two Cross Trades all is accurately synchronous like this.Adopting said method, two Cross Trades can both receive the current external time source information that is in normal condition simultaneously, and can not be subjected to the influence of Cross Trade work guard mode.
When the 1pps+TOD time interface is operated in the way of output, in order to guarantee the output of correct time synchronization information, must select the time synchronizing module of current in running order Cross Trade as the output time source.In the embodiment of the invention, Cross Trade by concurrent mode, outputs to the temporal information of this Cross Trade time synchronizing module on two time interface in this Cross Trade and the antithesis Cross Trade, and use asymmetric output compensation, the time of active and standby interface output is accurately equated.The operating state of logical foundation two Cross Trades is selected in interface output, selects the time synchronization information of current in running order Cross Trade automatically.By the method, the output of two-way 1pps+TOD time interface is identical, and the base station is connected on arbitrary interface, can both finish the stable reception of precise time.
Because the time synchronizing module backups each other in active and standby Cross Trade; if any one module hardware fault occurs and lost efficacy; the capital influences operate as normal; only need to switch (Card Switch) function by means of the existing master and backup discs of active and standby Cross Trade; and in switching condition, add the failure detection of necessary time synchronizing module, when satisfying condition; the fault Cross Trade is switched to non operating state, the defencive function that can handle synchronously the deadline.
Adopt this framework, it should be noted that may cause the generation of time jitter when active and standby Cross Trade switches, that gives time synchronized stablely brings harmful effect.Mainly be because: be synchronized to as SLAVE in the higher level MASTER node process at our station, circuit dish in the system only selects the data of receiving in running order Cross Trade, it is mutual that this Cross Trade that has just determined to be in non operating state can't be finished 1588 Ethernet bags, so time of this Cross Trade, actual being in keeps or free state during this period, this state duration is more long, and cumulative errors are also just more big, and is also just more far away with respect to the deviation of precise time.
More typical a kind of situation is: begin the back from power in system and just be in the Cross Trade of non operating state always, because have no chance to carry out time synchronized by interactive mode in being with, its time is uncertain and disabled fully just so.If active and standby Cross Trade this moment switches, the time jitter that occurs the short time possibly, if this shake is exported from our station 1pps+TOD time interface, the base station time that can cause being attached thereto produces saltus step, if send to next stage SLAVE website by 1588 Ethernet bags, may cause the time of whole network to produce saltus step, these results that cause are unacceptable.
At this problem, the embodiment of the invention is respectively outside being with and be with interior two kinds of time synchronized way of outputs that solution is provided:
For the outer output synchronously of band, when active and standby Cross Trade switches, active and standby time interface is kept former output earlier, be synchronized to higher level MASTER node and finished the local zone time calibration up to new scratch diskette, just switch on the new scratch diskette time source, realize the smooth transition of external time output, reduce as much as possible to switch the output time shake that causes because of single-deck.
For band inter-sync output, transmit bound-time to next stage SLAVE when avoiding active and standby Cross Trade to switch, 1588 Ethernet bags are taked intervening measure alternately, in case Cross Trade takes place switches, system stops the bag reciprocal process of the SLAVE node that links to each other with all immediately, has been synchronized to higher level MASTER node up to new scratch diskette, and finishes the local zone time calibration, just initiate the bag of SLAVE node alternately again, guarantee to wrap the validity of reciprocal process.During this period, it is former free that the SLAVE node that links to each other with our station keeps, and continue downstream node is with inter-sync, and this state can continue 2 band inter-sync cycles generally speaking, recovers normal afterwards.
Because in the PTN transfer equipment, clock oscillator as local zone time, itself has quite high precision, therefore, in the of short duration retention time, be enough to guarantee the accuracy of its time, avoided the transmission of the time saltus step that causes because of the active and standby switching of Cross Trade preferably, realized the steady output of local zone time.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.The content that is not described in detail in this specification belongs to this area professional and technical personnel's known prior art.

Claims (2)

1. PTN equipment, comprise the main crossings dish and be equipped with Cross Trade, described main crossings dish and be equipped with Cross Trade and respectively comprise a 1pps+TOD time interface and a time synchronizing module, it is characterized in that: each 1pps+TOD time interface is linked into the main crossings dish respectively and is equipped with on the panel of Cross Trade, utilizes the redundancy of interface that interface protection is provided; The time synchronizing module is embedded in the main crossings dish and is equipped with in the Cross Trade, by the main crossings dish be equipped with protection switch function between the Cross Trade, for the time synchronizing module provides Hot Spare;
The main crossings dish of described PTN equipment and be equipped with Cross Trade and include:
(1) system control unit: served as by CPU, Cross Trade is normal to be moved all control actions that relate to except finishing, and also wants the task that the management and dispatching band is interior, be with outer time synchronized, finishes the mutual process of 1588 Ethernet bags; Finish correlation computations, and local zone time is calibrated; Coordinate the action between each functional module of control;
(2) 1588 time synchronized unit: an embedded high accuracy clock oscillator, the single-deck local zone time produces by the counting of this clock oscillator; Support the IEEE1588v2 agreement, by the calibration of packet switch realization to local zone time; Accept the control of CPU, local zone time can be read and local zone time is made amendment by the read-write operation to sheet inside counting module;
(3) 1pps delivery unit: select the 1pps signal source, and transmit processing, 1pps delivery unit and TOD store and forward unit are realized by FPGA, accept the control of CPU; FPGA does transparent transmission to the 1pps signal that comes self-dual dish 1588 time synchronized unit and handles, the 1pps signal that coils 1588 time synchronized unit from this is added delay circuit at its transfer path, carry out signal correction in conjunction with software output compensation method again, reach and both guarantee that the 1pps signal accurately exports, guarantee again no matter it still is the antithesis dish from this dish for 1pps signal from 1588 time synchronized unit output, be sent to the purpose that transmission time of 1pps+TOD interface all equates;
(4) TOD store and forward unit: when exporting to the 1pps+TOD interface, selection is from master or be equipped with the precise time information source of 1588 time synchronized unit of dish, extracting time information also is converted to TOD signal format, behind 1pps rising edge 1ms, begin output according to code requirement in the industry, in 500ms, passed; When importing from the 1pps+TOD interface, select the TOD signal source, extraction and temporary temporal information read for CPU;
(5) 1pps+TOD time interface: accept the control of CPU, 1pps and TOD signal are carried out I/O enable control and level conversion, adapt to and transmit requirement.
2. the active and standby Cross Trade at the described PTN equipment of claim 1 realizes the method that the time synchronized protection is switched, and it is characterized in that:
For the band external sync mode, when the switching between the active and standby Cross Trade takes place, active and standby two 1pps+TOD time interface are kept former output earlier, be synchronized to higher level MASTER node up to new in running order Cross Trade, and finish local zone time and calibrate, just switch on the time source of described in running order Cross Trade newly, realize the smooth transition of external time output; For the band internal synchronization mode, when the switching between the active and standby Cross Trade takes place, system stops the bag reciprocal process of the SLAVE node that links to each other with all immediately, be synchronized to higher level MASTER node up to new in running order Cross Trade, and finish the local zone time calibration, just initiate the bag of SLAVE node mutual again; During this period, it is former free that the SLAVE node that links to each other with our station keeps, and continue downstream node is with inter-sync output;
For the band external sync mode, when the 1pps+TOD time interface is operated in input mode, temporal information is sent to time synchronizing module in this Cross Trade and the antithesis Cross Trade simultaneously, adopt and select debit's formula to carry out redundancy protecting automatically; When the 1pps+TOD time interface is operated in the way of output, select the time synchronizing module of current in running order Cross Trade, as the output time source, with the temporal information of this Cross Trade time synchronizing module by concurrent mode, output on two 1pps+TOD time interface in this Cross Trade and the antithesis Cross Trade, and use asymmetric output compensation, the time of coming synchronous two 1pps+TOD time interface output;
When the 1pps+TOD time interface is operated in input mode, may further comprise the steps:
Step 101: judge that whether current external time source is from main interface, if then forward step 102 to, otherwise forward step 103 to;
Step 102: detect the alarm status of active and standby interface, alarm is arranged and be equipped with interface with nowhere to turn to the police if detect main interface, then forward step 104 to, otherwise forward step 111 to;
Step 103: detect the alarm status of active and standby interface, main interface then forwards step 105 to, otherwise forwards step 106 to nowhere to turn to the police if detect fully that interface has alarm;
Step 104: immediately the inside connection is switched to interface fully, the standby time source is received in choosing, forwards step 111 to;
Step 105: immediately the inside connection is switched to main interface, choosing is received the master and is used time source, forwards step 111 to;
Step 106: detect the alarm status of active and standby interface, if detect active and standby interface all with nowhere to turn to the police, then forward step 107 to, otherwise forward step 108 to;
Step 107: start the timer timing, forward step 109 to;
Step 108: the timer zero clearing forwards step 111 to;
Step 109: if detecting timing time arrives, then forward step 110 to, otherwise forward step 111 to;
Step 110: stop timing, the inside connection is switched back to main interface again, the main time source of using is received in choosing;
Step 111: read the precise time information in source of current external time, and local zone time is calibrated, for eliminating active/standby time interface to the not isometric error that causes of the transfer path of FPGA, the time of providing interface for oneself is carried out nanosecond bear compensation;
Step 112: judge whether time source changes in the execution of this subtask, if then forward step 113 to, otherwise forward step 114 to;
Step 113: timer zero clearing;
Step 114: time-delay;
When the 1pps+TOD time interface is operated in the way of output, may further comprise the steps:
Step 201: whether be work at present dish, if then forward step 202 to, otherwise forward step 205 to if detecting this Cross Trade;
Step 202: this Cross Trade has confirmed it self is the work at present dish, judges whether to exist the antithesis Cross Trade, if then forward step 203 to, otherwise forward step 204 to;
Step 203: the time of transmitting this Cross Trade by mutual bus between dish to the antithesis Cross Trade;
Step 204: judged whether that active and standby Cross Trade handover event takes place, if then forward step 206 to, otherwise forward step 207 to;
Step 206: put the sign that active and standby Cross Trade has just switched, calibrate by the band internal synchronization mode deadline at new scratch diskette, this section before the sign that the active and standby Cross Trade of removing switches is in transit time, it is the local zone time source that this dish is still selected the former scratch diskette time, and to active and standby interface output, finish up to time calibration, just clear flag, select the time output of new scratch diskette, forward step 210 to;
Step 207: do not detect active and standby Cross Trade handover event and take place, select this Cross Trade time as the output of local zone time source, forward step 210 to;
Step 205: this Cross Trade learns it self is not the work at present dish, has judged whether that directly active and standby Cross Trade handover event takes place, if then forward step 208 to, otherwise forward step 209 to;
Step 208: active and standby Cross Trade is just switched, calibrate by the band internal synchronization mode deadline at new scratch diskette, this section before removing active and standby Cross Trade handover event sign is in transit time, it is the local zone time source that the former scratch diskette time is still selected in this Cross Trade, and to active and standby interface output, finish up to time calibration, select the time output of new scratch diskette, forward step 210 to;
Step 209: do not detect active and standby Cross Trade handover event and take place, selecting the antithesis Cross Trade time is the local zone time source, and to active and standby interface output;
Step 210: time-delay;
When described 1pps+TOD time interface is operated in the way of output, to adding delay circuit on the 1pps transfer path from the 1588 time synchronized unit of this Cross Trade, because the external output time saltus step of active/standby interface that causes is switched in the local zone time source, also output time is done the negative compensation of nanosecond to prevent.
CN2011100232109A 2011-01-21 2011-01-21 Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device Active CN102123046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100232109A CN102123046B (en) 2011-01-21 2011-01-21 Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100232109A CN102123046B (en) 2011-01-21 2011-01-21 Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device

Publications (2)

Publication Number Publication Date
CN102123046A CN102123046A (en) 2011-07-13
CN102123046B true CN102123046B (en) 2013-09-04

Family

ID=44251507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100232109A Active CN102123046B (en) 2011-01-21 2011-01-21 Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device

Country Status (1)

Country Link
CN (1) CN102123046B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244573B (en) * 2011-07-18 2017-03-22 中兴通讯股份有限公司 clock reporting method and device
CN102868515B (en) * 2012-09-27 2015-04-29 烽火通信科技股份有限公司 System time synchronization device and method in packet transport network
CN103744755A (en) * 2014-01-08 2014-04-23 烽火通信科技股份有限公司 Implement system for primary and standby veneer single port shared protection and method thereof
CN105376043B (en) * 2015-11-04 2018-05-25 国网电力科学研究院武汉南瑞有限责任公司 A kind of method for synchronizing time of double board systems
CN106936610B (en) * 2015-12-30 2020-01-24 中国移动通信集团公司 Network synchronization control method and device
CN107241154A (en) * 2016-03-28 2017-10-10 中兴通讯股份有限公司 1588 file transmitting methods and device
CN106357362B (en) * 2016-11-07 2019-05-17 瑞斯康达科技发展股份有限公司 A kind of method for synchronizing time, device and PTP system
CN108737000B (en) * 2017-04-24 2020-01-21 上海诺基亚贝尔股份有限公司 Method and apparatus for clock synchronization
CN107786294B (en) * 2017-09-22 2019-04-30 烽火通信科技股份有限公司 A kind of centralized 1588 realization system and method
CN110768830B (en) * 2019-10-23 2022-07-12 许昌许继软件技术有限公司 Role switching method for time synchronization management
CN111901169B (en) * 2020-07-28 2022-09-09 烽火通信科技股份有限公司 Method and device for realizing distributed ring network protection state machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1510845A (en) * 2002-12-26 2004-07-07 华为技术有限公司 Hot backup method for switching primary and secondary protection
US6885647B1 (en) * 1998-12-30 2005-04-26 Utstarcom, Inc. Base station for compensating route delay between bases station and mobile station of CDMA mobile communication system and operation method thereof
CN101192964A (en) * 2006-11-24 2008-06-04 中兴通讯股份有限公司 Master/slave switching system and method for multicast source
CN201789508U (en) * 2010-08-10 2011-04-06 华为技术有限公司 1588V2 protocol processing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6885647B1 (en) * 1998-12-30 2005-04-26 Utstarcom, Inc. Base station for compensating route delay between bases station and mobile station of CDMA mobile communication system and operation method thereof
CN1510845A (en) * 2002-12-26 2004-07-07 华为技术有限公司 Hot backup method for switching primary and secondary protection
CN101192964A (en) * 2006-11-24 2008-06-04 中兴通讯股份有限公司 Master/slave switching system and method for multicast source
CN201789508U (en) * 2010-08-10 2011-04-06 华为技术有限公司 1588V2 protocol processing system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TD-SCDMA系统GPS替代解决方案研究;徐荣等;《电信工程技术与标准化》;20090915(第09期);16-21 *
徐荣等.TD-SCDMA系统GPS替代解决方案研究.《电信工程技术与标准化》.2009,(第09期),

Also Published As

Publication number Publication date
CN102123046A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN102123046B (en) Packet transport network (PTN) device and method for realizing time synchronization protection switching (PS) by using main cross disk and spare cross disk of PTN device
CN102098194B (en) Method and system for realizing time synchronization in local area network
US7873862B2 (en) Maintaining a primary time server as the current time server in response to failure of time code receivers of the primary time server
CN108259227B (en) Data synchronization method of dual-computer hot standby interlocking system
US7783913B2 (en) Facilitating recovery in a coordinated timing network
CA2675645C (en) Facilitating synchronization of servers in a coordinated timing network
US9112626B2 (en) Employing configuration information to determine the role of a server in a coordinated timing network
CN101540500B (en) Data synchronization method of digital optical fiber differential protective clock by relay method
EP4053648A1 (en) Navigation satellite time system and autonomous recovery method therefor
CN102237996B (en) Clock synchronization method and clock synchronization device
CN103513569A (en) Method for synchronizing redundant time of intelligent substation
CN102378350B (en) Time synchronization method, server and system
WO2012075881A1 (en) Ieee1588-based sampled value multi-interface synchronization system for multiple slave clocks
CN102291169A (en) Onboard high-accuracy time synchronization method for satellite
CN102299788A (en) Method and device for controlling automatic transmission of IEEE1558 (Institute of Electrical and Electronic Engineers 1558) protocol message
CN105847050B (en) A kind of the disconnection fault detection and the synchronous restoration methods of clock of Industrial Ethernet
CN103684734B (en) A kind of hot-standby redundancy computer time synchronization system and method
CN102129219A (en) Clock calibration method of wireless meter reading system and clock calibration method of distributed system
CN102546073B (en) Multi-clock-ring based method for avoiding clock jitter in switching process
CN103873223A (en) Satellite internal equipment timing method and system
CN100547557C (en) A kind of combined synchronization method of multi-module electronic system
CN101958762B (en) Main and standby clock switching device and method
US9703315B2 (en) Transmission device and time synchronization method
CN103095446B (en) The changing method of multi-mode clock and corresponding multi-mode clock
JP5235716B2 (en) Synchronous transfer device and synchronous control system

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