CN101388741B - 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
CN101388741B
CN101388741B CN200810224891.3A CN200810224891A CN101388741B CN 101388741 B CN101388741 B CN 101388741B CN 200810224891 A CN200810224891 A CN 200810224891A CN 101388741 B CN101388741 B CN 101388741B
Authority
CN
China
Prior art keywords
time
timestamp
clock
frequency
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.)
Expired - Fee Related
Application number
CN200810224891.3A
Other languages
Chinese (zh)
Other versions
CN101388741A (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

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

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; The very high synchronization accuracy that also need keep, otherwise network performance parameters such as the time-delay of calculating through 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 through the estimated data, computing node clock and time server clock jitter, thus accomplish the synchronous of nodal clock and time server clock.NTP can obtain the 1ms synchronization accuracy under LAN environment, under wan environment, can obtain the 28.7ms synchronization accuracy.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 the microsecond level with precision synchronously.But this software approach receives 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 IEEE 1588 chronometer time agreements (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 synchronized result unstable.
(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 is characterized in that, said time synchronism equipment also comprises one or more timestamp insert module and one or more time synchronized algorithm PCS time stamp generator based on prediction;
Wherein, said PCS time stamp generator is used for receiving and sending synchronizing clock signals, and generation time stabs; Said timestamp insert module is connected with PCS time stamp generator, MAC controller and transceive data bag buffer queue respectively, said timestamp is inserted into the physical link layer of packet; Said timestamp insert module is before the packet that receives from said MAC controller outputs to the formation of reception packet buffering, to insert timestamp; The packet that sends in the packet buffering formation inserted timestamp before sending to said MAC controller.
Wherein, said PCS time stamp generator is according to frequency preset control word and crystal oscillator clock signal, and output time stabs.
Wherein, said 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 and offers said timestamp insert module.
Wherein, said PCS time stamp generator comprises:
Direct synthesizer is used for producing clock frequency according to reference clock signal and frequency control word;
The high bit register of timestamp, the low bit register of timestamp and timestamp low counter are used to receive the clock frequency that said direct synthesizer produces, and output time stabs the timestamp insert module or is provided for the master clock timestamp.
According to a further aspect in the invention, propose a kind of clock synchronization system that is used for network system, comprised a plurality of described time synchronism equipments; Wherein, One of them of said a plurality of time synchronism equipments be as main equipment, remaining time synchronism equipment as slave unit, said main equipment produces synchronised clock output signal; Remaining slave unit receives said synchronised clock output signal, realizes the time synchronized of system.
Wherein, the PCS time stamp generator of said main equipment is according to frequency preset control word and crystal oscillator clock signal, and output time stabs to the timestamp insert module of said main equipment and said slave unit.
Wherein, said slave unit PCS time stamp generator receives said 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 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 synchronised clock output 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;
Figure DEST_PATH_GSB00000574715800011
wherein; N is the FREQUENCY CONTROL word bit number;
Figure DEST_PATH_GSB00000574715800012
is the original frequency control word; Upgrade said frequency control word,
Figure DEST_PATH_GSB00000574715800013
wherein m is the timestamp precision;
Step 40), adjust the clock frequency of slave unit through frequency control word
Figure DEST_PATH_GSB00000574715800014
; And calculate the frequency control word
Figure GSB00000450438600041
Figure GSB00000450438600042
that upgrades and use said frequency control word
Figure GSB00000450438600043
adjustment slave unit clock frequency, realize the synchronous of system.
Wherein, said 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),
Figure GSB00000450438600044
e 1(i)=2 m-Δ t i, the calculated rate control word
Figure GSB00000450438600045
Figure GSB00000450438600046
Through
Figure GSB00000450438600047
The clock frequency of adjustment 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 through the time synchronized algorithm based on prediction; The present invention has improved the timestamp precision, can guarantee that each measured node 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 sketch map according to an embodiment of the invention;
Fig. 2 receives the sketch map that can add the timestamp position in the scene for tradition;
Fig. 3 is two card timestamp deviation sketch mapes when not adopting the PCS synchronized algorithm;
Fig. 4 is every card neighbouring sample packet interval of timestamps sketch map 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 sketch map 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 sketch map.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment 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 writes down the position with timestamp and moves on to physical link layer, eliminates buffer delay in the common software approach timestamp and interrupt response time and postpones the influence that brings; Each synchronizer is connected mutually; 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 in this clock synchronization system, to use time synchronized algorithm based on prediction.In the present embodiment, make up the timestamp generative circuit through FPGA, likewise, 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, likewise, 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 said 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 NIC based on concrete application program; NIC is transferred to host memory with packet according to procotol (such as TCP/IP), through 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 sketch map that crystal oscillator produced with same nominal frequency, and it is unstable that the clock that generation time stabs receives crystal oscillator shake and drift to influence its speed, thereby the timestamp of generation also can have deviation in time.
Fig. 4 is a neighbouring sample packet interval of timestamps sketch map 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 after packet leaves MAC, stab with regard to the joining day, 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, can be applied in the network interface card this circuit structure or in other network measure equipment.
As shown in Figure 5, this time synchronism equipment comprises GTP (general packet radio service tunnel agreement) transceiver, MAC controller, transceive data bag buffer queue (reception data packet queue among the figure and transmission data packet queue) and PCIe (PCI Express) endpoint controller.The synchronised clock input and output directly link to each other with MAC controller through transceive data bag buffer queue in the existing equipment, control through 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, receives the control signal of packet handler; Be connected with the timestamp insert module; Control time is stabbed insert module, and 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 through 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 is as shown in Figure 6, and the core of said generator is a direct synthesizer, and the control word adjustment generates clock frequency through 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, be set to 0 through hanging down 32-mbit, can obtain resolution is 2 -mThe clock of s.The high 32bit of timestamp register counts initial value second and is write by main frame when the initialization through driver, therefore requires the main frame time to have a second class precision, and this can conveniently realize through Network Time Protocol; Low 32bit fractional part second is produced by internal counter, and counter is at direct synthesizer output clock frequency f SynFollowing counting, 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 through 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, before this packet outputs to the reception data packet queue, inserts present clock information (the present clock value is produced by hardware timestamping generative circuit shown in Figure 6) then; The data of sending 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, comprises a plurality of above-mentioned time synchronism equipments; Wherein, one of them of a plurality of time synchronism equipments produces synchronised clock output signal as main equipment; Said 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 handled of timestamp insert module.All slave units are interconnected with this main synchronizer or link to each other respectively, constitute clock synchronization system, and said 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 to the timestamp insert module of said main equipment and said slave unit.Slave unit PCS time stamp generator receives said 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 offers this equipment.
A kind of clock synchronization algorithm (Prediction-based ClockSynchronization based on prediction has also been proposed among the present invention; PCS) accomplish a plurality of internodal clock synchronizations through said system; Need specify a host node to send reference clock when multinode is synchronous, be called from node with the synchronous node of host node, the appointment of main and subordinate node is decided according to application demand; Have no added limitations, interconnect through asynchronous serial bus between main and subordinate node.In the time of synchronously host node every at a distance from pulse of 1s output to respectively from node, receive pulse from node after, time for reading is stabbed register, measures one second result, adjustment DDS frequency control word expectation next second synchronism deviation minimum.Sequential sketch map of the present invention is as shown in Figure 8, and the present invention is divided into startup 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, from Time Stamp Counter, read current time T 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);
Figure GSB00000450438600091
Wherein N is the FREQUENCY CONTROL word bit number, and the present embodiment intermediate value is 32;
Figure GSB00000450438600092
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 GSB00000450438600094
wherein m is the timestamp precision, and 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 frequency control word the adjustment clock frequency that calculates the 2nd step from node PCS time stamp generator, and calculate new frequency control word
Figure GSB00000450438600096
by the formula that drives below utilizing
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 GSB00000450438600098
The adjustment clock frequency, and the formula that is gone on foot by driving utilization the top the 3rd calculates new frequency control word 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 preceding two step predicated error e 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 i, the computing formula that is not limited to provide in the present embodiment when calculating predicated error, the variable implication is ditto said in the formula;
3 from the node PCS timestamp generator used to calculate the last loop frequency control word?
Figure GSB00000450438600102
Drive calculate next frequency control word?
Figure GSB00000450438600103
K dds i + 1 = 2 m + e 0 ( i ) + e 1 ( i ) Δt i × K dds i - 1 ,
Different frequency control words can make that the clock frequency that direct synthesizer is synthesized among Fig. 6 is different, if find from node host node in twice pulse spacing the time walked soon, need so and will turn down from the frequency control word of node, otherwise, transfer big.Through 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; Through optical splitter one road flow is divided into the two-way same traffic, is 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 said 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 is visible from the result, and 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; Visible from the result, the PCS algorithm has been accomplished the synchronous of two equipment well through 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, and ordinate is two card timestamp deviations (unit is nanosecond), from the visible predicated error of result mainly be distributed in-50ns~50ns within.
What should explain at last is; 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 (9)

1. time synchronism equipment that is used for network system; Comprise; General packet radio service tunnel agreement (GTP) transceiver, MAC controller, the formation of reception packet buffering, transmission packet buffering formation and peripheral element high speed expansion interface (PCIe) endpoint controller; It is characterized in that said time synchronism equipment also comprises one or more timestamp insert module and one or more time synchronized algorithm PCS time stamp generator based on prediction;
Wherein, said PCS time stamp generator is used for generation time and stabs; Said timestamp insert module is connected with PCS time stamp generator, MAC controller, the formation of reception packet buffering and the formation of transmission packet buffering respectively, said timestamp is inserted into the physical link layer of packet; Said timestamp insert module is before the packet that receives from said MAC controller outputs to the formation of reception packet buffering, to insert timestamp; The packet that sends in the packet buffering formation inserted timestamp before sending to said MAC controller.
2. the time synchronism equipment of claim 1, said PCS time stamp generator is according to frequency preset control word and crystal oscillator clock signal, and output time stabs to the timestamp insert module.
3. the time synchronism equipment of claim 1, said PCS time stamp generator receive synchronised clock output signal and crystal oscillator clock signal, and according to the frequency preset control word, generation time stabs and offers said timestamp insert module.
4. the time synchronism equipment of claim 1, said PCS time stamp generator comprises:
Direct synthesizer is used for producing clock frequency according to reference clock signal and frequency control word;
The high bit register of timestamp, the low bit register of timestamp and timestamp low counter are used to receive the clock frequency that said direct synthesizer produces, and output time stabs the timestamp insert module or is provided for the master clock timestamp.
5. clock synchronization system that is used for network system; Comprise any described time synchronism equipment of a plurality of claims 1 to 4, wherein, one of them of said a plurality of time synchronism equipments is as main equipment; Remaining time synchronism equipment is as slave unit; Said main equipment produces synchronised clock output signal, and remaining slave unit receives said synchronised clock output signal, realizes the time synchronized of system.
6. the clock synchronization system of claim 5, wherein, the PCS time stamp generator of said main equipment is according to frequency preset control word and crystal oscillator clock signal, and output time stabs the timestamp insert module to said main equipment.
7. the clock synchronization system of claim 5, wherein, said slave unit PCS time stamp generator receives said 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 offers slave unit.
8. method for synchronizing time that is used in the described clock synchronization system of claim 5 comprises:
Step 10), slave unit receive the synchronised clock output 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,
Figure FDA00002069104500021
Wherein, N is the FREQUENCY CONTROL word bit number,
Figure FDA00002069104500022
Be the original frequency control word, upgrade said 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), adjust the clock frequency of slave unit through frequency control word
Figure FDA00002069104500024
; And calculate the frequency control word
Figure FDA00002069104500025
Figure FDA00002069104500026
that upgrades and use said frequency control word
Figure FDA00002069104500027
adjustment slave unit clock frequency, realize the synchronous of system.
9. the method for claim 8, wherein, said 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),
Figure FDA00002069104500028
e 1(i)=2 m-Δ t i, the calculated rate control word
Figure FDA00002069104500029
Figure FDA000020691045000210
Through
Figure FDA000020691045000211
The clock frequency of adjustment 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 CN101388741A (en) 2009-03-18
CN101388741B true 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 (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

Families Citing this family (33)

* 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
DE102010029349A1 (en) * 2010-05-27 2011-12-01 Robert Bosch Gmbh Control unit for exchanging 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
CN102096376A (en) * 2010-12-30 2011-06-15 中国科学院长春光学精密机械与物理研究所 Mixed time sequence synchronous control method in physical simulation
CN102104475B (en) * 2011-01-31 2013-07-03 上海交通大学 IEEE 1588-based synchronization system and synchronization method thereof
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
CN102547969B (en) * 2012-02-24 2014-06-25 电子科技大学 High-accuracy wireless clock synchronization system for power system
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
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
CN104301052B (en) * 2014-10-20 2017-04-12 中国电子科技集团公司第四十一研究所 Seamless collecting and real-time frequency spectrum monitoring implementation method based on FPGA
US9904637B2 (en) * 2014-11-26 2018-02-27 Qualcomm Incorporated In-band interrupt time stamp
US10536790B2 (en) * 2015-03-12 2020-01-14 StarTime Software Technology Co., Ltd. Location based services audio system
CN104901844B (en) * 2015-05-13 2019-01-22 国家计算机网络与信息安全管理中心 High Precision Time Stamps acquisition methods, device and network interface card based on PCIE
CN106708168B (en) * 2015-11-13 2019-12-06 华为技术有限公司 multiprocessor system and clock synchronization method
CN105471776B (en) * 2015-11-26 2019-04-16 京信通信系统(中国)有限公司 A kind of method for transmitting signals and device
CN105471572B (en) * 2016-01-06 2018-06-29 国电南瑞科技股份有限公司 A kind of time synchronized measurement method based on GOOSE message
CN106970520B (en) * 2016-07-29 2020-06-16 上海博达通信科技有限公司 High-precision time synchronization system and method in embedded system
CN109150355B (en) * 2018-08-14 2020-04-24 华东计算技术研究所(中国电子科技集团公司第三十二研究所) 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
CN109917672B (en) * 2019-03-29 2022-04-12 中国人民解放军93216部队 Semi-physical simulation system and method for navigation and control loop
CN111125978A (en) * 2019-12-31 2020-05-08 国微集团(深圳)有限公司 Simulation data processing method and system
CN111324046B (en) * 2020-02-28 2022-10-25 中国电力科学研究院有限公司 Method and system for performing cooperative operation on distributed simulation system
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
US11956744B2 (en) 2021-03-30 2024-04-09 Crystal Instruments Corporation Sampling synchronization through GPS signals
US12111681B2 (en) * 2021-05-06 2024-10-08 Mellanox Technologies, Ltd. Network adapter providing isolated self-contained time services
CN114095166B (en) * 2021-11-23 2024-08-13 北京京东方技术开发有限公司 Method, node and system for generating temporary identity of node
US11754724B2 (en) 2021-12-29 2023-09-12 Crystal Instruments Corporation Cross spectrum analysis for time stamped signals

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1346197A (en) * 2000-09-27 2002-04-24 西门子公司 Multi-user real-time communication method in ethernet communication system and ethernet communication system
CN1444814A (en) * 2000-07-26 2003-09-24 汤姆森特许公司 Multi-media jitter removal in asynchronous digital home network
CN101242230A (en) * 2007-02-05 2008-08-13 汤姆森许可贸易公司 Clock synchronization aid device and associated clock synchronization device
CN101252404A (en) * 2008-03-31 2008-08-27 重庆大学 Distributed network clock synchronizing system and method based on FPGA

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444814A (en) * 2000-07-26 2003-09-24 汤姆森特许公司 Multi-media jitter removal in asynchronous digital home network
CN1346197A (en) * 2000-09-27 2002-04-24 西门子公司 Multi-user real-time communication method in ethernet communication system and ethernet communication system
CN101242230A (en) * 2007-02-05 2008-08-13 汤姆森许可贸易公司 Clock synchronization aid device and associated clock synchronization device
CN101252404A (en) * 2008-03-31 2008-08-27 重庆大学 Distributed network clock synchronizing system and method based on FPGA

Cited By (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

Also Published As

Publication number Publication date
CN101388741A (en) 2009-03-18

Similar Documents

Publication Publication Date Title
CN101388741B (en) Highly precised time synchronization device, system and method for computer network
CN101977104B (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
US8576883B2 (en) Measurement and adjustment of real-time values according to residence time in networking equipment without access to real time
Lipiński et al. White rabbit: A PTP application for robust sub-nanosecond synchronization
US10868664B2 (en) Minimizing timestamp error in PTP systems
US9671822B2 (en) Method and devices for time transfer using end-to-end transparent clocks
CN102104475B (en) IEEE 1588-based synchronization system and synchronization method thereof
CN102148652B (en) System and method for measuring network clock synchronization
US20070260906A1 (en) Clock synchronization method and apparatus
CN106160914B (en) IEEE1588 clock synchronization method based on interference observation feedback control technology
US9547332B1 (en) Accurate time capture and transfer between clock domains
CN108023723B (en) Method for frequency synchronization and slave clock
CN102983927B (en) Time compensation method for master-slave clock timing based on IEEE 1588 protocol
CN106961312B (en) A kind of structure of network instrument clock synchronization system and method
TWI642277B (en) Frequency division clock alignment
CN103532693B (en) Time synchronizing device and method
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
Kim et al. Synchronized sensing for wireless monitoring of large structures
CN115801175A (en) Time frequency synchronization method, system, storage medium and electronic device
EP3231110B1 (en) Method and devices for time transfer using end to end transparent clocks
Schleusner et al. Sub-Microsecond Time Synchronization for Network-Connected Microcontrollers
Pandey et al. Analysis and design of precision time protocol system based on IEEE1588 standards
US11973582B2 (en) Detecting time delay between circuits to achieve time synchronization
Xiu et al. A new perspective of using integrated on-chip syntonistor for time synchronization in network: Meeting the TAACCS challenge

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