Flow table reconciliation method, device, computer equipment, storage medium and program product

By creating a reconciliation container in OpenFlow network, using switch data and logical data to generate correct flow tables, and automatically reconciliation processing, the problems of low efficiency and low accuracy of traditional flow table reconciliation are solved, and efficient and accurate flow is achieved Reconciliation.

CN117914704BActive Publication Date: 2024-11-22DAWNING CLOUD COMPUTING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311785278.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-22
Publication Date
2024-11-22
Estimated Expiration
2043-12-22

AI Technical Summary

Technical Problem

Traditional flow table reconciliation methods are inefficient and low in accuracy, and waste human resources. They cannot effectively avoid the residual, missing or incorrect flow tables in OpenFlow switches.

Method used

By creating a reconciliation container and running the container based on the switch data and logical data of the node to be reconciled, the correct flow table is automatically generated, and the stored flow table is automatically reconciled, identify and correct errors to ensure the accuracy of the flow table. .

Benefits of technology

It improves the accuracy and efficiency of reconciliation of flow statements, avoids the inefficiency of manual reconciliation, ensures the correctness of flow statements, and reduces the waste of manual resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117914704B_ABST
    Figure CN117914704B_ABST
Patent Text Reader

Abstract

The present application relates to a flow table reconciliation method, apparatus, computer equipment, storage medium and program product. The method comprises: creating a reconciliation container in response to a reconciliation instruction, the reconciliation instruction comprising an identifier of a first node, then, running the reconciliation container according to switch data and logic data corresponding to the identifier of the first node to generate a first flow table, and then reconciling a second flow table corresponding to the first node according to the first flow table. The use of this method can improve the efficiency and accuracy of flow table reconciliation and avoid the waste of manual resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of high performance computing technology, and in particular to a flow table reconciliation method, apparatus, computer equipment, storage medium and program product. Background Art

[0002] SDN (Software Defined Network) is an emerging network architecture that separates network control functions from forwarding functions and realizes programmable control. SDN includes controllers and forwarders, and OpenFlow is a network communication protocol applied to SDN.

[0003] In OpenFlow, flow tables are used to guide packet forwarding. In a cloud environment, a node's flow table may contain tens of thousands of rules. In some cases, it is necessary to check the rules in the flow table to avoid residual, missing, or incorrect flow tables in the OpenFlow switch.

[0004] The traditional flow table reconciliation method usually involves manually reconciling the flow table and performing corresponding processing, which has the problems of low efficiency, low accuracy and waste of manual resources. Summary of the invention

[0005] Based on this, it is necessary to provide a flow table reconciliation method, device, computer equipment, storage medium and program product with high reconciliation efficiency and accuracy to address the above technical problems.

[0006] In a first aspect, the present application provides a flow table reconciliation method, comprising:

[0007] creating a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of the first node;

[0008] According to the switch data and the logic data corresponding to the identifier of the first node, run the reconciliation container to generate a first flow table;

[0009] The second flow table corresponding to the first node is reconciled according to the first flow table.

[0010] In the above embodiment, by creating a reconciliation container and running the reconciliation container based on the switch data and logic data corresponding to the identifier of the first node to be reconciled, the initialized first flow table corresponding to the switch data and logic data can be automatically generated. Since the first flow table is generated based on the switch data and logic data of the first node, the first flow table is the correct flow table corresponding to the first node. By automatically reconciling the first flow table with the second flow table currently stored in the first node, it is possible to accurately determine the possible errors in the second flow table, and handle these errors accordingly to obtain the correct second flow table, thereby improving the accuracy of the flow table reconciliation. In addition, since the automatic reconciliation of the flow table is realized, the problems of low reconciliation efficiency and waste of human resources in the manual reconciliation of the flow table in the traditional technology can be avoided.

[0011] In one embodiment, creating a reconciliation container in response to a reconciliation instruction includes:

[0012] In response to the reconciliation instruction, a reconciliation container is created on the second node; a controller, a switch and a database are deployed in the reconciliation container.

[0013] In the above embodiment, by creating a reconciliation container on the second node, and deploying a controller, a switch and a database in the reconciliation container, the architecture of the reconciliation container is the same as that of the first node, ensuring that the operating environment of the reconciliation container is the same as that of the first node, ensuring that the first flow table generated by running the reconciliation container based on the switch data and the logical data is a correct flow table, and improving the correctness of the first flow table.

[0014] In one embodiment, running the reconciliation container according to the switch data and the logic data corresponding to the identifier of the first node to generate a first flow table includes:

[0015] According to the identifier of the first node, copy the switch data of the first node to the switch, and copy the logic data to the database;

[0016] Based on the switch data and the logic data, the reconciliation container is loaded and run to generate a first flow table.

[0017] In the above embodiment, the switch data corresponding to the first node is directly copied to the switch of the reconciliation container, and the logical data is copied to the database in the reconciliation container, ensuring that the running data in the reconciliation container is the same as that in the first node, thereby more accurately generating the correct first flow table corresponding to the first node.

[0018] In one embodiment, reconciling the second flow table corresponding to the first node according to the first flow table includes:

[0019] Comparing the first flow table with the second flow table by the controller in the reconciliation container to obtain a comparison result;

[0020] The second flow table is reconciled according to the comparison result.

[0021] In the above embodiment, the controller in the reconciliation container compares the first flow table and the second flow table, so as to accurately determine the problems in the second flow table according to the comparison result, so as to check and correct the incorrect parts of the second flow table, make small changes to the second flow table, and have higher accuracy.

[0022] In one embodiment, reconciliation processing is performed on the second flow table according to the comparison result, including at least one of the following:

[0023] If the comparison result shows that the second flow table contains a residual flow table, deleting the residual flow table in the second flow table;

[0024] In the case where there are missing rules in the second flow table, the missing rules in the second flow table are completed according to the first flow table;

[0025] When there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

[0026] In the above embodiment, three reconciliation processing schemes are provided according to the problems of flow table residues, missing rules, and erroneous rules that may exist in the second flow table, so that the reconciliation processing of the second flow table is more comprehensive, thereby improving the accuracy of the updated second flow table.

[0027] In one of the embodiments, the network of the reconciliation container is isolated from the host network.

[0028] In the above embodiment, the network of the reconciliation container is isolated from the host network, so as to avoid the impact of the host network on the running of the reconciliation container.

[0029] In a second aspect, the present application also provides a flow table reconciliation device, including:

[0030] A container creation module, configured to create a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of the first node;

[0031] A first flow table generating module, configured to run the reconciliation container according to the switch data and the logic data corresponding to the identifier of the first node, so as to generate a first flow table;

[0032] A reconciliation module is used to perform reconciliation processing on the second flow table corresponding to the first node according to the first flow table.

[0033] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.

[0035] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in the first aspect are implemented.

[0036] The above-mentioned flow table reconciliation method, device, computer equipment, storage medium and program product, by responding to the reconciliation instruction to create a reconciliation container, the reconciliation instruction includes the identification of the first node, then, according to the switch data and logical data corresponding to the identification of the first node, the reconciliation container is run to generate a first flow table, and then the second flow table corresponding to the first node is reconciled according to the first flow table. In this way, by creating a reconciliation container and running the reconciliation container based on the switch data and logical data corresponding to the identification of the first node to be reconciled, the initialized first flow table corresponding to the switch data and logical data can be automatically generated. Since the first flow table is generated according to the switch data and logical data of the first node, the first flow table is the correct flow table corresponding to the first node, and the reconciliation processing is automatically performed with the second flow table currently stored in the first node according to the first flow table, the possible errors in the second flow table can be accurately determined, and these errors are processed accordingly to obtain the correct second flow table, thereby improving the accuracy of the flow table reconciliation. In addition, since the automatic reconciliation of the flow table is realized, the problems of low reconciliation efficiency and waste of human resources in the manual reconciliation of the flow table in the traditional technology can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 This is an application environment diagram of a flow table reconciliation method in an embodiment;

[0039] Figure 2 A schematic diagram of a flow chart of a flow table reconciliation method in one embodiment;

[0040] Figure 3 is a schematic flow chart of step 201 in another embodiment;

[0041] Figure 4 A schematic diagram of a specific structure of a reconciliation container in another embodiment;

[0042] Figure 5 is a schematic flow chart of step 203 in another embodiment;

[0043] Figure 6 is a structural block diagram of a flow table reconciliation device in an embodiment;

[0044] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] In OpenFlow, when the controller sends a data packet to the switch, the switch guides the forwarding of the data packet through the flow table. The flow table refers to a rule table used to guide the forwarding of data packets, which contains multiple rules. Each rule contains a table id, priority, matching domain, and processing instructions. When the OpenFlow switch receives a data packet, it parses the packet header to obtain the matching data corresponding to the data packet, and then matches the matching data with the matching domain of each rule of each flow table according to the table id and priority, so as to determine the rule that successfully matches the matching data, and processes the data packet based on the execution instruction corresponding to the rule.

[0047] In a cloud environment, the flow table of a node contains tens of thousands of rules. In some cases, it is necessary to check the rules in the flow table to avoid residual flow tables, missing flow tables, or flow table errors in the OpenFlow switch.

[0048] The traditional flow table reconciliation method usually involves manually reconciling the flow table and performing corresponding processing, which has the problems of low efficiency, low accuracy and waste of manual resources.

[0049] In view of this, the embodiment of the present application provides a flow table reconciliation method, device, computer equipment, storage medium and program product, by creating a reconciliation container in response to a reconciliation instruction, since the reconciliation instruction includes the identifier of the first node, the reconciliation container can be run according to the switch data and logical data corresponding to the identifier of the first node to generate a first flow table, and the second flow table corresponding to the first node is reconciled according to the first flow table. In this way, by creating a reconciliation container and running the reconciliation container based on the switch data and logical data corresponding to the identifier of the first node to be reconciled, the initialized first flow table corresponding to the switch data and logical data can be automatically generated. Since the first flow table is generated according to the switch data and logical data of the first node, the first flow table is the correct flow table corresponding to the first node, and the reconciliation processing is automatically performed with the second flow table currently stored in the first node according to the first flow table, and the errors that may exist in the second flow table can be accurately determined, and these errors are processed accordingly to obtain the correct second flow table, thereby improving the accuracy of the flow table reconciliation. In addition, since the automatic reconciliation of the flow table is realized, the problems of low reconciliation efficiency and waste of human resources in the manual reconciliation of the flow table in the traditional technology can be avoided.

[0050] The flow table reconciliation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the data storage system can store the data that the server 102 needs to process. The data storage system can be integrated on the server 102, or it can be placed on the cloud or other network servers. The server 102 can be implemented as an independent server or a server cluster composed of multiple servers.

[0051] In an exemplary embodiment, Figure 2 As shown, a flow table reconciliation method is provided, which is applied to Figure 1 The server 102 in the example is used for explanation, and the steps include the following steps 201 to 203.

[0052] in:

[0053] Step 201: Create a reconciliation container in response to a reconciliation instruction.

[0054] Among them, the reconciliation instruction is an instruction to instruct to reconcile the flow table of a certain node. In an embodiment of the present application, the reconciliation instruction may include the identifier of the first node so that the server can determine the first node that needs to be reconciled based on the identifier of the first node.

[0055] The first node is a node that needs to perform flow table reconciliation, which can be a virtual machine or a physical machine. A controller, an OpenFlow switch, and a database corresponding to the first node are deployed on the node based on the SDN architecture. When the controller of the first node is running at the first node, it can generate a flow table based on the logical data in the database of the first node and send it to the switch of the first node. The flow table currently stored in the switch of the first node can be the second flow table that needs to be reconciled.

[0056] As for the method for the server to obtain the reconciliation instruction, optionally, the server can obtain the reconciliation instruction generated in the server at a preset time; optionally, the server can obtain the reconciliation instruction uploaded by the user from other devices, or the user can directly trigger the reconciliation instruction on the server. The method for obtaining the reconciliation instruction is not specifically limited here.

[0057] In the embodiment of the present application, after the server obtains the reconciliation instruction, it will create a reconciliation container for reconciliation of the first node. The reconciliation container can be a container running on any node.

[0058] Regarding the method for creating a reconciliation container, optionally, the reconciliation instruction also includes creation information for creating a reconciliation container, the creation information includes container type, container structure, container capacity, etc., and the server can create a reconciliation container based on the creation information; optionally, the reconciliation container also includes image information that needs to be pulled, and the server takes the corresponding image based on the image information, thereby creating a reconciliation container.

[0059] In a possible implementation manner, in order to prevent the reconciliation container from affecting the host network during runtime, the network of the reconciliation container is configured to be isolated from the host network when the reconciliation container is created.

[0060] Step 202: Run the reconciliation container according to the switch data and logic data corresponding to the identifier of the first node to generate a first flow table.

[0061] Among them, the switch data is stored in the switch of the first node, and the switch data is the relevant data of the switch of the first node, for example, it may include the conf.db data of OpenVSwitch, etc.; the logical data is stored in the database of the first node, which is the logical data of the network element resources, for example, it may include LogicalSwitch, LogicalRouter, LogicalSubnet, LogicalPort, etc.

[0062] In an embodiment of the present application, after the server determines the first node that needs to perform flow table reconciliation based on the identifier of the first node, it can obtain the switch data and logical data corresponding to the first node. Regarding the method of obtaining the switch data and logical data, optionally, the server obtains the switch data and logical data uploaded by the user through other devices; optionally, after the server determines the first node, it obtains the logical data of the first node from the database contained in the first node, and obtains the switch data corresponding to the first node from the switch contained in the first node.

[0063] After the server obtains the logical data and switch data corresponding to the first node, it will run the reconciliation container based on the switch data and the logical data to generate a first flow table. Since the first flow table is the initial flow table newly generated by the server based on the switch data and the logical data currently corresponding to the first node and running the reconciliation container, the first flow table is the correct flow table corresponding to the first node.

[0064] Step 203: reconcile the second flow table corresponding to the first node according to the first flow table.

[0065] Among them, the second flow table is the flow table currently used by the first node, and is also the flow table that needs to be reconciled.

[0066] After the server obtains the correct first flow table, it can reconcile the second flow table according to the first flow table. Regarding the reconciliation method, in one possible implementation, the server directly performs an overwrite operation on the second flow table according to the first flow table, so that the switch of the first node stores the correct first flow table; in another possible implementation, the id, priority, matching domain and processing instructions contained in each rule in the first flow table and the second flow table are compared, and the second flow table is checked for omissions and supplemented according to the comparison result, so that the second flow table is updated to the correct flow table, thereby completing the reconciliation of the second flow table.

[0067] In the embodiment of the present application, by creating a reconciliation container and running the reconciliation container based on the switch data and logic data corresponding to the identifier of the first node to be reconciled, the initialized first flow table corresponding to the switch data and logic data can be automatically generated. Since the first flow table is generated according to the switch data and logic data of the first node, the first flow table is the correct flow table corresponding to the first node, and the reconciliation processing is automatically performed with the second flow table currently stored in the first node according to the first flow table, and the possible errors in the second flow table can be accurately determined, and these errors are processed accordingly to obtain the correct second flow table, thereby improving the accuracy of the flow table reconciliation. In addition, since the automatic reconciliation of the flow table is realized, the problems of low reconciliation efficiency and waste of human resources in the manual reconciliation of the flow table in the traditional technology can be avoided.

[0068] In one embodiment, because the reconciliation container is created, the first flow table can be generated by running the reconciliation container, so creating the reconciliation container is an important step in the embodiment of the present application. Figure 2 The embodiment shown, see Figure 3 This embodiment relates to a process of creating a reconciliation container in response to a reconciliation instruction. Figure 3 As shown, step 201 may include step 301 .

[0069] Step 301: Create a reconciliation container on the second node in response to a reconciliation instruction.

[0070] A reconciliation container may be created on the second node. In a possible implementation, the second node may be any node except the first node, or may be the first node itself.

[0071] Regarding the method for the server to determine the second node, optionally, the server can select the second node based on the idle resources of each node to ensure that the selected second node has sufficient resources to support the creation of the reconciliation container; optionally, it can also be based on the properties and functions of each node to select a node that matches the first node as the second node to ensure that the selection of the second node can support the implementation of the function corresponding to the first node; optionally, the reconciliation instruction also includes the identifier of the second node, and the server can directly determine the second node based on the identifier of the second node. Regarding the method for the server to determine the second node, it is not limited in the embodiments of the present application.

[0072] Regarding the structure in the reconciliation container, optionally, in the embodiment of the present application, Figure 4 As shown, a controller, a switch, and a database are deployed in the reconciliation container.

[0073] In order to enable the server to correctly generate the first flow table when running the reconciliation container based on the switch data and logical data of the first node, in an embodiment of the present application, the structure in the reconciliation container can be the same as the structure of the first node, and both adopt the SDN architecture that applies the OpenFlow protocol. The controller, OpenFlow switch and database are deployed in the reconciliation container, thereby ensuring that the operating environment of the reconciliation container is the same as that of the first node, and the switch data of the first node is copied to the switch of the reconciliation container, and the logical data is copied to the database of the reconciliation container, ensuring that the data running the reconciliation container is the same as that of the first node, so that based on the switch data and the logical data, the reconciliation container is loaded and run to generate the correct first flow table corresponding to the first node.

[0074] Regarding the method for creating a reconciliation container, in a possible implementation manner, the server directly pulls the image of the first node into the reconciliation container to create a reconciliation container with the same structure as the first node.

[0075] In the above embodiment, a reconciliation container is created on the second node, and a controller, a switch and a database are deployed in the reconciliation container, so that the architecture of the reconciliation container is the same as that of the first node, ensuring that the operating environment of the reconciliation container is the same as that of the first node, and the switch data of the first node is copied to the switch of the reconciliation container, and the logical data is copied to the database of the reconciliation container, ensuring that the data running in the reconciliation container is the same as that of the first node, ensuring that the first flow table generated based on the switch data and the logical data is a correct flow table, and improving the correctness of the first flow table.

[0076] In one embodiment, based on the above Figures 2 to 4 The embodiment shown, see Figure 5 This embodiment involves a process of reconciling the second flow table corresponding to the first node according to the first flow table. Figure 5 As shown, step 203 may include step 501 and step 502 .

[0077] Step 501: Compare the first flow table with the second flow table through the controller in the reconciliation container to obtain a comparison result.

[0078] Step 502: reconcile the second flow table according to the comparison result.

[0079] In the embodiment of the present application, the server may obtain the second flow table from other devices, or may directly obtain the second flow table from the first node.

[0080] The second flow table is the flow table to be reconciled. In the embodiment of the present application, the current second flow table of the first node is compared by the controller in the reconciliation container to obtain a comparison result. According to the comparison result, it can be determined where the second flow table has problems, so that the places where the second flow table has problems are repaired accordingly, and the existing second flow table in the first node is updated to the correct flow table corresponding to the first node.

[0081] The reconciliation process of the second flow table according to the comparison result includes at least one of the following:

[0082] When the comparison result shows that the second flow table contains residual flow tables, the residual flow tables in the second flow table are deleted; when rules are missing in the second flow table, the missing rules of the second flow table are completed according to the first flow table; when there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

[0083] After reconciliation processing is performed on the second flow table through any of the above steps, the existing second flow table in the first node is updated to a correct flow table.

[0084] In the above embodiment, the controller in the reconciliation container compares the first flow table and the second flow table, so as to accurately determine the problem of the second flow table according to the comparison result, so as to check and correct the incorrect parts of the second flow table, make small changes to the second flow table, and have higher accuracy.

[0085] In one embodiment, an exemplary flow table reconciliation method is provided, which can be applied to Figure 2 In the implementation environment shown.

[0086] Step a: creating a reconciliation container on the second node in response to the reconciliation instruction.

[0087] Among them, the reconciliation container is deployed with a controller, a switch and a database.

[0088] The reconciliation instruction includes the identifier of the first node.

[0089] Step b: according to the identifier of the first node, copy the switch data of the first node to the switch, and copy the logic data to the database.

[0090] Step c: based on the switch data and the logic data, load and run the reconciliation container to generate a first flow table.

[0091] Step d: Compare the first flow table with the second flow table through the controller in the reconciliation container to obtain a comparison result.

[0092] Step e: if the comparison result shows that the second flow table contains a residual flow table, the residual flow table in the second flow table is deleted.

[0093] Step f: when there are missing rules in the second flow table, the missing rules in the second flow table are completed according to the first flow table.

[0094] Step g: if there are erroneous rules in the second flow table, correct the erroneous rules in the second flow table according to the first flow table.

[0095] The network of the reconciliation container is isolated from the host network.

[0096] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0097] Based on the same inventive concept, the embodiment of the present application also provides a flow table reconciliation device for implementing the flow table reconciliation method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more flow table reconciliation device embodiments provided below can refer to the limitations of the flow table reconciliation method above, and will not be repeated here.

[0098] In an exemplary embodiment, Figure 6 As shown, a flow table reconciliation device 600 is provided, comprising: a container creation module 601, a first flow table generation module 602 and a reconciliation module 603, wherein:

[0099] A container creation module 601, configured to create a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of a first node;

[0100] A first flow table generating module 602, configured to run the reconciliation container according to the switch data and logic data corresponding to the identifier of the first node, so as to generate a first flow table;

[0101] The reconciliation module 603 is used to perform reconciliation processing on the second flow table corresponding to the first node according to the first flow table.

[0102] In one embodiment, the container creation module 601 includes:

[0103] The reconciliation container creation unit is used to create the reconciliation container on the second node in response to the reconciliation instruction; the reconciliation container is deployed with a controller, a switch and a database.

[0104] In one embodiment, the first flow table generating module 602 includes:

[0105] a data replication unit, configured to replicate the switch data of the first node into the switch and replicate the logic data into the database according to the identifier of the first node;

[0106] A flow table generating unit is used to load and run the reconciliation container based on the switch data and the logic data to generate the first flow table.

[0107] In one embodiment, the reconciliation module 603 includes:

[0108] a comparing unit, configured to compare the first flow table with the second flow table through a controller in the reconciliation container to obtain a comparison result;

[0109] A processing unit is used to perform reconciliation processing on the second flow table according to the comparison result.

[0110] In one embodiment, the processing unit is further configured to perform at least one of the following:

[0111] If the comparison result is that the second flow table includes a residual flow table, deleting the residual flow table in the second flow table;

[0112] In the case where a rule is missing in the second flow table, the missing rule of the second flow table is completed according to the first flow table;

[0113] When there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

[0114] In one embodiment, the network of the reconciliation container is isolated from the host network.

[0115] Each module in the above-mentioned flow table reconciliation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0116] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store flow table reconciliation data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a flow table reconciliation method is implemented.

[0117] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0119] creating a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of the first node;

[0120] According to the switch data and the logic data corresponding to the identifier of the first node, the reconciliation container is run to generate a first flow table;

[0121] A reconciliation process is performed on a second flow table corresponding to the first node according to the first flow table.

[0122] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0123] In response to the reconciliation instruction, the reconciliation container is created on the second node; the reconciliation container is deployed with a controller, a switch and a database.

[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0125] According to the identifier of the first node, copy the switch data of the first node to the switch, and copy the logic data to the database;

[0126] Based on the switch data and the logic data, the reconciliation container is loaded and executed to generate the first flow table.

[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0128] Comparing the first flow table with the second flow table by a controller in the reconciliation container to obtain a comparison result;

[0129] The second flow table is reconciled according to the comparison result.

[0130] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0131] If the comparison result is that the second flow table includes a residual flow table, deleting the residual flow table in the second flow table;

[0132] In the case where a rule is missing in the second flow table, the missing rule of the second flow table is completed according to the first flow table;

[0133] When there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

[0134] In one embodiment, the network of the reconciliation container is isolated from the host network.

[0135] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0136] creating a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of the first node;

[0137] According to the switch data and the logic data corresponding to the identifier of the first node, the reconciliation container is run to generate a first flow table;

[0138] A reconciliation process is performed on a second flow table corresponding to the first node according to the first flow table.

[0139] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0140] In response to the reconciliation instruction, the reconciliation container is created on the second node; the reconciliation container is deployed with a controller, a switch and a database.

[0141] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0142] According to the identifier of the first node, copy the switch data of the first node to the switch, and copy the logic data to the database;

[0143] Based on the switch data and the logic data, the reconciliation container is loaded and executed to generate the first flow table.

[0144] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0145] Comparing the first flow table with the second flow table by a controller in the reconciliation container to obtain a comparison result;

[0146] The second flow table is reconciled according to the comparison result.

[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0148] If the comparison result is that the second flow table includes a residual flow table, deleting the residual flow table in the second flow table;

[0149] In the case where a rule is missing in the second flow table, the missing rule of the second flow table is completed according to the first flow table;

[0150] When there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

[0151] In one embodiment, the network of the reconciliation container is isolated from the host network.

[0152] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0153] creating a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of the first node;

[0154] According to the switch data and the logic data corresponding to the identifier of the first node, the reconciliation container is run to generate a first flow table;

[0155] A reconciliation process is performed on a second flow table corresponding to the first node according to the first flow table.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0157] In response to the reconciliation instruction, the reconciliation container is created on the second node; the reconciliation container is deployed with a controller, a switch and a database.

[0158] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0159] According to the identifier of the first node, copy the switch data of the first node to the switch, and copy the logic data to the database;

[0160] Based on the switch data and the logic data, the reconciliation container is loaded and executed to generate the first flow table.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] Comparing the first flow table with the second flow table by a controller in the reconciliation container to obtain a comparison result;

[0163] The second flow table is reconciled according to the comparison result.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] If the comparison result is that the second flow table includes a residual flow table, deleting the residual flow table in the second flow table;

[0166] In the case where a rule is missing in the second flow table, the missing rule of the second flow table is completed according to the first flow table;

[0167] When there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

[0168] In one embodiment, the network of the reconciliation container is isolated from the host network.

[0169] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0170] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0171] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0172] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A flow table reconciliation method, characterized in that: The method comprises: Creating a reconciliation container in response to a reconciliation instruction, the reconciliation instruction including an identifier of the first node, the reconciliation container having a controller, a switch, and a database deployed therein; According to the identifier of the first node, copy the switch data of the first node to the switch, and copy the logic data to the database; Based on the switch data and the logic data, load and run the reconciliation container to generate a first flow table; A reconciliation process is performed on a second flow table corresponding to the first node according to the first flow table.

2. The method according to claim 1, characterized in that The step of creating a reconciliation container in response to a reconciliation instruction comprises: In response to the reconciliation instruction, the reconciliation container is created on the second node.

3. The method according to claim 2, characterized in that The reconciliation processing of the second flow table corresponding to the first node according to the first flow table includes: Comparing the first flow table with the second flow table by a controller in the reconciliation container to obtain a comparison result; The second flow table is reconciled according to the comparison result.

4. The method according to claim 3, characterized in that The performing reconciliation processing on the second flow table according to the comparison result includes at least one of the following: If the comparison result is that the second flow table includes a residual flow table, deleting the residual flow table in the second flow table; In the case where there are missing rules in the second flow table, the missing rules in the second flow table are completed according to the first flow table; When there are erroneous rules in the second flow table, the erroneous rules in the second flow table are corrected according to the first flow table.

5. The method according to claim 1, characterized in that The network of the reconciliation container is isolated from the host network.

6. The method according to claim 1, characterized in that The reconciliation instruction includes creation information for creating a reconciliation container, and the creation information at least includes a container type, a container structure, and a container capacity.

7. A flow table reconciliation device, characterized in that: The device comprises: A container creation module, configured to create a reconciliation container in response to a reconciliation instruction, wherein the reconciliation instruction includes an identifier of the first node, and a controller, a switch, and a database are deployed in the reconciliation container; a data replication unit, configured to replicate the switch data of the first node into the switch and replicate the logic data into the database according to the identifier of the first node; A flow table generating unit, configured to load and run the reconciliation container based on the switch data and the logic data to generate a first flow table; A reconciliation module is used to perform reconciliation processing on the second flow table corresponding to the first node according to the first flow table.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.