Configuration method and apparatus, network device, and storage medium
By using a priori template in network devices for simulation checksum loss function optimization, the inefficiency problem caused by inaccurate configuration instruction groups is solved, and efficient and accurate network device configuration is achieved.
Patent Information
- Application Number
- PCT/CN2025/071861
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-03
- Filing Date
- 2025-01-10
- Publication Date
- 2025-07-10
AI Technical Summary
In the prior art, when the administrator configures network equipment, the generated configuration instruction group may be inaccurate, resulting in the network equipment being unable to perform services, which requires a long time to reconfigure, which is inefficient.
Network devices obtain configuration instruction group and device status information, simulate and verify through a prior template, calculate the loss function value, update the configuration instruction group until the convergence conditions are met, and configure rollback is performed in abnormal situations, and optimize the configuration process.
Improve network equipment configuration efficiency, reduce the time and workload of reconfiguration, and ensure the accuracy and stability of business operation.
Smart Images

Figure CN2025071861_10072025_PF_FP_ABST
Abstract
Description
Configuration method, device, network equipment and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on January 3, 2024, with application number 202410007370.1 and invention name “Configuration Methods, Devices and Related Products”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application belongs to the field of communication technology, and specifically relates to a configuration method, apparatus, network equipment and storage medium. Background Art
[0004] Currently, if an administrator wants to configure a network device to perform a certain service, the administrator can first trigger the management device to generate at least one configuration instruction group for configuring the certain service, and then trigger the management device to send the at least one configuration instruction group to the network device, so that the network device can configure the network device according to the configuration instructions in each configuration instruction group in turn, so that when the configuration is completed, the network device can perform the certain service. Summary of the Invention
[0005] Embodiments of the present application provide a configuration method, apparatus, network device, and storage medium.
[0006] In a first aspect, an embodiment of the present application provides a configuration method, the method comprising: a network device obtaining at least one first configuration instruction group and first device status information, wherein the at least one first configuration instruction group is used to configure a target service, and the first device status information is used to indicate a current status of the network device;
[0007] The network device inputs the at least one first configuration instruction group and the first device state information into a target a priori template to obtain a first operating parameter, wherein the first operating parameter is used to indicate an operating status of the target service; and
[0008] The network device updates the at least one first configuration instruction group based on the first operating parameter to obtain at least one first updated configuration instruction group, and uses the at least one first updated configuration instruction group to configure the network device for the target service.
[0009] An embodiment of the present application provides a configuration method, in which a network device can obtain at least one first configuration instruction group for configuring a target service and first device status information for indicating the current status of the network device, and input the at least one first configuration instruction group and the first device status information into a target priori template to obtain a first operating parameter, which is used to indicate the operating status of the target service, so that the network device can update the at least one first configuration instruction group based on the first operating parameter to obtain at least one first updated configuration instruction group, and use the at least one first updated configuration instruction group to configure the network device for the target service. Because the network device obtains at least one first configuration instruction group for configuring the target service while also obtaining first device status information for indicating the current status of the network device, and inputs the at least one first configuration instruction group and the first device status information into the target prior template to obtain the first operating parameter, it is possible to determine the operating status of the target service if the at least one first configuration instruction group is used to configure the target service. Then, based on the operating status, the network device can update the at least one first configuration instruction group to obtain at least one first updated configuration instruction group to ensure that the network device can perform the target service after being configured using the at least one first updated configuration instruction group. Therefore, the situation of reconfiguring the network device can be avoided, thereby improving the efficiency of configuring the network device to perform the target service.
[0010] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the network device updates the at least one first configuration instruction group based on the first operating parameter to obtain the at least one first updated configuration instruction group, including:
[0011] The network device calculates a first loss function value based on the first operating parameter and a preset operating parameter using the target priori template; and
[0012] The network device updates the configuration instructions in the at least one first configuration instruction group according to the first loss function value through the target prior template until a first preset convergence condition is met, thereby obtaining the at least one first updated configuration instruction group.
[0013] It can be seen that since the network device can also calculate the first loss function value based on the first operating parameters and the preset operating parameters, and optimize and update the configuration instructions in at least one first configuration instruction group according to the first loss function value, in the subsequent steps, after using the updated at least one first configuration instruction group to configure the target business, the operating status of the target business can be guaranteed.
[0014] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the network device calculates the first loss function value based on the first operating parameter and the preset operating parameter using the target prior template, including:
[0015] The network device calculates the first loss function value according to the difference between the first operating parameter and the preset operating parameter.
[0016] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, before the network device obtains at least one first configuration instruction group and first device status information, the method includes:
[0017] The network device obtains at least one configuration parameter input by a user; and
[0018] The network device generates the at least one first configuration instruction group according to the at least one configuration parameter.
[0019] It can be seen that since the user only needs to input at least one simple configuration parameter, the network device can be triggered to generate at least one complex first configuration instruction group without the user having to input at least one complex first configuration instruction group. Therefore, on the one hand, the waiting time required for the network device to obtain at least one first configuration instruction group can be reduced, and on the other hand, the accuracy of the obtained at least one first configuration instruction group can be improved.
[0020] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, after the network device generates the at least one first configuration instruction group according to the at least one configuration parameter, the method includes:
[0021] The network device verifies whether the at least one first configuration instruction group is correct according to a predefined configuration grammar.
[0022] In combination with the first aspect and the above possible implementation manner, in another possible implementation manner, before the network device inputs the at least one first configuration instruction group and the first device state information into the target a priori template, the method includes:
[0023] The network device determines the target a priori template.
[0024] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, determining the target priori template includes:
[0025] The network device displays at least two template identifiers; wherein each of the template identifiers is used to indicate a preset template;
[0026] The network device receives a user's selection input of a target template identifier among the at least two template identifiers; and
[0027] In response to the selection input, the network device determines that the preset template indicated by the target template identifier is the target priori template.
[0028] It can be seen that since the network device can first display the template identifiers of at least two preset templates pre-set in the network device, the user can directly trigger the network device to determine the required preset template as the target prior template according to usage requirements. Therefore, in subsequent steps, the network device can use the target prior template required by the user to accurately perform simulation verification to improve the accuracy of the generated first operating parameters.
[0029] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the network device displays the at least two template identifiers, including:
[0030] In response to the user selecting a service name to be configured in the global configuration webpage, the network device displays the at least two template identifiers in the global configuration webpage.
[0031] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, determining the target priori template includes:
[0032] The network device determines the service identifier of the target service based on the at least one first configuration instruction group; and
[0033] The network device determines the preset template corresponding to the service identifier of the target service among the at least two preset templates as the priori template.
[0034] It can be seen that since the network device can directly determine the target prior template based on at least one first configuration instruction group without the need for user selection, the adaptability between the determined target prior template and the target service can be improved, so that in subsequent steps, the network device can use the target prior template to accurately perform simulation verification to improve the accuracy of the generated first operating parameters.
[0035] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, configuring the target service using the at least one first update configuration instruction group includes:
[0036] Setting each configuration instruction in the at least one first update configuration instruction group to an atomic instruction; and
[0037] The at least one first update configuration instruction group is issued.
[0038] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, after using the at least one first update configuration instruction group to configure the network device for the target service, the method further includes:
[0039] The network device acquires at least one second device status information, each second device status information being used to indicate a status of the network device after the target service is configured using one of the first update configuration instruction groups;
[0040] The network device inputs the at least one second device state information into a target a posteriori template to obtain at least one effectiveness indicator output by the target a posteriori template, each effectiveness indicator being used to represent a degree of compatibility between the first update configuration instruction group and the target service;
[0041] The network device determines a target effectiveness indicator from the at least one effectiveness indicator;
[0042] The network device performs a configuration rollback operation on the first update configuration instruction group corresponding to the target effectiveness indicator.
[0043] It can be seen that after using the updated at least one first configuration instruction group to configure the target service, the network device can also obtain the state of the configured network device again, and use the target a posteriori template to determine at least one effectiveness indicator corresponding to the state. Each effectiveness indicator is used to characterize the adaptability between a first configuration instruction group and the target service, so that the network device can determine the target effectiveness indicator and only perform a configuration rollback operation on a first configuration instruction group corresponding to the target effectiveness indicator in at least one first configuration instruction group, that is, perform a configuration rollback operation on part of the first configuration instruction groups in at least one first configuration instruction group, without performing a configuration rollback operation on all first configuration instruction groups in at least one first configuration instruction group. Therefore, when reconfiguring the target service, the management personnel only need to configure part of the first configuration instruction groups corresponding to the target effectiveness indicator, without configuring all first configuration instruction groups, thereby reducing the workload of reconfiguring the target service.
[0044] In combination with the first aspect and the above possible implementation manner, in another possible implementation manner,
[0045] After the network device performs a configuration rollback operation on the first update configuration instruction group corresponding to the target effectiveness indicator, the method further includes:
[0046] The network device inputs the first update configuration instruction group corresponding to the target effectiveness indicator and the second device state information into the target priori template to obtain a second operating parameter, where the second operating parameter is used to indicate an operating status of the target service after the target service is configured using the first update configuration instruction group corresponding to the target effectiveness indicator;
[0047] The network device updates the first update configuration instruction group corresponding to the target effectiveness indicator based on the second operating parameter to obtain a second update configuration instruction group.
[0048] It can be seen that since the network device can input the first configuration instruction group corresponding to the target effectiveness indicator and the second device status information into the target prior template to obtain the second operating parameter, it is possible to determine the operating status of the target business if the first updated configuration instruction group corresponding to the target effectiveness indicator is used to configure the target business. Then, the network device can update the first updated configuration instruction group corresponding to the target effectiveness indicator based on the operating status through the target prior template to obtain the configuration instruction group that can perform the target business without the need for manual input by the user. Therefore, the situation of reconfiguring the network device can be avoided. In this way, the efficiency of configuring the network device to perform the target business can be improved.
[0049] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, when there are multiple at least one first configuration instruction groups, using the at least one updated first configuration instruction group to configure the network device for the target service includes:
[0050] During the process of configuring the target service using the plurality of first update configuration instruction groups, determining whether an abnormality occurs in the network device; and
[0051] When an abnormality occurs in the network device, the network device sequentially uses the first update configuration instruction groups starting from the second configuration instruction group in the plurality of first update configuration instruction groups to configure the target service.
[0052] It can be seen that, in the process of using multiple first update configuration instruction groups to configure the target service, the network device can use the first update configuration instruction group to configure the target service starting from the second configuration instruction group among the multiple first update configuration instruction groups, without having to wait for the network device to complete the configuration using all the first update configuration instruction groups and then reconfigure all the first update configuration instruction groups. Therefore, the time required for configuration can be reduced.
[0053] In combination with the first aspect and the foregoing possible implementation manner, in another possible implementation manner, when an abnormality occurs on the network device, the network device sequentially uses the first update configuration instruction group starting from the second configuration instruction group in the multiple first update configuration instruction groups, and before configuring the network device for the target service, the method includes:
[0054] Determine the second configuration instruction group, where the second configuration instruction group includes at least one of the following:
[0055] The first said update configuration instruction group;
[0056] the first update configuration instruction group preceding the third configuration instruction group; and
[0057] The third configuration instruction group is the first update configuration instruction group following the third configuration instruction group; wherein, the third configuration instruction group is the first update configuration instruction group among the multiple first update configuration instruction groups that causes the network device to be abnormal.
[0058] In a second aspect, an embodiment of the present application provides a configuration device, the configuration device comprising: an acquisition module, configured to acquire at least one first configuration instruction group and first device status information, the at least one first configuration instruction group being used to configure a target service, the first device status information being used to indicate a current status of the network device;
[0059] A processing module is configured to input the at least one first configuration instruction group and the first device status information into a target a priori template to obtain a first operating parameter, wherein the first operating parameter is used to indicate the operating status of the target service; and based on the first operating parameter, update the at least one first configuration instruction group to obtain at least one first updated configuration instruction group, and use the at least one first updated configuration instruction group to configure the network device for the target service.
[0060] In combination with the second aspect and the above possible implementation manner, in another possible implementation manner, the processing module is specifically configured to calculate a first loss function value based on the first operating parameter and a preset operating parameter using the target prior template; and
[0061] The configuration instructions in the at least one first configuration instruction group are updated according to the first loss function value through the target prior template until a first preset convergence condition is met, thereby obtaining the at least one first updated configuration instruction group.
[0062] In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the apparatus further includes:
[0063] A display module, configured to display at least two template identifiers; wherein each of the template identifiers is configured to indicate a preset template;
[0064] a receiving module, configured to receive a user's selection input of a target template identifier among the at least two template identifiers; and
[0065] The processing module is configured to determine, in response to the selection input, that the preset template indicated by the target template identifier is the target priori template.
[0066] In combination with the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the acquisition module is further configured to:
[0067] Acquire at least one second device status information, each second device status information being used to indicate a status of the network device after the target service is configured using one of the first update configuration instruction groups;
[0068] The processing module is further configured to:
[0069] Inputting at least one second device status information into a target a posteriori template to obtain at least one effectiveness indicator, wherein each effectiveness indicator is used to represent the adaptability between one first update configuration instruction group and the target service;
[0070] determining a target effectiveness indicator from the at least one effectiveness indicator; and
[0071] A configuration rollback operation is performed for the first update configuration instruction group corresponding to the target effectiveness indicator.
[0072] In a third aspect, an embodiment of the present application provides a network device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, implements the configuration method described in the first aspect and its possible implementation method of the first aspect.
[0073] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the configuration method as described in the first aspect and its possible implementation method of the first aspect is implemented.
[0074] In a fifth aspect, an embodiment of the present application provides a computer program product, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the configuration method as described in the first aspect and its possible implementation method of the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the following briefly introduces the drawings required for the description of the embodiments or traditional technologies. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, drawings of other embodiments can be obtained based on these drawings without creative work. The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application.
[0076] FIG1 is a schematic diagram of an application scenario provided in an embodiment of the present application.
[0077] FIG2 is a flow chart of the configuration method provided in an embodiment of the present application.
[0078] FIG3 is a flow chart of the configuration method provided in an embodiment of the present application.
[0079] FIG4 is a flow chart of the configuration method provided in an embodiment of the present application.
[0080] FIG5 is a flow chart of the configuration method provided in an embodiment of the present application.
[0081] FIG6 is a flow chart of the configuration method provided in an embodiment of the present application.
[0082] FIG7 is a flow chart of the configuration method provided in an embodiment of the present application.
[0083] FIG8 is a schematic diagram of configuring a target service using the adjusted first configuration instruction group in the configuration method provided in an embodiment of the present application.
[0084] FIG9 is a flow chart of the configuration method provided in an embodiment of the present application.
[0085] FIG10 is a schematic diagram of the structure of the configuration device provided in an embodiment of the present application.
[0086] FIG11 is a schematic diagram of the structure of a network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0087] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0088] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "first," "second," and the like generally distinguish objects of a class and do not limit the number of objects. For example, the first object may be one or more.
[0089] In this document, the term "and / or" simply describes a relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document generally indicates that the related objects are in an "or" relationship.
[0090] The terms "at least one of" and "at least one of" in the specification and claims of this application refer to any one, any two, or a combination of more than two of the objects included therein. For example, at least one of a, b, or c can be represented by: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two of" means two or more, and its meaning is similar to that of "at least one of".
[0091] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0092] Typically, if an administrator wants to configure a network device to perform a certain service, the administrator can first trigger the management device to generate at least one configuration instruction group for configuring the certain service, and then trigger the management device to send the at least one configuration instruction group to the network device, so that the network device can be configured according to the configuration instructions in each configuration instruction group in turn, so that when the configuration is complete, the network device can perform the certain service. However, since the at least one configuration instruction group generated by the administrator triggering the management device may be inaccurate, after the network device is configured according to the configuration instructions in each inaccurate configuration instruction group in turn, the network device may be unable to perform the aforementioned certain service. Therefore, the administrator may need a long time to reconfigure the network device, resulting in low efficiency in configuring the network device to perform a certain service.
[0093] As shown in Figure 1, the network device and the management device are in communication. The administrator can input configuration parameters through the management device. The network device executes the configuration method provided in the embodiment of the present application.
[0094] The present application provides a configuration method. FIG2 is a flow chart of a configuration method provided by the present application. As shown in FIG2 , the configuration method may include the following steps 101 to 103.
[0095] Step 101: A network device obtains at least one first configuration instruction group and first device status information.
[0096] In the embodiment of the present application, the at least one first configuration instruction group is used to configure the target service, each of the at least one first configuration instruction group includes at least one configuration instruction, and the first device status information is used to indicate the current status of the network device. Those skilled in the art will appreciate that the current status of the network device refers to the status of the network device before the target service is configured.
[0097] In some embodiments of the present application, the target service may include at least one of the following: a network broadband service, an Internet access service, or a voice call service.
[0098] In some embodiments of the present application, each first configuration instruction group is used to configure a configuration item of the target service. Each configuration instruction in each first configuration instruction group is used to configure a sub-item of a configuration item.
[0099] Exemplarily, assuming that the target service is an Internet access service, the at least one first configuration instruction group is used to configure at least one configuration item of the Internet access service. The at least one configuration item may include at least one of the following: configuring a user name for the Internet access service or configuring a password for the Internet access service.
[0100] Among them, if a configuration item includes configuring a user name for an Internet access service, then the user name for configuring the Internet access service may include a sub-item of selecting a wide area network (English: Wide Area Network, abbreviated as WAN) port, a sub-item of setting the network properties of the WAN port, a sub-item of selecting a network connection method of Ethernet-carried Point-to-Point Protocol (English: PPP over Ethernet, abbreviated as PPPoE), setting the user name for the Internet access service, etc. It can be understood that each configuration instruction in a first configuration instruction group for configuring the user name for the Internet access service can be used to configure a sub-item included in the user name for configuring the Internet access service.
[0101] In some embodiments of the present application, the first device status information includes at least one of the following: bandwidth, traffic, central processing unit utilization, memory utilization, or link load.
[0102] In an embodiment of the present application, the network device may include an instruction group editor and a transaction controller, so that the network device can generate at least one first configuration instruction group through the instruction group editor and obtain first device status information through the transaction controller.
[0103] As those skilled in the art will appreciate, a transaction controller may include a software application responsible for managing and controlling the behavior of network devices. In embodiments of the present application, the transaction controller is embedded within the network device, eliminating the need for a separate server and reducing network device deployment costs. The transaction controller may also implement related functions using hardware.
[0104] It should be noted that the network device can generate at least one first configuration instruction group through the instruction group editor, which will be described in detail in the following embodiments and will not be described in detail in this embodiment.
[0105] In a possible embodiment, the transaction controller can issue each configuration instruction in each first configuration instruction group in an atomic form, that is, set each configuration instruction as an atomic instruction, so that each configuration instruction in each first configuration instruction group can be configured and take effect at the same time, thereby ensuring that each configuration item of the target business can be configured at the same time, so as to ensure that the network device can operate normally after being configured using each first configuration instruction group.
[0106] In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 3 , before the above-mentioned step 101 , the configuration method provided in the embodiment of the present application may include the following steps 201 and 202 .
[0107] Step 201: A network device obtains at least one configuration parameter input by a user.
[0108] In some embodiments of the present application, a user may directly input at least one configuration parameter on the instruction group editor.
[0109] Optionally, a user can use an electronic device to log in to a global configuration webpage corresponding to the network device and select the name of a service to be configured (i.e., a target service) on the global configuration webpage, so that the electronic device can display at least one configuration option on the global configuration webpage. The user can then enter a configuration parameter in each configuration option, so that the network device can obtain the at least one configuration parameter entered by the user. It is understood that the user can directly configure the network device through the global configuration webpage without having to set up an independent control server, thereby reducing implementation costs.
[0110] Step 202: The network device generates at least one first configuration instruction group according to at least one configuration parameter.
[0111] In some embodiments of the present application, after a user selects the name of a service to be configured (i.e., a target service) in a global configuration webpage, the network device may determine a configuration template corresponding to the name of the target service, wherein the configuration template includes at least one preset configuration instruction group. Thus, after the network device obtains at least one configuration parameter input by the user, it may fill each configuration parameter into a preset position of a preset configuration instruction group to generate a first configuration instruction group, and so on, to generate at least one first configuration instruction group. It will be appreciated by those skilled in the art that by presetting configuration templates, the professional requirements for deployment personnel can be reduced and deployment efficiency can be improved.
[0112] In some embodiments of the present application, an instruction group syntax macro verification module may also be built into the instruction group editor, so that the network device can verify whether the at least one first configuration instruction group is correct according to a predefined configuration syntax through the instruction group syntax macro verification module.
[0113] It can be seen that since the user only needs to input at least one simple configuration parameter, the network device can be triggered to generate at least one complex first configuration instruction group without the user having to input at least one complex first configuration instruction group. Therefore, on the one hand, the waiting time required for the network device to obtain at least one first configuration instruction group can be reduced, and on the other hand, the accuracy of the obtained at least one first configuration instruction group can be improved.
[0114] Step 102: The network device inputs at least one first configuration instruction group and first device state information into a target a priori template to obtain a first operating parameter output by the target a priori template.
[0115] In the embodiment of the present application, the above-mentioned first operating parameter is generated by simulating and verifying the target a priori template according to at least one first configuration instruction group and first device status information, and the first operating parameter is used to indicate the operating status of the target service.
[0116] In some embodiments of the present application, the target a priori template may be a specific template among a plurality of preset templates; the specific template may be a template selected by a user, or a template adapted according to at least one first configuration instruction group.
[0117] For each of the multiple preset templates, one preset template can be regarded as a set of preset algorithms, and the set of preset algorithms can generate corresponding operating parameters according to the input configuration instruction group and device status information.
[0118] In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 4 , before the above-mentioned step 102 , the configuration method provided in the embodiment of the present application may further include the following steps 203 to 205 .
[0119] Step 203: The network device displays at least two template identifiers.
[0120] In the embodiment of the present application, each template identifier is used to indicate a preset template.
[0121] In some embodiments of the present application, after the user selects the name of the service to be configured in the global configuration webpage, at least two template identifiers may be displayed in the global configuration webpage so that the user can select the template identifier required by the user.
[0122] In some embodiments, the network device may display at least two template identifiers in the global configuration webpage through other devices. For example, the network device may display at least two template identifiers in the global configuration webpage through an electronic device.
[0123] In some embodiments of the present application, the template identifier may specifically include at least one of the following: a template name, a template image, and the like.
[0124] Step 204: The network device receives a user's selection input of a target template identifier among the at least two template identifiers.
[0125] In some embodiments of the present application, the selection input may specifically be a user clicking on the target template identifier. For example, the user may directly input the target template identifier by pressing a physical button on a network device, or the user may input the target template identifier on another device (e.g., an electronic device).
[0126] Step 205: In response to the selection input, the network device determines the preset template indicated by the target template identifier as the target priori template.
[0127] It can be seen that since the network device can first display the template identifiers of at least two preset templates pre-set in the network device, the user can directly trigger the network device to determine the required preset template as the target prior template according to usage requirements. Therefore, in subsequent steps, the network device can use the target prior template required by the user to accurately perform simulation verification to improve the accuracy of the generated first operating parameters.
[0128] In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 5 , before the above-mentioned step 102 , the configuration method provided in the embodiment of the present application may further include the following steps 206 and 207 .
[0129] Step 206: The network device determines a service identifier of the target service based on the at least one first configuration instruction group.
[0130] In some embodiments of the present application, the above-mentioned service identifier may specifically be a service name.
[0131] In some embodiments of the present application, the network device can read the instruction content of each configuration instruction in each first configuration instruction group in at least one first configuration instruction group to identify the target service to be configured by at least one first configuration instruction group, so that the network device can directly obtain the service identifier of the target service from the network device.
[0132] Step 207: The network device determines the preset template corresponding to the service identifier of the target service among the at least two preset templates as the target priori template.
[0133] In some embodiments of the present application, each of the at least two preset templates corresponds to a service identifier, so that the network device can determine the preset template corresponding to the service identifier of the target service as the target prior template.
[0134] It can be seen that since the network device can directly determine the target prior template based on at least one first configuration instruction group without the need for user selection, the adaptability between the determined target prior template and the target service can be improved, so that in subsequent steps, the network device can use the target prior template to accurately perform simulation verification to improve the accuracy of the generated first operating parameters.
[0135] In some embodiments of the present application, the target a priori template may use a simulation algorithm to perform simulation verification calculations based on at least one first configuration instruction group and first device status information, thereby obtaining first operating parameters.
[0136] Here, the a priori device serves as a processing component in the pre-configuration a priori stage, allowing the target a priori template to be adapted through at least one first configuration instruction group, using the simulation algorithm matched to the target a priori template, loading the first device status information collected before configuration, simulating the instruction running results, and completing the simulation verification.
[0137] Step 103: The network device updates at least one first configuration instruction group based on the first operating parameter using the target a priori template to obtain at least one first updated configuration instruction group, and uses the at least one first updated configuration instruction group to configure the target service.
[0138] In some embodiments of the present application, the network device may input the first operating parameter and at least one first configuration instruction group into a component of the target prior template, so that the component can update the at least one first configuration instruction group based on the first operating parameter and the at least one first configuration instruction group to obtain at least one first updated configuration instruction group.
[0139] In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 6 , the above step 103 may be specifically implemented through the following steps 103 a and 103 b.
[0140] Step 103a: The network device calculates a first loss function value based on the target priori template, the first operating parameter and the preset operating parameter.
[0141] In some embodiments of the present application, the network device may calculate a first loss function value based on a difference between the first operating parameter and a preset operating parameter.
[0142] It can be understood that the above-mentioned first loss function value is used to characterize the difference between the first operating parameter and the preset operating parameter.
[0143] Step 103b: The network device updates the configuration instructions in at least one first configuration instruction group according to the first loss function value through the target prior template until the first preset convergence condition is met, obtains at least one first updated configuration instruction group, and uses the at least one first updated configuration instruction group to configure the target service.
[0144] In some embodiments of the present application, the above-mentioned first preset convergence condition may specifically be: a loss function value of an operating parameter output based on the target priori template and a preset operating parameter is less than or equal to a preset value.
[0145] In some embodiments of the present application, the network device can determine the corresponding at least one preset configuration parameter based on the first loss function value through the target prior template, and then replace each configuration parameter input by the user in the at least one first configuration instruction group with a preset configuration parameter to obtain the updated at least one first configuration instruction group, so that the network device can again input the updated at least one first configuration instruction group and the device status information used to indicate the current status of the network device into the target prior template for simulation verification to generate a third operating parameter, and then the network device can again execute the above steps 103a and 103b until the calculated loss function value is less than or equal to the preset value, and confirm the at least one configuration instruction group used at this time as the at least one first updated configuration instruction group.
[0146] It can be seen that since the network device can also calculate the first loss function value based on the first operating parameters and the preset operating parameters, and optimize and update the configuration instructions in at least one first configuration instruction group according to the first loss function value, in the subsequent steps, after using at least one first updated configuration instruction group to configure the target business, the operating status of the target business can be guaranteed.
[0147] An embodiment of the present application provides a configuration method, in which a network device can obtain at least one first configuration instruction group for configuring a target service, and first device status information for indicating the current status of the network device, each first configuration instruction group includes at least one configuration instruction, and the at least one first configuration instruction group and the first device status information are input into a target a priori template, and a first operating parameter generated by the target a priori template through simulation verification based on the at least one first configuration instruction group and the first device status information is obtained. The first operating parameter is used to indicate the operating status of the target service, so that the network device can update the at least one first configuration instruction group based on the first operating parameter through the target a priori template to obtain at least one first updated configuration instruction group, and use the at least one first updated configuration instruction group to configure the target service. When the network device obtains at least one first configuration instruction group for configuring the target service, it also obtains the first device status information for indicating the current status of the network device, and inputs the at least one first configuration instruction group and the first device status information into the target a priori template, so that the target a priori template performs simulation verification based on the at least one first configuration instruction group and the first device status information to obtain the first operating parameters, thereby determining the operating status of the target service if the at least one first configuration instruction group is used to configure the target service. Then, the network device can update the at least one first configuration instruction group based on the operating status through the target a priori template to obtain at least one first updated configuration instruction group, to ensure that the network device can perform the target service after being configured using the at least one first updated configuration instruction group. Therefore, the situation of reconfiguring the network device can be avoided, thereby improving the efficiency of configuring the network device to perform the target service.
[0148] In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 7 , when the network device obtains multiple first configuration instruction groups, the above step 103 may be specifically implemented through the following steps 103 c and 103 d.
[0149] Step 103c: The network device updates at least one first configuration instruction group based on the first operating parameter using the target a priori template to obtain at least one first updated configuration instruction group. During the process of configuring the target service using the at least one first updated configuration instruction group, the network device determines whether an abnormality occurs in the network device.
[0150] In some embodiments of the present application, the network device may obtain device status information indicating the current status of the network device in real time, and determine whether an abnormality occurs in the network device based on the device status information.
[0151] Step 103d: When it is determined that the network device is abnormal, the network device uses the first update configuration instruction groups in sequence, starting from the second configuration instruction group in the at least one first update configuration instruction group, to configure the target service.
[0152] In some embodiments of the present application, when the device status information obtained by the network device and used to indicate the current status of the network device exceeds a preset range, the network device may determine that an abnormality occurs in the network device.
[0153] In an embodiment of the present application, the above-mentioned second configuration instruction group includes at least one of the following: the first first update configuration instruction group, the first update configuration instruction group before the third configuration instruction group, and the first update configuration instruction group after the third configuration instruction group, and the third configuration instruction group is the first update configuration instruction group among multiple first update configuration instruction groups that causes the network device to have an abnormality.
[0154] Exemplarily, as shown in FIG8 , it is assumed that the plurality of first updating configuration instruction groups include four first updating configuration instruction groups, such as configuration instruction group f1 , configuration instruction group f2 , configuration instruction group f3 , and configuration instruction group f4 .
[0155] In one example, taking the second configuration instruction group including the first first update configuration instruction group as an example, in this example, the network device can use the bottom of the stack mode, that is, in the process of the network device using multiple first update configuration instruction groups to configure the target service, when the first update configuration instruction group that causes the network device to abnormal is the third configuration instruction group (for example, the third configuration instruction group can be configuration instruction group f2, or configuration instruction group f3, or configuration instruction group f4), the network device can reconfigure the target service from configuration instruction group f1, that is, first use configuration instruction group f1 to configure the target service, then use configuration instruction group f2 to configure the target service, then use configuration instruction group f3 to configure the target service, and then use configuration instruction group f4 to configure the target service.
[0156] In another example, taking the case where the second configuration instruction group includes the first updated configuration instruction group preceding the third configuration instruction group, in this example, the network device can use a top-of-stack mode, i.e., in the process of the network device using multiple first updated configuration instruction groups to configure the target service, if the first updated configuration instruction group that causes the network device to malfunction is the third configuration instruction group (e.g., the third configuration instruction group can be configuration instruction group f3), the network device can reconfigure the target service starting from the configuration instruction group preceding configuration instruction group f3 (i.e., configuration instruction group f2), i.e., first configure the target service using configuration instruction group f2, then configure the target service using configuration instruction group f3, and then configure the target service using configuration instruction group f4. It is understandable that if the network device malfunctions when using configuration instruction group f3, it can be considered that configuration instruction group f3 may be inaccurate. Therefore, the network device can reconfigure the target service starting from the configuration instruction group f2 preceding configuration instruction group f3 to re-determine whether the network device malfunction is caused by an inaccurate configuration instruction group f3.
[0157] In another example, taking the case where the second configuration instruction group includes the first updated configuration instruction group following the third configuration instruction group, in this example, the network device can use a clipping mode, that is, in the process of the network device using multiple first updated configuration instruction groups to configure the target service, if the first updated configuration instruction group that causes the network device to have an abnormality is the third configuration instruction group (for example, the third configuration instruction group can be configuration instruction group f3), the network device can configure the target service from the next configuration instruction group following configuration instruction group f3 (i.e., configuration instruction group f4), that is, continue to use configuration instruction group f4 to configure the target service. It is understandable that if the network device has an abnormality when using configuration instruction group f3, it can be considered that configuration instruction group f3 may be inaccurate. Therefore, the network device can use other configuration instruction groups to continue to configure the target service, and after the configuration of the target service is completed, it is determined again whether the network device has an abnormality to determine whether configuration instruction group f3 is inaccurate.
[0158] In some embodiments of the present application, when the second configuration instruction group includes the first first update configuration instruction group, after the network device uses the first update configuration instruction group to configure the target service in sequence starting from the second configuration instruction group in multiple first update configuration instruction groups, if the network device still has an abnormality, the network device may use the first update configuration instruction group to configure the target service in sequence starting from the first update configuration instruction group before the third configuration instruction group in the multiple first update configuration instruction groups, or starting from the first update configuration instruction group after the third configuration instruction group in the multiple first update configuration instruction groups.
[0159] In some other embodiments of the present application, when the second configuration instruction group includes at least one of a first update configuration instruction group preceding the third configuration instruction group and a first update configuration instruction group following the third configuration instruction group, after the network device sequentially uses the first update configuration instruction group starting from the second configuration instruction group among the multiple first update configuration instruction groups to configure the target service, if the network device still has an abnormality, the network device may sequentially use the first update configuration instruction group starting from the first first update configuration instruction group among the multiple first update configuration instruction groups to configure the target service.
[0160] In some other embodiments of the present application, after the network device uses the first updated configuration instruction group to configure the target service in sequence starting from the second configuration instruction group among multiple first updated configuration instruction groups, if the network device still has an abnormality, the network device can display a prompt message, which is used to prompt the user to re-enter the configuration parameters.
[0161] It can be seen that, in the process of using the updated multiple first configuration instruction groups to configure the target service, the network device can use the first updated configuration instruction group to configure the target service starting from the second configuration instruction group among the multiple first updated configuration instruction groups, without having to wait for the network device to complete the configuration using all the first updated configuration instruction groups and then reconfigure all the first updated configuration instruction groups. Therefore, the time required for configuration can be reduced.
[0162] In some embodiments of the present application, in combination with FIG. 2 , as shown in FIG. 9 , after the above step 103 , a configuration method provided in an embodiment of the present application may further include the following steps 301 to 304 .
[0163] Step 301: A network device obtains at least one second device status information.
[0164] In the embodiment of the present application, each second device status information is used to indicate the status of the network device after a first update configuration instruction group is used to configure the target service.
[0165] In the embodiment of the present application, the network device may further include a checksum, so that the network device can obtain at least one second device status information through the checksum. Those skilled in the art will appreciate that the checksum may be a submodule of the transaction controller, and the network device may also obtain at least one second device status information through the transaction controller.
[0166] It should be noted that, for the description of the network device obtaining at least one second device status information through the post-processor or transaction controller, reference can be made to the specific description of the network device obtaining the first device status information through the transaction controller, and the embodiments of the present application will not be repeated here.
[0167] Step 302: The network device inputs at least one second device status information into a target a posteriori template to obtain at least one effectiveness indicator output by the target a posteriori template.
[0168] In the embodiment of the present application, each effectiveness indicator is calculated by comparing a target a posteriori template based on a second device state information and a preset state information, and each effectiveness indicator is used to characterize the adaptability between a first configuration instruction group and a target service.
[0169] In some embodiments of the present application, for each effectiveness indicator of at least one effectiveness indicator, the target posterior template can obtain an effectiveness indicator based on the difference between a second device state information and a preset state information, and so on to obtain at least one effectiveness indicator.
[0170] In some embodiments of the present application, the above-mentioned target a posteriori template may be a specific template among multiple preset templates; the specific template is a template selected by the user, or a template adapted according to at least one first configuration instruction group.
[0171] Among them, after the user selects the name of the service to be configured in the global configuration webpage, a posteriori template option is also displayed in the global configuration webpage, so that the user can input the posteriori template option so that the network device can determine the target posteriori template from multiple preset templates according to the target service.
[0172] In some embodiments of the present application, the above-mentioned target posterior template is set in the posterior device, so that the posterior device can calculate at least one effectiveness indicator based on the target posterior template and at least one second device status information and at least one preset status information.
[0173] Those skilled in the art will appreciate that, in some embodiments of the present application, the at least one preset status information may be at least one first device status information collected before configuring the at least one first update configuration instruction group.
[0174] Step 303: The network device determines a target effectiveness indicator from the at least one effectiveness indicator, wherein the target effectiveness indicator is an effectiveness indicator whose adaptability is less than or equal to a preset adaptability.
[0175] In some embodiments of the present application, the number of the above-mentioned target effectiveness indicators may be at least one.
[0176] Those skilled in the art will appreciate that the degree of adaptation is related to the effectiveness index value, which may be a mathematical distance between a second device state information and a preset state information and a support vector in the Hilbert space.
[0177] Those skilled in the art will appreciate that, in some implementations, the higher the effectiveness index value, the higher the adaptability. When the adaptability is high, it indicates that the first update configuration instruction group corresponding to the effectiveness index deviates from expectations.
[0178] Those skilled in the art will appreciate that, in other implementations, the higher the effectiveness index value, the lower the adaptability. When the adaptability is high, it indicates that the first update configuration instruction group corresponding to the effectiveness index meets expectations.
[0179] Step 304: The network device performs a configuration rollback operation for the first update configuration instruction group corresponding to the target effectiveness indicator.
[0180] It should be noted that for instructions on performing configuration rollback operations on network devices, please refer to the specific descriptions in the relevant technologies, and the embodiments of this application will not be repeated here.
[0181] In an embodiment of the present application, if the adaptability indicated by an effectiveness indicator is less than or equal to a preset adaptability, it can be considered that the first update configuration instruction group corresponding to the effectiveness indicator is inaccurate, that is, after using the first update configuration instruction group to configure the target service, the network device may have an abnormality. Therefore, the network device can perform a configuration rollback operation on the first update configuration instruction group to cancel the use of the first update configuration instruction group to configure the target service, thereby avoiding abnormalities in the network device.
[0182] It can be seen that after using at least one first update configuration instruction group to configure the target service, the network device can also obtain the state of the configured network device again, and use the target a posteriori template to determine at least one effectiveness indicator corresponding to the state. Each effectiveness indicator is used to characterize the adaptability between a first configuration instruction group and the target service, so that the network device can determine the target effectiveness indicator whose adaptability is less than or equal to the preset adaptability, and only perform a configuration rollback operation on a first update configuration instruction group corresponding to the target effectiveness indicator in at least one first update configuration instruction group, that is, perform a configuration rollback operation on part of the first update configuration instruction groups in at least one first update configuration instruction group, without performing a configuration rollback operation on all first update configuration instruction groups in at least one first update configuration instruction group. Therefore, when reconfiguring the target service, the management personnel only need to configure part of the first update configuration instruction groups corresponding to the target effectiveness indicator, without configuring all the first update configuration instruction groups, thereby reducing the workload of reconfiguring the target service.
[0183] In some embodiments of the present application, after the above step 304, a configuration method provided by an embodiment of the present application may further include the following steps 305 and 306.
[0184] Step 305: The network device inputs the first update configuration instruction group corresponding to the target effectiveness indicator and the second device status information into the target a priori template to obtain the second operating parameter output by the target a priori template.
[0185] It can be understood that after the network device performs a configuration rollback operation on the first updated configuration instruction group corresponding to the target effectiveness indicator, the network device can determine the first configuration instruction group corresponding to the target effectiveness indicator and the second device status information corresponding to the target effectiveness indicator, and input the first updated configuration instruction group corresponding to the target effectiveness indicator and the second device status information corresponding to the target effectiveness indicator into the target prior template to obtain the second operating parameter output by the target prior template.
[0186] In an embodiment of the present application, the above-mentioned second operating parameter is generated by simulating and verifying the target a priori template based on the first update configuration instruction group corresponding to the target effectiveness indicator and the second device status information. The second operating parameter is used to indicate the operating status of the target business after the target business is configured using the first update configuration instruction group corresponding to the target effectiveness indicator.
[0187] It should be noted that, for the description of the target prior template simulating and verifying the first updated configuration instruction group and the second device status information corresponding to the target effectiveness indicator to generate the second operating parameters, reference can be made to the specific description of the target prior template simulating and verifying the first operating parameters based on at least one first configuration instruction group and the first device status information in the above embodiment, and the embodiments of the present application will not be repeated here.
[0188] Step 306: The network device updates the first update configuration instruction group corresponding to the target effectiveness indicator based on the second operating parameter using the target priori template to obtain a second update configuration instruction group.
[0189] In some embodiments of the present application, the network device can use the target prior template to first calculate the second loss function value based on the second operating parameters and the above-mentioned preset operating parameters, and then update the first update configuration instruction group corresponding to the target effectiveness indicator according to the second loss function value until the above-mentioned first preset convergence condition is met, thereby obtaining the second update configuration instruction group corresponding to the updated target effectiveness indicator.
[0190] It can be understood that the above-mentioned second loss function value is used to characterize the difference between the second operating parameter and the preset operating parameter.
[0191] It should be noted that, for the description of how the target prior template updates the first update configuration instruction group corresponding to the target effectiveness indicator according to the second loss function value, reference can be made to the specific description of how the target prior template updates the configuration instructions in at least one first configuration instruction group according to the first loss function value in the above embodiment, and the embodiments of the present application will not be repeated here.
[0192] In some embodiments of the present application, after determining the second update configuration instruction group, the network device may further use the second update configuration instruction group to reconfigure the target service.
[0193] It can be seen that since the network device can input the first update configuration instruction group corresponding to the target effectiveness indicator and the second device status information into the target prior template, and obtain the second operating parameter output by the target prior template, it is possible to determine the operating status of the target business if the first update configuration instruction group corresponding to the target effectiveness indicator is used to configure the target business. Then, the network device can update the first update configuration instruction group corresponding to the target effectiveness indicator based on the operating status through the target prior template to obtain the second update configuration instruction group that can perform the target business without the need for manual input by the user. Therefore, the situation of reconfiguring the network device can be avoided. In this way, the efficiency of configuring the network device to perform the target business can be improved.
[0194] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of network equipment. It is understandable that, in order to implement the above functions, the network equipment includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software-driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0195] In the embodiment of the present application, the functional modules of the network device can be divided according to the above-mentioned method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.
[0196] In the case of dividing each functional module according to each function, FIG10 shows a possible schematic diagram of the configuration device involved in the above embodiment. As shown in FIG10 , the configuration device 50 includes: an acquisition module 51, which is used to acquire at least one first configuration instruction group and first device status information. The at least one first configuration instruction group is used to configure the target service. Each first configuration instruction group includes at least one configuration instruction. The first device status information is used to indicate the current status of the configuration device 50. A processing module 52 is used to input the at least one first configuration instruction group and the first device status information into the target a priori template to obtain a first operating parameter output by the target a priori template. The first operating parameter is generated by the target a priori template based on the at least one first configuration instruction group and the first device status information through simulation verification. The first operating parameter is used to indicate the operating status of the target service; and based on the first operating parameter, the at least one first configuration instruction group is updated through the target a priori template, and the at least one updated first configuration instruction group is used to configure the target service.
[0197] In some embodiments of the present application, the above-mentioned processing module 52 is specifically used to calculate the first loss function value based on the first operating parameters and preset operating parameters through the target prior template; and to update the configuration instructions in at least one first configuration instruction group according to the first loss function value through the target prior template until the first preset convergence condition is met, thereby obtaining the updated at least one first updated configuration instruction group.
[0198] In some embodiments of the present application, the acquisition module 51 is further configured to acquire at least one configuration parameter input by a user before the configuration apparatus 50 acquires the at least one first configuration instruction group and the first device status information. The processing module 52 is further configured to generate at least one first configuration instruction group based on the at least one configuration parameter acquired by the acquisition module 51.
[0199] In some embodiments of the present application, the acquisition module 51 is further configured to acquire at least one second device status information after the processing module 52 configures the target service using at least one first update configuration instruction group. Each second device status information is used to indicate the status of the configuration device 50 after the target service is configured using the first update configuration instruction group. The processing module 52 is further configured to input the at least one second device status information into the target a posteriori template to obtain at least one effectiveness indicator output by the target a posteriori template. Each effectiveness indicator is calculated by comparing the target a posteriori template based on the second device status information and a preset status information. Each effectiveness indicator is used to represent the degree of compatibility between a first configuration instruction group and the target service; then, from the at least one effectiveness indicator, determine a target effectiveness indicator whose indicated degree of compatibility is less than or equal to the preset degree of compatibility; and perform a configuration rollback operation for the first update configuration instruction group corresponding to the target effectiveness indicator.
[0200] In some embodiments of the present application, the above-mentioned processing module 52 is also used to input the first update configuration instruction group corresponding to the target effectiveness indicator and the second device status information into the target priori template after performing a configuration rollback operation on the first update configuration instruction group corresponding to the target effectiveness indicator, so as to obtain the second operating parameter output by the target priori template. The second operating parameter is generated by the target priori template through simulation verification based on the first update configuration instruction group corresponding to the target effectiveness indicator and the second device status information. The second operating parameter is used to indicate the operating status of the target business after the first update configuration instruction group corresponding to the target effectiveness indicator is used to configure the target business; and the first update configuration instruction group corresponding to the target effectiveness indicator is updated based on the second operating parameter through the target priori template to obtain the second update configuration instruction group.
[0201] In some embodiments of the present application, the processing module 52 is specifically configured to, when the acquisition module 51 acquires multiple first update configuration instruction groups, determine whether an abnormality has occurred in the configuration device 50 during the process of using the multiple first update configuration instruction groups to configure the target service; if it is determined that the configuration device 50 has an abnormality, sequentially use the first update configuration instruction groups, starting from the second configuration instruction group in the multiple first update configuration instruction groups, to configure the target service. The second configuration instruction group includes at least one of the following: the first first update configuration instruction group, the first update configuration instruction group preceding the third configuration instruction group, and the first update configuration instruction group following the third configuration instruction group, wherein the third configuration instruction group is the first update configuration instruction group among the multiple first update configuration instruction groups that caused the abnormality in the configuration device 50.
[0202] In some embodiments of the present application, the configuration device 50 provided in the embodiments of the present application may further include: a display module configured to display at least two template identifiers, each indicating a preset template, before the processing module inputs at least one first configuration instruction group and first device status information into the target a priori template to obtain the first operating parameter output by the target a priori template. A receiving module configured to receive a user selection input of a target template identifier from the at least two template identifiers displayed by the display module. The processing module is further configured to determine, in response to the selection input received by the receiving module, the preset template indicated by the target template identifier as the target a priori template.
[0203] In some embodiments of the present application, the above-mentioned processing module 52 is also used to determine the business identifier of the target business based on at least one first configuration instruction group before inputting at least one first configuration instruction group and first device status information into the target prior template to obtain the first operating parameter output by the target prior template; and determine the preset template corresponding to the business identifier of the target business among at least two preset templates as the target prior template.
[0204] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0205] Based on the same inventive concept, as shown in Figure 11, an embodiment of the present application also provides a network device, including a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the configuration method corresponding to the network device in the above-mentioned implementation method is implemented.
[0206] An embodiment of the present application also provides a readable storage medium, wherein the readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, a configuration method corresponding to the network device in the above-mentioned implementation manner is implemented.
[0207] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0208] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0209] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0210] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0211] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0212] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A configuration method, comprising: A network device obtains at least one first configuration instruction group and first device status information, where the at least one first configuration instruction group is used to configure a target service, and the first device status information is used to indicate the current status of the network device; The network device inputs the at least one first configuration instruction group and the first device status information into a target prior template to obtain first operation parameters, where the first operation parameters are used to indicate the operation status of the target service; and The network device updates the at least one first configuration instruction group based on the first operation parameters to obtain at least one first updated configuration instruction group, and uses the at least one first updated configuration instruction group to configure the network device for the target service.
2. The method according to claim 1, wherein The network device updates the at least one first configuration instruction group based on the first operation parameters to obtain the at least one first updated configuration instruction group, including: The network device calculates a first loss function value based on the first operation parameters and preset operation parameters through the target prior template; and The network device updates the configuration instructions in the at least one first configuration instruction group according to the first loss function value through the target prior template until a first preset convergence condition is met, to obtain the at least one first updated configuration instruction group.
3. The method according to claim 2, wherein, The network device calculates a first loss function value based on the first operation parameters and preset operation parameters through the target prior template, including: The network device calculates the first loss function value according to the difference between the first operation parameters and the preset operation parameters.
4. The method according to claim 1, wherein, Before the network device obtains at least one first configuration instruction group and first device status information, the method includes: The network device obtains at least one configuration parameter input by a user; and The network device generates the at least one first configuration instruction group according to the at least one configuration parameter.
5. The method according to claim 4, wherein After the network device generates the at least one first configuration instruction group according to the at least one configuration parameter, the method includes: The network device checks whether the at least one first configuration instruction group is correct according to predefined configuration syntax.
6. The method according to claim 1, wherein, Before the network device inputs the at least one first configuration instruction group and the first device status information into the target prior template, the method includes: The network device determines the target prior template.
7. The method according to claim 6, wherein, The determining the target prior template includes: The network device displays at least two template identifiers; each of the template identifiers is used to indicate a preset template; The network device receives a selection input of a target template identifier from the user among the at least two template identifiers; and The network device determines the preset template indicated by the target template identifier as the target prior template in response to the selection input.
8. The method according to claim 7, wherein, The network device displays the at least two template identifiers, including: The network device displays the at least two template identifiers in a global configuration web page in response to the user selecting a service name to be configured in the global configuration web page.
9. The method according to claim 6, wherein The determining of the target prior template includes: The network device determines a service identifier of the target service based on the at least one first configuration instruction group; and The network device determines, as the prior template, the preset template corresponding to the service identifier of the target service among the at least two preset templates.
10. The method according to any one of claims 1 to 9, wherein The configuring of the target service by using the at least one first update configuration instruction group includes: Setting each configuration instruction in the at least one first update configuration instruction group as an atomic instruction; and Issuing the at least one first update configuration instruction group.
11. The method according to any one of claims 1 to 10, wherein, After the network device is configured for the target service by using the at least one first update configuration instruction group, the method further includes: The network device obtains at least one second device status information, and each second device status information is used to indicate the status of the network device after the target service is configured by using one of the first update configuration instruction groups; The network device inputs the at least one second device status information into a target posterior template to obtain at least one effectiveness index output by the target posterior template, and each effectiveness index is used to characterize the adaptability between one of the first update configuration instruction groups and the target service; The network device determines a target effectiveness index from the at least one effectiveness index; The network device performs a configuration rollback operation on the first update configuration instruction group corresponding to the target effectiveness index.
12. The method according to claim 11, wherein After the network device performs a configuration rollback operation on the first update configuration instruction group corresponding to the target effectiveness index, the method further includes: The network device inputs the first update configuration instruction group corresponding to the target effectiveness index and the second device status information into the target prior template to obtain second operation parameters, and the second operation parameters are used to indicate the operation status of the target service after the target service is configured by using the first update configuration instruction group corresponding to the target effectiveness index; The network device updates the first update configuration instruction group corresponding to the target effectiveness index based on the second operation parameters to obtain a second update configuration instruction group.
13. The method according to claim 1, wherein, When there are multiple first configuration instruction groups, the configuring of the network device for the target service by using the at least one updated first configuration instruction group includes: Determining whether the network device has an abnormality during the process of configuring the target service by using the multiple first update configuration instruction groups; and When the network device has an abnormality, the network device sequentially uses the first update configuration instruction groups to configure the target service starting from the second configuration instruction group among the multiple first update configuration instruction groups.
14. The method according to claim 13, wherein Before the network device sequentially uses the first update configuration instruction groups starting from the second configuration instruction group among the multiple first update configuration instruction groups to configure the network device for the target service when the network device has an abnormality, the method includes: Determining the second configuration instruction group, where the second configuration instruction group includes at least one of the following: the first of the first update configuration instruction groups; the previous one of the first update configuration instruction groups of the third configuration instruction group; and the next one of the first update configuration instruction groups of the third configuration instruction group; wherein, the third configuration instruction group is the first update configuration instruction group among the multiple first update configuration instruction groups that causes an abnormality in the network device.
15. A configuration device, wherein, The apparatus includes: an acquisition module, configured to acquire at least one first configuration instruction group and first device status information, where the at least one first configuration instruction group is used to configure a target service, and the first device status information is used to indicate the current status of the network device; a processing module, configured to input the at least one first configuration instruction group and the first device status information into a target prior template to obtain first operation parameters, where the first operation parameters are used to indicate the operation status of the target service; and based on the first operation parameters, update the at least one first configuration instruction group to obtain at least one first update configuration instruction group, and use the at least one first update configuration instruction group to configure the network device for the target service.
16. The device according to claim 15, wherein, Specifically, the processing module is configured to calculate a first loss function value based on the first operation parameters and preset operation parameters through the target prior template; and update the configuration instructions in the at least one first configuration instruction group according to the first loss function value through the target prior template until a first preset convergence condition is satisfied, to obtain the at least one first update configuration instruction group.
17. The device according to claim 15, wherein, The apparatus further includes: a display module, configured to display at least two template identifiers; where each of the template identifiers is used to indicate a preset template; a receiving module, configured to receive a selection input of a target template identifier from the at least two template identifiers; and the processing module, configured to determine, in response to the selection input, that the preset template indicated by the target template identifier is the target prior template.
18. The apparatus according to claim 15, wherein, The acquisition module is further configured to: acquire at least one second device status information, where each of the second device status information is used to indicate the status of the network device after configuring the target service with one of the first update configuration instruction groups; The processing module is further configured to: input at least one of the second device status information into a target posterior template to obtain at least one effectiveness index, where each of the effectiveness indexes is used to characterize the degree of adaptation between one of the first update configuration instruction groups and the target service; determine a target effectiveness index from the at least one effectiveness index; and perform a configuration rollback operation on the first update configuration instruction group corresponding to the target effectiveness index.
19. A network device, wherein, It includes a processor and a memory, and the memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the configuration method according to any one of claims 1 to 14 are implemented.
20. A computer-readable storage medium, wherein, A program or instruction is stored on the computer-readable storage medium. When the program or instruction is executed by a processor, the steps of the configuration method according to any one of claims 1 to 14 are implemented.
Citation Information
Patent Citations
Standard configuration generation device and method and network equipment configuration error correction device and method
CN110300017A
Network configuration method, device and system
CN110913409A
Method and device for generating virtual network function description VNFD configuration template
CN112398674A
Service configuration method and device
CN113746657A