Configuration account checking system applied to SDN (Software Defined Network) field

By designing a configuration reconciliation system for data reading and writing, communication, logical reconciliation and graphical user interface modules in the SDN field, the problems of high error risk and difficulty in reconciliation in traditional methods are solved, and efficient and automated configuration reconciliation and Bug fixes to improve network stability and reliability.

CN118784477APending Publication Date: 2024-10-15CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410857409.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15

Smart Images

  • Figure CN118784477A_ABST
    Figure CN118784477A_ABST
Patent Text Reader

Abstract

The invention relates to a configuration reconciliation system applied to the SDN field, and belongs to the field of cloud service data, and the method comprises a data read-write module which is used for carrying out data read-write; the network equipment communication module is used for communication; the reconciliation logic module is used for performing logic reconciliation; the graphical user interface module is used for providing a user interface for operation; and the independent starting module is used for executing independent starting. According to the invention, the data read-write module remotely reads the network configuration data of the SDN controller, and the network device communication module obtains the configuration information on the network device through OpenFlow and Netconf protocols. The reconciliation logic module adopts data comparison based on a JSON format, compares configuration data of a controller and configuration data of equipment one by one, and discovers and reports configuration differences through a difference detection unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of cloud service data centers, and in particular to a configuration reconciliation system applied to the field of SDN. Background Art

[0002] In the development of software-defined networking (SDN) technology, the management and maintenance of network configuration has become one of the key challenges. SDN separates the network control plane from the data plane, allowing network administrators to dynamically manage network resources through a centralized controller. However, this separation also introduces new complexities, especially in ensuring the consistency and accuracy of network configuration.

[0003] Traditional network configuration management methods often rely on manual operations and scattered tools, which not only increases the risk of errors, but also makes reconciliation and troubleshooting very difficult when the network is large. As SDN networks expand in size and complexity, the demand for efficient and automated configuration reconciliation mechanisms is growing.

[0004] To address these challenges, there have been some attempts to develop automated configuration reconciliation tools. These tools focus on automated configuration discovery and verification, but they often lack flexibility and are difficult to adapt to the diversity of different network devices and SDN controllers. In addition, their user interfaces are not friendly enough, which is not conducive to quickly locating problems.

[0005] Therefore, developing a network configuration reconciliation system that is independent of the SDN controller, supports terminal visualization, and can be independently iterated and updated is crucial to improving the operation and maintenance efficiency and reliability of the SDN network. Such a system should be able to monitor changes in network configuration in real time, provide intuitive reconciliation results, and support automated configuration corrections, thereby simplifying the workflow of network administrators, reducing human errors, and improving the stability and security of the entire network.

[0006] In order to solve the above problems, the present invention proposes a configuration reconciliation system applied to the SDN field. Summary of the invention

[0007] In view of the above deficiencies in the prior art, the purpose of the invention is to provide a configuration reconciliation system applied to the SDN field, to establish a network configuration reconciliation method suitable for the SDN field, to meet the requirements of reconciliation at any time point, to support terminal visualization, and to meet the independent iterative update of the reconciliation system.

[0008] The first aspect of the present invention comprises:

[0009] Data reading and writing module, used for reading and writing data;

[0010] A network device communication module, used for communication;

[0011] Reconciliation logic module, used for logical reconciliation;

[0012] A graphical user interface module, used for providing a user interface for operation;

[0013] Independent startup module, used to perform independent startup.

[0014] Furthermore, the data reading and writing module remotely reads the network configuration data in the SDN controller database through the TCP connection technology, and the network device communication module remotely reads the network configuration information on the network device through the OpenFlow and Netconf protocols.

[0015] Furthermore, the reconciliation logic module uses a JSON-based data format to perform reconciliation, compares the configuration in the controller database with the configuration on the network device one by one, and outputs the reconciliation result.

[0016] Furthermore, the reconciliation logic module further includes a difference detection unit for detecting the difference between the configuration in the controller database and the configuration on the network device, and generating a difference report.

[0017] Furthermore, the difference detection unit uses a method based on hash value comparison to detect the consistency of the configuration data.

[0018] Furthermore, the difference detection unit also has an automatic correction function, which can automatically correct the detected differences according to preset rules or manual intervention.

[0019] Furthermore, the graphical user interface module implements a TUI graphical interface based on the Golang language, highlights the difference data, and provides an intuitive display of reconciliation results.

[0020] Furthermore, the independent startup module enables the reconciliation system to be started as an independent command line program, decoupled from the SDN controller, and supports on-demand startup and scheduled task execution.

[0021] The beneficial effects of the present invention are as follows:

[0022] The present invention remotely reads the network configuration data of the SDN controller through the data reading and writing module, and the network device communication module obtains the configuration information on the network device through the OpenFlow and Netconf protocols. The reconciliation logic module uses data comparison based on the JSON format to compare the configuration data of the controller and the device one by one, and discovers and reports the configuration differences through the difference detection unit. The graphical user interface module implements the TUI graphical interface, intuitively displays the reconciliation results, and supports highlighting the difference data. The independent startup module enables the system to run as an independent command line program, which is convenient for on-demand startup and scheduled task execution. The system improves the reconciliation efficiency, reduces the error rate, realizes real-time dynamic reconciliation, and supports automated testing and verification, which helps to improve the stability and reliability of the SDN network. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0024] Figure 1 This is a structural diagram of a configuration and reconciliation system applied in the field of SDN according to an embodiment of the present invention;

[0025] Figure 2 This is a diagram of the data reconciliation system architecture of an embodiment of the present invention;

[0026] Figure 3 This is a data reconciliation logic diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0028] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0029] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0030] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0031] The present invention proposes a configuration reconciliation system applied to the SDN field, which solves the problems of low automation, inaccurate target positioning and labeling, low work efficiency, high technical requirements for testers, cumbersome operations and long time consumption in existing methods.

[0032] System Example

[0033] For a specific embodiment of the present invention, please refer to Figure 1-Figure 3 , the present invention comprises:

[0034] Data reading and writing module, used for reading and writing data;

[0035] A network device communication module, used for communication;

[0036] Reconciliation logic module, used for logical reconciliation;

[0037] A graphical user interface module, used for providing a user interface for operation;

[0038] Independent startup module, used to perform independent startup.

[0039] Preferably, the data reading and writing module remotely reads the network configuration data in the SDN controller database through TCP connection technology, and the network device communication module remotely reads the network configuration information on the network device through OpenFlow and Netconf protocols.

[0040] Preferably, the reconciliation logic module uses a JSON-based data format to perform reconciliation, compares the configuration in the controller database with the configuration on the network device one by one, and outputs the reconciliation result.

[0041] Preferably, the reconciliation logic module further comprises a difference detection unit for detecting the difference between the configuration in the controller database and the configuration on the network device, and generating a difference report.

[0042] Preferably, the difference detection unit uses a method based on hash value comparison to detect the consistency of the configuration data.

[0043] Preferably, the difference detection unit also has an automatic correction function, and can automatically correct the detected differences according to preset rules or manual intervention.

[0044] Preferably, the graphical user interface module implements a TUI graphical interface based on the Golang language, highlights the difference data, and provides an intuitive display of reconciliation results.

[0045] Preferably, the independent startup module enables the reconciliation system to be started as an independent command line program, decoupled from the SDN controller, and supports on-demand startup and scheduled task execution.

[0046] The overall architecture of the reconciliation system proposed in this patent is as follows Figure 2 The system architecture is divided into three parts: UI display layer, namely graphical user interface module, reconciliation logic layer, namely reconciliation logic module and data reading and writing layer, namely data reading and writing module.

[0047] The data read-write layer uses TCP connection technology to remotely read the SDN controller database as the data source for reconciliation. This method of obtaining network configuration data is real-time, complete, and accurate. Each reconciliation is performed at the granularity of a single network device, which will not cause a large read-write pressure on the SDN controller's database.

[0048] The data read-write layer uses Openflow and Netconf protocols to remotely read network configuration information on network devices. The OpenFlow protocol is a communication protocol in the SDN (Software Defined Network) architecture that allows direct access and operation of the forwarding plane of a network switch or router. NETCONF (Network Configuration Protocol) is a network management protocol used to manipulate, configure, and edit the configuration of network devices. It is based on XML-encoded remote procedure calls (RPCs), provides a format definition for configuration data, allows partial configuration updates, and can efficiently modify device configurations.

[0049] The reconciliation logic layer uses a Json-based data format for reconciliation. JSON (JavaScript Object Notation) is a lightweight data exchange format. It uses Javascript syntax to represent data objects, mainly as follows: JSON is plain text, but it is very expressive and can represent data objects vividly. JSON is self-descriptive and easier for people to read and write. JSON is an independent language and platform and can be read and generated by various programming languages. The JSON format is relatively lightweight, has fast transmission speed, and is easy to parse. It supports multiple data types, such as numbers, strings, Booleans, arrays, objects, etc., and has a strict format. For example, strings must be wrapped in double quotes, which is self-explanatory. JSON is an excellent data exchange format. Because of its advantages such as strong expressiveness and easy parsing, it is widely used in software applications. It simplifies data exchange and improves the efficiency of development and parsing.

[0050] The reconciliation logic layer searches for configuration data on the network device one by one according to the network configuration in the SDN controller database. If the configuration exists, it continues to process the next configuration. If the data does not exist, it marks the data as missing, otherwise it marks the data as existing. After all configuration data in the SDN controller database has been processed, if there is still unmarked configuration data on the network device, the remaining data is marked as residual. Figure 2 After processing, the difference data is output to the display layer.

[0051] The data center operation and maintenance developers can usually only log in through the terminal ssh method. The difference data obtained by the traditional reconciliation method is not intuitive enough and can only be displayed in text. TUI (Text-based User Interface) is a text-based interface and user interaction method that only uses text. This reconciliation system uses the Golang language to implement the graphical interface of TUI. The difference data can be highlighted, and the reconciliation results are more intuitive.

[0052] This reconciliation system is started through an independent command line program and is completely decoupled from the SDN controller. It can be started on demand or reconciled regularly using a scheduled task. At the same time, the iterative update of this system is completely decoupled from the SDN controller, making it more flexible.

[0053] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A configuration reconciliation system applied in the field of SDN, characterized in that: include: Data reading and writing module, used for reading and writing data; A network device communication module, used for communication; Reconciliation logic module, used for logical reconciliation; A graphical user interface module, used for providing a user interface for operation; Independent startup module, used to perform independent startup.

2. According to claim 1, a configuration reconciliation system applied to the SDN field is characterized in that: The data reading and writing module remotely reads the network configuration data in the SDN controller database through the TCP connection technology.

3. According to claim 2, a configuration reconciliation system applied to the SDN field is characterized in that: The network device communication module remotely reads the network configuration information on the network device through the OpenFlow and Netconf protocols.

4. According to claim 2, a configuration reconciliation system applied to the SDN field is characterized in that: The reconciliation logic module uses a JSON-based data format to perform reconciliation, compares the configuration in the controller database with the configuration on the network device one by one, and outputs the reconciliation result.

5. According to claim 3, a configuration reconciliation system applied to the SDN field is characterized in that: The reconciliation logic module includes a difference detection unit.

6. The configuration reconciliation system applied to the SDN field according to claim 5, characterized in that: The method is used to detect the difference between the configuration in the controller database and the configuration on the network device, and generate a difference report.

7. The configuration reconciliation system applied to the SDN field according to claim 6, characterized in that: The difference detection unit uses a method based on hash value comparison to detect the consistency of configuration data.

8. The configuration reconciliation system applied to the SDN field according to claim 7, characterized in that: The difference detection unit also has an automatic correction function, which can automatically correct the detected differences according to preset rules or manual intervention.

9. The configuration reconciliation system applied to the SDN field according to claim 8, characterized in that: The graphical user interface module implements a TUI graphical interface based on the Golang language, highlights the difference data, and provides an intuitive display of reconciliation results.

10. The configuration reconciliation system applied to the SDN field according to claim 9, characterized in that: The independent startup module enables the reconciliation system to be started as an independent command line program, decoupled from the SDN controller, and supports on-demand startup and scheduled task execution.