CN103546268A - Method and device for compensating system time - Google Patents

Method and device for compensating system time Download PDF

Info

Publication number
CN103546268A
CN103546268A CN201310481697.4A CN201310481697A CN103546268A CN 103546268 A CN103546268 A CN 103546268A CN 201310481697 A CN201310481697 A CN 201310481697A CN 103546268 A CN103546268 A CN 103546268A
Authority
CN
China
Prior art keywords
time
message
reception
clock equipment
difference
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
CN201310481697.4A
Other languages
Chinese (zh)
Other versions
CN103546268B (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201310481697.4A priority Critical patent/CN103546268B/en
Publication of CN103546268A publication Critical patent/CN103546268A/en
Application granted granted Critical
Publication of CN103546268B publication Critical patent/CN103546268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for compensating system time. The method specifically includes that difference value of transmission delay produced by a first link and transmission delay produced by a second link is determined according to a second time difference of system time of a subordinate clock device and system time of a second principal clock device, so that a first time difference of current system time of the subordinate clock device and system time of a first principal clock device is determined according to the determined difference value, the system time of the subordinate clock device can be compensated when the subordinate clock device fails to output PPS (pulse per second)signals.

Description

A kind of compensation method of system time and equipment
Technical field
The present invention relates to communication technical field, relate in particular to a kind of compensation method and equipment of system time.
Background technology
Along with developing rapidly of mobile communication network technology, the clock synchronous ability of the mobile retransmission net based on Packet Transport Network (Packet Transport Network is called for short PTN) technology has obtained increasing attention.Particularly, the clock synchronous ability of PTN is mainly reflected in two aspect: the one, PTN can carrier time division multiplexing (Time-Division Multiplexing, TDM) business, and the mechanism of TDM service clock recovery is provided, TDM business data flow can also be synchronizeed with the business data flow of transmitting terminal after passing through PTN; The 2nd, PTN can provide high-precision network reference clock as TDM network, to meet the synchronisation requirement of network node or terminal.At present, the agreement that realizes clock synchronous mainly contains IEEE(Institute of Electrical and Electronics Engineers, international Institute of Electrical and Electric Engineers) 1588 agreements, can reach the time precision of nanosecond.
Yet, in PTN, because clock equipment (as time source server) arrives from clockwork (as supported the equipment of IEEE1588 agreement, hereinafter claim 1588 equipment) the length of the first transmission line (as twisted-pair feeder) and the length inconsistent (being that link is asymmetric) of the second transmission line from clockwork to clock equipment, therefore, clock equipment and the time of transmitting by the first transmission line from the message between clockwork and the Time Inconsistency transmitting by the second transmission line, cause can not synchronizeing from the system time of clockwork and the system time of clock equipment.In order to guarantee to synchronize from the system time of clockwork and the system time of clock equipment, need to determine that message is by first time of transmission line transmission and the difference of the time of transmitting by the second transmission line (being that asymmetric link postpones), and postpone according to the asymmetric link of determining, determine from the difference between the system time of clockwork and the system time of clock equipment, thereby the system time from clockwork is compensated.
At present, can to the system time from clockwork, compensate in the following manner:
Direct Compensation Method.Generally, the time delay that the twisted-pair feeder that length is 1m is introduced is approximately 5ns.Suppose that the difference of time source server to the twisted pair wire length of 1588 equipment and 1588 equipment to the twisted pair wire length of time source server is 10m, can determine that the asymmetric link between time source server and 1588 equipment postpones for 50ns, therefore, can postpone 50ns according to the asymmetric link of determining compensates the system time of 1588 equipment.
Such scheme can only carry out rough time bias, and precision is lower, and implements also comparatively trouble.In order to improve precision, there is again prior art to propose to adopt instrument compensation method to compensate the system time of 1588 equipment, its specific implementation process is: 1588 equipment output pulses per second (Pulse Per Second, PPS) signal is to time integrated test instrument (as TIME-ACC tester), by time integrated test instrument, measure the current system time of 1588 equipment and global positioning system (Global Positioning System, the difference of system time GPS), and according to the difference recording, 1588 equipment are manually compensated.
Yet such scheme is because needs 1588 equipment possess the function that can export PPS signal, so such scheme is infeasible for 1588 equipment that can not export PPS signal.
Summary of the invention
The embodiment of the present invention provides a kind of compensation method and equipment of system time, in order to solve in prior art, exist for 1588 equipment that can not export PPS signal, cannot utilize time integrated test instrument to measure the difference of the system time of this 1588 equipment and the system time of GPS, and then the problem that cannot compensate the system time of this 1588 equipment.
A compensation method for system time, described method comprises:
The transmitting time of the first message comprising in the time of reception, the first message of determining the first message being sent by the first clock equipment receive by the first link from clockwork, from clockwork, by second chain road direction the first clock equipment, send the transmitting time of the second message, and the first clock equipment receives the time of reception of the second message; According to the time of reception of the transmitting time of the transmitting time of the time of reception of the first message of determining, the first message, the second message, the second message, and the difference of the propagation delay time being produced by the first link pre-determining out and the propagation delay time being produced by the second link, it is poor from the very first time of the system time of clockwork and the system time of the first clock equipment to determine; According to the described very first time difference of determining, the system time of self is compensated; Wherein, described difference obtains in the following manner: the transmitting time of the 3rd message comprising in the time of reception, the 3rd message of determining the 3rd message being sent by the second clock equipment receive by the 3rd link from clockwork, from clockwork, by the 3rd chain road direction the second clock equipment, send the transmitting time of the 4th message, and the second clock equipment receives the time of reception of the 4th message; According to the time of reception of the transmitting time of the transmitting time of the time of reception of the 3rd message of determining, the 3rd message, the 4th message and the 4th message, determine the second time difference from the system time of clockwork and the system time of the second clock equipment; According to the transmitting time of the 5th message comprising in the time of reception of the 5th message being sent by the first clock equipment receiving by the first link, the 5th message, send the transmitting time of the 6th message, the first clock equipment receives the time of reception of the 6th message from clockwork by second chain road direction the first clock equipment, and described the second time difference, determine described difference; Wherein, the system time of the first clock equipment and the second clock equipment is synchronous.
Employing such scheme can be according to the second time difference of the system time of the system time from clockwork and the second clock equipment, determine the difference of the propagation delay time being produced by the first link and the propagation delay time being produced by the second link, thereby according to the difference of determining, determine that current time is poor from the very first time of the system time of clockwork and the system time of the first clock equipment, can in the situation that can not exporting PPS signal from clockwork, to the system time from clockwork, compensate.
Particularly, according to following formula, determine described difference: D ms-D sm=T2 ' '-T1 ' '-T4 ' '+T3 ' '-2Offset '; Wherein, T1 ' ' is the transmitting time of described the 5th message, and T2 ' ' is the time of reception of described the 5th message, and T3 ' ' is the transmitting time of described the 6th message, and T4 ' ' is the time of reception of described the 6th message, D ms-D smfor described difference; Offset ' is described the second time difference, according to following formula, determines: Offset '=(T2 '-T1 '-T4 '+T3 ')/2; Wherein, T1 ' is the transmitting time of described the 3rd message, and T2 ' is the time of reception of described the 3rd message, and T3 ' is the transmitting time of described the 4th message, and T4 ' is the time of reception of described the 4th message.
Particularly, described the first message, described the 3rd message and described the 5th message are specially synchronous SYNC message; Described the second message, described the 4th message and described the 6th message are specially and postpone request DELAY_REQUEST message.
Particularly, the first clock equipment and the system time of the second clock equipment and the system time of global position system GPS are synchronizeed.
So, can guarantee that the system time from clockwork carries out time bias synchronizes with the system time of GPS.
A kind of compensation equipment of system time, described equipment comprises: very first time determination module, poor determination module of the very first time, compensating module, the second time determination module, the second time difference determination module and difference determination module, wherein: very first time determination module, for determining the time of reception of the first message being sent by the first clock equipment receiving by the first link, the transmitting time of the first message comprising in the first message, the compensation equipment of described system time sends the transmitting time of the second message by second chain road direction the first clock equipment, and first clock equipment receive the time of reception of the second message, poor determination module of the very first time, for the time of reception of the first message determined according to very first time determination module, the transmitting time of the transmitting time of the first message, the second message, the time of reception of the second message, and the difference of difference the determination module propagation delay time being produced by the first link of determining and the propagation delay time being produced by the second link, determine that the system time of compensation equipment of described system time and the very first time of the system time of the first clock equipment are poor, compensating module, compensates the system time of the compensation equipment of described system time for the very first time difference of determining according to poor determination module of the very first time, the second time determination module, for determining that the time of reception of the 3rd message being sent by the second clock equipment receive by the 3rd link, the 3rd transmitting time of message that the 3rd message comprises are, the compensation equipment of described system time sends the transmitting time of the 4th message by the 3rd chain road direction the second clock equipment, and the second clock equipment receives the time of reception of the 4th message, the second time difference determination module, for the time of reception of the 3rd message determined according to the second time determination module,, the transmitting time of the transmitting time of the 3rd message, the 4th message and the time of reception of the 4th message, determine the second time difference of the system time of compensation equipment and the system time of the second clock equipment of described system time, difference determination module, the time of reception of the 5th message being sent by the first clock equipment receiving by the first link for basis, the 5th transmitting time of message that the 5th message comprises are, the compensation equipment of described system time sends the transmitting time of the 6th message, the time of reception that the first clock equipment receives the 6th message by second chain road direction the first clock equipment, and second the second time difference determined of time difference determination module, determine the difference of the propagation delay time being produced by the first link and the propagation delay time being produced by the second link, wherein, the system time of the first clock equipment and the second clock equipment is synchronous.
Particularly, described the second time difference determination module is specifically for determining described the second time difference: Offset '=(T2 '-T1 '-T4 '+T3 ')/2 according to following formula; Wherein, T1 ' is the transmitting time of described the 3rd message, and T2 ' is the time of reception of described the 3rd message, and T3 ' is the transmitting time of described the 4th message, and T4 ' is the time of reception of described the 4th message, and Offset ' is described the second time difference.
Particularly, described difference determination module is specifically for determining described difference: D according to following formula ms-D sm=T2 ' '-T1 ' '-T4 ' '+T3 ' '-2Offset '; Wherein, T1 ' ' is the transmitting time of described the 5th message, and T2 ' ' is the time of reception of described the 5th message, and T3 ' ' is the transmitting time of described the 6th message, and T4 ' ' is the time of reception of described the 6th message, D ms-D smfor described difference.
Particularly, described the first message, described the 3rd message and described the 5th message are specially SYNC message; Described the second message, described the 4th message and described the 6th message are specially DELAY_REQUEST message.
Particularly, the first clock equipment and the system time of the second clock equipment and the system time of GPS are synchronizeed.
Accompanying drawing explanation
Fig. 1 is from the message transmission link schematic diagram between clockwork and the first clock equipment in the embodiment of the present invention;
Fig. 2 is the method step schematic diagram in the embodiment of the present invention one;
Fig. 3 is from the annexation schematic diagram between clockwork and the first clock equipment and the second clock equipment in the embodiment of the present invention one;
Fig. 4 is from the message interaction schematic diagram between clockwork and the first clock equipment and the second clock equipment in the embodiment of the present invention one;
Fig. 5 is the device structure schematic diagram in the embodiment of the present invention two.
Embodiment
The scheme utilization of the embodiment of the present invention is from the difference of the system time of clockwork and the system time of the second clock equipment, determine that (described asymmetric link postpones to refer to that message passes through the first link transmission to the time from clockwork from the first clock equipment from the asymmetric link delay between clockwork and the first clock equipment, with the difference of message from the time by the second link transmission to the first clock equipment from clockwork), thereby postpone to determine the difference from the system time of clockwork and the system time of the first clock equipment according to the asymmetric link of determining, can in the situation that can not exporting PPS signal from clockwork, to the system time from clockwork, compensate.
It should be noted that, the link between clockwork and the first clock equipment in embodiment of the present invention scheme is asymmetric, be message from the first clock equipment by the first link transmission to from clockwork and message from from clockwork by the second link transmission to the first clock equipment, be illustrated in figure 1 from the message transmission link schematic diagram between clockwork and the first clock equipment.Based on this, message passes through the first link transmission to the time from clockwork from the first clock equipment, with message from from clockwork by the Time Inconsistency of the second link transmission to the first clock equipment, from there is asymmetric link delay between clockwork and the first clock equipment.The object of embodiment of the present invention scheme was according to postponing from the asymmetric link between clockwork and the first clock equipment of determining, determine the difference from the system time of clockwork and the system time of the first clock equipment, thereby the system time from clockwork is compensated.
Below in conjunction with Figure of description, embodiments of the present invention is further illustrated, but the present invention is not limited to the following examples.
Embodiment mono-:
As shown in Figure 2, be the step schematic diagram of the compensation method of system time in the embodiment of the present invention one, described method mainly comprises the following steps:
Step 101: receive the first message being sent by the first clock equipment from clockwork by the first link, obtain the transmitting time T1 of the first message from the first message, and determine the time of reception T2 of the first message.
The specific implementation of this step 101 can be:
The first clock equipment sends synchronous SYNC message by the first chain road direction from clockwork constantly at T1, after the transmission of SYNC message by the first link, at T2, constantly arrives from clockwork.Wherein, T1 is specially timestamp constantly, represent that the first clock equipment sends the moment of SYNC message, corresponding with the system time of the first clock equipment, the first clock equipment can be carried at the timestamp that sends this SYNC message in SYNC message when sending SYNC message, from clockwork, can from SYNC message, obtain the transmitting time T1 of SYNC message.T2 is specially timestamp constantly, represents that SYNC message arrives the moment from clockwork, corresponding with the system time from clockwork.
Step 102: send the second message from clockwork by second chain road direction the first clock equipment, and determine the transmitting time T3 of the second message and the time of reception T4 that the first clock equipment receives the second message.
The specific implementation of this step 102 can be:
From clockwork receiving the SYNC message that the first clock equipment sends, at T3, constantly by second chain road direction the first clock equipment transmission lag request DELAY_REQUEST message, DELAY_REQUEST message arrives the first clock equipment constantly at T4 after by the transmission of the second link.Wherein, T3 is specially timestamp constantly, represents to send from clockwork the moment of DELAY_REQUEST message, corresponding with the system time from clockwork.T4 is specially timestamp constantly, represents that DELAY_REQUEST message arrives the moment of the first clock equipment, corresponding with the system time of the first clock equipment.
Further, the first clock equipment is after receiving DELAY_REQUEST message, can, again to sending a delayed response DELAY_RESPONSE message from clockwork, the moment T4 that receives DELAY_REQUEST message be carried in DELAY_RESPONSE message and be informed from clockwork.
Step 103: from clockwork according to the transmitting time T1 of the first message that determines, the transmitting time T3 of the time of reception T2 of the first message, the second message, the time of reception T4 of the second message, and the propagation delay time D being produced by the first link pre-determining out mswith the propagation delay time D being produced by the second link smdifference, determine from the very first time of the system time of clockwork and the system time of the first clock equipment and differ from Offset.
Particularly, the definite mode of the Offset in this step 103 is specially:
Offset=[T2-T1-T4+T3-(D ms-D sm)]/2 (1)
Wherein, D ms-D smfor message passes through the first link transmission to the time from clockwork from the first clock equipment,, from pass through the difference of the time of the second link transmission to the first clock equipment from clockwork, from the asymmetric link between clockwork and the first clock equipment, postpone with message.Particularly, D ms-D smcan determine in the following manner:
First, by being connected with the first clock equipment by PTN from port (being SLAVE port) from clockwork (as 1588 equipment) in embodiment of the present invention scheme, measurement port from clockwork is connected with the second clock equipment by an optical fiber or twisted-pair feeder, and its annexation schematic diagram as shown in Figure 3.Wherein, the first clock equipment sends message by the first chain road direction from clockwork, from clockwork, by second chain road direction the first clock equipment, send message (asymmetric from the link between clockwork and the first clock equipment), from between clockwork and the second clock equipment by the 3rd link transmission message (symmetrical from link between clockwork and the second clock equipment), the system time of the first clock equipment and the second clock equipment is synchronously and all synchronize with the system time of GPS.
In section, from the measurement port of clockwork, can receive the 3rd message that the second clock equipment sends by the 3rd link at one time, and send the 4th message by the 3rd chain road direction the second clock equipment; And can receive from the SLAVE port of clockwork the 5th message that the first clock equipment sends by the first link, and send the 6th message by second chain road direction the first clock equipment.From clockwork, according to the time of reception T4 ' of the transmitting time T1 ' of the 3rd message, the time of reception T2 ' of the 3rd message, the transmitting time T3 ' of the 4th message and the 4th message, can determine from the second time difference Offset ' of the system time of clockwork and the system time of the second clock equipment.Further, from clockwork according to the transmitting time T1 ' ' of the 5th message, the time of reception T2 ' ' of the 5th message, the time of reception T4 ' ' of the transmitting time T3 ' ' of the 6th message, the 6th message, and above-mentioned the second time difference Offset ', can determine the propagation delay time D being produced by the first link mswith the propagation delay time D being produced by the second link smdifference (be D ms-D sm).Wherein, SYNC message, the 4th message and the 6th message that above-mentioned the 3rd message and the 5th message are specially 1588 agreements is specially the DELAY_RESPONSE message of 1588 agreements.Particularly, from the message interaction between clockwork and the first clock equipment and the second clock equipment as shown in Figure 4, its specific implementation process is as follows:
The second clock equipment sends SYNC message by the 3rd chain road direction from clockwork constantly at T1 ', and SYNC message is by constantly arriving from clockwork at T2 ' after the transmission of the 3rd link.From clockwork receiving the SYNC message that the second clock equipment sends, at T3 ', constantly by the 3rd chain road direction the second clock equipment, send DELAY_REQUEST message, DELAY_REQUEST message arrives the second clock equipment in the T4 ' moment after by the transmission of the 3rd link.
Wherein, T1 ' is specially timestamp constantly, represent that the second clock equipment sends the moment of SYNC message, corresponding with the system time of the second clock equipment, the second clock equipment can be carried at the timestamp that sends this SYNC message in SYNC message when sending SYNC message, from clockwork, can from SYNC message, obtain the transmitting time T1 ' of SYNC message.T2 ' is specially timestamp constantly, represents that SYNC message arrives the moment from clockwork, corresponding with the system time from clockwork.T3 ' is specially timestamp constantly, represents to send from clockwork the moment of DELAY_REQUEST message, corresponding with the system time from clockwork.T4 ' is specially timestamp constantly, represents that DELAY_REQUEST message arrives the moment of the second clock equipment, corresponding with the system time of the second clock equipment.The second clock equipment is after receiving DELAY_REQUEST message, can, again to sending a DELAY_RESPONSE message from clockwork, the moment T4 ' that receives DELAY_REQUEST message be carried in DELAY_RESPONSE message and be informed from clockwork.
Meanwhile, the first clock equipment sends SYNC message by the first chain road direction from clockwork constantly at T1 ' ', and SYNC message is by constantly arriving from clockwork at T2 ' ' after the transmission of the first link.From clockwork receiving the SYNC message that the first clock equipment sends, at T3 ' ', constantly by second chain road direction the first clock equipment, send DELAY_REQUEST message, DELAY_REQUEST message arrives the first clock equipment in the T4 ' ' moment after by the transmission of the second link.
Wherein, T1 ' ' is specially timestamp constantly, represent that the first clock equipment sends the moment of SYNC message, corresponding with the system time of the first clock equipment, the first clock equipment can be carried at the timestamp that sends this SYNC message in SYNC message when sending SYNC message, from clockwork, can from SYNC message, obtain the transmitting time T1 ' ' of SYNC message.T2 ' ' is specially timestamp constantly, represents that SYNC message arrives the moment from clockwork, corresponding with the system time from clockwork.T3 ' ' is specially timestamp constantly, represents to send from clockwork the moment of DELAY_REQUEST message, corresponding with the system time from clockwork.T4 ' ' is specially timestamp constantly, represents that DELAY_REQUEST message arrives the moment of the first clock equipment, corresponding with the system time of the first clock equipment.The first clock equipment is after receiving DELAY_REQUEST message, can, again to sending a DELAY_RESPONSE message from clockwork, the moment T4 ' ' that receives DELAY_REQUEST message be carried in DELAY_RESPONSE message and be informed from clockwork.
According to the regulation of 1588 agreements, the relation between T1 ', T2 ', T3 ' and T4 ' meets following formula:
T2’=T1’+D+Offset’ (2)
T4’=T3’+D-Offset’ (3)
Wherein, D be the second clock equipment and from the message between clockwork by the time of the 3rd link transmission, due to the second clock equipment and symmetrical from the link between clockwork, so formula (2) is identical with the D in formula (3); Offset ' is the difference from the system time of the system time of clockwork and the second clock equipment.
According to formula (2) and formula (3), can determine from the second time difference of the system time of clockwork and the system time of the second clock equipment:
Offset’=(T2’-T1’-T4’+T3’)/2 (4)
According to the regulation of 1588 agreements, the relation between T1 ' ', T2 ' ', T3 ' ' and T4 ' ' meets following formula:
T2’’=T1’’+D ms+Offset’ (5)
T4’’=T3’’+D sm-Offset’ (6)
Due to the first clock equipment and the second clock equipment simultaneously with from clockwork, be connected, and the system time of the first clock equipment and the second clock equipment is synchronous and all synchronize with the system time of GPS, therefore, Offset ' in formula (5) and formula (6) is identical with the Offset ' in formula (2) and formula (3), and formula (4) substitution formula (5) can be obtained:
D ms=T2’’-T1’’-Offset’=T2’’-T1’’-(T2’-T1’-T4’+T3’)/2 (7)
Formula (4) substitution formula (6) can be obtained:
D sm=T4’’-T3’’+Offset’=T4’’-T3’’+(T2’-T1’-T4’+T3’)/2 (8)
According to formula (7) and formula (8), can determine:
D ms-D sm=T2’’-T1’’-T4’’+T3’’-2Offset’
=(T2’’-T1’’-T4’’+T3’’)-(T2’-T1’-T4’+T3’) (9)
Can determine by the way the propagation delay time being produced by the first link (is D with the difference of the propagation delay time being produced by the second link ms-D sm).Due to the first clock equipment and from the link between clockwork, can not change, even follow-up, withdraw the second clock equipment and can not produce any impact yet, therefore, can think D ms-D smimmobilize, by the D determining ms-D smsubstitution formula (1), can determine that current time is poor from the very first time of the system time of clockwork and the system time of the first clock equipment:
Offset=[T2-T1-T4+T3-(T2’’-T1’’-T4’’+T3’’)+(T2’-T1’-T4’+T3’)]/2 (10)
Step 104: according to the very first time difference of determining, the system time of self is compensated from clockwork.
In step 103, determine current time from the very first time difference of the system time of clockwork and the system time of the first clock equipment, these 104 steps can compensate the system time of self according to the very first time difference of determining.
For example, suppose to determine current time from the poor 50ns of being of the very first time of the system time of clockwork and the system time of the first clock equipment from the message interaction between clockwork basis and the first clock equipment, offset-50ns can be set, with realize self with the first clock equipment and GPS between synchronize.
Embodiment bis-:
The present embodiment two is to belong to the compensation equipment of the system time of same inventive concept with embodiment mono-, as shown in Figure 5, described equipment comprises: very first time determination module 11, poor determination module 12 of the very first time, compensating module 13, the second time determination module 14, the second time difference determination module 15 and difference determination module 16, wherein:
Very first time determination module 11 is for determining that the time of reception of the first message being sent by the first clock equipment receive by the first link, the transmitting time of the first message that the first message comprises are, the compensation equipment of described system time sends the transmitting time of the second message by second chain road direction the first clock equipment, and the first clock equipment receives the time of reception of the second message.
Poor determination module 12 of the very first time for the time of reception of the first message determined according to very first time determination module 11, the transmitting time of the transmitting time of the first message, the second message, the time of reception of the second message, and the difference of difference determination module 16 propagation delay time being produced by the first link of determining and the propagation delay time being produced by the second link, determine that the system time of compensation equipment of described system time and the very first time of the system time of the first clock equipment are poor.
Compensating module 13 is for compensating the system time of the compensation equipment of described system time according to the poor very first time difference of determining that 12 modules are determined of the very first time.
The second time determination module 14 is for determining that the time of reception of the 3rd message being sent by the second clock equipment receive by the 3rd link, the 3rd transmitting time of message that the 3rd message comprises are, the compensation equipment of described system time sends the transmitting time of the 4th message by the 3rd chain road direction the second clock equipment, and the second clock equipment receives the time of reception of the 4th message.
The second time difference determination module 15, the transmitting time of the transmitting time of the 3rd message, the 4th message and the time of reception of the 4th message, is determined the second time difference of the system time of compensation equipment and the system time of the second clock equipment of described system time for the time of reception of the 3rd message determined according to the second time determination module 14.
The time of reception of the 5th message being sent by the first clock equipment that difference determination module 16 receives by the first link for basis, the 5th transmitting time of message that the 5th message comprises are, the compensation equipment of described system time sends the transmitting time of the 6th message, the first clock equipment receives the time of reception of the 6th message by second chain road direction the first clock equipment, and second the second time difference determined of time difference determination module 15, determine the difference of the propagation delay time being produced by the first link and the propagation delay time being produced by the second link.
Wherein, the system time of the first clock equipment and the second clock equipment is synchronous.
Particularly, the second time difference determination module 15 is specifically for determining described the second time difference: Offset '=(T2 '-T1 '-T4 '+T3 ')/2 according to following formula; Wherein, T1 ' is the transmitting time of described the 3rd message, and T2 ' is the time of reception of described the 3rd message, and T3 ' is the transmitting time of described the 4th message, and T4 ' is the time of reception of described the 4th message, and Offset ' is described the second time difference.
Particularly, difference determination module 16 is specifically for determining described difference: D according to following formula ms-D sm=T2 ' '-T1 ' '-T4 ' '+T3 ' '-2Offset '; Wherein, T1 ' ' is the transmitting time of described the 5th message, and T2 ' ' is the time of reception of described the 5th message, and T3 ' ' is the transmitting time of described the 6th message, and T4 ' ' is the time of reception of described the 6th message, D ms-D smfor described difference.
Particularly, described the first message, described the 3rd message and described the 5th message are specially SYNC message; Described the second message, described the 4th message and described the 6th message are specially DELAY_REQUEST message.
Particularly, the first clock equipment and the system time of the second clock equipment and the system time of GPS are synchronizeed.
It should be noted that, in the embodiment of the present invention two, to the description of each part of the compensation equipment of system time, be the description to each part major function, in the embodiment of the present invention two, each part also possesses the function that realizes the method step described in embodiment mono-, meanwhile, the compensation equipment of the system time in the embodiment of the present invention two also has the logic module of carrying out embodiment mono-each step.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (9)

1. a compensation method for system time, is characterized in that, described method comprises:
The transmitting time of the first message comprising in the time of reception, the first message of determining the first message being sent by the first clock equipment receive by the first link from clockwork, from clockwork, by second chain road direction the first clock equipment, send the transmitting time of the second message, and the first clock equipment receives the time of reception of the second message;
According to the time of reception of the transmitting time of the transmitting time of the time of reception of the first message of determining, the first message, the second message, the second message, and the difference of the propagation delay time being produced by the first link pre-determining out and the propagation delay time being produced by the second link, it is poor from the very first time of the system time of clockwork and the system time of the first clock equipment to determine;
According to the described very first time difference of determining, the system time of self is compensated;
Wherein, described difference obtains in the following manner:
The transmitting time of the 3rd message comprising in the time of reception, the 3rd message of determining the 3rd message being sent by the second clock equipment receive by the 3rd link from clockwork, from clockwork, by the 3rd chain road direction the second clock equipment, send the transmitting time of the 4th message, and the second clock equipment receives the time of reception of the 4th message;
According to the time of reception of the transmitting time of the transmitting time of the time of reception of the 3rd message of determining, the 3rd message, the 4th message and the 4th message, determine the second time difference from the system time of clockwork and the system time of the second clock equipment;
According to the transmitting time of the 5th message comprising in the time of reception of the 5th message being sent by the first clock equipment receiving by the first link, the 5th message, send the transmitting time of the 6th message, the first clock equipment receives the time of reception of the 6th message from clockwork by second chain road direction the first clock equipment, and described the second time difference, determine described difference;
Wherein, the system time of the first clock equipment and the second clock equipment is synchronous.
2. the compensation method of the system as claimed in claim 1 time, is characterized in that, according to following formula, determines described difference:
D ms-D sm=T2’’-T1’’-T4’’+T3’’-2Offset’;
Wherein, T1 ' ' is the transmitting time of described the 5th message, and T2 ' ' is the time of reception of described the 5th message, and T3 ' ' is the transmitting time of described the 6th message, and T4 ' ' is the time of reception of described the 6th message, D ms-D smfor described difference;
Offset ' is described the second time difference, according to following formula, determines:
Offset’=(T2’-T1’-T4’+T3’)/2;
Wherein, T1 ' is the transmitting time of described the 3rd message, and T2 ' is the time of reception of described the 3rd message, and T3 ' is the transmitting time of described the 4th message, and T4 ' is the time of reception of described the 4th message.
3. the compensation method of system time as claimed in claim 1 or 2, is characterized in that,
Described the first message, described the 3rd message and described the 5th message are specially synchronous SYNC message;
Described the second message, described the 4th message and described the 6th message are specially and postpone request DELAY_REQUEST message.
4. the compensation method of system time as claimed in claim 3, is characterized in that,
The system time of the first clock equipment and the second clock equipment is synchronizeed with the system time of global position system GPS.
5. a compensation equipment for system time, is characterized in that, described equipment comprises: very first time determination module, poor determination module of the very first time, compensating module, the second time determination module, the second time difference determination module and difference determination module, wherein:
Very first time determination module, for determining that the time of reception of the first message being sent by the first clock equipment receive by the first link, the transmitting time of the first message that the first message comprises are, the compensation equipment of described system time sends the transmitting time of the second message by second chain road direction the first clock equipment, and the first clock equipment receives the time of reception of the second message;
Poor determination module of the very first time, for the time of reception of the first message determined according to very first time determination module, the transmitting time of the transmitting time of the first message, the second message, the time of reception of the second message, and the difference of difference the determination module propagation delay time being produced by the first link of determining and the propagation delay time being produced by the second link, determine that the system time of compensation equipment of described system time and the very first time of the system time of the first clock equipment are poor;
Compensating module, compensates the system time of the compensation equipment of described system time for the very first time difference of determining according to poor determination module of the very first time;
The second time determination module, for determining that the time of reception of the 3rd message being sent by the second clock equipment receive by the 3rd link, the 3rd transmitting time of message that the 3rd message comprises are, the compensation equipment of described system time sends the transmitting time of the 4th message by the 3rd chain road direction the second clock equipment, and the second clock equipment receives the time of reception of the 4th message;
The second time difference determination module, for the time of reception of the 3rd message determined according to the second time determination module,, the transmitting time of the transmitting time of the 3rd message, the 4th message and the time of reception of the 4th message, determine the second time difference of the system time of compensation equipment and the system time of the second clock equipment of described system time;
Difference determination module, the time of reception of the 5th message being sent by the first clock equipment receiving by the first link for basis, the 5th transmitting time of message that the 5th message comprises are, the compensation equipment of described system time sends the transmitting time of the 6th message, the time of reception that the first clock equipment receives the 6th message by second chain road direction the first clock equipment, and second the second time difference determined of time difference determination module, determine the difference of the propagation delay time being produced by the first link and the propagation delay time being produced by the second link;
Wherein, the system time of the first clock equipment and the second clock equipment is synchronous.
6. the compensation equipment of system time as claimed in claim 5, is characterized in that,
Described the second time difference determination module is specifically for determining described the second time difference according to following formula:
Offset’=(T2’-T1’-T4’+T3’)/2;
Wherein, T1 ' is the transmitting time of described the 3rd message, and T2 ' is the time of reception of described the 3rd message, and T3 ' is the transmitting time of described the 4th message, and T4 ' is the time of reception of described the 4th message, and Offset ' is described the second time difference.
7. the compensation equipment of system time as claimed in claim 6, is characterized in that,
Described difference determination module is specifically for determining described difference according to following formula:
D ms-D sm=T2’’-T1’’-T4’’+T3’’-2Offset’;
Wherein, T1 ' ' is the transmitting time of described the 5th message, and T2 ' ' is the time of reception of described the 5th message, and T3 ' ' is the transmitting time of described the 6th message, and T4 ' ' is the time of reception of described the 6th message, D ms-D smfor described difference.
8. the compensation equipment of the system time as described in as arbitrary in claim 5~7, is characterized in that,
Described the first message, described the 3rd message and described the 5th message are specially SYNC message;
Described the second message, described the 4th message and described the 6th message are specially DELAY_REQUEST message.
9. the compensation equipment of system time as claimed in claim 8, is characterized in that,
The system time of the first clock equipment and the second clock equipment is synchronizeed with the system time of GPS.
CN201310481697.4A 2013-10-15 2013-10-15 The compensation method of a kind of system time and equipment Active CN103546268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310481697.4A CN103546268B (en) 2013-10-15 2013-10-15 The compensation method of a kind of system time and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310481697.4A CN103546268B (en) 2013-10-15 2013-10-15 The compensation method of a kind of system time and equipment

Publications (2)

Publication Number Publication Date
CN103546268A true CN103546268A (en) 2014-01-29
CN103546268B CN103546268B (en) 2016-08-10

Family

ID=49969351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310481697.4A Active CN103546268B (en) 2013-10-15 2013-10-15 The compensation method of a kind of system time and equipment

Country Status (1)

Country Link
CN (1) CN103546268B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016045340A1 (en) * 2014-09-23 2016-03-31 深圳市中兴微电子技术有限公司 Clock synchronization method, optical network unit and storage medium
CN105656588A (en) * 2015-12-25 2016-06-08 中国科学院深圳先进技术研究院 Method and device for transmitting high precision timing signals and data
WO2017096994A1 (en) * 2015-12-11 2017-06-15 深圳市中兴微电子技术有限公司 Clock synchronization method, device and system, and storage medium
CN107396092A (en) * 2017-07-19 2017-11-24 西安万像电子科技有限公司 Processing method, the device and system of view data
CN112202525A (en) * 2020-10-29 2021-01-08 电信科学技术第五研究所有限公司 PPS (pulse per second) delay automatic measurement and compensation method of multi-board card equipment
CN112436914A (en) * 2019-08-26 2021-03-02 烽火通信科技股份有限公司 Method and system for protecting master and slave 5G ultrahigh-precision clocks
WO2021196090A1 (en) * 2020-04-01 2021-10-07 深圳市汇顶科技股份有限公司 Time synchronization and broadcast setting methods, chip, electronic device, and storage medium
CN114647179A (en) * 2020-12-18 2022-06-21 华为技术有限公司 Master clock device, slave clock device and time synchronization method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070008993A1 (en) * 2005-07-06 2007-01-11 Samsung Electronics Co.; Ltd Method for time synchronization in residential Ethernet system
JP2012023654A (en) * 2010-07-16 2012-02-02 Kddi Corp Time synchronization device via network
CN102833062A (en) * 2012-09-25 2012-12-19 广东电网公司珠海供电局 Time synchronization method and system for synchronous messages of IEEE1588 (Precision Time Protocol) master-slave clocks of intelligent transformer substation
CN102891747A (en) * 2011-07-19 2013-01-23 上海贝尔股份有限公司 Clock synchronization method and device in communication network
CN102957489A (en) * 2008-02-03 2013-03-06 大唐移动通信设备有限公司 Clock synchronization method and master-slave clock entity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070008993A1 (en) * 2005-07-06 2007-01-11 Samsung Electronics Co.; Ltd Method for time synchronization in residential Ethernet system
CN102957489A (en) * 2008-02-03 2013-03-06 大唐移动通信设备有限公司 Clock synchronization method and master-slave clock entity
JP2012023654A (en) * 2010-07-16 2012-02-02 Kddi Corp Time synchronization device via network
CN102891747A (en) * 2011-07-19 2013-01-23 上海贝尔股份有限公司 Clock synchronization method and device in communication network
CN102833062A (en) * 2012-09-25 2012-12-19 广东电网公司珠海供电局 Time synchronization method and system for synchronous messages of IEEE1588 (Precision Time Protocol) master-slave clocks of intelligent transformer substation

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016045340A1 (en) * 2014-09-23 2016-03-31 深圳市中兴微电子技术有限公司 Clock synchronization method, optical network unit and storage medium
CN105515704A (en) * 2014-09-23 2016-04-20 深圳市中兴微电子技术有限公司 Clock synchronization method and optical network unit
WO2017096994A1 (en) * 2015-12-11 2017-06-15 深圳市中兴微电子技术有限公司 Clock synchronization method, device and system, and storage medium
CN105656588A (en) * 2015-12-25 2016-06-08 中国科学院深圳先进技术研究院 Method and device for transmitting high precision timing signals and data
CN107396092A (en) * 2017-07-19 2017-11-24 西安万像电子科技有限公司 Processing method, the device and system of view data
CN107396092B (en) * 2017-07-19 2019-05-24 西安万像电子科技有限公司 Processing method, the device and system of image data
CN112436914A (en) * 2019-08-26 2021-03-02 烽火通信科技股份有限公司 Method and system for protecting master and slave 5G ultrahigh-precision clocks
WO2021196090A1 (en) * 2020-04-01 2021-10-07 深圳市汇顶科技股份有限公司 Time synchronization and broadcast setting methods, chip, electronic device, and storage medium
CN112202525A (en) * 2020-10-29 2021-01-08 电信科学技术第五研究所有限公司 PPS (pulse per second) delay automatic measurement and compensation method of multi-board card equipment
CN112202525B (en) * 2020-10-29 2022-11-01 电信科学技术第五研究所有限公司 PPS delay automatic measurement and compensation method of multi-board card equipment
CN114647179A (en) * 2020-12-18 2022-06-21 华为技术有限公司 Master clock device, slave clock device and time synchronization method
WO2022127337A1 (en) * 2020-12-18 2022-06-23 华为技术有限公司 Master clock device, slave clock device and time synchronization method

Also Published As

Publication number Publication date
CN103546268B (en) 2016-08-10

Similar Documents

Publication Publication Date Title
CN103546268A (en) Method and device for compensating system time
EP3491753B1 (en) System and methods for network synchronization
CN106162860A (en) The method and system of a kind of time synchronized, the network equipment
CN101547083B (en) Time synchronizer, time synchronization system and time synchronization method
EP2941006B1 (en) Method and system for clock reference streams
EP2528254A1 (en) Method and device for time synchronization
KR20150143801A (en) Timestamp generating method, device and system
CN103168440B (en) Time path compensation method and device
CN102082697A (en) Communication path asymmetric time delay measuring method, device and system
CN103299575B (en) Transmitting device and transmission method
CN103929263A (en) Network communication method, network communication delay determining method and network communication local time synchronizing method
CN103188066A (en) Reference clock signal processing method and device
JP6132734B2 (en) Time synchronization system and apparatus
CN110120846A (en) A kind of clock synchronizing method and system
JP6227888B2 (en) Communication system, synchronization system, and communication method
CN102932083A (en) Microwave time synchronization method and device
CN104243079A (en) Microsecond clock synchronization method for real-time Ethernet
CN108738127B (en) Radio remote unit, baseband processing unit, distributed base station and synchronization method thereof
CN103138865A (en) Time synchronization method and time synchronization device
CN113424466B (en) Method and device for clock synchronization
CN102916758A (en) Ethernet time synchronization device and network equipment
CN103686990A (en) Device for achieving clock synchronization
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
CN101420281B (en) Method and arrangement for transferring a time of day value between network elements
CN101765199A (en) Communication system and time synchronization method in system and OTN equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant