CN103236894B - Clock synchronizing method and device in a kind of seamless redundant network - Google Patents

Clock synchronizing method and device in a kind of seamless redundant network Download PDF

Info

Publication number
CN103236894B
CN103236894B CN201310114335.1A CN201310114335A CN103236894B CN 103236894 B CN103236894 B CN 103236894B CN 201310114335 A CN201310114335 A CN 201310114335A CN 103236894 B CN103236894 B CN 103236894B
Authority
CN
China
Prior art keywords
ptp
adjusted value
seamless
message
value set
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.)
Active
Application number
CN201310114335.1A
Other languages
Chinese (zh)
Other versions
CN103236894A (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

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 synchronizing method and device in a kind of seamless redundant network, in order to solve the problem that in prior art, main and subordinate node clock synchronization accuracy is low.Described method includes: receive seamless redundant message from clock node respectively by its different seamless redundancy port in seamless redundant network;The message identification carried according to the seamless redundant message received, determines whether seamless redundant message includes PTP message information;When determining result for being, the seamless redundant message of the described PTP of comprising message information is preserved;And the seamless redundant message received respectively by different seamless redundancy ports preserved is resolved, and according to the PTP message information parsed, obtain the PTP adjusted value set corresponding to different seamless redundancy ports;From the PTP adjusted value set obtained, choose a PTP adjusted value set adjust described from the local clock of 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, particularly relate to clock synchronizing method and device in a kind of seamless redundant network.
Background technology
IEC62439-3 standard add about high availability seamless automatic ring (HighAvailabilitySeamlessAutomationRing, HSR) protocol contents of network, the HSR network (also known as seamless redundant network) of this protocol contents defined is made up of the node of multiple dual link, each node has two looped network access interface (abbreviation port), wherein, when source node sends message to destination node, HSR label can be added the most in messages be used for identifying duplicate message, then send this message to the two of destination node ports respectively by two port simultaneously.Destination node can respectively receive a message from different ports respectively in the different time, and the two message being respectively received is identical message, thus destination node can retain first message received, and abandons second message received.
And PTP(PrecisionTimingProtocol, precision clock synchronizes) protocol realization clock synchronizes to be generally selected a node as master clock, and other nodes are as from clock.Master clock time is periodically sent to from clock node by message by master clock node, after clock node receives message, on the basis of master clock time, it is calculated PTP adjusted value, and is adjusted according to the PTP adjusted value calculated, to reach the purpose Tong Bu with master clock node.
In the prior art, in order to realize master-salve clock synchronization in seamless redundant network, it is common that realize as follows:
As it is shown in figure 1, be the connection diagram of seamless redundant network interior joint A and node B, wherein, node A is master clock, and node B is from clock, and the port B1 of the port A1 and node B of node A is connected, and the port B2 of the port A2 and node B of node A is connected.Node A sends PTP protocol message AB1 by port A1 to the port B1 of node B, and the port A2 of node A sends PTP protocol message AB2 to the port B2 of node B.It is typically due to the length of cable between port A1 from port B1 and the length of cable between port A2 and port B2 is different, node B can be directly resulted in and receive PTP protocol message AB1 and AB2 in the different time respectively from port B1 and port B2.Under this scene, be usually taken process strategy be abandon after the PTP protocol message that receives, and synchronize according to the PTP protocol message first received.But the impact due to external factor, the PTP protocol message that node B receives can be shaken, and the degree of jitter of the different PTP protocol messages successively received also can be different, if the degree of jitter of the PTP protocol message received after the degree of jitter ratio of the PTP protocol message first received is big, when so synchronizing according to the PTP protocol message first received, the adjusted value determined according to the PTP protocol message first received will be made to differ bigger with the actual value that should adjust, and cause node B clock synchronization accuracy based on node A the highest.
Summary of the invention
The embodiment of the present invention provides clock synchronizing method and device in a kind of seamless redundant network, in order to solve the problem that in prior art, main and subordinate node clock synchronization accuracy is low.
The embodiment of the present invention is by the following technical solutions:
Clock synchronizing method in a kind of seamless redundant network, including:
Seamless redundant network receives seamless redundant message from clock node respectively by its different seamless redundancy port;
The message identification carried according to the seamless redundant message received, determines whether seamless redundant message includes PTP message information;When determining result for being, the seamless redundant message of the described PTP of comprising message information is preserved;And
The seamless redundant message received respectively by different seamless redundancy ports preserved is resolved, and according to the PTP message information parsed, obtains the PTP adjusted value set corresponding to different seamless redundancy ports;
From the PTP adjusted value set obtained, choose a PTP adjusted value set adjust described from the local clock of clock node.
Clock synchronization apparatus in a kind of seamless redundant network, including:
Receive unit, for receiving seamless redundant message respectively by its different seamless redundancy port;
Determine unit, the message identification that the seamless redundant message for receiving according to reception unit carries, determine whether seamless redundant message includes PTP message information;
Storage unit, for when determining that the determination result of unit is for being, preserving the seamless redundant message of the described PTP of comprising message information;
Resolution unit, is resolved for the seamless redundant message received respectively by different seamless redundancy ports preserving storage unit, and according to the PTP message information parsed, obtains the PTP adjusted value set corresponding to different seamless redundancy ports;
Adjustment unit, chooses a PTP adjusted value set in the PTP adjusted value set that analytically unit obtains and adjusts described from the local clock of clock node.
Having the beneficial effect that of the embodiment of the present invention:
The embodiment of the present invention is by above-mentioned scheme, the seamless redundant message comprising PTP message information that different seamless redundancy ports is respectively received can be preserved, and by the seamless redundant message preserved is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy port, and then choose a PTP adjusted value set this is adjusted from the local clock of clock node, rather than the seamless redundant message comprising PTP message information that receives after directly abandoning and be adjusted according to the seamless redundant message comprising PTP message information first received, therefore it is effectively guaranteed and can realize being adjusted from the local clock of clock node according to one group of seamless redundant message that degree of jitter is less, and then improve the precision of master-salve clock synchronization control.
Accompanying drawing explanation
Fig. 1 is the connection diagram of seamless redundant network interior joint A and node B;
Fig. 2 is the broad flow diagram of clock synchronizing method in a kind of seamless redundant network that provides for the embodiment of the present invention one;
The GMC in actual applications that Fig. 3 provides for the embodiment of the present invention two and the connection diagram from clock node;
Fig. 4 is the particular flow sheet of clock synchronizing method in the most seamless redundant network that provides for the embodiment of the present invention two;
The adjusted value interval scattergram that Fig. 5 provides for the embodiment of the present invention two;
The distribution figure of two adjusted value set that Fig. 6 provides for the embodiment of the present invention two;
The structural representation of clock synchronization apparatus in a kind of seamless redundant network that Fig. 7 provides for the embodiment of the present invention three;
The structural representation of clock system in a kind of seamless redundant network that Fig. 8 provides for the embodiment of the present invention four.
Detailed description of the invention
In order to solve the problem that in prior art, main and subordinate node clock synchronization accuracy is low, embodiments provide the scheme that in a kind of seamless redundant network, clock synchronizes.The seamless redundant message comprising PTP message information that different seamless redundancy ports is respectively received can be preserved by this programme, and by the seamless redundant message preserved is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy port, and then choose a PTP adjusted value set this is adjusted from the local clock of clock node, rather than the seamless redundant message comprising PTP message information that receives after directly abandoning and be adjusted according to the seamless redundant message comprising PTP message information first received, therefore it is effectively guaranteed and can realize being adjusted from the local clock of clock node according to one group of seamless redundant message that degree of jitter is less, and then improve the precision of master-salve clock synchronization control.
Below in conjunction with each accompanying drawing, the main of embodiment of the present invention technical scheme is realized principle, detailed description of the invention and be explained in detail the beneficial effect that should be able to reach.
Embodiment one:
As in figure 2 it is shown, the broad flow diagram of clock synchronizing method in a kind of seamless redundant network provided for the embodiment of the present invention one, the method comprises the following steps:
Step 21, receives seamless redundant message from clock node by its different seamless redundancy port in seamless redundant network respectively;
Wherein, master clock node can send identical seamless redundant message to the seamless redundancy port different from clock node by its different seamless redundancy port respectively in the same time.Due to the impact of extraneous factor, the same seamless redundant message sent respectively for master clock node, can receive from different seamless redundancy ports respectively in the different time from clock node.
Step 22, the message identification carried according to the seamless redundant message received, determine whether seamless redundant message includes PTP message information;
Step 23, when determining result for being, preserves the seamless redundant message comprising PTP message information;
Wherein, when determining that result is no, when the seamless redundant message i.e. received does not comprises PTP message information, judge the seamless redundant message that whether this stores from clock node with the seamless redundant message received is comprised data message is identical, if the determination result is YES, then this seamless redundant message received is abandoned.
Step 24, is resolved the seamless redundant message received respectively by different seamless redundancy ports preserved, and according to the PTP message information parsed, obtains the PTP adjusted value set corresponding to different seamless redundancy ports;
Optionally, this step can carry out at least 1 collection respectively to the seamless redundant message received respectively by different seamless redundancy ports preserved, and the seamless redundant message collected is resolved, and then by the PTP message information parsed, obtain the PTP adjusted value set corresponding to different seamless redundancy ports.
Step 25, chooses a PTP adjusted value set from the PTP adjusted value set obtained and adjusts the local clock from clock node.
Optionally, the distribution information of the PTP adjusted value that can comprise respectively according to each PTP adjusted value set obtained in this step, from the PTP adjusted value set obtained, choose a PTP adjusted value set;
Wherein, can specifically include: interval according to the adjusted value pre-set, determine that adjusted value belonging to the PTP adjusted value that each PTP adjusted value set comprises respectively is interval, then perform for each PTP adjusted value set: from the adjusted value interval belonging to the PTP adjusted value that this PTP adjusted value set is comprised, determine candidate's adjusted value interval that the PTP adjusted value comprised is most, finally, from the candidate's adjusted value interval determined, choose a PTP adjusted value set corresponding to candidate's adjusted value interval with smallest limit.
Further, after choosing a PTP adjusted value set, the meansigma methods of the PTP adjusted value that can be comprised according to the PTP adjusted value set chosen, adjust this local clock from clock node.
It should be noted that can be, but not limited to above-mentioned this processing mode according to the PTP adjusted value set adjustment chosen from the local clock of clock node.Such as may also take on following this mode to be adjusted: adjust this local clock from clock node according to any one the PTP adjusted value in the PTP adjusted value set chosen.This mode of meansigma methods why using the PTP adjusted value that the PTP adjusted value set chosen comprised in the embodiment of the present invention is adjusted, and is to improve clock synchronization accuracy further.Owing to the PTP adjusted value included in the PTP adjusted value set chosen may exist the situation of shake suddenly, between such as PTP adjusted value and PTP adjusted value, saltus step scope is bigger, if using certain the PTP adjusted value in this PTP adjusted value set to be adjusted, this may be made relatively low from the synchronization accuracy ratio of clock node.
The seamless redundant message comprising PTP message information that different seamless redundancy ports is respectively received can be preserved by the embodiment of the present invention, and by the seamless redundant message preserved is resolved, obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy port, and then choose a PTP adjusted value set this is adjusted from the local clock of clock node, rather than the seamless redundant message comprising PTP message information that receives after directly abandoning and be adjusted according to the seamless redundant message comprising PTP message information first received, therefore it is effectively guaranteed and can realize being adjusted from the local clock of clock node according to one group of seamless redundant message that degree of jitter is less, and then improve the precision of master-salve clock synchronization control.
Embodiment two:
As shown in Figure 3, the GMC(GrandmasterClock in actual applications provided for the embodiment of the present invention two, highest clock) with the connection diagram from clock node, wherein, seamless redundancy port (hereinafter referred to as port) A1 of GMC is connected with the port B1 from clock node, and the port A2 of GMC is connected with the port B2 from clock node.The basic thought of the program is: preserved by the multiple seamless redundant message comprising PTP message information being respectively received by port B1 and port B2 from clock node, and the multiple seamless redundant message preserved is resolved, obtain corresponding respectively to the PTP adjusted value set of port B1 and port B2, and according to the distribution information of two the PTP adjusted value set obtained, obtain an actual PTP adjusted value and this is adjusted from the local clock of clock node.
As shown in Figure 4, for the particular flow sheet of clock synchronizing method in the seamless redundant network in actual applications that the embodiment of the present invention two provides, the method specifically includes:
Step 41, is respectively received seamless redundant message from clock node by port B1 and port B2 in seamless redundant network;
Step 42, according to the message identification entrained by the seamless redundant message received, determines if to comprise PTP message information respectively, when being determined as, performs step 43, when determining that result is no, performs step 47;
According to the message identification of the seamless redundant message comprising PTP message information of regulation in IEEE1588 standard, we may determine that, if the message identification carried in the seamless redundant message received is 0x88F7, then this seamless redundant message comprises PTP message information.
Step 43, preserves the seamless redundant message comprising PTP message information received;
Step 44, the seamless redundant message received respectively by port B1 and port B2 preserved is carried out at least 1 collection respectively, and the seamless redundant message collected is resolved, and according to the PTP message information parsed, obtain corresponding respectively to the PTP adjusted value set of port B1 and port B2;
In the embodiment of the present invention, the PTP adjusted value obtained after the parsing that can be received by port B1 stores in the data field corresponding with port B1, and the seamless redundant message that port B2 received resolve after the PTP adjusted value that obtains store in the data field corresponding with port B2, and in the two data field, the PTP adjusted value of storage respectively constitutes the PTP adjusted value set corresponding with port B1 and the PTP adjusted value set corresponding with port B2.
Step 45, according to the distribution information of the PTP adjusted value that each PTP adjusted value set obtained comprises respectively, chooses a PTP adjusted value set from the PTP adjusted value set obtained;
Concrete, as it is shown in figure 5, the adjusted value interval scattergram provided for the embodiment of the present invention.Wherein, interval according to the adjusted value pre-set, PTP adjusted value in PTP adjusted value in the data field corresponding with port B1 and the data field corresponding with port B2 is corresponded in each adjusted value interval respectively, and determine respectively for port B1 comprise the most candidate's adjusted value of PTP adjusted value interval and for port B2 to comprise the most candidate's adjusted value of PTP adjusted value interval, so, in the above-mentioned candidate's adjusted value interval being respectively directed to port B1 and port B2 determined, it is the most stable that we are considered as having the PTP adjusted value comprised in the PTP adjusted value set corresponding to candidate's adjusted value interval of smallest limit, jitter range between PTP adjusted value and PTP adjusted value is less.Wherein, the adjusted value interval pre-set can be not especially limited at this according to the demand sets itself of user.
As shown in Figure 6, it it is the distribution figure of two PTP adjusted value set, wherein, abscissa is for adjusting number of times, vertical coordinate is PTP adjusted value, each data point represents the PTP adjusted value obtained according to the seamless redundant message received, and hollow data point is one group of PTP adjusted value D1 that the one group of seamless redundant message received according to port B1 obtains, and solid data point is one group of PTP adjusted value D2 that the one group of seamless redundant message received according to port B2 obtains.Can find out the most intuitively from Fig. 6, the jitter range of D1 is relatively big, and the jitter range of D2 to compare D1 less, D2 is relatively stable in this explanation, therefore chooses D2 to adjust this local clock from clock node.
Step 46, according to the meansigma methods of the PTP adjusted value that the PTP adjusted value set chosen is comprised, adjusts this local clock from clock node.
Step 47, the seamless redundant message comprising identical data information that different port is respectively received, preserve the seamless redundant message that first receives, by after the seamless redundant message that receives abandon.
Concrete, this step can specifically include: judges whether the seamless redundant message that data message that the seamless redundant message storing with receiving is comprised is identical, and when judged result is for being, is abandoned by the seamless redundant message received.
nullThe seamless redundant message comprising PTP message information that different seamless redundancy ports is respectively received can be preserved by the embodiment of the present invention,And by the seamless redundant message preserved is resolved,Obtain corresponding respectively to the PTP adjusted value set of different seamless redundancy port,Distribution information further according to the PTP adjusted value comprised in each PTP adjusted value set obtained chooses a PTP adjusted value set,This is adjusted from the local clock of clock node,Rather than the seamless redundant message comprising PTP message information that receives after directly abandoning and be adjusted according to the seamless redundant message comprising PTP message information first received,Therefore it is effectively guaranteed and can realize being adjusted from the local clock of clock node according to one group of seamless redundant message that degree of jitter is less,And then improve the precision of master-salve clock synchronization control.
Additionally, meansigma methods according to the PTP adjusted value comprised in the PTP adjusted value set chosen carries out the adjustment of local clock, further prevent the situation that there is shake suddenly in one group of seamless redundant message that the degree of jitter chosen is less, make the average adjusted value determined closer to actual adjusted value, further increase the synchronous regulation precision of master-salve clock.
Embodiment three:
Based on clock synchronizing method in above-mentioned seamless redundant network, the embodiment of the present invention additionally provides clock synchronization apparatus in a kind of seamless redundant network, as it is shown in fig. 7, comprises following functions module:
Receive unit 71, for receiving seamless redundant message respectively by its different seamless redundancy port;
Determine unit 72, the message identification that the seamless redundant message for receiving according to reception unit 71 carries, determine whether seamless redundant message includes PTP message information;
Storage unit 73, for when determining that the determination result of unit 72 is for being, preserving the seamless redundant message comprising PTP message information;
Resolution unit 74, is resolved for the seamless redundant message received respectively by different seamless redundancy ports preserving storage unit 73, and according to the PTP message information parsed, obtains the PTP adjusted value set corresponding to different seamless redundancy ports;
Adjustment unit 75, chooses a PTP adjusted value set in the PTP adjusted value set that analytically unit 74 obtains and adjusts the local clock from clock node.
Optionally, this device can also include:
Judging unit 76, for when the determination result determining unit 72 is no, it may be judged whether storage has the seamless redundant message identical with the data message that the seamless redundant message received is comprised;
Discarding unit 77, for when the judged result of judging unit 76 is for being, abandons the seamless redundant message received.
Optionally, resolution unit 74 can be specifically for:
The seamless redundant message received respectively by different seamless redundancy ports preserved is carried out at least 1 collection respectively, and the seamless redundant message collected is resolved.
Optionally, adjustment unit 75 can be specifically for:
The PTP adjusted value set that analytically unit 74 obtains is chosen a PTP adjusted value set, and the meansigma methods of the PTP adjusted value comprised according to the PTP adjusted value set chosen, adjusts the local clock from clock node.
Further, this adjustment unit 75 can also be specifically for:
The distribution information of the PTP adjusted value that each PTP adjusted value set obtained according to resolution unit 74 comprises respectively, chooses a PTP adjusted value set from the PTP adjusted value set obtained.
Concrete, may include that
First determines module, for interval according to the adjusted value pre-set, determines that adjusted value belonging to the PTP adjusted value that each PTP adjusted value set comprises respectively is interval;
Second determines module, for performing for each PTP adjusted value set: from the adjusted value interval belonging to the PTP adjusted value that this PTP adjusted value set is comprised, determines candidate's adjusted value interval that the PTP adjusted value comprised is most;
Choose module, for choosing the PTP adjusted value set corresponding to candidate's adjusted value interval with smallest limit.
Embodiment four:
Based on clock synchronizing method and device in above-mentioned seamless redundant network, the embodiment of the present invention additionally provides clock system in a kind of seamless redundant network, and as shown in Figure 8, it specifically includes: master clock node 81 and from clock node 82;Wherein,
Master clock node 81, for sending seamless redundant message respectively to from the seamless redundancy port of difference of clock node 82;
From clock node 82, for receiving, by its different seamless redundancy port, the seamless redundant message that master clock node 71 sends respectively;The message identification carried according to the seamless redundant message received, determines whether seamless redundant message comprises PTP message information;When determining result for being, the seamless redundant message comprising PTP message information is preserved;And the seamless redundant message received respectively by different seamless redundancy ports preserved is resolved, and according to the PTP message information parsed, obtain the PTP adjusted value set corresponding to different seamless redundancy ports;From the PTP adjusted value set obtained, choose a PTP adjusted value set adjust the local clock from clock node 82.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program.Therefore, the form of the embodiment in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware.And, the present invention can use the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The present invention is to describe with reference to method, equipment (system) and the flow chart of computer program according to embodiments of the present invention and/or block diagram.It should be understood that can be by the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces the manufacture including command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to perform sequence of operations step on computer or other programmable devices to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides the step of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame for realization.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creative concept, then these embodiments can be made other change and amendment.So, claims are intended to be construed to include preferred embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (7)

1. clock synchronizing method in a seamless redundant network, it is characterised in that including:
Seamless redundant network receives seamless redundant message from clock node respectively by its different seamless redundancy port;
The message identification carried according to the seamless redundant message received, determines whether seamless redundant message includes PTP message information;When determining result for being, the seamless redundant message of the described PTP of including message information is preserved;And
The seamless redundant message received respectively by different seamless redundancy ports preserved is resolved, and according to the PTP message information parsed, obtains the PTP adjusted value set corresponding to different seamless redundancy ports;
From the PTP adjusted value set obtained, choose a PTP adjusted value set, and the meansigma methods of the PTP adjusted value comprised according to the PTP adjusted value set chosen, adjust described from the local clock of clock node;
Wherein, from the PTP adjusted value set obtained, choose a PTP adjusted value set, specifically include:
According to the distribution information of the PTP adjusted value that each PTP adjusted value set obtained comprises respectively, from the PTP adjusted value set obtained, choose a PTP adjusted value set;
Wherein, described choose a PTP adjusted value set according to described distribution information, specifically include:
Interval according to the adjusted value pre-set, determine that adjusted value belonging to the PTP adjusted value that each PTP adjusted value set comprises respectively is interval;
Perform for each PTP adjusted value set: from the adjusted value interval belonging to the PTP adjusted value that this PTP adjusted value set is comprised, determine candidate's adjusted value interval that the PTP adjusted value comprised is most;
Choose the PTP adjusted value set corresponding to candidate's adjusted value interval with smallest limit.
2. the method for claim 1, it is characterised in that the seamless redundant message received respectively by different seamless redundancy ports preserved is resolved, specifically includes:
The seamless redundant message received respectively by different seamless redundancy ports preserved is carried out at least 1 collection respectively, and the seamless redundant message collected is resolved.
3. the method for claim 1, it is characterised in that described method also includes:
When determining that result is no, it may be judged whether storage has the seamless redundant message identical with the data message that the seamless redundant message received is comprised;And
When judged result is for being, the seamless redundant message received is abandoned.
4. clock synchronization apparatus in a seamless redundant network, it is characterised in that including:
Receive unit, for receiving seamless redundant message respectively by its different seamless redundancy port;
Determine unit, the message identification that the seamless redundant message for receiving according to reception unit carries, determine whether seamless redundant message includes PTP message information;
Storage unit, for when determining that the determination result of unit is for being, preserving the seamless redundant message of the described PTP of including message information;
Resolution unit, is resolved for the seamless redundant message received respectively by different seamless redundancy ports preserving storage unit, and according to the PTP message information parsed, obtains the PTP adjusted value set corresponding to different seamless redundancy ports;
Adjustment unit, distribution information for the PTP adjusted value that each PTP adjusted value set obtained according to resolution unit comprises respectively, a PTP adjusted value set is chosen from the PTP adjusted value set obtained, and the meansigma methods of the PTP adjusted value comprised according to the PTP adjusted value set chosen, adjust the local clock from clock node;
Described adjustment unit, in the distribution information of the PTP adjusted value that each PTP adjusted value set for obtaining according to resolution unit comprises respectively, when choosing a PTP adjusted value set from the PTP adjusted value set obtained, specifically includes:
First determines module, for interval according to the adjusted value pre-set, determines that adjusted value belonging to the PTP adjusted value that each PTP adjusted value set comprises respectively is interval;
Second determines module, for performing for each PTP adjusted value set: from the adjusted value interval belonging to the PTP adjusted value that this PTP adjusted value set is comprised, determines candidate's adjusted value interval that the PTP adjusted value comprised is most;
Choose module, for choosing the PTP adjusted value set corresponding to candidate's adjusted value interval with smallest limit.
5. device as claimed in claim 4, it is characterised in that described resolution unit, specifically for:
The seamless redundant message received respectively by different seamless redundancy ports preserved is carried out at least 1 collection respectively, and the seamless redundant message collected is resolved.
6. device as claimed in claim 4, it is characterised in that described device also includes:
Judging unit, for when the determination result determining unit is no, it may be judged whether storage has the seamless redundant message identical with the data message that the seamless redundant message received is comprised;
Discarding unit, for when the judged result of judging unit is for being, abandons the seamless redundant message received.
7. clock system in a seamless redundant network, it is characterised in that including:
Master clock node, for sending seamless redundant message respectively to the different seamless redundancy port from clock node;
From clock node, it is used for:
The seamless redundant message that master clock node sends is received respectively by its different seamless redundancy port;The message identification carried according to the seamless redundant message received, determines whether seamless redundant message comprises PTP message information;When determining result for being, the seamless redundant message of the described PTP of comprising message information is preserved;And the seamless redundant message received respectively by different seamless redundancy ports preserved is resolved, and according to the PTP message information parsed, obtain the PTP adjusted value set corresponding to different seamless redundancy ports;
Interval according to the adjusted value pre-set, determine that adjusted value belonging to the PTP adjusted value that each PTP adjusted value set comprises respectively is interval;
Perform for each PTP adjusted value set: from the adjusted value interval belonging to the PTP adjusted value that this PTP adjusted value set is comprised, determine candidate's adjusted value interval that the PTP adjusted value comprised is most;
Choose the PTP adjusted value set corresponding to candidate's adjusted value interval with smallest limit;
And the meansigma methods of the PTP adjusted value comprised according to the PTP adjusted value set chosen, adjust described from the local clock of clock node.
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 CN103236894A (en) 2013-08-07
CN103236894B true 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 (1)

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

Families Citing this family (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

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 (1)

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

Also Published As

Publication number Publication date
CN103236894A (en) 2013-08-07
WO2014161213A1 (en) 2014-10-09

Similar Documents

Publication Publication Date Title
CN102833061B (en) Based on method and the node of the raising clock accuracy of seamless redundant looped network
US9577774B2 (en) Time synchronization method and system
CN101364863B (en) Time synchronizing method, apparatus and system for master, slave time clock side in synchronous network
US8036202B2 (en) Physical layer transceiver with integrated time synchronization
EP2448168A1 (en) Method and system for bearing time synchronization protocol in optical transport network
CN102215101B (en) A kind of clock synchronizing method and equipment
EP2738971A1 (en) Mehtod and device for clock synchronization
JP6555445B1 (en) Time synchronization system, time master, management master, and time synchronization method
EP3352392A1 (en) Time synchronization packet processing method and device
CN103236894B (en) Clock synchronizing method and device in a kind of seamless redundant network
CN104052565A (en) Time synchronization method and communication terminal
CN111629018B (en) Resource synchronization method, device, equipment and storage medium
CN110278047A (en) The method, device and equipment of synchronous for clock, setting Streaming Media frame pts value
CN102342051B (en) For coming the method for synchronised clock and relevant system and module by separating transmission first and second data via at least one time distribution protocol
CN101232508B (en) Equipment and method for speeding up poly spanning tree protocol network topological convergence
CN114826466A (en) Selection and switching method of redundant master clock
CN105991204A (en) Clock synchronization method and cluster routing system
CN108667543A (en) A kind of clock processing method, access network equipment and terminal device
WO2019134653A1 (en) Synchronization information transmission method, synchronization method, network node and storage medium
CN102904662A (en) Cross-domain clock synchronization method and system based on PTP (Precision Time Protocol)
CN102833140A (en) Computerized numerical control alliance bus system, coupler and communication method
CN111181678B (en) Time synchronization method applied to time-triggered FC network
CN105007134A (en) Method and device for restraining packet network PDV (Packet Delay Variation) noise and slave clock equipment
CN112910727B (en) TSN network packet loss rate calculating device, system and method
CN109274451B (en) Time acquisition method, device and 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