CN101459502A - Method and apparatus for network clock synchronization - Google Patents

Method and apparatus for network clock synchronization Download PDF

Info

Publication number
CN101459502A
CN101459502A CNA2007100324246A CN200710032424A CN101459502A CN 101459502 A CN101459502 A CN 101459502A CN A2007100324246 A CNA2007100324246 A CN A2007100324246A CN 200710032424 A CN200710032424 A CN 200710032424A CN 101459502 A CN101459502 A CN 101459502A
Authority
CN
China
Prior art keywords
time
returned packet
timestamp
network equipment
synchronization request
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.)
Pending
Application number
CNA2007100324246A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA2007100324246A priority Critical patent/CN101459502A/en
Priority to PCT/CN2008/073478 priority patent/WO2009076908A1/en
Publication of CN101459502A publication Critical patent/CN101459502A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Abstract

The invention discloses a method of network clock synchronization, which comprises the following steps: sending a clock synchronization request message for a second network device by a first network device, storing the sending timestamp and the actual initiating timestamp of the clock synchronization request message, receiving the return message of the second network device by the first network device, and recording the arrival timestamp of the return message, obtaining and storing the receiving timestamp of the clock synchronization request message, the actual sending timestamp of the return message from the return message and recording the arrival timestamp of the return message by the first network device, calculating the time shift of the first network device relative to the second network device by the first network device according to the timestamp, and regulating the clock by the first network device according to the time shift. The invention further discloses a device of network clock synchronization, which increases the precision of the network clock synchronization through the embodiment of the invention, and meets the requirements of the users.

Description

The method and apparatus that a kind of network clocking is synchronous
Technical field
The present invention relates to the communications field, relate in particular to the synchronous method and apparatus of a kind of network clocking.
Background technology
Along with the prosperity day by day of science and technology, the particularly fast development of electronic communication, people's life be unable to do without communication network gradually, and more and more stricter to the requirement of communication network reliability and validity.Network Synchronization is the important technology that guarantees communication network validity, and people are improving constantly network synchronization technique.
NTP (Network Time Protocol) (NTP) is the part of transmission control protocol and Internet protocol (TCP/IP) protocol family, is the application layer protocol that operates on IP agreement and user data message (UDP) agreement.The target of Network Time Protocol is that all equipment with clock in the network are carried out clock synchronization, and the clock of all devices in the network is consistent, thereby makes equipment that various application based on unified time can be provided.Please refer to Fig. 1, Fig. 1 shows the basic principle schematic of NTP in the prior art:
If first network equipment and second network equipment system clock synchronously before separately clock be 10:00am and 11:00am, second network equipment is a time server.
Step 1: first network equipment sends a request message (Request Packet) and gives second network equipment, and this NTP message has the initiation timestamp (Originate Timestamp) that leaves first network equipment, and this time is 10:00:00am.
Step 2: when this message arrived second network equipment, the time of reception that the record of second network equipment receives down stabbed (Receive Timestamp), and this time is 11:00:01am.And this timestamp is added in the response message (Response Packet).
Step 3: second network equipment sends Response Packet to first network equipment, contains the delivery time stamp (Transmit Timestamp) that leaves second network equipment in this response message, and this time is 11:00:02am.
Step 4: the record of first network equipment receives that stabbing (ArriveTimestamp) time of advent of Response Packet is 10:00:03am.
According to above four timestamps, on first network equipment, can calculate time migration with respect to second network equipment:
offset = ( ( Receive Timestamp - Originate Timestamp ) + ( Transmit Timestamp - Arrive Timestamp ) ) 2
In realizing process of the present invention, the applicant finds that there is following defective at least in prior art: in step 1, when first network equipment is carrying out NTP message when encapsulation, obtain local time stamp earlier, this timestamp is encapsulated in the NTP message, then the NTP message is encapsulated in the UDP message, encapsulates two layer message again after then the UDP message being encapsulated into the IP message, the transmit queue that arrives interface then is medium to be sent.Therefore when this message is sent out, in the message with initiation timestamp (Originate Timestamp) more Zao than actual transmitting time.Similarly, when response message left second network equipment, it is more Zao than the actual delivery time that the delivery time in the message is stabbed (Transmit Timestamp) in step 3.In step 2, when second network equipment is received a message and do not know it is the NTP message, need carry out successively decapsulation to message, when deblocking installs to UDP message port when being 123, know that just this message is the NTP message, just can note down the time of advent this moment.So, the time of reception of record (Receive Timestamp) will to reach the time late than actual.Similarly, the time of advent (Arrive Timestamp) under the record of first network equipment is also late than the real time in the step 4.
In addition, enter interface from message and handle message to CPU, and put into the interface transmit queue to being sent out away from message, delay time is unfixed.In fact, software and is not known the time departure of message reality when structure NTP message, and the error of this part may reach tens milliseconds (ms), has a strong impact on time precision.
Summary of the invention
The embodiment of the invention provides a kind of network clocking synchronous method and apparatus, has improved the synchronous precision of network clocking, has satisfied user's demand.
In order to solve the problems of the technologies described above, the embodiment of the invention has proposed the synchronous method of a kind of network clocking, and it may further comprise the steps:
First network equipment is to second network equipment tranmitting data register synchronization request message, and preserves the initiation timestamp and the actual timestamp of initiating of described clock synchronization request message;
First network equipment receives the returned packet of second network equipment, and writes down the stamp time of advent of described returned packet;
First network equipment obtained and preserved the clock synchronization request message from described returned packet time of reception stabs, the actual delivery time of returned packet stabs and stab the time of advent of the returned packet of record;
First network equipment stabs according to the actual initiation timestamp and the time of reception of the clock synchronization request message of preserving, and the actual delivery time of response message stabs and the time of advent stamp calculate of the time migration of first network equipment with respect to second network equipment;
First network equipment is adjusted clock according to described time migration.
Correspondingly, the embodiment of the invention also discloses the synchronous device of a kind of network clocking, comprising:
Sending module is used for tranmitting data register synchronization request message;
Receiver module is used to receive returned packet, and described returned packet comprises first response message and second response message;
The FPGA module is used to write down the actual initiation timestamp of described clock synchronization request message and stab the time of advent of described returned packet;
Acquisition module is used for obtaining the time of reception stamp of clock synchronization request message, the actual delivery time stamp of returned packet from the returned packet that receiver module receives;
Memory module, be used for store clock synchronization request message initiation timestamp, FPGA module records actual initiation timestamp and stab the time of advent of described returned packet, and the time of reception of the clock synchronization request message that obtains of storage acquisition module stabs and the stamp time of advent of returned packet;
Processing module is used for calculating time migration according to the timestamp information that memory module is preserved, and adjusts clock according to described time migration.
Implement the embodiment of the invention, by initiating the time and the time of advent near the interface recorded message, do not change content of message, improved clock accuracy, the time migration that calculates is more accurate, makes network clocking more accurate synchronously, has satisfied user's demand.
Description of drawings
Fig. 1 is the basic principle schematic of NTP in the prior art;
Fig. 2 is the structural representation of a specific embodiment of the synchronous device of a kind of network clocking of the present invention;
Fig. 3 is the structural representation of the described acquisition module of Fig. 2;
Fig. 4 is the synchronous method flow diagram of a kind of network clocking of the embodiment of the invention;
Fig. 5 is the flow chart of a specific embodiment of the synchronous method of a kind of network clocking of the present invention.
Embodiment
The embodiment of the invention provides a kind of network clocking synchronous method and apparatus.First network equipment has improved time precision by stabbing the actual initiation and the time of advent at the interface recorded message, and the time migration that calculates is more accurate, makes network clocking more synchronous, and the demand that has satisfied the user has improved the synchronous precision of network clocking.
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
With reference to figure 4, illustrate the synchronous method flow diagram of a kind of network clocking of the embodiment of the invention, concrete steps are as follows:
Step S401: first network equipment is to second network equipment tranmitting data register synchronization request message, as the NTP message, and utilize the described NTP message of EtherType (EthType) identification by two layers, write down the actual initiation timestamp (Actual Originate Timestamp) of described NTP message, described actual initiate timestamp and and be encapsulated in the NTP message the local timestamp (Originate Timestamp) of initiating and preserve;
Step S402: first network equipment receives the returned packet of second network equipment, and utilizes EtherType (EthType) to discern described returned packet by two layers, stabs the time of advent of writing down described returned packet (Arrive Timestamp);
Step S403: first network equipment obtained and preserved the clock synchronization request message from returned packet time of reception stabs and actual delivery time of response message stabs and stab the time of advent.
Step S404: the same with prior art, first network equipment utilizes formula according to the timestamp information of described preservation:
offset = ( ( Receive Timestamp - Actual Originate Timestamp ) + ( Actual Transmit Timestamp - Arrive Times ) ) 2
Calculate of the time migration of first network equipment with respect to second network equipment;
Step S405: first network equipment is adjusted clock according to described time migration, makes the clock synchronization of the clock and second network equipment of first network equipment, is specially: local clock=local clock-offset;
Step S406: process ends.
Need to prove, in all embodiment of the present invention, utilize EtherType (EthType) identification described request message and returned packet to be specially by two layers: when described request message and returned packet are encapsulated into the ether layer, to become Ethernet message, in the EthType of Ethernet message head field, distribute a new EthType value to be used for representing that this message is the NTP message, and on first network equipment and second network equipment, increasing a FPGA, this FPGA can discern the described request message and returned packet is the NTP message by the EthType value.Like this, in the process of message decapsulation, just can identify message at the network second layer is clock synchronization request message or returned packet, energy is the initiation time and the time of advent of recorded message in time, more accurate based on the time migration that such time interocclusal record goes out, the clock synchronization adjustment is more accurate.
Further describe the synchronous method of network clocking of the embodiment of the invention below in conjunction with Fig. 5.
Fig. 5 is the flow chart of a specific embodiment of the synchronous method of a kind of network clocking, and its concrete steps are as follows:
Step S501: first network equipment is when encapsulation clock synchronization request message (NTP message), obtain local time stamp, and this local clock stabbed as initiation timestamp (Originate Timestamp) be encapsulated in the clock synchronization request message, and when the clock synchronization request message is encapsulated into the ether layer, be used for representing that in the EthType of Ethernet message head field distribution one new EthType value this message is the NTP message, send the clock synchronization request message (Request Packet) of EtherType to second network equipment;
(Originate Timestamp) is saved in the synchronized timestamp table with described initiation timestamp, described synchronized timestamp table is as shown in table 1, and its list item comprises: initiate timestamp (Originate Timestamp), actual initiation timestamp (Actual Originate Timestamp), time of reception stamp (Receive Timestamp), stamp of actual delivery time (Actual Transmit Timestamp) and stab (Arrive Timestamp) time of advent;
When sending described clock synchronization request message, FPGA identifies described clock synchronization request message from the EthType value, and the described clock synchronization request message of immediate record leaves the actual initiation timestamp of transmit port, and the described actual timestamp of initiating is inserted the synchronized timestamp table;
Step S502: when second network equipment received the clock synchronization request message of first network equipment, FPGA discerned described clock synchronization request message by EthType, and write down the time of reception stamp of described clock synchronization request message;
Step S503: second network equipment stabs the transmitting time of carrying in the described clock synchronization request message and inserts first response message (Response Packet), delivery time in described first response message stabs field and is set to 0, and described first response message is sent to first network equipment;
Step S504: second network equipment writes down the actual delivery time of described first response message and stabs, and the time of reception of described clock synchronization request message stabbed insert second response message (Follow Up Response), delivery time in described second response message stabs field and is set to actual delivery time stamp, and described second response message is sent to first network equipment;
Step S505: first network equipment receives first response message, and writes down the stamp time of advent of described first response message, forwards step S507 to;
Step S506: first network equipment receives second response message;
Step S507: first network equipment obtains and the holding time is stabbed information, specifically comprises:
First network equipment carries out decapsulation to the returned packet (comprising: first response message, second response message) that receives, and obtains the initiation timestamp information, and the initiation timestamp in described initiation timestamp and the synchronized timestamp table is carried out matching treatment;
Detect the indicating bit information in the described returned packet after the match is successful, and extract timestamp information in the described returned packet according to the value of described indicating bit, in this example, described indicating bit can stab field by the delivery time in the returned packet and realize that then the timestamp information that extracts in the described returned packet according to the value of described indicating bit is specially:
When the delivery time in detecting described returned packet, the stamp field was first predetermined value (as 0), described returned packet was first response message, and first network equipment extracts the time of advent of described record and stabs, and inserted the synchronized timestamp table stabbing the described time of advent;
When the delivery time in detecting described returned packet, the stamp field was not first predetermined value, described returned packet is second response message, first network equipment extracts the time of reception stamp of clock synchronization request message in described second response message and the actual delivery time of first response message stabs, and described time of reception stamp and stamp of actual delivery time are inserted the synchronized timestamp table respectively.
Step S508, first network equipment stabs according to clock synchronization request message actual initiation timestamp and time of reception, and actual delivery time of response message stabs and stab the time of advent and calculate the time migration of first network equipment with respect to second network equipment, and according to described clock skew adjustment local clock.
Need to prove, more than be the preferred embodiments of the present invention, and the present invention is not limited to this, the equivalent variations that claim is done according to the present invention also in protection scope of the present invention, as:
In step S503, the time of reception of second network equipment can be stabbed simultaneously and insert first response message, then in step S507, when the described delivery time, the stamp field was 0, except inserting off-balancesheet lock in time, described time of reception can also be stabbed the timetable of inserting stabbing the time of advent.
Certainly, in embodiments of the present invention, the time of reception that can utilize first response message and second response message to carry second network equipment simultaneously stabs, and then first network equipment detects first response message or second response message and all described time of reception can be stabbed and insert the synchronized timestamp table.
Because Network Time Protocol adopts the UDP message, UDP is not a reliable news, may can not receive response message behind first network equipment tranmitting data register synchronization request message, therefore, in step S501, when leaving, message can start a timer timing, and then described method can also comprise:
Detect first network equipment and whether receive returned packet,, then close described timer when first network equipment receives first response message and second response message before described timer expiry; Work as timer expiry, then first network equipment will be deleted the timestamp information of showing described lock in time, and resend the clock synchronization request message;
In step S507, when the initiation timestamp in initiation timestamp in the described returned packet and the described synchronized timestamp table after it fails to match, whether first network equipment detects described timer overtime, if described timer expiry, then the timestamp information in the synchronized timestamp table is deleted, resend the clock synchronization request message, restart timer.
By implementing the synchronous device of a kind of network clocking of the embodiment of the invention, utilizing EthType at ethernet layer (the network second layer) identification clock synchronization request message and response message near interface by FPGA, the actual initiation time of recorded message and the time of advent, need not as prior art layer by layer deblocking install to the 4th layer just to identify described message be the NTP message, improved clock accuracy, the time migration that utilizes described temporal information to calculate is more accurate, makes network clocking more accurate synchronously.
Need to prove, the synchronous method of a kind of network clocking that the embodiment of the invention proposes is not limited to be applied in outside the point-to-point mode of client/server, can also be applied in the broadcast/multi broadcast mode of a plurality of client computer to a server, the operation principle of both modes is basic identical, repeats no more here.
More than the synchronous method of a kind of network clocking of the embodiment of the invention is elaborated, below in conjunction with accompanying drawing, specifically set forth the synchronous device of a kind of network clocking of the embodiment of the invention.
See also Fig. 2, Fig. 2 shows the structural representation of the synchronous device of a kind of network clocking of the embodiment of the invention, comprising:
Sending module 21 is used for tranmitting data register synchronization request message;
Receiver module 23 is used to receive returned packet, and described returned packet comprises first response message and second response message;
FPGA module 22 by EtherType (EthType) identification clock synchronization request message and returned packet, and writes down the actual initiation timestamp of described clock synchronization request message and the stamp time of advent of described returned packet;
Acquisition module 24 is used for obtaining the time of reception stamp of clock synchronization request message, the actual delivery time stamp of returned packet from the returned packet that receiver module 23 receives;
Memory module 25, the initiation timestamp that is used for store clock synchronization request message, the stamp time of advent of the actual initiation timestamp of FPGA module 22 records and described returned packet, and the time of reception of the clock synchronization request message that obtains of storage acquisition module 24 stabs and the stamp time of advent of returned packet, particularly, can store with the form of synchronized timestamp table, as shown in table 1, the synchronized timestamp information in the described synchronized timestamp table comprises: initiate timestamp (Originate Timestamp), the actual timestamp (ActualOriginate Timestamp) of initiating, time of reception stabs (Receive Timestamp), the actual delivery time stabs (ActualTransmit Timestamp) and stabs (Arrive Timestamp) time of advent;
Processing module 26 is used for the timestamp information according to memory module 25 storages, the same formula that utilizes with prior art:
offset = ( ( Receive Timestamp - Actual Originate Timestamp ) + ( Actual Transmit Timestamp - Arrive Times ) ) 2
Calculate of the time migration of first network equipment, and adjust clock according to described time migration with respect to second network equipment.Need to prove, will be understood by those skilled in the art that, according to timestamp information skew computing time, and be not limited thereto according to the implementation that clock is adjusted in time migration, other all can realize according to timestamp information skew computing time and according to the processing module 26 that the method embodiment of the invention of clock is adjusted in this time migration in the prior art.
Table 1
Originate Timestamp Actual Originate Timestamp Receive Timestamp Actual Transmit Timestamp Arrive Timestamp
In the another kind of execution mode of the embodiment of the invention, the synchronous device of described network clocking further comprises:
Timer 27 is used for picking up counting when sending module 21 tranmitting data register synchronization request messages;
Detection module 28 is used for detecting receiver module 23 and whether receives returned packet, that is: first response message and second response message in the timing range of described timer 27;
Testing result processing module 29, be used for detecting when in described timer 27 timing ranges, not receiving first response message and second response message when detection module 28, timestamp information in the deletion memory module 25, and triggering sending module 21 resends the clock synchronization request message.
As shown in Figure 3, the described acquisition module 24 of Fig. 2 comprises:
Matching unit 241 is used for the initiation timestamp that the initiation timestamp and the memory module 25 of the returned packet that receives are preserved is carried out matching treatment;
Detecting unit 242 when matching unit 241 after the match is successful, is used for detecting the indicating bit information of described returned packet, and the delivery time that described indicating bit is specifically as follows in the returned packet is stabbed field;
Extraction unit 243, the value that detects indicating bit according to detecting unit 242 is obtained the time of reception stamp of clock synchronization request message, the actual delivery time stamp of returned packet, is specially:
When detecting described indicating bit and be first predetermined value, described returned packet is first response message, and first network equipment obtains the time of reception that carries in first response message and stabs;
When detecting non-first predetermined value of described indicating bit, described returned packet is second response message, and first network equipment obtains the actual delivery time of described first response message that carries in second response message and stabs.
When detecting unit 242 detects delivery time in the described returned packet when stabbing field information and being first predetermined value (as 0), then described returned packet is first response message, and the time of reception that extraction unit 243 obtains the clock synchronization request message that carries in first response message stabs;
When detecting unit 242 detects delivery time in the described returned packet when stabbing field information and being not first predetermined value, then described returned packet is second response message, extraction unit 243 obtains the actual delivery time of described first response message that carries in two response messages and stabs, and perhaps extraction unit 243 obtains the actual delivery time stamp of described first response message that carries in second response message and the time of reception stamp in described second response message.
By the foregoing description as can be known, first network equipment is by utilizing EthType identification NTP message by FPGA at two layers near interface, need not as prior art layer by layer deblocking install to the 4th layer and just can identify the NTP message, stab the time of advent of the actual initiation of recording clock synchronization request message and first response message like this, more accurate, improved time precision, similarly, second network equipment is by utilizing EthType identification NTP message by FPGA at two layers near interface, the time of reception of recording clock synchronization request message stabs and the actual delivery time of first response message stabs, utilize the actual initiation timestamp and the time of reception of described clock synchronization request message to stab, it is more accurate that the time migration that calculates is stabbed and stabbed the time of advent to the actual delivery time of first response message, make network clocking more accurate synchronously, satisfied user's demand.
Above disclosed only is a kind of preferred embodiment in the embodiment of the invention, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (12)

1, the synchronous method of a kind of network clocking is characterized in that, this method may further comprise the steps:
First network equipment is to second network equipment tranmitting data register synchronization request message, and preserves the initiation timestamp and the actual timestamp of initiating of described clock synchronization request message;
First network equipment receives the returned packet of second network equipment, and writes down the stamp time of advent of described returned packet;
First network equipment obtained and preserved the clock synchronization request message from described returned packet time of reception stabs, the actual delivery time of returned packet stabs and stab the time of advent of the returned packet of record;
First network equipment stabs according to the actual initiation timestamp and the time of reception of the clock synchronization request message of preserving, and the actual delivery time of response message stabs and the time of advent stamp calculate of the time migration of first network equipment with respect to second network equipment;
First network equipment is adjusted clock according to described time migration.
2, the synchronous method of network clocking as claimed in claim 1, it is characterized in that described first network equipment obtained and preserved the clock synchronization request message from described returned packet time of reception stabs, the actual delivery time of returned packet stabs and the stamp time of advent of the returned packet of record is specially:
The initiation timestamp of initiation timestamp in the described returned packet and described preservation is carried out matching treatment;
After the match is successful, obtain the time of reception stamp of clock synchronization request message, the actual delivery time stamp of returned packet according to the indicating bit that carries in the described returned packet;
With the time of reception of the clock synchronization request message that obtains stab, actual delivery time of returned packet stabs and stab the time of advent of the returned packet of described record and preserve.
3, the synchronous method of network clocking as claimed in claim 2 is characterized in that, the described time of reception that obtains the clock synchronization request message according to the indicating bit that carries in the described returned packet stabs, the actual delivery time of returned packet stabs and specifically comprise:
When detecting described indicating bit and be first predetermined value, described returned packet is first response message, and first network equipment obtains the time of reception that carries in first response message and stabs;
When detecting non-first predetermined value of described indicating bit, described returned packet is second response message, and first network equipment obtains the actual delivery time of described first response message that carries in second response message and stabs.
4, the synchronous method of network clocking as claimed in claim 2 is characterized in that, the described time of reception that obtains the clock synchronization request message according to the indicating bit that carries in the described returned packet stabs, the actual delivery time of returned packet stabs and specifically comprise:
When detecting described indicating bit and be first predetermined value, described returned packet is first response message;
When detecting non-first predetermined value of described indicating bit, described returned packet is second response message, and first network equipment obtains the actual delivery time stamp of described first response message that carries in second response message and the time of reception in described second response message stabs.
As any described method of claim 1 to 4, it is characterized in that 5, the action that the described holding time stabs specifically comprises:
The clock synchronization request message is initiated the actual delivery time stamp of timestamp, actual initiation timestamp and time of reception stamp and returned packet and stabs the time of advent to be saved in the synchronized timestamp table.
6, the synchronous method of network clocking as claimed in claim 5 is characterized in that, described method also comprises:
Start a timer in the time of first network equipment tranmitting data register synchronization request message;
Detect first network equipment and whether receive first response message and second response message,, then close described timer when first network equipment receives described two response messages before described timer expiry; Otherwise first network equipment is deleted the timestamp information in the synchronized timestamp table, and will resend the clock synchronization request message, restarts timer.
7, the synchronous method of network clocking as claimed in claim 6 is characterized in that, described method also further comprises:
When the initiation timestamp in initiation timestamp in the described returned packet and the described synchronized timestamp table after it fails to match, whether first network equipment detects described timer overtime, if described timer expiry, then the timestamp information in the synchronized timestamp table is deleted, resend the clock synchronization request message, restart timer.
8, the method for claim 1 is characterized in that, described first network equipment and second network equipment utilize EtherType to discern described clock synchronization request message and returned packet by FPGA at the network second layer.
9, the synchronous device of a kind of network clocking is characterized in that, comprising:
Sending module is used for tranmitting data register synchronization request message;
Receiver module is used to receive returned packet, and described returned packet comprises first response message and second response message;
The FPGA module is used to write down the actual initiation timestamp of described clock synchronization request message and stab the time of advent of described returned packet;
Acquisition module is used for obtaining the time of reception stamp of clock synchronization request message, the actual delivery time stamp of returned packet from the returned packet that receiver module receives;
Memory module, be used for store clock synchronization request message initiation timestamp, FPGA module records actual initiation timestamp and stab the time of advent of described returned packet, and the time of reception of the clock synchronization request message that obtains of storage acquisition module stabs and the stamp time of advent of returned packet;
Processing module is used for calculating time migration according to the timestamp information that memory module is preserved, and adjusts clock according to described time migration.
10, the synchronous device of network clocking as claimed in claim 9 is characterized in that, described acquisition module comprises:
Matching unit is used for the initiation timestamp that the initiation timestamp and the memory module of the returned packet that receives are preserved is carried out matching treatment;
Detecting unit when matching unit after the match is successful, is used for detecting the indicating bit information of described returned packet;
Extraction unit, the value that detects indicating bit according to detecting unit is obtained the time of reception stamp of clock synchronization request message, the actual delivery time stamp of returned packet.
11, as claim 9 or the synchronous device of 10 described network clockings, it is characterized in that described device also comprises a timer, be used for when sending module tranmitting data register synchronization request message, picking up counting.
12, the synchronous device of network clocking as claimed in claim 11 is characterized in that, described device also comprises:
Detection module is used for detecting receiver module and whether receives first response message and second response message in the timing range of described timer;
The testing result processing module, be used for detecting when in described timer timing range, not receiving described first response message and second response message when detection module, timestamp information in the deletion memory module, and the triggering sending module resends the clock synchronization request message.
CNA2007100324246A 2007-12-13 2007-12-13 Method and apparatus for network clock synchronization Pending CN101459502A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNA2007100324246A CN101459502A (en) 2007-12-13 2007-12-13 Method and apparatus for network clock synchronization
PCT/CN2008/073478 WO2009076908A1 (en) 2007-12-13 2008-12-12 A method, an equipment and a system for the network clock synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100324246A CN101459502A (en) 2007-12-13 2007-12-13 Method and apparatus for network clock synchronization

Publications (1)

Publication Number Publication Date
CN101459502A true CN101459502A (en) 2009-06-17

Family

ID=40770148

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100324246A Pending CN101459502A (en) 2007-12-13 2007-12-13 Method and apparatus for network clock synchronization

Country Status (2)

Country Link
CN (1) CN101459502A (en)
WO (1) WO2009076908A1 (en)

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145410A1 (en) * 2009-06-19 2010-12-23 腾讯科技(深圳)有限公司 Method and device for synchronizing time of network games
WO2011012057A1 (en) * 2009-07-30 2011-02-03 华为技术有限公司 Message synchronization method, apparatus and system
CN101986590A (en) * 2010-11-03 2011-03-16 烟台持久钟表集团有限公司 Secondary clock synchronous time precision detection device and method
WO2011035736A1 (en) * 2009-09-28 2011-03-31 华为技术有限公司 Method, apparatus and network system for implementing time synchronization
CN102026181A (en) * 2009-09-21 2011-04-20 中兴通讯股份有限公司 Optimizing method and system for realizing IS-856 authentication
CN102065472A (en) * 2010-12-09 2011-05-18 重庆邮电大学 Cross-layer design-based method for determining wireless network coding participation packet
CN102209307A (en) * 2011-05-20 2011-10-05 中兴通讯股份有限公司 Time synchronization method and apparatus thereof
WO2011141005A1 (en) * 2010-05-14 2011-11-17 华为技术有限公司 Clock synchronization method, customer premises equipment and clock synchronization system
CN102377556A (en) * 2010-08-19 2012-03-14 中兴通讯股份有限公司 Method and system for realizing timestamp synchronization of active and standby optical line terminals
CN102404104A (en) * 2011-11-24 2012-04-04 中兴通讯股份有限公司 Self-adaptive synchronizing method and system based on different time delay mechanisms
CN102571911A (en) * 2011-11-17 2012-07-11 电信科学技术第五研究所 Computer time synchronizing and monitoring method based on NTP (Network Time Protocol) protocol
CN102983959A (en) * 2011-09-05 2013-03-20 盛科网络(苏州)有限公司 Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
CN103457714A (en) * 2013-08-19 2013-12-18 国家电网公司 Method and system for synchronizing server time
CN103686203A (en) * 2013-12-04 2014-03-26 深圳市融创天下科技股份有限公司 Video transcoding method and device
WO2015117501A1 (en) * 2014-07-16 2015-08-13 中兴通讯股份有限公司 Time synchronization method, programmable logic device, single board and network element
TWI497970B (en) * 2009-11-02 2015-08-21 Ibm Techniques for improved clock offset measuring
CN104917645A (en) * 2015-04-17 2015-09-16 浪潮电子信息产业股份有限公司 Online detection message transmission timeout method and device
CN104993920A (en) * 2015-07-03 2015-10-21 上海斐讯数据通信技术有限公司 SNTP-based synchronization time method and SNTP client
CN105116376A (en) * 2013-01-23 2015-12-02 英特尔公司 Polled time-of-flight response
WO2015196685A1 (en) * 2014-06-26 2015-12-30 中兴通讯股份有限公司 Clock synchronization method and apparatus
WO2016070719A1 (en) * 2014-11-03 2016-05-12 武汉数字派特科技有限公司 In-system global clock providing method and device
WO2017071521A1 (en) * 2015-10-30 2017-05-04 华为技术有限公司 Method, node and system for detecting clock synchronization path
US9810780B2 (en) 2013-01-23 2017-11-07 Intel Corporation Time of flight (ToF) measurement
CN107771387A (en) * 2015-06-17 2018-03-06 汤姆逊许可公司 System and method for the time and date in set device in the case of not accessing NTP
CN107786293A (en) * 2016-08-29 2018-03-09 中兴通讯股份有限公司 Method for synchronizing time, clock equipment, from clockwork and clock synchronization system
CN109347851A (en) * 2018-11-06 2019-02-15 杭州迪普科技股份有限公司 A kind of request responding method and device
CN111343482A (en) * 2020-03-12 2020-06-26 青岛海信宽带多媒体技术有限公司 Clock synchronization method and device based on Ipv6 extended header and display equipment
CN111865830A (en) * 2019-04-29 2020-10-30 华为技术有限公司 Processing method, device and system for time delay sensitive network service TSN
CN113014351A (en) * 2021-03-15 2021-06-22 四川英得赛克科技有限公司 Non-invasive time synchronization method, system and storage medium
CN113179441A (en) * 2021-03-26 2021-07-27 卡莱特云科技股份有限公司 Synchronous playing method, device, system and computer equipment
WO2022042697A1 (en) * 2020-08-31 2022-03-03 中兴通讯股份有限公司 Time synchronization method and apparatus, device, and storage medium
WO2023060390A1 (en) * 2021-10-11 2023-04-20 Telefonaktiebolaget Lm Ericsson (Publ) Method and network device for ptp clock synchronization

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506107B (en) * 2016-11-25 2019-03-12 武汉中科坤德科技有限公司 A kind of ntp server time service implementation method based on hardware timestamping
US11599090B2 (en) 2020-09-30 2023-03-07 Rockwell Automation Technologies, Inc. System and method of network synchronized time in safety applications

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NO20006684D0 (en) * 2000-12-28 2000-12-28 Abb Research Ltd Time Synchronization
CN100484142C (en) * 2005-11-02 2009-04-29 华为技术有限公司 Method and device for correting time of customer end through network time protocol
WO2007069041A2 (en) * 2005-12-15 2007-06-21 Abb Technology Ltd. Using travel-time as means for improving the accuracy of simple network time protocol

Cited By (52)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010145410A1 (en) * 2009-06-19 2010-12-23 腾讯科技(深圳)有限公司 Method and device for synchronizing time of network games
US9143584B2 (en) 2009-07-30 2015-09-22 Huawei Technologies Co., Ltd. Message synchronization method, apparatus and system
WO2011012057A1 (en) * 2009-07-30 2011-02-03 华为技术有限公司 Message synchronization method, apparatus and system
CN102026181B (en) * 2009-09-21 2014-03-19 中兴通讯股份有限公司 Optimizing method and system for realizing IS-856 authentication
CN102026181A (en) * 2009-09-21 2011-04-20 中兴通讯股份有限公司 Optimizing method and system for realizing IS-856 authentication
WO2011035736A1 (en) * 2009-09-28 2011-03-31 华为技术有限公司 Method, apparatus and network system for implementing time synchronization
TWI497970B (en) * 2009-11-02 2015-08-21 Ibm Techniques for improved clock offset measuring
WO2011141005A1 (en) * 2010-05-14 2011-11-17 华为技术有限公司 Clock synchronization method, customer premises equipment and clock synchronization system
US8886986B2 (en) 2010-05-14 2014-11-11 Huawei Technologies Co., Ltd. Clock synchronization method, customer premises equipment and clock synchronization system
CN102377556A (en) * 2010-08-19 2012-03-14 中兴通讯股份有限公司 Method and system for realizing timestamp synchronization of active and standby optical line terminals
CN101986590A (en) * 2010-11-03 2011-03-16 烟台持久钟表集团有限公司 Secondary clock synchronous time precision detection device and method
CN102065472B (en) * 2010-12-09 2013-02-06 重庆邮电大学 Cross-layer design-based method for determining wireless network coding participation packet
CN102065472A (en) * 2010-12-09 2011-05-18 重庆邮电大学 Cross-layer design-based method for determining wireless network coding participation packet
CN102209307A (en) * 2011-05-20 2011-10-05 中兴通讯股份有限公司 Time synchronization method and apparatus thereof
CN102983959A (en) * 2011-09-05 2013-03-20 盛科网络(苏州)有限公司 Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
CN102983959B (en) * 2011-09-05 2015-05-13 盛科网络(苏州)有限公司 Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
CN102571911A (en) * 2011-11-17 2012-07-11 电信科学技术第五研究所 Computer time synchronizing and monitoring method based on NTP (Network Time Protocol) protocol
CN102571911B (en) * 2011-11-17 2014-11-19 电信科学技术第五研究所 Computer time synchronizing and monitoring method based on NTP (Network Time Protocol) protocol
CN102404104A (en) * 2011-11-24 2012-04-04 中兴通讯股份有限公司 Self-adaptive synchronizing method and system based on different time delay mechanisms
US9810780B2 (en) 2013-01-23 2017-11-07 Intel Corporation Time of flight (ToF) measurement
CN105116376A (en) * 2013-01-23 2015-12-02 英特尔公司 Polled time-of-flight response
CN103457714A (en) * 2013-08-19 2013-12-18 国家电网公司 Method and system for synchronizing server time
CN103686203A (en) * 2013-12-04 2014-03-26 深圳市融创天下科技股份有限公司 Video transcoding method and device
CN105323054A (en) * 2014-06-26 2016-02-10 中兴通讯股份有限公司 Clock synchronization method and device
US9900120B2 (en) 2014-06-26 2018-02-20 Zte Corporation Clock synchronization method and apparatus
WO2015196685A1 (en) * 2014-06-26 2015-12-30 中兴通讯股份有限公司 Clock synchronization method and apparatus
CN105323054B (en) * 2014-06-26 2019-05-17 中兴通讯股份有限公司 Clock synchronizing method and device
WO2015117501A1 (en) * 2014-07-16 2015-08-13 中兴通讯股份有限公司 Time synchronization method, programmable logic device, single board and network element
CN105262555A (en) * 2014-07-16 2016-01-20 中兴通讯股份有限公司 Time synchronization method, programmable logic device, single board and network element
CN105262555B (en) * 2014-07-16 2021-05-28 中兴通讯股份有限公司 Time synchronization method, programmable logic device, single board and network element
US10778359B2 (en) 2014-07-16 2020-09-15 Xi'an Zhongxing New Software Co., Ltd. Time synchronization method, programmable logic device, single board and network element
WO2016070719A1 (en) * 2014-11-03 2016-05-12 武汉数字派特科技有限公司 In-system global clock providing method and device
US10187196B2 (en) 2014-11-03 2019-01-22 The Wuhan Digital Pet Co., Ltd Method and device for providing a global clock in a system
CN104917645A (en) * 2015-04-17 2015-09-16 浪潮电子信息产业股份有限公司 Online detection message transmission timeout method and device
CN104917645B (en) * 2015-04-17 2018-04-13 浪潮电子信息产业股份有限公司 A kind of method and apparatus of on-line checking message transmissions time-out
CN107771387A (en) * 2015-06-17 2018-03-06 汤姆逊许可公司 System and method for the time and date in set device in the case of not accessing NTP
CN107771387B (en) * 2015-06-17 2022-10-28 交互数字麦迪逊专利控股公司 System and method for setting time and date in a device
US10979541B2 (en) 2015-06-17 2021-04-13 Interdigital Madison Patent Holdings, Sas System and method for setting time and date in a device without access to network time protocol
CN104993920A (en) * 2015-07-03 2015-10-21 上海斐讯数据通信技术有限公司 SNTP-based synchronization time method and SNTP client
CN104993920B (en) * 2015-07-03 2017-10-31 上海斐讯数据通信技术有限公司 A kind of lock in time method and SNTP clients based on SNTP
US10462760B2 (en) 2015-10-30 2019-10-29 Huawei Technologies Co., Ltd. Method, node, and system for detecting clock synchronization path
WO2017071521A1 (en) * 2015-10-30 2017-05-04 华为技术有限公司 Method, node and system for detecting clock synchronization path
CN107786293A (en) * 2016-08-29 2018-03-09 中兴通讯股份有限公司 Method for synchronizing time, clock equipment, from clockwork and clock synchronization system
CN109347851A (en) * 2018-11-06 2019-02-15 杭州迪普科技股份有限公司 A kind of request responding method and device
CN111865830B (en) * 2019-04-29 2022-04-22 华为技术有限公司 Processing method, device and system for time delay sensitive network service TSN
CN111865830A (en) * 2019-04-29 2020-10-30 华为技术有限公司 Processing method, device and system for time delay sensitive network service TSN
CN111343482A (en) * 2020-03-12 2020-06-26 青岛海信宽带多媒体技术有限公司 Clock synchronization method and device based on Ipv6 extended header and display equipment
WO2022042697A1 (en) * 2020-08-31 2022-03-03 中兴通讯股份有限公司 Time synchronization method and apparatus, device, and storage medium
CN113014351B (en) * 2021-03-15 2022-07-22 四川英得赛克科技有限公司 Non-invasive time synchronization method, system and storage medium
CN113014351A (en) * 2021-03-15 2021-06-22 四川英得赛克科技有限公司 Non-invasive time synchronization method, system and storage medium
CN113179441A (en) * 2021-03-26 2021-07-27 卡莱特云科技股份有限公司 Synchronous playing method, device, system and computer equipment
WO2023060390A1 (en) * 2021-10-11 2023-04-20 Telefonaktiebolaget Lm Ericsson (Publ) Method and network device for ptp clock synchronization

Also Published As

Publication number Publication date
WO2009076908A1 (en) 2009-06-25

Similar Documents

Publication Publication Date Title
CN101459502A (en) Method and apparatus for network clock synchronization
CN101455014B (en) Methods and devices for sending transmission-time or reception-time information for a transmitted or received message
CN100581164C (en) Accurate time synchronization method and system facing measurement and control
CN108650051B (en) The clock synchronization apparatus and method of general devices at full hardware single step 1588
CN101080889B (en) Synchronization module of IEEE 1588 standard
EP3651438B1 (en) Data transmission based on application- and protocol-adaptive compression strategies
CA2837709C (en) Method for improving accuracy in computation of one-way transfer time for network time synchronization
CN101364863B (en) Time synchronizing method, apparatus and system for master, slave time clock side in synchronous network
CN106850397A (en) Message delivery method and device in Internet of Things
US9042411B1 (en) System and method for accurate time sampling in presence of output delay
CN105610652B (en) Method and device for acquiring data transmission delay
HK1097375A1 (en) System and method for communicating asynchronouslywith web services using message set definitions
WO2019127447A1 (en) Method, apparatus and system for time synchronization
CN103647614A (en) Method for reliably improving time synchronization precision based on IEEE1588 protocol
CN106688207A (en) Method for determining a propagation time of a telegram in a communication network, and corresponding network components
US20220360350A1 (en) Method and apparatus for acquiring timestamp of data stream, storage medium, and electronic apparatus
CN101719867B (en) Method and system for clock recovery in packet switching network
WO2018227703A1 (en) Method and device for transmitting messages over internet of things
CN111596721B (en) Data time tag synchronization method and device
CN111464255B (en) Data synchronization method and data acquisition device based on CPLD
CN102983959B (en) Method for realizing one-step mode and two-step mode for PTP (precision time synchronization protocol) in a plurality of MAC
CN103297288A (en) Packet transfer delay measurement system
WO2016000324A1 (en) Method and apparatus for implementing time synchronization
Sharma et al. An empirical study of clock skew behavior in modern mobile and hand-held devices
US8180875B1 (en) Ping-based communication system (PICS)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090617