CN113206719A - Clock synchronization method, system and storage medium based on SDN master clock - Google Patents
Clock synchronization method, system and storage medium based on SDN master clock Download PDFInfo
- Publication number
- CN113206719A CN113206719A CN202110279442.4A CN202110279442A CN113206719A CN 113206719 A CN113206719 A CN 113206719A CN 202110279442 A CN202110279442 A CN 202110279442A CN 113206719 A CN113206719 A CN 113206719A
- Authority
- CN
- China
- Prior art keywords
- clock
- controller
- sdn
- clock synchronization
- slave
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000002159 abnormal effect Effects 0.000 claims abstract description 26
- 238000001914 filtration Methods 0.000 claims abstract description 23
- 230000001360 synchronised effect Effects 0.000 claims abstract description 22
- 230000003993 interaction Effects 0.000 claims description 18
- 238000004891 communication Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 9
- 238000012937 correction Methods 0.000 claims description 5
- 208000033748 Device issues Diseases 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000007726 management method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0641—Change of the master or reference, e.g. take-over or failure of the master
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
- H04J3/0661—Clock or time synchronisation among packet nodes using timestamps
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention discloses a clock synchronization method, a clock synchronization system and a storage medium based on an SDN (software defined network) master clock. After the power is on, the SDN controller issues clock synchronization parameter configuration to each slave clock, and then each controller periodically sends a clock synchronization message. And monitoring the clock state among the controllers, and modifying the clock value of a certain controller when the clock value of the controller is monitored to be abnormal. The slave clock receives a plurality of clock synchronization messages in similar time, a filtering algorithm is set locally, the messages meeting the filtering condition are not synchronized, otherwise, the slave clock is synchronized, and the local time is adjusted to the time of the master clock. By adopting the method and the system provided by the invention, the seamless switching of the clock synchronization function is realized under the condition that the main clock fails or the clock value of a certain main clock is artificially modified, and the high-reliability clock synchronization function is provided.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and a system for synchronizing a highly reliable clock in a communication network.
Background
Each node in the communication network has its own clock, and due to factors such as manufacturing process, crystal oscillator frequency, external electromagnetic interference and the like, the counts of the clocks at the same time are difficult to keep consistent, and the deviation may become larger and larger as time goes on, so that the clocks of the nodes have larger difference. When a message in a communication network is transmitted, the nodes in the network are required to have strictly uniform clocks, so that the clock synchronization among the network nodes is very important.
The ieee 802.11 as protocol may provide a clock synchronization function for a domain in a network. The main contents of IEEE802.1AS clock synchronization are: a plurality of domains are divided in the network, and a master clock is generated in each domain through a manual configuration mode or a mode of all clock elections. If the BMCA (best Master Clock Algorithm) algorithm is adopted for electing the Master Clock, the Clock with the optimal performance parameter is selected as the Master Clock according to the Clock performance parameters of each Clock in the domain. After the master clock is selected, other clocks are slave clocks, and the master clock sends clock synchronization messages to the slave clocks at regular intervals to perform timing so as to update the local time of the slave clocks, thereby realizing the clock synchronization among the network nodes. The master clock also sends an Announce message to the slave clock periodically to indicate the running state of the master clock.
During the operation of the communication network, the network node may have faults, such as power line damage, network cable cut, circuit board burn, etc.; in addition, although the main clock itself does not fail, its clock value may be artificially modified to an abnormal value. If the master clock in one clock synchronization domain has a fault, the clock synchronization function cannot be performed; although the master clock does not fail, if the time synchronized out is an abnormal value, the local time of all the slave clocks is synchronized to be an abnormal time. Both of the above conditions result in unreliable clock synchronization functions. In order to ensure the reliability of clock synchronization, a tsn (time Sensitive networking) working group proposes a master clock reselection scheme, and after receiving an Announce message for several times and failing, a slave clock determines that the master clock fails, initiates a master clock reselection process, re-executes a BMCA algorithm, and elects a new master clock, as shown in fig. 1.
However, there are certain problems with the master clock reselection mechanism. Since the slave clock determines that the master clock has failed and initiates reselection requires a certain time interval, the clock synchronization function is not available from the time the master clock fails until a new master clock is selected. During the period that the clock synchronization function is unavailable, the clock skew between the master clock and the slave clock is continuously increased, and if delay sensitive messages are transmitted at the time, the messages can not be transmitted correctly, so that network faults can be caused. In addition, the master clock reselection mechanism is triggered according to the sending condition of the Announce message, when the master clock is normal but the clock value of the master clock is artificially modified, the slave clock cannot trigger reselection because the master clock state is normal and the slave clock still sends the Announce message regularly, so that the reselection mechanism cannot solve the problem that the clock value is artificially modified.
Disclosure of Invention
In view of the above-mentioned problems in the background art, an object of the present invention is to provide a highly reliable clock synchronization method and system, which can achieve seamless switching of clock synchronization functions when a certain master clock fails, and at the same time, cannot cause all slave clocks to be synchronized to an incorrect time value when a clock value of the master clock is manually modified. The scheme of the invention can solve the problem of clock synchronization function discontinuity and the problem of manual modification of the time value of the master clock in the master clock reselection mechanism.
The invention provides a high-reliability clock synchronization method and a high-reliability clock synchronization system. After the power is on, the SDN controller performs centralized configuration and issuing to each slave clock, issues clock synchronization parameter configuration, and then periodically sends clock synchronization messages. When a plurality of controllers exist, the controllers form a cluster, each controller periodically sends a clock synchronization message, the controllers do not perform clock synchronization but need to monitor the clock state, and when the clock value of one controller is monitored to be abnormal, the clock value of the controller is modified. The slave clock can receive a plurality of clock synchronization messages in similar time, the slave clock sets a filtering algorithm locally, the messages meeting the filtering condition are not synchronized, otherwise, the slave clock is synchronized, and the local time is adjusted to be the time of the master clock.
In order to achieve the above object, the clock synchronization method based on the SDN master clock provided by the present invention includes the following steps:
manually configuring each controller in an SDN controller cluster as a master clock device, wherein each controller is connected with other slave clock devices in a network;
step two, the master clock device issues configuration parameters to the slave clock device, wherein the configuration parameters are obtained by local calculation of an SDN controller;
step three, the controller master clock sends clock synchronization messages periodically;
step four, after receiving the clock synchronization message, the slave clock device locally executes a filtering algorithm, and the messages meeting the filtering condition of the filtering algorithm are not synchronized, otherwise, the messages are synchronized;
and step five, when a certain controller monitors that the clock values of other controllers in the cluster are abnormal, sending a notice to the controller with the abnormal clock value, and modifying the local clock value by the controller with the abnormal clock value according to the clock value carried by the notice.
Further, the controllers send interaction messages to each other, the interaction messages carry timestamps, and whether clocks of other controllers are abnormal or not is judged according to the timestamps.
Further, the interactive message content includes, but is not limited to, a correction value, an exception identifier, and a timestamp.
Further, in the first step, the existence form of the controllers includes a physical machine, a virtual machine, and a process, and the connection modes between the controllers include wired connection, wireless connection, inter-process communication, and pipeline communication.
Further, in the first step, each controller is respectively connected to a slave clock device, specifically:
each controller is connected with the slave clock device in a wired connection mode or interacts in a wireless communication mode.
As an embodiment of the present application, the configuration parameters include, but are not limited to, a clock role of each slave clock device, and a role of each port on each slave clock device.
Further, the step two, the issuing, by the master clock device, the configuration parameter to the slave clock device specifically includes:
and the configuration parameters are sequentially and respectively issued to the slave clock devices, or the slave clock devices form a list and are issued to the slave clock devices in the list in a unified way.
Further, in step three, the controller periodically sends a clock synchronization message, specifically:
each controller sends a first clock synchronization message at the same time or different times;
the forwarding surface of the controller supports the receiving and sending of IEEE802.1AS protocol clock synchronization messages;
the forwarding plane comprises a logic forwarding plane, an abstracted forwarding function set and a process or a function module special for forwarding.
Furthermore, in step five, the notification is an existing message in the SDN controller cluster, and the notification is achieved by adding content to the existing message;
or the notification is a type of message newly added to the SDN controller cluster.
The clock synchronization system based on the SDN master clock comprises an SDN controller, an SDN switch and end equipment, wherein the SDN controller is set master clock equipment, interacts with the SDN switch and issues configuration parameters to slave clock equipment, and interaction messages are sent among the SDN controllers in the system, wherein the interaction messages are controller state monitoring messages, and the content of the interaction messages includes but is not limited to clock correction values, exception identifications and timestamp interaction clock synchronization messages;
and after receiving the clock synchronization message, the SDN switch and the end equipment, namely the slave clock equipment execute a filtering algorithm locally, and if not, the message meeting the filtering condition of the filtering algorithm is not synchronized.
By using the method and the steps, when the master clock fails or the master clock fails but the time value of the master clock is artificially modified, each controller in the SDN controller cluster can send a clock synchronization message and the slave clock can filter out an abnormal time value, so that the slave clock can still receive a normal clock synchronization message, and a highly reliable clock synchronization function can be provided for a network.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the present invention will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without inventive labor.
FIG. 1 is a schematic diagram of an IEEE 802.11 AS protocol master clock reselection mechanism;
figure 2 is a schematic diagram of a clock synchronization network topology with two controllers forming an SDN cluster;
figure 3 is a schematic diagram of a network topology with two controllers forming a SDN cluster with failures;
figure 4 is a schematic diagram of a clock synchronization network topology with three controllers forming an SDN cluster;
fig. 5 is a schematic diagram of a clock synchronization network topology in which an SDN master clock may be abnormal.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Software Defined Network (SDN) is a technology for making a network control function into software, the SDN is intended to implement separation of a network control function and a forwarding function to implement centralization of the control function, and an SDN controller is a main device for implementing the SDN technology. In order to ensure the reliability of the SDN function, in actual deployment, a cluster manner is mostly adopted, that is, a plurality of controllers are deployed at the same time as a cluster, and the plurality of controllers operate at the same time, so that a unified controller is logically formed, that is, the unified controller naturally has a redundancy characteristic. In addition, the SDN can perform centralized configuration and delivery and centralized admission management on the network equipment, and is beneficial to centralized management and centralized configuration of relevant parameters for delivering clock synchronization.
The application discloses a clock synchronization method based on an SDN master clock, which comprises the following steps:
manually configuring each controller in an SDN controller cluster as a master clock device, wherein each controller is connected with other slave clock devices in a network;
step two, the master clock device issues configuration parameters to the slave clock device, wherein the configuration parameters are obtained by local calculation of an SDN controller;
step three, the controller master clock sends clock synchronization messages periodically;
step four, after receiving the clock synchronization message, the slave clock device locally executes a filtering algorithm, and the messages meeting the filtering condition of the filtering algorithm are not synchronized, otherwise, the messages are synchronized;
and step five, when a certain controller monitors that the clock values of other controllers in the cluster are abnormal, sending a notice to the controller with the abnormal clock value, and modifying the local clock value by the controller with the abnormal clock value according to the clock value carried by the notice.
Further, the controllers send interaction messages to each other, the interaction messages carry timestamps, and whether clocks of other controllers are abnormal or not is judged according to the timestamps.
Further, the interactive message content includes, but is not limited to, a correction value, an exception identifier, and a timestamp.
Further, in the first step, the existence form of the controllers includes a physical machine, a virtual machine, and a process, and the connection modes between the controllers include wired connection, wireless connection, inter-process communication, and pipeline communication.
Further, in the first step, each controller is respectively connected to a slave clock device, specifically:
each controller is connected with the slave clock device in a wired connection mode or interacts in a wireless communication mode.
As an embodiment of the present application, the configuration parameters include, but are not limited to, a clock role of each slave clock device, and a role of each port on each slave clock device.
Further, the step two, the issuing, by the master clock device, the configuration parameter to the slave clock device specifically includes:
and the configuration parameters are sequentially and respectively issued to the slave clock devices, or the slave clock devices form a list and are issued to the slave clock devices in the list in a unified way.
Further, in step three, the controller periodically sends a clock synchronization message, specifically: each controller sends a first clock synchronization message at the same time or different times;
the forwarding surface of the controller supports the receiving and sending of IEEE802.1AS protocol clock synchronization messages;
the forwarding plane comprises a logic forwarding plane, an abstracted forwarding function set and a process or a function module special for forwarding.
Furthermore, in step five, the notification is an existing message in the SDN controller cluster, and the notification is achieved by adding content to the existing message;
or the notification is a type of message newly added to the SDN controller cluster.
Example 1
Initially, there are two controllers in the SDN controller cluster, and the master clock device has no fault:
each controller is manually configured to be a master clock, and the role of each port of each device in the network topology is configured to be a master port or a slave port, wherein the master port is used for sending clock synchronization messages, and the slave port is used for receiving the clock synchronization messages. The two controllers are each connected to a different slave clock port as shown in figure 2.
The SDN cluster issues configuration parameters related to the clock synchronization function, including but not limited to the clock role attribute of each device, and the role of each port on each device. The parameters are a set of related parameters of the clock synchronization function, and different network equipment parameters may be different and are sent to different equipment through different target addresses. One of the two controllers can be selected arbitrarily to issue initial configuration, and different slave clock devices issue the configuration respectively.
After receiving the clock synchronization parameter, the slave clock device connected with the SDN cluster firstly judges whether the parameter is sent to the slave clock device, and if the parameter is sent to the slave clock device, the slave clock device connected with the SDN cluster updates the local parameter.
And after receiving the clock synchronization parameter, the slave clock device connected with the SDN cluster firstly judges whether the parameter is sent to the slave clock device, and if the parameter is not sent to the slave clock device, the slave clock device forwards the parameter to the device with the target address identifier. Through the sequential forwarding of different devices, the clock synchronization parameters finally reach the target device, and the parameter updating of each device is completed.
Each controller of two controllers in the SDN controller cluster starts to send a first clock synchronization message and then periodically sends the clock synchronization messages. The period for sending the clock synchronization message is initially configured according to needs, and the periods for sending the clock synchronization message by the two controllers are the same.
After receiving the clock synchronization message, the slave clock device connected to the SDN cluster performs local operation according to the content of the clock synchronization message, and then forwards the clock synchronization message through all the master ports, and finally the clock synchronization message reaches each slave clock.
After receiving a clock synchronization message sent by an SDN master clock, the slave clock analyzes a time value needing synchronization, and judges the value according to a set algorithm. If the synchronized time value needs to be filtered, the local time is not modified, otherwise the modified local time value is consistent with the synchronized time value.
Two controllers in the SDN cluster start state monitoring between the two controllers when sending a first clock synchronization message, and monitoring message interaction is carried out between the two controllers. The interactive message between the two controllers carries a self time value, and the time value is used for judging whether the clock value of the master clock of the controller is abnormal or not.
After the system operates for a period of time, the clock module of controller a fails. When controller a fails, it stops sending clock synchronization related messages. However, since the controller B still normally sends the clock synchronization related packet, and each slave clock still can normally perform clock synchronization through the sequential forwarding of each network node, the clock synchronization function is not affected, as shown in fig. 3.
The method of the embodiment can keep the normal operation of the clock synchronization function and provide high-reliability clock synchronization under the condition that the controller main clock A has a fault.
Example 2
This embodiment is a method for providing clock synchronization by three controllers, and initially, there are three controllers in an SDN controller cluster, and a master clock device has no fault:
each controller is manually configured to be a master clock, and the role of each port of each device in the network topology is configured to be a master port or a slave port, wherein the master port is used for sending clock synchronization messages, and the slave port is used for receiving the clock synchronization messages. The three controllers are connected to different slave clock ports, respectively, as shown in fig. 4.
The SDN cluster issues configuration parameters related to the clock synchronization function, including but not limited to the clock role attribute of each device, and the role of each port on each device. The parameters are a set of related parameters of the clock synchronization function, and different network equipment parameters may be different and are sent to different equipment through different target addresses. One of the three controllers can be selected randomly to issue initial configuration, and different slave clock devices issue the configuration respectively.
After receiving the clock synchronization parameter, the slave clock device connected with the SDN cluster firstly judges whether the parameter is sent to the slave clock device, and if the parameter is sent to the slave clock device, the slave clock device connected with the SDN cluster updates the local parameter.
And after receiving the clock synchronization parameter, the slave clock device connected with the SDN cluster firstly judges whether the parameter is sent to the slave clock device, and if the parameter is not sent to the slave clock device, the slave clock device forwards the parameter to the device with the target address identifier. Through the sequential forwarding of different devices, the clock synchronization parameters finally reach the target device, and the parameter updating of each device is completed.
Each controller of three controllers in the SDN controller cluster starts to send a first clock synchronization message and then periodically sends the clock synchronization messages. The period for sending the clock synchronization message is initially configured according to needs, and the periods for sending the clock synchronization message by the three controllers are the same.
After receiving the clock synchronization message, the slave clock device connected to the SDN cluster performs local operation according to the content of the clock synchronization message, and then forwards the clock synchronization message through all the master ports, and finally the clock synchronization message reaches each slave clock.
After receiving a clock synchronization message sent by an SDN master clock, the slave clock analyzes a time value needing synchronization, and judges the value according to a set algorithm. If the synchronized time value needs to be filtered, the local time is not modified, otherwise the modified local time value is consistent with the synchronized time value.
The method comprises the steps that when three controllers in an SDN cluster send a first clock synchronization message, state monitoring among the three controllers is started, and monitoring message interaction is carried out among the three controllers. The interactive messages among the three controllers carry self time values, and the time values are used for judging whether the clock values of the main clocks of the controllers are abnormal or not.
After the system operates for a period of time, the clock module of controller a fails. When controller a fails, it stops sending clock synchronization related messages. However, the controller B and the controller C still normally send clock synchronization related messages, and each slave clock still can normally perform clock synchronization through the sequential forwarding of each network node, so that the clock synchronization function is not affected.
The method of the embodiment can keep the normal operation of the clock synchronization function because the controller B and the controller C still normally send the clock synchronization related messages under the condition that the controller main clock A has a fault. Namely, the network operation has the condition that the controller main clock A is abnormal, but the abnormality can be removed seamlessly, and the high-reliability clock synchronization is provided.
The use of an SDN controller as a master clock device is naturally advantageous and can solve the aforementioned background problems without any local algorithm concerns. The number of the main controllers is 2 or 3, the reliability provided by the main controllers is different, the 3 SDN controllers can improve the reliability of the system clock synchronization function, if the clock of one controller fails, the clock of the other controller is modified, and if the clock is the main clock of the 2 controllers, the reliability cannot be guaranteed.
Example 3
Compared with the two embodiments, the difference is that after the clock of the controller a fails, the local clock of the controller B is artificially modified to some abnormal value during the network operation, as shown in fig. 5. After the clock module of the controller A fails, it stops sending clock synchronization related messages. However, the controller B and the controller C still normally transmit the clock synchronization message, and each slave clock node can still receive the clock synchronization message.
After the clock synchronization messages sent by the controller B and the controller C respectively reach the slave clock, the slave clock judges that the clock synchronization messages are not synchronous with the clock synchronization messages of the controller B but synchronous with the clock synchronization messages of the controller C according to a locally set filtering algorithm because the time value carried in the synchronization messages of the controller B is an abnormal value. Therefore, the slave clock can still receive the normal clock synchronization message, and the clock value of the slave clock can still be consistent with that of the master clock.
And the controller C judges that the time value of the controller B is abnormal through a timestamp carried by the state monitoring message between the controller C and the controller B, sends a notification message to the controller B, and notifies the controller B that the local clock value is modified by the controller B and is kept consistent with the controller C.
The method of the embodiment can still keep the normal operation of the clock synchronization function under the severe conditions that the controller main clock A fails and the clock value of the controller main clock B is artificially modified, thereby providing high-reliability clock synchronization.
Example 4
The application discloses a clock synchronization system based on an SDN (software defined network) master clock, which comprises an SDN controller, an SDN switch and end equipment, wherein the SDN controller is set master clock equipment, interacts with the SDN switch, issues configuration parameters to slave clock equipment, and sends interaction messages among the SDN controllers in the system, wherein the interaction messages are controller state monitoring messages, and the contents of the interaction messages include but are not limited to clock correction values, abnormal identifications and timestamp interaction clock synchronization messages; and after receiving the clock synchronization message, the SDN switch and the end equipment, namely the slave clock equipment execute a filtering algorithm locally, and if not, the message meeting the filtering condition of the filtering algorithm is not synchronized.
The application also provides a computer readable storage medium containing the clock synchronization method based on the SDN master clock.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (11)
1. A clock synchronization method based on an SDN master clock is characterized by comprising the following steps:
manually configuring each controller in an SDN controller cluster as a master clock device, wherein each controller is connected with other slave clock devices in a network;
step two, the master clock device issues configuration parameters to the slave clock device, wherein the configuration parameters are obtained by local calculation of an SDN controller;
step three, the controller master clock sends clock synchronization messages periodically;
step four, after receiving the clock synchronization message, the slave clock device locally executes a filtering algorithm, and the messages meeting the filtering condition of the filtering algorithm are not synchronized, otherwise, the messages are synchronized;
and step five, when a certain controller monitors that the clock values of other controllers in the cluster are abnormal, sending a notice to the controller with the abnormal clock value, and modifying the local clock value by the controller with the abnormal clock value according to the clock value carried by the notice.
2. The SDN master clock-based clock synchronization method according to claim 1, wherein the controllers send interaction messages to each other, the interaction messages carry timestamps, and whether clocks of other controllers are abnormal is determined according to the timestamps.
3. The SDN master clock based clock synchronization method of claim 2, wherein the interaction message content includes, but is not limited to, corrections values, exception identifications, timestamps.
4. The SDN master clock-based clock synchronization method according to any one of claims 1 to 3, wherein in the first step, the existing forms of the controllers comprise physical machines, virtual machines and processes, and the connection modes between the controllers comprise wired connection, wireless connection, inter-process communication and pipe communication.
5. The SDN master clock-based clock synchronization method according to claim 4, wherein in the first step, each controller is connected to a slave clock device, specifically:
each controller is connected with the slave clock device in a wired connection mode or interacts in a wireless communication mode.
6. The SDN master clock-based clock synchronization method of claim 4, wherein the configuration parameters include, but are not limited to, a clock role of each slave clock device, and a role of each port on each slave clock device.
7. The SDN master clock-based clock synchronization method according to claim 4, wherein the step two, that the master clock device issues configuration parameters to the slave clock device, specifically is:
and the configuration parameters are sequentially and respectively issued to the slave clock devices, or the slave clock devices form a list and are issued to the slave clock devices in the list in a unified way.
8. The SDN master clock-based clock synchronization method according to claim 4, wherein in step three, the controller periodically sends a clock synchronization packet, specifically:
each controller sends a first clock synchronization message at the same time or different times;
the forwarding surface of the controller supports the receiving and sending of IEEE802.1AS protocol clock synchronization messages;
the forwarding plane comprises a logic forwarding plane, an abstracted forwarding function set and a process or a function module special for forwarding.
9. The SDN master clock based clock synchronization method according to claim 4, wherein in step five, the notification is an existing message in the SDN controller cluster, and the notification is achieved by adding content to the existing message;
or the notification is a type of message newly added to the SDN controller cluster.
10. The system is characterized by comprising an SDN controller, an SDN switch and end equipment, wherein the SDN controller is set master clock equipment, interacts with the SDN switch, issues configuration parameters to slave clock equipment, and sends interaction messages among the SDN controllers in the system;
and after receiving the clock synchronization message, the SDN switch and the end equipment, namely the slave clock equipment execute a filtering algorithm locally, and if not, the message meeting the filtering condition of the filtering algorithm is not synchronized.
11. A computer-readable storage medium containing the SDN master clock based clock synchronization method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110279442.4A CN113206719B (en) | 2021-03-16 | 2021-03-16 | Clock synchronization method, system and storage medium based on SDN master clock |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110279442.4A CN113206719B (en) | 2021-03-16 | 2021-03-16 | Clock synchronization method, system and storage medium based on SDN master clock |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113206719A true CN113206719A (en) | 2021-08-03 |
CN113206719B CN113206719B (en) | 2023-04-11 |
Family
ID=77025546
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110279442.4A Active CN113206719B (en) | 2021-03-16 | 2021-03-16 | Clock synchronization method, system and storage medium based on SDN master clock |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113206719B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114362866A (en) * | 2021-11-25 | 2022-04-15 | 北京卓越信通电子股份有限公司 | Hot standby system of time synchronization master clock of TSN network |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102347814A (en) * | 2011-10-11 | 2012-02-08 | 上海电力学院 | Slave clock regulation method based on master clock frequency difference |
US20120136956A1 (en) * | 2010-11-29 | 2012-05-31 | Spidercloud Wireless, Inc. | Adaptive precision timing control in a communication system |
CN103684922A (en) * | 2013-12-23 | 2014-03-26 | 蓝盾信息安全技术股份有限公司 | Outlet information privacy checking detection platform system based on SDN (self-defending network) and detection method |
CN104579534A (en) * | 2014-12-31 | 2015-04-29 | 北京东土科技股份有限公司 | Clock synchronization method and system in SDH network |
CN104796213A (en) * | 2015-03-19 | 2015-07-22 | 南京科远自动化集团股份有限公司 | Clock synchronizing control system and method of multi-redundancy controller |
CN110798276A (en) * | 2018-08-02 | 2020-02-14 | 全球能源互联网研究院有限公司 | Time synchronization method and system for SDN (software defined network) of intelligent substation |
CN111510238A (en) * | 2020-04-16 | 2020-08-07 | 中电科航空电子有限公司 | Method and system for centralized monitoring synchronization state of airborne clock |
CN111585683A (en) * | 2020-05-11 | 2020-08-25 | 上海交通大学 | High-reliability clock synchronization system and method for time-sensitive network |
CN111868662A (en) * | 2018-03-22 | 2020-10-30 | 微软技术许可有限责任公司 | Clock synchronization |
CN111884901A (en) * | 2020-07-01 | 2020-11-03 | 浙江杰芯科技有限公司 | Clock synchronization path query method and system based on ring network |
-
2021
- 2021-03-16 CN CN202110279442.4A patent/CN113206719B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120136956A1 (en) * | 2010-11-29 | 2012-05-31 | Spidercloud Wireless, Inc. | Adaptive precision timing control in a communication system |
CN102347814A (en) * | 2011-10-11 | 2012-02-08 | 上海电力学院 | Slave clock regulation method based on master clock frequency difference |
CN103684922A (en) * | 2013-12-23 | 2014-03-26 | 蓝盾信息安全技术股份有限公司 | Outlet information privacy checking detection platform system based on SDN (self-defending network) and detection method |
CN104579534A (en) * | 2014-12-31 | 2015-04-29 | 北京东土科技股份有限公司 | Clock synchronization method and system in SDH network |
CN104796213A (en) * | 2015-03-19 | 2015-07-22 | 南京科远自动化集团股份有限公司 | Clock synchronizing control system and method of multi-redundancy controller |
CN111868662A (en) * | 2018-03-22 | 2020-10-30 | 微软技术许可有限责任公司 | Clock synchronization |
CN110798276A (en) * | 2018-08-02 | 2020-02-14 | 全球能源互联网研究院有限公司 | Time synchronization method and system for SDN (software defined network) of intelligent substation |
CN111510238A (en) * | 2020-04-16 | 2020-08-07 | 中电科航空电子有限公司 | Method and system for centralized monitoring synchronization state of airborne clock |
CN111585683A (en) * | 2020-05-11 | 2020-08-25 | 上海交通大学 | High-reliability clock synchronization system and method for time-sensitive network |
CN111884901A (en) * | 2020-07-01 | 2020-11-03 | 浙江杰芯科技有限公司 | Clock synchronization path query method and system based on ring network |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114362866A (en) * | 2021-11-25 | 2022-04-15 | 北京卓越信通电子股份有限公司 | Hot standby system of time synchronization master clock of TSN network |
Also Published As
Publication number | Publication date |
---|---|
CN113206719B (en) | 2023-04-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102843205B (en) | The method and apparatus that a kind of time synchronized based on Precision Time Protocol restrains | |
CN112769606B (en) | Method, device and storage medium for energy conservation of clock synchronization network | |
US20110026394A1 (en) | Distributed ethernet system and method for detecting fault based thereon | |
CN100450036C (en) | Method and apparatus for preventing loop when RRPP and partial STP network damage recovery | |
EP2477359B1 (en) | Ethernet switch ring (esr) protection method and transit node | |
WO2008098431A1 (en) | An ethernet automatic protection method and system | |
WO2013029441A1 (en) | Mehtod and device for clock synchronization | |
CN113206719B (en) | Clock synchronization method, system and storage medium based on SDN master clock | |
CN102158335B (en) | Method and device for processing time synchronization port | |
WO2015165192A1 (en) | Time synchronization method and device | |
CN105703867A (en) | Rapid deployment system and method suitable for time synchronization network | |
CN101980484B (en) | A kind of method and system realizing router full guard | |
WO2020052687A1 (en) | Network element anti-looping method and apparatus, device, and readable storage medium | |
EP2165463B1 (en) | Connectivity fault management for ethernet tree (e-tree) type services | |
WO2011063725A1 (en) | Method and system for active-standby synchronization | |
JP5527086B2 (en) | Network system | |
WO2013023538A1 (en) | Synchronization network clock maintenance method and device | |
CN103490840A (en) | Device and method for carrying out precision time protocol message processing | |
CN101217445B (en) | A method of loop generation protection and Ethernet ring system | |
CN113055116A (en) | High-reliability time-sensitive network time synchronization method and system | |
CN104125079A (en) | Method and device for determining double-device hot-backup configuration information | |
CN102404104B (en) | Adaptive synchronicity method and system based on different delayed time mechanism | |
KR101192896B1 (en) | Distributed synchronization method and apparatus for fault tolerance | |
CN105897578B (en) | A kind of substation's looped network protocol implementing method of rapidly self-healing | |
CN108174417B (en) | Main/standby switching method and device, related electronic equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |