CN101388741A - Highly precised time synchronization device, system and method for computer network - Google Patents

Highly precised time synchronization device, system and method for computer network Download PDF

Info

Publication number
CN101388741A
CN101388741A CN200810224891.3A CN200810224891A CN101388741A CN 101388741 A CN101388741 A CN 101388741A CN 200810224891 A CN200810224891 A CN 200810224891A CN 101388741 A CN101388741 A CN 101388741A
Authority
CN
China
Prior art keywords
time
timestamp
clock
signal
control word
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
CN200810224891.3A
Other languages
Chinese (zh)
Other versions
CN101388741B (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.)
Shanghai Yinglian Information Technology Co ltd
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN200810224891.3A priority Critical patent/CN101388741B/en
Publication of CN101388741A publication Critical patent/CN101388741A/en
Application granted granted Critical
Publication of CN101388741B publication Critical patent/CN101388741B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a high-accuracy time synchronizing apparatus, a method and a system for testing the computer network performance, monitoring system and network simulation, which comprises the following steps: utilizing a hardware circuit to realize a timestamp generating circuit, moving a timestamp recording position to a physical chain circuit layer, removing impact of the cache delay in the timestamp of a common software and impact caused by interrupting the response time delay, and realizing the accurate clock synchronization of each measuring node through the prediction-based time synchronous algorithm (Prediction-based Clock Synchronization,PCS). The apparatus improves the accuracy of the timestamp, can guarantee the error of the synchronous timestamp of each measured node not to exceed 100ns, and can reach the accuracy which is equal to adopting GPS synchronization, and the realization is simple and the cost is low.

Description

A kind of high-accuracy time synchronizing apparatus, system and method that is used for computer network
Technical field
The present invention relates to applications of computer network technical field, more specifically, the present invention relates to a kind of high-accuracy time synchronizing apparatus, system and method that is used for computer network.
Background technology
All the have relatively high expectations time synchronized of precision of distributed network system (DNS), computer network performance measurement and application such as test macro and network simulation.For example, when the transmission of packet in the computer network performance measurement, reception, it is network parameter based measurement such as time delay, bandwidth, shake that precise time stabs mark.In a multinode computer network measuring system, each nodal clock will have the degree of precision except self, also need the very high synchronization accuracy that keeps, otherwise network performance parameters such as the time-delay of calculating by time tolerance between comparison node, shake are with inaccurate.
Method for synchronizing time commonly used generally is the software clock method for synchronous, and common time protocol Network Based (Network Time Protocol, NTP).Node utilizes on Network Time Protocol and the network time server synchronous, wraps in round-trip delay on the network by the estimated data, computing node clock and time server clock jitter, thereby finish nodal clock and time server clock synchronously.NTP can obtain the 1ms synchronization accuracy under LAN environment, can obtain the 28.7ms synchronization accuracy under wan environment.Raising is to use Time Stamp Counter (Time Stamp Counter based on a way of Network Time Protocol clock synchronization accuracy, TSC), main flow CPU provides the TSC register, clock periodicity since its record main frame powers on, this precision is relevant with cpu frequency, and the TSC precision of the CPU of 1GHz is 1ns.NTP in conjunction with the TSC counter can bring up to precision the microsecond level synchronously.But this software approach is subjected to buffer delay uncertain and interrupt response time is uncertain influences, and is difficult to the precision that reaches higher.
Hardware clock simultaneous techniques SynUTC based on Ethernet utilizes hardware circuit to come generation time to stab, and synchronous error can reach 100ns.But SynUTC need revise the Ethernet fabric, and existing switch hardware must be made certain modification could support SynUTC, is difficult to apply on a large scale.
Also exist based on IEEE1588 chronometer time agreement (Precision Time Protocol, PTP) method for synchronizing time, the PTP agreement is the time synchronized standard of network measure and control system, according to the required precision of using, adopts software synchronization and two kinds of implementations of hardware synchronization.Hard-wired PTP synchronization accuracy can reach 233ns, but since synchrodata to wrap in switch or the router processing delay uncertain, cause the synchronized result instability.
(Global Position System, external clock reference GPS) can reach the synchronization accuracy of nanosecond to utilize global positioning system.But gps system costs an arm and a leg, and the gps antenna installation is inconvenient, causes the measured node deployed position limited.
Summary of the invention
The defective poor for the universality that overcomes time synchronized in the active computer network application, that precision is low, the present invention proposes a kind of high-accuracy time synchronizing apparatus, system and method that is used for computer network.
According to an aspect of the present invention, a kind of time synchronism equipment that is used for network system has been proposed, comprise, GTP transceiver, MAC controller, transceive data bag buffer queue and PCIe endpoint controller, it is characterized in that described time synchronism equipment also comprises one or more timestamp insert module and one or more PCS time stamp generator;
Wherein, described PCS time stamp generator is used for receiving and sending synchronizing clock signals, produces synchronized timestamp; Described timestamp insert module is connected with PCS time stamp generator, MAC controller and transceive data bag buffer queue respectively, described synchronized timestamp is inserted into the physical link layer of packet.
Wherein, described PCS time stamp generator is according to frequency preset control word and crystal oscillator clock signal, and output time stabs signal.
Wherein, described PCS time stamp generator receives synchronised clock input signal and crystal oscillator clock signal, and according to the frequency preset control word, generation time stabs signal and offers described timestamp insert module.
Wherein, described PCS time stamp generator comprises:
Direct synthesizer is used for stabbing signal according to reference clock signal and frequency control word generation time;
Time Stamp Counter comprises low counter and high-positioned counter, is used to receive described time stamp signal and described synchronizing clock signals or control signal, and output time stabs the timestamp insert module or is provided for the master clock timestamp.
Wherein, described timestamp insert module was inserted timestamp information before the packet that receives from described MAC controller outputs to the reception data packet queue; Data in the data packet queue were inserted timestamp information before sending to described MAC controller; Wherein, described timestamp information inserts the physical link layer of described packet.
According to a further aspect in the invention, a kind of clock synchronization system that is used for network system has been proposed, comprise a plurality of described time synchronism equipments, wherein, one of them of described a plurality of time synchronism equipments be as main equipment, described remaining time synchronism equipment as slave unit, described main equipment produces the synchronised clock output signal, described slave unit receives described synchronised clock output signal, realizes the time synchronized of system.
Wherein, the PCS time stamp generator of described main equipment is according to frequency preset control word and crystal oscillator clock signal, and output time stabs timestamp insert module and the described slave unit that signal is given described main equipment.
Wherein, described slave unit PCS time stamp generator receives described synchronised clock output signal and crystal oscillator clock signal, and according to the frequency preset control word, generation time stabs the timestamp insert module that signal offers slave unit.
According to another aspect of the invention, proposed a kind of method for synchronizing time that uses above-mentioned clock synchronization system, having comprised:
Step 10), slave unit receive the time synchronizing signal of main equipment, the current time of reading this slave unit;
Step 20), obtain time difference Δ t between reading for the third time and read for the second time and read for the second time and reading for the first time 2With Δ t 1
Step 30), obtain the frequency signal of reference clock, f ref = f syn 2 N K dds = Δ t 2 × 2 N K dds 0 , wherein, N is the FREQUENCY CONTROL word bit number,
Figure A200810224891D00062
Be the original frequency control word, upgrade described frequency control word, K dds 1 = ( 4 × 2 m - ( Δ t 1 + 2 Δ t 2 ) Δ t 2 ) × K dds 0 , wherein m is the timestamp precision;
Step 40), pass through frequency control word
Figure A200810224891D00072
Adjust the clock frequency of slave unit, and calculate the frequency control word that upgrades
Figure A200810224891D00073
K dds 2 = 2 m × K dds 0 Δ t 3 , use described frequency control word
Figure A200810224891D00075
Adjust the slave unit clock frequency, realize the synchronous of system.
Wherein, described method also comprises:
Step 50), calculate the double time difference Δ t that slave unit reads main equipment i=T i-T I-1Obtain the error e in reading for twice 0(i) and e 1(i), e 0 ( i ) = 2 m - Δ t i × K dds i K dss i - 1 , e 1(i)=2 m-Δ t i, the calculated rate control word
Figure A200810224891D00077
K dds i + 1 = 2 m + e 0 ( i ) + e 1 ( i ) Δ t i × K dds i - 1 , By
Figure A200810224891D00079
Adjust the clock frequency of slave unit.
The present invention utilizes hardware circuit to realize timestamp being write down timestamp the position move on to physical link layer, has eliminated buffer delay in the common software timestamp and interrupt response time and has postponed the influence that brings; (Prediction-based Clock Synchronization PCS) has realized that the precision clock of each measured node is synchronous by the time synchronized algorithm based on prediction; The present invention has improved the timestamp precision, can guarantee that each measured node synchronized timestamp error is no more than 100ns, reaches and the precision that adopts the GPS locking phase to work as.
Description of drawings
Fig. 1 is split-second precision synchronization scenario schematic diagram according to an embodiment of the invention;
Fig. 2 receives the schematic diagram that can add the timestamp position in the scene for tradition;
Fig. 3 is two card timestamp deviation schematic diagrames when not adopting the PCS synchronized algorithm;
Fig. 4 is every card neighbouring sample packet interval of timestamps schematic diagram among Fig. 3;
Fig. 5 is clock synchronization system structural representation according to an embodiment of the invention;
Fig. 6 produces circuit diagram for hardware timestamping according to an embodiment of the invention;
Fig. 7 inserts circuit diagram for timestamp according to an embodiment of the invention;
Fig. 8 is the time synchronized algorithm PCS sequential chart based on prediction of the present invention;
Fig. 9 is the time synchronized algorithm PCS flow chart based on prediction of the present invention;
Figure 10 is verification environment schematic diagram according to an embodiment of the invention;
Figure 11 is two hours of two card timestamp deviations adopting PCS synchronized algorithm figure as a result;
Figure 12 is 12 hours of two card timestamp deviations adopting PCS synchronized algorithm figure as a result;
Figure 13 is a PCS algorithm predicts error schematic diagram.
Embodiment
Below in conjunction with the drawings and specific embodiments a kind of high-accuracy time synchronizing apparatus, system and method that is used for computer network provided by the invention is described in detail.
Fig. 1 illustrates the synchronous overall plan of split-second precision according to an embodiment of the invention, as shown in Figure 1, at first utilize hardware circuit (such as similar structures such as FPGA, PLA) to realize the timestamp generative circuit, the rise time synchronizer, timestamp is write down the position move on to physical link layer, eliminate buffer delay in the common software approach timestamp and interrupt response time and postpone the influence that brings; Each synchronizer is connected to each other, set a main synchronizer, need synchronous equipment to be connected to form clock synchronization system all, (Prediction-based ClockSynchronization PCS) realizes the clock precise synchronization of each node device to use time synchronized algorithm based on prediction in this clock synchronization system.In the present embodiment, make up the timestamp generative circuit by FPGA, similarly, describe based on following principle to the timestamp generative circuit, the timestamp generative circuit also can use PLA, ASIC or other integrated circuits to realize.In the present embodiment, when using timestamp generative circuit structure clock synchronization system, utilize RS422 to connect synchronizer, similarly, the present invention also can use known such as other interconnection techniques such as RS484, RS232 or USB, PCI.In the time synchronized system that makes up, use described PCS method for synchronizing time, realize the high-precise synchronization of institute's connection device.
Fig. 2 receives the position view that adds timestamp in the scene for network packet, receive in the scene at legacy network interface card packet, packet in the user's space territory arrives network interface unit based on concrete application program, network interface unit is transferred to host memory with packet according to procotol (such as TCP/IP), by the packet that interrupts notifying driver handles to receive.Response of host interrupts, and copies the packet of receiving to the upper-layer protocol stack and handles, and the packet after the processing finally arrives application program.As shown in Figure 2, in this process, timestamp can add in a plurality of positions: media interviews control (Media Access Control, MAC) layer, Drive Layer and application layer.It is different that the diverse location joining day is stabbed the influence that postponed by buffer delay and interrupt response time, it is also different that timestamp and packet arrive the deviation of actual time, wherein, take second place in the influenced minimum of MAC layer, Drive Layer, application layer is suffered has the greatest impact; Difference is at Millisecond.This deviation of definition is the timestamp additive error in the embodiments of the invention.
Fig. 3 is the timestamp deviation schematic diagram that crystal oscillator produced with same nominal frequency, and the clock that generation time stabs is subjected to crystal oscillator shake and drift to influence its speed instability, thereby the timestamp of generation also can have deviation in time.
Fig. 4 is a neighbouring sample packet interval of timestamps schematic diagram among Fig. 3, and the two is to stab deviation by same nominal value crystal oscillator institute generation time.Thus, the deviation that definition is caused by the crystal oscillator instability among the present invention is the error of timestamp own.So the timestamp error that defines in the embodiments of the invention is made up of error of timestamp own and timestamp additive error, improves timing tracking accuracy and need set about from reducing error of timestamp own and additive error.
In the embodiments of the invention, timestamp is write down the position move on to physical link layer, by hardware circuit timestamp is joined in the application system, Fig. 5 is the timestamp synchronizer structure chart of the specific embodiment according to the present invention.Owing to stab with regard to the joining day after packet leaves MAC, the feasible influencing factor that can get rid of various software delays in the timestamp additive error is brought up to nanosecond with the timestamp precision.
In the present embodiment, this circuitry structure realizes based on FPGA, this circuit structure can be applied in the network interface card or in other network measure equipment.
As shown in Figure 5, this time synchronism equipment comprises GTP transceiver, MAC controller, transceive data bag buffer queue (reception data packet queue among the figure and transmission data packet queue) and PCIe endpoint controller.The synchronised clock input and output directly link to each other with MAC controller by transceive data bag buffer queue in the existing equipment, control by software approach and realize synchronously.In the present embodiment, this time synchronized system, device also comprises one or more timestamp insert module and one or more PCS time stamp generator, wherein, the PCS time stamp generator receives and sends synchronised clock, receive the control signal of packet handler, be connected with the timestamp insert module, control time is stabbed insert module, the timestamp insert module is connected with PCS time stamp generator, MAC controller, packet handler and transceive data bag buffer queue respectively, timestamp is inserted into the physical link layer of network data.In the present embodiment, two timestamp insert modules shown in the figure, the present invention can use a timestamp insert module.
Need each synchronous parts by the input of the synchronised clock shown in Fig. 5, output interconnection (can be any type of serial input or other known connected mode on the physical connection), the clock signal that the PCS time stamp generator produces (for example is input to the timestamp insert module, the content of transfer of data is the timestamp information of 64 bits), in the timestamp insert module, clock signal is inserted in the network packet that receives or send.
Fig. 6 illustrates the detailed circuit of the PCS time stamp generator shown in Fig. 5, and as shown in Figure 6, the core of described generator is a direct synthesizer, and the control word adjustment generates clock frequency by adjusting frequency.In the present embodiment, the timestamp register is 64bit altogether, and high 32bit value representative is hanged down the 32bit value representation mark of second since 0 second number in morning on January 1st, 1970.The highest resolution that this expression mode can reach is 2 -32S, i.e. 233ps, and, by with low 32-mBit is set to 0, can obtain resolution to be 2-mThe clock of s.The high 32bit of timestamp register counts initial value second and is write by main frame when the initialization by driver, therefore requires the main frame time to have a second class precision, and this can conveniently realize by Network Time Protocol; Low 32bit fractional part second is produced by internal counter, and counter is counted under direct synthesizer output clock frequency fsyn, and the full back of meter produces carry signal, and high 32bit count value adds 1.
As shown in Figure 6, each parts links to each other by data wire, and wherein reference clock is the clock that external crystal-controlled oscillation shown in Figure 5 is imported, and frequency control word is that frequency preset is regulated parameter; The output valve of direct synthesizer is deposited in the timestamp low counter; The carry signal of timestamp low counter is input in the high bit register of timestamp, and when node is host node, this carry signal also will produce output pulse signal and offer from node; The value of the low bit register of high bit register of timestamp and timestamp is sent to the timestamp insert module; When node is during from node, the input pulse that utilizes host node to provide produces interrupt signal, and notice drives and reads the value that the current time stabs register.
Fig. 7 illustrates the detailed circuit of timestamp insert module shown in Figure 5, as shown in Figure 7, the packet that receives is deposited earlier in the register, inserts present clock information (the present clock value is produced by hardware timestamping generative circuit shown in Figure 6) then before this packet outputs to the reception data packet queue; The data that send in the data packet queue were also deposited earlier in the register before sending, and sent to MAC behind the insertion present clock; Wherein, data clock information is inserted the physical link layer of data.
In another embodiment of the present invention, the present invention proposes a kind of clock synchronization system, comprise a plurality of above-mentioned time synchronism equipments, wherein, one of them of a plurality of time synchronism equipments produces the synchronised clock output signal as main equipment, described remaining time synchronism equipment as slave unit, receive the synchronised clock output signal that main equipment sends,, realize the time synchronized of system through the time stamp generator of this equipment and the respective handling of timestamp insert module.All slave units are interconnected with this main synchronizer or link to each other respectively, constitute clock synchronization system, and described connected mode includes but not limited to RS484, RS232, RS422 and USB.The PCS time stamp generator of main equipment is according to frequency preset control word and crystal oscillator clock signal, and output time stabs timestamp insert module and the described slave unit that signal is given described main equipment.Slave unit PCS time stamp generator receives described synchronised clock output signal and crystal oscillator clock signal, and according to the frequency preset control word, generation time stabs the timestamp insert module that signal offers this equipment.
A kind of clock synchronization algorithm (Prediction-based ClockSynchronization based on prediction has also been proposed among the present invention, PCS) finish a plurality of internodal clock synchronizations by said system, need specify a host node to send reference clock when multinode is synchronous, the node synchronous with host node is called from node, the appointment of main and subordinate node is decided according to application demand, without any added limitations, interconnect by asynchronous serial bus between main and subordinate node.In the time of synchronously host node every pulse of 1s output to respectively from node, receive pulse from node after, time for reading is stabbed register, measures one second result, adjusts the DDS frequency control word and expects next second synchronism deviation minimum.Sequential schematic diagram of the present invention as shown in Figure 8, the present invention is divided into and starts and synchronous two stages.
The startup stage:
The 0th step started from node, after the pulse per second (PPS) that receives host node output from node PCS time stamp generator, read current time T from Time Stamp Counter 0, produce the driving of interrupt signal notice simultaneously and read this value;
In the 1st step, after the pulse per second (PPS) that receives host node output from node PCS time stamp generator once more, from Time Stamp Counter, read current time T 1, produce interrupt signal notice simultaneously and drive and read this value, drive the time value of utilizing the 0th step and the 1st step to read and calculate the 0th and go on foot and the 1st time difference Δ t between going on foot 1=T 1-T 0
In the 2nd step, after the pulse per second (PPS) that receives host node output from node PCS time stamp generator for the 3rd time, from Time Stamp Counter, read current time T 2, produce interrupt signal notice simultaneously and drive and read this value, drive the time value of utilizing the 1st step and the 2nd step to read and calculate the 1st and go on foot and the 2nd time difference Δ t between going on foot 2=T 2-T 1, and the formula below utilizing calculates the actual frequency of reference clock (crystal oscillator output);
f ref = f syn 2 N K dds = Δ t 2 × 2 N K dds 0 , wherein N is the FREQUENCY CONTROL word bit number, the present embodiment intermediate value is 32;
Figure A200810224891D00122
Be the original frequency control word, the present embodiment intermediate value is 0xABCC7712; The formula that drives below utilizing calculates new frequency control word
Figure A200810224891D00123
K dds 1 = ( 4 × 2 m - ( Δ t 1 + 2 Δ t 2 ) Δ t 2 ) × K dds 0 , wherein m is the timestamp precision, the present embodiment intermediate value is 24;
In the 3rd step, after the pulse per second (PPS) that receives host node output from node PCS time stamp generator the 4th, from Time Stamp Counter, read current time T 3, produce interrupt signal notice simultaneously and drive and read this value, drive the time value of utilizing the 2nd step and the 3rd step to read and calculate the 2nd and go on foot and the 3rd time difference Δ t between going on foot 3=T 3-T 2Use the frequency control word that calculates the 2nd step from node PCS time stamp generator Adjust clock frequency, and calculate new frequency control word by the formula that drives below utilizing
Figure A200810224891D00126
K dds 2 = 2 m × K dds 0 Δ t 3
In the 4th step, after the pulse per second (PPS) that receives host node output from node PCS time stamp generator the 5th, from Time Stamp Counter, read current time T 4, produce the driving of interrupt signal notice simultaneously and read this value, use the frequency control word that calculates the 3rd step from node PCS time stamp generator
Figure A200810224891D00128
Adjust clock frequency, and calculate new frequency control word by driving the formula that utilizes top the 3rd step
Figure A200810224891D00129
So far, finish the startup stage.
B. synchronous phase:
Through the startup stage 4 steps whole after, synchronous from nodal clock and host node clock, but consider the unsteadiness of clock crystal oscillator, need continuous frequency of amendment control word from node, thereby keep long-term synchronous with host node;
1. after the pulse per second (PPS) that receives host node output from node PCS time stamp generator, from Time Stamp Counter, read current time T i, produce the driving of interrupt signal notice simultaneously and read this value, drive and calculate the time difference Δ t that interrupts continuously for twice i=T i-T I-1
2. drive and calculate first two steps predicated error e 0(i) and e 1(i):
e 0 ( i ) = 2 m - Δ t i × K dds i K dss i - 1
e 1(i)=2 m-Δ t i, the computing formula that is not limited to provide in the present embodiment when calculating predicated error, the variable implication is ditto described in the formula; 3. use the frequency control word that last cycle calculations goes out from node PCS time stamp generator
Figure A200810224891D00132
, drive and calculate next step frequency control word
Figure A200810224891D00133
K dds i + 1 = 2 m + e 0 ( i ) + e 1 ( i ) Δ t i × K dds i - 1 ,
Different frequency control words can make the clock frequency difference that direct synthesizer is synthesized among Fig. 6, if find from node host node in twice pulse spacing the time walked soon, need so the frequency control word from node is turned down, otherwise, transfer big.By continuous adjustment, can guarantee to reach unanimity from nodal clock and host node clock.
When carrying out the synchronous and synchronism detection of concrete equipment, the equipment that needs are synchronous utilizes asynchronous serial connecting line interconnection (for example RS422) according to shown in Figure 10.Figure 10 is in order to verify the experimental situation of performance of the present invention, network tester adopts Spirent company's T estCenter, utilize its gigabit module to send test packet, by optical splitter one road flow is divided into the two-way same traffic, be connected to two test nodes through isometric optical patchcord, it is constantly identical that packet arrives two test nodes.Two test nodes are installed on the high-performance server respectively.Mounting strap has two network interface cards of described synchronizer, starts the driven in synchronism method, and utilizes RS422 to connect two network interface cards and can carry out synchronously or test.
Figure 11 is two hours results of two card timestamp deviations adopting the PCS synchronized algorithm, and wherein abscissa is the Measuring Time point, and ordinate is two card timestamp deviations (unit is nanosecond), and from the result as seen, the timestamp deviation is between-50ns~180ns.Figure 12 is for adopting two 12 hours statisticses of blocking the timestamp deviations of PCS synchronized algorithm, wherein abscissa is the timestamp deviation, the frequency that ordinate occurs for this deviation, from the result as seen, the PCS algorithm has been finished the synchronous of two equipment well by the control word of adjusting frequency, and the most of the time is stabbed Deviation Control within 0~100ns.Figure 13 has shown the predicated error of PCS algorithm, and wherein abscissa is the Measuring Time point, ordinate be two the card timestamp deviations (unit is nanosecond), from the visible predicated error of result mainly be distributed in-50ns~50ns within.
It should be noted that at last, above embodiment is only in order to describe technical scheme of the present invention rather than the present technique method is limited, the present invention can extend to other modification, variation, application and embodiment on using, and therefore thinks that all such modifications, variation, application, embodiment are in spirit of the present invention and teachings.

Claims (10)

1, a kind of time synchronism equipment that is used for network system, comprise, GTP transceiver, MAC controller, transceive data bag buffer queue and PCIe endpoint controller, it is characterized in that described time synchronism equipment also comprises one or more timestamp insert module and one or more PCS time stamp generator;
Wherein, described PCS time stamp generator is used to produce synchronized timestamp; Described timestamp insert module is connected with PCS time stamp generator, MAC controller and transceive data bag buffer queue respectively, described synchronized timestamp is inserted into the physical link layer of packet.
2, the time synchronism equipment of claim 1, described PCS time stamp generator are used for receiving and sending synchronizing clock signals according to frequency preset control word and crystal oscillator clock signal, and wherein, described synchronizing clock signals comprises time stamp signal.
3, the time synchronism equipment of claim 1, described PCS time stamp generator receives synchronised clock input signal and crystal oscillator clock signal, and according to the frequency preset control word, generation time stabs signal and offers described timestamp insert module.
4, the time synchronism equipment of claim 1, described PCS time stamp generator comprises:
Direct synthesizer is used for stabbing signal according to reference clock signal and frequency control word generation time;
Time Stamp Counter comprises low counter and high-positioned counter, is used to receive described time stamp signal and described synchronizing clock signals or control signal, and output time stabs the timestamp insert module or is provided for the master clock timestamp.
5, the time synchronism equipment of claim 1, described timestamp insert module was inserted timestamp information before the packet that receives from described MAC controller outputs to the reception data packet queue; Data in the data packet queue were inserted timestamp information before sending to described MAC controller; Wherein, described timestamp information inserts the physical link layer of described packet.
6, a kind of clock synchronization system that is used for network system, any one the described time synchronism equipment that comprises a plurality of claims 1 to 5, wherein, one of them of described a plurality of time synchronism equipments is as main equipment, described remaining time synchronism equipment is as slave unit, described main equipment produces the synchronised clock output signal, and described remaining slave unit receives described synchronised clock output signal, realizes the time synchronized of system.
7, the clock synchronization system of claim 6, wherein, the PCS time stamp generator of described main equipment is according to frequency preset control word and crystal oscillator clock signal, and output time stabs timestamp insert module and the described slave unit that signal is given described main equipment.
8, the clock synchronization system of claim 6, wherein, described slave unit PCS time stamp generator receives described synchronised clock output signal and crystal oscillator clock signal, and according to the frequency preset control word, generation time stabs the timestamp insert module that signal offers slave unit.
9, a kind of method for synchronizing time that is used in the described clock synchronization system of claim 6 comprises:
Step 10), slave unit receive the time synchronizing signal of main equipment, the current time of reading this slave unit;
Step 20), obtain time difference Δ t between reading for the third time and read for the second time and read for the second time and reading for the first time 2With Δ t 1
Step 30), obtain the frequency signal of reference clock, f ref = f syn 2 N K dds = Δt 2 × 2 N K dds 0 , Wherein, N is the FREQUENCY CONTROL word bit number,
Figure A200810224891C00032
Be the original frequency control word, upgrade described frequency control word, K dds 1 = ( 4 × 2 m - ( Δt 1 + 2 Δt 2 ) Δt 2 ) × K dds 0 , Wherein m is the timestamp precision;
Step 40), pass through frequency control word
Figure A200810224891C00034
Adjust the clock frequency of slave unit, and calculate the frequency control word that upgrades
Figure A200810224891C00035
K dds 2 = 2 m × K dds 0 Δt 3 , Use described frequency control word Adjust the slave unit clock frequency, realize the synchronous of system.
10, the method for claim 9, wherein, described method also comprises:
Step 50), calculate the double time difference Δ t that slave unit reads main equipment i=T i-T I-1Obtain the error e in reading for twice 0(i) and e 1(i), e 0 ( i ) = 2 m - Δt i × K dds i K dds i - 1 , e 1(i)=2 m-Δ t 1, the calculated rate control word K dds i + 1 = 2 m + e 0 ( i ) + e 1 ( i ) Δt i × K dds i - 1 , By
Figure A200810224891C000311
Adjust the clock frequency of slave unit.
CN200810224891.3A 2008-10-24 2008-10-24 Highly precised time synchronization device, system and method for computer network Expired - Fee Related CN101388741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810224891.3A CN101388741B (en) 2008-10-24 2008-10-24 Highly precised time synchronization device, system and method for computer network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810224891.3A CN101388741B (en) 2008-10-24 2008-10-24 Highly precised time synchronization device, system and method for computer network

Publications (2)

Publication Number Publication Date
CN101388741A true CN101388741A (en) 2009-03-18
CN101388741B CN101388741B (en) 2012-12-12

Family

ID=40477940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810224891.3A Expired - Fee Related CN101388741B (en) 2008-10-24 2008-10-24 Highly precised time synchronization device, system and method for computer network

Country Status (1)

Country Link
CN (1) CN101388741B (en)

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848119A (en) * 2010-05-19 2010-09-29 同济大学 High-accuracy network round-trip delay measuring method for eliminating system processing time
CN101977104A (en) * 2010-11-13 2011-02-16 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102096376A (en) * 2010-12-30 2011-06-15 中国科学院长春光学精密机械与物理研究所 Mixed time sequence synchronous control method in physical simulation
CN102104475A (en) * 2011-01-31 2011-06-22 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
CN102231907A (en) * 2011-06-27 2011-11-02 中兴通讯股份有限公司 Clock synchronization method and apparatus in transmission system
CN102263634A (en) * 2010-05-27 2011-11-30 罗伯特·博世有限公司 Peripheral unit, control unit for the exchange of data with a peripheral unit, and method for data exchange
CN102447553A (en) * 2010-10-12 2012-05-09 研祥智能科技股份有限公司 Realizing device of accurate time synchronization protocol
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
WO2012119385A1 (en) * 2011-08-11 2012-09-13 华为技术有限公司 Method, device and system for performing time synchronization on pcie device
CN102855172A (en) * 2012-07-24 2013-01-02 福建亿榕信息技术有限公司 Method for recording network card receiving time at high precision
CN102882623A (en) * 2012-07-26 2013-01-16 哈尔滨工业大学 Configurable clock frequency synthesis device based on FPGA
CN103414511A (en) * 2013-08-21 2013-11-27 成都成电光信科技有限责任公司 Clock synchronization type network monitoring card
CN103580770A (en) * 2012-07-18 2014-02-12 英特尔公司 Measuring time offsets between devices with independent silicon clocks
CN103945523A (en) * 2014-04-21 2014-07-23 中国联合网络通信集团有限公司 Method and system for achieving time synchronization
CN104301052A (en) * 2014-10-20 2015-01-21 中国电子科技集团公司第四十一研究所 Seamless collecting and real-time frequency spectrum monitoring implementation method based on FPGA
CN104901844A (en) * 2015-05-13 2015-09-09 国家计算机网络与信息安全管理中心 High precision timestamp acquisition method based on PCIE, device and network card
CN105471572A (en) * 2016-01-06 2016-04-06 国电南瑞科技股份有限公司 Synchronous time measurement method based on GOOSE message
CN105471776A (en) * 2015-11-26 2016-04-06 京信通信系统(广州)有限公司 Signal transmission method and device
WO2017080274A1 (en) * 2015-11-13 2017-05-18 华为技术有限公司 Multiprocessor system and clock synchronization method
CN106970520A (en) * 2016-07-29 2017-07-21 上海博达通信科技有限公司 Precise synchronization system and method in a kind of embedded system
CN107003958A (en) * 2014-11-26 2017-08-01 高通股份有限公司 With stamp of interior break period
CN107431860A (en) * 2015-03-12 2017-12-01 四达时代通讯网络技术有限公司 Audio system based on location-based service
CN109150355A (en) * 2018-08-14 2019-01-04 华东计算技术研究所(中国电子科技集团公司第三十二研究所) System for realizing PTP network card under FPGA
CN109474466A (en) * 2018-11-13 2019-03-15 天津津航计算技术研究所 The method of dual redundant network interface card switching is realized on DDS middleware
CN109917672A (en) * 2019-03-29 2019-06-21 中国人民解放军空军研究院通信与导航研究所 A kind of semi-matter simulating system and method for navigation and control loop
CN111324046A (en) * 2020-02-28 2020-06-23 中国电力科学研究院有限公司 Method and system for performing cooperative operation on distributed simulation system
CN111711547A (en) * 2020-07-03 2020-09-25 中国人民解放军63660部队 End-to-end time delay measuring method of computer based on hardware interrupt signal
CN112054939A (en) * 2020-08-31 2020-12-08 中国科学院空间应用工程与技术中心 Precision testing method and device for high-precision clock synchronization
WO2021134938A1 (en) * 2019-12-31 2021-07-08 国微集团(深圳)有限公司 Simulation data processing method and system
CN114095166A (en) * 2021-11-23 2022-02-25 北京京东方技术开发有限公司 Method, node and system for generating node temporary identity
US11611946B2 (en) 2021-03-30 2023-03-21 Chrystal Instruments Corporation Sampling synchronization through GPS signals
US11754724B2 (en) 2021-12-29 2023-09-12 Crystal Instruments Corporation Cross spectrum analysis for time stamped signals

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103472388A (en) * 2013-09-12 2013-12-25 成都成电光信科技有限责任公司 Testing system of optical fiber network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100815128B1 (en) * 2000-07-26 2008-03-20 톰슨 라이센싱 Multi-media jitter removal in an asynchronous digital home network
DE10047925A1 (en) * 2000-09-27 2002-05-02 Siemens Ag Process for real-time communication between several network participants in a communication system with ethernet physics and corresponding communication system with ethernet physics
US8730867B2 (en) * 2007-02-05 2014-05-20 Thomson Licensing Clock synchronization aid device for communication station(s) of a wireless network, and associated clock synchronization device
CN101252404B (en) * 2008-03-31 2012-01-04 重庆大学 Distributed network clock synchronizing system and method based on FPGA

Cited By (51)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101848119A (en) * 2010-05-19 2010-09-29 同济大学 High-accuracy network round-trip delay measuring method for eliminating system processing time
CN102263634A (en) * 2010-05-27 2011-11-30 罗伯特·博世有限公司 Peripheral unit, control unit for the exchange of data with a peripheral unit, and method for data exchange
US9501446B2 (en) 2010-05-27 2016-11-22 Robert Bosch Gmbh Control unit for the exchange of data with a peripheral unit, peripheral unit, and method for data exchange
CN102447553A (en) * 2010-10-12 2012-05-09 研祥智能科技股份有限公司 Realizing device of accurate time synchronization protocol
CN101977104B (en) * 2010-11-13 2013-01-09 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN101977104A (en) * 2010-11-13 2011-02-16 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102096376A (en) * 2010-12-30 2011-06-15 中国科学院长春光学精密机械与物理研究所 Mixed time sequence synchronous control method in physical simulation
CN102104475A (en) * 2011-01-31 2011-06-22 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
CN102104475B (en) * 2011-01-31 2013-07-03 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
CN102231907A (en) * 2011-06-27 2011-11-02 中兴通讯股份有限公司 Clock synchronization method and apparatus in transmission system
CN102231907B (en) * 2011-06-27 2017-03-22 中兴通讯股份有限公司 Clock synchronization method and apparatus in transmission system
WO2012119385A1 (en) * 2011-08-11 2012-09-13 华为技术有限公司 Method, device and system for performing time synchronization on pcie device
US8909969B2 (en) 2011-08-11 2014-12-09 Huawei Technologies Co., Ltd. Method, apparatus, and system for performing time synchronization on PCIE devices
CN102547969B (en) * 2012-02-24 2014-06-25 电子科技大学 High-accuracy wireless clock synchronization system for power system
CN102547969A (en) * 2012-02-24 2012-07-04 电子科技大学 High-accuracy wireless clock synchronization system for power system
CN103580770B (en) * 2012-07-18 2017-11-14 英特尔公司 Time deviation between equipment of the measurement with independent silicon clock
CN103580770A (en) * 2012-07-18 2014-02-12 英特尔公司 Measuring time offsets between devices with independent silicon clocks
US9571215B2 (en) 2012-07-18 2017-02-14 Intel Corporation Measuring time offsets between devices with independent silicon clocks
CN102855172B (en) * 2012-07-24 2015-06-24 福建亿榕信息技术有限公司 Method for recording network card receiving time at high precision
CN102855172A (en) * 2012-07-24 2013-01-02 福建亿榕信息技术有限公司 Method for recording network card receiving time at high precision
CN102882623A (en) * 2012-07-26 2013-01-16 哈尔滨工业大学 Configurable clock frequency synthesis device based on FPGA
CN102882623B (en) * 2012-07-26 2014-11-19 哈尔滨工业大学 Configurable clock frequency synthesis device based on FPGA
CN103414511A (en) * 2013-08-21 2013-11-27 成都成电光信科技有限责任公司 Clock synchronization type network monitoring card
CN103945523B (en) * 2014-04-21 2017-05-24 中国联合网络通信集团有限公司 Method and system for achieving time synchronization
CN103945523A (en) * 2014-04-21 2014-07-23 中国联合网络通信集团有限公司 Method and system for achieving time synchronization
CN104301052A (en) * 2014-10-20 2015-01-21 中国电子科技集团公司第四十一研究所 Seamless collecting and real-time frequency spectrum monitoring implementation method based on FPGA
CN107003958A (en) * 2014-11-26 2017-08-01 高通股份有限公司 With stamp of interior break period
CN107431860A (en) * 2015-03-12 2017-12-01 四达时代通讯网络技术有限公司 Audio system based on location-based service
CN104901844A (en) * 2015-05-13 2015-09-09 国家计算机网络与信息安全管理中心 High precision timestamp acquisition method based on PCIE, device and network card
WO2017080274A1 (en) * 2015-11-13 2017-05-18 华为技术有限公司 Multiprocessor system and clock synchronization method
CN106708168A (en) * 2015-11-13 2017-05-24 华为技术有限公司 Multi-processor system and clock synchronization method
CN106708168B (en) * 2015-11-13 2019-12-06 华为技术有限公司 multiprocessor system and clock synchronization method
CN105471776A (en) * 2015-11-26 2016-04-06 京信通信系统(广州)有限公司 Signal transmission method and device
CN105471776B (en) * 2015-11-26 2019-04-16 京信通信系统(中国)有限公司 A kind of method for transmitting signals and device
CN105471572A (en) * 2016-01-06 2016-04-06 国电南瑞科技股份有限公司 Synchronous time measurement method based on GOOSE message
CN105471572B (en) * 2016-01-06 2018-06-29 国电南瑞科技股份有限公司 A kind of time synchronized measurement method based on GOOSE message
CN106970520A (en) * 2016-07-29 2017-07-21 上海博达通信科技有限公司 Precise synchronization system and method in a kind of embedded system
CN106970520B (en) * 2016-07-29 2020-06-16 上海博达通信科技有限公司 High-precision time synchronization system and method in embedded system
CN109150355A (en) * 2018-08-14 2019-01-04 华东计算技术研究所(中国电子科技集团公司第三十二研究所) System for realizing PTP network card under FPGA
CN109474466A (en) * 2018-11-13 2019-03-15 天津津航计算技术研究所 The method of dual redundant network interface card switching is realized on DDS middleware
CN109917672A (en) * 2019-03-29 2019-06-21 中国人民解放军空军研究院通信与导航研究所 A kind of semi-matter simulating system and method for navigation and control loop
WO2021134938A1 (en) * 2019-12-31 2021-07-08 国微集团(深圳)有限公司 Simulation data processing method and system
CN111324046A (en) * 2020-02-28 2020-06-23 中国电力科学研究院有限公司 Method and system for performing cooperative operation on distributed simulation system
CN111324046B (en) * 2020-02-28 2022-10-25 中国电力科学研究院有限公司 Method and system for performing cooperative operation on distributed simulation system
CN111711547A (en) * 2020-07-03 2020-09-25 中国人民解放军63660部队 End-to-end time delay measuring method of computer based on hardware interrupt signal
CN111711547B (en) * 2020-07-03 2022-07-08 中国人民解放军63660部队 End-to-end time delay measuring method of computer based on hardware interrupt signal
CN112054939A (en) * 2020-08-31 2020-12-08 中国科学院空间应用工程与技术中心 Precision testing method and device for high-precision clock synchronization
US11611946B2 (en) 2021-03-30 2023-03-21 Chrystal Instruments Corporation Sampling synchronization through GPS signals
US11956744B2 (en) 2021-03-30 2024-04-09 Crystal Instruments Corporation Sampling synchronization through GPS signals
CN114095166A (en) * 2021-11-23 2022-02-25 北京京东方技术开发有限公司 Method, node and system for generating node temporary identity
US11754724B2 (en) 2021-12-29 2023-09-12 Crystal Instruments Corporation Cross spectrum analysis for time stamped signals

Also Published As

Publication number Publication date
CN101388741B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
CN101388741B (en) Highly precised time synchronization device, system and method for computer network
US10868664B2 (en) Minimizing timestamp error in PTP systems
CN102104475B (en) IEEE 1588-based synchronization system and synchronization method thereof
Lipiński et al. White rabbit: A PTP application for robust sub-nanosecond synchronization
US9671822B2 (en) Method and devices for time transfer using end-to-end transparent clocks
CN102577194B (en) System and method of synchronizing clocks in a distributed network
CN101977104B (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102148652B (en) System and method for measuring network clock synchronization
US8370675B2 (en) Precise clock synchronization
US20070260906A1 (en) Clock synchronization method and apparatus
US20120005517A1 (en) Synchronisation and timing method and apparatus
US8819161B1 (en) Auto-syntonization and time-of-day synchronization for master-slave physical layer devices
CN106160914B (en) A kind of IEEE1588 clock synchronizing methods based on disturbance-observer feedback control technology
CN103368721A (en) Computing method for transparent clock in time-triggered Ethernet
CN108023723B (en) Method for frequency synchronization and slave clock
CN103532693B (en) Time synchronizing device and method
CN106603183A (en) Timestamp filtering method and device
CN111106894B (en) Time synchronization method and system
JP2012222833A (en) System and method to overcome wander accumulation to achieve precision clock distribution over large networks
Dong et al. The design and implementation of ieee 1588v2 clock synchronization system by generating hardware timestamps in mac layer
CN115801175A (en) Time frequency synchronization method, system, storage medium and electronic device
Li et al. Time synchronization of white rabbit network based on kalman filter
Cho et al. Implementation of a precision time protocol over low rate wireless personal area networks
Xiu et al. A new perspective of using integrated on-chip syntonistor for time synchronization in network: Meeting the TAACCS challenge
Shukui et al. FPGA-based high-precision network time synchronization research and implementation

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
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161028

Address after: 200031 Shanghai, Hunan Road, No. 121, building 10, building

Patentee after: SHANGHAI YINGLIAN SOMATOSENSORY INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 100190 Haidian District, Zhongguancun Academy of Sciences, South Road, No. 6, No.

Patentee before: Institute of Computing Technology, Chinese Academy of Sciences

CP01 Change in the name or title of a patent holder

Address after: 200031 Shanghai, Hunan Road, No. 121, building 10, building

Patentee after: SHANGHAI YINGLIAN INFORMATION TECHNOLOGY CO.,LTD.

Address before: 200031 Shanghai, Hunan Road, No. 121, building 10, building

Patentee before: SHANGHAI YINGLIAN SOMATOSENSORY INTELLIGENT TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121212

Termination date: 20211024

CF01 Termination of patent right due to non-payment of annual fee