CN102263631B - Method and clock node for determining master clock within 1588 clock domain - Google Patents

Method and clock node for determining master clock within 1588 clock domain Download PDF

Info

Publication number
CN102263631B
CN102263631B CN 201110228319 CN201110228319A CN102263631B CN 102263631 B CN102263631 B CN 102263631B CN 201110228319 CN201110228319 CN 201110228319 CN 201110228319 A CN201110228319 A CN 201110228319A CN 102263631 B CN102263631 B CN 102263631B
Authority
CN
China
Prior art keywords
clock
advertisement message
quality
node
invalid
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.)
Expired - Fee Related
Application number
CN 201110228319
Other languages
Chinese (zh)
Other versions
CN102263631A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN 201110228319 priority Critical patent/CN102263631B/en
Publication of CN102263631A publication Critical patent/CN102263631A/en
Application granted granted Critical
Publication of CN102263631B publication Critical patent/CN102263631B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a method for determining a master clock within a 1588 clock domain. The method comprises: a local clock node receives and stores announcement messages sent from other clock nodes in the same domain, compares the clock quality carried by the received valid announcement messages with the clock quality of the local clock node when the preset time is up, and determines the optimal clock as a master clock; the local clock node continually stores the received invalid announcement messages; and when the invalid announcement messages are valid, the local clock node compares the clock quality carried by the valid announcement messages with the clock quality of the current master clock in the valid domain of the invalid announcement messages and then determines the master clock again. Based on the same inventive concept, the invention also provides a clock node. The method and clock node provided by the invention can be used for accurately determining the master clock, and have lower requirements on the configuration, thus the flexibility in use can be improved.

Description

Determine method and the clock node of master clock in a kind of 1588 clock zones
Technical field
The present invention relates to communication technical field, particularly determine method and the clock node of master clock in a kind of 1588 clock zones.
Background technology
The 1588th, by IEEE definition, full name is the precision interval clock synchronous protocol standard of network measure and control system, be called for short Precision Time Protocol (Precision Time Protocol, PTP).In the whole 1588v2 network, all clocks all can organize together according to principal and subordinate (master-slave) hierarchical relationship, and the reference time of system is Grandmaster clock (Grandmaster Clock).Whole synchronous process is finished by exchange 1588v2 message.From clock calculate by the timestamp information that carries the 1588v2 message and master clock between skew and time-delay, adjust accordingly local zone time reach with master clock synchronously.
Time Synchronization Network physically can be divided into a plurality of clock zones in logic.Each clock zone has a lock in time, and equipment all is synchronized to this time in the territory; Different clock-domains has the time separately, and is independent each other.
Clock in a clock zone is determined master slave relation by mutual transmission bulletin (announce) message.When the transmission of the announce of opposite end clock message is inconsistent with this clock transmission interval at interval, may cause to trace into correct master clock, cause the master clock node to elect mistake.
Describe in the agreement at present and the implementation of general manufacturer is to require the announce message of each clock in a clock zone to send interval and overtime coefficient to be set to consistently, guarantee to set up in the clock network correct master slave relation, namely correctly select master clock.
In the settling mode of determining master clock, existing settling mode has increased the requirement to configuration, has reduced the flexibility of using.
Summary of the invention
In view of this, the invention provides method and the clock node of determining master clock in a kind of 1588 clock zones, the present invention can both correctly determine master clock, and lower to configuration requirement, has improved the flexibility of using.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
Determine the method for master clock in a kind of 1588 clock node territories, this method comprises:
The local clock node is received the advertisement message that other clock nodes are sent in the same territory and is preserved, Preset Time then, the clock quality that effective advertisement message that the local clock node will receive is carried and the clock quality of self compare, and the clock of clock quality optimum is defined as master clock;
The invalid advertisement message that the local clock node will receive continues to preserve, when described invalid advertisement message is effective, the clock quality of current master clock compares in the clock quality that this effective advertisement message is carried and the effective time domain of invalid advertisement message, if the clock quality that this effective advertisement message is carried is excellent, then will send the clock of clock node of this effective advertisement message as master clock; Otherwise continuing to keep current master clock is master clock.
Described method further comprises:
The clock quality that the invalid advertisement message of receiving is carried compares with the clock quality of current master clock, if the clock quality that described invalid advertisement message is carried is excellent, then carries out the described invalid advertisement message that will receive and continues to preserve and subsequent step; Otherwise, with the described invalid advertisement message deletion of preserving.
The method that described clock node is preserved the advertisement message that other clock nodes are sent in the same territory is: the advertisement message that other clock nodes that will receive are sent is preserved respectively, and records the number of different advertisement message respectively;
Described invalid advertisement message is that the advertisement message number is less than the advertisement message of preset value; Described effective advertisement message is that the advertisement message number is more than or equal to the advertisement message of preset value.
Described method further comprises:
Described local clock node receives that the advertisement message that other clocks send in the same territory is inconsistent at interval.
Described method further comprises:
When the local clock node is received the advertisement message that the clock node in the described territory of new adding sends;
When perhaps, receiving the advertisement message of the clock quality that the carries variation that other clock nodes are sent in the described territory;
When perhaps, the advertisement message time-out time that reaches the clock of self after determining master clock is not received the advertisement message that master clock sends;
The clock quality that each effective advertisement message that the local clock node will be received is carried and the clock quality of self compare, and the clock of clock quality optimum is defined as current master clock.
Described method further comprises:
The local clock node sends the advertisement message time-out time of determining the clock of self at interval according to the advertisement message of master clock; Described advertisement message time-out time is that the overtime coefficient of clock of local clock node self and the advertisement message of current master clock send product at interval.
Determine the clock node of master clock in a kind of 1588 clock node territories, this clock node comprises: receiving element, memory cell and determining unit;
Described receiving element links to each other with described determining unit with described memory cell, be used for to receive the advertisement message that other clock nodes are sent in the same territory with self place clock node;
Described memory cell be used for to be preserved the advertisement message that other clock nodes are sent in the same territory that described receiving element receives;
Described determining unit is used for Preset Time then, and the clock quality that effective advertisement message that described receiving element is received is carried and the clock quality of self place clock node compare, and the clock of clock quality optimum is defined as master clock; The invalid advertisement message that described receiving element is received continues to preserve, when described invalid advertisement message is effective, the clock quality of current master clock compares in the clock quality that this effective advertisement message is carried and the effective time domain of invalid advertisement message, if the clock quality that this effective advertisement message is carried is excellent, then will send the clock of clock node of this effective advertisement message as master clock; Otherwise continuing to keep current master clock is master clock.
Wherein, described determining unit links to each other with described memory cell, is further used for clock quality that the invalid advertisement message of receiving is carried and compares with the clock quality of current master clock;
Described memory cell, if it is excellent to be used for the clock quality that described invalid advertisement message carries, the invalid advertisement message that then will receive continues preservation; Otherwise, with the described invalid advertisement message deletion of preserving.
Described memory cell is used for the advertisement message that other clock nodes that described receiving element is received are sent is preserved respectively, and records the number of different advertisement message respectively;
Described determining unit is further used for the advertisement message number is defined as invalid advertisement message less than the advertisement message of preset value; The advertisement message number is defined as effective advertisement message more than or equal to the advertisement message of preset value.
Described receiving element receives that the advertisement message that other clocks send in the same territory is inconsistent at interval;
Described receiving element links to each other with described determining unit, is further used for receiving the advertisement message that the clock node in the described territory of new adding is sent; Perhaps, be further used for receiving the advertisement message of the clock quality that the carries variation that other clock nodes are sent in the described territory; Perhaps, the advertisement message time-out time that is further used for reaching the clock of self after determining master clock is not received the advertisement message that master clock is sent;
Described determining unit, the clock quality that is further used for the clock node at clock quality that each effective advertisement message of receiving is carried and self place compares, and the clock of clock quality optimum is defined as current master clock.
Described determining unit is further used for sending the advertisement message time-out time of determining the clock of self at interval according to the advertisement message of master clock; Described advertisement message time-out time is that the overtime coefficient of clock of local clock node self and the advertisement message of current master clock send product at interval.
In sum, among the present invention, clock node receives the advertisement message that other clock nodes are sent in the same territory, Preset Time then, the clock quality that effective advertisement message of receiving is carried and the clock quality of local clock node compare definite master clock; The invalid advertisement message of receiving is continued to preserve, when effective, participate in determining of master clock.The present invention can both correctly determine master clock, and lower to configuration requirement, has improved the flexibility of using.
Description of drawings
Fig. 1 is for determining the method flow diagram of master clock in the present invention's 1588 clock zones;
Fig. 2 is the method flow diagram of determining master clock in the specific embodiment of the invention 1588 clock zones;
Fig. 3 is for determining the timing topology figure of master clock in the present invention's 1588 clock zones.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
A plurality of clock nodes connect to form topology, when belonging to same territory, if each clock node is without particular arrangement, its advertisement message sends inconsistent at interval, each clock node is set up master slave relation by mutual transmission advertisement message, namely selects master clock, and other clock nodes are ordinary clock.Existing realization is consistent with the advertisement message transmission arranged spaced of each clock configuration generally, and the present invention does not carry out this configuration, correctly definite master clock.After determining master clock, ordinary clock is followed master clock.
Because each clock node all can receive the advertisement message that other clock nodes are sent, select master clock process unanimity, be that example illustrates determining of master clock in the entire domain with the processing procedure of a clock node all when therefore describing hereinafter.
Referring to Fig. 1, Fig. 1 is for determining the method flow diagram of master clock in the present invention's 1588 clock zones.Concrete steps are:
Step 101, local clock node are received the advertisement message that other clock nodes are sent in the same territory and are preserved.
Step 102, Preset Time then, the clock quality that effective advertisement message that the local clock node will receive is carried and the clock quality of self compare, and the clock of clock quality optimum is defined as master clock.
Agreement is defined in the advertisement message of receiving enough numbers in the Preset Time, think that just the clock of this advertisement message representative is effective, could participate in main clock selecting, Preset Time adopts the election timer to realize, carries out triggering the election timer when condition that master clock selects takes place and picks up counting.
The local clock node receives that the advertisement message that other clocks send in the same territory is inconsistent at interval.
In this step, if the master clock of determining is the clock of local clock node, then the clock advertisement message time-out time of local clock node is constant, if the master clock of determining is the clock of other clock nodes, then the advertisement message with the master clock of determining sends the advertisement message time-out time of determining local clock at interval.
The method of specifically determining is: the clock advertisement message time-out time of local clock node is the overtime coefficient of clock of self and the advertisement message transmission product at interval of the master clock of determining, wherein the overtime coefficient of the clock of self carries out pre-configured for the user according to actual operating position.Advertisement message transmission interval: message is by timer mechanism, and circulation regularly sends, and the transmission time interval between continuous two messages is called the transmission interval.Whether overtime the advertisement message time-out time of each clock be to judge critical value, be used for triggering and reselect master clock, do not receive the advertisement message that master clock is sent when local clock at the clock advertisement message time-out time of self, namely trigger local clock and carry out reselecting of master clock.
Step 103, the invalid advertisement message that the local clock node will receive continues to preserve, when this invalid advertisement message is effective, the clock quality of current master clock compares in the clock quality that this effective advertisement message is carried and the effective time domain of invalid advertisement message, if the clock quality that this effective advertisement message is carried is excellent, then send the clock of clock node of this effective advertisement message as master clock; Otherwise continuing to keep current master clock is master clock.
Preset Time then, local clock receives that the message that other each clock nodes are sent has some, before the clock quality that compares each clock, to judge earlier whether its advertisement message is effective, if the number of the advertisement message that certain clock node of receiving is sent reaches preset value, determine that then this message is effective advertisement message; Otherwise be defined as invalid advertisement message.
Because the advertisement message number of receiving does not reach the invalid advertisement message of preset value, the clock quality that the invalid advertisement message that each clock is sent is carried compares with the clock quality of current master clock respectively, if the clock quality of current master clock is excellent, then delete the invalid advertisement message of preserving; Otherwise, continue to preserve this invalid advertisement message.
Referring to accompanying drawing, describe the method for determining master clock in 1588 clock zones in detail by specific embodiment.
Referring to Fig. 2, Fig. 2 is the method flow diagram of determining master clock in the specific embodiment of the invention in 1588 clock zones.Concrete steps are:
Step 201, the local clock node is received the advertisement message that other clock nodes are sent, and according to the difference of clock ID the advertisement message of receiving is preserved respectively.
In this step, to saving as respectively of different messages: article one advertisement message that certain clock node of receiving is sent, preserving and record the number of receiving this advertisement message is 1.Bulletin number with this advertisement message when receiving this advertisement message again adds 1, and by that analogy.Also can every advertisement message all preserve, need to determine advertisement message that certain clock node sends whether effectively the time, statistics is received the number of the advertisement message that this clock node is sent again.
Step 202, Preset Time are then.
In this step Preset Time then, execution in step 203.If do not arrive Preset Time, the local clock node continues to receive the advertisement message that other clock nodes are sent, up to Preset Time then, and execution in step 203.
Preset Time in this step adopts the election timer to realize, this Preset Time can arrange according to actual needs, also can calculate with following mode: the advertisement message transmission interval of the clock of local clock node and the timing of the product of the election coefficient of local clock node as local clock node election timer.
The election coefficient: for the external clock that participates in the clock election, local clock must be received one fixed number purpose advertisement message, just thinks this bulletin record effectively, and this number is called the election coefficient.Wherein the election coefficient user of local clock can be configured according to concrete needs, is used for determining the timing of local clock node election timer.
Step 203 judges in each advertisement message that other clock nodes send whether have invalid advertisement message, if, execution in step 204; Otherwise, execution in step 207.
In this step, judge whether the advertisement message that certain clock node sends is effective, judge namely whether the number of the advertisement message that this clock node of receiving is within a certain period of time sent reaches preset value, reach and determine that namely this advertisement message is effective, can participate in the selection of master clock, otherwise be defined as invalid.
Step 204 judges whether clock quality that invalid advertisement message is carried is better than the clock quality of current master clock, if, execution in step 206; Otherwise, execution in step 205.
Advertisement message in this step is carried the clock quality of the clock node of sending this advertisement message, and clock quality can comprise one of following parameter or a combination arbitrarily: priority 1, clock grade, clock accuracy, deviant, priority 2 and clock ID.How each parameter specifically is described in detail more hereinafter.
This invalid advertisement message deletion that step 205, local clock node will be preserved.Execution in step 209.
If preserved the number of this invalid advertisement message in this step, also can be only will invalid advertisement message record number delete.If receive this invalid advertisement message again, no longer carry out clock quality relatively, no longer preserve this invalid advertisement message, do not increase the number of this invalid advertisement message record yet.
Step 206, local clock node receive this invalid advertisement message and continue to preserve.Execution in step 209.
In this step, if receive this invalid advertisement message again, this invalid advertisement message is proceeded to preserve, perhaps increase the number of receiving this advertisement message.Up to receiving that this advertisement message number reaches preset value, when becoming effective advertisement message, participate in determining of master clock.Concrete determine that method is: the clock quality that will this effective advertisement message carries is compared with the clock quality of current master clock, determines new master clock.If the clock quality of current master clock is excellent, then keeping this master clock is current master clock; Otherwise, with the clock of the invalid clock node that becomes effective advertisement message sent as current master clock.
If when this advertisement message became effective advertisement message, this clock was being reselected master clock just, this moment, this effective advertisement message participated in the selection of current master clock.
The clock quality that effective advertisement message that step 207, local clock node will be received is carried compares with the clock quality of self.
Step 208, if the clock quality optimum of local clock node, then with this clock as master clock; If there is the clock node quality be better than this clock in the clock quality that the effective message that receives carries, then the clock that clock quality is the highest in the clock quality that carries of effective message of Jie Shouing is as master clock, and this clock is as ordinary clock.
Step 209, this advertisement message processing finishes.
If territory internal clock characteristic changes, the local clock node is received when clock quality that advertisement message that other clock nodes are sent is carried changes, is carried out the selection of master clock again.
If there is new clock node to add this territory, the local clock node is received when advertisement message that the clock node in this territory of new adding is sent becomes effective advertisement message, is carried out the selection of master clock again.
If the clock advertisement message time-out time of local clock node then, the local clock node will be reselected master clock.
When reselecting master clock, the clock quality that each effective advertisement message that the local clock node will be received is carried and the clock quality of self compare, and the clock of clock quality optimum is defined as current master clock.
In the election process of master clock, the clock quality of a plurality of clock nodes compares, and compares in twos earlier, again that clock quality is excellent carrying out compared in twos, up to selecting the clock quality optimum.Because the ID of each clock is inconsistent, therefore finally can select the clock of clock quality optimum.Relatively the method for the clock quality quality of two clocks is, compares the following parameter of two clocks according to clock quality order from high to low:
1, compare the priority 1 of two clocks, the clock quality that priority 1 is high is excellent.
2, compare the clock grade of two clocks, the clock quality that clock grade is high is excellent.
3, compare the clock accuracy of two clocks, the clock quality that clock accuracy is high is excellent.
4, compare the deviant of two clocks, the clock quality that deviant is little is excellent.
5, compare the priority 2 of two clocks, the clock quality that priority 2 is high is excellent.
6, compare the clock ID of two clocks, the clock quality that clock ID is little is excellent.
Clock priority 1 and priority 2 are configured according to the networking time response of reality for the user, and clock priority 1 is the primary foundation of judging the clock quality quality, and its value arranges more little, and the quality of expression time is more good, and the clock quality of this clock is more excellent; Clock priority 2 is at clock priority 1, clock grade, clock accuracy and timing offset value all under the identical situation, and its value arranges more little, and the quality of expression time is more good, and the clock quality of this clock is more excellent.The clock quality comparison procedure of clock and parameter repeat no more here with the prior art unanimity,
Based on above-mentioned same inventive concept, the invention allows for the clock node of determining master clock in a kind of 1588 clock zones, this clock node comprises: receiving element 301, memory cell 302 and determining unit 303.
Receiving element 301 links to each other with determining unit 303 with memory cell 302, is used for the advertisement message that other clock nodes are sent in reception and self the same territory of place clock node.
Memory cell 302 be used for to be preserved the advertisement message that other clock nodes are sent in the same territory that receiving element 303 receives.
Determining unit 303 is used for Preset Time then, and the clock quality that effective advertisement message that receiving element 301 is received is carried and the clock quality of self place clock node compare, and the clock of clock quality optimum is defined as master clock; The invalid advertisement message that receiving element 301 is received continues to preserve, when this invalid advertisement message is effective, the clock quality of current master clock compares in the clock quality that this effective advertisement message is carried and the effective time domain of invalid advertisement message, if the clock quality that this effective advertisement message is carried is excellent, then send the clock of clock node of this effective advertisement message as master clock; Otherwise continuing to keep current master clock is master clock.
Preferably,
Determining unit 303 links to each other with memory cell 302, is further used for clock quality that the invalid advertisement message of receiving is carried and compares with the clock quality of current master clock.
Memory cell 302, if it is excellent to be used for the clock quality that this invalid advertisement message carries, the invalid advertisement message continuation preservation that then will receive; Otherwise, with this invalid advertisement message deletion of preserving.
Preferably,
Memory cell 302 is used for the advertisement message that other clock nodes that receiving element 301 is received are sent is preserved respectively, and records the number of different advertisement message respectively.
Determining unit 303 is further used for the advertisement message number is defined as invalid advertisement message less than the advertisement message of preset value; The advertisement message number is defined as effective advertisement message more than or equal to the advertisement message of preset value.
Preferably,
Receiving element 301 receives that the advertisement message that other clocks send in the same territory is inconsistent at interval.
Determining unit 303 is further used for determining that the advertisement message time-out time of the clock of self place clock node sends product at interval for the advertisement message of the overtime coefficient of the clock of self place clock node and the master clock of determining.
Preferably,
Receiving element 301 links to each other with determining unit 303, is further used for receiving the advertisement message that the clock node in this territory of new adding is sent; Perhaps, be further used for receiving the advertisement message of the clock quality that the carries variation that other clock nodes are sent in this territory; Perhaps, the advertisement message time-out time that is further used for reaching the clock of self after determining master clock is not received the advertisement message that master clock is sent.
Determining unit 302, the clock quality that is further used for the clock node at clock quality that each effective advertisement message of receiving is carried and self place compares, and the clock of clock quality optimum is defined as current master clock.
In sum, the present invention is when selecting master clock, not directly to abandon for invalid advertisement message, but the clock quality of itself and current master clock node relatively, if its clock Functionality, quality and appealing design, then continue to receive and preserve this invalid packet, behind certain hour, receive this abundant advertisement message, become effective advertisement message, participate in the selection of master clock again, can not send longer at interval like this because of the advertisement message of master clock, the advertisement message of receiving is less, and is dropped, and can not select correct master clock.Therefore, whether each clock node transmission announce message is consistent at interval in the no domain, and the present invention can both correctly determine master clock, and lower to configuration requirement, has improved the flexibility of using.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. determine the method for master clock in the clock zone, it is characterized in that described method comprises:
The local clock node is received in the same territory other Preset Times then, and the clock quality that effective advertisement message that the local clock node will receive is carried and the clock quality of self compare, and the clock of clock quality optimum is defined as master clock;
The invalid advertisement message that the local clock node will receive continues to preserve, when described invalid advertisement message is effective, when the clock quality that this effective advertisement message that is become by invalid advertisement message is carried is effective with this invalid advertisement message, the clock quality of current master clock compares in the territory, if clock quality that effective advertisement message that should be become by invalid advertisement message is carried was excellent, then will send the clock of clock node of this effective advertisement message that is become by invalid advertisement message as master clock; Otherwise continuing to keep current master clock is master clock;
Wherein, Preset Time then, local clock receives that the message that other each clock nodes are sent has some, before the clock quality that compares each clock, to judge earlier whether its advertisement message is effective, if the number of the advertisement message that certain clock node of receiving is sent reaches preset value, determine that then this message is effective advertisement message; Otherwise be defined as invalid advertisement message.
2. method according to claim 1 is characterized in that, before the invalid advertisement message that the local clock node will receive continued to preserve, described method further comprised:
The clock quality that the invalid advertisement message of receiving is carried compares with the clock quality of current master clock, if the clock quality that described invalid advertisement message is carried is excellent, then carries out the described invalid advertisement message that will receive and continues to preserve and subsequent step; Otherwise, with the described invalid advertisement message deletion of preserving.
3. method according to claim 1 and 2, it is characterized in that, the method that described clock node is preserved the advertisement message that other clock nodes are sent in the same territory is: the advertisement message that other clock nodes that will receive are sent is preserved respectively, and records the number of different advertisement message respectively;
Described invalid advertisement message is that the advertisement message number is less than the advertisement message of preset value; Described effective advertisement message is that the advertisement message number is more than or equal to the advertisement message of preset value.
4. method according to claim 1 and 2 is characterized in that, described method further comprises:
Described local clock node receives that the advertisement message that other clocks send in the same territory is inconsistent at interval.
5. method according to claim 4 is characterized in that, described method further comprises:
When the local clock node is received the advertisement message that the clock node in the described territory of new adding sends;
When perhaps, receiving the advertisement message of the clock quality that the carries variation that other clock nodes are sent in the described territory;
When perhaps, the advertisement message time-out time that reaches the clock of self after determining master clock is not received the advertisement message that master clock sends;
The clock quality that each effective advertisement message that the local clock node will be received is carried and the clock quality of self compare, and the clock of clock quality optimum is defined as current master clock.
6. method according to claim 5 is characterized in that, the local clock node sends the advertisement message time-out time of determining the clock of self at interval according to the advertisement message of master clock; Described advertisement message time-out time is that the overtime coefficient of clock of local clock node self and the advertisement message of current master clock send product at interval.
7. the interior clock node of determining master clock of clock zone is characterized in that described clock node comprises: receiving element, memory cell and determining unit;
Described receiving element links to each other with described determining unit with described memory cell, be used for to receive the advertisement message that other clock nodes are sent in the same territory with self place clock node;
Described memory cell be used for to be preserved the advertisement message that other clock nodes are sent in the same territory that described receiving element receives;
Described determining unit is used for Preset Time then, and the clock quality that effective advertisement message that described receiving element is received is carried and the clock quality of self place clock node compare, and the clock of clock quality optimum is defined as master clock; The invalid advertisement message that described receiving element is received continues to preserve, when described invalid advertisement message is effective, when the clock quality that this effective advertisement message that is become by invalid advertisement message is carried is effective with this invalid advertisement message, the clock quality of current master clock compares in the territory, if clock quality that effective advertisement message that should be become by invalid advertisement message is carried was excellent, then will send the clock of clock node of this effective advertisement message that is become by invalid advertisement message as master clock; Otherwise continuing to keep current master clock is master clock; Wherein, Preset Time then, local clock receives that the message that other each clock nodes are sent has some, before the clock quality that compares each clock, to judge earlier whether its advertisement message is effective, if the number of the advertisement message that certain clock node of receiving is sent reaches preset value, determine that then this message is effective advertisement message; Otherwise be defined as invalid advertisement message.
8. clock node according to claim 7 is characterized in that,
Described determining unit links to each other with described memory cell, is further used for clock quality that the invalid advertisement message of receiving is carried and compares with the clock quality of current master clock;
Described memory cell, if it is excellent to be used for the clock quality that described invalid advertisement message carries, the invalid advertisement message that then will receive continues preservation; Otherwise, with the described invalid advertisement message deletion of preserving.
9. according to claim 7 or 8 described clock nodes, it is characterized in that,
Described memory cell is used for the advertisement message that other clock nodes that described receiving element is received are sent is preserved respectively, and records the number of different advertisement message respectively;
Described determining unit is further used for the advertisement message number is defined as invalid advertisement message less than the advertisement message of preset value; The advertisement message number is defined as effective advertisement message more than or equal to the advertisement message of preset value.
10. according to claim 7 or 8 described clock nodes, it is characterized in that,
Described receiving element receives that the advertisement message that other clocks send in the same territory is inconsistent at interval.
11. clock node according to claim 10 is characterized in that,
Described receiving element links to each other with described determining unit, is further used for receiving the advertisement message that the clock node in the described territory of new adding is sent; Perhaps, be further used for receiving the advertisement message of the clock quality that the carries variation that other clock nodes are sent in the described territory; Perhaps, the advertisement message time-out time that is further used for reaching the clock of self after determining master clock is not received the advertisement message that master clock is sent;
Described determining unit, the clock quality that is further used for the clock node at clock quality that each effective advertisement message of receiving is carried and self place compares, and the clock of clock quality optimum is defined as current master clock.
12. clock node according to claim 11 is characterized in that, described determining unit is further used for sending the advertisement message time-out time of determining the clock of self at interval according to the advertisement message of master clock; Described advertisement message time-out time is that the overtime coefficient of clock of local clock node self and the advertisement message of current master clock send product at interval.
CN 201110228319 2011-08-10 2011-08-10 Method and clock node for determining master clock within 1588 clock domain Expired - Fee Related CN102263631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110228319 CN102263631B (en) 2011-08-10 2011-08-10 Method and clock node for determining master clock within 1588 clock domain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110228319 CN102263631B (en) 2011-08-10 2011-08-10 Method and clock node for determining master clock within 1588 clock domain

Publications (2)

Publication Number Publication Date
CN102263631A CN102263631A (en) 2011-11-30
CN102263631B true CN102263631B (en) 2013-09-25

Family

ID=45010106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110228319 Expired - Fee Related CN102263631B (en) 2011-08-10 2011-08-10 Method and clock node for determining master clock within 1588 clock domain

Country Status (1)

Country Link
CN (1) CN102263631B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101933366B1 (en) * 2012-09-25 2018-12-28 현대모비스 주식회사 Time Synchronization Method
CN105897393A (en) * 2015-01-26 2016-08-24 杭州迪普科技有限公司 Clock synchronization method and device
CN105227289B (en) * 2015-08-24 2018-08-28 卡斯柯信号有限公司 A kind of clock synchronizing method and system of quick precise and safety
WO2019024079A1 (en) * 2017-08-04 2019-02-07 Telefonaktiebolaget Lm Ericsson (Publ) Cross domain synchronization in a communication network
CN114362874B (en) * 2022-03-21 2022-08-12 北京国科天迅科技有限公司 Master clock equipment determining method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207606A (en) * 2006-12-18 2008-06-25 华为技术有限公司 Method and apparatus for main clock selecting
US7447931B1 (en) * 2005-12-09 2008-11-04 Rockwell Automation Technologies, Inc. Step time change compensation in an industrial automation network
CN101667909A (en) * 2009-09-25 2010-03-10 华为技术有限公司 Clock docking method, clock device and clock docking system
CN101895385A (en) * 2010-07-26 2010-11-24 国电南瑞科技股份有限公司 Time-setting clock system of merging unit for realizing clock switching
CN102036361A (en) * 2009-09-25 2011-04-27 华为技术有限公司 Processing method, device and system for clock source selection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773606B2 (en) * 2008-09-22 2010-08-10 Telefonaktiebolaget L M Ericsson (Publ) Timing distribution within a network element while supporting multiple timing domains

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447931B1 (en) * 2005-12-09 2008-11-04 Rockwell Automation Technologies, Inc. Step time change compensation in an industrial automation network
CN101207606A (en) * 2006-12-18 2008-06-25 华为技术有限公司 Method and apparatus for main clock selecting
CN101667909A (en) * 2009-09-25 2010-03-10 华为技术有限公司 Clock docking method, clock device and clock docking system
CN102036361A (en) * 2009-09-25 2011-04-27 华为技术有限公司 Processing method, device and system for clock source selection
CN101895385A (en) * 2010-07-26 2010-11-24 国电南瑞科技股份有限公司 Time-setting clock system of merging unit for realizing clock switching

Also Published As

Publication number Publication date
CN102263631A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
CN102263631B (en) Method and clock node for determining master clock within 1588 clock domain
JP5911601B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND TIME SYNCHRONIZATION METHOD
CN103916950A (en) Time synchronization method and system
CN106130681A (en) High-accuracy clock synchronization method, module, equipment and system for time dissemination system
CN103201971A (en) Method for synchronizing master and slave clocks of packet-switched network with aggregated connections between nodes, and associated synchronization devices
PL1815650T3 (en) Synchronization and data transmission method
CN101299749A (en) Method and apparatus for transferring clock between networks
CN101882990A (en) Method for selecting master clock based on PTP (Picture Transfer Protocol) and link quality, slave clock and system
CN106209289A (en) A kind of moonlet self-organizing network method for synchronizing time
CN108650050A (en) A kind of distributed network clock synchronous method
CN101207606A (en) Method and apparatus for main clock selecting
EP2515591B1 (en) Method, apparatus and system for clock synchronization
CN102299788A (en) Method and device for controlling automatic transmission of IEEE1558 (Institute of Electrical and Electronic Engineers 1558) protocol message
CN102664726A (en) Precision time protocol (PTP) clock source switching method, master and slave clock devices and system
CN106027193A (en) Clock synchronization method, module, equipment and system for network timing system
CN106487467A (en) A kind of time synchronized deviation detecting method and device
US20220007321A1 (en) Network Entities and Methods for a Wireless Network System for Determining Time Information
Han et al. A distributed time synchronization solution without satellite time reference for mobile communication
CN104243079A (en) Microsecond clock synchronization method for real-time Ethernet
CN106688207A (en) Method for determining a propagation time of a telegram in a communication network, and corresponding network components
CN102457346A (en) Time synchronization realizing method and clock node
Mahmood et al. Clock synchronization for IEEE 802.11 based wired-wireless hybrid networks using PTP
CN106656385A (en) Air interface time synchronization method and device for relay system
CN101917761A (en) Time synchronization method for accessing mobile sensor foreign node to network in a wireless network
CN108683472A (en) A kind of clock synchronizing method based on Time delay measurement

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130925