CN113206719B - 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 PDF

Info

Publication number
CN113206719B
CN113206719B CN202110279442.4A CN202110279442A CN113206719B CN 113206719 B CN113206719 B CN 113206719B CN 202110279442 A CN202110279442 A CN 202110279442A CN 113206719 B CN113206719 B CN 113206719B
Authority
CN
China
Prior art keywords
clock
controller
sdn
slave
clock synchronization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110279442.4A
Other languages
Chinese (zh)
Other versions
CN113206719A (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.)
Network Communication and Security Zijinshan Laboratory
Original Assignee
Network Communication and Security Zijinshan Laboratory
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 Network Communication and Security Zijinshan Laboratory filed Critical Network Communication and Security Zijinshan Laboratory
Priority to CN202110279442.4A priority Critical patent/CN113206719B/en
Publication of CN113206719A publication Critical patent/CN113206719A/en
Application granted granted Critical
Publication of CN113206719B publication Critical patent/CN113206719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

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

Clock synchronization method, system and storage medium based on SDN master clock
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 election Master Clock adopts a BMCA (Best Master Clock Algorithm) Algorithm, selecting the Clock with the optimal performance parameter 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 a 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, because the master clock is normal, the master clock still sends the Announce message regularly, the slave clock does not trigger reselection, and 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, a clock synchronization method based on an 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, interprocess 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 plane of the controller supports the receiving and sending of clock synchronization messages of an IEEE802.1AS protocol;
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 a master clock reselection mechanism of an IEEE802.1AS protocol;
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 plane of the controller supports the receiving and sending of clock synchronization messages of an IEEE802.1AS protocol;
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, when 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.
After receiving the clock synchronization parameter, the slave clock device connected to the SDN cluster first determines whether the parameter is sent to the slave clock device itself, and if the parameter is not sent to the slave clock device itself, forwards the parameter to the device identified by the target address. 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 message. 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 the clock synchronization related message. 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 a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. In addition, parts of the technical solutions provided in the embodiments of the present application that are consistent with 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 (10)

1. A clock synchronization method based on an SDN master clock, the method comprising the steps of:
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;
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;
the notification is an existing message of the SDN controller cluster, and the purpose of notification is achieved by adding content into the existing message; or the notification is a type of message newly added to the SDN controller cluster.
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, exceptions, 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 comprise 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 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;
after receiving a clock synchronization message, the SDN switch and end equipment, namely slave clock equipment execute a filtering algorithm locally, and messages meeting the filtering condition of the filtering algorithm are not synchronized, otherwise, the SDN switch and the end equipment are synchronized; 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 a local clock value by the controller with the abnormal clock value according to the clock value carried by the notice;
the notification is an existing message of the SDN controller cluster, and the purpose of notification is achieved by adding content into the existing message; alternatively, the notification is a type of message newly added to the SDN controller cluster.
10. A computer-readable storage medium, in which a program is stored, which program, when executed by a processor, implements the SDN master clock based clock synchronization method according to any one of claims 1 to 9.
CN202110279442.4A 2021-03-16 2021-03-16 Clock synchronization method, system and storage medium based on SDN master clock Active CN113206719B (en)

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 CN113206719A (en) 2021-08-03
CN113206719B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9515756B2 (en) * 2010-11-29 2016-12-06 Spidercloud Wireless, Inc. Adaptive precision timing control in a communication system
CN102347814B (en) * 2011-10-11 2014-02-26 上海电力学院 Slave clock regulation method based on master clock frequency difference
CN103684922B (en) * 2013-12-23 2017-02-15 蓝盾信息安全技术股份有限公司 Outlet information privacy checking detection platform system based on SDN (self-defending network) and detection method
CN104579534B (en) * 2014-12-31 2017-10-10 北京东土科技股份有限公司 Clock synchronizing method and system in a kind of SDH network
CN104796213B (en) * 2015-03-19 2017-04-26 南京科远自动化集团股份有限公司 Clock synchronizing control system and method of multi-redundancy controller
US10613578B2 (en) * 2018-03-22 2020-04-07 Clock Synchronization Clock synchronization
CN110798276B (en) * 2018-08-02 2022-11-11 全球能源互联网研究院有限公司 Time synchronization method and system for SDN (software defined network) of intelligent substation
CN111510238B (en) * 2020-04-16 2022-09-13 中电科航空电子有限公司 Method and system for centralized monitoring synchronization state of airborne clock
CN111585683B (en) * 2020-05-11 2021-11-23 上海交通大学 High-reliability clock synchronization system and method for time-sensitive network
CN111884901B (en) * 2020-07-01 2021-10-22 浙江杰芯科技有限公司 Clock synchronization path query method and system based on ring network

Also Published As

Publication number Publication date
CN113206719A (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN102843205B (en) The method and apparatus that a kind of time synchronized based on Precision Time Protocol restrains
CN103546914B (en) A kind of method and device of the active and standby management of HSS
CN112769606B (en) Method, device and storage medium for energy conservation of clock synchronization network
CN100450036C (en) Method and apparatus for preventing loop when RRPP and partial STP network damage recovery
CN103744809A (en) Method for dual-computer hot-standby of vehicle information management system on basis of VRRP
WO2008098431A1 (en) An ethernet automatic protection method and system
WO2013029441A1 (en) Mehtod and device for clock synchronization
WO2013117143A1 (en) Clock synchronization method and device
CN113206719B (en) Clock synchronization method, system and storage medium based on SDN master clock
CN105471622A (en) High-availability method and system for main/standby control node switching based on Galera
WO2013086833A1 (en) Clock time synchronization source configuration method and device
WO2015165192A1 (en) Time synchronization method and device
CN105703867A (en) Rapid deployment system and method suitable for time synchronization network
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
JP5527086B2 (en) Network system
WO2013023538A1 (en) Synchronization network clock maintenance method and device
KR20090016676A (en) Uninterrupted network control message generation during local node outages
CN113055116B (en) High-reliability time-sensitive network time synchronization method and system
CN104125079A (en) Method and device for determining double-device hot-backup configuration information
CN103684855A (en) Intelligent control method for cluster routers
WO2016183735A1 (en) Method, apparatus and device for synchronizing virtualized network function (vnf) states
KR101192896B1 (en) Distributed synchronization method and apparatus for fault tolerance
CN108833247A (en) Switching method again and device after link failure recovery
CN105897578B (en) A kind of substation's looped network protocol implementing method of rapidly self-healing

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