CN102638324A - Method and device for realizing precise time synchronization - Google Patents

Method and device for realizing precise time synchronization Download PDF

Info

Publication number
CN102638324A
CN102638324A CN201210084146XA CN201210084146A CN102638324A CN 102638324 A CN102638324 A CN 102638324A CN 201210084146X A CN201210084146X A CN 201210084146XA CN 201210084146 A CN201210084146 A CN 201210084146A CN 102638324 A CN102638324 A CN 102638324A
Authority
CN
China
Prior art keywords
time
uplink
slave unit
returns
ring
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
CN201210084146XA
Other languages
Chinese (zh)
Other versions
CN102638324B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210084146.XA priority Critical patent/CN102638324B/en
Publication of CN102638324A publication Critical patent/CN102638324A/en
Priority to PCT/CN2013/072354 priority patent/WO2013143385A1/en
Application granted granted Critical
Publication of CN102638324B publication Critical patent/CN102638324B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/07Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems
    • H04B10/075Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal
    • H04B10/077Arrangements for monitoring or testing transmission systems; Arrangements for fault measurement of transmission systems using an in-service signal using a supervisory or additional signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention provides a method and device for realizing precise time synchronization. The method comprises the following steps of: transmitting a downlink time delay test message (or an uplink time delay test message) to an optical circulator of a main device through a downlink optical fiber (or an uplink optical fiber) through an optical module of a secondary device, recording transmission time, receiving the downlink time delay test message (or the uplink time delay test message) returned by the optical circulator through the downlink optical fiber (or the uplink optical fiber), recording receiving time, and computing downlink time delay (or uplink time delay) according to the recorded transmission time and the receiving time; and computing to obtain time error between the main device and the secondary device through an IEEE1588 protocol, the uplink time delay and the downlink time delay, and enabling the secondary device to realize the precise time synchronization with the main device according to the time error obtained through computation. Through utilizing the method and device for realizing the precise time synchronization, disclosed by the invention, the influence on time synchronization due to dissymmetric uplink and downlink can be avoided, and the precision of the time synchronization is improved.

Description

A kind of method and apparatus of realizing exact time synchronization
Technical field
The present invention relates to network communications technology field, particularly a kind of method and apparatus of realizing exact time synchronization.
Background technology
The IEEE1588 agreement is present unique agreement that can realize that split-second precision is synchronous; As shown in Figure 1; Slave unit carries out message through uplink and downgoing line and main equipment and transmits obtaining being used for four time point T1, T2, T3 and T4 of time synchronized, thereby realizes time synchronized.Concrete message transport process can be referring to Fig. 2, and as shown in Figure 2, this process can comprise:
Main equipment sends the Sync message through downgoing line to slave unit, simultaneously, sends the Followup message of the transmitting time T1 that has the Sync message to slave unit through downgoing line;
After slave unit receives the Sync message, write down the T2 time of advent of this Sync message, and from the Followup message, obtain time T 1, simultaneously, at time point T3, slave unit sends the Delay_Req message through uplink to main equipment;
After main equipment receives the Delay_Req message, write down the T4 time of advent of this Delay_Req message, and T4 is carried in the response message Delay_Resp message sends to slave unit through downgoing line;
Slave unit obtains time T 4 from the Delay_Resp message that receives.
Pass through said process; Slave unit can obtain time point T1, T2, T3 and T4; And obtain circuit time delay PathDelay=((T2-T1)+(T4-T3))/2 and the time difference Offset=((T2-T1)-(T4-T3))/2 between the master-slave equipment between the master-slave equipment according to T1, T2, T3 and T4; Wherein, T2-T1=PathDelay Down+ Δ ms, T4-T3=PathDelay On+ Δ sm, wherein PathDelay DownBe downgoing line time delay, PathDelay OnBe the uplink time delay, Δ ms is the absolute time difference of slave unit with respect to main equipment, and Δ sm is the absolute time difference of main equipment with respect to slave unit, and Δ ms=-Δ sm, and Offset=((T2-T1)-(T4-T3))/2=((PathDelay is then arranged Down-PathDelay On)+(Δ ms-Δ sm))/2=(PathDelay Down-PathDelay On)/2+ (2 Δ sm)/2.
Under the ideal situation, the Offset theoretical value should equal Δ sm, promptly needs PathDelay Down=PathDelay On, also be that the uplink time delay is identical with the downgoing line time delay.Yet under actual conditions, when especially the up-downgoing circuit was asymmetric, up-downgoing circuit time delay can not guarantee it is identical, and the Offset actual value is not Δ sm thus, thereby causes 1588 timing tracking accuracies obviously to reduce.
Summary of the invention
In view of this, the invention provides a kind of method that realizes exact time synchronization, can avoid the asymmetric influence that time synchronized is brought of up-downgoing circuit, improve the accuracy of time synchronized.
The present invention also provides a kind of device of realizing exact time synchronization, can avoid the asymmetric influence that time synchronized is brought of up-downgoing circuit, improves the accuracy of time synchronized.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of method that realizes exact time synchronization, this method comprises:
Through downlink optical fiber the ring of light that downgoing line delay testing message sends to the main equipment end is returned device from the optical module of equipment end; After the record transmitting time; Receive the ring of light and return the downgoing line delay testing message that device returns through downlink optical fiber; And behind the record time of reception, calculate the downgoing line time delay based on the transmitting time and the time of reception that write down;
Through uplink optical fibers the ring of light that uplink delay testing message sends to the main equipment end is returned device from the optical module of equipment end; After the record transmitting time; Receive the ring of light and return the uplink delay testing message that device returns through uplink optical fibers; And behind the record time of reception, calculate the uplink time delay based on the transmitting time and the time of reception that write down;
Obtain the time error between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, make slave unit according to the exact time synchronization between time error realization that calculates and the main equipment.
The optical module of said slave unit end returns the ring of light that downgoing line delay testing message sends to the main equipment end to device through downlink optical fiber; After the record transmitting time; Receive the ring of light and return the downgoing line delay testing message that device returns through downlink optical fiber; And after the recorder time, calculate the downgoing line time delay according to transmitting time and the time of reception of record and comprise:
The time synchronized unit of slave unit sends to optical module with downgoing line delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said downgoing line delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module Down
The ring of light that the optical module of slave unit end receives by the main equipment end returns the downgoing line delay testing message that device returns, and returns the time of reception T2 that device receives said downgoing line delay testing message by the timestamp unit record ring of light Down
The timestamp unit of slave unit is according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down=(T2 Down-T1 Down)/2.
Said downgoing line time delay is passed through a plurality of PathDelay DownAverage and obtain.
The optical module of said slave unit end returns the ring of light that uplink delay testing message sends to the main equipment end to device through uplink optical fibers; After the record transmitting time; Receive the ring of light and return the uplink delay testing message that device returns through uplink optical fibers; And after the recorder time, calculate the uplink time delay according to transmitting time and the time of reception of record and comprise:
The time synchronized unit of slave unit sends to optical module with uplink delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said uplink delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module On
The ring of light that the optical module of slave unit end receives by the main equipment end returns the uplink delay testing message that device returns, and returns the time of reception T2 that device receives said uplink delay testing message by the timestamp unit record ring of light On
The timestamp unit of slave unit is according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On=(T2 On-T1 On)/2.
Said downgoing line time delay is passed through a plurality of PathDelay OnAverage and obtain.
The said time error that obtains between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation comprises: calculate Offset=(PathDelay according to the IEEE1588 agreement Down-PathDelay On)/2+ (2 Δ sm)/2 is with PathDelay DownAnd PathDelay OnSubstitution Offset obtains the time error between main equipment and the slave unit.
Said optical module is a single fiber bi-directional co-wavelength optical module.
A kind of device of realizing exact time synchronization, this device comprise main equipment and the slave unit of being made up of time synchronized unit, Mac chip and timestamp unit respectively, and said main equipment comprises that the ring of light returns device, and said slave unit comprises optical module, wherein,
The optical module of slave unit returns the ring of light that downgoing line delay testing message sends to main equipment to device through downlink optical fiber, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the downgoing line delay testing message that device returns through downlink optical fiber; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the downgoing line time delay according to the transmitting time and the time of reception of record;
The optical module of slave unit returns the ring of light that uplink delay testing message sends to main equipment to device through uplink optical fibers, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the uplink delay testing message that device returns through uplink optical fibers; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the uplink time delay according to the transmitting time and the time of reception of record;
The timestamp unit of said slave unit is according to obtaining the time error between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, the exact time synchronization between realization and the main equipment.
The optical module of said slave unit returns the ring of light that downgoing line delay testing message sends to main equipment to device through downlink optical fiber, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the downgoing line delay testing message that device returns through downlink optical fiber; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the downgoing line time delay according to transmitting time and the time of reception of record and comprises:
The time synchronized unit of slave unit sends to optical module with downgoing line delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said downgoing line delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module Down
The ring of light that the optical module of slave unit end receives by the main equipment end returns the downgoing line delay testing message that device returns, and returns the time of reception T2 that device receives said downgoing line delay testing message by the timestamp unit record ring of light Down
The timestamp unit of slave unit is according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down=(T2 Down-T1 Down)/2.
The optical module of said slave unit returns the ring of light that uplink delay testing message sends to main equipment to device through uplink optical fibers, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the uplink delay testing message that device returns through uplink optical fibers; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the uplink time delay according to transmitting time and the time of reception of record and comprises:
The time synchronized unit of slave unit sends to optical module with uplink delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said uplink delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module On
The ring of light that the optical module of slave unit end receives by the main equipment end returns the uplink delay testing message that device returns, and returns the time of reception T2 that device receives said uplink delay testing message by the timestamp unit record ring of light On
The timestamp unit of slave unit is according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On=(T2 On-T1 On)/2.
Said optical module is a single fiber bi-directional co-wavelength optical module.
In sum; The method of the realization exact time synchronization that the present invention adopted; Be to be connected the measurement that realizes downgoing line time delay or uplink time delay respectively with downlink optical fiber or uplink optical fibers through return device by the optical module and the ring of light; When having obtained downgoing line time delay and uplink, delay; Said downgoing line time delay and uplink time delay substitution basis are had now in the time error formula that calculates through the IEEE1588 agreement, obtain the precise time error, thereby make slave unit according to the exact time synchronization between time error realization that calculates and the main equipment.Because the inventive method is through with obtaining time error in the time error of the up-downgoing circuit time delay substitution accurately formula; And be not to think the identical time error that obtains of up-downgoing circuit time delay simply; Therefore, also just avoided because the influence that up-downgoing circuit time delay difference is brought time error, especially when the up-downgoing circuit is asymmetric; Avoid the asymmetric influence that time synchronized is brought of up-downgoing circuit, improved the accuracy of time synchronized.
Description of drawings
Fig. 1 uses the networking sketch map for existing IEEE1588;
Fig. 2 transmits sketch map for message between the existing master-slave equipment;
Fig. 3 realizes the workflow diagram of accurate time synchronization method for the present invention;
Fig. 4 realizes the structural representation of exact time synchronization device embodiment one for the present invention;
Fig. 5 realizes the structural representation of exact time synchronization device embodiment two for the present invention.
Embodiment
In order to solve the technical problem that the present invention proposes, the concrete realization of scheme according to the invention comprises:
Through downlink optical fiber the ring of light that downgoing line delay testing message sends to the main equipment end is returned device from the optical module of equipment end; After the record transmitting time; Receive the ring of light and return the downgoing line delay testing message that device returns through downlink optical fiber; And behind the record time of reception, calculate the downgoing line time delay based on the transmitting time and the time of reception that write down; Through uplink optical fibers the ring of light that uplink delay testing message sends to the main equipment end is returned device from the optical module of equipment end; After the record transmitting time; Receive the ring of light and return the uplink delay testing message that device returns through uplink optical fibers; And behind the record time of reception, calculate the uplink time delay based on the transmitting time and the time of reception that write down; Obtain main equipment and from the time error between the equipment through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, make from equipment realize based on the time error that calculates and main equipment between exact time synchronization.
For making the object of the invention, technical scheme and advantage clearer, the present invention is done to describe in detail further below in conjunction with accompanying drawing and specific embodiment.
Fig. 3 is the workflow diagram of the realization accurate time synchronization method that the present invention adopted.As shown in Figure 3, this flow process comprises:
Step 301: the optical module of slave unit end returns the ring of light that downgoing line delay testing message sends to the main equipment end to device through downlink optical fiber, record transmitting time T1 DownAfter, receive the ring of light and return the downgoing line delay testing message that device returns through downlink optical fiber, and recorder time T 2 DownAfter, according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down
In this step, the present invention who provides in conjunction with Fig. 4 realizes the structural representation of exact time synchronization device embodiment one, and the computational methods of said downgoing line time delay comprise:
The time synchronized unit of slave unit sends to optical module with downgoing line delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said downgoing line delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module Down
The ring of light that the optical module of slave unit end receives by the main equipment end returns the downgoing line delay testing message that device returns, and returns the time of reception T2 that device receives said downgoing line delay testing message by the timestamp unit record ring of light Down
The timestamp unit of slave unit is according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down=(T2 Down-T1 Down)/2.
Further,, remove the bigger invalid value of sudden change, can also repeat repeatedly to carry out aforesaid operations in order to obtain accurate more downgoing line time delay, and a plurality of PathDelay to calculating DownAverage, with average as final downgoing line time delay PathDelay Down
Step 302: the optical module of slave unit end returns the ring of light that uplink delay testing message sends to the main equipment end to device through uplink optical fibers, record transmitting time T1 OnAfter, receive the ring of light and return the uplink delay testing message that device returns through uplink optical fibers, and recorder time T 2 OnAfter, according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On
In this step, the present invention who provides in conjunction with Fig. 5 realizes the structural representation of exact time synchronization device embodiment two, and the computational methods of said uplink time delay comprise:
The time synchronized unit of slave unit sends to optical module with uplink delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said uplink delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module On
The ring of light that the optical module of slave unit end receives by the main equipment end returns the uplink delay testing message that device returns, and returns the time of reception T2 that device receives said uplink delay testing message by the timestamp unit record ring of light On
The timestamp unit of slave unit is according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On=(T2 On-T1 On)/2.
The downgoing line time delay is the same with calculating, and in order to obtain accurate more uplink time delay, removes the bigger invalid value of sudden change, can also repeat repeatedly to carry out aforesaid operations, and a plurality of PathDelay to calculating OnAverage, with average as final uplink time delay PathDelay On
Step 303: obtain the time error between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, make slave unit according to the exact time synchronization between time error realization that calculates and the main equipment.
The said time error that obtains between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation comprises: calculate Offset=(PathDelay according to the IEEE1588 agreement Down-PathDelay On)/2+ (2 Δ sm)/2 is with PathDelay DownAnd PathDelay OnSubstitution Offset can obtain the time error between main equipment and the slave unit, thereby makes slave unit according to the exact time synchronization between time error realization that calculates and the main equipment.
Need to prove how to calculate Offset and in background technology, introduced, repeat no more according to the IEEE1588 agreement.
So far, promptly accomplished the whole workflow that the present invention realizes accurate time synchronization method.
Based on said method; The time synchronism apparatus of the present invention that provides in the face of Fig. 4 and Fig. 5 down further describes; Can find out that from Fig. 4 and Fig. 5 this device comprises main equipment and the slave unit of being made up of time synchronized unit, Mac chip and timestamp unit respectively, wherein; Said main equipment comprises that also the ring of light returns device, and said slave unit also comprises optical module.
For Fig. 4; The ring of light that one end of downlink optical fiber connects the main equipment end returns device; After the other end connects the optical module of slave unit end; The optical module of slave unit returns the ring of light that downgoing line delay testing message sends to main equipment to device through downlink optical fiber, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the downgoing line delay testing message that device returns through downlink optical fiber; And behind the timestamp unit record time of reception by slave unit; The timestamp unit of slave unit calculates the downgoing line time delay according to the transmitting time and the time of reception of record, specifically can comprise:
The time synchronized unit of slave unit sends to optical module with downgoing line delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said downgoing line delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module Down
The ring of light that the optical module of slave unit end receives by the main equipment end returns the downgoing line delay testing message that device returns, and returns the time of reception T2 that device receives said downgoing line delay testing message by the timestamp unit record ring of light Down
The timestamp unit of slave unit is according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down=(T2 Down-T1 Down)/2.
For Fig. 5; The ring of light that one end of uplink optical fibers connects the main equipment end returns device; After the other end connects the optical module of slave unit end; The optical module of slave unit returns the ring of light that uplink delay testing message sends to main equipment to device through uplink optical fibers, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the uplink delay testing message that device returns through uplink optical fibers; And behind the timestamp unit record time of reception by slave unit; The timestamp unit of slave unit calculates the uplink time delay according to the transmitting time and the time of reception of record, specifically can comprise:
The time synchronized unit of slave unit sends to optical module with uplink delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said uplink delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module On
The ring of light that the optical module of slave unit end receives by the main equipment end returns the uplink delay testing message that device returns, and returns the time of reception T2 that device receives said uplink delay testing message by the timestamp unit record ring of light On
The timestamp unit of slave unit is according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On=(T2 On-T1 On)/2.
When having obtained uplink time delay and downgoing line, delay; The timestamp unit of slave unit is according to obtaining the time error between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, the exact time synchronization between realization and the main equipment.
Need to prove that in the present embodiment, said optical module is a single fiber bi-directional co-wavelength optical module, the said ring of light returns device can be the 1:2 optical splitter.
In a word; The method of the realization exact time synchronization that the present invention adopted; Be connected the measurement that realizes downgoing line time delay or uplink time delay respectively with downlink optical fiber or uplink optical fibers through return device by the optical module and the ring of light; When having obtained downgoing line time delay and uplink, delay; Said downgoing line time delay and uplink time delay substitution basis are had now in the time error formula that calculates through the IEEE1588 agreement, obtain the precise time error, thereby make slave unit according to the exact time synchronization between time error realization that calculates and the main equipment.Because the inventive method is through with obtaining time error in the time error of the up-downgoing circuit time delay substitution accurately formula; And be not to think the identical time error that obtains of up-downgoing circuit time delay simply; Therefore, also just avoided because the influence that up-downgoing circuit time delay difference is brought time error, especially when the up-downgoing circuit is asymmetric; Avoid the asymmetric influence that time synchronized is brought of up-downgoing circuit, improved the accuracy of time synchronized.
Further; The present invention realizes the method for exact time synchronization; Can also repeatedly measure respectively uplink time delay and downgoing line time delay; The average that calculates as final uplink time delay and downgoing line time delay, just make that also up-downgoing circuit time delay value is more accurate, thereby the time error that obtains is more accurate.
Further; The present invention realizes the method for exact time synchronization, need not carry out particular design to equipment inner structure, only returns device through an optical module and the ring of light; Promptly can realize the calculating of uplink and downlink circuit time delay; And then the time synchronized between the realization master-slave equipment, therefore, the inventive method realizes simple.
At last, the inventive method only carries out only extracting and upper and lower circuit time-delay calculation in the synchronously one-sided time of carrying out at slave unit, does not also rely on external time; Therefore; Need not equipment room and cooperate, just make that also measuring process is succinct, and solved the incompatible problem of equipment room function.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (11)

1. a method that realizes exact time synchronization is characterized in that, this method comprises:
Through downlink optical fiber the ring of light that downgoing line delay testing message sends to the main equipment end is returned device from the optical module of equipment end; After the record transmitting time; Receive the ring of light and return the downgoing line delay testing message that device returns through downlink optical fiber; And behind the record time of reception, calculate the downgoing line time delay based on the transmitting time and the time of reception that write down;
Through uplink optical fibers the ring of light that uplink delay testing message sends to the main equipment end is returned device from the optical module of equipment end; After the record transmitting time; Receive the ring of light and return the uplink delay testing message that device returns through uplink optical fibers; And behind the record time of reception, calculate the uplink time delay based on the transmitting time and the time of reception that write down;
Obtain the time error between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, make slave unit according to the exact time synchronization between time error realization that calculates and the main equipment.
2. method according to claim 1; It is characterized in that; The optical module of said slave unit end returns the ring of light that downgoing line delay testing message sends to the main equipment end to device through downlink optical fiber, after the record transmitting time, receives the ring of light and returns the downgoing line delay testing message that device returns through downlink optical fiber; And after the recorder time, calculate the downgoing line time delay according to transmitting time and the time of reception of record and comprise:
The time synchronized unit of slave unit sends to optical module with downgoing line delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said downgoing line delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module Down
The ring of light that the optical module of slave unit end receives by the main equipment end returns the downgoing line delay testing message that device returns, and returns the time of reception T2 that device receives said downgoing line delay testing message by the timestamp unit record ring of light Down
The timestamp unit of slave unit is according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down=(T2 Down-T1 Down)/2.
3. method according to claim 2 is characterized in that, said downgoing line time delay is passed through a plurality of PathDelay DownAverage and obtain.
4. method according to claim 1; It is characterized in that; The optical module of said slave unit end returns the ring of light that uplink delay testing message sends to the main equipment end to device through uplink optical fibers, after the record transmitting time, receives the ring of light and returns the uplink delay testing message that device returns through uplink optical fibers; And after the recorder time, calculate the uplink time delay according to transmitting time and the time of reception of record and comprise:
The time synchronized unit of slave unit sends to optical module with uplink delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said uplink delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module On
The ring of light that the optical module of slave unit end receives by the main equipment end returns the uplink delay testing message that device returns, and returns the time of reception T2 that device receives said uplink delay testing message by the timestamp unit record ring of light On
The timestamp unit of slave unit is according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On=(T2 On-T1 On)/2.
5. method according to claim 4 is characterized in that, said downgoing line time delay is passed through a plurality of PathDelay OnAverage and obtain.
6. method according to claim 1; It is characterized in that the said time error that obtains between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation comprises: calculate Offset=(PathDelay according to the IEEE1588 agreement Down-PathDelay On)/2+ (2 Δ sm)/2 is with PathDelay DownAnd PathDelay OnSubstitution Offset obtains the time error between main equipment and the slave unit.
7. according to each described method in the claim 1 to 6, it is characterized in that said optical module is a single fiber bi-directional co-wavelength optical module.
8. device of realizing exact time synchronization, this device comprises main equipment and the slave unit of being made up of time synchronized unit, Mac chip and timestamp unit respectively, it is characterized in that, and said main equipment comprises that the ring of light returns device, and said slave unit comprises optical module, wherein,
The optical module of slave unit returns the ring of light that downgoing line delay testing message sends to main equipment to device through downlink optical fiber, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the downgoing line delay testing message that device returns through downlink optical fiber; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the downgoing line time delay according to the transmitting time and the time of reception of record;
The optical module of slave unit returns the ring of light that uplink delay testing message sends to main equipment to device through uplink optical fibers, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the uplink delay testing message that device returns through uplink optical fibers; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the uplink time delay according to the transmitting time and the time of reception of record;
The timestamp unit of said slave unit is according to obtaining the time error between main equipment and the slave unit through IEEE1588 agreement and said uplink and downlink circuit time-delay calculation, the exact time synchronization between realization and the main equipment.
9. device according to claim 8 is characterized in that, the optical module of said slave unit returns the ring of light that downgoing line delay testing message sends to main equipment to device through downlink optical fiber, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the downgoing line delay testing message that device returns through downlink optical fiber; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the downgoing line time delay according to transmitting time and the time of reception of record and comprises:
The time synchronized unit of slave unit sends to optical module with downgoing line delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said downgoing line delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module Down
The ring of light that the optical module of slave unit end receives by the main equipment end returns the downgoing line delay testing message that device returns, and returns the time of reception T2 that device receives said downgoing line delay testing message by the timestamp unit record ring of light Down
The timestamp unit of slave unit is according to the T1 of record DownAnd T2 DownCalculate downgoing line time delay PathDelay Down=(T2 Down-T1 Down)/2.
10. device according to claim 8 is characterized in that, the optical module of said slave unit returns the ring of light that uplink delay testing message sends to main equipment to device through uplink optical fibers, after the timestamp unit record transmitting time by slave unit; The optical module of slave unit receives the ring of light and returns the uplink delay testing message that device returns through uplink optical fibers; And behind the timestamp unit record time of reception by slave unit, the timestamp unit of slave unit calculates the uplink time delay according to transmitting time and the time of reception of record and comprises:
The time synchronized unit of slave unit sends to optical module with uplink delay testing message through Mac chip, timestamp unit; By optical module the ring of light that said uplink delay testing message sends to the main equipment end is returned device, and send to the transmitting time T1 that the ring of light returns device by timestamp unit record optical module On
The ring of light that the optical module of slave unit end receives by the main equipment end returns the uplink delay testing message that device returns, and returns the time of reception T2 that device receives said uplink delay testing message by the timestamp unit record ring of light On
The timestamp unit of slave unit is according to the T1 of record OnAnd T2 OnCalculate uplink time delay PathDelay On=(T2 On-T1 On)/2.
11. each described device is characterized in that according to Claim 8-10, said optical module is a single fiber bi-directional co-wavelength optical module.
CN201210084146.XA 2012-03-27 2012-03-27 Method and device for realizing precise time synchronization Active CN102638324B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210084146.XA CN102638324B (en) 2012-03-27 2012-03-27 Method and device for realizing precise time synchronization
PCT/CN2013/072354 WO2013143385A1 (en) 2012-03-27 2013-03-08 Calculating time offset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210084146.XA CN102638324B (en) 2012-03-27 2012-03-27 Method and device for realizing precise time synchronization

Publications (2)

Publication Number Publication Date
CN102638324A true CN102638324A (en) 2012-08-15
CN102638324B CN102638324B (en) 2014-12-17

Family

ID=46622580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210084146.XA Active CN102638324B (en) 2012-03-27 2012-03-27 Method and device for realizing precise time synchronization

Country Status (2)

Country Link
CN (1) CN102638324B (en)
WO (1) WO2013143385A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013143385A1 (en) * 2012-03-27 2013-10-03 Hangzhou H3C Technologies Co., Ltd. Calculating time offset
CN104168077A (en) * 2014-07-04 2014-11-26 上海交通大学 High accuracy optical fiber bidirectional time comparison method and system
CN104464247A (en) * 2014-12-12 2015-03-25 武汉中原电子信息公司 Method for reducing time synchronization error of public network of concentrator
CN104993900A (en) * 2015-07-06 2015-10-21 江苏省电力公司南京供电公司 Synchronous correction method based on IEEE1588 clock model
WO2016004645A1 (en) * 2014-07-09 2016-01-14 北京东土科技股份有限公司 Ieee1588 clock synchronization method, system and apparatus based on e1 link
WO2018103391A1 (en) * 2016-12-08 2018-06-14 郑州云海信息技术有限公司 Clock skew correction method, device and system
CN108234056A (en) * 2018-01-17 2018-06-29 四川泰富地面北斗科技股份有限公司 Using the single fiber bi-directional time delivering method and system of co-wavelength half-duplex mode
CN112085868A (en) * 2020-09-18 2020-12-15 陕西千山航空电子有限责任公司 Multi-acquisition recording system time synchronization method and system
CN113439397A (en) * 2019-02-25 2021-09-24 华为技术有限公司 Time synchronization method, device and system
WO2022143316A1 (en) * 2020-12-30 2022-07-07 华为技术有限公司 Delay measurement method and apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3334090A1 (en) * 2016-12-08 2018-06-13 InCoax Networks Europe AB Method and system for synchronization of node devices in a coaxial network
NL2030076B1 (en) * 2021-12-08 2023-06-22 Univ Delft Tech Method and system for determining a round-trip latency of a communication channel

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296048A (en) * 2008-06-17 2008-10-29 杭州华三通信技术有限公司 Time synchronization method and apparatus
WO2010000190A1 (en) * 2008-06-30 2010-01-07 华为技术有限公司 Calculating method, system and optical network apparatus for synchronous time of passitive optical network
CN101902292A (en) * 2009-12-30 2010-12-01 西安大唐电信有限公司 UTC high-precision time synchronization method based on optical transmission network
CN102036127A (en) * 2009-09-24 2011-04-27 中兴通讯股份有限公司 Method and system for measuring transmission delay between optical line terminal and optical network unit
CN102104572A (en) * 2009-12-22 2011-06-22 华为技术有限公司 Time synchronization method and system in transmission system and device
CN102255791A (en) * 2010-05-21 2011-11-23 中国移动通信集团公司 Inter-equipment link delay determination method and system
CN102325019A (en) * 2011-08-23 2012-01-18 西安电子科技大学 Clock synchronization method of real-time industrial Ethernet EtherCAT redundant system
JP2012034080A (en) * 2010-07-29 2012-02-16 Fuji Electric Co Ltd Network system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018086B (en) * 2006-02-10 2011-04-20 大唐移动通信设备有限公司 Synchronization receiving and transmitting control method and system of relay amplifier in the TD-SCDMA system
CN101102131A (en) * 2006-07-03 2008-01-09 中兴通讯股份有限公司 Transmission delay measurement method of remote RF unit
CN102638324B (en) * 2012-03-27 2014-12-17 杭州华三通信技术有限公司 Method and device for realizing precise time synchronization

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296048A (en) * 2008-06-17 2008-10-29 杭州华三通信技术有限公司 Time synchronization method and apparatus
WO2010000190A1 (en) * 2008-06-30 2010-01-07 华为技术有限公司 Calculating method, system and optical network apparatus for synchronous time of passitive optical network
CN102036127A (en) * 2009-09-24 2011-04-27 中兴通讯股份有限公司 Method and system for measuring transmission delay between optical line terminal and optical network unit
CN102104572A (en) * 2009-12-22 2011-06-22 华为技术有限公司 Time synchronization method and system in transmission system and device
CN101902292A (en) * 2009-12-30 2010-12-01 西安大唐电信有限公司 UTC high-precision time synchronization method based on optical transmission network
CN102255791A (en) * 2010-05-21 2011-11-23 中国移动通信集团公司 Inter-equipment link delay determination method and system
JP2012034080A (en) * 2010-07-29 2012-02-16 Fuji Electric Co Ltd Network system
CN102325019A (en) * 2011-08-23 2012-01-18 西安电子科技大学 Clock synchronization method of real-time industrial Ethernet EtherCAT redundant system

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013143385A1 (en) * 2012-03-27 2013-10-03 Hangzhou H3C Technologies Co., Ltd. Calculating time offset
CN104168077A (en) * 2014-07-04 2014-11-26 上海交通大学 High accuracy optical fiber bidirectional time comparison method and system
US10063315B2 (en) 2014-07-04 2018-08-28 Shanghai Jiao Tong University Method and system for high-precision two-way fiber-optic time transfer
WO2016000287A1 (en) * 2014-07-04 2016-01-07 上海交通大学 High-precision optical fiber bidirectional time comparison method and system
CN104168077B (en) * 2014-07-04 2017-02-08 上海交通大学 High accuracy optical fiber bidirectional time comparison method and system
WO2016004645A1 (en) * 2014-07-09 2016-01-14 北京东土科技股份有限公司 Ieee1588 clock synchronization method, system and apparatus based on e1 link
CN104464247A (en) * 2014-12-12 2015-03-25 武汉中原电子信息公司 Method for reducing time synchronization error of public network of concentrator
CN104464247B (en) * 2014-12-12 2018-01-02 武汉中原电子信息公司 A kind of method of error during reduction concentrator public network pair
CN104993900B (en) * 2015-07-06 2018-03-09 江苏省电力公司南京供电公司 A kind of synchronization correction method based on IEEE1588 clock models
CN104993900A (en) * 2015-07-06 2015-10-21 江苏省电力公司南京供电公司 Synchronous correction method based on IEEE1588 clock model
WO2018103391A1 (en) * 2016-12-08 2018-06-14 郑州云海信息技术有限公司 Clock skew correction method, device and system
US11199868B2 (en) 2016-12-08 2021-12-14 Zhengzhou Yunhai Information Technology Co., Ltd. Clock skew correction method, device and system
CN108234056A (en) * 2018-01-17 2018-06-29 四川泰富地面北斗科技股份有限公司 Using the single fiber bi-directional time delivering method and system of co-wavelength half-duplex mode
CN113439397A (en) * 2019-02-25 2021-09-24 华为技术有限公司 Time synchronization method, device and system
CN113439397B (en) * 2019-02-25 2022-12-27 华为技术有限公司 Time synchronization method, device and system
CN112085868A (en) * 2020-09-18 2020-12-15 陕西千山航空电子有限责任公司 Multi-acquisition recording system time synchronization method and system
WO2022143316A1 (en) * 2020-12-30 2022-07-07 华为技术有限公司 Delay measurement method and apparatus

Also Published As

Publication number Publication date
CN102638324B (en) 2014-12-17
WO2013143385A1 (en) 2013-10-03

Similar Documents

Publication Publication Date Title
CN102638324A (en) Method and device for realizing precise time synchronization
CN102136900B (en) Time synchronization method for passive optical network, device and system
CN102082697A (en) Communication path asymmetric time delay measuring method, device and system
CN102439884B (en) Method and device for time synchronization
CN101425865B (en) Method and system for synchronizing clock of transmission network as well as subordinate clock side entity
CN102315985B (en) Time synchronization precision test method for intelligent device adopting IEEE1588 protocols
CN102833025B (en) E1/Ethernet protocol conversion precise delay computational methods, module and transducer
CN106027193B (en) For the clock synchronizing method of time calibration in network system, module, equipment and system
CN102742190A (en) Synchronization method, device, and system
CN103378993A (en) Slave clock monitoring method based on PTP
TW201427306A (en) Apparatus and method for enabling a passive optical network on supporting time synchronization
EP2706686A1 (en) Method, terminal and system for measuring asymmetric delay of transmission link
CN103138887B (en) A kind of processing method and system of 1588 event message
CN102932083A (en) Microwave time synchronization method and device
CN109150357A (en) The method for synchronizing time of hybrid bus based on RS485 and Ethernet
CN107786293A (en) Method for synchronizing time, clock equipment, from clockwork and clock synchronization system
CN104468014A (en) Method for improving time synchronization precision under complex network environment
CN103546268A (en) Method and device for compensating system time
CN110784783A (en) Clock synchronization method and device based on optical fiber network
CN103812593A (en) High-accuracy distributed optical fibre time synchronization system
CN102594542A (en) Method and device for realizing precise time synchronization
CN111464252B (en) Communication method and optical module
CN102638339B (en) Method and device for realizing precision time synchronization
CN102394741A (en) Method for realizing precision time synchronization based on IEEE1588 and apparatus thereof
CN102571253B (en) Method and equipment for implementing precise time synchronization

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.