Network configuration distribution method and device based on cloud network, equipment and storage medium

By converting the configuration instructions of cloud tenants into abstract configuration data of multi-forktree structures and generating actual configuration requests, the problems of low configuration efficiency and poor accuracy in the cloud network are solved, and fast and accurate network resource configuration is achieved.

CN119030865APending Publication Date: 2024-11-26BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411215880.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The existing cloud network configuration technology has the problem of low configuration efficiency and poor accuracy, especially in large-scale cloud networks. Simple network configuration changes require manual modification of a large amount of configuration information, resulting in inefficiency.

Method used

By converting the configuration instructions of the target cloud tenant into abstract configuration data of a multi-forktree structure, an actual configuration request matching the target network device is generated and sent to the target network device to achieve automatic identification and rapid configuration, improving configuration efficiency and accuracy .

Benefits of technology

It realizes rapid configuration of cloud network resources, improves configuration efficiency and accuracy, avoids the complexity and errors of manual configuration, and improves the efficiency and reliability of cloud network configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030865A_ABST
    Figure CN119030865A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network configuration distribution method and device based on a cloud network, equipment and a storage medium, and the method comprises the steps: obtaining a configuration instruction sent by a target cloud tenant, and enabling the configuration instruction to be used for configuring a target network resource in the cloud network; the configuration instruction is converted into abstract configuration data based on a multi-way tree structure, the abstract configuration data comprises at least one data root node and a corresponding data leaf node, the data root node represents configuration information of target network equipment, and the data leaf node represents configuration information of associated network resources; the associated network resources comprise target network resources and related network resources depending on the target network resources, and the tree structure of the abstract configuration data represents a dependency relationship between the associated network resources of different levels; and according to the abstract configuration data, generating an actual configuration request matched with each target network device, and sending the actual configuration request to the corresponding target network device, thereby improving the configuration efficiency and accuracy of the network resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of cloud computing technology, and in particular to a network configuration distribution method, apparatus, device, and storage medium based on a cloud network. Background Art

[0002] Currently, configuration distribution technology for cloud networks refers to the technology that, in large-scale cloud network services, cloud vendors configure virtual or physical network devices in the cloud network through background management software based on the requests of cloud tenants to meet the usage needs of cloud tenants.

[0003] Due to the large number of various network devices in the cloud network, there is resource sharing and dependence between them. A simple change in the target network configuration parameters often requires the simultaneous manual modification of a large amount of other related configuration information.

[0004] Therefore, the configuration scheme for network devices in the prior art has the problems of low configuration efficiency and poor accuracy. Summary of the invention

[0005] The embodiments of the present disclosure provide a network configuration distribution method, apparatus, device and storage medium based on a cloud network, so as to overcome the problems of low configuration efficiency and poor accuracy of network equipment configuration.

[0006] In a first aspect, an embodiment of the present disclosure provides a network configuration distribution method based on a cloud network, comprising:

[0007] Obtain configuration instructions sent by a target cloud tenant, wherein the configuration instructions are used to configure target network resources in a cloud network; convert the configuration instructions into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, wherein the data root node represents configuration information of a target network device, wherein the target network device is a network device that references the target network resource, and the data leaf node represents configuration information of associated network resources corresponding to the target network device, wherein the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents dependency relationships between associated network resources at different levels; based on the abstract configuration data, generate an actual configuration request that matches each of the target network devices, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

[0008] In a second aspect, an embodiment of the present disclosure provides a network configuration distribution device based on a cloud network, comprising:

[0009] A receiving module, used to obtain a configuration instruction sent by a target cloud tenant, wherein the configuration instruction is used to configure a target network resource in the cloud network;

[0010] A processing module, configured to convert the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents configuration information of a target network device, the target network device is a network device that references the target network resource, the data leaf node represents configuration information of associated network resources corresponding to the target network device, the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents dependency relationships between associated network resources at different levels;

[0011] The generation module is used to generate an actual configuration request matching each of the target network devices, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

[0012] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0013] The memory stores computer-executable instructions;

[0014] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud network-based network configuration distribution method as described in the first aspect and various possible designs of the first aspect.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the cloud network-based network configuration distribution method as described in the first aspect and various possible designs of the first aspect is implemented.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the cloud network-based network configuration distribution method as described in the first aspect and various possible designs of the first aspect.

[0017] The cloud network-based network configuration distribution method, apparatus, device and storage medium provided in this embodiment obtain configuration instructions sent by the target cloud tenant, wherein the configuration instructions are used to configure the target network resources in the cloud network; convert the configuration instructions into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents the configuration information of the target network device, the target network device is a network device that references the target network resource, the data leaf node represents the configuration information of the associated network resources corresponding to the target network device, the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents the dependency relationship between associated network resources at different levels; based on the abstract configuration data, generate an actual configuration request that matches each of the target network devices, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device. By converting configuration instructions into abstract configuration data based on polynomial results, automatic identification of relevant network resources is achieved. After conversion, actual configuration requests matching the target network devices are generated and sent, thereby achieving rapid configuration of target network resources in the target area and improving the configuration efficiency and accuracy of network resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 An application scenario diagram of the cloud network-based network configuration distribution method provided in an embodiment of the present disclosure;

[0020] Figure 2 A schematic diagram of a network configuration distribution method based on a cloud network provided in an embodiment of the present disclosure Figure 1 ;

[0021] Figure 3 A schematic diagram of a data structure of abstract configuration data provided by an embodiment of the present disclosure;

[0022] Figure 4 for Figure 2 A flowchart of a specific implementation method of step S102 in the illustrated embodiment;

[0023] Figure 5 for Figure 4A flowchart of a specific implementation method of step S1023 in the illustrated embodiment;

[0024] Figure 6 A schematic diagram of a network configuration distribution method based on a cloud network provided in an embodiment of the present disclosure Figure 2 ;

[0025] Figure 7 for Figure 6 A flowchart of a specific implementation method of step S206 in the illustrated embodiment;

[0026] Figure 8 A schematic diagram of storing abstract configuration data using a multi-level cache system provided by an embodiment of the present disclosure;

[0027] Fig. 9 for Figure 6 A flowchart of a specific implementation method of step S209 in the illustrated embodiment;

[0028] Fig.10 A structural block diagram of a network configuration distribution device based on a cloud network provided in an embodiment of the present disclosure;

[0029] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure;

[0030] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] 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 disclosure 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 the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] The application scenarios of the embodiments of the present disclosure are explained below:

[0034] Figure 1An application scenario diagram of the cloud network-based network configuration distribution method provided in the embodiment of the present disclosure. The cloud network-based network configuration distribution method provided in the embodiment of the present disclosure can be applied to the application scenario of configuring virtual / physical network devices in the cloud network. The execution subject of this embodiment can be a central configurator deployed in the cloud network. The configurator can be an actual electronic device or a server or network device deployed in the cloud network in the form of a software module to provide computing services. There is no limitation at this time.

[0035] Among them, in some embodiments, the server can implement the network configuration distribution method based on the cloud network provided in the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be program-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a local application, that is, a program that needs to be installed in the operating system to run, or it can be a program embedded in any application or service. In summary, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form, and the specific implementation form can be configured as needed. Further, in some embodiments, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud storage, cloud communication, cloud database, cloud computing, cloud functions, network services, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms and other basic cloud computing services, wherein the cloud service can be an interactive processing service for terminal devices to call.

[0036] refer to Figure 1 As shown in the figure, taking the configuration server in the cloud network as the execution entity as an example, when the user who rents the cloud service (hereinafter referred to as the cloud tenant) needs to perform resource configuration (such as bandwidth adjustment, Domain Name System (DNS) adjustment) on the network equipment (such as gateways, servers) they rent, they will send configuration instructions to the cloud network background management software deployed in the configuration server through operating the terminal device, thereby completing the resource configuration of the network equipment. The network equipment here can generally refer to all devices in the cloud network, including physical devices and virtual devices.

[0037] However, in this process, since the computing and network resources of enterprise cloud tenants usually involve tens of thousands of network devices, especially for large enterprise cloud tenants, a simple network configuration change requirement requires the cloud network background management software to modify a large number of network device configurations in a short period of time to complete resource scheduling and delivery. Therefore, in large-scale and complex cloud network application scenarios, ensuring the accuracy and efficiency of network configuration distribution is a major technical challenge.

[0038] The embodiments of the present disclosure provide a network configuration distribution method based on a cloud network to solve the above problems.

[0039] refer to Figure 2 , Figure 2 A schematic diagram of a network configuration distribution method based on a cloud network provided in an embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a server. The network configuration distribution method based on a cloud network includes:

[0040] Step S101: Obtain configuration instructions sent by a target cloud tenant, where the configuration instructions are used to configure target network resources in the cloud network.

[0041] Step S102: Convert the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents the configuration information of the target network device, the target network device is a network device that references the target network resources, the data leaf node represents the configuration information of the associated network resources corresponding to the target network device, the associated network resources include the target network resources and the related network resources that depend on the target network resources, and the tree structure of the abstract configuration data represents the dependency relationship between associated network resources at different levels.

[0042] refer to Figure 1The schematic diagram of the application scenario shown in the figure, in this embodiment, the server in the cloud network, hereinafter referred to as the configuration server, is used as the execution subject to introduce the provided network configuration distribution method based on the cloud network. Exemplarily, the cloud network background management software is deployed in the configuration server, and the cloud tenant can log in to the cloud network background management software to configure the resources of the network devices within its authorized scope. In this exemplary application scenario, first, the configuration server obtains the configuration instruction sent by the target cloud tenant, and the configuration instruction is used to configure the target network resources in the cloud network. For example, the configuration instruction is used to set the traffic bandwidth of the gateway rented by the target cloud tenant, so as to realize business traffic control. Among them, there are many specific implementation methods for obtaining the configuration instruction. It can be that after the terminal device operated by the cloud tenant accesses the configuration server, the configuration instruction is sent to the configuration server through the cloud network background management software deployed in the configuration server, so that the configuration server obtains the configuration instruction, or the configuration server generates the configuration instruction by running a specific program or task.

[0043] Furthermore, the configuration instruction includes information for configuring the target network resources of the target network device in the cloud network, for example, the device identification code (ID) of the target network device, the resource identification code of the target network resource, and the corresponding resource parameters. For example, if the target network resource is a network card resource (such as a virtual network card), the corresponding resource parameters are the relevant setting parameters of the network card, such as the subnet mask, the default gateway, the NAT gateway, the bandwidth control parameters, etc. The specific content and implementation method of the above resource parameters can be determined based on actual needs and data protocols, and no specific restrictions are made at this time.

[0044] After the configuration server receives the configuration instruction, it will parse the configuration instruction and obtain the content therein, such as device information and resource information indicating the target network device and target network resources, and parameter information corresponding to the target network resources. Then, the configuration server will construct an abstract configuration data based on a multi-branch tree (N-branch tree) structure based on the above information, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents the configuration information of the target network device, the target network device is a network device that references the target network resource, the data leaf node represents the configuration information of the associated network resources corresponding to the target network device, the associated network resources include the target network resources and the related network resources that depend on the target network resources, and the tree structure of the abstract configuration data represents the dependency relationship between associated network resources at different levels. Figure 3 A data structure diagram of an abstract configuration data provided by an embodiment of the present disclosure, such as Figure 3As shown, the abstract configuration data D1 includes two data root nodes Device_1 and Device_2, which respectively represent the configuration information of two target network devices, namely, the configuration information of the network device Device_1 and the network device Device_2. More specifically, the network device Device_1 and the network device Device_2 are, for example, hosts that provide cloud computing services. Under the data root nodes, there are corresponding data leaf nodes of multiple levels, which represent the configuration information of the network resources of the network devices Device_1 and Device_2. For example, as shown in the figure, under the data root node Device_1, there are data leaf nodes NIC_1, NIC_2, and NIC_3 connected, and under the data root node Device_2, there is a data leaf node NIC_4 connected. The data leaf nodes NIC_1, NIC_2, and NIC_3 represent the configuration information of the network cards #1, #2, and #3 mounted under the network device Device_1, and NIC_4 represents the configuration information of the network card #4 mounted under the network device Device_2. Furthermore, under the above-mentioned data leaf nodes NIC_1, NIC_2, NIC_3, and NIC_4, there are also data leaf nodes of the next level, such as PN_1, subnet_1, SG_1, etc. shown in the figure, wherein, exemplarily, the above-mentioned data leaf node PN_1 is the lower-level node of the data leaf node corresponding to network card #1, indicating the configuration information of the private network of network card #1; subnet_1 is the lower-level node of the data leaf node corresponding to network card #1 and network card #2, indicating the configuration information of the subnet of network card #1 and network card #2; SG_1 is the lower-level node of the data leaf node corresponding to network card #2, indicating the security group of network card #2. Furthermore, at the next level of the data leaf node subnet_1, the data leaf node RT_1 is also connected, indicating the routing table of subnet subnet_1; at the next level of the data leaf node RT_1, the data leaf node entry_1 is also connected, indicating the table entry of the routing table RT_1.

[0045] The above-mentioned abstract configuration data of the multi-branch tree structure represents the target network resource and the related network resources that depend on the target network resource, i.e., the associated network resources, through one or more data root nodes and multi-level data leaf nodes connected to the data root nodes. For example, as shown in the figure, according to the configuration instruction, when the target network resource to be modified is the routing table entry entry_1, its upstream network resources with dependencies, i.e., RT_1, subnet_1, and NIC_1, are the related network resources of the target network resource, and the collection of related network resources and target network resources is the associated network resource. After receiving the configuration instruction, the configuration server converts the configuration instruction into the above-mentioned abstract configuration data based on the multi-branch tree structure. In this process, the dependency relationship between the associated network resources at different levels in the cloud network is the prior knowledge of the cloud network. The abstract configuration data is constructed by using the prior knowledge of the cloud network, thereby realizing the automatic generation of configuration operations, without the cloud tenant having to manually input specific instructions to configure the configuration information of the associated network resources at each level one by one, thereby improving configuration efficiency.

[0046] Furthermore, in a possible implementation, Figure 4 As shown, the specific implementation of step S102 includes:

[0047] Step S1021: Acquire global configuration data, where the global configuration data represents configuration information of network resources corresponding to all network devices in the cloud network of the target region.

[0048] Step S1022: According to the configuration instruction, determine the target network device and the associated network resources corresponding to the target network device from the global configuration data.

[0049] Step S1023: Generate abstract configuration data according to the target network device and the associated network resources, as well as the dependency relationship between the associated network resources at each level.

[0050] Exemplarily, first, the configuration server obtains pre-generated global configuration data, which represents the configuration information of network resources corresponding to all network devices in the cloud network of the target region, such as the configuration information of network resources of all network devices corresponding to an availability zone. The global configuration data is also data based on a multi-branch tree structure, which can be understood as a complete set of configuration information, and the abstract configuration data corresponding to the configuration instruction is a subset of the above complete set of configuration information. That is, after receiving the configuration instruction, the configuration server determines the associated network resources and target network devices related to the target network resources indicated by the configuration instruction from the complete set of configuration information through the configuration instruction and the global configuration data, and forms abstract configuration data based on the connection (dependency) relationship between them. For example, the target network resource to be configured by the configuration instruction is the traffic of gateway A. The configuration server searches for all network resources and corresponding network devices that have dependencies on gateway A based on the multi-branch tree structure of the global configuration data, thereby obtaining leaf nodes L1, L2, L3, etc. that represent the associated network resource data, and root data nodes Device_1 and Device_2 that represent the target network devices, as well as abstract configuration data based on the connection relationship between the data leaf nodes L1, L2, L3 and the above-mentioned root data nodes Device_1 and Device_2.

[0051] Furthermore, in another possible implementation, the configuration instruction includes device information representing the target network device, such as Figure 5 As shown, the specific implementation of step S1023 includes:

[0052] Step S1023A: Determine the target network device according to the device information.

[0053] Step S1023B: Determine a first network resource in the associated network resources according to the configuration information and associated network resources corresponding to the target network device.

[0054] Step S1023C: Obtain configuration information of the first network resource, and store the configuration information of the first network resource as a data leaf node.

[0055] Step S1023D: If the first network resource has a subordinate network resource with which a dependency relationship exists, dependency information corresponding to the first network resource is generated according to the type of the dependency relationship between the first network resource and the subordinate network resource.

[0056] Step S1023E: Set the subordinate network resource as the new first network resource, and return to execute step S1023C.

[0057] Step S1023F: If the first network resource does not have any subordinate network resource with which it has a dependency relationship, abstract configuration data is generated according to the data root node, the data leaf node, and the dependency information.

[0058] The steps of this embodiment provide a solution for determining data leaf nodes layer by layer based on global configuration data starting from the data root node, wherein the configuration information of the network resources records the relevant information of the next level network resources (i.e., data leaf nodes), that is, according to the configuration information, the next level network resources of the current network resources can be obtained. For example, the configuration information corresponding to the target network device records the relevant information of the next level network resources (i.e., data leaf nodes), and according to the configuration information corresponding to the target network device, the next level network resources of the target network device, i.e., the first network resource, can be obtained. The first network resource is a network resource that directly depends on the target network device, for example, a network card mounted by the target network device. Thus, all associated network resources are accurately determined, and accurate abstract configuration data is generated.

[0059] Furthermore, the abstract configuration data also includes dependency information corresponding to the data root node and / or data leaf node, and the dependency information represents the type of dependency relationship, wherein the dependency information includes first dependency information or second dependency information, the type of dependency relationship represented by the first dependency information is a binding relationship, and the type of dependency relationship represented by the second dependency information is a parent-child relationship.

[0060] Specifically, dependency information is information that characterizes the dependency relationship between network devices and network resources, and the dependency relationship between network resources, that is, the connection between nodes in a multi-branch tree structure. In order to more clearly express the content in the data leaf node, when the data leaf node P1 and the data leaf node P2 are connected by a solid line, for example, the dependency relationship between the network resource corresponding to the data leaf node P1 and the network resource corresponding to the data leaf node P2 is a binding relationship, specifically, for example, the dependency relationship between the network card and the subnet, that is, a binding relationship. When the data leaf node P3 and the data leaf node P4 are connected by a dotted line, for example, the dependency relationship between the network resource corresponding to the data leaf node P3 and the network resource corresponding to the data leaf node P4 is a parent-child relationship, specifically, for example, the dependency relationship between a routing table and a table entry, that is, a parent-child relationship (for example Figure 3 In the illustrated embodiment, the relationship between RT_1 and entry_1 is represented by a dotted line.) The connection mode between data root nodes and / or data leaf nodes is characterized by dependency information, thereby more clearly expressing the dependency relationship between network resources and improving the accuracy of abstract configuration data.

[0061] Step S103: Generate an actual configuration request matching each target network device according to the abstract configuration data, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

[0062] Exemplarily, after the abstract configuration data is generated by the configuration server, it is necessary to convert the abstract configuration data into instructions that can be recognized by the target network device, that is, the actual configuration request, according to the specific instruction execution method of each target network device to be configured. For example, the abstract configuration data is generated to match the actual configuration request of each target network device according to the device model of the target network device, the preset configuration rule table, etc., and then sent to the corresponding target network device. Afterwards, after receiving the above request, the target network device will execute the corresponding configuration logic based on the actual configuration request and the configuration information, thereby realizing the configuration of the target network resources and the related network resources that depend on the target network resources, and finally realizing the accurate configuration of the target network resources, avoiding resource anomalies and system instability problems caused by the omission of configuration and wrong configuration of related network resources, and improving the configuration efficiency.

[0063] In this embodiment, by obtaining the configuration instructions sent by the target cloud tenant, the configuration instructions are used to configure the target network resources in the cloud network; the configuration instructions are converted into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents the configuration information of the target network device, the target network device is a network device that references the target network resource, the data leaf node represents the configuration information of the associated network resources corresponding to the target network device, the associated network resources include the target network resource and the related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents the dependency relationship between the associated network resources at different levels; according to the abstract configuration data, an actual configuration request matching each target network device is generated, and the actual configuration request is sent to the corresponding target network device to configure the target network resource of the target network device. By converting the configuration instructions into abstract configuration data based on the multi-branch number result, the automatic identification of the related network resources is realized, and then the actual configuration request matching the target network device is generated and sent after the conversion, so as to realize the rapid configuration of the target network resources in the target area and improve the configuration efficiency and accuracy of the network resources.

[0064] refer to Figure 6 , Figure 6 A schematic diagram of a network configuration distribution method based on a cloud network provided in an embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the illustrated embodiment, step 103 is further refined, and the network configuration distribution method based on the cloud network includes:

[0065] Step S201: receiving a modification instruction sent by a target cloud tenant, where the modification instruction is used to modify network resources of a network device in a cloud network.

[0066] Step S202: Update the global configuration data according to the modification instruction.

[0067] Exemplarily, the configuration server may also receive a modification instruction sent by the target cloud tenant, the modification instruction being used to modify the network resources of the network device in the cloud network, combined with Figure 2 As described in the illustrated embodiment, in the process of converting configuration instructions into abstract configuration data, it is necessary to use pre-generated global configuration data to determine the dependency between network resources of network devices in a region in the cloud network, and then generate abstract configuration data corresponding to the configuration instructions. Before or after the process, based on the specific needs of the cloud tenant, the network devices in the cloud network or the network resources of the network devices can also be modified, for example, adding or deleting network resources. More specifically, for example, the user adds a virtual network card to the network device Device_1 by issuing a modification instruction, that is, adding a network resource to the network device Device_1. After that, the configuration server modifies the global configuration data based on the modification instruction, that is, adds, deletes, and modifies the data root node and / or the data leaf node, thereby completing the update of the global configuration data. In the steps of this embodiment, a specific modification function interface is provided to receive the modification instruction, and the modification of the global configuration data is implemented based on the modification instruction, thereby improving the flexibility of configuring the cloud network.

[0068] Step S203: Obtain configuration instructions sent by the target cloud tenant, where the configuration instructions are used to configure target network resources in the cloud network.

[0069] Step S204: Convert the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents the configuration information of the target network device, the target network device is a network device that references the target network resources, the data leaf node represents the configuration information of the associated network resources corresponding to the target network device, the associated network resources include the target network resources and the related network resources that depend on the target network resources, and the tree structure of the abstract configuration data represents the dependency relationship between associated network resources at different levels.

[0070] Step S205: Determine a multi-level cache system for abstract configuration data, where the multi-level cache system includes at least a local cache area and a remote cache area.

[0071] Step S206: storing each data node in a corresponding cache area in the multi-level cache system according to the access popularity of each data node in the abstract configuration data.

[0072] Exemplarily, after generating the abstract configuration data, based on the data structure of the abstract configuration data, specifically, for example, based on the number of levels of data leaf nodes in the abstract configuration data and the network resources represented by the data leaf nodes, a matching multi-level cache system is determined, wherein the multi-level cache system includes at least a local cache area and a remote cache area, the local cache area being a cache space located locally on the configuration server, and the remote cache area being a cache space located outside the configuration server and provided by other distributed servers, the local cache area having better read and write performance than the remote cache area, but at a lower storage cost. The multi-level cache system determined based on the data structure of the abstract configuration data can provide better storage performance.

[0073] For example, when the abstract configuration data is frequently updated, a multi-level cache system with a larger local storage space and a smaller remote cache area is selected, and vice versa. Afterwards, each data node is stored in the corresponding cache area of ​​the multi-level cache system according to the access popularity of each data node in the abstract configuration data.

[0074] For example, some data leaf nodes, such as private network type nodes, store a huge amount of data and update very frequently. If all the node data is stored in the remote cache area, a large number of network IO requests will be generated, affecting the performance and reliability of the entire system. Therefore, for the data in this type of data leaf nodes, hot and cold separation storage is performed. In the cloud network, this part of the node data is read more and written less (the amount of data read is large, but the updated data is small), so the frequently updated (hot data) but relatively small data volume can be stored separately. That is, the same network resource can store the most recently updated data in the remote cache area for calculation, and store the data that has not been updated recently (cold data) in the local memory for calculation.

[0075] In the steps of this embodiment, by abstracting the access popularity of each data node in the configuration data, each data node is stored in a corresponding cache area in the multi-level cache system, thereby improving the data storage efficiency and system stability of the abstract configuration data.

[0076] Exemplarily, further, the access heat includes a configuration frequency, and the configuration frequency represents the frequency at which the configuration information corresponding to the data node changes, such as Figure 7 As shown, the specific implementation of step S206 includes:

[0077] Step S2061: Obtain corresponding heat levels according to the configuration frequencies of each data node in the abstract configuration data, wherein the heat levels include at least a first heat level and a second heat level, the first heat level indicates that the configuration frequency is greater than a first frequency threshold, and the second heat level indicates that the configuration frequency is less than the first frequency threshold.

[0078] Step S2062: The abstract configuration data corresponding to the first heat level is stored in the local cache area, and the abstract configuration data corresponding to the second heat level is stored in the remote cache area.

[0079] Exemplarily, in the global configuration data, the configuration frequency of each data node (data root node, data leaf node) is also recorded. The configuration frequency is determined based on historical configuration instructions. The specific statistical method can be set as needed, for example, historical configuration instructions are counted by day or month to determine the configuration frequency of each data node. Afterwards, according to the configuration frequency of each data node in the abstract configuration data, the corresponding heat level is obtained, for example, including the first heat level and the second heat level. Of course, it can also be subdivided into more heat levels, such as the third heat level, the fourth heat level, etc. Afterwards, the data nodes belonging to the first heat level in the abstract configuration data, or the data (configuration information) stored in the data nodes, are stored in the local cache area to obtain better read and write performance; the data nodes belonging to the second heat level in the abstract configuration data, or the data (configuration information) stored in the data nodes, are stored in the remote cache area to obtain better storage capacity.

[0080] Exemplarily, further, the multi-level cache system further includes a persistent storage area, and the persistent storage area is used to store historical abstract configuration data; the steps of this embodiment also include:

[0081] Step S2063: Synchronize the abstract configuration data to the persistent storage area.

[0082] Exemplarily, after each configuration of the target network resources of the target network device is completed, the abstract configuration data is stored in the persistent storage area as historical abstract configuration data, thereby achieving the purpose of saving the configuration record.

[0083] For example, Figure 8 A schematic diagram of using a multi-level cache system to store abstract configuration data is provided in an embodiment of the present disclosure, such as Figure 8As shown, the abstract configuration data includes four levels of data nodes, such as the root data node P0 shown in the figure, and the data leaf nodes P1, P2, and P3 under the root data node P0. The configuration server determines the corresponding multi-level cache system based on the abstract configuration data. The multi-level cache system includes a local cache area located inside the configuration server and a remote cache area located outside the configuration server. Afterwards, based on the configuration frequency of the data (configuration information) in the above data nodes, the data leaf node P1 with a higher configuration frequency is stored in the local cache area, and the data leaf node P2 with a lower configuration frequency is stored in the remote cache area. The data in the data leaf node P3 containing both hot data and cold data are stored in the local cache area (storing hot data) and the remote cache area (storing cold data), respectively, thereby realizing the overall storage performance optimization of the system for the abstract configuration data.

[0084] Optionally, after step S206, the method further includes:

[0085] Step S207A: generating an offline update event corresponding to the abstract configuration data, where the offline update event is used to configure target network resources based on the data in the multi-level cache system;

[0086] Step S207B: When the system time reaches the trigger time corresponding to the offline update event, the offline update event is executed.

[0087] Exemplarily, after generating the abstract configuration data, in one implementation, the target network resources of the target network device can be configured immediately based on the abstract configuration data. This implementation is, for example, the execution steps shown in the subsequent steps S208-S209, which will not be introduced in detail this time; and in another implementation, the target network resources of the target network device can be delayed to avoid the configuration process affecting the business and causing system instability. Specifically, after generating the abstract configuration data, the configuration server generates a corresponding offline update event for the abstract configuration data. The offline update event configures the target network resources based on the abstract configuration data in the multi-level cache system. After that, when the system time reaches the trigger time corresponding to the offline update event, the offline update event is executed again, thereby realizing the delayed configuration of the target network resources for the target network device, avoiding the impact on the system stability, and providing system stability.

[0088] Step S208: Processing the abstract configuration data through the data adapter to determine at least one configuration channel, wherein the configuration channel corresponds to the target network device one by one.

[0089] Step S209: Sending a corresponding actual configuration request to a corresponding target network device through each configuration channel.

[0090] Exemplarily, the abstract configuration data includes multiple tree substructures divided based on the target network device. After the abstract configuration data is generated, the abstract configuration data is processed by a data adapter to divide the abstract configuration data into multiple sub-data, each group of sub-data corresponds to a target network device, and then, based on the sub-data, a corresponding number of configuration channels are determined, and the configuration channels correspond to the target network devices one by one. Afterwards, the above sub-data are converted into actual configuration requests that match the target network device, and then the corresponding actual configuration requests are sent to the corresponding target network device through the above configuration channels, so as to achieve the purpose of multi-channel synchronous configuration of multiple target network devices and improve the overall resource configuration efficiency.

[0091] Further, illustratively, if Fig. 9 As shown, the specific implementation of step S209 includes:

[0092] Step S2091: Obtain version information corresponding to the abstract configuration data;

[0093] Step S2092: Determine the sending order corresponding to the actual configuration requests based on the version information;

[0094] Step S2093: Send corresponding actual configuration requests to the target network devices in sequence based on the sending order.

[0095] Exemplarily, in the process of sending abstract configuration data, based on the previous introduction, the abstract configuration data can be driven to be sent based on an offline update event. Therefore, in the case of a high configuration frequency, multiple versions of abstract configuration data may appear. In this case, in the present embodiment, the corresponding version information is first generated in the process of generating the abstract configuration data. Afterwards, while converting the abstract configuration data into the corresponding actual configuration request, the sending information corresponding to the actual configuration request is determined based on the version information. Specifically, according to the order of the version numbers described in the version information, the corresponding actual configuration requests are sequentially sent to the target network device, so that the target network device can perform configuration updates in sequence based on the version information to avoid configuration errors.

[0096] Among them, in a possible implementation, illustratively, the actual configuration request includes cloud tenant identification information corresponding to the target cloud tenant, and the actual configuration request is used to instruct the target network device to independently configure the target network resources belonging to the target cloud tenant based on the cloud tenant identification information. Specifically, for example, a proxy client is deployed on the target network device, and after the actual configuration request is pushed to the proxy client deployed on the target network device, the proxy client will read the cloud tenant identification information in the configuration request, and then perform configuration validation and fault isolation according to the cloud tenant identification information, thereby ensuring that configuration requests between different cloud tenants on the same target network device can be valid in parallel without affecting each other.

[0097] In this embodiment, the implementation method of steps S202 to S203 is the same as that of the present disclosure. Figure 2 The implementation methods of step S201 and step S202 in the illustrated embodiment are the same and will not be described in detail here.

[0098] Corresponding to the network configuration distribution method based on cloud network in the above embodiment, Fig.10 A block diagram of the structure of a cloud network-based network configuration distribution device provided in an embodiment of the present disclosure. The method described in the above embodiment can be executed by the cloud network-based network configuration distribution device, which can be implemented by software and / or hardware, and can be integrated in an electronic device with certain data processing functions. Among them, the electronic device can include but is not limited to mobile terminals with big data processing capabilities, as well as fixed terminals with big data processing capabilities such as desktop computers and supercomputers.

[0099] For the sake of convenience, only the parts related to the embodiments of the present disclosure are shown. Fig.10 , the network configuration distribution device 3 based on the cloud network includes:

[0100] A receiving module 31 is used to obtain a configuration instruction sent by a target cloud tenant, where the configuration instruction is used to configure target network resources in the cloud network;

[0101] The processing module 32 is used to convert the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents the configuration information of the target network device, the target network device is a network device that references the target network resource, the data leaf node represents the configuration information of the associated network resource corresponding to the target network device, the associated network resource includes the target network resource and the related network resource that depends on the target network resource, and the tree structure of the abstract configuration data represents the dependency relationship between the associated network resources at different levels;

[0102] The generating module 33 is used to generate an actual configuration request matching each target network device, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

[0103] According to one or more embodiments of the present disclosure, the processing module 32 is specifically used to: obtain global configuration data, the global configuration data represents the configuration information of network resources corresponding to all network devices in the cloud network of the target region; determine the target network device and the associated network resources corresponding to the target network device from the global configuration data according to the configuration instructions; generate abstract configuration data according to the dependency relationship between the target network device and the associated network resources, and the associated network resources at each level.

[0104] According to one or more embodiments of the present disclosure, when the processing module 32 generates abstract configuration data according to the target network device and the associated network resources, and the dependency relationship between the associated network resources at each level, it is specifically used to: obtain the configuration information corresponding to the target network device, and store the configuration information corresponding to the target network device as a data root node; determine the first network resource in the associated network resources according to the configuration information corresponding to the target network device and the associated network resources, and obtain the configuration information of the first network resource; store the configuration information of the first network resource as a data leaf node; if the first network resource has a subordinate network resource with which there is a dependency relationship, generate the dependency information corresponding to the first network resource according to the type of the dependency relationship between the first network resource and the subordinate network resource; set the subordinate network resource as a new first network resource, and return to execute the step of storing the configuration information of the first network resource as a data leaf node; if the first network resource does not have a subordinate network resource with which there is a dependency relationship, generate abstract configuration data according to the data root node, the data leaf node, and the dependency information.

[0105] According to one or more embodiments of the present disclosure, the processing module 32 is further used to: receive a modification instruction sent by a target cloud tenant, the modification instruction is used to modify network resources of a network device in the cloud network; and update global configuration data according to the modification instruction.

[0106] According to one or more embodiments of the present disclosure, the abstract configuration data also includes dependency information corresponding to the data root node and / or the data leaf node, and the dependency information represents the type of dependency relationship, wherein the dependency information includes first dependency information or second dependency information, and the type of dependency relationship represented by the first dependency information is a binding relationship, and the type of dependency relationship represented by the second dependency information is a parent-child relationship.

[0107] According to one or more embodiments of the present disclosure, the processing module 32 is also used to: determine a multi-level cache system for abstract configuration data, the multi-level cache system including at least a local cache area and a remote cache area; store each data node in a corresponding cache area in the multi-level cache system according to the access popularity of each data node in the abstract configuration data.

[0108] According to one or more embodiments of the present disclosure, access heat includes configuration frequency, and the configuration frequency represents the frequency at which configuration information corresponding to the data node changes; when the processing module 32 stores each data node to a corresponding position in a multi-level cache system according to the access heat of each data node in the abstract configuration data, it is specifically used to: obtain a corresponding heat level according to the configuration frequency of each data node in the abstract configuration data, wherein the heat level includes at least a first heat level and a second heat level, the first heat level represents that the configuration frequency is greater than a first frequency threshold, and the second heat level represents that the configuration frequency is less than the first frequency threshold; store the abstract configuration data corresponding to the first heat level in a local cache area; store the abstract configuration data corresponding to the second heat level in a remote cache area.

[0109] According to one or more embodiments of the present disclosure, the multi-level cache system further includes a persistent storage area, and the persistent storage area is used to store historical abstract configuration data; the processing module 32 is also used to: synchronize the abstract configuration data to the persistent storage area.

[0110] According to one or more embodiments of the present disclosure, after storing each data node in the abstract configuration data to the corresponding cache area in the multi-level cache system according to the access popularity of each data node in the abstract configuration data, the processing module 32 is also used to: generate an offline update event corresponding to the abstract configuration data, and the offline update event is used to configure the target network resources based on the data in the multi-level cache system; when the system time reaches the trigger time corresponding to the offline update event, execute the offline update event.

[0111] According to one or more embodiments of the present disclosure, the generation module 33 is specifically used to: process the abstract configuration data through a data adapter to determine at least one configuration channel, wherein the configuration channel corresponds one-to-one to the target network device; and send a corresponding actual configuration request to the corresponding target network device through each configuration channel.

[0112] According to one or more embodiments of the present disclosure, when the generation module 33 sends the corresponding actual configuration request to the corresponding target network device through each configuration channel, it is specifically used to: obtain version information corresponding to the abstract configuration data; based on the version information, determine the sending order corresponding to the actual configuration request; and send the corresponding actual configuration request to the target network device in sequence based on the sending order.

[0113] According to one or more embodiments of the present disclosure, the actual configuration request includes cloud tenant identification information corresponding to the target cloud tenant, and the actual configuration request is used to instruct the target network device to independently configure the target network resources belonging to the target cloud tenant based on the cloud tenant identification information.

[0114] The receiving module 31, the processing module 32 and the generating module 33 are connected in sequence. The network configuration distribution device 3 based on the cloud network provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0115] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.11 As shown, the electronic device 4 includes:

[0116] A processor 41, and a memory 42 communicatively connected to the processor 41;

[0117] The memory 42 stores computer executable instructions;

[0118] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 9 A network configuration distribution method based on a cloud network in the illustrated embodiment.

[0119] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .

[0120] For related instructions, please refer to Figure 2-Figure 9 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.

[0121] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 9 A cloud network-based network configuration distribution method is provided in any one of the corresponding embodiments.

[0122] The present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the present invention is realized. Figure 2-Figure 9 A cloud network-based network configuration distribution method is provided in any one of the corresponding embodiments.

[0123] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.

[0124] refer to Fig.12, which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0125] like Fig.12 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0126] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0127] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0128] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0129] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0130] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0131] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0132] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0133] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit or module does not, in some cases, constitute a limitation on the unit itself.

[0134] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0135] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0136] In a first aspect, according to one or more embodiments of the present disclosure, a network configuration distribution method based on a cloud network is provided, comprising:

[0137] Obtain configuration instructions sent by a target cloud tenant, wherein the configuration instructions are used to configure target network resources in a cloud network; convert the configuration instructions into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, wherein the data root node represents configuration information of a target network device, wherein the target network device is a network device that references the target network resource, and the data leaf node represents configuration information of associated network resources corresponding to the target network device, wherein the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents dependency relationships between associated network resources at different levels; based on the abstract configuration data, generate an actual configuration request that matches each of the target network devices, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

[0138] According to one or more embodiments of the present disclosure, the converting of the configuration instructions into abstract configuration data based on a multi-branch tree structure includes: obtaining global configuration data, the global configuration data representing configuration information of network resources corresponding to all network devices in the cloud network of the target region; determining the target network device and the associated network resources corresponding to the target network device from the global configuration data according to the configuration instructions; and generating the abstract configuration data according to the dependency relationship between the target network device and the associated network resources, and the associated network resources at each level.

[0139] According to one or more embodiments of the present disclosure, the abstract configuration data is generated according to the target network device and the associated network resources, and the dependency relationship between the associated network resources at each level, including: obtaining the configuration information corresponding to the target network device, and storing the configuration information corresponding to the target network device as a data root node; determining the first network resource in the associated network resources according to the configuration information corresponding to the target network device and the associated network resources, and obtaining the configuration information of the first network resource; storing the configuration information of the first network resource as a data leaf node; if the first network resource has a subordinate network resource with which a dependency relationship exists, generating the dependency information corresponding to the first network resource according to the type of the dependency relationship between the first network resource and the subordinate network resource; setting the subordinate network resource as a new first network resource, and returning to execute the step of storing the configuration information of the first network resource as a data leaf node; if the first network resource does not have a subordinate network resource with which a dependency relationship exists, generating the abstract configuration data according to the data root node, the data leaf node, and the dependency information.

[0140] According to one or more embodiments of the present disclosure, the method further includes: receiving a modification instruction sent by a target cloud tenant, wherein the modification instruction is used to modify network resources of a network device in the cloud network; and updating the global configuration data according to the modification instruction.

[0141] According to one or more embodiments of the present disclosure, the abstract configuration data also includes dependency information corresponding to the data root node and / or the data leaf node, and the dependency information represents the type of the dependency relationship, wherein the dependency information includes first dependency information or second dependency information, and the type of dependency relationship represented by the first dependency information is a binding relationship, and the type of dependency relationship represented by the second dependency information is a parent-child relationship.

[0142] According to one or more embodiments of the present disclosure, the method also includes: determining a multi-level cache system for the abstract configuration data, the multi-level cache system including at least a local cache area and a remote cache area; based on the access popularity of each data node in the abstract configuration data, storing each of the data nodes in the corresponding cache area in the multi-level cache system.

[0143] According to one or more embodiments of the present disclosure, the access heat includes a configuration frequency, and the configuration frequency represents the frequency at which the configuration information corresponding to the data node changes; according to the access heat of each data node in the abstract configuration data, each data node is stored in a corresponding position in the multi-level cache system, including: according to the configuration frequency of each data node in the abstract configuration data, a corresponding heat level is obtained, wherein the heat level includes at least a first heat level and a second heat level, the first heat level represents that the configuration frequency is greater than a first frequency threshold, and the second heat level represents that the configuration frequency is less than the first frequency threshold; the abstract configuration data corresponding to the first heat level is stored in the local cache area; the abstract configuration data corresponding to the second heat level is stored in the remote cache area.

[0144] According to one or more embodiments of the present disclosure, the multi-level cache system further includes a persistent storage area, and the persistent storage area is used to store historical abstract configuration data; the method further includes: synchronizing the abstract configuration data to the persistent storage area.

[0145] According to one or more embodiments of the present disclosure, after storing each data node in the abstract configuration data into a corresponding cache area in the multi-level cache system according to the access popularity of each data node in the abstract configuration data, it also includes: generating an offline update event corresponding to the abstract configuration data, the offline update event being used to configure the target network resources based on the data in the multi-level cache system; and executing the offline update event when the system time reaches the trigger time corresponding to the offline update event.

[0146] According to one or more embodiments of the present disclosure, generating an actual configuration request that matches each of the network devices based on the abstract configuration data, and sending the actual configuration request to the corresponding network device, includes: processing the abstract configuration data through a data adapter to determine at least one configuration channel, wherein the configuration channel corresponds one-to-one to the target network device; and sending a corresponding actual configuration request to the corresponding target network device through each of the configuration channels.

[0147] According to one or more embodiments of the present disclosure, sending a corresponding actual configuration request to a corresponding target network device through each configuration channel includes: obtaining version information corresponding to the abstract configuration data; determining a sending order corresponding to the actual configuration request based on the version information; and sending the corresponding actual configuration request to the target network device in sequence based on the sending order.

[0148] According to one or more embodiments of the present disclosure, the actual configuration request includes cloud tenant identification information corresponding to the target cloud tenant, and the actual configuration request is used to instruct the target network device to independently configure the target network resources belonging to the target cloud tenant based on the cloud tenant identification information.

[0149] In a second aspect, according to one or more embodiments of the present disclosure, a network configuration distribution device based on a cloud network is provided, comprising:

[0150] A receiving module, used to obtain a configuration instruction sent by a target cloud tenant, wherein the configuration instruction is used to configure a target network resource in the cloud network;

[0151] A processing module, configured to convert the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents configuration information of a target network device, the target network device is a network device that references the target network resource, the data leaf node represents configuration information of associated network resources corresponding to the target network device, the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents dependency relationships between associated network resources at different levels;

[0152] The generation module is used to generate an actual configuration request matching each of the target network devices, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

[0153] According to one or more embodiments of the present disclosure, the processing module is specifically used to: obtain global configuration data, the global configuration data representing the configuration information of network resources corresponding to all network devices in the cloud network of the target region; determine the target network device and the associated network resources corresponding to the target network device from the global configuration data according to the configuration instructions; generate the abstract configuration data according to the dependency relationship between the target network device and the associated network resources, and the associated network resources at each level.

[0154] According to one or more embodiments of the present disclosure, when the processing module generates the abstract configuration data according to the target network device and the associated network resources, and the dependency relationship between the associated network resources at each level, it is specifically used to: obtain the configuration information corresponding to the target network device, and store the configuration information corresponding to the target network device as a data root node; determine the first network resource in the associated network resources according to the configuration information corresponding to the target network device and the associated network resources, and obtain the configuration information of the first network resource; store the configuration information of the first network resource as a data leaf node; if the first network resource has a subordinate network resource with which there is a dependency relationship, generate the dependency information corresponding to the first network resource according to the type of the dependency relationship between the first network resource and the subordinate network resource; set the subordinate network resource as a new first network resource, and return to execute the step of storing the configuration information of the first network resource as a data leaf node; if the first network resource does not have a subordinate network resource with which there is a dependency relationship, generate the abstract configuration data according to the data root node, the data leaf node, and the dependency information.

[0155] According to one or more embodiments of the present disclosure, the processing module is further used to: receive a modification instruction sent by a target cloud tenant, wherein the modification instruction is used to modify network resources of a network device in the cloud network; and update the global configuration data according to the modification instruction.

[0156] According to one or more embodiments of the present disclosure, the abstract configuration data also includes dependency information corresponding to the data root node and / or the data leaf node, and the dependency information represents the type of the dependency relationship, wherein the dependency information includes first dependency information or second dependency information, and the type of dependency relationship represented by the first dependency information is a binding relationship, and the type of dependency relationship represented by the second dependency information is a parent-child relationship.

[0157] According to one or more embodiments of the present disclosure, the processing module is also used to: determine a multi-level cache system for the abstract configuration data, the multi-level cache system comprising at least a local cache area and a remote cache area; and store each of the data nodes in the abstract configuration data in a corresponding cache area in the multi-level cache system according to the access popularity of the data nodes.

[0158] According to one or more embodiments of the present disclosure, the access heat includes a configuration frequency, and the configuration frequency represents the frequency at which the configuration information corresponding to the data node changes; when the processing module stores each of the data nodes in the abstract configuration data to a corresponding position in the multi-level cache system according to the access heat of each data node, the processing module is specifically used to: obtain a corresponding heat level according to the configuration frequency of each data node in the abstract configuration data, wherein the heat level includes at least a first heat level and a second heat level, the first heat level represents that the configuration frequency is greater than a first frequency threshold, and the second heat level represents that the configuration frequency is less than the first frequency threshold; store the abstract configuration data corresponding to the first heat level in the local cache area; store the abstract configuration data corresponding to the second heat level in the remote cache area.

[0159] According to one or more embodiments of the present disclosure, the multi-level cache system further includes a persistent storage area, and the persistent storage area is used to store historical abstract configuration data; the processing module is further used to: synchronize the abstract configuration data to the persistent storage area.

[0160] According to one or more embodiments of the present disclosure, after storing each data node in the abstract configuration data in a corresponding cache area in the multi-level cache system according to the access popularity of each data node in the abstract configuration data, the processing module is also used to: generate an offline update event corresponding to the abstract configuration data, and the offline update event is used to configure the target network resources based on the data in the multi-level cache system; and execute the offline update event when the system time reaches the trigger time corresponding to the offline update event.

[0161] According to one or more embodiments of the present disclosure, the generation module is specifically used to: process the abstract configuration data through a data adapter to determine at least one configuration channel, wherein the configuration channel corresponds one-to-one to the target network device; and send a corresponding actual configuration request to the corresponding target network device through each configuration channel.

[0162] According to one or more embodiments of the present disclosure, when the generation module sends the corresponding actual configuration request to the corresponding target network device through each of the configuration channels, it is specifically used to: obtain version information corresponding to the abstract configuration data; based on the version information, determine the sending order corresponding to the actual configuration request; and send the corresponding actual configuration request to the target network device in sequence based on the sending order.

[0163] According to one or more embodiments of the present disclosure, the actual configuration request includes cloud tenant identification information corresponding to the target cloud tenant, and the actual configuration request is used to instruct the target network device to independently configure the target network resources belonging to the target cloud tenant based on the cloud tenant identification information.

[0164] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0165] The memory stores computer-executable instructions;

[0166] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the cloud network-based network configuration distribution method as described in the first aspect and various possible designs of the first aspect.

[0167] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the cloud network-based network configuration distribution method as described in the first aspect and various possible designs of the first aspect is implemented.

[0168] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the cloud network-based network configuration distribution method as described in the first aspect and various possible designs of the first aspect.

[0169] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

[0170] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0171] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A network configuration distribution method based on a cloud network, characterized in that: include: Obtaining a configuration instruction sent by a target cloud tenant, wherein the configuration instruction is used to configure a target network resource in the cloud network; Converting the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents configuration information of a target network device, the target network device is a network device that references the target network resource, the data leaf node represents configuration information of associated network resources corresponding to the target network device, the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents dependency relationships between associated network resources at different levels; According to the abstract configuration data, an actual configuration request matching each of the target network devices is generated, and the actual configuration request is sent to the corresponding target network device to configure the target network resources of the target network device.

2. The method according to claim 1, characterized in that The converting the configuration instruction into abstract configuration data based on a multi-tree structure includes: Acquire global configuration data, where the global configuration data represents configuration information of network resources corresponding to all network devices in the cloud network of the target region; According to the configuration instruction, determining a target network device and associated network resources corresponding to the target network device from the global configuration data; The abstract configuration data is generated according to the dependency relationship between the target network device and the associated network resources, as well as the associated network resources at each level.

3. The method according to claim 2, characterized in that The generating of the abstract configuration data according to the target network device and the associated network resources, and the dependency relationship between the associated network resources at each level, includes: Acquire configuration information corresponding to the target network device, and store the configuration information corresponding to the target network device as a data root node; Determine a first network resource in the associated network resources according to the configuration information corresponding to the target network device and the associated network resources, and obtain configuration information of the first network resource, where the first network resource is a network resource that directly depends on the target network device; Storing the configuration information of the first network resource as a data leaf node; If the first network resource has a subordinate network resource with which a dependency relationship exists, then according to the type of the dependency relationship between the first network resource and the subordinate network resource, dependency information corresponding to the first network resource is generated; the subordinate network resource is set as a new first network resource, and the step of storing the configuration information of the first network resource as a data leaf node is returned to be executed; If the first network resource does not have any subordinate network resource with which it has a dependency relationship, the abstract configuration data is generated according to the data root node, the data leaf node, and the dependency information.

4. The method according to claim 2, characterized in that: The method further comprises: receiving a modification instruction sent by a target cloud tenant, wherein the modification instruction is used to modify network resources of a network device in the cloud network; According to the modification instruction, the global configuration data is updated.

5. The method according to claim 1, characterized in that The abstract configuration data also includes dependency information corresponding to the data root node and / or the data leaf node, and the dependency information represents the type of the dependency relationship, wherein the dependency information includes first dependency information or second dependency information, the type of dependency relationship represented by the first dependency information is a binding relationship, and the type of dependency relationship represented by the second dependency information is a parent-child relationship.

6. The method according to claim 1, characterized in that The method further comprises: Determine a multi-level cache system for the abstract configuration data, the multi-level cache system comprising at least a local cache area and a remote cache area; According to the access popularity of each data node in the abstract configuration data, each data node is stored in a corresponding cache area in the multi-level cache system.

7. The method according to claim 6, characterized in that The access popularity includes a configuration frequency, where the configuration frequency represents a frequency at which configuration information corresponding to the data node changes; According to the access popularity of each data node in the abstract configuration data, each data node is stored in a corresponding position in the multi-level cache system, including: According to the configuration frequency of each data node in the abstract configuration data, a corresponding heat level is obtained, wherein the heat level includes at least a first heat level and a second heat level, the first heat level represents that the configuration frequency is greater than a first frequency threshold, and the second heat level represents that the configuration frequency is less than the first frequency threshold; Storing the abstract configuration data corresponding to the first heat level in the local cache area; The abstract configuration data corresponding to the second heat level is stored in the remote cache area.

8. The method according to claim 6, characterized in that The multi-level cache system also includes a persistent storage area, and the persistent storage area is used to store historical abstract configuration data; The method further comprises: The abstract configuration data is synchronized to the persistent storage area.

9. The method according to claim 6, characterized in that After storing each data node in the corresponding cache area of ​​the multi-level cache system according to the access popularity of each data node in the abstract configuration data, the method further includes: Generate an offline update event corresponding to the abstract configuration data, wherein the offline update event is used to configure the target network resource based on the data in the multi-level cache system; When the system time reaches the trigger time corresponding to the offline update event, the offline update event is executed.

10. The method according to claim 1, characterized in that The step of generating, according to the abstract configuration data, an actual configuration request matching each of the network devices, and sending the actual configuration request to the corresponding network device comprises: Processing the abstract configuration data through a data adapter to determine at least one configuration channel, wherein the configuration channel corresponds to the target network device in a one-to-one manner; The corresponding actual configuration request is sent to the corresponding target network device through each of the configuration channels.

11. The method according to claim 10, characterized in that The sending a corresponding actual configuration request to a corresponding target network device through each of the configuration channels includes: Obtaining version information corresponding to the abstract configuration data; Based on the version information, determining a sending order corresponding to the actual configuration requests; The corresponding actual configuration requests are sent to the target network devices in sequence based on the sending order.

12. The method according to claim 10, characterized in that The actual configuration request includes cloud tenant identification information corresponding to the target cloud tenant, and the actual configuration request is used to instruct the target network device to independently configure the target network resources belonging to the target cloud tenant based on the cloud tenant identification information.

13. A network configuration distribution device based on a cloud network, characterized in that: include: A receiving module, used to obtain a configuration instruction sent by a target cloud tenant, wherein the configuration instruction is used to configure a target network resource in the cloud network; A processing module, configured to convert the configuration instruction into abstract configuration data based on a multi-branch tree structure, wherein the abstract configuration data includes at least one data root node and a corresponding data leaf node, the data root node represents configuration information of a target network device, the target network device is a network device that references the target network resource, the data leaf node represents configuration information of associated network resources corresponding to the target network device, the associated network resources include the target network resource and related network resources that depend on the target network resource, and the tree structure of the abstract configuration data represents dependency relationships between associated network resources at different levels; The generation module is used to generate an actual configuration request matching each of the target network devices, and send the actual configuration request to the corresponding target network device to configure the target network resources of the target network device.

14. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the network configuration distribution method based on the cloud network according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the cloud network-based network configuration distribution method as described in any one of claims 1 to 12 is implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the cloud network-based network configuration distribution method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Method for acquiring configuration information, electronic equipment and storage medium

    CN113179332A

  • Cloud network architecture and method for maintaining entity objects with dependencies

    CN115987751A

  • Network configuration method and device

    CN116155737A