CN107800500A - A kind of method, apparatus and equipment for determining time synchronized message clock time - Google Patents
A kind of method, apparatus and equipment for determining time synchronized message clock time Download PDFInfo
- Publication number
- CN107800500A CN107800500A CN201610766256.2A CN201610766256A CN107800500A CN 107800500 A CN107800500 A CN 107800500A CN 201610766256 A CN201610766256 A CN 201610766256A CN 107800500 A CN107800500 A CN 107800500A
- Authority
- CN
- China
- Prior art keywords
- time
- message
- entry
- stamp
- time stamp
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0685—Clock or time synchronisation in a node; Intranode synchronisation
- H04J3/0697—Synchronisation in a packet node
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Electric Clocks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a kind of method, apparatus and equipment for determining time synchronized message clock time, wherein, this method includes:Time synchronized message to receive adds multiple entry time stamps, wherein, each corresponding time timekeeping system of entry time stamp;Effective entry time stamp in multiple entry time stamps is determined according to the attribute of time synchronized message, and outlet timestamp is determined using time timekeeping system corresponding to effective entry time stamp;The clock time of time synchronized message is determined according to effective entry time stamp and/or Outlet time stamp.The present invention uses more set time timekeeping systems, and each timekeeping system is not interfere with each other, and it is accurate that clock time calculates, and solves problem of the prior art.
Description
Technical field
The present invention relates to communication field, more particularly to a kind of method, apparatus for determining time synchronized message clock time
And equipment.
Background technology
In the application field such as commercial measurement and control, the distribution based on network service and local computing is largely used
System.In order to ensure distributed terminal, such as sensor, driver and other devices can realize accurate data acquisition, fortune
The real time tasks such as row control are, it is necessary to which whole distributed system has the unified reference time, and should make all distributions
The local clock of terminal is synchronous with the distributed system time holding.
Distributed terminal synchronously needs to complete by certain communication protocol with the distributed system time, in order that different
System device can interconnect between the network equipment of different providers, American Institute of Electrical and Electronics Engineers (IEEE) exploitation
The standard synchronization protocol (i.e. accurate time synchronization protocol) of application field is gone out for commercial measurement and has controlled.The agreement has full
Sufficient distributed environment, microsecond or submicrosecond precision, it need not manage, can be applied to the specific demands such as various types of terminal parts
Ability.Relatively conventional GPS (global positioning system, Global Positioning System) Time Synchronizing, the agreement side
Case is low to environmental requirement, and construction cost is low.
OC (ordinary clock), BC (boundary clock) and TC are (transparent defined in accurate time synchronization protocol 1588V2 specifications
Clock) etc. three kinds of PTP (Precision Time Protocol, Precision Time Protocol) clock type.When above-mentioned three kinds basic
Also the clock type of TCOC (clock for having transparent clock and ordinary clock concurrently) has been derived on the basis of clock type, the clock class
Type has the characteristics of TC and OC clocks simultaneously, both transparent transmission temporal information, also the synchronous equipment of itself time.
In common technique, a kind of method for realizing TCOC synchronizing clock times is that whole equipment uses a time timing system
System, the timestamp timing to TC and OC functions all use this time timekeeping system, as shown in figure 1, existing for existing time message
The processing schematic diagram of TCOC synchronizing clock time equipment.Forward when the time synchronized message of transparent transmission is also in equipment, do not reach
When transparent transmission exports, if now the time deviation as OC function calculatings have modified the time of time timekeeping system, this adjustment
Time deviation be just incorporated on the transparent transmission time, so as to have impact on the precision of transparent transmission time.
The content of the invention
The present invention provides a kind of method, apparatus and equipment for determining time synchronized message clock time, existing to solve
The following problem of technology:It is existing to realize TCOC synchronizing clock times equipment in transparent transmission time synchronized message, when the time of transparent transmission
When sync message also forwards and do not reach outlet in a device, amendment of the OC functions on the time can influence the accurate of transparent transmission time
Property.
In order to solve the above technical problems, on the one hand, the present invention provides a kind of side for determining time synchronized message clock time
Method, including:Time synchronized message to receive adds multiple entry time stamps, wherein, each entry time stamp is corresponding one
Time timekeeping system;Effective entry time in the multiple entry time stamp is determined according to the attribute of the time synchronized message
Stamp, and determine outlet timestamp using time timekeeping system corresponding to the effective entry time stamp;According to described effective
Entry time stabs and/or the clock time of the Outlet time stamp determination time synchronized message.
Optionally, the time synchronized message to receive adds multiple entry time stamps, including:In the time synchronized report
The afterbody of text sets multiple privately owned timestamp fields;An entry time stamp is added in each privately owned timestamp field, will
The multiple entry time stamp adds in the multiple privately owned timestamp field respectively.
Optionally, when the entry time stamp number of addition is two, determined according to the attribute of the time synchronized message
Effective entry time stamp in the multiple entry time stamp, including:According to the determined property of the time synchronized message
Time synchronized message is transparent transmission message or common message;In the case where the time synchronized message is transparent transmission message, it is determined that
The entry time stamp of the time timekeeping system addition of the synchronous transparent transmission message time stabs for effective entry time;When described
Between in the case that sync message is common message, it is determined that the entrance of the time timekeeping system addition of the synchronous common message time
Timestamp stabs for effective entry time.
Optionally, when the entry time stamp number of addition is two or more, according to the attribute of the time synchronized message
Effective entry time stamp in the multiple entry time stamp is determined, including:According to the determined property of the time synchronized message
The time synchronized message is transparent transmission message or common message;In the case where the time synchronized message is transparent transmission message,
It is determined that the entry time stamp of the time timekeeping system addition of the synchronous transparent transmission message time stabs for effective entry time;Institute
In the case of stating time synchronized message and being common message, when the synchronous common message is selected from multiple time timekeeping systems
Between time timekeeping system, and confirm that the entry time stamp of time timekeeping system addition stabs for effective entry time.
Optionally, the time synchronized report is determined according to the effective entry time stamp and/or Outlet time stamp
After the clock time of text, in addition to:In the case where the time synchronized message is transparent transmission message, the transparent transmission message is used
The Outlet time stamp of corresponding time timekeeping system changes the amendment of the time synchronized message with the difference of entry time stamp
Domain field, and the multiple privately owned timestamp fields set are deleted, then the amended time synchronized message is carried out
Transparent transmission is sent;In the case where the time synchronized message is common message, by time timing system corresponding to the common message
The Outlet time stamp of system writes the standard time stamp field of the response message of the time synchronized message, and sends the response report
Text.
On the other hand, the present invention also provides a kind of device for determining time synchronized message clock time, including:Add mould
Block, for the multiple entry times stamps of time synchronized message addition to receive, wherein, when each entry time stamp corresponds to one
Between timekeeping system;First determining module, for determining that the multiple entry time stabs according to the attribute of the time synchronized message
In effective entry time stamp, and determine Outlet time using time timekeeping system corresponding to the effective entry time stamp
Stamp;Second determining module, for determining that the time is same according to the effective entry time stamp and/or Outlet time stamp
Walk the clock time of message.
Optionally, the add module includes:Setting unit, it is multiple for being set in the afterbody of the time synchronized message
Privately owned timestamp field;Adding device, for adding an entry time stamp in each privately owned timestamp field, by described in
Multiple entry time stamps add in the multiple privately owned timestamp field respectively.
Optionally, first determining module includes:First judging unit, for the category according to the time synchronized message
Property judges that the time synchronized message is transparent transmission message or common message;First determining unit, in the entrance of addition
Between when to stab number be two, in the case where the time synchronized message is transparent transmission message, it is determined that during the synchronous transparent transmission message
Between time timekeeping system addition entry time stamp for effective entry time stab;It is commonly to report in the time synchronized message
In the case of text, it is determined that the entry time stamp of the time timekeeping system addition of the synchronous common message time is effective entrance
Timestamp;Second determining unit, for being stabbed in the entry time of addition when number is two or more in the time synchronized message
In the case of being transparent transmission message, it is determined that the entry time stamp of the time timekeeping system addition of the synchronous transparent transmission message time is to have
The entry time stamp of effect;In the case where the time synchronized message is common message, selected from multiple time timekeeping systems
Go out the time timekeeping system of the synchronous common message time, and confirm that the entry time of the time timekeeping system addition stabs and be
Effective entry time stamp.
Optionally, described device also includes:First sending module, for being transparent transmission message in the time synchronized message
In the case of, repaiied using the Outlet time stamp of time timekeeping system corresponding to the transparent transmission message energy with the difference of entry time stamp
Change the amendment domain field of the time synchronized message, and delete the multiple privately owned timestamp fields set, then will modification
The time synchronized message afterwards carries out transparent transmission transmission;Second sending module, for being common report in the time synchronized message
In the case of text, the Outlet time stamp of time timekeeping system corresponding to the common message is write into the time synchronized message
The standard time stamp field of response message, and send the response message.
On the other hand, the present invention also provides a kind of synchronizing clock time equipment, including any one it is above-mentioned fix time really it is same
Walk the device of message clock time.
The present invention is provided with multiple time timekeeping systems, therefore, after time synchronized message is received, it is possible to when passing through
Between timekeeping system add multiple entry times stamp for it, then, can according to the attribute of time synchronized message which to be determined when
Between timekeeping system provide entry time stamp be it is effective, use effective entry time stamp determine time synchronized message outlet
Timestamp, and then the clock time of time synchronized message is determined, the process uses more set time timekeeping systems, each timekeeping system
It does not interfere with each other, it is accurate that clock time calculates, and solves the following problem of prior art:It is existing to realize that TCOC synchronizing clock times are set
It is standby in transparent transmission time synchronized message, when the time synchronized message of transparent transmission also forwards and when not reaching outlet in a device, OC work(
The accuracy of transparent transmission time can be influenceed on the amendment of time.
Brief description of the drawings
Fig. 1 is processing schematic diagram of the prior art time message in TCOC synchronizing clock time equipment;
Fig. 2 is the flow chart for the method that time synchronized message clock time is determined in first embodiment of the invention;
Fig. 3 is the structural representation for the device that time synchronized message clock time is determined in second embodiment of the invention;
Fig. 4 is that the structure for the device add module that time synchronized message clock time is determined in second embodiment of the invention is shown
It is intended to;
Fig. 5 is the knot for the determining module of device first that time synchronized message clock time is determined in second embodiment of the invention
Structure schematic diagram;
Fig. 6 is the preferred structure signal for the device that time synchronized message clock time is determined in second embodiment of the invention
Figure;
Fig. 7 is time synchronized message processing procedure schematic diagram in a device in fourth embodiment of the invention;
Fig. 8 is the message format that entrance timestamp is added in fourth embodiment of the invention;
Fig. 9 is the message format that the response message of time synchronized message in fourth embodiment of the invention gets mouthful timestamp;
Figure 10 is that time synchronized message clock transparent transmission gets mouthful timestamp and corrects CF domains in fourth embodiment of the invention
Message format.
Embodiment
In order to solve the following problem of prior art:It is existing to realize TCOC synchronizing clock times equipment in transparent transmission time synchronized
During message, when the time synchronized message of transparent transmission also forwards and when not reaching outlet in a device, amendment meeting of the OC functions to the time
Influence the accuracy of transparent transmission time;The invention provides a kind of method, apparatus for determining time synchronized message clock time and set
Standby, below in conjunction with accompanying drawing and embodiment, the present invention will be described in further detail.It should be appreciated that tool described herein
Body embodiment does not limit the present invention only to explain the present invention.
First embodiment of the invention provides a kind of method for determining time synchronized message clock time, and the flow of this method is such as
Shown in Fig. 2, including step S202 to S206:
S202, the time synchronized message to receive add multiple entry time stamps, wherein, each entry time stamp is corresponding
One time timekeeping system.
S204, effective entry time stamp in multiple entry time stamps is determined according to the attribute of time synchronized message, and made
The time timekeeping system corresponding to effective entry time stamp determines outlet timestamp.
S206, the clock time of time synchronized message is determined according to effective entry time stamp and/or Outlet time stamp.
The embodiment of the present invention is provided with multiple time timekeeping systems, therefore, after time synchronized message is received, it is possible to
Passage time timekeeping system adds multiple entry time stamps for it, then, can be determined according to the attribute of time synchronized message
The entry time stamp which time timekeeping system provides is effective, is stabbed using effective entry time and determines time synchronized message
Outlet time stamp, and then determine time synchronized message clock time.The process uses more set time timekeeping systems, Ge Geji
When system do not interfere with each other, it is accurate that clock time calculates, and solves the following problem of prior art:It is existing to realize TCOC clock times
Synchronizer does not reach when the time synchronized message of transparent transmission also forwards in a device and outlet in transparent transmission time synchronized message
When, amendment of the OC functions on the time can influence the accuracy of transparent transmission time.
During realization, existing time synchronized message is all to use PTP standard message forms, and it is typically to include
Heading, PTP heads and PTP standard time stab three parts, when due to the above method being that the message that receives adds multiple entrances
Between stab, therefore, it is necessary to set the position of carrying entry time stamp, i.e., multiple privately owned times are set in the afterbody of time synchronized message
Field is stabbed, then an entry time stamp is added in each privately owned timestamp field, multiple entry times stamp is added respectively
In multiple privately owned timestamp fields.
When determining effective entry time stamp in multiple entry time stamps according to the attribute of time synchronized message, due to being
TCOC synchronizing clock time equipment, therefore, entry time stamp may be two, it is of course also possible to be two or more.
When the entry time stamp number of addition is two, according to the time described in the determined property of the time synchronized message
Sync message is transparent transmission message or common message;If time synchronized message is transparent transmission message, it is determined that the synchronous transparent transmission report
The entry time stamp that the time timekeeping system of literary time is added stabs for effective entry time, i.e. lock in time is using this
Time timekeeping system;If time synchronized message is common message, the time timing of the synchronous common message time is determined that
The entry time stamp of system addition stabs for effective entry time.
Whether message attribute instruction time sync message is transparent transmission message, if message attribute indicates that it is not required to transparent transmission
Message, then its attribute is the common message that uses of equipment, otherwise, the time synchronized message it is confirmed that to be need transparent transmission saturating
Pass message.
When realizing, for TCOC synchronizing clock time equipment, TC functions may be only included thereon and one independent
OC functions, be two in the entry time stamp number of addition therefore it is also possible to also including other needs the synchronous functions of clock
In the case that the individual above and time synchronized message are common message, selected from multiple time timekeeping systems synchronous described general
The time timekeeping system of logical message time, and when to confirm the entry time stamp of the time timekeeping system addition be effective entrance
Between stab.The above-mentioned time timekeeping system for selecting synchronous common message time is exactly to be used corresponding to the function of common message
Clock synchronization system.This process has preferable expansion for multi-functional TCOC synchronizing clock times equipment.
After the clock time of time synchronized message is determined, because the attribute of time synchronized message is different, therefore, pin
To different time synchronized messages, different operations is performed.
In the case where time synchronized message attribute indicates that it is transparent transmission message, time timing corresponding to transparent transmission message is used
The Outlet time stamp of system and the difference of entry time stamp carry out amendment domain (CF) field of modification time sync message, and delete
The multiple privately owned timestamp fields (setting before) set, then amended time synchronized message is subjected to transparent transmission transmission.
In the case where time synchronized message attribute indicates that it is common message, by time timing system corresponding to common message
The standard time stamp field of the response message of the Outlet time stamp write time sync message of system, and send response message.
Second embodiment of the invention provides a kind of device for determining time synchronized message clock time, and the structure of the device is shown
Meaning as shown in figure 3, including:
Add module 20, for the multiple entry times stamps of time synchronized message addition to receive, wherein, each entrance
The corresponding time timekeeping system of timestamp;First determining module 21, is coupled with add module 20, for according to time synchronized report
The attribute of text determines effective entry time stamp in multiple entry time stamps, and uses the time corresponding to effective entry time stamp
Timekeeping system determines outlet timestamp;Second determining module 22, coupled with the first determining module 21, for according to effective entrance
Timestamp and/or Outlet time stamp determine the clock time of time synchronized message.
When setting, the present embodiment is provided with two determining modules, i.e. the first determining module 21 and the second determining module 22,
When actually realizing, the module with similar functions can be set to a module, as long as realizing phase with above-mentioned two module
Same function.
Fig. 4 shows the structural representation of above-mentioned add module 20, and it can include:Setting unit 201, in the time
The afterbody of sync message sets multiple privately owned timestamp fields;Adding device 202, coupled with setting unit 201, for each
Privately owned timestamp field adds an entry time stamp, and multiple entry times stamp is added in multiple privately owned timestamp words respectively
Duan Zhong.
The structural representation of above-mentioned first determining module 21 of the present invention can be with as shown in figure 5, it includes:First judging unit
210, for being transparent transmission message or common message according to the determined property time synchronized message of time synchronized message;First determines
Unit 211, coupled with judging unit 210, for when the entry time stamp number of addition is two, being in time synchronized message
In the case of transparent transmission message, it is determined that the entry time stamp of the time timekeeping system addition of synchronous transparent transmission message time is effectively to enter
Mouth timestamp;In the case where time synchronized message is common message, it is determined that the time timekeeping system of synchronous common message time
The entry time stamp of addition stabs for effective entry time;Second determining unit 212, is coupled with judging unit 210, for adding
When the entry time stamp number added is two or more, in the case where time synchronized message is transparent transmission message, it is determined that synchronous transparent transmission
The entry time stamp of the time timekeeping system addition of message time stabs for effective entry time;It is common in time synchronized message
In the case of message, the time timekeeping system of synchronous common message time is selected from multiple time timekeeping systems, and is confirmed
The entry time stamp of time timekeeping system addition stabs for effective entry time.
After the clock time of time synchronized message is determined, because the attribute of time synchronized message is different, therefore, pin
To different time synchronized messages, perform different operations, so, said apparatus can with as shown in fig. 6, including:
First sending module 23, coupled with the second determining module 22, in the feelings that time synchronized message is transparent transmission message
Under condition, it is same to carry out modification time using the Outlet time stamp of time timekeeping system corresponding to transparent transmission message and the difference of entry time stamp
The amendment domain field of message is walked, and deletes multiple privately owned timestamp fields for having set, then by amended time synchronized message
Carry out transparent transmission transmission;Second sending module 24, coupled with the second determining module 22, for being common message in time synchronized message
In the case of, the Outlet time of time timekeeping system corresponding to common message is stabbed to the response message of write time sync message
Standard time stabs field, and sends response message.
Third embodiment of the invention additionally provides a kind of synchronizing clock time equipment, and it includes above-mentioned synchronization of fixing time really
The device of message clock time.When realizing, synchronizing clock time equipment generally could be arranged to TCOC synchronizing clock times and set
It is standby, naturally it is also possible to be the other equipment with identical time clock feature;Device for determining time synchronized message clock time,
It can generally design in an integrated fashion in clock synchronization device, here is omitted.
Fourth embodiment of the invention provides a kind of method for determining time synchronized message clock time, and this method to be solved
Technical problem certainly is:A kind of method for realizing TCOC synchronizing clock times is provided, while the synchronous equipment of itself time, no
Influence the precision of transparent transmission time;Using following technical scheme:Multiple time timekeeping systems are enabled on TCOC clockworks, it is each
Individual time timekeeping system is responsible for the timestamp timing of One function, and entry time stamp information is additionally added to message tail and supplies equipment
Internal follow-up use.
The present embodiment is illustrated exemplified by using two time timekeeping systems.An as shown in fig. 7, time timekeeping system
For the timestamp timing as OC functions, timekeeping system time time can follow the time deviation that time synchronization protocol calculates
It is adjusted.Another time timekeeping system is used for the timestamp timing of TC functions, and timekeeping system time time will not follow
The time deviation that time synchronization protocol calculates is adjusted, and only follows equipment of itself frequency to carry out timing.
For enter the time synchronized message of equipment using timekeeping system time above-mentioned two time stamp two it is privately owned
Timestamp t1, t2 (timestamp form is consistent with 1588 Protocol Timestamp forms of standard), two timestamps are added to standard
The afterbody (the timestamp t1 of OC functions preceding, the timestamp t2 of TC functions is rear) of 1588 messages, as shown in Figure 8.With message
Into equipment, when as OC function calculating time deviations, using first timestamp t1, time deviation amendment first
Timekeeping system time time, second timestamp t2 without using.Meanwhile equipment itself respond time message outlet when
Wait, timestamp is stamped using first timekeeping system time time, is encapsulated in the time message of standard, as shown in Figure 9.Making
For TC function time synchronized messages from another port transparent transmission go out when, stamped using second timekeeping system time time
Timestamp t3, using the t3-t2 computing device transparent transmission times, it is adapted in the correctionField fields of time synchronized message,
Two privately owned timestamp t1, t2 fields additionally added in erasing time sync message simultaneously, as shown in Figure 10.
The implementation process of technical scheme is described in further detail with reference to above-mentioned accompanying drawing.
For in the common approach using a time timekeeping system, the possibility for influenceing transparent transmission time precision be present, therefore,
The embodiment of the present invention is considered as the improvement project of multiple time timekeeping systems, however, changing using multiple time timekeeping systems
Enter scheme nor directly increasing what time timekeeping system can was realized, due to adding multiple time timekeeping systems, therefore,
How to increase multiple timestamps is a problem, due to that can have multiple entry time stamps, then which entry time used
Stamp is just into problem, further, for different entry time stamps, how completely to realize the various functions of equipment also into asking
Topic.The embodiment of the present invention consider it is above-mentioned there are various problems and do not imagine but run into when actually realizing
Problem, and then a kind of Clock Synchronization Procedure of TCOC clockworks is proposed, the present embodiment is with using two time timekeeping systems
Exemplified by, such as Fig. 7, a time timekeeping system is used for the timestamp timing for realizing OC functions, and another time timekeeping system is used for
Realize the timestamp timing of TC functions.Basic handling flow is as follows:
Flow one:For the time synchronized message of entrance, in hardware device of the approach near line inlet, using
The time of one time timekeeping system stamps the privately owned timestamp t1 of OC functions, is beaten using the time of second time timekeeping system
The privately owned timestamp t2 of upper TC functions, two privately owned timestamp t1, t2 use the timestamp lattice of standard 1588V2 protocol definitions
Formula encapsulates, and is added to standard 1588V2 protocol massages afterbodys, such as Fig. 8, to be supplied to device interior subsequent operation use, timestamp
T1 is calculated as OC functional protocols time synchronized and used, and timestamp t2 uses as the TC function calculating transparent transmission times.
Flow two:Equipment needs to respond upstream equipment time synchronized message as OC functions, goes out in approach near circuit
During the hardware device of mouth, the time is stamped to the time synchronized message that OC functions are responded using the time of first time timekeeping system
T4 is stabbed, timestamp t4 is encapsulated in the timestamp of standard 1588V2 messages using the timestamp form of the 1588V2 protocol definitions of standard
Field location, such as Fig. 9, then send.
Flow three:After equipment collects time synchronized message as OC functions, agreement calculates time deviation and is adapted to first
In the time of individual time timekeeping system, second timekeeping system time time will not correct this time deviation.
Flow four:When equipment is as TC functions, in entrance time of receipt (T of R) sync message, stamp two privately owned timestamp t1,
After t2, message transmission to another side outlet, in hardware device of the approach near line outlet, using second time timing
The time of system stamps timestamp t3 to the time synchronized message of transparent transmission, and PLD is calculated using timestamp t3-t2
Go out the transparent transmission time difference, be adapted in the correctionField fields of time synchronized message PTP heads, correctionField=
CorrectionField+ (t3-t2), two privately owned timestamp t1, t2 for being added to time synchronized message tail are deleted, are such as schemed
10, then send.
Beneficial effect:The method for beating timestamp using multiple time timekeeping systems described in the embodiment of the present invention, it is and common
The method that a time timekeeping system beats timestamp in technology is compared, and while the synchronous equipment of itself time, does not influence transparent transmission
The precision of time, while timestamp information uses and is additionally added to the method that message tail subsequently uses for device interior, time
Stamp information is easy to obtain.
Although being example purpose, the preferred embodiments of the present invention are had been disclosed for, those skilled in the art will recognize
Various improvement, increase and substitution are also possible, and therefore, the scope of the present invention should be not limited to above-described embodiment.
Claims (10)
- A kind of 1. method for determining time synchronized message clock time, it is characterised in that including:Time synchronized message to receive adds multiple entry time stamps, wherein, each entry time stamp corresponding time Timekeeping system;Effective entry time stamp in the multiple entry time stamp is determined according to the attribute of the time synchronized message, and used Time timekeeping system corresponding to the effective entry time stamp determines outlet timestamp;When determining the clock of the time synchronized message according to the effective entry time stamp and/or Outlet time stamp Between.
- 2. the method as described in claim 1, it is characterised in that the time synchronized message to receive adds multiple entry times Stamp, including:In the afterbody of the time synchronized message, multiple privately owned timestamp fields are set;An entry time stamp is added in each privately owned timestamp field, the multiple entry time stamp is added respectively In the multiple privately owned timestamp field.
- 3. method as claimed in claim 1 or 2, it is characterised in that when the entry time stamp number of addition is two, according to The attribute of the time synchronized message determines effective entry time stamp in the multiple entry time stamp, including:It is transparent transmission message or common message according to time synchronized message described in the determined property of the time synchronized message;In the case where the time synchronized message is transparent transmission message, it is determined that the time timing system of the synchronous transparent transmission message time The entry time stamp of system addition stabs for effective entry time;In the case where the time synchronized message is common message, it is determined that the time timing system of the synchronous common message time The entry time stamp of system addition stabs for effective entry time.
- 4. method as claimed in claim 1 or 2, it is characterised in that when the entry time stamp number of addition is two or more, Effective entry time stamp in the multiple entry time stamp is determined according to the attribute of the time synchronized message, including:It is transparent transmission message or common message according to time synchronized message described in the determined property of the time synchronized message;In the case where the time synchronized message is transparent transmission message, it is determined that the time timing system of the synchronous transparent transmission message time The entry time stamp of system addition stabs for effective entry time;In the case where the time synchronized message is common message, selected from multiple time timekeeping systems synchronous described general The time timekeeping system of logical message time, and when to confirm the entry time stamp of the time timekeeping system addition be effective entrance Between stab.
- 5. method as claimed in claim 2, it is characterised in that according to the effective entry time stamp and/or the outlet After timestamp determines the clock time of the time synchronized message, in addition to:In the case where the time synchronized message is transparent transmission message, time timekeeping system corresponding to the transparent transmission message is used Outlet time is stabbed with the difference of entry time stamp to change the amendment domain field of the time synchronized message, and deletes what is set Multiple privately owned timestamp fields, then the amended time synchronized message is subjected to transparent transmission transmission;In the case where the time synchronized message is common message, by going out for time timekeeping system corresponding to the common message Mouth timestamp writes the standard time stamp field of the response message of the time synchronized message, and sends the response message.
- A kind of 6. device for determining time synchronized message clock time, it is characterised in that including:Add module, for the multiple entry times stamps of time synchronized message addition to receive, wherein, each entry time stamp A corresponding time timekeeping system;First determining module, it is effective in the multiple entry time stamp for being determined according to the attribute of the time synchronized message Entry time stabs, and determines outlet timestamp using time timekeeping system corresponding to the effective entry time stamp;Second determining module, for determining the time according to the effective entry time stamp and/or Outlet time stamp The clock time of sync message.
- 7. device as claimed in claim 6, it is characterised in that the add module includes:Setting unit, multiple privately owned timestamp fields are set for the afterbody in the time synchronized message;Adding device, for adding entry time stamp in each privately owned timestamp field, during by the multiple entrance Between stab and add respectively in the multiple privately owned timestamp field.
- 8. device as claimed in claims 6 or 7, it is characterised in that first determining module includes:First judging unit, it is transparent transmission message for time synchronized message described in the determined property according to the time synchronized message Or common message;First determining unit, for being transparent transmission in the time synchronized message when the entry time stamp number of addition is two In the case of message, it is determined that the entry time stamp of the time timekeeping system addition of the synchronous transparent transmission message time is effectively to enter Mouth timestamp;In the case where the time synchronized message is common message, it is determined that the time of the synchronous common message time The entry time stamp of timekeeping system addition stabs for effective entry time;Second determining unit, for when the entry time stamp number of addition is two or more, being in the time synchronized message In the case of transparent transmission message, it is determined that the entry time stamp of the time timekeeping system addition of the synchronous transparent transmission message time is effective Entry time stamp;In the case where the time synchronized message is common message, selected from multiple time timekeeping systems The time timekeeping system of the synchronous common message time, and confirm that the entry time of the time timekeeping system addition is stabbed to have The entry time stamp of effect.
- 9. device as claimed in claim 7, it is characterised in that described device also includes:First sending module, in the case of being transparent transmission message in the time synchronized message, use the transparent transmission message pair The Outlet time stamp for the time timekeeping system answered changes the amendment domain of the time synchronized message with the difference of entry time stamp Field, and the multiple privately owned timestamp fields set are deleted, then the amended time synchronized message is carried out thoroughly Pass and send;Second sending module, it is in the case of being common message in the time synchronized message, the common message is corresponding Time timekeeping system Outlet time stamp write the time synchronized message response message standard time stamp field, concurrently Send the response message.
- 10. a kind of synchronizing clock time equipment, it is characterised in that including being fixed time really any one of claim 6 to 9 The device of sync message clock time.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610766256.2A CN107800500A (en) | 2016-08-29 | 2016-08-29 | A kind of method, apparatus and equipment for determining time synchronized message clock time |
PCT/CN2017/099533 WO2018041108A1 (en) | 2016-08-29 | 2017-08-29 | Method, apparatus, and device for determining clock time of time synchronization packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610766256.2A CN107800500A (en) | 2016-08-29 | 2016-08-29 | A kind of method, apparatus and equipment for determining time synchronized message clock time |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107800500A true CN107800500A (en) | 2018-03-13 |
Family
ID=61300025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610766256.2A Pending CN107800500A (en) | 2016-08-29 | 2016-08-29 | A kind of method, apparatus and equipment for determining time synchronized message clock time |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107800500A (en) |
WO (1) | WO2018041108A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108770056A (en) * | 2018-05-31 | 2018-11-06 | 成都精位科技有限公司 | Ultra wide band synchronizing signal modification method, device and locating base station |
CN110381140A (en) * | 2019-07-19 | 2019-10-25 | 潍柴动力股份有限公司 | The method and device of event configuration |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10855388B2 (en) * | 2019-01-11 | 2020-12-01 | Qualcomm Incorporated | Wireless communication enhancements for transparent and boundary clocks |
CN112511376B (en) * | 2020-11-12 | 2022-04-15 | 鹏城实验室 | Method and terminal for measuring TSN network forwarding time characteristic |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102104476B (en) * | 2011-02-21 | 2015-01-28 | 中兴通讯股份有限公司 | Clock synchronization device and method |
WO2012166569A1 (en) * | 2011-05-27 | 2012-12-06 | Cisco Technology, Inc. | Precision timing in a data over cable service interface specification (docsis) system |
CN104348568A (en) * | 2013-07-23 | 2015-02-11 | 中兴通讯股份有限公司 | Time synchronization processing method and device |
EP3231110B1 (en) * | 2014-12-11 | 2023-05-17 | Khalifa University of Science and Technology | Method and devices for time transfer using end to end transparent clocks |
-
2016
- 2016-08-29 CN CN201610766256.2A patent/CN107800500A/en active Pending
-
2017
- 2017-08-29 WO PCT/CN2017/099533 patent/WO2018041108A1/en active Application Filing
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108770056A (en) * | 2018-05-31 | 2018-11-06 | 成都精位科技有限公司 | Ultra wide band synchronizing signal modification method, device and locating base station |
CN108770056B (en) * | 2018-05-31 | 2020-12-04 | 成都精位科技有限公司 | Ultra-wideband synchronization signal correction method and device and positioning base station |
CN110381140A (en) * | 2019-07-19 | 2019-10-25 | 潍柴动力股份有限公司 | The method and device of event configuration |
CN110381140B (en) * | 2019-07-19 | 2022-01-28 | 潍柴动力股份有限公司 | Event configuration method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2018041108A1 (en) | 2018-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8745431B2 (en) | Compound universal serial bus architecture providing precision synchronisation to an external timebase | |
US11979481B2 (en) | Time synchronisation | |
US10782730B2 (en) | Synchronisation of hardware clock using software clock synchronisation error | |
US8689035B2 (en) | Communication system, communication interface, and synchronization method | |
EP3903454B1 (en) | A tsn enabled controller | |
CN107800500A (en) | A kind of method, apparatus and equipment for determining time synchronized message clock time | |
CN110492965A (en) | The method and apparatus of serial message clock synchronization in a kind of master-slave system | |
US8205110B2 (en) | Synchronous operation of a system with asynchronous clock domains | |
CN102932083B (en) | A kind of method and apparatus during microwave synchronization pair | |
CN108471337B (en) | A method of realizing time synchronization in FC network | |
CN103546268B (en) | The compensation method of a kind of system time and equipment | |
CN101790230B (en) | Precision time protocol node, time stamp operation method and time synchronization system | |
US20230032250A1 (en) | Multi-channel signal synchronization system, circuit, and method | |
CN107786293A (en) | Method for synchronizing time, clock equipment, from clockwork and clock synchronization system | |
CN109921871A (en) | A kind of method for synchronizing time, device and network system | |
CN103138865A (en) | Time synchronization method and time synchronization device | |
CN102916758A (en) | Ethernet time synchronization device and network equipment | |
US11675318B2 (en) | Multi-interface GPS time synchronization | |
CN111628914B (en) | Periodic communication network link delay measurement method and system and FPGA | |
CN102571253A (en) | Method and equipment for implementing precise time synchronization | |
CN106814596B (en) | A kind of Hardware-in-the-Loop Simulation in Launch Vehicle test ground installation method for synchronizing time | |
CN103684730A (en) | Time synchronization method | |
KR101965932B1 (en) | UTC Time Synchronization Method for a Device using GPS Module | |
CN112654082B (en) | Timing device, base station, positioning system, calibration method and positioning method | |
CN113259039A (en) | Time synchronization method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180502 Address after: 518057 five floor, block A, ZTE communication tower, Nanshan District science and Technology Park, Shenzhen, Guangdong. Applicant after: ZTE Corporation Address before: 210000 68 Bauhinia Road, Yuhuatai District, Nanjing, Jiangsu Applicant before: Nanjing Zhongxing New Software Co., Ltd. |
|
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180313 |