Network configuration method, apparatus, and computing device cluster
Patent Information
- Application Number
- CN202510574103.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2026-10-30
AI Technical Summary
[0004]但是,产品手册仅能够给出某个网络设备实现某个功能的命令语法和配置规范,而网络场景的个性化和多样化、网络中的网络设备数量多、种类繁杂、网络功能复杂,则需要从大量的产品手册中,确定网络中不同设备所需的命令语法和配置规范,才能完成网络配置
[0094]上述提供的任一种装置或计算机存储介质或计算机程序产品,均用于执行上文所提供的方法,因此,其所能达到的有益效果可参考上文提供的对应方法中的对应方案的有益效果,此处不再赘述。
Smart Images

Figure CN123020347A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a network configuration method, apparatus, and computing device cluster. Background Technology
[0002] With the rapid development and widespread application of information technologies such as cloud computing, the Internet of Things, and artificial intelligence, business demands in data communication fields such as parks and data centers are changing frequently. The construction of telecommunications infrastructure is accelerating, and the number and scale of network equipment and systems are constantly increasing. Network scenarios are becoming more personalized and diversified, making network configuration and management more challenging and complicated.
[0003] Currently, product manuals from various manufacturers are needed to assist in network configuration.
[0004] However, product manuals can only provide the command syntax and configuration specifications for a specific network device to achieve a certain function. The personalization and diversity of network scenarios, the large number and variety of network devices, and the complexity of network functions necessitate sifting through numerous product manuals to determine the required command syntax and configuration specifications for different devices in the network before network configuration can be completed. Therefore, current network configuration efficiency is low. Summary of the Invention
[0005] This application provides a network configuration method, apparatus, and computing device cluster that can improve network configuration efficiency.
[0006] Firstly, this application provides a network configuration method, including:
[0007] Obtain a network implementation plan and a network structure diagram. The network implementation plan is used to indicate the configuration requirements of the first network, and the network structure diagram is used to describe the multiple devices included in the first network and the connection relationships between the multiple devices.
[0008] By analyzing the network implementation scheme through a large model, the first characteristic scenario of the first network can be obtained;
[0009] Based on the network structure diagram, identify the second characteristic scenario of the first network;
[0010] Obtain a first configuration set that matches the first characteristic scenario and a second configuration set that matches the second characteristic scenario, wherein each configuration set includes at least one configuration command;
[0011] The configuration of the first network is determined based on the first configuration set and the second configuration set;
[0012] Among them, any characteristic scenario is used to indicate the functions that the first network needs to be configured, the first device that configures the functions, and the connection relationship between the first device and the second device.
[0013] According to this application, by obtaining a network implementation plan and a network structure diagram, a large model can analyze the configuration requirements of the network indicated by the network implementation plan, thereby obtaining a first characteristic scenario of the network. Based on the network structure diagram, a second characteristic scenario can also be identified. The characteristic scenario describes the functions that the network needs to configure, the first device configuring the functions, and the connection relationship between the first and second devices. Thus, a first configuration set matching the first characteristic scenario and a second configuration set matching the second characteristic scenario can be obtained. Since each configuration set includes at least one configuration command, the network configuration can be determined based on the first and second configuration sets. In determining the network configuration, the configured functions, the first device configuring the functions, and the connection relationship between the first and second devices are combined, thus enabling the determination of a complete configuration. Furthermore, compared to existing technologies, this application eliminates the need to determine the command syntax and configuration specifications required by different devices in the network from numerous product manuals, enabling automatic generation of network configurations and improving network configuration efficiency.
[0014] In one possible implementation, the method further includes:
[0015] Obtain a first sample example, which is used to indicate the thought process for determining the characteristic scenarios of the second network based on the network implementation scheme of the second network during the configuration of the second network;
[0016] By analyzing the network implementation scheme through a large model, the first characteristic scenario of the first network is obtained, including:
[0017] The large model learns the thought process indicated by the first sample example, analyzes the network implementation scheme of the first network, and obtains the first characteristic scenario of the first network.
[0018] In this way, by learning the thought process in the sample examples through a large model, the implementation plan of the first network can be analyzed based on the thought process of the sample examples, the first characteristic scenario of the first network can be obtained, the recognition speed of characteristic scenarios can be improved, and thus the network configuration efficiency can be improved.
[0019] In one possible implementation, the network implementation scheme of the second network includes a second function that the second network needs to configure, a second context of the second function, and a complete set of second characteristic scenarios of the second function. The first sample example is used to indicate the thought process of identifying the characteristic scenarios of the second network through the second context and the complete set of second characteristic scenarios during the configuration of the second network.
[0020] Before analyzing the network implementation scheme through a large model to obtain the first characteristic scenario of the first network, the method also includes:
[0021] Extract at least one first function that the first network needs to be configured and a first context describing each of the at least one first function from the network implementation scheme of the first network;
[0022] Based on each primary function, determine the complete set of primary characteristic scenarios for each primary function;
[0023] By analyzing the network implementation scheme through a large model, the first characteristic scenario of the first network is obtained, including:
[0024] The large model learns the thought process indicated by the first sample example, analyzes the first context, and determines the first characteristic scenario from the complete set of first characteristic scenarios.
[0025] Thus, by extracting the functions and functional context of the network implementation plan, the amount of data uploaded to the large model can be reduced, thereby improving the analysis efficiency of the large model.
[0026] In one possible implementation, the first sample example is also used to indicate a reflective correction process for the characteristic scenarios of the second network, and the method further includes:
[0027] The large model learns from the reflection and correction process indicated by the first sample example, and reflects and corrects the first characteristic scenario.
[0028] In this way, the large model can learn from the reflection and correction process of sample examples, reflect and correct the first characteristic scenario, and improve the accuracy of determining the first characteristic scenario.
[0029] In one possible implementation, the method also includes:
[0030] Send the first characteristic scenario to the client so that the user can confirm the first characteristic scenario through the client.
[0031] In this way, by having the user confirm the first characteristic scenario, the accuracy of the first characteristic scenario is improved, thereby improving the accuracy of determining the user's network configuration intent.
[0032] In one possible implementation, the method further includes:
[0033] Receive first instruction information from the client, the first instruction information including the user's confirmation instruction for the first feature scenario or the user's modification instruction for the first feature scenario;
[0034] If the instruction is a modification instruction, modify the first characteristic scenario according to the modification instruction.
[0035] This improves the accuracy of identifying the first characteristic scenario, thereby improving the accuracy of determining the user's network configuration intent.
[0036] In one possible implementation, the modification instruction is used to indicate a third characteristic scenario, which is a characteristic scenario determined by the user based on the user's needs.
[0037] This allows for a more precise fulfillment of users' configuration needs.
[0038] In one possible implementation, the method further includes:
[0039] Obtain configuration case sets for different networks. Each configuration case corresponds to one network. Any configuration case is used to indicate the network structure diagram, network implementation plan, and configuration of the corresponding network.
[0040] The network structure diagram, network implementation plan, and configuration of the network corresponding to the configuration case are analyzed to obtain the third configuration set of the configuration case;
[0041] Determine the fourth characteristic scenario that matches the third configuration set;
[0042] Based on the third configuration set and the fourth feature scenario for each configuration case, a configuration set library is built;
[0043] The configuration set library includes a first configuration set and a second configuration set.
[0044] In this way, each configuration set corresponds to a matching feature scenario. By associating and storing the feature scenarios and configuration sets, a configuration set library is built. This allows the system to identify the feature scenario of the network configured by the user, match the configuration set from the configuration set library based on that feature scenario, and then obtain the network configuration. This eliminates the need to determine the command syntax and configuration specifications required by different devices in the network from a large number of product manuals, thus improving the efficiency of network configuration.
[0045] In one possible implementation, the method further includes:
[0046] Obtain a second sample example, which is used to indicate the thought process of determining the characteristic scenarios of the third network based on the configuration set of the third network during the configuration process of the third network.
[0047] Determine the fourth characteristic scenario that matches the third configuration set, including:
[0048] The large model learns the thought process indicated by the second sample example, analyzes the third configuration set of configuration cases, and obtains the fourth characteristic scenario.
[0049] In this way, the large model can improve the accuracy of identifying characteristic scenarios by learning the thought process indicated in the sample examples and analyzing the configuration set in the configuration cases.
[0050] In one possible implementation, the method further includes:
[0051] Receive a second indication message sent by the client, wherein the second indication message is used to indicate to the user the modification of the third configuration set or the addition of the fourth configuration set;
[0052] Update the configuration collection library according to the second instruction.
[0053] In this way, users can customize configuration sets, thereby improving the generalizability of the configuration set library.
[0054] In one possible implementation, the large model is a model that has learned the entire set of characteristic scenarios.
[0055] Secondly, this application provides a network configuration apparatus, which includes:
[0056] The first acquisition module is used to acquire a network implementation plan and a network structure diagram. The network implementation plan is used to indicate the configuration requirements of the first network, and the network structure diagram is used to describe the multiple devices included in the first network and the connection relationships between the multiple devices.
[0057] The analysis module is used to analyze the network implementation scheme through a large model to obtain the first characteristic scenario of the first network;
[0058] The identification module is used to identify the second characteristic scenario of the first network based on the network structure diagram;
[0059] The second acquisition module is used to acquire a first configuration set that matches the first feature scenario and a second configuration set that matches the second feature scenario, wherein each configuration set includes at least one configuration command;
[0060] The configuration of the first network is determined based on the first configuration set and the second configuration set;
[0061] Among them, any characteristic scenario is used to indicate the functions that the first network needs to be configured, the first device that configures the functions, and the connection relationship between the first device and the second device.
[0062] In one possible implementation, the device further includes:
[0063] The third acquisition module is used to acquire the first sample example, which is used to indicate the thought process of determining the characteristic scenarios of the second network based on the network implementation scheme of the second network during the configuration of the second network.
[0064] The analysis module is used to learn the thought process indicated by the first sample example through a large model, analyze the network implementation scheme of the first network, and obtain the first characteristic scenario of the first network.
[0065] In one possible implementation, the network implementation scheme of the second network includes a second function that the second network needs to configure, a second context of the second function, and a complete set of second characteristic scenarios of the second function. The first sample example is used to indicate the thought process of identifying the characteristic scenarios of the second network through the second context and the complete set of second characteristic scenarios during the configuration of the second network.
[0066] The device also includes:
[0067] An extraction module is used to extract at least one first function that the first network needs to be configured and a first context describing each of the at least one first function from the network implementation scheme of the first network.
[0068] The determination module is used to determine the complete set of first characteristic scenarios for each first function based on each first function;
[0069] The analysis module is used to learn the thought process indicated by the first sample example through a large model, analyze the first context, and determine the first characteristic scenario from the complete set of first characteristic scenarios.
[0070] In one possible implementation, the first sample example is also used to indicate a reflective correction process for the characteristic scenarios of the second network, and the apparatus further includes:
[0071] The correction module is used for the reflective correction process of the first sample example indication when the large model learns, and to reflect on and correct the first characteristic scenario.
[0072] In one possible implementation, the device further includes:
[0073] The sending module is used to send the first characteristic scenario to the client so that the user can confirm the first characteristic scenario through the client.
[0074] In one possible implementation, the device further includes:
[0075] The receiving module is used to receive first indication information from the client. The first indication information includes the user's confirmation indication for the first feature scenario or the user's modification indication for the first feature scenario.
[0076] The modification module is used to modify the first characteristic scenario according to the modification instruction when the instruction information is a modification instruction.
[0077] In one possible implementation, the modification instruction is used to indicate a third characteristic scenario, which is a characteristic scenario determined by the user based on the user's needs.
[0078] In one possible implementation, the device further includes:
[0079] The fourth acquisition module is used to acquire configuration case sets for different networks. Each configuration case corresponds to a network, and any configuration case is used to indicate the network structure diagram, network implementation plan, and configuration of the corresponding network.
[0080] The parsing module is used to parse the network structure diagram, network implementation scheme, and configuration of the network corresponding to the configuration case, and obtain the third configuration set of the configuration case;
[0081] The determination module is used to determine the fourth characteristic scenario that matches the third configuration set;
[0082] The building module is used to build a configuration set library based on the third configuration set and the fourth feature scenario for each configuration case;
[0083] The configuration set library includes a first configuration set and a second configuration set.
[0084] In one possible implementation, the device further includes:
[0085] The fifth acquisition module is used to acquire the second sample example, which is used to indicate the thought process of determining the characteristic scenarios of the third network based on the configuration set of the third network during the configuration of the third network.
[0086] The determination module is used to learn the thought process indicated by the second sample example through a large model, analyze the third configuration set of configuration cases, and obtain the fourth characteristic scenario.
[0087] In one possible implementation, the device further includes:
[0088] The receiving module is used to receive second indication information sent by the client, wherein the second indication information is used to indicate to the user the modification of the third configuration set or the addition of the fourth configuration set;
[0089] The update module is used to update the configuration collection library based on the second instruction information.
[0090] Thirdly, this application also provides a computing device. The computing device includes a processor and a memory. The processor is used to execute a computer program stored in the memory to implement the method provided in the first aspect.
[0091] Fourthly, this application also provides a computing device cluster. The computing device cluster includes at least one computing device, each computing device including a processor and a memory. The processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, causing the computing device cluster to perform the method provided in the first aspect.
[0092] Fifthly, this application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to implement the method provided in the first aspect.
[0093] In a sixth aspect, this application also provides a computer program product containing instructions that, when run on a computer, cause the computer to implement the method provided in the first aspect.
[0094] Any of the devices, computer storage media, or computer program products provided above are used to execute the methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding solutions in the corresponding methods provided above, and will not be repeated here. Attached Figure Description
[0095] Figure 1 This is a schematic diagram of the architecture of a network configuration system provided in an embodiment of this application;
[0096] Figure 2 This is a flowchart illustrating a network configuration method provided in an embodiment of this application;
[0097] Figure 3 This is a schematic diagram of a network structure provided in an embodiment of this application;
[0098] Figure 4 This is a flowchart illustrating a method for determining a first characteristic scenario provided in an embodiment of this application;
[0099] Figure 5 This is a flowchart illustrating another network configuration method provided in an embodiment of this application;
[0100] Figure 6 This is a flowchart illustrating a method for determining the complete set of first characteristic scenarios provided in an embodiment of this application;
[0101] Figure 7 This is a flowchart illustrating another network configuration method provided in an embodiment of this application;
[0102] Figure 8 This is a flowchart illustrating a method for constructing a configuration collection library according to an embodiment of this application;
[0103] Figure 9 This is a flowchart illustrating another method for constructing a configuration collection library provided in this application embodiment;
[0104] Figure 10 This application provides a schematic diagram of the structure of a network configuration device;
[0105] Figure 11 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application;
[0106] Figure 12 This is a schematic diagram of the structure of a computing device cluster provided in an embodiment of this application;
[0107] Figure 13 This is a schematic diagram of another computing device cluster structure provided in an embodiment of this application. Detailed Implementation
[0108] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0109] First, the terms used in the embodiments of this application will be explained in detail.
[0110] Feature Scenario: A feature scenario describes the functions that the network needs to configure, the first device configuring the functions, and the connection relationship between the first and second devices configuring the functions. The first device configuring the functions can also be called the configuration device, and the device that the configuration device needs to connect to (i.e., the second device) when configuring the functions can also be called the connection device. A feature scenario can be considered a universal minimum configuration unit. The description of a feature scenario follows a specific format, which improves the accuracy of identifying the functions, the first device configuring the functions, and the connection relationship between the first and second devices within the feature scenario. For example, if the content of feature scenario 1 is "Function A: Configure on device S1", then the function described in feature scenario 1 is function A, and the configuration device is device S1. As another example, if the content of feature scenario 2 is "Function B: Configure function B1 on device S2", then the function described in feature scenario 2 is function B, the sub-function is function B1, and sub-function B1 needs to be configured on device S2. For example, if the content of feature scenario 3 is "Function C: Configure function C between device S3 and device S4", then the function described in feature scenario 3 is function C, the configuring device for function C is device S3, and the connecting device for configuring function C is device S4. The specific description format of the feature scenario shall be subject to actual needs, and this application embodiment does not impose specific limitations.
[0111] With the rapid development and widespread application of information technologies such as cloud computing, the Internet of Things, and artificial intelligence, business demands in data communication fields such as parks and data centers are changing frequently. The construction of telecommunications infrastructure is accelerating, and the number and scale of network equipment and systems are constantly increasing. Network scenarios are becoming more personalized and diversified, making network configuration and management more challenging and complicated.
[0112] Currently, network configuration relies on product manuals from various manufacturers. However, these manuals only provide the command syntax and configuration specifications for a specific function of a particular network device. The personalization and diversity of network scenarios, the large number and variety of network devices, and the complexity of network functions necessitate sifting through numerous product manuals to determine the required command syntax and configuration specifications for different devices within the network. This approach consumes a significant amount of time in determining the specific command syntax and configuration specifications needed for different devices in the network. Consequently, current network configuration efficiency is low.
[0113] Based on this, embodiments of this application provide a network configuration method, apparatus, and computing device cluster. In the network configuration method, by acquiring a network implementation scheme and a network structure diagram, a large model can analyze the configuration requirements of the network indicated by the network implementation scheme, thereby obtaining a first characteristic scenario of the network. Based on the network structure diagram, a second characteristic scenario can also be identified. The characteristic scenario can describe the functions that the network needs to configure, the first device configuring the functions, and the connection relationship between the first and second devices. Thus, a first configuration set matching the first characteristic scenario and a second configuration set matching the second characteristic scenario can be obtained. Since the configuration set includes at least one configuration command, the network configuration can be determined based on the first and second configuration sets. In the process of determining the network configuration, the configured functions, the first device configuring the functions, and the connection relationship between the first and second devices are combined, thus enabling the determination of a complete configuration. Furthermore, compared to existing technologies, this application does not require determining the command syntax and configuration specifications required by different devices in the network from a large number of product manuals to determine the network configuration, achieving automatic generation of network configuration and improving network configuration efficiency.
[0114] Figure 1 This is a schematic diagram of the architecture of a network configuration system provided in an embodiment of this application. For example... Figure 1 As shown, the network configuration system provided in this embodiment includes a computing device cluster 11, a client 12, and a network 13. The client 12 can access the computing device cluster 11 through the network 13. The computing device cluster 11 includes at least one computing device. The computing device can be a server, computer, etc. The computing device cluster 11 can be a cloud platform, thereby providing cloud services to implement the network configuration method provided in this embodiment.
[0115] Users can upload network implementation plans and network structure diagrams via the client. The computing device cluster 11 determines the network configuration by executing the network configuration method provided in this application embodiment, and then transmits the network configuration to the client for user use.
[0116] Figure 1This is merely one possible implementation. The network configuration method provided in this application embodiment can also be deployed on the user's computer. The specific deployment of the network configuration method can be based on the actual situation, and this application embodiment does not impose any specific limitations.
[0117] The network configuration method provided in the embodiments of this application will be described in detail below, taking the server as the execution subject.
[0118] Figure 2 This is a flowchart illustrating the network configuration method provided in an embodiment of this application. Figure 2 As shown, the network configuration method provided in this application embodiment includes the following steps S201 to S205.
[0119] S201, Obtain a network implementation plan and a network structure diagram. The network implementation plan is used to indicate the configuration requirements of the first network, and the network structure diagram is used to describe the multiple devices included in the first network and the connection relationships between the multiple devices.
[0120] Users can upload network implementation plans and network structure diagrams to the server. The first network refers to the network that the user intends to configure. The network implementation plan indicates the configuration requirements of the first network, which include the functions that the first network needs to configure, the devices that need to configure these functions, and other devices connected to those devices.
[0121] As one possible implementation, the network implementation could be a text file that users can upload to the server.
[0122] A network structure diagram is used to describe the multiple devices contained in a network and the connections between them. For example, ... Figure 3 The network structure diagram shown describes a network including access switches ACC1 and ACC2, core switches Core1 and Core2, egress firewalls FWA and FWB, wireless access controllers (WAC) AC1 and AC2, access points (AP) 1 and AP2, user wired terminals PC1 and PC2, tablet 1 and tablet 2, mobile phones 1 and 2, and the connections between these devices.
[0123] S202, through large model analysis of network implementation schemes, to obtain the first characteristic scenario of the first network.
[0124] The large model can analyze network implementation schemes, thereby obtaining the first characteristic scenario of the first network. This first characteristic scenario describes the functions that the first network needs to be configured, the first device configuring these functions, and the connection relationship between the first device and the second device. For example, the first device and the second device can be different devices. Alternatively, the second device can be the first device, in which case the first device's configuration functions do not require connection to other devices.
[0125] In some embodiments, such as Figure 4 As shown, prior to S202, the network configuration method provided in this application embodiment further includes the following step S401.
[0126] S401, Obtain a first sample example. The first sample example is used to indicate the thought process of determining the characteristic scenarios of the second network based on the network implementation scheme of the second network during the configuration of the second network.
[0127] The server may deploy a sample example library, which includes multiple sample examples. A sample example refers to the thought process involved in determining the characteristic scenarios of the second network based on its network implementation scheme during the configuration of the second network. The second network is an exemplary network. There is at least one first sample example.
[0128] As one possible implementation, the server obtains at least one first sample example based on the network implementation scheme of the first network. For example, at least one first sample example is retrieved from a sample example library based on keywords such as the functions described in the network implementation scheme and the names of the devices.
[0129] As another possible implementation, the server randomly draws at least one first sample example from the sample example library.
[0130] As another possible implementation, the server obtains multiple first sample examples using both of the above methods. For example, the server needs to obtain N first sample examples, with the number of first sample examples obtained by the two methods being in a certain proportion.
[0131] In this embodiment, step S402 is included in step S202.
[0132] S402, The thinking process of learning the first sample example of the large model is analyzed to obtain the first characteristic scenario of the first network.
[0133] The large model learns the thought process indicated by the first sample example, thereby analyzing the network implementation scheme of the first network. Based on the description of user configuration requirements in the network implementation scheme, it obtains the first characteristic scenario of the first network. In this way, by learning the thought process in the sample example, the large model analyzes the implementation scheme of the first network based on the thought process of the sample example, obtains the first characteristic scenario of the first network, improves the identification speed of characteristic scenarios, and thus improves network configuration efficiency.
[0134] In the specific implementation process, such as Figure 5 As shown, the information input to the large model includes the first sample example: {the network implementation scheme of the second network, the thought process, characteristic scenarios, reflection, and correction of characteristic scenarios}, and the network implementation scheme of the first network.
[0135] Optionally, such as Figure 5 As shown, the large model is the model after learning the entire set of characteristic scenarios. In this way, the thought process based on the first sample example can more accurately analyze the first scenario from the network implementation plan of the first network.
[0136] In other embodiments, the network implementation of the second network includes a second function that the second network needs to configure, a second context for the second function, and a complete set of second characteristic scenarios for the second function. The first sample example is used to indicate the thought process of identifying characteristic scenarios of the second network through the second context and the complete set of second characteristic scenarios during the configuration of the second network.
[0137] In this embodiment, after S201 and before S202, as Figure 6 As shown, it also includes steps S601 and S602.
[0138] S601, extract at least one first function and a first context describing each first function from the network implementation scheme.
[0139] S602, Based on the first function, determine the complete set of first characteristic scenarios matching the first function. The server deploys a complete set of characteristic scenarios, which includes at least one characteristic scenario corresponding to each function. Based on the first function, the complete set of first characteristic scenarios corresponding to the first function can be obtained by matching from the complete set of characteristic scenarios.
[0140] In S202, the large model learns the thought process indicated by the first sample example, thereby learning how to analyze the context of a function and then determining the corresponding feature scenario of the network from the complete set of feature scenarios. After learning the thought process of the first sample example, the large model analyzes the first function and the first context to determine the first feature scenario from the complete set of first feature scenarios.
[0141] In this way, a chain of reflection, revision, and thought (CoT) is formed, and the process of identifying characteristic scenarios is strengthened through user feedback.
[0142] In some embodiments, the first sample example is also used to indicate a reflective correction process for the characteristic scenario of the second network. The large model is also able to learn the reflective correction process to reflectively correct the first characteristic scenario.
[0143] In the specific implementation process, such as Figure 7 The Rethink-Revise-CoT example shows that the input information for the large model is the first sample example: {second context, complete set of second characteristic scenarios, thought process, characteristic scenario, reflection, revised characteristic scenario}, first context, and complete set of first characteristic scenarios. When the large model receives the instruction to identify the characteristic scenario, it analyzes the first context based on the thought process in the first sample example to obtain the first characteristic scenario.
[0144] Below, with Figure 6 The embodiments shown illustrate the analysis process for large models.
[0145] For example, the first function extracted from the implementation scheme of the first network is as follows:
[0146] (1) The primary function is Ethernet link aggregation (Eth-Trunk) and Virtual Local Area Network (VLAN). The primary context is "Configure two egress firewalls: ... In the interface configuration of egress firewall FW00, configure ETH-TRUNK 0, which connects to the core switch in the office area. VLAN 266 is the VLAN for interconnecting the egress firewall and the core switch..."
[0147] (2) The primary function is a security zone, and the primary context is "Configure two egress firewalls: ... Configure security zones on the egress firewall FW00, and plan the security zones as: High Availability (HA), Office, Server, and Untrusted..."
[0148] The analysis process of the large model will be explained in detail using the first function, the security zone, as an example. The complete set of the first characteristic scenarios corresponding to the first function is {"Security Zone"; Security Zone: configured on the egress firewall; Security Zone: configured on the internal network firewall}.
[0149] The first sample example, the first context "Configure two egress firewalls: ... Configure security zones on the egress firewall FW00, with security zones planned as: HA, office zone, server zone, untrust zone...", and the complete set of the first characteristic scenarios "{"Security Zone" Security Zone: Configured on the egress firewall; Security Zone: Configured on the internal network firewall}" are input into the large model, and the large model is analyzed. The analysis process is as follows:
[0150] [Thinking process]:
[0151] 1. Understanding configuration requirements: The task mentions that security zone configuration needs to be performed on the outbound firewall FW00.
[0152] 2. Identify key information: The task clearly indicates that there are four security zones that need to be configured: HA, office zone, server zone, and untrust zone.
[0153] 3. Define the scope of the feature scenario: Based on the context and the complete set of feature scenarios, there are two possible feature scenarios: "Security zone: configured on the outbound firewall" and "Security zone: configured on the internal firewall".
[0154] 4. Determine the applicable scenario: The task clearly states that the configuration is performed on the egress firewall FW00, without mentioning the connection device. Therefore, [first context] indicates that the scenario the user needs to configure is "Security Zone: Configure on the egress firewall".
[0155] [Answer]: According to the task description, a security zone needs to be configured on the egress firewall FW00. The user's configuration intent is {"Security Zone" Security Zone: Configure on the egress firewall}.
[0156] [Reflection]: 1. Re-examine the task description: Confirm again that the task mentions the outbound firewall FW00 and that four security zones need to be configured.
[0157] 2. Rule out other possibilities: The task does not mention any information about the internal network firewall, so the scenario of "Security Zone: Configure on the internal network firewall" can be ruled out.
[0158] 3. Confirm Task Objective: The objective of the task is to ensure that the security zone on the egress firewall is configured correctly, which is exactly the same as "Security Zone: Configure on Egress Firewall".
[0159] [Corrected Answer]: After reflection and confirmation, the task is indeed to configure a security zone on the egress firewall FW00. Therefore, it can be determined that the user's configuration intent is {"Security Zone" Security Zone: Configure on the egress firewall}.
[0160] Based on the above thought process, the large model, based on the first context "Configure two egress firewalls: ... Configure security zones on the egress firewall FW00, with security zones planned as: HA, office zone, server zone, untrust zone..." and the complete set of the first characteristic scenarios "{"Security Zone" Security Zone: Configured on the egress firewall; Security Zone: Configured on the internal network firewall}", analyzes and obtains the first characteristic scenario as {"Security Zone" Security Zone: Configured on the egress firewall}.
[0161] Thus, by extracting the functions and functional context of the network implementation plan, the amount of data uploaded to the large model can be reduced, thereby improving the analysis efficiency of the large model.
[0162] Optionally, the server can also receive first instruction information from the client, which includes a user's confirmation instruction for a first feature scenario or a user's modification instruction for the first feature scenario. Specifically, the server can send the first feature scenario to the user for confirmation or modification. When the server receives the first instruction information, if it is a modification instruction for the first feature scenario, the server modifies the first feature scenario according to the modification instruction. For example, when the modification instruction indicates a third feature scenario, the first feature scenario is modified to the third feature scenario. This makes the first feature scenario more aligned with the user's intent and more accurately meets the customer's configuration requirements.
[0163] Optionally, the server can also update and optimize the sample library based on user modification instructions.
[0164] For example, the function is Internet Protocol Security (IPSec), and the context of this function is "Product features, ... As a new generation of firewall products for Enterprise A, the FW series firewall significantly improves the firewall's performance in handling content security inspection, IPSec and other services."
[0165] The thought process of the large model can be viewed by users through the client. The thought process of the large model is as follows:
[0166] [Thinking process]:
[0167] 1. Understand the configuration requirements:
[0168] The context refers to Company A's FW series firewalls.
[0169] This firewall significantly improves the processing performance of services such as content security inspection and IPSec.
[0170] 2. Identify key information:
[0171] Since the context explicitly mentions a firewall, the scenario for configuring IPSec should be configured on the firewall.
[0172] IPSec-related features need to be configured on the firewall to improve processing performance.
[0173] 3. Define the scope of feature scenario selection: Select firewall IPSec configuration scenarios related to the [feature] from the [full set of feature scenarios].
[0174] 4. Select the most suitable feature scenario:
[0175] Since the context emphasizes "significantly improving the firewall's performance in handling content security inspection, IPSec, and other services," this implies the need to configure more advanced IPSec features to optimize performance. Therefore, a comprehensive configuration scenario that includes multiple functions is more appropriate.
[0176] [Answer]: {"IPSec"IPSec: Configure IPSec security policy function on the outbound firewall}
[0177] [Reflection]: While "IPSec: Configuring IPSec Security Policies on the Egress Firewall" is an important feature scenario, simply configuring security policies may not be sufficient to comprehensively improve performance. The context emphasizes "significantly improving the firewall's performance in handling content security inspection, IPSec, and other services," which means that comprehensive configuration of related functions is needed to achieve this goal. Therefore, it is also necessary to select the relevant basic configuration "IPSec: Configuring on the Egress Firewall." Combining these two feature scenarios can better improve IPSec performance, ensuring that the firewall handles IPSec services more efficiently and securely.
[0178] [Corrected answer]: {"IPSec"IPSec: Configure IPSec security policy function on the outbound firewall, IPSec: Configure on the outbound firewall}.
[0179] The server outputs the above thought process and results to the client, and the user can confirm and correct them from the client's interface. For example: "This context is just a functional introduction to the firewall device FW of Enterprise A, not a scenario where the user actually needs to configure IPSec features. Therefore, the user does not need to configure any IPSec features in this context description related to IPSec."
[0180] Sample examples are constructed based on user-confirmed correction information. The sample example library is then updated and optimized based on these user-constructed examples, enabling the large model to learn and correctly identify such scenarios in the future. The sample examples in the sample example library for identifying the "IPSec" feature scenario, added based on user feedback, are as follows:
[0181] [Context]: "V. Product Features, ... As a new generation of firewall products for Enterprise A, the FW series firewalls significantly improve the firewall's performance in handling content security inspection, IPSec and other services."
[0182] [Complete Collection of Featured Scenarios]: [...]
[0183] [Thinking process]: ……
[0184] [Answer]:…….
[0185] [Reflection]: This context is only a functional introduction to Enterprise A's firewall device FW, not a scenario where the user actually needs to configure IPSec features. Therefore, this IPSec-related context description does not require the user to configure any IPSec features.
[0186] [Corrected answer]: {}.
[0187] S203, Based on the network structure diagram, identify the second characteristic scenario of the first network.
[0188] A network structure diagram reflects the necessary configuration scenarios for a network. Therefore, a server can identify the second characteristic scenario of the first network from the network structure diagram. One possible implementation is that the server can identify the second characteristic scenario of the first network from the network structure diagram based on expert rules. This involves identifying information such as device names, device types, device roles, and connected device names in the network structure diagram through icons, line matching, and expert knowledge. Based on device roles and quantities, and using expert knowledge, key configuration items such as user types, AC configuration, network layer, gateway location, Dynamic Host Configuration Protocol (DHCP), authentication policies, egress traffic patterns, and external communication requirements are identified. Another possible implementation is that the server can analyze the network structure diagram using a large model to obtain the second characteristic scenario of the first network.
[0189] For example, such as Figure 3 The network structure diagram shown below contains the following information that the server can recognize:
[0190]
[0191] The key configuration items identified based on expert rules are:
[0192] "Critical Configuration":{
[0193] "User Type": "Wired Users + Wireless Users"
[0194] "wac mode": "Independent WAC",
[0195] "Network layer": "Two-tier architecture",
[0196] "Gateway Location":"Core Switch",
[0197] "DHCP server mode": "Enabled on network devices",
[0198] "Authentication Policy": "Network Access Control (NAC)"
[0199] Outbound traffic mode: "Only firewall direct connection is used as the outbound route"
[0200] "External access requirement": "Internet access only"
[0201] }
[0202] The above is based on the server. Figure 3 The network structure diagram shown is a partial structure diagram information obtained through identification.
[0203] S204, obtain a first configuration set matching the first characteristic scenario and a second configuration set matching the second characteristic scenario, wherein each configuration set includes at least one configuration command.
[0204] The server can retrieve a first configuration set matching a first characteristic scenario and a second configuration set matching a second characteristic scenario from the configuration set library. The configuration set library is pre-built and includes configuration sets matching different characteristic scenarios; each configuration set includes at least one configuration command.
[0205] For example, the feature scenario is {DHCP: Configure the DHCP interface address pool function for wired services on the core switch (##B##)}, and its configuration set is as follows:
[0206] #Configure the allocation of addresses to wired terminals via the interface address pool.
[0207] [CORE] interface vlanif 50 / / Enter the configuration mode of the Layer 3 logical interface (VLAN Interface) for VLAN 50.
[0208] [CORE-Vlanif50]dhcp select interface / / Enable DHCP service and automatically assign IP addresses using the interface address pool.
[0209] [CORE-Vlanif50]dhcp server dns-list 192.168.11.2 / / Configure the terminal's DNS server
[0210] [CORE-Vlanif50]arp-proxy inner-sub-vlan-proxy enable / / Enables the Address Resolution Protocol (ARP) function within the VLAN for wired users; otherwise, traffic between wired users cannot communicate with each other. Please determine whether this command needs to be configured based on your actual needs.
[0211] [CORE-Vlanif50]quit / / Exit VLANIF 50 configuration mode and return to the global view.
[0212] [CORE] interface vlanif 60 / / Enter the Layer 3 interface configuration mode for VLAN 60
[0213] [CORE-Vlanif60]dhcp select interface / / Enable DHCP service and automatically assign IP addresses using the interface address pool.
[0214] [CORE-Vlanif60]dhcp server dns-list 192.168.11.2 / / Configure the terminal's DNS server
[0215] [CORE-Vlanif60]arp-proxy inner-sub-vlan-proxy enable / / Enables the proxy ARP function within the VLAN of wired users; otherwise, traffic between wired users cannot communicate with each other. Please determine whether this command needs to be configured based on your actual needs.
[0216] [CORE-Vlanif60]quit
[0217] The configuration collection library is pre-built. In some embodiments, this application also provides a method for building the configuration collection library. Figure 8 As shown, the method for constructing the configuration collection library provided in this application embodiment includes the following steps S801 to S804.
[0218] S801, obtain configuration case sets for different networks. Each configuration case corresponds to a network. Any configuration case is used to indicate the network structure diagram, network implementation plan and configuration of the corresponding network.
[0219] When selling network equipment, vendors provide a series of typical configuration examples for the network scenarios in which the equipment can be applied. For example, one vendor might offer a series of network configuration examples for routers, switches, and other network devices. These configuration examples include the network structure, the implementation plan, and the configurations required to implement the plan.
[0220] S802, parse the network structure diagram, network implementation plan and configuration of the network corresponding to the configuration case to obtain the third configuration set of the configuration case.
[0221] By parsing the network structure diagram, network implementation plan, and configuration, the server can identify a third set of configuration cases. Each configuration set includes at least one configuration command.
[0222] S803, determine the fourth feature scenario that matches the third configuration set.
[0223] Based on the contents of the third configuration set, match the fourth feature scenario corresponding to the third configuration set from the full set of feature scenarios.
[0224] In some embodiments, such as Figure 9 The illustrated process involves building a knowledge-guide-thought chain (CoT) and user-defined configuration set library. The server analyzes the third configuration set using a large model to determine the fourth characteristic scenario that matches the third configuration set. First, the server obtains a second sample example, which indicates the thought process for determining the characteristic scenario of the third network based on its configuration set during the configuration of the third network. Next, in step S803, the large model learns the thought process indicated by the second sample example based on preset information, analyzing the third configuration set of configuration cases to obtain the fourth characteristic scenario. The preset information includes the definition of the characteristic scenario and expert identification rules.
[0225] like Figure 9 As shown, the input information for the large model includes preset information, a second sample example {configuration set, complete set of characteristic scenarios, thought process - reference to preset information, answer}, a third configuration combination, and the complete set of characteristic scenarios. By inputting the above information into the large model, the fourth characteristic scenario corresponding to the third configuration set can be determined.
[0226] S804 builds a configuration set library based on the third configuration set and the fourth feature scenario for each configuration case.
[0227] Each configuration case corresponds to at least one configuration set. For example... Figure 9 As shown, configuration sets and their corresponding feature scenarios are stored. In this way, a configuration set library can be built based on multiple configuration cases.
[0228] For example, the contents of the third configuration set are as follows:
[0229] [Configuration Set Name]: "#Configure the network segment for CORE to connect to the Internet.\n",
[0230] [Configuration Collection Contents]:" <pre class=\"screen\"><;CORE>; <strong> system-view< / strong> \n[CORE] <strong> interface Eth-Trunk 30< / strong> \n[CORE-Eth-Trunk30] <strong> mode lacp< / strong> \n[CORE-Eth-Trunk30] <strong> description conto Internet< / strong> \n[CORE-Eth-Trunk30] <strong> trunkport xgigabitethernet 1 / 1 / 0 / 5< / strong> \n[CORE-Eth-Trunk30] <strong> trunkport xgigabitethernet 2 / 1 / 0 / 5< / strong> \n[CORE-Eth-Trunk30] <strong> undo portswitch< / strong> \n[CORE-Eth-Trunk30] <strong> IP address 172.16.3.1 24< / strong> \n[CORE-Eth-Trunk30] <strong> quit< / strong> < / pre> \n".
[0231] [List of devices involved in the configuration set]:["External network (internet)","Core switch (Core)"].
[0232] The complete set of feature scenarios corresponding to this third configuration set is as follows:
[0233] [Complete set of feature scenarios corresponding to the configuration set]:{"Eth-Trunk""Eth-Trunk: Configure connections between the core switch and other switches",...},
[0234] }
[0235] The above-mentioned third configuration set, second sample examples, and preset information for feature scene recognition are input into the large model. The thought process of the large model is as follows:
[0236] [Thinking Process]: Based on the <Preset Information for Feature Scenario Identification>, [Configuration Set Name], and [Configuration Set Content], it can be determined that the configuration set has the "Eth-Trunk" feature configured on the "Core Switch" device in the [List of Devices Involved in the Configuration Set]. Configuring this function requires considering which other devices in the [List of Devices Involved in the Configuration Set] it connects to. The [Configuration Set Name] and [Configuration Set Content] indicate a connection to the "External Network (Internet)" device. Based on the definition and identification rules of feature scenarios, combined with the functions, devices, and connected devices configured in this configuration set, the feature scenario for each function is selected from the [Complete Set of Feature Scenarios for the Configuration Set]. This yields the feature scenario where the configuration set configures the "Eth-Trunk" function: ["Eth-Trunk: Configuring the connection between the core switch and the egress network"].
[0237] [Answer]:{"Eth-Trunk":["Eth-Trunk: Configuring the connection between the core switch and the egress network"]}
[0238] In some embodiments, the server receives a second indication message sent by the client, wherein the second indication message is used to indicate to the user the modification of a third configuration set or the addition of a fourth configuration set; and updates the configuration set library according to the second indication message.
[0239] For example, such as Figure 9 As shown, users can modify the configuration sets in the configuration set library through the client according to their own needs.
[0240] For example, the feature scenarios - configuration sets in Enterprise A's configuration collection library are as follows:
[0241] "DHCP: Configure the DHCP interface address pool function for wired services on the core switch (##B##)":
[0242] #Configure the allocation of addresses to wired terminals via the interface address pool.
[0243] [CORE] interface vlanif 50 / / Enter the configuration mode of the Layer 3 logical interface (VLAN Interface) for VLAN 50.
[0244] [CORE-Vlanif50]dhcp select interface / / Enable DHCP service and automatically assign IP addresses using the interface address pool.
[0245] [CORE-Vlanif50]dhcp server dns-list 192.168.11.2 / / Configure the terminal's DNS server
[0246] [CORE-Vlanif50]arp-proxy inner-sub-vlan-proxy enable / / Enables the Proxy ARP function within the VLAN of wired users; otherwise, traffic between wired users cannot communicate with each other. Please determine whether this command needs to be configured based on your actual needs.
[0247] [CORE-Vlanif50]quit / / Exit VLANIF 50 configuration mode and return to the global view.
[0248] [CORE] interface vlanif 60 / / Enter the Layer 3 interface configuration mode for VLAN 60
[0249] [CORE-Vlanif60]dhcp select interface / / Enable DHCP service and automatically assign IP addresses using the interface address pool.
[0250] [CORE-Vlanif60]dhcp server dns-list 192.168.11.2 / / Configure the terminal's DNS server
[0251] [CORE-Vlanif60]arp-proxy inner-sub-vlan-proxy enable / / Enables the proxy ARP function within the VLAN of wired users; otherwise, traffic between wired users cannot communicate with each other. Please determine whether this command needs to be configured based on your actual needs.
[0252] [CORE-Vlanif60]quit / / Exit the current interface configuration mode
[0253] Users dislike prompts and comment text. To accommodate user needs, users can search for and modify configuration sets based on specific scenarios through the client interface. The modified configuration sets are as follows:
[0254] #Configure the allocation of addresses to wired terminals via the interface address pool.
[0255] interface vlanif 50
[0256] dhcp select interface
[0257] dhcp server dns-list 192.168.11.2
[0258] arp-proxy inner-sub-vlan-proxy enable
[0259] quit
[0260] interface vlanif 60
[0261] dhcp select interface
[0262] dhcp server dns-list 192.168.11.2
[0263] arp-proxy inner-sub-vlan-proxy enable
[0264] quit
[0265] Another example is when a user's network configuration uses equipment from other vendors. The user can add new feature scenarios / configuration sets through the client interface according to their needs. For instance, when a user's network configuration involves enterprise A's equipment connecting to a third-party vendor's equipment (enterprise A does not have this product), and an "enterprise A campus switch" connecting to "enterprise B's IP phone" (enterprise A does not have this product), the user can add two feature scenarios / configuration sets to the switch in the following format on the interface:
[0266] "VLAN: Configure the voice port access function (##E##) on the access switch to connect to the Cisco IP phone":
[0267] #Add the interface to the voice VLAN.
[0268] [SwitchA]interface gigabitethernet 1 / 0 / 1 / / Enter the configuration mode of the physical interface Gigabit Ethernet 1 / 0 / 1
[0269] [SwitchA-GigabitEthernet1 / 0 / 1]port link-type hybrid / / Note that for versions V200R005C00 and later, the default interface type is not hybrid mode and needs to be configured as required.
[0270] [SwitchA-GigabitEthernet1 / 0 / 1]port hybrid tagged vlan 100 / / Interface is added to the voice VLAN 100 using a tagged interface.
[0271] [SwitchA-GigabitEthernet1 / 0 / 1]quit / / Exit the current interface configuration mode and return to the system view
[0272] [SwitchA]interface gigabitethernet 1 / 0 / 2 / / Enter the configuration mode of the physical interface Gigabit Ethernet 1 / 0 / 2
[0273] [SwitchA-GigabitEthernet1 / 0 / 2]port link-type hybrid / / Sets the interface type to hybrid mode
[0274] [SwitchA-GigabitEthernet1 / 0 / 2]port hybrid tagged vlan 100 / / Add the interface to VLAN 100 using a tag.
[0275] [SwitchA-GigabitEthernet1 / 0 / 2]quit / / Exit the current interface configuration mode
[0276] "Voice VLAN: Configure Voice VLAN functionality on the access switch between the device and the IP phones of Enterprise B (##E##)"
[0277] # Enable the Voice VLAN function on the interface.
[0278] [SwitchA]interface gigabitethernet 1 / 0 / 1 / / / / Enter the configuration mode of the physical interface Gigabit Ethernet 1 / 0 / 1
[0279] [SwitchA-GigabitEthernet1 / 0 / 1]voice-vlan 100enable / / Enables voice VLAN on the current interface and specifies VLAN 100 as the VLAN to which voice traffic belongs.
[0280] [SwitchA-GigabitEthernet1 / 0 / 1]quit / / Exit interface configuration mode and return to system view
[0281] [SwitchA]interface gigabitethernet 1 / 0 / 2 / / Enter the configuration mode of the physical interface Gigabit Ethernet 1 / 0 / 2
[0282] [SwitchA-GigabitEthernet1 / 0 / 2]voice-vlan 100enable / / Enable voice VLAN 100 function
[0283] [SwitchA-GigabitEthernet1 / 0 / 2]quit / / Exit interface configuration mode
[0284] [SwitchA]voice-vlan mac-address 001b-d4c7-0000 mask ffff-ffff-0000 / / Versions prior to V200R003 required configuring the Organizationally Unique Identifier (OUI) address, which corresponds to the IP phone's Media Access Control (MAC) address. Versions V200R003 and later do not require this.
[0285] [SwitchA]voice-vlan mac-address 0021-a08f-0000mask ffff-ffff-0000 / / Add another OUI address
[0286] S205, determine the configuration of the first network based on the first configuration set and the second configuration set.
[0287] Based on characteristic scenarios, network structure diagrams, and key configuration items, the server searches for multimodal similar typical configuration cases, ensuring that the configuration set of characteristic scenarios comes from the same typical configuration case as much as possible. By filtering, assembling, and sorting configuration sets from multiple different configuration cases, the configuration of the first network can be generated automatically, end-to-end, customized, and quickly.
[0288] The network can be configured using the configuration commands in the configuration of the first network.
[0289] According to embodiments of this application, by acquiring a network implementation scheme and a network structure diagram, a large model can analyze the configuration requirements of the network indicated by the network implementation scheme, thereby obtaining a first characteristic scenario of the network. Based on the network structure diagram, a second characteristic scenario can also be identified. The characteristic scenario describes the functions that the network needs to configure, the first device configuring the functions, and the connection relationship between the first and second devices. Thus, a first configuration set matching the first characteristic scenario and a second configuration set matching the second characteristic scenario can be obtained. Since the configuration set includes at least one configuration command, the network configuration can be determined based on the first and second configuration sets. In determining the network configuration, the configured functions, the first device configuring the functions, and the connection relationship between the first and second devices are combined, thus enabling the determination of a complete configuration. Furthermore, compared to existing technologies, this application does not require determining the command syntax and configuration specifications required by different devices in the network from numerous product manuals, thereby automatically generating network configurations and improving network configuration efficiency.
[0290] Based on the same concept as the embodiments of the method in this application, this application also provides a network configuration device. The network configuration device includes several modules, each module being used to execute various steps in the network configuration method provided in the embodiments of this application. The division of modules is not limited here. Those skilled in the art will clearly understand that in practical applications, the various steps in the network configuration method provided in the embodiments of this application can be assigned to different modules as needed, that is, the internal structure of the device can be divided into different modules to complete all or part of the functions described above. The modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more modules can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the modules in the above device can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0291] For example, the network configuration device is used to execute the network configuration method provided in the embodiments of this application. Figure 10 This is a schematic diagram of the network configuration device provided in an embodiment of this application. Figure 10 As shown, the network configuration device provided in this application embodiment includes:
[0292] The first acquisition module 1001 is used to acquire a network implementation plan and a network structure diagram. The network implementation plan is used to indicate the configuration requirements of the first network, and the network structure diagram is used to describe the multiple devices included in the first network and the connection relationships between the multiple devices.
[0293] Analysis module 1002 is used to analyze the network implementation scheme through a large model in order to obtain the first characteristic scenario of the first network;
[0294] The identification module 1003 is used to identify the second characteristic scenario of the first network based on the network structure diagram;
[0295] The second acquisition module 1004 is used to acquire a first configuration set that matches the first characteristic scenario and a second configuration set that matches the second characteristic scenario, wherein each configuration set includes at least one configuration command;
[0296] The determination module 1005 is used to determine the configuration of the first network based on the first configuration set and the second configuration set;
[0297] Among them, any characteristic scenario is used to indicate the functions that the first network needs to be configured, the first device that configures the functions, and the connection relationship between the first device and the second device.
[0298] In one possible implementation, the device further includes:
[0299] The third acquisition module is used to acquire the first sample example, which is used to indicate the thought process of determining the characteristic scenarios of the second network based on the network implementation scheme of the second network during the configuration of the second network.
[0300] The analysis module is used to learn the thought process indicated by the first sample example through a large model, analyze the network implementation scheme of the first network, and obtain the first characteristic scenario of the first network.
[0301] In one possible implementation, the network implementation scheme of the second network includes a second function that the second network needs to configure, a second context of the second function, and a complete set of second characteristic scenarios of the second function. The first sample example is used to indicate the thought process of identifying the characteristic scenarios of the second network through the second context and the complete set of second characteristic scenarios during the configuration of the second network.
[0302] The device also includes:
[0303] An extraction module is used to extract at least one first function that the first network needs to be configured and a first context describing each of the at least one first function from the network implementation scheme of the first network.
[0304] The determination module is used to determine the complete set of first characteristic scenarios for each first function based on each first function;
[0305] The analysis module is used to learn the thought process indicated by the first sample example through a large model, analyze the first context, and determine the first characteristic scenario from the complete set of first characteristic scenarios.
[0306] In one possible implementation, the first sample example is also used to indicate a reflective correction process for the characteristic scenarios of the second network, and the apparatus further includes:
[0307] The correction module is used for the reflective correction process of the first sample example indication when the large model learns, and to reflect on and correct the first characteristic scenario.
[0308] In one possible implementation, the device further includes:
[0309] The sending module is used to send the first characteristic scenario to the client so that the user can confirm the first characteristic scenario through the client.
[0310] In one possible implementation, the device further includes:
[0311] The receiving module is used to receive first indication information from the client. The first indication information includes the user's confirmation indication for the first feature scenario or the user's modification indication for the first feature scenario.
[0312] The modification module is used to modify the first characteristic scenario according to the modification instruction when the instruction information is a modification instruction.
[0313] In one possible implementation, the modification instruction is used to indicate a third characteristic scenario, which is a characteristic scenario determined by the user based on the user's needs.
[0314] In one possible implementation, the device further includes:
[0315] The fourth acquisition module is used to acquire configuration case sets for different networks. Each configuration case corresponds to a network, and any configuration case is used to indicate the network structure diagram, network implementation plan, and configuration of the corresponding network.
[0316] The parsing module is used to parse the network structure diagram, network implementation scheme, and configuration of the network corresponding to the configuration case, and obtain the third configuration set of the configuration case;
[0317] The determination module is used to determine the fourth characteristic scenario that matches the third configuration set;
[0318] The building module is used to build a configuration set library based on the third configuration set and the fourth feature scenario for each configuration case;
[0319] The configuration set library includes a first configuration set and a second configuration set.
[0320] In one possible implementation, the device further includes:
[0321] The fifth acquisition module is used to acquire the second sample example, which is used to indicate the thought process of determining the characteristic scenarios of the third network based on the configuration set of the third network during the configuration of the third network.
[0322] The determination module is used to learn the thought process indicated by the second sample example through a large model, analyze the third configuration set of configuration cases, and obtain the fourth characteristic scenario.
[0323] In one possible implementation, the device further includes:
[0324] The receiving module is used to receive second indication information sent by the client, wherein the second indication information is used to indicate to the user the modification of the third configuration set or the addition of the fourth configuration set;
[0325] The update module is used to update the configuration collection library based on the second instruction information.
[0326] Based on the same concept as the method embodiments of this application, this application also provides a computing device. This computing device is also known as a network configuration device. The computing device can be a server, computer, or other similar device.
[0327] Figure 11 This is a schematic diagram of the hardware structure of a computing device 1100 provided in an embodiment of this application.
[0328] See Figure 11 The computing device 1100 includes a chip 1101, a memory 1102, a communication interface 1103, and a bus 1104. The chip 1101, the memory 1102, and the communication interface 1103 are connected to each other via the bus 1104. The chip 1101, the memory 1102, and the communication interface 1103 may also be connected using other connection methods besides the bus 1104.
[0329] The memory 1102 can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), flash memory, optical storage, hard disk, etc.
[0330] Chip 1101 may be a System-on-a-Chip (SOC) as described above, which may include a processor and a connector. The processor may be a general-purpose processor. A general-purpose processor may be a processor that performs specific steps and / or operations by reading and executing contents stored in memory (e.g., memory 1102). For example, a general-purpose processor may be a central processing unit (CPU). Chip 1101 may include at least one circuit to perform all or part of the steps of the methods provided in the above embodiments.
[0331] The communication interface 1103 includes input / output (I / O) interfaces, physical interfaces, and logical interfaces for interconnecting devices within the computing device 1100, as well as interfaces for interconnecting the computing device 1100 with other devices (such as other computing devices or user equipment). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.
[0332] The bus 1104 can be any type of communication bus used to interconnect the chip 1101, memory 1102 and communication interface 1103, such as a system bus.
[0333] The aforementioned devices can be disposed on separate chips, or at least partially or entirely on the same chip. Whether to dispose of the devices independently on different chips or integrate them on one or more chips often depends on the needs of the product design. This application does not limit the specific implementation of the aforementioned devices.
[0334] Figure 11 The computing device 1100 shown is merely exemplary. In the implementation process, the computing device 1100 may also include other components, which will not be listed one by one in this document.
[0335] based on Figure 2 In addition to the method shown, this application also provides a computing device cluster.
[0336] Figure 12 This application provides a computing device cluster 1200. For example... Figure 12 As shown, the computing device cluster includes at least one computing device 1100. The memory 1102 of one or more computing devices 1100 in the computing device cluster may store the same memory for executing... Figure 2 The instructions for the method shown. The first acquisition module 1001, analysis module 1002, identification module 1003, second acquisition module 1004, and determination module 1005 in the network configuration device can be deployed on one computing device 1100, or distributed across multiple computing devices 1100. In the distributed deployment case, the first acquisition module 1001, analysis module 1002, identification module 1003, second acquisition module 1004, and determination module 1005 can be deployed on one computing device, or distributed across multiple computing devices 1100.
[0337] The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0338] In some possible implementations, the memory 1102 of one or more computing devices 1100 in the computing device cluster may also store memory for execution. Figure 2 The instructions of the method shown are partial. In other words, a combination of one or more computing devices 1100 can coexist for executing... Figure 2 The instructions for the method shown.
[0339] It should be noted that the memory 1102 in different computing devices 1100 within the computing device cluster can store different instructions, each for execution. Figure 10 The illustrated device performs some of its functions. Specifically, the instructions stored in the memory 1102 of different computing devices 1100 can implement... Figure 10 The function of one or more modules in the device shown.
[0340] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. This network can be a wide area network (WAN) or a local area network (LAN), etc. Figure 13 One possible implementation is shown. For example... Figure 13 As shown, the two computing devices 1100A and 1100B are connected via a network. Specifically, they are connected to the network through communication interfaces in each computing device. In this possible implementation, the memory 1102 in computing device 1100A stores instructions for implementing the functions of the first acquisition module 1001 and the analysis module 1002. Meanwhile, the memory 1102 in computing device 1100B stores instructions for implementing the functions of the identification module 1003, the second acquisition module 1004, and the determination module 1005.
[0341] It should be understood that Figure 13 The functions of computing device 1100A shown can also be performed by multiple computing devices 1100. Similarly, the functions of computing device 1100B can also be performed by multiple computing devices 1100.
[0342] In addition to the methods, apparatus, and computing devices described above, embodiments of this application may also provide a computer program product, comprising computer program instructions. When executed by a processor, these computer program instructions cause the processor to perform the steps of the methods in the various embodiments of this application described in the "Method" section of this specification. The computer program product may be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The computer program code may be in source code form, object code form, executable file, or some intermediate form. The computer program code may be executed entirely on a user's computing device, partially on a user's computing device, as a standalone software package, partially on a user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0343] Furthermore, embodiments of this application may also provide a computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the display control method according to various embodiments of this disclosure as described in the "Method" section above. The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. It should be noted that the content contained in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in a jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, a computer-readable medium may not include electrical carrier signals and telecommunication signals.
[0344] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.
[0345] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application. It should be understood that in the embodiments of this application, the order of the process numbers does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0346] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of this application.
Claims
1. A network configuration method, characterized in that, The method includes: Obtain a network implementation plan and a network structure diagram, wherein the network implementation plan is used to indicate the configuration requirements of the first network, and the network structure diagram is used to describe the multiple network devices included in the first network and the connection relationships between the multiple network devices; The network implementation scheme is analyzed using a large model to obtain the first characteristic scenario of the first network; Based on the network structure diagram, identify the second characteristic scenario of the first network; Obtain a first configuration set that matches the first characteristic scenario and a second configuration set that matches the second characteristic scenario, wherein each configuration set includes at least one configuration command; The configuration of the first network is determined based on the first configuration set and the second configuration set; Among them, any characteristic scenario is used to indicate the function that the first network needs to be configured, the first device that configures the function, and the connection relationship between the first device and the second device.
2. The method according to claim 1, characterized in that, The method further includes: Obtain a first sample example, which is used to indicate the thought process of determining the characteristic scenarios of the second network based on the network implementation scheme of the second network during the configuration of the second network; The step of analyzing the network implementation scheme through a large model to obtain the first characteristic scenario of the first network includes: The large model learns the thought process indicated by the first sample example and analyzes the network implementation scheme of the first network to obtain the first characteristic scenario of the first network.
3. The method according to claim 2, characterized in that, The network implementation scheme of the second network includes the second function that the second network needs to configure, the second context of the second function, and the complete set of the second characteristic scenarios of the second function. The first sample example is used to indicate the thought process of identifying the characteristic scenarios of the second network through the second context and the complete set of the second characteristic scenarios during the configuration of the second network. Before analyzing the network implementation scheme through a large model to obtain the first characteristic scenario of the first network, the method further includes: Extract at least one first function that the first network needs to be configured and a first context describing each of the at least one first function from the network implementation scheme of the first network; Based on each of the first functions, determine the complete set of first characteristic scenarios for each of the first functions; The step of analyzing the network implementation scheme through a large model to obtain the first characteristic scenario of the first network includes: The large model learns the thought process indicated by the first sample example, analyzes the first context, and determines the first characteristic scenario from the complete set of the first characteristic scenarios.
4. The method according to claim 2 or 3, characterized in that, The first sample example is also used to indicate the reflective correction process for the characteristic scenarios of the second network, and the method further includes: The large model learns the reflection and correction process indicated by the first sample example and performs reflection and correction on the first characteristic scenario.
5. The method according to any one of claims 1-4, characterized in that, The method further includes: The first feature scenario is sent to the client so that the user can confirm the first feature scenario through the client.
6. The method according to claim 5, characterized in that, The method further includes: Receive first indication information from the client, the first indication information including the user's confirmation indication for the first feature scenario or the user's modification indication for the first feature scenario; If the indication information is the modification indication, the first characteristic scenario is modified according to the modification indication.
7. The method according to claim 6, characterized in that, The modification instruction is used to indicate a third characteristic scenario, which is a characteristic scenario determined by the user based on the user's needs.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: Obtain configuration case sets for different networks. Each configuration case corresponds to one network. Any configuration case is used to indicate the network structure diagram, network implementation plan, and configuration of the corresponding network. The network structure diagram, network implementation scheme, and configuration of the network corresponding to the configuration case are analyzed to obtain the third configuration set of the configuration case; Determine the fourth characteristic scenario that matches the third configuration set; Based on the third configuration set and the fourth feature scenario for each configuration case, a configuration set library is constructed; The configuration set library includes the first configuration set and the second configuration set.
9. The method according to claim 8, characterized in that, The method further includes: Obtain a second sample example, which is used to indicate the thought process of determining the characteristic scenarios of the third network based on the configuration set of the third network during the configuration of the third network; The determination of the fourth characteristic scenario matching the third configuration set includes: The large model learns the thought process indicated by the second sample example and analyzes the third configuration set of the configuration cases to obtain the fourth characteristic scenario.
10. The method according to claim 8 or 9, characterized in that, The method further includes: Receive a second indication message sent by the client, wherein the second indication message is used to indicate to the user the modification indication of the third configuration set or the indication to add a fourth configuration set; Update the configuration collection library according to the second instruction information.
11. A network configuration device, characterized in that, The device includes: The first acquisition module is used to acquire a network implementation scheme and a network structure diagram. The network implementation scheme is used to indicate the configuration requirements of the first network, and the network structure diagram is used to describe the multiple devices included in the first network and the connection relationships between the multiple devices. An analysis module is used to analyze the network implementation scheme through a large model to obtain a first characteristic scenario of the first network; The identification module is used to identify a second characteristic scenario of the first network based on the network structure diagram. The second acquisition module is used to acquire a first configuration set that matches the first feature scenario and a second configuration set that matches the second feature scenario, wherein each configuration set includes at least one configuration command; The determining module is used to determine the configuration of the first network based on the first configuration set and the second configuration set; Among them, any characteristic scenario is used to indicate the function that the first network needs to be configured, the first device that configures the function, and the connection relationship between the first device and the second device.
12. The apparatus according to claim 11, characterized in that, The device further includes: The third acquisition module is used to acquire a first sample example, which is used to indicate the thought process of determining the characteristic scenarios of the second network based on the network implementation scheme of the second network during the configuration of the second network. The analysis module is used to learn the thought process indicated by the first sample example through the large model, analyze the network implementation scheme of the first network, and obtain the first characteristic scenario of the first network.
13. The apparatus according to claim 12, characterized in that, The network implementation scheme of the second network includes the second function that the second network needs to configure, the second context of the second function, and the complete set of the second characteristic scenarios of the second function. The first sample example is used to indicate the thought process of identifying the characteristic scenarios of the second network through the second context and the complete set of the second characteristic scenarios during the configuration of the second network. The device further includes: An extraction module is used to extract at least one first function that the first network needs to be configured and a first context describing each of the at least one first function from the network implementation scheme of the first network. The determining module is used to determine the complete set of first characteristic scenarios for each first function based on each first function; The analysis module is used to learn the thought process indicated by the first sample example through the large model, analyze the first context, and determine the first characteristic scenario from the complete set of the first characteristic scenarios.
14. The apparatus according to claim 12 or 13, characterized in that, The first sample example is also used to indicate the reflective correction process for the characteristic scenarios of the second network, and the apparatus further includes: The correction module is used for the reflection and correction process indicated by the first sample example in the learning of the large model, and to reflect and correct the first characteristic scenario.
15. The apparatus according to any one of claims 11-14, characterized in that, The device further includes: The sending module is used to send the first feature scenario to the client so that the user can confirm the first feature scenario through the client.
16. The apparatus according to claim 15, characterized in that, The device further includes: The receiving module is configured to receive first indication information fed back by the client, the first indication information including the user's confirmation indication for the first feature scenario or the user's modification indication for the first feature scenario; The modification module is used to modify the first characteristic scenario according to the modification instruction when the instruction information is the modification instruction.
17. The apparatus according to claim 16, characterized in that, The modification instruction is used to indicate a third characteristic scenario, which is a characteristic scenario determined by the user based on the user's needs.
18. The apparatus according to any one of claims 11-17, characterized in that, The device further includes: The fourth acquisition module is used to acquire configuration case sets for different networks. Each configuration case corresponds to a network, and any configuration case is used to indicate the network structure diagram, network implementation plan, and configuration of the corresponding network. The parsing module is used to parse the network structure diagram, network implementation scheme and configuration of the network corresponding to the configuration case to obtain the third configuration set of the configuration case; The determining module is used to determine the fourth characteristic scenario that matches the third configuration set; The building module is used to build a configuration set library based on the third configuration set and the fourth feature scenario for each configuration case; The configuration set library includes the first configuration set and the second configuration set.
19. The apparatus according to claim 18, characterized in that, The device further includes: The fifth acquisition module is used to acquire a second sample example, which is used to indicate the thought process of determining the characteristic scenario of the third network based on the configuration set of the third network during the configuration of the third network. The determining module is used to learn the thought process indicated by the second sample example through the large model, analyze the third configuration set of the configuration cases, and obtain the fourth characteristic scenario.
20. The apparatus according to claim 28 or 29, characterized in that, The device further includes: The receiving module is used to receive second indication information sent by the client, wherein the second indication information is used to indicate to the user the modification indication of the third configuration set or the indication to add the fourth configuration set; The update module is used to update the configuration set library according to the second indication information.
21. A computing device cluster, characterized in that, It includes at least one computing device, each computing device including a processor and memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the method as described in any one of claims 1-10.
22. A computer program product containing instructions, characterized in that, When the instruction is executed by the computing device cluster, the computing device cluster causes the computing device cluster to perform the method as described in any one of claims 1-10.
23. A computer-readable storage medium, characterized in that, Includes computer program instructions, which, when executed by a cluster of computing devices, perform the method as described in any one of claims 1-10.
