CN110290580A - A kind of method and its system based on 1588 agreement passing times - Google Patents
A kind of method and its system based on 1588 agreement passing times Download PDFInfo
- Publication number
- CN110290580A CN110290580A CN201910485851.2A CN201910485851A CN110290580A CN 110290580 A CN110290580 A CN 110290580A CN 201910485851 A CN201910485851 A CN 201910485851A CN 110290580 A CN110290580 A CN 110290580A
- Authority
- CN
- China
- Prior art keywords
- time
- clock node
- clock
- deviation
- mesh network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/001—Synchronization between nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
Abstract
The present invention relates to Time synchronization technique fields, disclose a kind of method and its system based on 1588 agreement passing times.Method based on 1588 agreement passing times is applied to Mesh network, the Mesh network is used for and reference clock device talk, the reference clock equipment is for providing fiducial time, the Mesh network includes the clock node of multiple interconnection, and only one clock node and the reference clock device talk, the described method includes: obtaining the fiducial time deviation between target clock node and the reference clock equipment, the target clock node and the reference clock device talk;Based on 1588 agreements, the fiducial time deviation is assembled in the PTP heading of Announce message;Announce message to after the broadcast assembling of remaining clock node.The embodiment of the present invention realizes based on 1588 agreements the passing time between the clock node in Mesh network.
Description
Technical field
The present invention relates to Time synchronization technique field, more particularly to a kind of method based on 1588 agreement passing times and
Its system.
Background technique
Currently, being based on 1588 agreements, communicated using GrandMaster node and reference clock equipment (i.e. GPS), when remaining
Then hop-by-hop applies 1588 passing times to clock node.
But aforesaid way is suitable for chain or loop network, and there are master-slave relationships, and in Mesh network, own
Clock node be in equivalent locations, master-slave relationship is not present, also, in addition to the target clock section with reference clock device talk
Point, remaining clock node cannot be directly by itself obtaining the fiducial time deviation of itself and reference clock equipment, therefore, the present invention
Embodiment provides a kind of method based on 1588 agreement passing times applied to Mesh network.
Summary of the invention
The embodiment of the present invention is intended to provide a kind of method and its system based on 1588 agreement passing times, can be realized
Based on 1588 agreements between the clock node in Mesh network passing time.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
In a first aspect, the embodiment of the present invention provides a kind of method based on 1588 agreement passing times, it is applied to Mesh net
Network, the Mesh network be used for reference clock device talk, the reference clock equipment is described for providing fiducial time
Mesh network includes the clock node of multiple interconnection, and only one clock node and the reference clock device talk, described
Method includes:
Obtain the fiducial time deviation between target clock node and the reference clock equipment, the target clock node
With the reference clock device talk;
Based on 1588 agreements, the fiducial time deviation is assembled in the PTP heading of Announce message;
Announce message to after the broadcast assembling of remaining clock node.
In some embodiments, the fiducial time deviation is floating type format, described to be based on 1588 agreements, by the base
Quasi- time deviation is assembled in the PTP heading of Announce message, comprising:
The fiducial time deviation of floating type format is converted to the timestamp of structural body format, the timestamp includes described
The positive negative information of numerical value of the numerical information of fiducial time deviation and the fiducial time deviation;
Based on 1588 agreements, the timestamp is assembled in the PTP heading of Announce message.
In some embodiments, the PTP heading includes time complexity curve domain field and reserved field, described to be based on 1588
The timestamp is assembled in the PTP heading of Announce message by agreement, comprising:
Based on 1588 agreements, the time complexity curve domain field in the PTP heading and the reserved field are redefined;
The timestamp is assembled in the PTP heading of the Announce message after redefining.
In some embodiments, the PTP message that the timestamp is assembled in the Announce message after redefining
In head, comprising:
Time complexity curve domain field and the reserved field are redefined as timestamp description field, and by the time
Stamp is assembled in the PTP heading of the Announce message after redefining, and the timestamp description field is for when describing described
Between the time attribute stabbed.
In some embodiments, the timestamp description field includes second corresponding with timestamp part describing word
Section, nsec portion description field and time mark description field;
Wherein, the numerical information of the fiducial time deviation is respectively filled in second part description field and the nanosecond portion
Divide description field, the positive negative information of numerical value inserts the time label description field, and the time label description field is used for
Whether the positive and negative and described Announce message for identifying the fiducial time carries fiducial time.
In some embodiments, every time label description field digit is 8;
When the 0th of the time label description field is true, the fiducial time is positive;
The 0th of the time label description field is fictitious time, and the fiducial time is negative;
When the 1st of the time label description field is true, fiducial time is carried;
The 1st of the time label description field is fictitious time, does not carry fiducial time.
In some embodiments, the fiducial time is GPS time.
In some embodiments, the method also includes:
According to the PTP report transmitted between any clock node and the reference clock equipment in the remaining clock node
Text calculates deviation synchronization time in the remaining clock node between any clock node and the reference clock equipment;
According to the fiducial time deviation and deviation synchronization time, any clock node in the Mesh network is controlled
With the time synchronization of the reference clock equipment.
In some embodiments, described according to the fiducial time deviation and deviation synchronization time, described in control
The time synchronization of any clock node and the reference clock equipment in Mesh network, comprising:
It is added the fiducial time deviation and deviation synchronization time, obtains time deviation summation;
It controls any clock node in the Mesh network and compensates the time deviation summation, so that in the Mesh network
The time synchronization of any clock node and the reference clock equipment.
Second aspect, the embodiment of the present invention provide a kind of system based on 1588 agreement passing times, comprising:
Reference clock equipment;With
Mesh network, the Mesh network be used for the reference clock device talk so that in the Mesh network appoint
One clock node executes as above described in any item methods based on 1588 agreement passing times.
The beneficial effect of the embodiment of the present invention is: being in contrast to the prior art down, provided in an embodiment of the present invention one
Method and its system of the kind based on 1588 agreement passing times.It is mounted in by the way that fiducial time deviation is based on 1588 protocol groups
The PTP heading of Announce message, the Announce message to after the broadcast assembling of remaining clock node, so that when benchmark
Between deviation be transferred to the remaining clock node in Mesh network.Therefore, the embodiment of the present invention is realized is existed based on 1588 agreements
Passing time between clock node in Mesh network.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment, the element in attached drawing with same reference numbers label are expressed as similar element, remove
Non- to have special statement, composition does not limit the figure in attached drawing.
Fig. 1 is a kind of structural schematic diagram of system based on 1588 agreement passing times provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of method based on 1588 agreement passing times provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of step S12 in Fig. 2;
Fig. 4 is the flow diagram of step S122 in Fig. 3;
Fig. 5 be another embodiment of the present invention provides a kind of method based on 1588 agreement passing times process signal
Figure;
Fig. 6 is the flow diagram of step S15 in Fig. 5;
Fig. 7 is clock node A and transmission schematic diagram of the clock node B based on PTP protocol in Fig. 1;
Fig. 8 is clock node A and transmission schematic diagram of the clock node C based on PTP protocol in Fig. 1.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In addition, as long as technical characteristic involved in the various embodiments of the present invention described below is each other not
Constituting conflict can be combined with each other.
Referring to Fig. 1, being that a kind of structure of the system based on 1588 agreement passing times provided in an embodiment of the present invention is shown
It is intended to.As shown in Figure 1, the system 300 based on 1588 agreement passing times includes Mesh network 100 and reference clock equipment
200。
The Mesh network 100 is used to communicate with the reference clock equipment 200, and the Mesh network 100 includes multiple
The clock node 10 of interconnection, and only one described clock node 10 is communicated with the reference clock equipment 200, with the benchmark
The clock node 10 that clockwork 200 communicates is target clock node.
It is appreciated that the clock node 10 refer to standard ethernet or other use multicasting technology distributed bus
The clock in sensor, actuator and other terminal devices in system.Wherein, the terminal device is referred to via communication
The equipment that facility inputs program and data to computer or receives computer output processing result.
Wherein, each clock node 10 is connect with other clock nodes 10 in the Mesh network 100.For example,
The present embodiment is illustrated with the Mesh network 100 of 3 clock nodes 10, wherein clock node A and clock node
B is connected with clock node C, and clock node B is connect with clock node C and clock node A, clock node C and clock node A and when
The B connection of clock node.Further, the clock node A also with 200 communication connection of reference clock equipment, i.e., the described clock
Node A is the target clock node of the Mesh network 100 of this 3 clock nodes 10.
Preferably, the target clock node is that wireless telecommunications are connect with the reference clock equipment 200, the clock section
Point 10 connects between any two for wireless telecommunications.In some embodiments, the target clock node and the reference clock equipment
200 can connect for wire communication.
The reference clock equipment 200 is one for providing fiducial time, the quantity of the reference clock equipment 200,
The i.e. described reference clock equipment 200 is a unique synchronised clock in the system 300 based on 1588 agreement passing times,
All clock nodes 10 in the Mesh network 100 are synchronous with synchronised clock holding.
In the present embodiment, the reference clock equipment 200 is (Global Positioning System, the whole world GPS
Positioning system) or GPS module, the fiducial time is GPS time, and the GPS time belongs to the global position system time.
To sum up, the reference clock equipment 200 sends the fiducial time, the clock section to the Mesh network 100
Point A receives the fiducial time, and the fiducial time obtained between the clock node A and the reference clock equipment 200 is inclined
Difference.The clock node A, the clock node B and the clock node C transmit 1588 messages (i.e. PTP report each other
Text), the PTP message includes Announce message sync message, Delay_Req message, Follow_up message, Delay_
Resp message etc..
By taking the clock node A as an example, the clock node A is by receiving, responding the clock node B and the clock
The PTP message of node C, the PTP message includes time stab information, further according to the time stab information, thus when obtaining described
Between clock node A and the clock node B synchronization time deviation and the clock node A and the clock node C between
Synchronization time deviation;By the fiducial time deviation between the clock node A and the reference clock equipment 200, the clock
Between node A and the clock node B synchronization time deviation and the clock node A and the clock node C between
Deviation synchronization time is added again divided by number of nodes 3, obtains the clock node A to the clock node A, the clock node B
And the phase difference value of the center of the Mesh network of 3 nodes of the clock node C composition;It, will according to the phase difference value
The clock node A snaps to center, similarly, according to the phase difference value, by the clock node B and by the clock section
Point C snaps to center, thus, complete the clock node A, the clock node B and the clock node C and institute
State the time synchronization of reference clock equipment 200.
To solve the problems, such as that passing time, the present invention are implemented between the clock node in Mesh network based on 1588 agreements
Example proposes a kind of system based on 1588 agreement passing times, is mounted in by the way that fiducial time deviation is based on 1588 protocol groups
The PTP heading of Announce message, the Announce message to after the broadcast assembling of remaining clock node, so that when benchmark
Between deviation be transferred to the remaining clock node in Mesh network.Therefore, the embodiment of the present invention is realized is existed based on 1588 agreements
Passing time between clock node in Mesh network.
Referring to Fig. 2, being that a kind of process of the method based on 1588 agreement passing times provided in an embodiment of the present invention is shown
It is intended to.The method is applied to Mesh network, and the Mesh network is used to set with reference clock device talk, the reference clock
It is ready for use on and fiducial time is provided, the Mesh network includes the clock node of multiple interconnection, and only one clock node and institute
State reference clock device talk.As shown in Figure 2, which comprises
S11: the fiducial time deviation between target clock node and the reference clock equipment, the target clock are obtained
Node and the reference clock device talk.
In the present embodiment, the target clock node and the reference clock device talk, according to the target clock
Clock module or FPGA module built in node track and lock the PPS second pulse signal of the reference clock equipment, thus
Measurement obtains the fiducial time deviation between the target clock node and the reference clock equipment, and is stored in described
Target clock node, in order to which the Mesh network obtains the fiducial time deviation.
Wherein, the reference clock equipment is GPS or GPS module, and the fiducial time is GPS time, when the target
Clock node is based on 1588 agreements, so that the GPS time is in the Mesh network according to the GPS time got
It is transmitted between all clock nodes.
Specifically, the fiducial time deviation is time difference of the GPS to the target clock node, the GPS
The GPS time is sent to the target clock node, the target clock receives the GPS time, when according to the GPS
Between, measurement obtains the fiducial time deviation and the GPS to the phase difference of the target clock node.
S12: 1588 agreements are based on, the fiducial time deviation is assembled in the PTP heading of Announce message.
Wherein, 1588 agreements are also referred to as the precision interval clock synchronous protocol standard of network measure and control system, with so that dividing
Most precision clock in cloth network is synchronous with the holding of other clocks.Wherein, a kind of Precision Time Protocol of 1588 protocol definitions
PTP (Precision Time Protocol), PTP protocol be used for standard ethernet or other use multicasting technology distribution
It is synchronous that clock in sensor, actuator and other terminal devices in formula bus system carries out submicrosecond grade.
Specifically, PTP message can be defined with 1588 agreements, PTP message includes event message and general message, wherein
Event message is that chronometer time stamp is required during sending and receiving, and can excite the message for sending subsequent message, mainly
Including sync message, Delay_Req message, Pdelay_Req message and Pdelay_Resp message;General message will not then excite
Subsequent message mainly includes Announce message, Follow_up message, Delay_Resp message, Pdelay_Resp_
Follow_up message, Management message and Signaling message.
PTP message can use PTP over User Datagram Protocol (UDP) over IPv4, PTP over UDP over
IPv6、PTP over IEEE 802.3/Ethernet、PTP over Device NET、PTP over Control NET、
The modes such as PTP over IEC 61158Type 10 (fieldbus), mode in telecommunications network commonly used preceding 3.With PTP over
For UDP over IPv4, how which is described using UDP and Ethernet protocol edition 4 (IPv4) completion PTP message
Transmission.Under the transport protocol, PTP message is encapsulated into UDP message packet first, to identify that it is PTP message data,
First byte of PTP message should after last byte of UDP heading, be added IPv4 agreement the packet header IP after,
It is encapsulated into ethernet frame and is transmitted again.
Wherein, the Announce message is the message for describing time source capability, be can be used for the Mesh network
Middle residue clock node broadcast, with so that the GPS time transmits in the Mesh network.Table 1 is please referred to, table 1 is
Announce message format defined in IEEE 1588-2008 agreement.
Octets | Offset | |
header | 34 | 0 |
originTimestamp | 10 | 34 |
currentUtcOffset | 2 | 44 |
reserved | 1 | 46 |
grandmasterPriority1 | 1 | 47 |
grandmasterClockQuality | 4 | 48 |
grandmasterPriority2 | 1 | 52 |
grandmasterldentity | 8 | 53 |
stepsRemoved | 2 | 61 |
timeSource | 1 | 63 |
Table 1
In the present embodiment, the fiducial time deviation is assembled in the PTP heading of Announce message.Please refer to table
2, table 2 is PTP heading format defined in IEEE 1588-2008 agreement.
Table 2
Wherein, the Announce message belongs to one kind of the PTP message, and the PTP message is by heading, message master
The part such as body and message extended field (optional) forms, and the PTP heading includes 34 bytes (272 bit), the PTP
Heading format is suitable for all PTP messages.
Referring to Fig. 3, described be based on 1588 agreements, the fiducial time deviation is assembled in the PTP of Announce message
In heading, comprising:
S121: the fiducial time deviation of floating type format is converted to the timestamp of structural body format, the timestamp packet
Include the numerical information of the fiducial time deviation and the positive negative information of numerical value of the fiducial time deviation.
In the present embodiment, the fiducial time deviation is stored in the target clock node with floating type format, is denoted as
gOffset。
Wherein, floating type format is converted into structural body format, i.e., the gOffset of floating type format is converted into struct
The gOffset of Timestamp format.The fiducial time deviation of floating type format is converted into structural body defined in 1588 agreements
Format is as follows:
struct Timestamp
{
UInteger48secondsField;
UInteger32nanosecondsField;
};
Timestamp gOffset;
Boolean negative.
Wherein, the timestamp (i.e. the gOffset of struct Timestamp format) for defining the structural body format includes
Timestamp gOffset and Boolean negative, defining Timestamp gOffset indicates the fiducial time deviation
Numerical information, defining Booleannegative indicates the positive negative information of numerical value of the fiducial time deviation.Work as Boolean
When negative is equal to TRUE, indicate that the fiducial time deviation is negative, when Boolean negative is equal to FALSE,
Indicate that the fiducial time deviation is positive number.
S122: 1588 agreements are based on, the timestamp is assembled in the PTP heading of Announce message.
Numerical information Timestamp gOffset and the fiducial time for the ease of the transmission fiducial time deviation
The positive negative information negative of the numerical value of deviation, needing to redefine the Offset in the PTP heading is 8
The reserved field that correctionField field and Offset are 16.
It in the present embodiment, include: by institute in the PTP heading that the timestamp is assembled in Announce message
It states time complexity curve domain field and the reserved field redefines as timestamp description field, and the timestamp is assembled in and is reset
In the PTP heading of Announce message after justice, the time that the timestamp description field is used to describe the timestamp belongs to
Property.
Referring to Fig. 4, described be based on 1588 agreements, the timestamp is assembled in the PTP heading of Announce message
In, comprising:
S1221: being based on 1588 agreements, redefine time complexity curve domain field in the PTP heading with it is described pre-
It writes down characters section.
As shown in table 2, the PTP heading includes time complexity curve domain field and reserved field.
Specifically, by table 2 correctionField field and and correctionField field it is next
Field (i.e. reserved field) redefines as timestamp description field.
Type | Octets | Offset | |
secondsField | UInteger48 | 6 | 8 |
nanosecondsField | UInteger32 | 4 | 14 |
flag | UInteger8 | 1 | 18 |
reserved | 1 | 19 |
Table 3
Table 3 is please referred to, table 3 is the definition of the timestamp description field after redefining.
Wherein, the timestamp description field includes second corresponding with timestamp part description field, nsec portion
Description field and time mark description field.The numerical information of the fiducial time deviation is respectively filled in second part describing word
Section and the nsec portion description field, the positive negative information of numerical value insert the time label description field, the time mark
Note description field is for identifying whether the positive and negative and described Announce message of the fiducial time carries fiducial time.
As shown in table 3, secondsField field is used to describe the second part of Timestamp gOffset,
NanosecondsField field is used to describe the nsec portion of Timestamp gOffset.
Table 4
Table 4 is please referred to, table 4 is the definition of the flag field in table 3.
Wherein, every time label description field digit is 8;When the 0th of the time label description field is true,
The fiducial time is positive;The 0th of the time label description field is fictitious time, and the fiducial time is negative;The time
When marking the 1st of description field to be true, fiducial time is carried;The 1st of the time label description field is fictitious time, is not taken
Band fiducial time.
Specifically, the 0th of the time label description field is labeled as negative, i.e., the described positive negative information of numerical value is filled out
Enter the 0th of flag field, when negative is equal to TRUE, the GPS time is positive, when negative is equal to FALSE,
The GPS time is negative.The 1st of the time label description field is labeled as gpsTimeFlag, as gpsTimeFlag etc.
When TRUE, indicate that the Announce message carries GPS time, when gpsTimeFlag is equal to FALSE, described in expression
Announce message does not carry GPS time.
The content for passing through flag field corresponding bit position, can know the positive and negative letter of the numerical value of Timestamp gOffset
Whether breath and the Announce message carry GPS time.
S1222: the timestamp is assembled in the PTP heading of the Announce message after redefining.
S13: the Announce message to after the broadcast assembling of remaining clock node.
The fiducial time deviation is assembled in the PTP heading of Announce message, by remaining clock node
Announce message after broadcast assembling, so that the GPS time transmits in the Mesh network, and the remaining clock section
Any clock node can obtain the fiducial time deviation in point.
A kind of method based on 1588 agreement passing times provided in an embodiment of the present invention, by by the fiducial time it is inclined
Difference is assembled in the PTP heading of Announce message, the Announce message to after the broadcast assembling of remaining clock node, thus
So that fiducial time deviation is transferred to the remaining clock node in Mesh network.Therefore, the embodiment of the present invention, which realizes, is based on
1588 agreements passing time between the clock node in Mesh network.
Referring to Fig. 5, for another embodiment of the present invention provides a kind of method based on 1588 agreement passing times stream
Journey schematic diagram.As shown in figure 5, the method also includes:
S14: according to the PTP transmitted between any clock node and the reference clock equipment in the remaining clock node
Message calculates deviation synchronization time in the remaining clock node between any clock node and the reference clock equipment.
In the present embodiment, same between any clock node and the reference clock equipment in the remaining clock node
Time deviation is walked to obtain by PTP protocol.
For example, as shown in fig. 7, clock node A be benchmark clockwork, transmitted between clock node A and clock node B
PTP message, reception and response including PTP message.
Wherein, clock node A periodically issues sync message, and records the essence that sync message leaves clock node A
True sending time t11, meanwhile, his t11 of accurate sending time is encapsulated into Follow_up message by clock node A, when being sent to
Clock node B;Clock node B records the accurate arrival time t12 that sync message reaches clock node B;Clock node B is to clock
Node A sends Delay_Req message, and records the accurate sending time t13 of Delay_Req message;Clock node A record
The accurate arrival time t14 that Delay_Req message reaches;Clock node A will carry the Delay_Resp of accurate arrival time t14
Message is sent to clock node B.
Therefore, deviation synchronization time between clock node B and clock node A is equal to (t12-t11+t13-t14)/2, when
Transmission delay between clock node B and clock node A is equal to (t12-t11-t13+t14)/2.
Further for example, as shown in figure 8, clock node A be benchmark clockwork, transmitted between clock node A and clock node C
PTP message, reception and response including PTP message.
Wherein, clock node A periodically issues sync message, and records the essence that sync message leaves clock node A
True sending time t21, meanwhile, accurate sending time t21 is encapsulated into Follow_up message by clock node A, is sent to clock
Node C;Clock node C records the accurate arrival time t22 that sync message reaches clock node C;Clock node C is to clock section
Point A sends Delay_Req message, and records the accurate sending time t23 of Delay_Req message;Clock node A records Delay_
The accurate arrival time t24 that Req message reaches;Clock node A sends out the Delay_Resp message for carrying accurate arrival time t24
It send to clock node C.
Therefore, deviation synchronization time between clock node C and clock node A is equal to (t22-t21+t23-t24)/2, when
Transmission delay between clock node C and clock node A is equal to (t22-t21-t23+t24)/2.
S15: according to the fiducial time deviation and deviation synchronization time, any clock in the Mesh network is controlled
The time synchronization of node and the reference clock equipment.
Wherein, time synchronization is also referred to as Phase synchronization, refers to any clock node and the benchmark in the Mesh network
The frequency and phase of GPS time signal between clockwork are consistent.
Referring to Fig. 6, controlling in the Mesh network and appointing according to the fiducial time deviation and deviation synchronization time
The time synchronization of one clock node and the reference clock equipment, comprising:
S151: it is added the fiducial time deviation and deviation synchronization time, obtains time deviation summation.
S152: it controls any clock node in the Mesh network and compensates the time deviation summation, so that the Mesh
The time synchronization of any clock node and the reference clock equipment in network.
It is appreciated that by taking clock node B as an example, be added the fiducial time deviation and clock node B and clock node A it
Between clock node B, the time deviation of available clock node B and the GPS can by compensating corresponding time deviation
Clock node B is synchronized to the GPS.
A kind of method based on 1588 agreement passing times provided in an embodiment of the present invention, by according to remaining clock node
In the PTP message that is transmitted between any clock node and reference clock equipment, calculate any clock node in remaining clock node
Deviation synchronization time between reference clock equipment controls Mesh network further according to fiducial time deviation and deviation synchronization time
In any clock node and reference clock equipment time synchronization, therefore, the embodiment of the present invention realize Mesh network in it is any when
The time synchronization of clock node and reference clock equipment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;At this
It under the thinking of invention, can also be combined between the technical characteristic in above embodiments or different embodiment, step can be with
It is realized with random order, and there are many other variations of different aspect present invention as described above, for simplicity, they do not have
Have and is provided in details;Although the present invention is described in detail referring to the foregoing embodiments, the ordinary skill people of this field
Member is it is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, or to part of skill
Art feature is equivalently replaced;And these are modified or replaceed, each reality of the present invention that it does not separate the essence of the corresponding technical solution
Apply the range of a technical solution.
Claims (10)
1. a kind of method based on 1588 agreement passing times is applied to Mesh network, when the Mesh network is used for benchmark
Clock device talk, for the reference clock equipment for providing fiducial time, the Mesh network includes the clock section of multiple interconnection
Point, and only one clock node and the reference clock device talk, which is characterized in that the described method includes:
Obtain the fiducial time deviation between target clock node and the reference clock equipment, the target clock node and institute
State reference clock device talk;
Based on 1588 agreements, the fiducial time deviation is assembled in the PTP heading of Announce message;
Announce message to after the broadcast assembling of remaining clock node.
2. the method according to claim 1, wherein the fiducial time deviation is floating type format, the base
In 1588 agreements, the fiducial time deviation is assembled in the PTP heading of Announce message, comprising:
The fiducial time deviation of floating type format is converted to the timestamp of structural body format, the timestamp includes the benchmark
The positive negative information of numerical value of the numerical information of time deviation and the fiducial time deviation;
Based on 1588 agreements, the timestamp is assembled in the PTP heading of Announce message.
3. according to the method described in claim 2, it is characterized in that, the PTP heading includes time complexity curve domain field and pre-
It writes down characters section, it is described to be based on 1588 agreements, the timestamp is assembled in the PTP heading of Announce message, comprising:
Based on 1588 agreements, the time complexity curve domain field in the PTP heading and the reserved field are redefined;
The timestamp is assembled in the PTP heading of the Announce message after redefining.
4. according to the method described in claim 3, it is characterized in that, it is described the timestamp is assembled in redefine after
In the PTP heading of Announce message, comprising:
Time complexity curve domain field and the reserved field are redefined as timestamp description field, and by the timestamp group
In the PTP heading of Announce message after redefining, the timestamp description field is for describing the timestamp
Time attribute.
5. according to the method described in claim 4, it is characterized in that, the timestamp description field includes and the timestamp pair
Second part description field, nsec portion description field and the time label description field answered;
Wherein, the numerical information of the fiducial time deviation is respectively filled in second part description field and the nsec portion is retouched
Field is stated, the positive negative information of numerical value inserts the time label description field, and the time label description field is for identifying
Whether the positive and negative and described Announce message of the fiducial time carries fiducial time.
6. according to the method described in claim 5, it is characterized in that, every time label description field digit is 8;
When the 0th of the time label description field is true, the fiducial time is positive;
The 0th of the time label description field is fictitious time, and the fiducial time is negative;
When the 1st of the time label description field is true, fiducial time is carried;
The 1st of the time label description field is fictitious time, does not carry fiducial time.
7. the method according to claim 1, wherein the fiducial time is GPS time.
8. method according to any one of claims 1 to 7, which is characterized in that the method also includes:
According to the PTP message transmitted between any clock node and the reference clock equipment in the remaining clock node, meter
Calculate deviation synchronization time in the remaining clock node between any clock node and the reference clock equipment;
According to the fiducial time deviation and deviation synchronization time, any clock node and institute in the Mesh network are controlled
State the time synchronization of reference clock equipment.
9. according to the method described in claim 8, it is characterized in that, it is described according to the fiducial time deviation with it is described synchronous when
Between deviation, control the time synchronization of any clock node and the reference clock equipment in the Mesh network, comprising:
It is added the fiducial time deviation and deviation synchronization time, obtains time deviation summation;
It controls any clock node in the Mesh network and compensates the time deviation summation, so that any in the Mesh network
The time synchronization of clock node and the reference clock equipment.
10. a kind of system based on 1588 agreement passing times characterized by comprising
Reference clock equipment;With
Mesh network, the Mesh network be used for the reference clock device talk so that when any in the Mesh network
Clock node executes the described in any item methods based on 1588 agreement passing times of the claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910485851.2A CN110290580B (en) | 2019-06-05 | 2019-06-05 | Method and system for transmitting time based on 1588 protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910485851.2A CN110290580B (en) | 2019-06-05 | 2019-06-05 | Method and system for transmitting time based on 1588 protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110290580A true CN110290580A (en) | 2019-09-27 |
CN110290580B CN110290580B (en) | 2021-08-20 |
Family
ID=68003367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910485851.2A Active CN110290580B (en) | 2019-06-05 | 2019-06-05 | Method and system for transmitting time based on 1588 protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110290580B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101616163A (en) * | 2009-07-27 | 2009-12-30 | 中兴通讯股份有限公司 | Precise time transfer protocol message processing method and device |
US20110051754A1 (en) * | 2009-08-25 | 2011-03-03 | Richard James Lansdowne | Measurement and adjustment of real-time values according to residence time in networking equipment without access to real time |
CN103974408A (en) * | 2014-04-01 | 2014-08-06 | 宽兆科技(深圳)有限公司 | Mesh net based OFDMA (orthogonal frequency division multiple access) system and control method |
US20150358096A1 (en) * | 2013-01-14 | 2015-12-10 | Yu Mike Chi | Synchronizing wireless data acquisition of physiological information |
CN106130681A (en) * | 2016-07-25 | 2016-11-16 | 广州市国飞信息科技有限公司 | High-accuracy clock synchronization method, module, equipment and system for time dissemination system |
CN107105498A (en) * | 2016-02-22 | 2017-08-29 | 华为技术有限公司 | Localization method and device |
CN107528654A (en) * | 2016-06-21 | 2017-12-29 | 中兴通讯股份有限公司 | It is a kind of based on 1588 method for synchronizing time and device |
CN109218007A (en) * | 2017-07-03 | 2019-01-15 | 中兴通讯股份有限公司 | Routing resource, equipment and storage medium |
CN109257132A (en) * | 2018-09-04 | 2019-01-22 | 武汉乐庭软件技术有限公司 | A kind of multi-sensor data cognitive method and system based on time synchronization |
CN109699071A (en) * | 2019-03-18 | 2019-04-30 | 辰芯科技有限公司 | Method for synchronizing time, system and the readable storage medium storing program for executing of self-organized network communication system |
-
2019
- 2019-06-05 CN CN201910485851.2A patent/CN110290580B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101616163A (en) * | 2009-07-27 | 2009-12-30 | 中兴通讯股份有限公司 | Precise time transfer protocol message processing method and device |
US20110051754A1 (en) * | 2009-08-25 | 2011-03-03 | Richard James Lansdowne | Measurement and adjustment of real-time values according to residence time in networking equipment without access to real time |
US20150358096A1 (en) * | 2013-01-14 | 2015-12-10 | Yu Mike Chi | Synchronizing wireless data acquisition of physiological information |
CN103974408A (en) * | 2014-04-01 | 2014-08-06 | 宽兆科技(深圳)有限公司 | Mesh net based OFDMA (orthogonal frequency division multiple access) system and control method |
CN107105498A (en) * | 2016-02-22 | 2017-08-29 | 华为技术有限公司 | Localization method and device |
CN107528654A (en) * | 2016-06-21 | 2017-12-29 | 中兴通讯股份有限公司 | It is a kind of based on 1588 method for synchronizing time and device |
CN106130681A (en) * | 2016-07-25 | 2016-11-16 | 广州市国飞信息科技有限公司 | High-accuracy clock synchronization method, module, equipment and system for time dissemination system |
CN109218007A (en) * | 2017-07-03 | 2019-01-15 | 中兴通讯股份有限公司 | Routing resource, equipment and storage medium |
CN109257132A (en) * | 2018-09-04 | 2019-01-22 | 武汉乐庭软件技术有限公司 | A kind of multi-sensor data cognitive method and system based on time synchronization |
CN109699071A (en) * | 2019-03-18 | 2019-04-30 | 辰芯科技有限公司 | Method for synchronizing time, system and the readable storage medium storing program for executing of self-organized network communication system |
Non-Patent Citations (2)
Title |
---|
王照伟等: "基于IEEE 1588协议的多跳无线网络时间同步方法", 《中国科学:信息科学》 * |
陈大峰: ""基于IEEE1588的工业以太网实时同步技术的研究与开发"", 《中国优秀硕士学位论文全文数据库》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110290580B (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101447861B (en) | IEEE 1588 time synchronization system and implementation method thereof | |
WO2017107261A1 (en) | Time synchronization error compensation method for ptp-based multi-hop wireless backhaul networks | |
CN110113127A (en) | A kind of method and its system based on 1588 agreement passing times | |
CN103929293B (en) | Asymmetrically-delayed time synchronization method and system | |
US20100189206A1 (en) | Precise Clock Synchronization | |
WO2018006686A1 (en) | Method, apparatus and device for optimizing time synchronization between communication network devices | |
CN103138887B (en) | A kind of processing method and system of 1588 event message | |
CN111193997B (en) | Time difference of arrival (TDOA) measuring and calibrating method for UWB positioning system | |
JP5518191B2 (en) | Method and system for optical transmission network carrying time synchronization protocol | |
CN101582733A (en) | Method and system for realizing high precision time synchronization among SDH equipment | |
CN105846941B (en) | Clock transparent transmission device and method based on 1588 standards of IEEE | |
CN110100408B (en) | Method for interacting time synchronization message and network device | |
CN102006157A (en) | Time synchronization method and system | |
CN107809295B (en) | A kind of cross-platform time synchronism apparatus and method | |
CN106506107B (en) | A kind of ntp server time service implementation method based on hardware timestamping | |
US20220007321A1 (en) | Network Entities and Methods for a Wireless Network System for Determining Time Information | |
CN106357362A (en) | Time synchronization method and device and PTP system | |
WO2016058347A1 (en) | Method and apparatus for implementing time and clock synchronization | |
CN103647614A (en) | Method for reliably improving time synchronization precision based on IEEE1588 protocol | |
CN109921871A (en) | A kind of method for synchronizing time, device and network system | |
CN105939243B (en) | The processing system of multiport PTP message | |
CN107947848B (en) | Satellite communication ground synchronous simulation system based on IEEE1588v2 and application method | |
CN110290580A (en) | A kind of method and its system based on 1588 agreement passing times | |
CN102571253A (en) | Method and equipment for implementing precise time synchronization | |
CN108683470B (en) | Circuit and method for acquiring and updating transparent clock |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |