CN104935584A - Time service method, device and system based on mode of circuit transmission - Google Patents

Time service method, device and system based on mode of circuit transmission Download PDF

Info

Publication number
CN104935584A
CN104935584A CN201510292678.6A CN201510292678A CN104935584A CN 104935584 A CN104935584 A CN 104935584A CN 201510292678 A CN201510292678 A CN 201510292678A CN 104935584 A CN104935584 A CN 104935584A
Authority
CN
China
Prior art keywords
terminal
time
timestamp
ntp packet
data link
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
CN201510292678.6A
Other languages
Chinese (zh)
Other versions
CN104935584B (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.)
Anhui Vocational College Of City Management
GHT CO Ltd
Information and Telecommunication Branch of State Grid Anhui Electric Power Co Ltd
Original Assignee
Anhui Vocational College Of City Management
GHT CO Ltd
Information and Telecommunication Branch of State Grid Anhui Electric Power 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 Anhui Vocational College Of City Management, GHT CO Ltd, Information and Telecommunication Branch of State Grid Anhui Electric Power Co Ltd filed Critical Anhui Vocational College Of City Management
Priority to CN201510292678.6A priority Critical patent/CN104935584B/en
Publication of CN104935584A publication Critical patent/CN104935584A/en
Application granted granted Critical
Publication of CN104935584B publication Critical patent/CN104935584B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/28Timers or timing mechanisms used in protocols
    • 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

Abstract

The invention discloses a time service method, device and system based on a mode of circuit transmission. The method comprises the steps: enabling a first NTP data package to be converted into a first data link package, enabling the circuit transmission mode to be transmitted to a second terminal through an E1 link so that the second terminal enables the first data link package to be converted into a first NTP data package and generates a second NTP data package according to the first NTP data package; receiving a second data link package fed back by the second terminal through the E1 link; converting the second data link package into the second NTP data package through the second terminal; enabling a second data package to be converted into the second NTP data package, and reading the first, second and third time stamps of the second NTP data package; calculating time bias according to the first, second, third and fourth time stamps, and correcting a clock of the first terminal according to the time bias. According to the embodiment of the invention, the method, device and system can enable a terminal in a circuit switching network to achieve time synchronization and time service of an NTP protocol, and improve the precision of time synchronization and time service.

Description

A kind of time service method based on circuit transmission mode and Apparatus and system
Technical field
The present invention relates to communication technical field, particularly relate to a kind of time service method based on circuit transmission mode and Apparatus and system.
Background technology
Time service when terminal equipment carries out pair, generally have two kinds of major ways, one is " wireless " time service mode, such as GPRS, GPS etc., and another kind is " wired " time service mode, the time calibration in network agreements such as such as NTP, PTP.For the time service of Network Time Protocol, Network Time Protocol (be called for short NTP) is used to carry out synchronous a kind of agreement computer time, and it can provide the time adjustment of high accurancy and precision.Network Time Protocol mainly supports mode of operation when three kinds pairs, comprising: master slave mode, multicast/broadcast pattern and symmetric pattern.Wherein, the main ntp server of master slave mode communicates with the twisted-pair feeder of client by Ethernet, realize the transmission of NTP packet, client calculates the clock jitter of the machine and ntp server by exchanging NTP packet, re-use clock jitter to adjust local clock, to make time and ntp server time consistency.
But this time service method need rely on packet switching network, time service when only to carry out in a packet switched network pair, and when packet switching network cannot be provided, time service when terminal can not complete pair.In addition, when long range propagation is carried out in circuit switching, there is no the precision of time service during related protocol guarantee pair.
Summary of the invention
The embodiment of the present invention proposes a kind of time service method based on circuit transmission mode and Apparatus and system, can make the terminal in circuit-switched network realize Network Time Protocol pair time time service, the precision of time service when to improve pair.
The embodiment of the present invention provides a kind of time service method based on circuit transmission mode, comprising:
One NTP packet is converted to the first data link bag, and described NTP packet comprises very first time stamp during the described NTP packet of first terminal generation;
By E1 link, described first data link bag is sent to the second terminal, for described second terminal, described first data link bag is converted to a described NTP packet, read the very first time stamp in a described NTP packet, and generate the 2nd NTP packet according to a described NTP packet; Wherein, described 2nd NTP packet comprise the described very first time stamp, described second terminal receive described first data link bag time the second timestamp and described second terminal generate described 2nd NTP packet time the 3rd timestamp;
The second data link bag of described second terminal feedback is received by described E1 link, and the 4th timestamp during the described second data link bag of record reception; Wherein, described second data link bag is changed described 2nd NTP packet by described second terminal and obtains;
Described second data link bag is converted to described 2nd NTP packet, and reads very first time stamp, the second timestamp and the 3rd timestamp of described 2nd NTP packet;
According to described very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculate the time deviation between described first terminal and described second terminal, and correct the clock of described first terminal according to described time deviation.
Further, described according to described very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculate the time deviation between first terminal and described second terminal, specifically comprise:
The time deviation of described first terminal and described second terminal is calculated according to following computing formula;
t = ( T 2 - T 1 ) - ( T 4 - T 3 ) 2
Wherein, t is described time deviation, and T1 is very first time stamp, and T2 is the second timestamp, and T3 is the 3rd timestamp, and T4 is the 4th timestamp.
Further, described second terminal generates the 2nd NTP packet according to a described NTP packet, specifically comprises:
By Ethernet by a described NTP Packet Generation to ntp server, feed back corresponding Network Time Protocol information for described ntp server according to a described NTP packet;
The second timestamp when described Network Time Protocol information, stamp of the described very first time, the described second described first data link bag of terminal reception and described second terminal are generated the 3rd timestamp encapsulation during described 2nd NTP packet, generate described 2nd NTP packet.
Further, describedly by E1 link, described first data link bag is sent to the second terminal, specifically comprises:
By a time slot in described E1 link, described first data link bag is sent to the second terminal.
Further, described the second data link bag being received described second terminal feedback by described E1 link, is specifically comprised:
The second data link bag of described second terminal feedback is received by a time slot in described E1 link.
Correspondingly, the embodiment of the present invention also provides a kind of time service device based on circuit transmission mode, comprising:
First converting unit, for a NTP packet is converted to the first data link bag, described NTP packet comprises very first time stamp during the described NTP packet of first terminal generation;
Transmitting element, for described first data link bag being sent to the second terminal by E1 link, for described second terminal, described first data link bag is converted to a described NTP packet, read the very first time stamp in a described NTP packet, and generate the 2nd NTP packet according to a described NTP packet; Wherein, described 2nd NTP packet comprise the described very first time stamp, described second terminal receive described first data link bag time the second timestamp and described second terminal generate described 2nd NTP packet time the 3rd timestamp;
Receiving element, for being received the second data link bag of described second terminal feedback by described E1 link, and the 4th timestamp during the described second data link bag of record reception; Wherein, described second data link bag is changed described 2nd NTP packet by described second terminal and obtains;
Second converting unit, for described second data link bag is converted to described 2nd NTP packet, and reads very first time stamp, the second timestamp and the 3rd timestamp of described 2nd NTP packet;
Calculation correction unit, for according to described very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculates the time deviation of described first terminal and described second terminal, and corrects the clock of described first terminal according to described time deviation.
Further, described calculation correction unit comprises the first computing unit, and described first computing unit is used for the time deviation calculating described first terminal and described second terminal according to following computing formula;
t = ( T 2 - T 1 ) - ( T 4 - T 3 ) 2
Wherein, t is described time deviation, and T1 is very first time stamp, and T2 is the second timestamp, and T3 is the 3rd timestamp, and T4 is the 4th timestamp.
Correspondingly, the embodiment of the present invention also provides a kind of time dissemination system based on circuit transmission mode, comprising: first terminal, the second terminal, ntp server and time service device according to claim 6;
Described time service device is arranged in described first terminal;
Described first terminal is connected with described second terminal communication by E1 link;
Described second terminal is communicated to connect by Ethernet and described ntp server.
Implement the embodiment of the present invention, there is following beneficial effect:
The time service method based on circuit transmission mode that the embodiment of the present invention provides, one NTP packet is converted to the first data link bag, communications is carried out by the E1 link between first terminal and the second terminal, a NTP packet is recovered back after receiving the first data link bag for the second terminal, and generate corresponding 2nd NTP packet according to a NTP packet, then the 2nd NTP packet to be converted to after the second data link bag by E1 Link Feedback to first terminal.The 2nd NTP packet is recovered back after receiving the second data link bag, and obtain very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, wherein, very first time stamp is the time of first terminal generation the one NTP packet, second timestamp is the time that the second terminal receives the first data link bag, 3rd timestamp is the time that the second terminal generates the 2nd NTP packet, and the 4th timestamp is the time that first terminal receives the second data link bag.Finally calculate the time deviation between first terminal and the second terminal according to timestamp, and correct the clock of first terminal according to this time deviation.Time service and the precision ensureing time service without relevant time service agreement cannot be realized in a circuit switched network compared to prior art, time service when technical solution of the present invention can complete pair in a circuit switched network, and when long range propagation is carried out in circuit switching, when providing Network Time Protocol to be pair, the precision of time service provides safeguard.
Further, the present invention transmit data link bag time, transmitted by the time slot of in E1 link, the resource of E1 link can not only be saved, and relative to originally direct on E1 the transmission time, the present invention can improve time service precision, reduce error.
On the other hand, the invention provides a kind of time service device based on circuit transmission mode, one NTP packet is converted to the first data link bag by the first converting unit, transmitting element carries out communications by the E1 link between first terminal and the second terminal, a NTP packet is recovered back after receiving the first data link bag for the second terminal, and generate corresponding 2nd NTP packet according to a NTP packet, then the 2nd NTP packet to be converted to after the second data link bag by E1 Link Feedback to the receiving element of this device.After receiving the second data link bag, the second converting unit is recovered back the 2nd NTP packet, and obtain very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, wherein, very first time stamp is the time of first terminal generation the one NTP packet, second timestamp is the time that the second terminal receives the first data link bag, 3rd timestamp is the time that the second terminal generates the 2nd NTP packet, and the 4th timestamp is the time that first terminal receives the second data link bag.Finally calculate the time deviation between first terminal and the second terminal according to timestamp, and correct the clock of first terminal according to this time deviation.Time service and the precision ensureing time service without relevant time service agreement cannot be realized in a circuit switched network compared to prior art, time service when this device can complete pair in a circuit switched network, and when long range propagation is carried out in circuit switching, when providing Network Time Protocol to be pair, the precision of time service provides safeguard.
Again on the one hand, the invention provides a kind of time dissemination system based on circuit transmission mode, comprise first terminal, the second terminal, ntp server and time service device of the present invention.Time service device is arranged in first terminal, and first terminal is connected with the second terminal communication by E1 link, and the second terminal is communicated to connect by Ethernet and ntp server.This time dissemination system can when first terminal be without packet switching network, and by circuit-switched network and the second terminal communication and when to complete pair, and when long range propagation is carried out in circuit switching, when providing Network Time Protocol to be pair, the precision of time service provides safeguard.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of a kind of embodiment of the time service method based on circuit transmission mode provided by the invention;
Fig. 2 is the structural representation of a kind of embodiment of the time service device based on circuit transmission mode that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of embodiment of a kind of time dissemination system based on circuit transmission mode that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment 1
Be the schematic flow sheet of a kind of embodiment of the time service method based on circuit transmission mode provided by the invention see Fig. 1, Fig. 1, the method comprises the following steps:
Step 101: a NTP packet is converted to the first data link bag, NTP packet comprises very first time stamp during first terminal generation the one NTP packet.
In the present embodiment, first terminal is need to calibrate the terminal equipment of local clock, and first terminal generates a NTP packet automatically, and a NTP packet comprises Network Time Protocol corresponding to authorization requests, this time service request and very first time stamp.Wherein, very first time stamp is time when first terminal generates a NTP packet.
Step 102: the first data link bag is sent to the second terminal by E1 link, for the second terminal, the first data link bag is converted to a NTP packet, read the very first time stamp in a NTP packet, and generate the 2nd NTP packet according to a NTP packet; Wherein, the 3rd timestamp when the 2nd NTP packet comprises very first time stamp, second timestamp of the second terminal when receiving the first data link bag and the second terminal generate the 2nd NTP packet.
In the present embodiment, communicated between first terminal with the second terminal by E1 link, the second terminal communicates with ntp server by Ethernet.During communication, by E1 link, the first data link bag is sent to the second terminal.Second terminal, after reception first data link bag, is converted into a NTP packet, and reads the very first time stamp in a NTP packet, then generates the 2nd NTP packet according to a NTP packet.
In the present embodiment, second terminal generates the 2nd NTP packet according to a NTP packet, specifically comprise: by Ethernet by a NTP Packet Generation to ntp server, feed back corresponding Network Time Protocol information for ntp server according to a NTP packet.Ntp server analyzes judgement accordingly according to the Network Time Protocol in a NTP packet, generates new Network Time Protocol information, and gives the second terminal by this Network Time Protocol information feed back.The Network Time Protocol information of feedback, very first time stamp, the second timestamp and the 3rd timestamp encapsulate by the second terminal, generate the 2nd NTP packet.Wherein, time when the second timestamp is the second terminal reception described first data link bag, the 3rd timestamp when the 3rd timestamp is the second terminal generation the 2nd NTP packet.
In the present embodiment, by E1 link, the first data link bag is sent to the second terminal, specifically comprise: by the time slot of in E1 link, the first data link bag is sent to the second terminal.Adopt a time slot in E1 link to send to the second terminal can save the resource of E1 link the first data link bag, other time slots of E1 link can continue the function of exchange performing original business.Second terminal can provide 31 passages to carry out the transmission of data link bag as receiving terminal.
In the present embodiment, if when the second terminal needs pair, because it is connected with ntp server by Ethernet, can realize online time service according to Network Time Protocol, this partial content is prior art, is not repeating at this.
Step 103: the second data link bag being received the second terminal feedback by E1 link, and the 4th timestamp when recording reception second data link bag; Wherein, the second data link bag is changed the 2nd NTP packet by the second terminal and obtains.
In the present embodiment, the 2nd NTP packet is converted to the second data link bag by the second terminal, and sends to first terminal by E1 link, and first terminal receives the second data link bag of feedback, and the 4th timestamp during this second data link bag of record reception.
In the present embodiment, received the second data link bag of the second terminal feedback by E1 link, specifically comprise: the second data link bag being received the second terminal feedback by the time slot of in E1 link.The present invention only adopts a time slot in E1 link to carry out the transmission of data link bag, and save the resource of E1 link, other time slots can continue the exchanges data performing original business.In addition, adopt one or two time slot of E1 link to transmit, can improve the precision of time service, error is between 1 millisecond to 50 milliseconds.
In the present embodiment, E1 link can be, but not limited to as the E1 link in common exchanging telephone network PSTN.
Step 104: the second data link bag is converted to the 2nd NTP packet, and the very first time stamp, the second timestamp and the 3rd timestamp that read the 2nd NTP packet.
Step 105: according to very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculates the time deviation between first terminal and the second terminal, and corrects the clock of first terminal according to time deviation.
In the present embodiment, according to very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculate the time deviation between first terminal and the second terminal, specifically comprise: the time deviation calculating described first terminal and described second terminal according to following computing formula.
t = ( T 2 - T 1 ) - ( T 4 - T 3 ) 2
Wherein, t is time deviation, and T1 is very first time stamp, and T2 is the second timestamp, and T3 is the 3rd timestamp, and T4 is the 4th timestamp.
Therefore, the time service method based on circuit transmission mode that the embodiment of the present invention provides, one NTP packet is converted to the first data link bag, communications is carried out by the E1 link between first terminal and the second terminal, a NTP packet is recovered back after receiving the first data link bag for the second terminal, and generate corresponding 2nd NTP packet according to a NTP packet, then the 2nd NTP packet to be converted to after the second data link bag by E1 Link Feedback to first terminal.The 2nd NTP packet is recovered back after receiving the second data link bag, and obtain very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, wherein, very first time stamp is the time of first terminal generation the one NTP packet, second timestamp is the time that the second terminal receives the first data link bag, 3rd timestamp is the time that the second terminal generates the 2nd NTP packet, and the 4th timestamp is the time that first terminal receives the second data link bag.Finally calculate the time deviation between first terminal and the second terminal according to timestamp, and correct the clock of first terminal according to this time deviation.Time service and the precision ensureing time service without relevant time service agreement cannot be realized in a circuit switched network compared to prior art, time service when technical solution of the present invention can complete pair in a circuit switched network, and when long range propagation is carried out in circuit switching, when providing Network Time Protocol to be pair, the precision of time service provides safeguard.
Further, the present invention transmit data link bag time, transmitted by the time slot of in E1 link, the resource of E1 link can not only be saved, and relative to originally direct on E1 the transmission time, the present invention can improve time service precision, reduce error.
Further, time service method of the present invention is without the need to relying on packet data network, be subject under external condition is limited in some special occasions, when the system of time service that GPS, GPRS etc. are wireless can not complete pair when time service, as in the tunnel in colliery, time service when the present invention can improve accurately pair is time service scheme when some special occasions provides pair.
Embodiment 2
It is the structural representation of a kind of embodiment of the time service device based on circuit transmission mode that the embodiment of the present invention provides see Fig. 2, Fig. 2.As shown in Figure 2, this device comprises: the first converting unit 201, transmitting element 202, receiving element 203, second converting unit 204 and calculation correction unit 205.First converting unit 201 is electrically connected with transmitting element 202, second converting unit 204 respectively.Second converting unit 204 is electrically connected with receiving element 203, calculation correction unit 205 respectively.
First converting unit 201, for a NTP packet is converted to the first data link bag, NTP packet comprises very first time stamp when first terminal generates a NTP packet.
Transmitting element 202, for the first data link bag being sent to the second terminal by E1 link, for the second terminal, the first data link bag is converted to a NTP packet, reads the very first time stamp in a NTP packet, and generate the 2nd NTP packet according to a NTP packet.Wherein, the 3rd timestamp when the 2nd NTP packet comprises very first time stamp, second timestamp of the second terminal when receiving this first data link bag and the second terminal generate the 2nd NTP packet.
Receiving element 203, for being received the second data link bag of the second terminal feedback by E1 link, and the 4th timestamp during this second data link bag of record reception.Wherein, the second data link bag is changed the 2nd NTP packet by the second terminal and obtains.
Second converting unit 204, for the second data link bag is converted to the 2nd NTP packet, and reads very first time stamp, the second timestamp and the 3rd timestamp of the 2nd NTP packet.
Calculation correction unit 205, for according to very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculates the time deviation of first terminal and the second terminal, and corrects the clock of first terminal according to this time deviation.
One as the present embodiment is illustrated, and calculation correction unit 205 can be, but not limited to comprise the first computing unit.First computing unit is used for the time deviation calculating first terminal and the second terminal according to following computing formula.
t = ( T 2 - T 1 ) - ( T 4 - T 3 ) 2
Wherein, t is described time deviation, and T1 is very first time stamp, and T2 is the second timestamp, and T3 is the 3rd timestamp, and T4 is the 4th timestamp.
The more detailed operation principle of the present embodiment and content can be, but not limited to the relevant record being illustrated in embodiment 1.
Therefore, the invention provides a kind of time service device based on circuit transmission mode, one NTP packet is converted to the first data link bag by the first converting unit, transmitting element carries out communications by the E1 link between first terminal and the second terminal, a NTP packet is recovered back after receiving the first data link bag for the second terminal, and generate corresponding 2nd NTP packet according to a NTP packet, then the 2nd NTP packet to be converted to after the second data link bag by E1 Link Feedback to the receiving element of this device.After receiving the second data link bag, the second converting unit is recovered back the 2nd NTP packet, and obtain very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, wherein, very first time stamp is the time of first terminal generation the one NTP packet, second timestamp is the time that the second terminal receives the first data link bag, 3rd timestamp is the time that the second terminal generates the 2nd NTP packet, and the 4th timestamp is the time that first terminal receives the second data link bag.Finally calculate the time deviation between first terminal and the second terminal according to timestamp, and correct the clock of first terminal according to this time deviation.Time service and the precision ensureing time service without relevant time service agreement cannot be realized in a circuit switched network compared to prior art, time service when this device can complete pair in a circuit switched network, and when long range propagation is carried out in circuit switching, when providing Network Time Protocol to be pair, the precision of time service provides safeguard.
Embodiment 3
It is the structural representation of a kind of embodiment of a kind of time dissemination system based on circuit transmission mode that the embodiment of the present invention provides see Fig. 3, Fig. 3.This time dissemination system comprises: first terminal 301, second terminal 302, ntp server 303 and the time service device described in embodiment 2 304.
Time service device 304 is arranged in first terminal 301.First terminal 301 is communicated to connect by E1 link and the second terminal 302.Second terminal 302 is communicated to connect by Ethernet and ntp server 303.
In the present embodiment, first terminal 301 owing to there is no packet switching network with the external world, therefore to when needing to adopt the E1 link in circuit-switched network to realize pair constantly.Time service when second terminal 302 to realize pair by Ethernet and ntp server 303.
In the present embodiment first terminal pair time operation principle and flow process can be, but not limited to see embodiment 1 and 2 relevant record.
Therefore, the invention provides a kind of time dissemination system based on circuit transmission mode, comprise first terminal 301, second terminal 302, ntp server 303 and time service device of the present invention 304.Time service device 304 is arranged in first terminal 301, and first terminal 301 is communicated to connect by E1 link and the second terminal 302, and the second terminal 302 is communicated to connect by Ethernet and ntp server 303.This time dissemination system can when first terminal 301 be without packet switching network, and when to be communicated with the second terminal 302 by circuit-switched network and to complete pair, and when long range propagation is carried out in circuit switching, when providing Network Time Protocol to be pair, the precision of time service provides safeguard.
The above is the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention.

Claims (8)

1. based on a time service method for circuit transmission mode, it is characterized in that, comprising:
One NTP packet is converted to the first data link bag, and described NTP packet comprises very first time stamp during the described NTP packet of first terminal generation;
By E1 link, described first data link bag is sent to the second terminal, for described second terminal, described first data link bag is converted to a described NTP packet, read the very first time stamp in a described NTP packet, and generate the 2nd NTP packet according to a described NTP packet; Wherein, described 2nd NTP packet comprise the described very first time stamp, described second terminal receive described first data link bag time the second timestamp and described second terminal generate described 2nd NTP packet time the 3rd timestamp;
The second data link bag of described second terminal feedback is received by described E1 link, and the 4th timestamp during the described second data link bag of record reception; Wherein, described second data link bag is changed described 2nd NTP packet by described second terminal and obtains;
Described second data link bag is converted to described 2nd NTP packet, and reads very first time stamp, the second timestamp and the 3rd timestamp of described 2nd NTP packet;
According to described very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculate the time deviation between described first terminal and described second terminal, and correct the clock of described first terminal according to described time deviation.
2. the time service method based on circuit transmission mode according to claim 1, it is characterized in that, described according to described very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculate the time deviation between first terminal and described second terminal, specifically comprise:
The time deviation of described first terminal and described second terminal is calculated according to following computing formula;
t = ( T 2 - T 1 ) - ( T 4 - T 3 ) 2
Wherein, t is described time deviation, and T1 is very first time stamp, and T2 is the second timestamp, and T3 is the 3rd timestamp, and T4 is the 4th timestamp.
3. the time service method based on circuit transmission mode according to claim 1, is characterized in that, described second terminal generates the 2nd NTP packet according to a described NTP packet, specifically comprises:
By Ethernet by a described NTP Packet Generation to ntp server, feed back corresponding Network Time Protocol information for described ntp server according to a described NTP packet;
The second timestamp when described Network Time Protocol information, stamp of the described very first time, the described second described first data link bag of terminal reception and described second terminal are generated the 3rd timestamp encapsulation during described 2nd NTP packet, generate described 2nd NTP packet.
4. the time service method based on circuit transmission mode according to claim 1, is characterized in that, describedly by E1 link, described first data link bag is sent to the second terminal, specifically comprises:
By a time slot in described E1 link, described first data link bag is sent to the second terminal.
5. the time service method based on circuit transmission mode according to claim 1, is characterized in that, described the second data link bag being received described second terminal feedback by described E1 link, is specifically comprised:
The second data link bag of described second terminal feedback is received by a time slot in described E1 link.
6. based on a time service device for circuit transmission mode, it is characterized in that, comprising:
First converting unit, for a NTP packet is converted to the first data link bag, described NTP packet comprises very first time stamp during the described NTP packet of first terminal generation;
Transmitting element, for described first data link bag being sent to the second terminal by E1 link, for described second terminal, described first data link bag is converted to a described NTP packet, read the very first time stamp in a described NTP packet, and generate the 2nd NTP packet according to a described NTP packet; Wherein, described 2nd NTP packet comprise the described very first time stamp, described second terminal receive described first data link bag time the second timestamp and described second terminal generate described 2nd NTP packet time the 3rd timestamp;
Receiving element, for being received the second data link bag of described second terminal feedback by described E1 link, and the 4th timestamp during the described second data link bag of record reception; Wherein, described second data link bag is changed described 2nd NTP packet by described second terminal and obtains;
Second converting unit, for described second data link bag is converted to described 2nd NTP packet, and reads very first time stamp, the second timestamp and the 3rd timestamp of described 2nd NTP packet;
Calculation correction unit, for according to described very first time stamp, the second timestamp, the 3rd timestamp and the 4th timestamp, calculates the time deviation of described first terminal and described second terminal, and corrects the clock of described first terminal according to described time deviation.
7. the time service device based on circuit transmission mode according to claim 6, is characterized in that,
Described calculation correction unit comprises the first computing unit, and described first computing unit is used for the time deviation calculating described first terminal and described second terminal according to following computing formula;
t = ( T 2 - T 1 ) - ( T 4 - T 3 ) 2
Wherein, t is described time deviation, and T1 is very first time stamp, and T2 is the second timestamp, and T3 is the 3rd timestamp, and T4 is the 4th timestamp.
8. based on a time dissemination system for circuit transmission mode, it is characterized in that, comprising: first terminal, the second terminal, ntp server and time service device according to claim 6;
Described time service device is arranged in described first terminal;
Described first terminal is connected with described second terminal communication by E1 link;
Described second terminal is communicated to connect by Ethernet and described ntp server.
CN201510292678.6A 2015-06-01 2015-06-01 A kind of time service method and apparatus and system based on circuit transmission mode Active CN104935584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510292678.6A CN104935584B (en) 2015-06-01 2015-06-01 A kind of time service method and apparatus and system based on circuit transmission mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510292678.6A CN104935584B (en) 2015-06-01 2015-06-01 A kind of time service method and apparatus and system based on circuit transmission mode

Publications (2)

Publication Number Publication Date
CN104935584A true CN104935584A (en) 2015-09-23
CN104935584B CN104935584B (en) 2018-06-15

Family

ID=54122556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510292678.6A Active CN104935584B (en) 2015-06-01 2015-06-01 A kind of time service method and apparatus and system based on circuit transmission mode

Country Status (1)

Country Link
CN (1) CN104935584B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729277A (en) * 2018-11-19 2019-05-07 魔门塔(苏州)科技有限公司 Multi-sensor collection timestamp synchronizing device
CN110139041A (en) * 2018-11-19 2019-08-16 魔门塔(苏州)科技有限公司 Long-range more transducing signal synchronous collection methods

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030002483A1 (en) * 2001-06-07 2003-01-02 Siemens Aktiengesellschaft Method for transmitting time information via a data packet network
CN101594673A (en) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 A kind of method and system of processing 1588 time stamp in distribution mode
CN101860952A (en) * 2009-04-09 2010-10-13 中兴通讯股份有限公司 Clock correcting method and system based on IP network for wireless base station
CN103763056A (en) * 2013-12-31 2014-04-30 电信科学技术第五研究所 Method for time synchronization high-precision remote monitoring
CN104202137A (en) * 2014-07-09 2014-12-10 北京东土科技股份有限公司 IEEE1588 clock synchronization method, system and device based on E1 link
CN104601269A (en) * 2014-12-31 2015-05-06 国家电网公司 Master and slave clock synchronization method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030002483A1 (en) * 2001-06-07 2003-01-02 Siemens Aktiengesellschaft Method for transmitting time information via a data packet network
CN101860952A (en) * 2009-04-09 2010-10-13 中兴通讯股份有限公司 Clock correcting method and system based on IP network for wireless base station
CN101594673A (en) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 A kind of method and system of processing 1588 time stamp in distribution mode
CN103763056A (en) * 2013-12-31 2014-04-30 电信科学技术第五研究所 Method for time synchronization high-precision remote monitoring
CN104202137A (en) * 2014-07-09 2014-12-10 北京东土科技股份有限公司 IEEE1588 clock synchronization method, system and device based on E1 link
CN104601269A (en) * 2014-12-31 2015-05-06 国家电网公司 Master and slave clock synchronization method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈业钊: "《电力时间同步组网技术研究》", 《广东电力》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729277A (en) * 2018-11-19 2019-05-07 魔门塔(苏州)科技有限公司 Multi-sensor collection timestamp synchronizing device
CN110139041A (en) * 2018-11-19 2019-08-16 魔门塔(苏州)科技有限公司 Long-range more transducing signal synchronous collection methods

Also Published As

Publication number Publication date
CN104935584B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN101951312B (en) E1 link-based bidirectional time-frequency synchronous transmission method and master-slave device
CN104836630B (en) IEEE1588 clock synchronization system and implementation method therefor
US9256247B2 (en) Method and apparatus for communicating time information between time aware devices
CN102244603B (en) Method, equipment and system for transmitting message bearing time
EP3284244B1 (en) Methods, systems, and computer readable media for emulating network devices with different clocks
US20130301634A1 (en) Timing synchronization for networks with radio links
CN103152118B (en) A kind of Base Band Unit and radio frequency unit data service synchronization, device and system
CN102710410B (en) Clock synchronizing method for NTP network and PTP network
CN102263629B (en) Method for time synchronization among boards, clock board and NE (network element) device
US20130077659A1 (en) Communication apparatus, communication system, and communication method
CN102082697A (en) Communication path asymmetric time delay measuring method, device and system
CN102769908A (en) Time synchronizer and time synchronization method applied to protective test equipment of power system
CN103168440A (en) Method and device for compensating for time path
CN113259038A (en) Time synchronization method, node, device and storage medium
CN107809295A (en) A kind of cross-platform time synchronism apparatus and method
CN101951300B (en) Method for realizing accurate time tick of Ethernet
CN103546273B (en) Frequency synchronism device and method based on PTP frames
CN106506107A (en) A kind of ntp server time service implementation method based on hardware timestamping
CN102916758A (en) Ethernet time synchronization device and network equipment
CN104935584A (en) Time service method, device and system based on mode of circuit transmission
CN109379160A (en) A kind of clock alignment server and method
CN108768573B (en) Clock synchronization method and device
CN102571253B (en) Method and equipment for implementing precise time synchronization
CN108155965A (en) SDH transmits IEC61588 methods
CN102983959B (en) Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC

Legal Events

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