Method for verifying configuration consistency between controller and network element in SDN (Software Defined Network)
By generating and updating version numbers for tenant resources in the SDN network, and performing regular comparisons between the controller and the network element agent, the problem of low flexibility and low automation of tenant resource management in the existing technology is solved, and the Refined management and efficient utilization of SDN network resources.
Patent Information
- Application Number
- CN202410854145.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-27
AI Technical Summary
In SDN networks, as the number of tenants increases and the network scale expands, existing technologies are difficult to effectively manage tenant resources. Manual configuration is prone to errors. Simple automated scripts lack flexibility and cannot meet the rapidly changing network environment and personalized needs.
By assigning a unique ID and type ID to each tenant resource, the version number is generated and updated. The controller and the network element agent regularly synchronize and compare the version numbers. When inconsistencies are found, a processing mechanism is triggered, including reconfiguration and notifying the administrator, and recording Event log.
It achieves refined management of tenant resources in SDN networks, improves network resource utilization efficiency, reduces failure rates and administrator workload, and is suitable for large-scale network environments.
Smart Images

Figure CN118714009A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of software defined networks, and in particular relates to a method for configuration consistency verification between a controller and a network element in an SDN network. Background Art
[0002] In modern network communications, software-defined networking (SDN) has become one of the mainstream technologies for network management. SDN separates the network control layer from the data forwarding layer, allowing network administrators to manage network resources more flexibly. However, with the expansion of network scale and the complexity of business, tenant resource management in SDN networks has become a challenge.
[0003] In an SDN network, tenant resources refer to network resources allocated to specific tenants, such as network bandwidth, IP address space, etc. As the number of tenants increases and services change, the configuration and management of tenant resources becomes complicated. In order to ensure the effective use of network resources and isolation between tenants, tenant resources need to be managed in a sophisticated manner.
[0004] In the prior art, the management of tenant resources usually relies on manual configuration or simple automated scripts. These methods work well when the network scale is small or the number of tenants is small, but as the network scale expands and the number of tenants increases, these methods gradually expose their shortcomings. First, manual configuration is prone to errors and difficult to adapt to the rapidly changing network environment; second, simple automated scripts lack flexibility and cannot meet the personalized needs of different tenants.
[0005] Therefore, a new method is needed to more effectively manage tenant resources in the SDN network to adapt to the ever-changing network environment and tenant needs. The present invention is a solution to this problem. Summary of the invention
[0006] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a method for configuration consistency check between a controller and a network element in an SDN network, which can adapt to the ever-changing network environment and tenant requirements. The present invention is a solution to this problem.
[0007] A first aspect of the present invention provides a method for configuration consistency checking between a controller and a network element in an SDN network, comprising:
[0008] Step S1: assign a unique tenant resource ID to each tenant resource;
[0009] Step S2: assign a unique tenant resource type ID to each tenant resource type;
[0010] Step S3: During the configuration of the tenant resources, a tenant resource version number is generated;
[0011] Step S4: When the tenant resource changes, update the version number of the tenant resource;
[0012] Step S5: Regularly synchronize and compare the version numbers of tenant resources through interaction between the controller and the network element agent;
[0013] Step S6: When it is found that the tenant resource version numbers are inconsistent, the corresponding processing mechanism is triggered.
[0014] Furthermore, the method for generating the tenant resource version number in step S3 includes:
[0015] Record the initial configuration information of tenant resources;
[0016] When a tenant resource changes, a new version number is generated, which is calculated based on the initial configuration information and the changed configuration information.
[0017] Furthermore, the method for updating the tenant resource version number in step S4 includes:
[0018] Record the current version number of the tenant resource;
[0019] When tenant resources change, update the current version number of the tenant resources to the new version number;
[0020] Record the content and time of the changes.
[0021] Furthermore, the method of regularly synchronizing and comparing the version numbers of tenant resources in step S5 includes:
[0022] The controller periodically sends requests to the network element agent to obtain the version number information of the tenant resources;
[0023] The network element agent responds to the controller's request and returns the version number information of the current tenant resource;
[0024] The controller compares the received tenant resource version number information with the locally recorded version number information.
[0025] Furthermore, the method of regularly synchronizing and comparing the version numbers of tenant resources in step S5 also includes taking corresponding processing measures when it is found that the version numbers of tenant resources are inconsistent.
[0026] Furthermore, when it is found that the version numbers of tenant resources are inconsistent, the processing measures taken include reconfiguring the resources.
[0027] Furthermore, when it is found that the tenant resource version numbers are inconsistent, the processing measures taken also include notifying the administrator to intervene.
[0028] Furthermore, when it is found that the tenant resource version numbers are inconsistent, the processing measures taken also include recording event logs.
[0029] Furthermore, the method also includes the step of recording the initial configuration information and change history of the tenant resources.
[0030] A second aspect of the present invention provides a device for configuration consistency check between a controller and a network element in an SDN network, comprising:
[0031] A tenant resource ID allocation module is used to allocate a unique tenant resource ID to each tenant resource;
[0032] A tenant resource type ID allocation module, used to allocate a unique tenant resource type ID to each tenant resource type;
[0033] A tenant resource version number generation module is used to generate a tenant resource version number during the configuration process of tenant resources;
[0034] The tenant resource version number update module is used to update the version number of the tenant resource when the tenant resource changes;
[0035] The tenant resource version number synchronization module is used to regularly synchronize and compare the version numbers of tenant resources through the interaction between the controller and the network element agent;
[0036] The tenant resource version number processing module is used to take corresponding processing measures when the tenant resource version number is found to be inconsistent.
[0037] The beneficial effects of the present invention are as follows:
[0038] The present invention can realize the refined management of tenant resources in the SDN network, improve the utilization efficiency of network resources, reduce the network failure rate, and reduce the workload of administrators. In addition, the present invention also has good scalability and can be applied to large-scale SDN network environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] 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.
[0040] Figure 1 This is a flow chart of a method for configuration consistency checking between a controller and a network element in an SDN network according to an embodiment of the present invention;
[0041] Figure 2A tenant resource version data table according to an embodiment of the present invention;
[0042] Figure 3 A tenant resource data table according to an embodiment of the present invention;
[0043] Figure 4 This is a tenant resource data table according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. 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.
[0048] The present invention proposes a method for configuration consistency verification between a controller and a network element in an SDN network, 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.
[0049] Method Embodiment
[0050] The present invention provides a method for configuration consistency verification between a controller and a network element in an SDN network. For details, please refer to Figure 1-Figure 4 , comprising the following steps:
[0051] Step S1: assign a unique tenant resource ID to each tenant resource;
[0052] Step S2: assign a unique tenant resource type ID to each tenant resource type;
[0053] Step S3: During the configuration of tenant resources, a tenant resource version number is generated;
[0054] Step S4: When the tenant resource changes, update the version number of the tenant resource;
[0055] Step S5: Regularly synchronize and compare the version numbers of tenant resources through interaction between the controller and the network element agent;
[0056] Step S6: When it is found that the tenant resource version numbers are inconsistent, the corresponding processing mechanism is triggered.
[0057] Furthermore, the method for generating the tenant resource version number in step S3 includes:
[0058] Record the initial configuration information of tenant resources;
[0059] When a tenant resource changes, a new version number is generated, which is calculated based on the initial configuration information and the changed configuration information.
[0060] Furthermore, the method for updating the tenant resource version number in step S4 includes:
[0061] Record the current version number of the tenant resource;
[0062] When tenant resources change, update the current version number of the tenant resources to the new version number;
[0063] Record the content and time of the changes.
[0064] Furthermore, the method of regularly synchronizing and comparing the version numbers of tenant resources in step S5 includes:
[0065] The controller periodically sends requests to the network element agent to obtain the version number information of the tenant resources;
[0066] The network element agent responds to the controller's request and returns the version number information of the current tenant resource;
[0067] The controller compares the received tenant resource version number information with the locally recorded version number information.
[0068] Furthermore, the method of regularly synchronizing and comparing the version numbers of tenant resources in step S5 also includes taking corresponding processing measures when it is found that the version numbers of tenant resources are inconsistent.
[0069] Furthermore, when it is found that the version numbers of tenant resources are inconsistent, the processing measures taken include reconfiguring the resources.
[0070] Furthermore, when it is found that the tenant resource version numbers are inconsistent, the processing measures taken also include notifying the administrator to intervene.
[0071] Furthermore, when it is found that the tenant resource version numbers are inconsistent, the processing measures taken also include recording event logs.
[0072] Furthermore, the method also includes the step of recording the initial configuration information and change history of the tenant resources.
[0073] In summary, the process of the present invention is as follows:
[0074] 1. During the design phase, design the following concepts for resources: tenant resource version number, resource class, resource class version number, resource, and resource version number;
[0075] 2. When northbound resources are changed, after updating the resources, the tenant resource version number, resource version number, and resource class version number are changed at the same time;
[0076] 3. The controller periodically initiates a reconciliation request to the network element agent;
[0077] 4. The network element agent returns the tenant resource version number;
[0078] 5. The controller compares the tenant resource version number to see if it has changed;
[0079] 6. If the tenant resource version number has not changed, jump to the next tenant; if the tenant version number has changed, the controller will get the resource class version number again;
[0080] 7. The controller compares the resource version number to see if it has changed;
[0081] 8. If the resource class version number has not changed, skip the comparison of the detailed list of this resource and the comparison of this type of resources is completed.
[0082] The embodiment contents are as follows:
[0083] 1. When designing the Mysql data table, design three tables to save resource version information. The distribution is tenant_resource_seq (such as Figure 2 ),tenant_resource_type_seq_table (such as Figure 3 ) and resource_table( Figure 4 )
[0084] 2. When the user modifies the resource, update the version field of the tenant_resource_seq, tenant_resource_table and resource_type_seq_table data tables
[0085] 3. The controller periodically initiates a reconciliation request to the network element agent
[0086] 4. The network element agent returns the tenant resource version number information, such as {"tenant_id_1":"version_1","tenant_id_2":"version2"}
[0087] 5. Compare the tenant version number information returned by the network element agent with the version information in the controller. If the tenant version numbers are consistent, it means that the configuration of the tenant has not changed, and the configuration comparison of this tenant is skipped; if the tenant version numbers are inconsistent, call the network element agent interface to obtain the tenant resource class version number information
[0088] 6. The network element agent returns resource version information, such as {"pool_resource_type":100}
[0089] 7. The controller determines whether the version number 100 of pool_resource_type returned in the network element agent is equal to the version field in the MySQL data table resource_type_seq_table
[0090] 8. If the version number of pool_resource_type returned in the network element agent is equal to the version field in the MySQL data table resource_type_seq_table, it means that such data has not changed.
[0091] 9. Carry out the comparison of the next resource category.
[0092] Device Embodiment
[0093] Another specific embodiment of the present invention, in a second aspect of the present invention, provides a device for configuration consistency check between a controller and a network element in an SDN network, comprising:
[0094] A tenant resource ID allocation module is used to allocate a unique tenant resource ID to each tenant resource;
[0095] A tenant resource type ID allocation module, used to allocate a unique tenant resource type ID to each tenant resource type;
[0096] A tenant resource version number generation module is used to generate a tenant resource version number during the configuration process of tenant resources;
[0097] The tenant resource version number update module is used to update the version number of the tenant resource when the tenant resource changes;
[0098] The tenant resource version number synchronization module is used to regularly synchronize and compare the version numbers of tenant resources through the interaction between the controller and the network element agent;
[0099] The tenant resource version number processing module is used to take corresponding processing measures when the tenant resource version number is found to be inconsistent.
[0100] 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 method for configuration consistency check between a controller and a network element in an SDN network, characterized in that: include: Step S1: assign a unique tenant resource ID to each tenant resource; Step S2: assign a unique tenant resource type ID to each tenant resource type; Step S3: During the configuration of tenant resources, a tenant resource version number is generated; Step S4: When the tenant resource changes, update the version number of the tenant resource; Step S5: Regularly synchronize and compare the version numbers of tenant resources through interaction between the controller and the network element agent; Step S6: When it is found that the tenant resource version numbers are inconsistent, the corresponding processing mechanism is triggered.
2. A method for configuration consistency check between a controller and a network element in an SDN network according to claim 1, characterized in that: The method for generating the tenant resource version number in step S3 includes: Record the initial configuration information of tenant resources; When a tenant resource changes, a new version number is generated, which is calculated based on the initial configuration information and the changed configuration information.
3. A method for configuration consistency check between a controller and a network element in an SDN network according to claim 2, characterized in that: The method for updating the tenant resource version number in step S4 includes: Record the current version number of the tenant resource; When tenant resources change, update the current version number of the tenant resources to the new version number; Record the content and time of the changes.
4. The method for configuration consistency check between a controller and a network element in an SDN network according to claim 3, characterized in that: The method for regularly synchronizing and comparing the version numbers of tenant resources in step S5 includes: The controller periodically sends requests to the network element agent to obtain the version number information of the tenant resources; The network element agent responds to the controller's request and returns the version number information of the current tenant resource; The controller compares the received tenant resource version number information with the locally recorded version number information.
5. The method for configuration consistency check between a controller and a network element in an SDN network according to claim 4, characterized in that: The method of regularly synchronizing and comparing the version numbers of tenant resources in step S5 also includes taking corresponding processing measures when it is found that the version numbers of tenant resources are inconsistent.
6. A method for configuration consistency check between a controller and a network element in an SDN network according to claim 5, characterized in that: When it is found that the tenant resource version numbers are inconsistent, the processing measures taken include reconfiguring the resources.
7. A method for configuration consistency check between a controller and a network element in an SDN network according to claim 6, characterized in that: When it is found that the tenant resource version numbers are inconsistent, the processing measures taken also include notifying the administrator to intervene.
8. The method for configuration consistency check between a controller and a network element in an SDN network according to claim 7, characterized in that: When it is found that the tenant resource version numbers are inconsistent, the processing measures taken also include recording event logs.
9. A method for configuration consistency check between a controller and a network element in an SDN network according to claim 8, characterized in that: It also includes steps to record initial configuration information and change history of tenant resources.
10. A device for configuration consistency check between a controller and a network element in an SDN network, characterized in that: The device is used to perform the method according to any one of claims 1 to 9, comprising: A tenant resource ID allocation module is used to allocate a unique tenant resource ID to each tenant resource; A tenant resource type ID allocation module, used to allocate a unique tenant resource type ID to each tenant resource type; A tenant resource version number generation module is used to generate a tenant resource version number during the configuration process of tenant resources; The tenant resource version number update module is used to update the version number of the tenant resource when the tenant resource changes; The tenant resource version number synchronization module is used to regularly synchronize and compare the version numbers of tenant resources through the interaction between the controller and the network element agent; The tenant resource version number processing module is used to take corresponding processing measures when the tenant resource version number is found to be inconsistent.
Citation Information
Cited By
Configuration verification method and device, electronic equipment and storage medium
CN119766653A
A configuration verification method and device, electronic equipment and storage medium
CN119766653B
