CN103516454A - Clock synchronization method, device and communication apparatus - Google Patents

Clock synchronization method, device and communication apparatus Download PDF

Info

Publication number
CN103516454A
CN103516454A CN201210204698.XA CN201210204698A CN103516454A CN 103516454 A CN103516454 A CN 103516454A CN 201210204698 A CN201210204698 A CN 201210204698A CN 103516454 A CN103516454 A CN 103516454A
Authority
CN
China
Prior art keywords
frame
nanosecond
time
clock synchronization
clock
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
CN201210204698.XA
Other languages
Chinese (zh)
Other versions
CN103516454B (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.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210204698.XA priority Critical patent/CN103516454B/en
Publication of CN103516454A publication Critical patent/CN103516454A/en
Application granted granted Critical
Publication of CN103516454B publication Critical patent/CN103516454B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a clock synchronization method, a clock synchronization device and a communication apparatus. The clock synchronization method includes the following steps that: time information is intercepted in data timestamps in a time synchronization protocol message; the time information constitutes a frame; and the frame is transmitted, wherein the frame is used for performing time synchronization on apparatuses which are to be subjected to time synchronization. With the clock synchronization method, the clock synchronization device and the communication apparatus adopted, the problem of incapability of some communication apparatuses in the prior to realize the clock synchronization directly through a 1588 protocol message can be solved, and therefore, the use range of a time synchronization protocol can be extended, and used resources can be decreased.

Description

Clock synchronizing method, device and communication equipment
Technical field
The present invention relates to the communications field, in particular to a kind of clock synchronizing method, device and communication equipment.
Background technology
Time synchronized relates to the key factor that can system work in communication system.Various wireless communication systems, as global mobile communication (Global system for Mobile Communication, referred to as GSM), universal mobile telecommunications system (Universal Mobile Telecommunications System, referred to as UMTS), code division multiple access (Code Division Multiple Access, referred to as CDMA), time-division switching-code division multiple access (Time Division Switching-Code Division Multiple Access, referred to as TDS-CDMA) and Wideband Code Division Multiple Access (WCDMA) access (Wideband Code Division Multiple Access, referred to as WCDMA) etc. all clock synchronously had to a relevant requirement, microwave wireless communication is as carrying related cross system with tradition, clock synchronous is also had to specific requirement.When carrying out PDH (Pseudo-synchronous Digital Hierarchy) (Plesiochronous Digital Hierarchy, referred to as PDH) and the transmission of synchronous digital hierarchy (Synchronous Digital Hierarchy, referred to as SDH) business, need to meet relevant clock standard; And when carrying out synchronous ethernet and carry out networking, time synchronized also need to meet G.8261/G.8262 in relevant standard-required.
The implementation of clock synchronous has multiple, remove HA Global Positioning Satellite (Global Positioning Satellite, referred to as GPS) outside time service, the Precision Time Protocol growing up from industrial automatic control field (Precision Time Protocol, referred to as PTP) (1588) agreement has started to be applied in telecommunication system through improvement.The mode that 1588 agreements are used message to process to supporting the network node of 1588 agreements to carry out time synchronized, can reach the precision of microsecond/submicrosecond level more than physical layer, and the error of process correcting process can be less than 1ns.
The numerous contents that 1588 messages comprise, deals with complexity high, and its concrete occupation mode can directly affect networking and form.While needing time synchronized in single communication system equipment, if some part is not supported (such as microwave indoor unit (InDoor Unit, referred to as IDU) in other business unit except master control borad), or do not have enough resources to realize the processing of message, these unit just can not directly be used 1588 agreements to complete relevant treatment so, and time synchronized just must realize by other means.
For above-mentioned problem one of at least in correlation technique, effective solution is not yet proposed at present.
Summary of the invention
The invention provides a kind of clock synchronizing method, device and communication equipment, at least to solve part communication equipment in correlation technique, can not directly by 1588 protocol massages, realize the problem of clock synchronous.
According to an aspect of the present invention, provide a kind of clock synchronizing method, it comprises: in the data time stamp from time synchronization protocol message, intercept temporal information; By temporal information component frame; Send frame, wherein, frame is used for treating clock synchronization device and carries out clock synchronous.
Preferably, time synchronization protocol message comprises: 1588 protocol massages.
Preferably, temporal information comprise second position and nanosecond position.
Preferably, before temporal information component frame, above-mentioned clock synchronizing method also comprises: in the situation that the nanosecond position of local zone time be zero or the nanosecond position of local zone time be integer/mono-of whole second, select to send the set frequency of frame, frequency corresponding to this set frequency is both fixed cycles.
Preferably, temporal information component frame is comprised: by second position deposit in the predeterminated position of frame, by nanosecond position deposit in the frame head of frame, wherein, when sending the nanosecond position of end time of both fixed cycles of frame, be in zero situation, according to the first coded system by nanosecond position be encoded to the first byte; Or when sending the nanosecond position of end time of both fixed cycles of frame, be in integer/mono-the situation of whole second, according to the second coded system by nanosecond position be encoded to the second byte.
Preferably, send frame and comprise: in the situation that the count cycle arrives, send frame, wherein, count cycle ratio is the little Preset Time difference of fixed cycle both.
Preferably, after sending frame, above-mentioned clock synchronizing method also comprises: treat that clock synchronization device receives in the situation of start bit of frame, and received frame, wherein, the integral multiple that is set frequency for the frequency of received frame; Treat clock synchronization device parse for frame obtain second position and nanosecond position, treat clock synchronization device and carry out clock synchronous.
Preferably, parse for frame obtain second position and nanosecond position, treat clock synchronization device and carry out clock synchronous and comprise: the encoded byte type for the treatment of clock synchronization device judgment frame frame head; In the situation that frame head be encoded to the first byte, resolve and obtain local second position will treating clock synchronization device and be revised as a second position and add 1, treat the information of the position zero clearing of local nanosecond of clock synchronization device; Or in the situation that frame head be encoded to the second byte, resolve to obtain and will treat that local second position of clock synchronization device be revised as a second position, treat that the position of local nanosecond of clock synchronization device is not revised, the information of normal counting.
According to a further aspect in the invention, provide a kind of clock synchronization apparatus, it comprises: interception module, for intercepting temporal information the data time stamp from time synchronization protocol message; Processing module, for by temporal information component frame; Sending module, for sending frame, wherein, frame is used for treating clock synchronization device and carries out clock synchronous.
Preferably, above-mentioned clock synchronization apparatus also comprises: select module, for in the situation that the nanosecond position of local zone time be zero or the nanosecond position of local zone time be integer/mono-of whole second, select to send the set frequency of frame, frequency corresponding to this set frequency is both fixed cycles.
According to another aspect of the invention, provide a kind of communication equipment, it comprises: receiver module, in the situation that receive the start bit of frame, received frame, wherein, for the frequency of received frame for sending the integral multiple of the set frequency of frame; Parsing module, for parse for frame obtain second position and nanosecond position, treat clock synchronization device and carry out clock synchronous.
In the present invention, in data time stamp from time synchronization protocol message, intercept temporal information, and by this temporal information component frame, form transmission time information with frame, to complete the clock synchronous for the treatment of clock synchronization device, can realize the time synchronization information in the communication equipment of support time synchronization protocol and not support the communication equipment (or unit) of time synchronization protocol to share, make not support that the communication equipment of time synchronization protocol can carry out clock synchronous according to the temporal information of time synchronization protocol indirectly by the form of frame, thereby expanded the scope of application of time synchronization protocol, meanwhile, with the form transmission time information of frame, implementation is simple, has reduced the use amount of resource.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the flow chart of the clock synchronizing method of the embodiment of the present invention;
Fig. 2 is according to the structured flowchart of the clock synchronization apparatus of the embodiment of the present invention;
Fig. 3 is according to the structured flowchart of the another kind of clock synchronization apparatus of the embodiment of the present invention;
Fig. 4 is according to the structured flowchart of the communication equipment of the embodiment of the present invention;
Fig. 5 is according to the schematic diagram of the time transmission system of the embodiment of the present invention;
Fig. 6 is according to the schematic diagram of the tranmitting data register of the embodiment of the present invention and receive clock physical interconnection;
Fig. 7 sends the structural representation of special frames according to the time of the embodiment of the present invention;
Fig. 8 sends the structural representation of basic frame according to the time of the embodiment of the present invention;
Fig. 9 is the schematic diagram that is related to according to the time data frame transmission of the embodiment of the present invention and time of reception; And
Figure 10 is according to the schematic diagram of the jump second moment time of reception of the embodiment of the present invention and the instant time contrast of transmitting terminal.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
The present embodiment provides a kind of clock synchronizing method, and as shown in Figure 1, this clock synchronizing method comprises that step S102 is to step S106.
Step S102: intercept temporal information in the data time stamp from time synchronization protocol message.
Step S104: by temporal information component frame.
Step S106: send frame, wherein, frame is used for treating clock synchronization device and carries out clock synchronous.
Pass through above-mentioned steps, in data time stamp from time synchronization protocol message, intercept temporal information, and by this temporal information component frame, form transmission time information with frame, to complete the clock synchronous for the treatment of clock synchronization device, can realize the time synchronization information in the communication equipment of support time synchronization protocol and not support the communication equipment (or unit) of time synchronization protocol to share, make not support that the communication equipment of time synchronization protocol can carry out clock synchronous according to the temporal information of time synchronization protocol indirectly by the form of frame, thereby expanded the scope of application of time synchronization protocol, meanwhile, with the form transmission time information of frame, implementation is simple, has reduced the use amount of resource.
Preferably, above-mentioned time synchronization protocol message can comprise: 1588 protocol massages, are transferred to the temporal information of 1588 protocol massages with the form of frame communication equipment or the unit of not supporting 1588 agreements, to expand the scope of application of 1588 agreements.
In order to improve the accuracy of clock synchronous, in this preferred embodiment, above-mentioned temporal information comprises: second position and nanosecond position.Above-mentioned temporal information include but not limited to second position and nanosecond position, can be according to the demand selection of different application scene.
Carry out the correction of enough number of times in order to ensure the time for the treatment of clock synchronization device within one second time, in this preferred embodiment, before above-mentioned temporal information component frame, in the situation that the nanosecond position that the nanosecond position of local zone time is zero or local zone time is integer/mono-of whole second, select to send the set frequency of frame, frequency corresponding to this set frequency is both fixed cycles.Preferably, this set frequency can need to be adjusted according to different application, for example, when when clock synchronization device is higher to the accuracy requirement of clock, set frequency can be tuned up a bit, to satisfy the demands, also set frequency can be turned down a bit on the contrary.
In order to improve the accuracy of clock synchronous, accuracy, in this preferred embodiment, by second position deposit in the predeterminated position of frame, by nanosecond position deposit in the frame head of frame, wherein, when sending the nanosecond position of end time of both fixed cycles of frame, be in zero situation, according to the first coded system by nanosecond position be encoded to the first byte; Or when sending the nanosecond position of end time of both fixed cycles of frame, be in integer/mono-the situation of whole second, according to the second coded system by nanosecond position be encoded to the second byte.
In above preferred embodiment, for not in the same time, to nanosecond position adopt different coded systems, by nanosecond position be encoded to dissimilar byte, so that when until clock synchronization device parse for frame, obtain exactly second position information and nanosecond position information, thereby improve the accuracy of clock synchronous, accuracy; In addition, position second can be deposited in to the predeterminated position of frame, when parse for frame, can obtain exactly, easily second position information, to improve the efficiency of parsing.
Consistent with transmitting terminal temporal information in order to guarantee to treat the temporal information that clock synchronization device obtains when there is jump second, in this preferred embodiment, send above-mentioned frame and comprise: in the situation that the count cycle arrives, send frame, wherein, the count cycle is compared both little Preset Time differences of fixed cycle.Selecting to send after both fixed cycles of above-mentioned frame, start timing, for example, can adopt the mode of counter, when arriving the count cycle, send frame, this count cycle ratio is the little Preset Time difference of fixed cycle both, this Preset Time difference standard is the fixedly lead of fixed cycle both, for example, this Preset Time difference (sending lead) is △ t1, frame propagation delay △ t2, frame reception & disposal time delay △ t3, △ t1=△ t2+ △ t3.
In realization, treat in the process that clock synchronization device carries out clock synchronous, in this preferred embodiment, after sending frame, treat that clock synchronization device receives in the situation of start bit of frame, received frame, wherein, the integral multiple that is set frequency for the frequency of received frame; Treat clock synchronization device parse for frame obtain second position and nanosecond position, treat clock synchronization device and carry out clock synchronous.Treat clock synchronization device received frame, and to frame resolve to obtain second position and nanosecond position, complete clock synchronous.
Preferably, above-mentioned treat clock synchronization device parse for frame obtain second position and nanosecond position, treat clock synchronization device and carry out clock synchronous and can realize by following steps, for example, treat the encoded byte type of clock synchronization device judgment frame frame head; In the situation that frame head be encoded to the first byte, resolve and obtain local second position will treating clock synchronization device and be revised as a second position and add 1, treat the information of the position zero clearing of local nanosecond of clock synchronization device; Or in the situation that frame head be encoded to the second byte, resolve to obtain and will treat that local second position of clock synchronization device be revised as a second position, treat that the position of local nanosecond of clock synchronization device is not revised, the information of normal counting.Treat that clock synchronization device obtains the temporal information of synchronised clock according to the encoded byte type of frame head, and then complete the clock synchronous for the treatment of clock synchronization device.
In this preferred embodiment, a kind of clock synchronization apparatus is provided, as shown in Figure 2, this clock synchronization apparatus comprises: interception module 202, for intercepting temporal information the data time stamp from time synchronization protocol message; Processing module 204, is connected to interception module 202, for by described temporal information component frame; Sending module 206, is connected to processing module 204, and for sending described frame, wherein, described frame is used for treating clock synchronization device and carries out clock synchronous.
In above preferred embodiment, in the data time stamp of interception module 202 from time synchronization protocol message, intercept temporal information, processing module 204 is by this temporal information component frame, sending module 206 is with the form transmission time information of frame, to complete the clock synchronous for the treatment of clock synchronization device, can realize the time synchronization information in the communication equipment of support time synchronization protocol and not support the communication equipment (or unit) of time synchronization protocol to share, make not support that the communication equipment of time synchronization protocol can carry out clock synchronous according to the temporal information of time synchronization protocol indirectly by the form of frame, thereby expanded the scope of application of time synchronization protocol, meanwhile, with the form transmission time information of frame, implementation is simple, has reduced the use amount of resource.
Carry out the correction of enough number of times in order to ensure the time for the treatment of clock synchronization device within one second time, in this preferred embodiment, as shown in Figure 3, above-mentioned clock synchronization apparatus also comprises: select module 208, be connected to interception module 202, for in the situation that the nanosecond position of local zone time be zero or the nanosecond position of local zone time be integer/mono-of whole second, select to send the set frequency of described frame, frequency corresponding to this set frequency is both fixed cycles.
In order to improve the accuracy of clock synchronous, accuracy, in this preferred embodiment, above-mentioned processing module 204, also for by second position deposit in the predeterminated position of frame, by nanosecond position deposit in the frame head of frame, wherein, when sending the nanosecond position of end time of both fixed cycles of frame, be in zero situation, according to the first coded system by nanosecond position be encoded to the first byte; Or when sending the nanosecond position of end time of both fixed cycles of frame, be in integer/mono-the situation of whole second, according to the second coded system by nanosecond position be encoded to the second byte.
Consistent with transmitting terminal temporal information in order to guarantee to treat the temporal information that clock synchronization device obtains when there is jump second, in this preferred embodiment, above-mentioned sending module 206, also in the situation that the count cycle arrives, send frame, wherein, count cycle ratio is the little Preset Time difference of fixed cycle both.
In this preferred embodiment, a kind of communication equipment is provided, as shown in Figure 4, communication equipment comprises: receiver module 402, in the situation that receive the start bit of frame, received frame, wherein, for the frequency of received frame for sending the integral multiple of the set frequency of frame; Parsing module 404, is connected to receiver module 402, for parse for frame obtain second position and nanosecond position, treat clock synchronization device and carry out clock synchronous.
Above-mentioned, preferably execute in example, receiver module 402 in the situation that receive the start bit of frame, receives above-mentioned frame, 404 pairs of frames of parsing module resolve obtain second position and nanosecond position, to treat clock synchronization device, carry out clock synchronous.
Preferably, above-mentioned communication equipment can be the communication equipment (or unit) of supporting time synchronization protocol, also can be the communication equipment of not supporting time synchronization protocol, it at above-mentioned communication equipment, can be the communication equipment (or unit) of supporting time synchronization protocol, can realize clock synchronous by the form of above-mentioned frame, to reduce the use of resource; It at above-mentioned communication equipment, is the communication equipment of not supporting time synchronization protocol, can share the temporal information in time synchronization protocol message with supporting the communication equipment (or unit) of time synchronization protocol by the form with frame, to complete clock synchronous, thereby realize the synchronous of clock in simple mode, meanwhile, expanded the scope of application of agreement.
Preferably, at above-mentioned communication equipment, be while supporting the communication equipment (or unit) of time synchronization protocol, this communication equipment (or unit) can comprise above-mentioned clock synchronization apparatus, with the temporal information in the form transmitting time synchronous protocol message of frame, gives other communication equipments or unit.
Preferably, above-mentioned parsing module 404, also for judging the encoded byte type of the frame head of above-mentioned frame; In the situation that frame head be encoded to the first byte, resolve and obtain local second position will treating clock synchronization device and be revised as a second position and add 1, treat the information of the position zero clearing of local nanosecond of clock synchronization device; Or in the situation that frame head be encoded to the second byte, resolve to obtain and will treat that local second position of clock synchronization device be revised as a second position, treat that the position of local nanosecond of clock synchronization device is not revised, the information of normal counting.Treat that clock synchronization device obtains the temporal information of synchronised clock according to the encoded byte type of frame head, and then complete the clock synchronous for the treatment of clock synchronization device.
Below in conjunction with accompanying drawing, above-mentioned each preferred embodiment is described in detail.
In the present embodiment, take and by simplifying clock synchronization compliant with precision time protocol information, transmit to realize clock synchronous as example in microwave telecommunication system equipment, above-mentioned clock synchronizing method is described, to realize 80 bit data timestamps in agreement (48 of second countings, nanosecond is counted 32) in the transmission of internal system.Use internal system interconnection line, and a suitable receipts/processing unit reaches the object that precise time information is transmitted.
Above-mentioned clock synchronizing method comprises the steps:
Steps A, in clock transmitting portion, dispensing device by by 1588 timestamps interceptings for standard second position and nanosecond position, generate relevant temporal information second to be sent, and carry the pulse of nanosecond information.This, temporal information was by specific coding mode to be sent second, with constant rate of speed, on the proprietary holding wire of internal system clock, transmitted.Nanosecond, digit pulse was converted to correlative coding by proprietary protocol, with second position, start bit and check digit form together with related data frame and send.
Step B, at clock receiving unit, receiving system receives this Frame with receive clock, solve inner relevant second of position information and nanosecond pulse coding, according to this nanosecond pulse code restoration, go out corresponding nanosecond position, with second position information combination become complete temporal information.
The detailed process that dispensing device described in steps A forms Frame transmission by 1588 timestamps (80) is as follows:
A1, by the second position in 80 bit data and nanosecond position take out, when nanosecond, position was zero (jump second) or while having other cycles to send to require (this cycle one is decided to be integer/mono-of whole second), select local tranmitting data register, frequency is f1, opens local counter.
A2, by second position deposit in the predeterminated position of Frame, so that directly resolve on predeterminated position and obtain a second position when resolution data frame, improve the efficiency of resolution data frame, data frame head represents nanosecond position coding, when the corresponding jump second of this Frame is during the cycle, by the first default coded system by nanosecond position be encoded to a special byte (being equivalent to above-mentioned the first byte), when this Frame corresponds to common cycle while sending frame, by the second default coded system by nanosecond position be encoded to a common byte (being equivalent to above-mentioned the second byte).
Consistent with transmitting terminal temporal information in order to ensure the temporal information of recovering when there is jump second, in this preferred embodiment, when local rolling counters forward to fixed numbers T1, log-on data frame sends.This this locality count value is less than the set transmission cycle, with the difference in set transmission cycle be △ t1, this difference is the fixedly lead that standard sends the cycle.
A4, data send baud rate and the individual bit duration can be determined as required, and when Frame length is L, individual bit continues m transmission during the cycle, sends duration TL=L*m.
In step B, receiving system receives this Frame with receive clock, solves inner relevant second of position information and nanosecond pulse coding, according to this nanosecond pulse code restoration, goes out corresponding nanosecond position, with second position information combination become complete temporal information and comprise the steps:
B1, when the receiving link status machine of clock synchronization device does not detect data wire and has the transmitted signal of startup, remain idle.
B2, when the receiver until clock synchronization device receives data start bit, enter data receiving state, it is the integral multiple of data tranmitting data register frequency f 1 that data reception clock frequency f 2 requires, preferably, can select as required multiple, can select frequency f 1 to equate with frequency f 2.
B3, when after clock synchronization device receives data, detect in Frame the nanosecond position coding and second position information with time correlation.
B4, comparison nanosecond position coding, the special byte in jump second cycle (being equivalent to above-mentioned the first byte) if, when receive finishing to provide second position information, send second+1 signal, the local timing module of recipient is according to this timing nanosecond position, signal zero clearing this locality, second+1, result+1 second of local timing position second being revised as to reception simultaneously.If nanosecond, position was encoded to common byte (being equivalent to above-mentioned the second byte), during reception, only provide a second count results, the normal counting of recipient's part of local timing module nanosecond is not made an amendment, only to second position revise, local timing position second is modified to count results second of reception.
In above-mentioned clock synchronizing method, under the condition that is used in conjunction with phase-locked loop, receipts/bill unit, can realize the accurate transfer of the inner PTP temporal information of microwave equipment, expanded the synchronous scope of single PTP unit.For example, using under phase lock loop condition, can realize time of reception synchronizes without differing with transmitting time, do not use under phase lock loop condition, can produce the sampling error with sending/receiving frequency dependence, therefore, can, according to concrete use scenes, according to the frequency of concrete use, determine whether to use phase-locked loop.
In the present embodiment, need to by 80 complete bit time information, in the mode of Frame, from supporting the system unit of 1588 agreements to be sent to system, other need synchronous unit, occupation mode is simple, and resource use amount is few, and accuracy is controlled.Fig. 5 is according to the schematic diagram of the time transmission system of the embodiment of the present invention, as shown in Figure 5, this clock synchronization system comprises: time block 502(is equivalent to above-mentioned interception module 202), second, coding/sending module 504(was equivalent to above-mentioned processing module 204 and sending module 206), send time block 506, receiver module 508(is equivalent to above-mentioned receiver module 402 and parsing module 404) and time block 510.Fig. 6 is according to the schematic diagram of the tranmitting data register of the embodiment of the present invention and receive clock physical interconnection, as shown in Figure 6, sending module 504 sends to receiver module 508 with set frequency f 1 by frame, receiver module 508 is with frequency f 2 received frames, to obtain temporal information, second position and nanosecond position, to complete clock synchronous.
The time synchronization process of realizing based on above-mentioned clock synchronization system comprises the steps:
S1 clock transmitting portion, time block 502 by by the data time stamp intercepting in 1588 protocol massages for standard second position and nanosecond position, by encode second/sending module 504, generate temporal information second to be sent of being correlated with, and carry the pulse of nanosecond information.This, temporal information was by specific coding mode to be sent second, with constant rate of speed, on the proprietary holding wire of internal system clock, transmitted.Nanosecond, digit pulse was converted to correlative coding by proprietary protocol, with second position, start bit and check digit form together with related data frame and send.
In above-mentioned steps S1, can comprise the following steps: 1) second coding/sending module 504 need to be determined the transmission cycle of time data frame, this transmission cycle is chosen as integer/mono-of whole second, to ensure within one second time, receiving system (the being equivalent to time block 510) time is carried out to the correction of enough number of times.Revising number of times is that N and Frame transmission cycle T (second) need to meet following relation: N*T=1.
2) second coding/sending module 504 generates two kinds position coded data frame of different nanoseconds.When this frame sends, while there is saltus step in whole second before sending, this frame is special data frame next time, as shown in Figure 7, nanosecond position be encoded to special byte (being equivalent to above-mentioned the first byte); When this frame sends before next frame sends, saltus step in whole second does not occur, this frame is normal data frame, as shown in Figure 8, nanosecond position be encoded to common byte (being equivalent to above-mentioned the second byte).
3) sending time block 506 need to be according to the transmitting time point of local count value T1 specified data frame.It is T that assumption period sends the cycle requiring, and sending lead is △ t1, Frame propagation delay △ t2, reception & disposal time delay △ t3.Requirement
△ t1=△ t2+ △ t3 (design meets)
T=T1+ △ t1 (naturally meeting)
Consistent with transmitting terminal temporal information with the temporal information that guarantees to recover when there is jump second.
Frame propagation delay △ t2 is defined as arbitrary data and sends from transmitting terminal, arrives the time delay of receiving terminal through system interconnection line; Reception & disposal time delay △ t3 is defined as receiving terminal from receiving initial signal, until send the time interval that complete temporal information experiences.Each time relationship is referring to accompanying drawing 9.
4) can be used for Frame transmission computing time required time, need to meet
△ t1 >=TL (design meets)
To guarantee that Frame is sent completely within this transmission cycle.
S2: at clock receiving unit.Receiver module 508 receives this Frame with receive clock, solves the inner relevant position information and nanosecond pulse coding second of Frame, according to this nanosecond pulse code restoration, goes out corresponding nanosecond position, with second position information combination become complete temporal information.
In above-mentioned steps S2, comprise the steps:
1) receiver module 508 is controlled under non-reception state, and while not carrying out simultaneous operation, receiving terminal maintains former output, recipient's local zone time is not revised.
2) receiver module 508 data receiving state machines start, and start data receiver.Receive clock frequency f 2 is the integral multiple of Frame transmission frequency f1, guarantees to receive data integrity sampling.
3), after Frame finishes receiving, receiver module 508 is disassembled Frame according to transmission frame format, by second position information with nanosecond position frame head coding separated.
4) receiver module 508 determines that this Frame is common time data frame or the special data frame corresponding with jump second event.When Frame is special data frame, provide corresponding second+1 signal, time block 510 is the position zero clearing of local zone time nanosecond, and second information is used and received the numerical value that second signal adds after 1 and revise, and realizes synchronizeing of time block 510 local zone times and instant time of transmitting terminal.Frame corresponding to the transmission of jump second special data frame, receiving course with reference to accompanying drawing 10.
From above description, can find out, the present invention has realized following technique effect: in the data time stamp from time synchronization protocol message, intercept temporal information, and by this temporal information component frame, form transmission time information with frame, to complete the clock synchronous for the treatment of clock synchronization device, can realize the time synchronization information in the communication equipment of support time synchronization protocol and not support the communication equipment (or unit) of time synchronization protocol to share, make not support that the communication equipment of time synchronization protocol can carry out clock synchronous according to the temporal information of time synchronization protocol indirectly by the form of frame, thereby expanded the scope of application of time synchronization protocol, meanwhile, with the form transmission time information of frame, implementation is simple, has reduced the use amount of resource.In addition, by nanosecond position be encoded to dissimilar byte so that when until clock synchronization device parse for frame, obtain exactly second position information and nanosecond position information, thereby improve the accuracy of clock synchronous, accuracy; Carry out the correction of enough number of times in order to ensure the time for the treatment of clock synchronization device within one second time, in the situation that the nanosecond position that the nanosecond position of local zone time is zero or local zone time is integer/mono-of whole second, select to send the set frequency of frame, and in the situation that the count cycle arrives, send frame, wherein, the count cycle is than both little Preset Time differences of fixed cycle, consistent with transmitting terminal temporal information to guarantee to treat the temporal information that clock synchronization device obtains when there is jump second.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (11)

1. a clock synchronizing method, is characterized in that, comprising:
In data time stamp from time synchronization protocol message, intercept temporal information;
By described temporal information component frame;
Send described frame, wherein, described frame is used for treating clock synchronization device and carries out clock synchronous.
2. method according to claim 1, is characterized in that, described time synchronization protocol message comprises: 1588 protocol massages.
3. method according to claim 1, is characterized in that, described temporal information comprise second position and nanosecond position.
4. according to the method in any one of claims 1 to 3, it is characterized in that, before described temporal information component frame, also comprise:
In the situation that the nanosecond position of local zone time be zero or the nanosecond position of local zone time be integer/mono-of whole second, select to send the set frequency of described frame, frequency corresponding to this set frequency is both fixed cycles.
5. method according to claim 4, is characterized in that, temporal information is formed to described frame and comprise:
By described second the predeterminated position of depositing in described frame, by described nanosecond position deposit in the frame head of described frame, wherein, when sending the nanosecond position of end time of both fixed cycles of described frame, be in zero situation, according to the first coded system by described nanosecond position be encoded to the first byte; Or
When sending the nanosecond position of end time of both fixed cycles of described frame, be in integer/mono-the situation of whole second, according to the second coded system by described nanosecond position be encoded to the second byte.
6. method according to claim 5, is characterized in that, sends described frame and comprises:
In the situation that the count cycle arrives, send described frame, wherein, the described count cycle is than the little Preset Time difference of described both fixed cycles.
7. method according to claim 5, is characterized in that, after sending described frame, also comprises:
Describedly treat that clock synchronization device receives in the situation of start bit of described frame, receive described frame, wherein, for receiving the integral multiple that the frequency of described frame is described set frequency;
Described treat clock synchronization device resolve described frame obtain described second position and described nanosecond position, to described, treat that clock synchronization device carries out clock synchronous.
8. method according to claim 7, is characterized in that, resolve described frame obtain described second position and described nanosecond position, to described, treat that clock synchronization device carries out clock synchronous and comprises:
Describedly treat that clock synchronization device judges the encoded byte type of described frame frame head;
In the situation that described frame head be encoded to described the first byte, resolve to obtain and described second position is revised as in described local second position for the treatment of clock synchronization device adds 1, described in treat the information of the position zero clearing of local nanosecond of clock synchronization device; Or
In the situation that described frame head be encoded to described the second byte, resolve to obtain and treat that by described local second position of clock synchronization device be revised as described second position, described in treat that the position of local nanosecond of clock synchronization device do not revise, the information of normal counting.
9. a clock synchronization apparatus, is characterized in that, comprising:
Interception module, for intercepting temporal information the data time stamp from time synchronization protocol message;
Processing module, for by described temporal information component frame;
Sending module, for sending described frame, wherein, described frame is used for treating clock synchronization device and carries out clock synchronous.
10. device according to claim 9, is characterized in that, also comprises:
Select module, in the situation that the nanosecond position of local zone time be zero or the nanosecond position of local zone time be integer/mono-of whole second, select to send the set frequency of described frame, frequency corresponding to this set frequency is both fixed cycles.
11. 1 kinds of communication equipments, is characterized in that, comprising:
Receiver module, in the situation that receive the start bit of frame, receives described frame, wherein, for the frequency that receives described frame for sending the integral multiple of the set frequency of described frame;
Parsing module, for resolve described frame obtain described second position and described nanosecond position, to described, treat that clock synchronization device carries out clock synchronous.
CN201210204698.XA 2012-06-20 2012-06-20 Clock synchronizing method, device and communication equipment Active CN103516454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210204698.XA CN103516454B (en) 2012-06-20 2012-06-20 Clock synchronizing method, device and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210204698.XA CN103516454B (en) 2012-06-20 2012-06-20 Clock synchronizing method, device and communication equipment

Publications (2)

Publication Number Publication Date
CN103516454A true CN103516454A (en) 2014-01-15
CN103516454B CN103516454B (en) 2017-11-03

Family

ID=49898564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210204698.XA Active CN103516454B (en) 2012-06-20 2012-06-20 Clock synchronizing method, device and communication equipment

Country Status (1)

Country Link
CN (1) CN103516454B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320216A (en) * 2014-10-10 2015-01-28 宁波三星电气股份有限公司 Second pulse code compression method
WO2016112664A1 (en) * 2015-01-12 2016-07-21 中兴通讯股份有限公司 Time processing method and device
CN107547188A (en) * 2017-08-02 2018-01-05 北京东土军悦科技有限公司 A kind of clock recovery method and device
CN108028952A (en) * 2015-08-14 2018-05-11 夏普株式会社 The system and method that passing time represents
CN109426911A (en) * 2017-08-31 2019-03-05 华为技术有限公司 A kind of appraisal procedure and device of the software runtime environment quality of equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819579A (en) * 2005-12-15 2006-08-16 中国人民解放军国防科学技术大学 Open loop time delivering method
CN100479361C (en) * 2005-12-15 2009-04-15 中国人民解放军国防科学技术大学 Synchronous medium access controller
CN101867452A (en) * 2010-06-10 2010-10-20 国网电力科学研究院 Communication method of serial real-time bus special in electricity
CN101902291A (en) * 2009-05-27 2010-12-01 华为技术有限公司 Method, equipment and system for precise time synchronization
US20110019698A1 (en) * 2009-07-24 2011-01-27 Yuuki Akae Clock synchronization system, method, and apparatus for communication
CN102215100A (en) * 2011-04-27 2011-10-12 盛科网络有限公司 Virtual analog-to-digital conversion core device based on IEEE (Institute of Electrical and Electronic Engineers) 1588 Ethernet

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819579A (en) * 2005-12-15 2006-08-16 中国人民解放军国防科学技术大学 Open loop time delivering method
CN100479361C (en) * 2005-12-15 2009-04-15 中国人民解放军国防科学技术大学 Synchronous medium access controller
CN101902291A (en) * 2009-05-27 2010-12-01 华为技术有限公司 Method, equipment and system for precise time synchronization
US20110019698A1 (en) * 2009-07-24 2011-01-27 Yuuki Akae Clock synchronization system, method, and apparatus for communication
CN101867452A (en) * 2010-06-10 2010-10-20 国网电力科学研究院 Communication method of serial real-time bus special in electricity
CN102215100A (en) * 2011-04-27 2011-10-12 盛科网络有限公司 Virtual analog-to-digital conversion core device based on IEEE (Institute of Electrical and Electronic Engineers) 1588 Ethernet

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104320216A (en) * 2014-10-10 2015-01-28 宁波三星电气股份有限公司 Second pulse code compression method
CN104320216B (en) * 2014-10-10 2018-04-17 宁波三星智能电气有限公司 A kind of pulse per second (PPS) code compression method
WO2016112664A1 (en) * 2015-01-12 2016-07-21 中兴通讯股份有限公司 Time processing method and device
CN108028952A (en) * 2015-08-14 2018-05-11 夏普株式会社 The system and method that passing time represents
CN108028952B (en) * 2015-08-14 2020-12-11 夏普株式会社 Method and apparatus for signaling and constructing system time
CN107547188A (en) * 2017-08-02 2018-01-05 北京东土军悦科技有限公司 A kind of clock recovery method and device
CN107547188B (en) * 2017-08-02 2020-04-24 北京东土军悦科技有限公司 Clock recovery method and device
CN109426911A (en) * 2017-08-31 2019-03-05 华为技术有限公司 A kind of appraisal procedure and device of the software runtime environment quality of equipment
US11263112B2 (en) 2017-08-31 2022-03-01 Huawei Technologies Co., Ltd. Method and apparatus for evaluating quality of software running environment of device
CN109426911B (en) * 2017-08-31 2022-04-05 华为技术有限公司 Method and device for evaluating software running environment quality of equipment

Also Published As

Publication number Publication date
CN103516454B (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN102598556B (en) For the method and apparatus of optimizing packet timing transport
US8126333B2 (en) Optical transmission system and synchronization method using time reference pulse
CN108809356B (en) Method for realizing frequency hopping networking based on TDMA technology
US7664118B2 (en) System and method for high precision clock recovery over packet networks
CN103563287B (en) Synchronization device and synchronization method
CN102013931B (en) Time synchronization method and system, salve timing device and main timing device
CN102244603B (en) Method, equipment and system for transmitting message bearing time
EP1520380B1 (en) Synchronous data transfer system for time-sensitive data in packet-switched networks
CN101741853B (en) Method for synchronizing clock time, line card veneer and network equipment
CN109996325B (en) Clock synchronization system and method of wireless sensor network
EP2195949B1 (en) Method, computer program product and system for the tick synchronization of nodes in a wireless multi-hop network
CN101895384A (en) Method and device for implementing boundary clock
CN101741701A (en) Synchronous dispatching method and synchronous dispatching device
CN102349251A (en) Method for processing distributed data having a chosen type for synchronizing communication nodes of a data packet network, and associated device
CN103516454A (en) Clock synchronization method, device and communication apparatus
CN103152118B (en) A kind of Base Band Unit and radio frequency unit data service synchronization, device and system
CN101615948A (en) A kind of method and system that realize time synchronized
CN105323054A (en) Clock synchronization method and device
CN101247169A (en) Method, system and equipment for implementing time synchronization in communication network
CN100581094C (en) Network clock synchronizing method for short distance radio communication network
CN105610727A (en) Network data transmission method and device
CN102036323A (en) Mobile communication system, basic station and mobile terminal
CN107959537B (en) State synchronization method and device
CN102342051B (en) For coming the method for synchronised clock and relevant system and module by separating transmission first and second data via at least one time distribution protocol
CN1983869B (en) Wireless access controller and method for timed adjusting transmission channel between base stations

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant