CN103236894A - Clock synchronization method and device in seamless redundant network - Google Patents

Clock synchronization method and device in seamless redundant network Download PDF

Info

Publication number
CN103236894A
CN103236894A CN2013101143351A CN201310114335A CN103236894A CN 103236894 A CN103236894 A CN 103236894A CN 2013101143351 A CN2013101143351 A CN 2013101143351A CN 201310114335 A CN201310114335 A CN 201310114335A CN 103236894 A CN103236894 A CN 103236894A
Authority
CN
China
Prior art keywords
ptp
adjusted value
seamless
value set
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013101143351A
Other languages
Chinese (zh)
Other versions
CN103236894B (en
Inventor
肖智中
薛百华
马化一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201310114335.1A priority Critical patent/CN103236894B/en
Priority to PCT/CN2013/075089 priority patent/WO2014161213A1/en
Publication of CN103236894A publication Critical patent/CN103236894A/en
Application granted granted Critical
Publication of CN103236894B publication Critical patent/CN103236894B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses clock synchronization method and device in a seamless redundant network. The method and the device are used for solving the problem of low synchronization accuracy of master and slave node clocks in the prior art. The method includes: respectively receiving seamless redundant messages by a slave clock node in the seamless redundant network through different seamless redundant ports of the slave clock node; determining whether the seamless redundant messages include PTP (picture transfer protocol) message information or not according to message identifiers carried by received seamless redundant messages; if yes, storing the seamless redundant messages containing the PTP message information; analyzing stored seamless redundant messages respectively received through the different seamless redundant ports, and obtaining PTP adjusting value sets corresponding to the different seamless redundant ports according to analyzed PTP message information; and choosing one PTP adjusting value set from the obtained PTP adjusting value sets to adjust a local clock of the slave clock node.

Description

Clock synchronizing method and device in a kind of seamless redundant network
Technical field
The present invention relates to seamless redundant network technical field, relate in particular to clock synchronizing method and device in a kind of seamless redundant network.
Background technology
In the IEC62439-3 standard, increased about high availability seamless from rotating ring (High Availability Seamless Automation Ring, HSR) protocol contents of network, the HSR network of this protocol contents defined (claiming seamless redundant network again) is made of the node of a plurality of dual link, each node has two looped network access interface (abbreviation port), wherein, when source node sends message to destination node, can in message, add the HSR label earlier and be used for identifying duplicate message, send this message simultaneously to two ports of destination node respectively by two port then.Destination node can respectively receive a message from different ports respectively in the different time, and two messages of this that receives are identical messages respectively, thereby destination node can keep first message that receives, and abandons second message that receives.
And PTP(Precision Timing Protocol, precision clock is synchronous) normally selected node is as master clock synchronously for agreement realization clock, and other nodes conducts are from clock.The master clock node periodically sends to the master clock time from clock node by message, after receiving message from clock node, be that benchmark calculates the PTP adjusted value with the master clock time, and adjust according to the PTP adjusted value that calculates, to reach the purpose synchronous with the master clock node.
In the prior art, in order to realize that in seamless redundant network principal and subordinate's clock is synchronous, normally realize according to following process:
As shown in Figure 1, be the connection diagram of node A and Node B in the seamless redundant network, wherein, node A is master clock, and Node B is from clock, and the port A1 of node A is connected with the port B1 of Node B, and the port A2 of node A is connected with the port B2 of Node B.Node A is by the port B1 transmission PTP protocol massages AB1 of port A1 to Node B, and the port A2 of node A is to the port B2 transmission PTP protocol massages AB2 of Node B.Usually because port A1 is different with the length of cable between port A2 and the port B2 with the length of cable between the port B1, can directly cause Node B to receive PTP protocol massages AB1 and AB2 in the different time respectively from port B1 and port B2.Under this scene, the processing policy of taking usually is the PTP protocol massages of receiving after abandoning, and carries out synchronously according to the PTP protocol massages of receiving earlier.But because the influence of external factor, the PTP protocol massages that Node B is received can be shaken, and the degree of jitter of the different PTP protocol massages of successively receiving also can be different, if the degree of jitter of the PTP protocol massages of receiving behind the degree of jitter of the PTP protocol massages of receiving the earlier ratio is big, carry out when synchronous according to the PTP protocol massages of receiving earlier so, will make adjusted value and the actual value that should adjust determined according to the PTP protocol massages of receiving earlier differ bigger, and cause Node B not high based on the clock synchronization accuracy of node A.
Summary of the invention
The embodiment of the invention provides clock synchronizing method and device in a kind of seamless redundant network, in order to solve the low problem of main and subordinate node clock synchronization accuracy in the prior art.
The embodiment of the invention is by the following technical solutions:
Clock synchronizing method in a kind of seamless redundant network comprises:
Receive seamless redundant message from clock node respectively by its different seamless redundancy port in the seamless redundant network;
According to the message identification that the seamless redundant message that receives carries, determine whether seamless redundant message comprises the PTP message information; When definite result when being, the seamless redundant message of the described PTP of comprising message information is preserved; And
The seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through is resolved, and according to the PTP message information that parses, obtain gathering corresponding to the PTP adjusted value of different seamless redundancy ports;
From the PTP adjusted value set that obtains, choose a PTP adjusted value set and adjust described local clock from clock node.
Clock synchronization apparatus in a kind of seamless redundant network comprises:
Receiving element is used for receiving seamless redundant message respectively by its different seamless redundancy port;
Determining unit, the message identification that the seamless redundant message that is used for receiving according to receiving element carries determines whether seamless redundant message comprises the PTP message information;
Preserve the unit, be used for when definite result of determining unit when being, the seamless redundant message of the described PTP of comprising message information is preserved;
Resolution unit is used for the seamless redundant message that the seamless redundancy port of difference institute receives respectively that passes through of preserving that the unit preserves is resolved, and according to the PTP message information that parses, obtains gathering corresponding to the PTP adjusted value of different seamless redundancy ports;
Adjustment unit is used for choosing a PTP adjusted value set from the PTP adjusted value set that resolution unit obtains and adjusts described local clock from clock node.
The beneficial effect of the embodiment of the invention is as follows:
The embodiment of the invention is by above-mentioned scheme, the seamless redundant message that comprises the PTP message information that different seamless redundancy ports can be received is respectively preserved, and by the seamless redundant message of preserving is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy ports, and then choose a PTP adjusted value set this local clock from clock node is adjusted, rather than the seamless redundant message of receiving after directly abandoning that comprises the PTP message information and adjusting according to the seamless redundant message of receiving earlier that comprises the PTP message information, therefore effectively guaranteed and to have realized the local clock from clock node is adjusted according to one group of less seamless redundant message of degree of jitter, and then improved the precision that principal and subordinate's clock is adjusted synchronously.
Description of drawings
Fig. 1 is the connection diagram of node A and Node B in the seamless redundant network;
The main flow chart of clock synchronizing method in a kind of seamless redundant network that provides for the embodiment of the invention one is provided Fig. 2;
The GMC in actual applications that Fig. 3 provides for the embodiment of the invention two and connection diagram from clock node;
The particular flow sheet of clock synchronizing method in the seamless redundant network in actual applications that provides for the embodiment of the invention two is provided Fig. 4;
The interval distribution map of adjusted value that Fig. 5 provides for the embodiment of the invention two;
The distribution figure that Fig. 6 gathers for two adjusted values that the embodiment of the invention two provides;
The structural representation of clock synchronization apparatus in a kind of seamless redundant network that Fig. 7 provides for the embodiment of the invention three;
The structural representation of clock system in a kind of seamless redundant network that Fig. 8 provides for the embodiment of the invention four.
Embodiment
In order to solve the low problem of main and subordinate node clock synchronization accuracy in the prior art, the embodiment of the invention provides the synchronous scheme of clock in a kind of seamless redundant network.The seamless redundant message that comprises the PTP message information that this programme can receive different seamless redundancy ports is respectively preserved, and by the seamless redundant message of preserving is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy ports, and then choose a PTP adjusted value set this local clock from clock node is adjusted, rather than the seamless redundant message of receiving after directly abandoning that comprises the PTP message information and adjusting according to the seamless redundant message of receiving earlier that comprises the PTP message information, therefore effectively guaranteed and to have realized the local clock from clock node is adjusted according to one group of less seamless redundant message of degree of jitter, and then improved the precision that principal and subordinate's clock is adjusted synchronously.
Be explained in detail to the main realization principle of embodiment of the invention technical scheme, embodiment and to the beneficial effect that should be able to reach below in conjunction with each accompanying drawing.
Embodiment one:
As shown in Figure 2, the main flow chart of clock synchronizing method in a kind of seamless redundant network that provides for the embodiment of the invention one, this method may further comprise the steps:
Step 21 receives seamless redundant message from clock node respectively by its different seamless redundancy port in the seamless redundant network;
Wherein, the master clock node at one time can be by its different seamless redundancy port respectively to sending identical seamless redundant message from the different seamless redundancy port of clock node.Because the influence of extraneous factor, the same seamless redundant message at the master clock node sends respectively can receive from different seamless redundancy ports respectively in the different time from clock node.
Step 22 according to the message identification that the seamless redundant message that receives carries, determines whether seamless redundant message comprises the PTP message information;
Step 23, when definite result when being, the seamless redundant message that will comprise the PTP message information is preserved;
Wherein, in definite result for not the time, when the seamless redundant message that namely receives does not comprise the PTP message information, judge whether this stores the identical seamless redundant message of data message that comprises with the seamless redundant message that receives from clock node, if judged result is for being that then the seamless redundant message of this that will receive abandons.
Step 24 is resolved the seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through, and according to the PTP message information that parses, is obtained gathering corresponding to the PTP adjusted value of different seamless redundancy ports;
Optionally, can carry out at least 1 collection respectively to the seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through in this step, and the seamless redundant message that collects resolved, and then the PTP message information by parsing, obtain the PTP adjusted value set corresponding to different seamless redundancy ports.
Step 25 is chosen a PTP adjusted value set adjustment from the local clock of clock node from the PTP adjusted value set that obtains.
Optionally, can gather the distribution information of the PTP adjusted value that is comprised respectively in this step according to each the PTP adjusted value that obtains, from the PTP adjusted value set that obtains, choose a PTP adjusted value set;
Wherein, can specifically comprise: according to the adjusted value interval that sets in advance, determine the affiliated adjusted value interval of PTP adjusted value that each PTP adjusted value set is comprised respectively, carry out at each PTP adjusted value set then: the adjusted value interval under the PTP adjusted value that this PTP adjusted value set comprises, determine the maximum candidate's adjusted value interval of PTP adjusted value that comprises, at last, from candidate's adjusted value interval of determining, choose an interval corresponding PTP adjusted value set of candidate's adjusted value with smallest limit.
Further, choose the set of PTP adjusted value after, the mean value of the PTP adjusted value that can comprise according to the PTP adjusted value set of choosing is adjusted this from the local clock of clock node.
Need to prove, according to the PTP adjusted value chosen set adjust from the local clock of clock node can but be not limited to above-mentioned this processing mode.Adjust such as taking following this mode: adjust this from the local clock of clock node according to any one the PTP adjusted value in the PTP adjusted value set of choosing.This mode of mean value that why adopts the PTP adjusted value of choosing to gather the PTP adjusted value that comprises in the embodiment of the invention is adjusted, and is in order further to improve clock synchronization accuracy.Because may there be the situation of unexpected shake in the PTP adjusted value that comprises in the PTP adjusted value of the choosing set, bigger such as saltus step scope between PTP adjusted value and the PTP adjusted value, if use certain the PTP adjusted value in this PTP adjusted value set to adjust, may make this synchronization accuracy from clock node lower.
The seamless redundant message that comprises the PTP message information that the embodiment of the invention can receive different seamless redundancy ports is respectively preserved, and by the seamless redundant message of preserving is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy ports, and then choose a PTP adjusted value set this local clock from clock node is adjusted, rather than the seamless redundant message of receiving after directly abandoning that comprises the PTP message information and adjusting according to the seamless redundant message of receiving earlier that comprises the PTP message information, therefore effectively guaranteed and to have realized the local clock from clock node is adjusted according to one group of less seamless redundant message of degree of jitter, and then improved the precision that principal and subordinate's clock is adjusted synchronously.
Embodiment two:
As shown in Figure 3, the Clock of GMC(Grandmaster in actual applications that provides for the embodiment of the invention two, highest clock) with connection diagram from clock node, wherein, seamless redundancy port (hereinafter to be referred as the port) A1 of GMC is connected with the port B1 from clock node, and the port A2 of GMC is connected with port B2 from clock node.The basic thought of this scheme is: will preserve by a plurality of seamless redundant message that comprises the PTP message information that port B1 and port B2 receive respectively from clock node, and a plurality of seamless redundant message of preserving resolved, obtain corresponding respectively to the PTP adjusted value set of port B1 and port B2, and according to the distribution information that two PTP adjusted values that obtain are gathered, obtain an actual PTP adjusted value this local clock from clock node is adjusted.
As shown in Figure 4, the particular flow sheet of clock synchronizing method in the seamless redundant network in actual applications that provides for the embodiment of the invention two, this method specifically comprises:
Step 41 receives seamless redundant message from clock node respectively by port B1 and port B2 in the seamless redundant network;
Step 42 according to the entrained message identification of seamless redundant message that receives, determines respectively whether it comprises the PTP message information, when being defined as being, execution in step 43, in definite result when denying, execution in step 47;
According to the message identification of the seamless redundant message of stipulating in the IEEE1588 standard that comprises the PTP message information, we can judge that if the message identification that carries in the seamless redundant message that receives is 0x88F7, then this seamless redundant message comprises the PTP message information.
Step 43 is preserved the seamless redundant message that comprises the PTP message information that receives;
Step 44, the seamless redundant message of preserving that port B1 and port B2 institute receives respectively that passes through is carried out at least 1 collection respectively, and the seamless redundant message that collects resolved, and according to the PTP message information that parses, obtain corresponding respectively to the PTP adjusted value set of port B1 and port B2;
In the embodiment of the invention, the PTP adjusted value that obtains after the parsing that port B1 can be received stores in the data field corresponding with port B1, and the PTP adjusted value that obtains after the seamless redundant message that port B2 receives resolved stores in the data field corresponding with port B2, and the PTP adjusted value of storing in these two data fields constitutes the PTP adjusted value set corresponding with port B1 and the PTP adjusted value set corresponding with port B2 respectively.
Step 45, the distribution information of the PTP adjusted value that is comprised respectively according to each the PTP adjusted value set that obtains is chosen a PTP adjusted value and is gathered from the PTP adjusted value set that obtains;
Concrete, as shown in Figure 5, the interval distribution map of adjusted value that provides for the embodiment of the invention.Wherein, according to the adjusted value interval that sets in advance, PTP adjusted value in the data field that will be corresponding with port B1 and correspond to respectively in each adjusted value interval with PTP adjusted value in the corresponding data field of port B2, and determine respectively at port B1 to comprise the maximum candidate's adjusted value of PTP adjusted value interval and comprise the maximum candidate's adjusted value interval of PTP adjusted value at port B2, so, in the above-mentioned candidate's adjusted value interval of determining at port B1 and port B2 respectively, we just think that the PTP adjusted value that comprises in the interval corresponding PTP adjusted value set of the candidate's adjusted value with smallest limit is relatively stable, and the jitter range between PTP adjusted value and the PTP adjusted value is less.Wherein, the adjusted value interval that sets in advance can set up on their own according to user's demand, does not do concrete restriction at this.
As shown in Figure 6, be the distribution figure of two PTP adjusted value set, wherein, abscissa is for adjusting number of times, ordinate is the PTP adjusted value, each data point is represented a PTP adjusted value obtaining according to a seamless redundant message receiving, one group of PTP adjusted value D1 that hollow data point obtains for the one group of seamless redundant message that receives according to port B1, one group of PTP adjusted value D2 that solid data point obtains for the one group of seamless redundant message that receives according to port B2.Can find out more intuitively that from Fig. 6 the jitter range of D1 is bigger, and that the jitter range of D2 is compared D1 is less, D2 is comparatively stable in this explanation, and therefore choosing D2 adjusts this from the local clock of clock node.
Step 46, the mean value of the PTP adjusted value that set comprises according to the PTP adjusted value chosen is adjusted this from the local clock of clock node.
Step 47, the seamless redundant message that comprises identical data information that receives respectively for different port is preserved the seamless redundant message that receives earlier, with after the seamless redundant message that receives abandon.
Concrete, this step can specifically comprise: judge whether to store the identical seamless redundant message of data message that comprises with the seamless redundant message that receives, and in judged result when being, the seamless redundant message that receives is abandoned.
The seamless redundant message that comprises the PTP message information that the embodiment of the invention can receive different seamless redundancy ports is respectively preserved, and by the seamless redundant message of preserving is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy ports, choose a PTP adjusted value set according to the distribution information of the PTP adjusted value that comprises in each the PTP adjusted value set that obtains again, this local clock from clock node is adjusted, rather than the seamless redundant message of receiving after directly abandoning that comprises the PTP message information and adjusting according to the seamless redundant message of receiving earlier that comprises the PTP message information, therefore effectively guaranteed and to have realized the local clock from clock node is adjusted according to one group of less seamless redundant message of degree of jitter, and then improved the precision that principal and subordinate's clock is adjusted synchronously.
In addition, mean value according to the PTP adjusted value that comprises in the PTP adjusted value set of choosing carries out the adjustment of local clock, further prevented from existing in one group of less seamless redundant message of the degree of jitter chosen the situation of shake suddenly, make the adjusted value of the more approaching reality of average adjusted value determine, further improved the synchronous regulation precision of principal and subordinate's clock.
Embodiment three:
Based on clock synchronizing method in the above-mentioned seamless redundant network, the embodiment of the invention also provides clock synchronization apparatus in a kind of seamless redundant network, as shown in Figure 7, comprises following functional module:
Receiving element 71 is used for receiving seamless redundant message respectively by its different seamless redundancy port;
Determining unit 72, the message identification that the seamless redundant message that is used for receiving according to receiving element 71 carries determines whether seamless redundant message comprises the PTP message information;
Preserve unit 73, be used for when definite result of determining unit 72 when being, the seamless redundant message that will comprise the PTP message information is preserved;
Resolution unit 74 is used for the seamless redundant message that the seamless redundancy port of difference institute receives respectively that passes through of preserving that unit 73 preserves is resolved, and according to the PTP message information that parses, obtains gathering corresponding to the PTP adjusted value of different seamless redundancy ports;
Adjustment unit 75 is used for choosing a PTP adjusted value set adjustment from the local clock of clock node from the PTP adjusted value set that resolution unit 74 obtains.
Optionally, this device can also comprise:
Judging unit 76 is used in definite result of determining unit 72 judging whether to store the identical seamless redundant message of data message that comprises with the seamless redundant message that receives for not the time;
Discarding unit 77 is used in the judged result of judging unit 76 the seamless redundant message that receives being abandoned when being.
Optionally, resolution unit 74 can specifically be used for:
The seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through is carried out at least 1 collection respectively, and the seamless redundant message that collects is resolved.
Optionally, adjustment unit 75 can specifically be used for:
Choose a PTP adjusted value set the PTP adjusted value set that obtains from resolution unit 74, and the mean value of the PTP adjusted value that comprises according to the PTP adjusted value set of choosing, the local clock from clock node adjusted.
Further, this adjustment unit 75 can also specifically be used for:
The distribution information of the PTP adjusted value that each the PTP adjusted value set that obtains according to resolution unit 74 is comprised is respectively chosen a PTP adjusted value set from the PTP adjusted value set that obtains.
Concrete, can comprise:
First determination module is used for according to the adjusted value interval that sets in advance, and determines the affiliated adjusted value interval of PTP adjusted value that each PTP adjusted value set is comprised respectively;
Second determination module is used for carrying out at each PTP adjusted value set: the adjusted value interval under the PTP adjusted value that comprises from this PTP adjusted value set, determine the maximum candidate's adjusted value interval of PTP adjusted value that comprises;
Choose module, be used for choosing the interval corresponding PTP adjusted value set of the candidate's adjusted value with smallest limit.
Embodiment four:
Based on clock synchronizing method and device in the above-mentioned seamless redundant network, the embodiment of the invention also provides clock system in a kind of seamless redundant network, and as shown in Figure 8, it specifically comprises: master clock node 81 and from clock node 82; Wherein,
Master clock node 81 is used for sending seamless redundant message respectively to the different seamless redundancy port from clock node 82;
From clock node 82, be used for receiving the seamless redundant message that master clock node 71 sends respectively by its different seamless redundancy port; According to the message identification that the seamless redundant message that receives carries, determine whether seamless redundant message comprises the PTP message information; When definite result when being, the seamless redundant message that will comprise the PTP message information is preserved; And the seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through resolved, and according to the PTP message information that parses, obtain gathering corresponding to the PTP adjusted value of different seamless redundancy ports; From the PTP adjusted value set that obtains, choose a PTP adjusted value set adjustment from the local clock of clock node 82.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or in conjunction with the form of the embodiment of software and hardware aspect.And the present invention can adopt the form of the computer program of implementing in one or more computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) that wherein include computer usable program code.
The present invention is that reference is described according to flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device, make and carry out the sequence of operations step producing computer implemented processing at computer or other programmable devices, thereby be provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame in the instruction that computer or other programmable devices are carried out.
Although described the preferred embodiments of the present invention, in a single day those skilled in the art get the basic creative concept of cicada, then can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. clock synchronizing method in the seamless redundant network is characterized in that, comprising:
Receive seamless redundant message from clock node respectively by its different seamless redundancy port in the seamless redundant network;
According to the message identification that the seamless redundant message that receives carries, determine whether seamless redundant message comprises the PTP message information; When definite result when being, the seamless redundant message of the described PTP of comprising message information is preserved; And
The seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through is resolved, and according to the PTP message information that parses, obtain gathering corresponding to the PTP adjusted value of different seamless redundancy ports;
From the PTP adjusted value set that obtains, choose a PTP adjusted value set and adjust described local clock from clock node.
2. the method for claim 1 is characterized in that, to preserve pass through the seamless redundancy port of difference institute respectively the seamless redundant message of reception resolve, specifically comprise:
The seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through is carried out at least 1 collection respectively, and the seamless redundant message that collects is resolved.
3. the method for claim 1 is characterized in that, chooses a PTP adjusted value set and adjust described local clock from clock node from the PTP adjusted value set that obtains, and specifically comprises:
From the set of the PTP adjusted value that obtains, choose a PTP adjusted value set, and the mean value of the PTP adjusted value that comprises according to the PTP adjusted value set of choosing, described local clock from clock node adjusted.
4. as claim 1,2 or 3 described methods, it is characterized in that, from the PTP adjusted value set that obtains, choose a PTP adjusted value set, specifically comprise:
The distribution information of the PTP adjusted value that is comprised respectively according to each the PTP adjusted value set that obtains is chosen a PTP adjusted value and is gathered from the PTP adjusted value set that obtains.
5. method as claimed in claim 4 is characterized in that, chooses a PTP adjusted value set according to described distribution information, specifically comprises:
According to the adjusted value interval that sets in advance, determine the affiliated adjusted value interval of PTP adjusted value that each PTP adjusted value set is comprised respectively;
Carry out at each PTP adjusted value set: the adjusted value interval under the PTP adjusted value that this PTP adjusted value set comprises, determine the maximum candidate's adjusted value interval of PTP adjusted value that comprises;
Choose the interval corresponding PTP adjusted value set of the candidate's adjusted value with smallest limit.
6. clock synchronization apparatus in the seamless redundant network is characterized in that, comprising:
Receiving element is used for receiving seamless redundant message respectively by its different seamless redundancy port;
Determining unit, the message identification that the seamless redundant message that is used for receiving according to receiving element carries determines whether seamless redundant message comprises the PTP message information;
Preserve the unit, be used for when definite result of determining unit when being, the seamless redundant message of the described PTP of comprising message information is preserved;
Resolution unit is used for the seamless redundant message that the seamless redundancy port of difference institute receives respectively that passes through of preserving that the unit preserves is resolved, and according to the PTP message information that parses, obtains gathering corresponding to the PTP adjusted value of different seamless redundancy ports;
Adjustment unit is used for choosing a PTP adjusted value set from the PTP adjusted value set that resolution unit obtains and adjusts described local clock from clock node.
7. device as claimed in claim 6 is characterized in that, described resolution unit specifically is used for:
The seamless redundant message of preserving that the seamless redundancy port of difference institute receives respectively that passes through is carried out at least 1 collection respectively, and the seamless redundant message that collects is resolved.
8. device as claimed in claim 6 is characterized in that, described adjustment unit specifically is used for:
Choose a PTP adjusted value set the PTP adjusted value set that obtains from resolution unit, and the mean value of the PTP adjusted value that comprises according to the PTP adjusted value set of choosing, described local clock from clock node adjusted.
9. as claim 6,7 or 8 described devices, it is characterized in that described adjustment unit specifically is used for:
The distribution information of the PTP adjusted value that each the PTP adjusted value set that obtains according to resolution unit is comprised is respectively chosen a PTP adjusted value set from the PTP adjusted value set that obtains.
10. device as claimed in claim 9 is characterized in that, described adjustment unit specifically comprises:
First determination module is used for according to the adjusted value interval that sets in advance, and determines the affiliated adjusted value interval of PTP adjusted value that each PTP adjusted value set is comprised respectively;
Second determination module is used for carrying out at each PTP adjusted value set: the adjusted value interval under the PTP adjusted value that comprises from this PTP adjusted value set, determine the maximum candidate's adjusted value interval of PTP adjusted value that comprises;
Choose module, be used for choosing the interval corresponding PTP adjusted value set of the candidate's adjusted value with smallest limit.
CN201310114335.1A 2013-04-03 2013-04-03 Clock synchronizing method and device in a kind of seamless redundant network Active CN103236894B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310114335.1A CN103236894B (en) 2013-04-03 2013-04-03 Clock synchronizing method and device in a kind of seamless redundant network
PCT/CN2013/075089 WO2014161213A1 (en) 2013-04-03 2013-05-02 Clock synchronization method and apparatus in seamless redundant network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310114335.1A CN103236894B (en) 2013-04-03 2013-04-03 Clock synchronizing method and device in a kind of seamless redundant network

Publications (2)

Publication Number Publication Date
CN103236894A true CN103236894A (en) 2013-08-07
CN103236894B CN103236894B (en) 2016-08-03

Family

ID=48884914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310114335.1A Active CN103236894B (en) 2013-04-03 2013-04-03 Clock synchronizing method and device in a kind of seamless redundant network

Country Status (2)

Country Link
CN (1) CN103236894B (en)
WO (1) WO2014161213A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556221A (en) * 2020-04-23 2021-10-26 西门子股份公司 Method and device for timing in redundant network
CN114039695A (en) * 2021-12-24 2022-02-11 浙江中控技术股份有限公司 Time synchronization method of redundant network, redundant network system and equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049607B (en) * 2019-11-15 2021-06-11 中国第一汽车股份有限公司 Clock synchronization method, device and system for vehicle and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867469A (en) * 2010-06-10 2010-10-20 北京东土科技股份有限公司 Realization method of precision synchronous clock
CN102158335A (en) * 2011-04-21 2011-08-17 中兴通讯股份有限公司 Method and device for processing time synchronization port
CN102833061A (en) * 2012-08-31 2012-12-19 北京东土科技股份有限公司 Method for improving clock accuracy based on seamless redundancy ring network and node

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882990B (en) * 2010-06-24 2014-08-13 中兴通讯股份有限公司 Method for selecting master clock based on PTP (Picture Transfer Protocol) and link quality, slave clock and system
CN102983960A (en) * 2012-12-06 2013-03-20 盛科网络(苏州)有限公司 Method and device for implementing rapid synchronous switching in PTP (precision time protocol)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867469A (en) * 2010-06-10 2010-10-20 北京东土科技股份有限公司 Realization method of precision synchronous clock
CN102158335A (en) * 2011-04-21 2011-08-17 中兴通讯股份有限公司 Method and device for processing time synchronization port
CN102833061A (en) * 2012-08-31 2012-12-19 北京东土科技股份有限公司 Method for improving clock accuracy based on seamless redundancy ring network and node

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113556221A (en) * 2020-04-23 2021-10-26 西门子股份公司 Method and device for timing in redundant network
CN114039695A (en) * 2021-12-24 2022-02-11 浙江中控技术股份有限公司 Time synchronization method of redundant network, redundant network system and equipment

Also Published As

Publication number Publication date
CN103236894B (en) 2016-08-03
WO2014161213A1 (en) 2014-10-09

Similar Documents

Publication Publication Date Title
CN101547083B (en) Time synchronizer, time synchronization system and time synchronization method
US8914662B2 (en) Implementing transparent clock by correcting time information carried in data using residence time information
CN103916950B (en) Method for synchronizing time and system
US11522627B2 (en) TSN enabled controller
CN101977104A (en) IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
EP3163786B1 (en) Clock synchronization method and apparatus
EP2448168A1 (en) Method and system for bearing time synchronization protocol in optical transport network
JP6449430B2 (en) Time synchronization method, device and time synchronization server for network device
CN102833061A (en) Method for improving clock accuracy based on seamless redundancy ring network and node
CN109996325B (en) Clock synchronization system and method of wireless sensor network
CN104079364A (en) Distributed real-time test system clock synchronization method
CN102916758B (en) Ethernet time synchronism apparatus and the network equipment
CN106230541B (en) A kind of Site synch system and method for Industrial Ethernet
CN104144047A (en) Synchronization method of communication network system, intermediate node and slave node
CN103595494A (en) Centerless TDMA (Time Division Multiple Access) synchronization method suitable for Ad hoc Network
CN103236894A (en) Clock synchronization method and device in seamless redundant network
CN111740800A (en) Multi-precision clock synchronization method based on SDN framework 5G intelligent node
CN113424466B (en) Method and device for clock synchronization
CN108199822B (en) Bus synchronization method and device of EtherCAT-NCUC
CN102857315B (en) Master clock service is from the method and system of clock
CN115865246A (en) Time synchronization device, system and method
CN103227708A (en) Method and device for transmitting clock synchronization messages in E1 link
CN114024844B (en) Data scheduling method, data scheduling device and electronic equipment
CN214480655U (en) Embedded equipment compatible with definable deterministic communication Ethernet
CN102332997B (en) Network equipment and method for adjusting link capacity by using network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant