CN104935584B - A kind of time service method and apparatus and system based on circuit transmission mode - Google Patents
A kind of time service method and apparatus and system based on circuit transmission mode Download PDFInfo
- Publication number
- CN104935584B CN104935584B CN201510292678.6A CN201510292678A CN104935584B CN 104935584 B CN104935584 B CN 104935584B CN 201510292678 A CN201510292678 A CN 201510292678A CN 104935584 B CN104935584 B CN 104935584B
- Authority
- CN
- China
- Prior art keywords
- terminal
- ntp
- data packets
- timestamp
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/28—Timers or timing mechanisms used in protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of time service method and apparatus and system based on circuit transmission mode, this method includes:First NTP data packets are converted into the first data link packet, and passes through E1 links and sends it to second terminal, so that the first data link packet is converted to the first NTP data packets by second terminal, and the 2nd NTP data packets are generated according to the first NTP data packets;The second data link packet of second terminal feedback is received by E1 links;Second data link packet is converted the 2nd NTP data packets by second terminal and is obtained;Second data link packet is converted into the 2nd NTP data packets, and read first, second, and third timestamp of the 2nd NTP data packets;According to the first, second, third and fourth timestamp, time deviation is calculated, and the clock of first terminal is corrected according to time deviation.Using the embodiment of the present invention can make terminal in circuit-switched network realize Network Time Protocol pair when time service, the precision of time service when improving pair.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of time service method and device based on circuit transmission mode and
System.
Background technology
Terminal device sets time time service, and general there are two types of major way, one kind is " wireless " time service mode, such as
GPRS, GPS etc., it is another for " wired " time service mode, such as the time calibration in network agreement such as NTP, PTP.For awarding for Network Time Protocol
When, Network Time Protocol (abbreviation NTP) are a kind of agreements for carrying out computer time synchronization, it can be carried
For the time adjustment of high accurancy and precision.Network Time Protocol mainly supports operating mode at three kinds pairs, including:Master slave mode, multicast/wide
Broadcast pattern and symmetric pattern.Wherein, the main ntp server of master slave mode is led to client by the twisted-pair feeder of Ethernet
Letter realizes the transmission of NTP data packets, and client calculates the clock jitter of the machine and ntp server by exchanging NTP data packets,
Clock jitter is reused to adjust local clock, so that time and ntp server time consistency.
But the time service method need to rely on packet switching network, be only capable of setting time time service in a packet switched network, and
When packet switching network can not be provided, time service when terminal cannot be completed pair.In addition, carry out long distance transmission in circuit switching
When, the precision of time service when having no related protocol guarantee pair.
Invention content
The embodiment of the present invention proposes a kind of time service method and apparatus and system based on circuit transmission mode, can hand over circuit
Terminal in switching network realize Network Time Protocol pair when time service, the precision of time service when improving pair.
The embodiment of the present invention provides a kind of time service method based on circuit transmission mode, including:
First NTP data packets are converted into the first data link packet, the NTP data packets are included described in first terminal generation
First time stamp during the first NTP data packets;
The first data link packet is sent to by second terminal by E1 links, so that the second terminal is by described
One data link packet is converted to the first NTP data packets, reads the first time stamp in the first NTP data packets, and root
The 2nd NTP data packets are generated according to the first NTP data packets;Wherein, the 2nd NTP data packets include the first time
The second timestamp and the second terminal when stamp, the second terminal receive the first data link packet generate described second
Third timestamp during NTP data packets;
The second data link packet of the second terminal feedback is received by the E1 links, and records reception described second
The 4th timestamp during data link packet;Wherein, the second data link packet converts the 2nd NTP by the second terminal
Data packet and obtain;
The second data link packet is converted into the 2nd NTP data packets, and reads the 2nd NTP data packets
Stamp, the second timestamp and third timestamp at the first time;
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, the first terminal is calculated
With the time deviation between the second terminal, and the clock of the first terminal is corrected according to the time deviation.
Further, it is described according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, meter
The time deviation between first terminal and the second terminal is calculated, is specifically included:
The first terminal and the time deviation of the second terminal are calculated according to following calculation formula;
Wherein, t be the time deviation, T1 at the first time stab, T2 be the second timestamp, T3 be third timestamp, T4
For the 4th timestamp.
Further, the second terminal generates the 2nd NTP data packets according to the first NTP data packets, specifically includes:
The first NTP data packets are sent to by ntp server by Ethernet, so that the ntp server is according to institute
It states the first NTP data packets and feeds back corresponding Network Time Protocol information;
When the Network Time Protocol information, first time stamp, the second terminal are received the first data link packet
Third timestamp encapsulation when generating the 2nd NTP data packets of the second timestamp and the second terminal, generation described the
Two NTP data packets.
Further, it is described that the first data link packet is sent to by second terminal by E1 links, it specifically includes:
The first data link packet is sent to by second terminal by a time slot in the E1 links.
Further, the second data link packet that the second terminal feedback is received by the E1 links, specifically
Including:
The second data link packet of the second terminal feedback is received by a time slot in the E1 links.
Correspondingly, the embodiment of the present invention also provides a kind of time service device based on circuit transmission mode, including:
First converting unit, for the first NTP data packets to be converted to the first data link packet, the NTP data packets packet
First time stamp during the first NTP data packets is generated containing first terminal;
The first data link packet is sent to second terminal by transmitting element for passing through E1 links, for described
The first data link packet is converted to the first NTP data packets by two terminals, reads the in the first NTP data packets
One timestamp, and the 2nd NTP data packets are generated according to the first NTP data packets;Wherein, the 2nd NTP data packets include
The second timestamp and the second terminal when first time stamp, second terminal reception the first data link packet
Generate third timestamp during the 2nd NTP data packets;
Receiving unit for receiving the second data link packet of the second terminal feedback by the E1 links, and is remembered
Record receives the 4th timestamp during the second data link packet;Wherein, the second data link packet is by the second terminal
It converts the 2nd NTP data packets and obtains;
Second converting unit for the second data link packet to be converted to the 2nd NTP data packets, and reads institute
State first time stamp, the second timestamp and the third timestamp of the 2nd NTP data packets;
Correction unit is calculated, for according to first time stamp, the second timestamp, third timestamp and the 4th time
Stamp calculates the time deviation of the first terminal and the second terminal, and according to time deviation correction described first eventually
The clock at end.
Further, it is described calculate correction unit include the first computing unit, first computing unit be used for according to
Lower calculation formula calculates the first terminal and the time deviation of the second terminal;
Wherein, t be the time deviation, T1 at the first time stab, T2 be the second timestamp, T3 be third timestamp, T4
For the 4th timestamp.
Correspondingly, the embodiment of the present invention also provides a kind of time dissemination system based on circuit transmission mode, including:First eventually
Time service device described in end, second terminal, ntp server and claim 6;
The time service device is arranged in the first terminal;
The first terminal is communicated to connect by E1 links and the second terminal;
The second terminal is communicated to connect by Ethernet and the ntp server.
Implement the embodiment of the present invention, have the advantages that:
First NTP data packets are converted to by the time service method provided in an embodiment of the present invention based on circuit transmission mode
One data link packet carries out communications by the E1 links between first terminal and second terminal, so that second terminal receives
The first NTP data packets are restored it back after first data link packet, and corresponding second is generated according to the first NTP data packets
NTP data packets, then the 2nd NTP data packets are converted to after the second data link packet through E1 Link Feedbacks to first terminal.
The 2nd NTP data packets are restored it back after receiving the second data link packet, and obtain stamp, the second timestamp, third at the first time
Timestamp and the 4th timestamp, wherein, stamp generates the time of the first NTP data packets, the second time for first terminal at the first time
It stabs the time that the first data link packet is received for second terminal, third timestamp generates the 2nd NTP data packets for second terminal
Time, the 4th timestamp receive the time of the second data link packet for first terminal.First terminal is finally calculated according to timestamp
Time deviation between second terminal, and according to the clock of time deviation correction first terminal.Compared with the prior art without
Method realizes time service and ensures the precision of time service without related time service agreement in a circuit switched network, and technical solution of the present invention can be
Time service during completion pair in circuit-switched network, and when circuit switching carries out long distance transmission, provide when Network Time Protocol is pair and award
When precision provide safeguard.
Further, the present invention is transmitted, not only when transmitting data link packet by a time slot in E1 links
The resource of E1 links can be saved, and relative to the transmission time directly on E1 originally, the present invention can improve time service precision, reduce
Error.
On the other hand, the present invention provides a kind of time service device based on circuit transmission mode, the first converting unit is by
One NTP data packets are converted to the first data link packet, transmitting element by the E1 links between first terminal and second terminal into
Row communications restore it back the first NTP data packets after receiving the first data link packet for second terminal, and according to this
One NTP data packets generate corresponding 2nd NTP data packets, then lead to after the 2nd NTP data packets are converted to the second data link packet
Cross receiving unit of the E1 Link Feedbacks to the present apparatus.The second converting unit restores it back after the second data link packet is received
Two NTP data packets, and stamp, the second timestamp, third timestamp and the 4th timestamp at the first time are obtained, wherein, at the first time
It stabs the time that the first NTP data packets are generated for first terminal, the second timestamp receives the first data link packet for second terminal
Time, third timestamp generate the time of the 2nd NTP data packets for second terminal, and the 4th timestamp receives second for first terminal
The time of data link packet.Finally according to the time deviation between timestamp calculating first terminal and second terminal, and according to this
Time deviation corrects the clock of first terminal.Can not realize in a circuit switched network compared with the prior art time service to without related
Time service agreement ensures the precision of time service, the time service when present apparatus can be completed pair in a circuit switched network, and in circuit switching
When carrying out long distance transmission, the precision for providing time service when Network Time Protocol is pair provides safeguard.
In another aspect, the present invention provides a kind of time dissemination system based on circuit transmission mode, including first terminal, second
The time service device of terminal, ntp server and the present invention.Time service device is arranged in first terminal, and first terminal passes through E1 links
It is communicated to connect with second terminal, second terminal is communicated to connect by Ethernet and ntp server.This time dissemination system can be first eventually
When end is without packet switching network, when being communicated and completed pair with second terminal by circuit-switched network, and circuit switching into
During row long distance transmission, the precision for providing time service when Network Time Protocol is pair provides safeguard.
Description of the drawings
Fig. 1 is a kind of flow diagram of embodiment of the time service method provided by the invention based on circuit transmission mode;
Fig. 2 is that a kind of structure of embodiment of the time service device provided in an embodiment of the present invention based on circuit transmission mode is shown
It is intended to;
Fig. 3 is a kind of a kind of knot of embodiment of time dissemination system based on circuit transmission mode provided in an embodiment of the present invention
Structure schematic diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1
Referring to Fig. 1, Fig. 1 is a kind of flow of embodiment of the time service method provided by the invention based on circuit transmission mode
Schematic diagram, this method include the following steps:
Step 101:First NTP data packets are converted into the first data link packet, NTP data packets are generated comprising first terminal
First time stamp during the first NTP data packets.
In the present embodiment, first terminal is the terminal device for needing to calibrate local clock, and first terminal automatically generates the
One NTP data packets, the first NTP data packets include authorization requests, corresponding Network Time Protocol is asked in the time service and stab at the first time.
Wherein, time when the first NTP data packets are generated for first terminal is stabbed at the first time.
Step 102:First data link packet is sent to by second terminal by E1 links, so that second terminal is counted first
The first NTP data packets are converted to according to link packet, read the first time stamp in the first NTP data packets, and according to the first NTP data
Packet the 2nd NTP data packets of generation;Wherein, the 2nd NTP data packets include stamp, second terminal the first data link of reception at the first time
The second timestamp and second terminal during packet generate third timestamp during the 2nd NTP data packets.
In the present embodiment, it is communicated between first terminal and second terminal by E1 links, second terminal can pass through
Ethernet communicates with ntp server.During communication, the first data link packet is sent to by second terminal by E1 links.Second
Terminal is converted into the first NTP data packets after the first data link packet is received, and read in the first NTP data packets the
One timestamp generates the 2nd NTP data packets further according to the first NTP data packets.
In the present embodiment, second terminal generates the 2nd NTP data packets according to the first NTP data packets, specifically includes:Pass through
First NTP data packets are sent to ntp server by Ethernet, so that ntp server is fed back accordingly according to the first NTP data packets
Network Time Protocol information.Network Time Protocol of the ntp server in the first NTP data packets is analyzed and determined accordingly, is generated new
Network Time Protocol information, and the Network Time Protocol information is fed back into second terminal.Second terminal is by the Network Time Protocol information of feedback, first
Timestamp, the second timestamp and third timestamp are packaged, and generate the 2nd NTP data packets.Wherein, the second timestamp is second
Terminal receives time during the first data link packet, when third timestamp is that second terminal generates the 2nd NTP data packets
Third timestamp.
In the present embodiment, the first data link packet is sent to by second terminal by E1 links, specifically included:Pass through E1
First data link packet is sent to second terminal by a time slot in link.First is counted using a time slot in E1 links
The resource of E1 links can be saved by being sent to second terminal according to link packet, other time slots of E1 links can continue to execute original business
Function of exchange.Second terminal can provide the transmission of 31 channels progress data link packets as receiving terminal.
In the present embodiment, if second terminal needs pair, since it can be connected by Ethernet and ntp server
It connects, can online time service be realized according to Network Time Protocol, the contents of the section is the prior art, is not being repeated herein.
Step 103:The second data link packet of second terminal feedback is received by E1 links, and records and receives the second data
The 4th timestamp during link packet;Wherein, the second data link packet is converted the 2nd NTP data packets by second terminal and is obtained.
In the present embodiment, the 2nd NTP data packets are converted to the second data link packet by second terminal, and pass through E1 links
When being sent to first terminal, the second data link packet of first terminal reception feedback, and recording reception the second data link packet
The 4th timestamp.
In the present embodiment, the second data link packet of second terminal feedback is received by E1 links, is specifically included:Pass through
A time slot in E1 links receives the second data link packet of second terminal feedback.The present invention is only with one in E1 links
Time slot carries out the transmission of data link packet, saves the resource of E1 links, other time slots can continue to execute the data of original business
It exchanges.In addition, one or two time slot using E1 links is transmitted, the precision of time service can be improved, error is at 1 millisecond to 50
Between millisecond.
In the present embodiment, E1 links can be, but not limited to as the E1 links in common exchanging telephone network PSTN.
Step 104:Second data link packet is converted into the 2nd NTP data packets, and read the first of the 2nd NTP data packets
Timestamp, the second timestamp and third timestamp.
Step 105:According to stamp, the second timestamp, third timestamp and the 4th timestamp at the first time, first terminal is calculated
Time deviation between second terminal, and according to the clock of time deviation correction first terminal.
In the present embodiment, according to stamp, the second timestamp, third timestamp and the 4th timestamp at the first time, calculating the
Time deviation between one terminal and second terminal, specifically includes:The first terminal and institute are calculated according to following calculation formula
State the time deviation of second terminal.
Wherein, t is time deviation, and for T1 to stab at the first time, T2 is the second timestamp, and T3 is third timestamp, T4 the
Four timestamps.
Therefore the time service method provided in an embodiment of the present invention based on circuit transmission mode, by the first NTP data packets
The first data link packet is converted to, communications are carried out by the E1 links between first terminal and second terminal, for second
Terminal restores it back the first NTP data packets, and generate accordingly according to the first NTP data packets after receiving the first data link packet
The 2nd NTP data packets, then by the 2nd NTP data packets be converted to after the second data link packet by E1 Link Feedbacks to first eventually
End.Restore it back the 2nd NTP data packets after the second data link packet is received, and obtain at the first time stamp, the second timestamp,
Third timestamp and the 4th timestamp, wherein, it stabs at the first time the time that the first NTP data packets are generated for first terminal, second
Timestamp receives the time of the first data link packet for second terminal, and third timestamp generates the 2nd NTP data for second terminal
The time of packet, the 4th timestamp receive the time of the second data link packet for first terminal.Finally first is calculated according to timestamp
Time deviation between terminal and second terminal, and according to the clock of time deviation correction first terminal.Compared to existing skill
Art can not realize time service and ensure the precision of time service, technical solution of the present invention without related time service agreement in a circuit switched network
Time service when can complete in a circuit switched network pair, and when circuit switching carries out long distance transmission, provide Network Time Protocol for pair
When time service precision provide safeguard.
Further, the present invention is transmitted, not only when transmitting data link packet by a time slot in E1 links
The resource of E1 links can be saved, and relative to the transmission time directly on E1 originally, the present invention can improve time service precision, reduce
Error.
Further, time service method of the invention need not rely on packet data network, certain is being limited in by external condition
Under a little special occasions, GPS, GPRS are when the system of wireless time service can not be completed pair in the case of time service, such as the tunnel of coal mine
In, present invention time service when can improve accurate pair, time service scheme when being provided pair for certain special occasions.
Embodiment 2
Referring to Fig. 2, Fig. 2 is a kind of embodiment of the time service device provided in an embodiment of the present invention based on circuit transmission mode
Structure diagram.As shown in Fig. 2, the device includes:First converting unit 201, transmitting element 202, receiving unit 203,
Two converting units 204 and calculating correction unit 205.First converting unit 201 respectively with transmitting element 202, the second converting unit
204 electrical connections.Second converting unit 204 is electrically connected respectively with receiving unit 203, calculating correction unit 205.
First converting unit 201, for the first NTP data packets to be converted to the first data link packet, NTP data packets include
First terminal generates first time stamp during the first NTP data packets.
First data link packet is sent to second terminal, for second terminal by transmitting element 202 for passing through E1 links
First data link packet is converted into the first NTP data packets, the first time read in the first NTP data packets stabs, and according to
First NTP data packets generate the 2nd NTP data packets.Wherein, the 2nd NTP data packets include first time stamp, second terminal connects
The second timestamp and second terminal when receiving the first data link packet generate third timestamp during the 2nd NTP data packets.
Receiving unit 203 receives the second data link packet of second terminal feedback, and record reception for passing through E1 links
The 4th timestamp during the second data link packet.Wherein, the second data link packet converts the 2nd NTP data by second terminal
It wraps and obtains.
Second converting unit 204 for the second data link packet to be converted to the 2nd NTP data packets, and reads the 2nd NTP
First time stamp, the second timestamp and the third timestamp of data packet.
Correction unit 205 is calculated, for according to stamp, the second timestamp, third timestamp and the 4th timestamp at the first time,
The time deviation of first terminal and second terminal is calculated, and the clock of first terminal is corrected according to the time deviation.
As a kind of citing of the present embodiment, calculate correction unit 205 and can be, but not limited to include the first computing unit.The
One computing unit is used to calculate the time deviation of first terminal and second terminal according to following calculation formula.
Wherein, t be the time deviation, T1 at the first time stab, T2 be the second timestamp, T3 be third timestamp, T4
For the 4th timestamp.
The more detailed operation principle of the present embodiment can be, but not limited to refer to the related record of embodiment 1 to content.
Therefore the present invention provides a kind of time service device based on circuit transmission mode, the first converting unit is by
One NTP data packets are converted to the first data link packet, transmitting element by the E1 links between first terminal and second terminal into
Row communications restore it back the first NTP data packets after receiving the first data link packet for second terminal, and according to this
One NTP data packets generate corresponding 2nd NTP data packets, then lead to after the 2nd NTP data packets are converted to the second data link packet
Cross receiving unit of the E1 Link Feedbacks to the present apparatus.The second converting unit restores it back after the second data link packet is received
Two NTP data packets, and stamp, the second timestamp, third timestamp and the 4th timestamp at the first time are obtained, wherein, at the first time
It stabs the time that the first NTP data packets are generated for first terminal, the second timestamp receives the first data link packet for second terminal
Time, third timestamp generate the time of the 2nd NTP data packets for second terminal, and the 4th timestamp receives second for first terminal
The time of data link packet.Finally according to the time deviation between timestamp calculating first terminal and second terminal, and according to this
Time deviation corrects the clock of first terminal.Can not realize in a circuit switched network compared with the prior art time service to without related
Time service agreement ensures the precision of time service, the time service when present apparatus can be completed pair in a circuit switched network, and in circuit switching
When carrying out long distance transmission, the precision for providing time service when Network Time Protocol is pair provides safeguard.
Embodiment 3
Referring to Fig. 3, Fig. 3 is a kind of a kind of reality of time dissemination system based on circuit transmission mode provided in an embodiment of the present invention
Apply the structure diagram of example.The time dissemination system includes:First terminal 301, second terminal 302, ntp server 303 and embodiment 2
Described in time service device 304.
Time service device 304 is arranged in first terminal 301.First terminal 301 is communicated by E1 links with second terminal 302
Connection.Second terminal 302 is communicated to connect by Ethernet and ntp server 303.
In the present embodiment, first terminal 301 is with the external world due to having no packet switching network, therefore to constantly needing using electricity
When E1 links in the exchange network of road are realized pair.Second terminal 302 can be by Ethernet with being awarded during the realization pair of ntp server 303
When.
In the present embodiment first terminal pair when operation principle and flow can be, but not limited to phase referring to Examples 1 and 2
It closes and records.
Therefore the present invention provides a kind of time dissemination system based on circuit transmission mode, including first terminal 301,
The time service device 304 of second terminal 302, ntp server 303 and the present invention.Time service device 304 is arranged in first terminal 301,
First terminal 301 is communicated to connect by E1 links and second terminal 302, and second terminal 302 passes through Ethernet and ntp server
303 communication connections.This time dissemination system can pass through circuit-switched network and second when first terminal 301 is without packet switching network
When terminal 302 communicates and completes pair, and when circuit switching carries out long distance transmission, provide Network Time Protocol for pair when time service
Precision provides safeguard.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (7)
1. a kind of time service method based on circuit transmission mode, which is characterized in that including:
First NTP data packets are converted into the first data link packet, the NTP data packets include first terminal and generate described first
First time stamp during NTP data packets;
The first data link packet is sent to by second terminal by E1 links, so that the second terminal is counted described first
The first NTP data packets are converted to according to link packet, read the first time stamp in the first NTP data packets, and according to institute
It states the first NTP data packets and generates the 2nd NTP data packets;Wherein, the 2nd NTP data packets include first time stamp, institute
It states the second timestamp and the second terminal when second terminal receives the first data link packet and generates the 2nd NTP numbers
Third timestamp during according to packet;
The second data link packet of the second terminal feedback is received by the E1 links, and records and receives second data
The 4th timestamp during link packet;Wherein, the second data link packet converts the 2nd NTP data by the second terminal
It wraps and obtains;
The second data link packet is converted into the 2nd NTP data packets, and reads the first of the 2nd NTP data packets
Timestamp, the second timestamp and third timestamp;
According to first time stamp, the second timestamp, third timestamp and the 4th timestamp, the first terminal and institute are calculated
The time deviation between second terminal is stated, and the clock of the first terminal is corrected according to the time deviation;
Wherein, the second terminal generates the 2nd NTP data packets according to the first NTP data packets, specifically includes:
The first NTP data packets are sent to by ntp server by Ethernet, so that the ntp server is according to described
One NTP data packets feed back corresponding Network Time Protocol information;
By the Network Time Protocol information, first time stamp, the second terminal receives the first data link packet when the
Two timestamps and the second terminal generate third timestamp encapsulation during the 2nd NTP data packets, generate the 2nd NTP
Data packet.
2. the time service method according to claim 1 based on circuit transmission mode, which is characterized in that described according to described
One timestamp, the second timestamp, third timestamp and the 4th timestamp, calculate between first terminal and the second terminal when
Between deviation, specifically include:
The first terminal and the time deviation of the second terminal are calculated according to following calculation formula;
Wherein, t is the time deviation, and for T1 to stab at the first time, T2 is the second timestamp, and T3 is third timestamp, T4 the
Four timestamps.
3. the time service method according to claim 1 based on circuit transmission mode, which is characterized in that described to pass through E1 links
The first data link packet is sent to second terminal, is specifically included:
The first data link packet is sent to by second terminal by a time slot in the E1 links.
4. the time service method according to claim 1 based on circuit transmission mode, which is characterized in that described to pass through the E1
Link receives the second data link packet of the second terminal feedback, specifically includes:
The second data link packet of the second terminal feedback is received by a time slot in the E1 links.
5. a kind of time service device based on circuit transmission mode, which is characterized in that including:
First converting unit, for the first NTP data packets to be converted to the first data link packet, the NTP data packets include the
One terminal generates first time stamp during the first NTP data packets;
The first data link packet is sent to second terminal by transmitting element for passing through E1 links, for described second eventually
The first data link packet is converted to the first NTP data packets by end, when reading first in the first NTP data packets
Between stab, and according to the first NTP data packets generate the 2nd NTP data packets;Wherein, the 2nd NTP data packets include described
The second timestamp and the second terminal when stamp, the second terminal receive the first data link packet at the first time generate
Third timestamp during the 2nd NTP data packets;Wherein, the 2nd NTP data packets are generated according to the first NTP data packets,
Specially:The first NTP data packets are sent to by ntp server by Ethernet, so that the ntp server is according to
First NTP data packets feed back corresponding Network Time Protocol information;By the Network Time Protocol information, first time stamp, described second
When the second timestamp and the second terminal when terminal receives the first data link packet generate the 2nd NTP data packets
The encapsulation of third timestamp, generate the 2nd NTP data packets;
Receiving unit for receiving the second data link packet of the second terminal feedback by the E1 links, and is recorded and is connect
Receive the 4th timestamp during the second data link packet;Wherein, the second data link packet is converted by the second terminal
The 2nd NTP data packets and obtain;
Second converting unit for the second data link packet to be converted to the 2nd NTP data packets, and reads described
First time stamp, the second timestamp and the third timestamp of two NTP data packets;
Correction unit is calculated, for according to first time stamp, the second timestamp, third timestamp and the 4th timestamp, meter
Calculate the time deviation of the first terminal and the second terminal, and according to the time deviation correct the first terminal when
Clock.
6. the time service device according to claim 5 based on circuit transmission mode, which is characterized in that
The correction unit that calculates includes the first computing unit, and first computing unit is used to be calculated according to following calculation formula
The first terminal and the time deviation of the second terminal;
Wherein, t is the time deviation, and for T1 to stab at the first time, T2 is the second timestamp, and T3 is third timestamp, T4 the
Four timestamps.
7. a kind of time dissemination system based on circuit transmission mode, which is characterized in that including:First terminal, second terminal, NTP clothes
Time service device described in business device and claim 5;
The time service device is arranged in the first terminal;
The first terminal is communicated to connect by E1 links and the second terminal;
The second terminal is communicated to connect by Ethernet and the ntp server.
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 CN104935584A (en) | 2015-09-23 |
CN104935584B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729277B (en) * | 2018-11-19 | 2021-10-01 | 魔门塔(苏州)科技有限公司 | Multi-sensor acquisition timestamp synchronization device |
CN110139041B (en) * | 2018-11-19 | 2021-09-28 | 魔门塔(苏州)科技有限公司 | Remote multi-sensing signal synchronous acquisition method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1265124B1 (en) * | 2001-06-07 | 2004-05-19 | Siemens Aktiengesellschaft | Method for transmitting time information in a packet data network |
-
2015
- 2015-06-01 CN CN201510292678.6A patent/CN104935584B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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)
Title |
---|
《电力时间同步组网技术研究》;陈业钊;《广东电力》;20070625;对比文件3-4页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104935584A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108667547B (en) | A kind of Network Time Protocol conversion method and system | |
CN101951312B (en) | E1 link-based bidirectional time-frequency synchronous transmission method and master-slave device | |
US9698926B2 (en) | Distributed two-step clock | |
CN107508719B (en) | Method and device for measuring network time delay and network node | |
US9014282B2 (en) | Precision timing in a data over cable service interface specification (DOCSIS) system | |
US9628209B2 (en) | Time synchronization in distributed network testing equipment | |
US9736804B2 (en) | Methods, systems, and computer readable media for synchronizing timing among network interface cards (NICS) in a network equipment test device | |
EP3284244B1 (en) | Methods, systems, and computer readable media for emulating network devices with different clocks | |
CN101455014B (en) | Methods and devices for sending transmission-time or reception-time information for a transmitted or received message | |
JP5636093B2 (en) | Method and apparatus for performing clock synchronization between devices | |
CN108463959B (en) | Method and apparatus for aligning radio interface frame timing references | |
CN103929293A (en) | Asymmetrically-delayed time synchronization method and system | |
CN102244603B (en) | Method, equipment and system for transmitting message bearing time | |
CN103873179A (en) | Device and method for making passive optical network possess ability of supporting time synchronization | |
US20150117471A1 (en) | Method and apparatus for securing clock synchronization in a network | |
CN103168440B (en) | Time path compensation method and device | |
CN101330342B (en) | Method for implementing time synchronization protocol using port mirror and apparatus thereof | |
JP2013501433A (en) | Method and system for optical transmission network carrying time synchronization protocol | |
CN104935584B (en) | A kind of time service method and apparatus and system based on circuit transmission mode | |
CN101951300B (en) | Method for realizing accurate time tick of Ethernet | |
CN102916758A (en) | Ethernet time synchronization device and network equipment | |
JP2013098788A (en) | Time synchronization system and time synchronization method | |
CN107636627B (en) | Time synchronization device, time synchronization system, and time synchronization method | |
CN102983959B (en) | Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC | |
CN102571252B (en) | Timing method of high-precision NTP (Network Time Protocol) timing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |