CN110865993B - SDN controller cluster system - Google Patents
SDN controller cluster system Download PDFInfo
- Publication number
- CN110865993B CN110865993B CN201911066568.2A CN201911066568A CN110865993B CN 110865993 B CN110865993 B CN 110865993B CN 201911066568 A CN201911066568 A CN 201911066568A CN 110865993 B CN110865993 B CN 110865993B
- Authority
- CN
- China
- Prior art keywords
- sdn controller
- data
- sdn
- cluster
- database
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/214—Database migration support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention provides an SDN controller cluster system, which comprises an SDN controller cluster and a database server cluster; each SDN controller in the SDN controller cluster comprises a local cache and a Zookeeper database, and the SDN controller cluster comprises a main SDN controller and a plurality of standby SDN controllers; the database server cluster comprises a plurality of local DBs; the local cache of the main SDN controller is in data communication with the local DB of the database server cluster, and the Zookeeper database of the main SDN controller is in data communication with the Zookeeper databases of other standby SDN controllers to achieve data synchronization. According to the SDN control method, a database server cluster is adopted to replace local databases of all SDN controllers, the SDK controllers do not need to operate the databases, and the pressure of SDN control on data processing is relieved; after the main and standby switching, the synchronous data source changes, so that the consistency of data is ensured, and the interruption of service caused by data difference is avoided.
Description
Technical Field
The invention belongs to the technical field of network architecture design, and particularly relates to an SDN controller cluster system.
Background
An SDN (Software Defined Network) Network is a novel Network architecture, centralizes and controls resources of the whole Network, and has very important significance for improving Network resource delivery. Some vendors use a single SDN controller, which has the advantage of simple control. But there is a fatal disadvantage that the current controller is down, resulting in an unmanaged state of the entire network. Some manufacturers adopt a master controller technology, so that the pressure of a single SDN controller is relieved to a certain extent, but the master controller and the slave controller are easy to generate a split brain condition, so that double leader controllers may appear in the environment, and a network control storm is caused.
Most manufacturers adopt a cluster SDN controller to solve the problems of poor controller stability and poor control efficiency. A model of a cluster controller is shown in fig. 1.
The number of SDN controllers is a base number, 3,5,7. The purpose of the plurality of controllers is to quickly elect the master controller. The SDN controller data synchronization is as follows. The data is externally provided by locally cached data, and the purpose of the data is to improve the performance of the controller. The SDN controller adopts a load balancing mode, and different SDN controllers control different devices.
Synchronization of cluster data is realized through Zookeeper (ZK). When the data is received, the data is stored into a local cache. A local Database (DB), and a database of ZK (DB). Database changes in ZK will inform other controllers of the data changes. Other controllers process this data change, writing the data to local caches and local databases. And when the cluster is subjected to master-slave switching, synchronizing the data in the ZK DB to other controllers. And realizing the data synchronization of the clusters.
This cluster system has the following disadvantages:
1. the local cache provides external data, although performance can be guaranteed, local cache data among clusters are difficult to keep consistent, and abnormal services may be caused by switching of the primary and standby SDN servers.
2. The local DB is only used for persistent data, the utilization rate is low, and each controller has a local database, and the number of databases is proportional to the number of controllers, which results in waste of the number of databases. Data of databases among clusters may be inconsistent, and if the data is recovered from the databases, some services may be abnormal.
Disclosure of Invention
In view of this, the present invention is directed to provide an SDN controller cluster system, which optimizes a process of processing data, ensures consistency between SDN controllers, and avoids service interruption due to data differences.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
an SDN controller cluster system comprises an SDN controller cluster and a database server cluster;
each SDN controller in the SDN controller cluster comprises a local cache and a Zookeeper database, and the SDN controller cluster comprises a main SDN controller and a plurality of standby SDN controllers; the database server cluster comprises a plurality of local DB;
the local cache of the main SDN controller is in data communication with the local DB of the database server cluster, and the Zookeeper database of the main SDN controller is in data communication with the Zookeeper databases of other standby SDN controllers to achieve data synchronization.
Further, the method for processing data change by the SDN controller cluster system includes the following steps:
1) receiving, by a master SDN controller, a change in data;
2) the main SDN controller checks the validity of the data;
3) the master SDN controller processes data and stores the data into a local cache of the master SDN controller and a local DB of a database server cluster;
4) the main SDN controller stores the data into a Zookeeper database of the main SDN controller for data synchronization;
5) after each standby SDN controller receives the data change of the Zookeeper database of the main SDN controller, the data is firstly written into the Zookeeper database, and then the data is written into a local cache of the standby SDN controller.
Further, the method for switching between the main cluster and the standby cluster of the SDN controller cluster system includes the following steps:
1) the new master SDN controller obtains data from the database server cluster;
2) the new master SDN controller stores the data into a local cache;
3) the new main SDN controller stores the data into a Zookeeper database, the data in the Zookeeper database changes, and other standby SDN controllers are informed of processing the data changes;
4) the standby SDN controller stores the data into a Zookeeper database;
5) the standby SDN controller stores the data into a local cache.
Compared with the prior art, the invention has the following advantages:
(1) according to the SDN control method, the database server cluster is adopted to replace local databases of all SDN controllers, the SDK controllers do not need to operate the databases, and the pressure of SDN control on data processing is relieved;
(2) optimizing the data processing step of the SDN controller, improving the performance of the SDN controller, and enabling the data migration of the SDN controller to be more flexible; after the main and standby switching, the synchronous data source changes, so that the consistency of data is ensured, and the interruption of service caused by data difference is avoided;
(3) stripping a layer of data processing of the SDN processor, and concentrating the SDN controller on a control layer to improve the efficiency of the controller;
(4) according to the method and the device, the quantity of the databases is not increased for the expansion of the SDN controller cluster, and the stability of the acquired data is ensured.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation of the invention. In the drawings:
fig. 1 is a schematic diagram of a conventional SDN controller cluster architecture;
fig. 2 is an architecture diagram of an SDN controller cluster system according to an embodiment of the present invention;
fig. 3 is a flowchart of processing data change by the SDN controller cluster system according to the embodiment of the present invention;
fig. 4 is a flowchart of primary/standby switching of an SDN controller cluster system according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
An SDN controller cluster system according to an embodiment of the present invention, as shown in fig. 2, includes an SDN controller cluster and a database server cluster;
each SDN controller in the SDN controller cluster comprises a local cache and a Zookeeper database, and the SDN controller cluster comprises a main SDN controller and a plurality of standby SDN controllers; the database server cluster comprises a plurality of local DBs;
the local cache of the main SDN controller is in data communication with the local DB of the database server cluster, and the Zookeeper database of the main SDN controller is in data communication with the Zookeeper databases of other standby SDN controllers to achieve data synchronization.
The invention adds a new database server for providing the service of the database. The database adopts a cluster mode, and the stability of the database is improved.
As shown in fig. 3, the method for processing data change by the SDN controller cluster system includes the following steps:
1) receiving, by the master SDN controller, a change in data;
2) the main SDN controller checks the validity of the data;
3) the master SDN controller processes data and stores the data into a local cache of the master SDN controller and a local DB of a database server cluster;
4) the main SDN controller stores the data into a Zookeeper database of the main SDN controller for data synchronization;
5) after each standby SDN controller receives the data change of the Zookeeper database of the main SDN controller, the data are firstly written into the Zookeeper database, and then the data are written into a local cache of the standby SDN controller.
As shown in fig. 4, the method for switching between master and slave clusters in the SDN controller cluster system includes the following steps:
1) the new master SDN controller acquires data from the database server cluster;
2) the new master SDN controller stores the data into a local cache;
3) the new main SDN controller stores the data into a Zookeeper database, the data in the Zookeeper database changes, and other standby SDN controllers are informed of processing the change of the data;
4) the standby SDN controller stores the data into a Zookeeper database;
5) the standby SDN controller stores the data into a local cache.
When the SDN controller cluster is subjected to active-standby switching, the data synchronization is carried out through the local database, the local data are written into the local cache and the ZK DB (Zookeeper database), the consistency of the data is ensured, and the continuity of the service is ensured. The data source in the new main SDN controller is the data in the database server, and the data is synchronized to other SDN controllers, so that the consistency of the data is guaranteed. Therefore, data synchronization of the SDN controller is ensured, and the performance of the SDN controller may be improved. Specifically, the SDK controller does not need to operate a database, so that the pressure of SDN control on data processing is relieved; optimizing data processing steps of the SDN controller, and improving the performance of the SDN controller; consistency among SDN controllers is guaranteed, and service interruption caused by data difference is avoided; for the expansion of the SDN controller cluster, the number of databases cannot be increased, and the stability of the acquired data is ensured; migration of SDN controller data is more flexible.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.
Claims (3)
1. An SDN controller cluster system, characterized in that: the method comprises the steps of comprising an SDN controller cluster and a database server cluster;
each SDN controller in the SDN controller cluster comprises a local cache and a Zookeeper database, and the SDN controller cluster comprises a main SDN controller and a plurality of standby SDN controllers; the database server cluster comprises a plurality of local DBs;
the local cache of the main SDN controller is in data communication with the local DB of the database server cluster, and the Zookeeper database of the main SDN controller is in data communication with the Zookeeper databases of other standby SDN controllers to achieve data synchronization.
2. A method for processing data change based on the SDN controller cluster system of claim 1, wherein: the method for processing data change by the SDN controller cluster system comprises the following steps:
1) receiving, by a master SDN controller, a change in data;
2) the main SDN controller checks the validity of the data;
3) the master SDN controller processes data and stores the data into a local cache of the master SDN controller and a local DB of a database server cluster;
4) the main SDN controller stores the data into a Zookeeper database of the main SDN controller for data synchronization;
5) after each standby SDN controller receives the data change of the Zookeeper database of the main SDN controller, the data is firstly written into the Zookeeper database, and then the data is written into a local cache of the standby SDN controller.
3. A method for switching between master and slave clusters based on the SDN controller cluster system in claim 1, characterized in that: the method for switching the main cluster and the standby cluster of the SDN controller cluster system comprises the following steps:
1) the new master SDN controller obtains data from the database server cluster;
2) the new master SDN controller stores the data into a local cache;
3) the new main SDN controller stores the data into a Zookeeper database, the data in the Zookeeper database changes, and other standby SDN controllers are informed of processing the change of the data;
4) the standby SDN controller stores the data into a Zookeeper database;
5) the standby SDN controller stores the data into a local cache.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911066568.2A CN110865993B (en) | 2019-11-04 | 2019-11-04 | SDN controller cluster system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911066568.2A CN110865993B (en) | 2019-11-04 | 2019-11-04 | SDN controller cluster system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110865993A CN110865993A (en) | 2020-03-06 |
CN110865993B true CN110865993B (en) | 2022-09-09 |
Family
ID=69654726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911066568.2A Active CN110865993B (en) | 2019-11-04 | 2019-11-04 | SDN controller cluster system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110865993B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113472891B (en) * | 2021-07-15 | 2024-04-26 | 浪潮思科网络科技有限公司 | SDN controller cluster data processing method, equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015078498A1 (en) * | 2013-11-27 | 2015-06-04 | Huawei Technologies Co., Ltd. | Method and system for balancing load in a sdn network |
CN106210123A (en) * | 2016-08-03 | 2016-12-07 | 付宏伟 | The software defined network controller system of one multinode |
CN106953744A (en) * | 2017-02-27 | 2017-07-14 | 浙江工商大学 | A kind of SDN cluster controllers High Availabitity architecture design method |
CN107682411A (en) * | 2017-09-14 | 2018-02-09 | 广州西麦科技股份有限公司 | A kind of extensive SDN controllers cluster and network system |
CN107769961A (en) * | 2017-09-14 | 2018-03-06 | 广州西麦科技股份有限公司 | A kind of SDN controllers cluster and network system |
-
2019
- 2019-11-04 CN CN201911066568.2A patent/CN110865993B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015078498A1 (en) * | 2013-11-27 | 2015-06-04 | Huawei Technologies Co., Ltd. | Method and system for balancing load in a sdn network |
CN106210123A (en) * | 2016-08-03 | 2016-12-07 | 付宏伟 | The software defined network controller system of one multinode |
CN106953744A (en) * | 2017-02-27 | 2017-07-14 | 浙江工商大学 | A kind of SDN cluster controllers High Availabitity architecture design method |
CN107682411A (en) * | 2017-09-14 | 2018-02-09 | 广州西麦科技股份有限公司 | A kind of extensive SDN controllers cluster and network system |
CN107769961A (en) * | 2017-09-14 | 2018-03-06 | 广州西麦科技股份有限公司 | A kind of SDN controllers cluster and network system |
Non-Patent Citations (1)
Title |
---|
基于多控制器的SDN研究;郭东东;《中国优秀硕士学位论文全文数据库 (基础科学辑)》;20170228;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110865993A (en) | 2020-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11360854B2 (en) | Storage cluster configuration change method, storage cluster, and computer system | |
CN104199666A (en) | Dynamic configuration method and device for application program | |
AU2014209697B2 (en) | Method and system for using a recursive event listener on a node in hierarchical data structure | |
CN113067850B (en) | Cluster arrangement system under multi-cloud scene | |
CN107404509B (en) | Distributed service configuration system and information management method | |
WO2014177085A1 (en) | Distributed multicopy data storage method and device | |
US20200112499A1 (en) | Multiple quorum witness | |
CN105306237A (en) | Distributed management method and device for network management | |
CN110865993B (en) | SDN controller cluster system | |
CN103312541A (en) | Management method of high-availability mutual backup cluster | |
CN111049886A (en) | Multi-region SDN controller data synchronization method, server and system | |
CN113992695B (en) | Method for service cooperation between network element devices and network element device | |
CN112231399A (en) | Method and device applied to graph database | |
CN105302817A (en) | Distributed file system management method and apparatus | |
CN114860782B (en) | Data query method, device, equipment and medium | |
CN111641564B (en) | Cluster system of SDN controller and issuing configuration method | |
CN111064643B (en) | Node server and data interaction method and related device thereof | |
CN109992384B (en) | Service registration discovery coordination system and method thereof | |
CN113472891A (en) | SDN controller cluster data processing method, device and medium | |
CN109344192B (en) | Optimized CIMISS database system and adaptation method thereof | |
JP2024514467A (en) | Geographically distributed hybrid cloud cluster | |
CN112118282A (en) | Service node elastic expansion method based on RabbitMQ cluster | |
CN111142921A (en) | Software upgrading method and device | |
CN115225450A (en) | Multi-data machine room virtualization cluster management system based on edge computing | |
CN117062259A (en) | Node equipment management method and system |
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 |