Network equipment issuing configuration method and system, electronic equipment and storage medium

Through the configuration model trained by collaborative filtering algorithm, real-time recommendation and optimization of network equipment configurations, the operation and maintenance management restrictions caused by insufficient knowledge reserves are solved, and more efficient, simple and standardized configuration management is achieved.

CN119603347APending Publication Date: 2025-03-11UNICLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411601948.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-11
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, due to insufficient knowledge reserves, operation and maintenance management restrictions have been restricted, management error rate has been increased, management efficiency has been reduced and threshold has been increased.

Method used

The configuration model trained by the collaborative filtering algorithm is recommended in real time, and the recommended configuration is automatically optimized according to the current status of the device. The configuration parameters are displayed and guided through the front-end page, and automatically converted into a device-readable configuration file and sent to the target device.

Benefits of technology

It lowers the threshold for users, makes configuration easier and standardized, reduces manual error rates, and improves management efficiency and fault tolerance rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603347A_ABST
    Figure CN119603347A_ABST
Patent Text Reader

Abstract

The invention provides a network equipment issuing configuration method and system, electronic equipment and a storage medium, and the method comprises the steps: when a user selects equipment, a target configuration model is recommended in real time from a resource library according to user historical behaviors and equipment information, and the configuration model is obtained through training by using a collaborative filtering algorithm based on the user historical behaviors and the equipment information; automatically optimizing the recommended configuration according to the current state of the equipment, and displaying the configuration content to a front-end page for a user to preview and confirm; and according to page display and guidance configuration of corresponding parameters, submitting a configuration file which is automatically converted to be readable by the equipment, and issuing the configuration file to the target equipment. According to the network equipment issuing configuration method, formatted conversion can be carried out according to the data model into a machine recognizable format, the threshold of a user is reduced, configuration is simpler and more convenient, configuration is more standardized through the data model provided by the equipment, and the manual error rate is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of device configuration delivery, and in particular, relates to a method, system, electronic device and storage medium for delivering network device configuration. Background Art

[0002] There are many manufacturers and types of network devices, and the management methods of devices are also different. Common methods for collecting network device products currently supported include: SSH, Telnet, SNMP, Netconf, and Restful API of device controllers.

[0003] There are many manufacturers and types of network equipment, and the management methods of equipment are also different. Operation and maintenance engineers often encounter scenarios that require large-scale configuration. Common methods of issuing configurations include: manual configuration, command line configuration, automatic configuration, remote configuration, etc. The above configuration methods all require sufficient network knowledge and higher requirements for personnel, which limits the maintenance scope of managers and increases the error rate. Summary of the invention

[0004] In view of this, the present application aims to propose a network device configuration method, system, electronic device and storage medium to solve the operation and maintenance limitations caused by insufficient knowledge reserves, increase management efficiency, lower management thresholds, and increase fault tolerance.

[0005] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0006] In a first aspect, the present application provides a method for a network device to issue a configuration, including:

[0007] When a user selects a device, a target configuration model is recommended in real time from the resource library based on the user's historical behavior and device information, wherein the configuration model is based on the user's historical behavior and device information and is trained using a collaborative filtering algorithm;

[0008] Automatically optimize the recommended configuration according to the current status of the device, and display the configuration content on the front-end page for users to preview and confirm;

[0009] Configure the corresponding parameters according to the page display and guidance, submit the configuration file that is automatically converted into a device-readable configuration file, and send the configuration file to the target device.

[0010] In a second aspect, based on the same inventive concept, the present application also provides a network device for sending configurations, including:

[0011] A model recommendation module is configured to recommend a target configuration model from a resource library in real time based on the user's historical behavior and device information when the user selects a device, wherein the configuration model is based on the user's historical behavior and device information and is trained using a collaborative filtering algorithm;

[0012] The page display module is configured to automatically optimize the recommended configuration according to the current status of the device and display the configuration content on the front-end page for the user to preview and confirm;

[0013] The configuration delivery module is configured to configure the corresponding parameters according to the page display and guidance, submit the configuration file which is automatically converted into a device-readable configuration file, and deliver the configuration file to the target device.

[0014] In a third aspect, based on the same inventive concept, the present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.

[0015] In a fourth aspect, based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0016] Compared with the prior art, the network device configuration sending method, system, electronic device and storage medium described in this application have the following beneficial effects:

[0017] The network device configuration method, system, electronic device and storage medium described in the present application can be formatted and converted into a machine-recognizable format according to a data model, thereby lowering the user threshold and making the configuration easier. The data model provided by the device can make the configuration more standardized and reduce the human error rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 A flow chart of a method for sending configurations to a network device according to an embodiment of the present application;

[0020] Figure 2 This is a schematic diagram of the structure of a device for sending configurations to a network device according to an embodiment of the present application;

[0021] Figure 3 This is a schematic diagram of the hardware structure of the electronic device described in the embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0023] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0024] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0025] See also Figure 1 As shown, this embodiment provides a method for a network device to send a configuration, including:

[0026] Step S101: When a user selects a device, a target configuration model is recommended in real time from a resource library based on the user's historical behavior and device information, wherein the configuration model is based on the user's historical behavior and device information and is trained using a collaborative filtering algorithm.

[0027] In some embodiments, user historical configuration data is collected and user preferences are recorded, wherein the configuration data includes the configured device type, model and parameters, and the user preferences include frequently used configuration templates and ranges of configuration parameters;

[0028] Device information includes device performance data (such as throughput, latency, error rate, etc.), workload, and the number of connected terminals.

[0029] In addition, it should be noted that before using the data for training the model, it needs to be preprocessed as follows:

[0030] (1) Clean the data to remove outliers and duplicate records;

[0031] (2) Standardize the data so that it is on the same scale and easier to process by machine learning algorithms;

[0032] (3) Feature extraction: extracting features that are helpful for model training, such as the frequency of configuration parameters and performance indicators of equipment.

[0033] When the user selects the target device or model, the system introduces an intelligent recommendation function, which automatically recommends the most suitable version data model based on historical configuration data and user preferences, thus reducing the user's search and selection time and improving efficiency.

[0034] In some implementations, the collaborative filtering algorithm includes:

[0035] Establishing a user-configuration matrix, decomposing the user-configuration matrix into a user feature matrix and a configuration feature matrix, and constructing a loss function based on the user feature matrix and the configuration feature matrix;

[0036] The feature vector is updated by alternating least squares method until the loss function converges to the minimum threshold.

[0037] Specifically, in this embodiment, the collaborative filtering algorithm is a recommendation system algorithm that can predict the user's preference for unknown items based on user behavior (such as ratings or clicks).

[0038] Specifically, the collaborative filtering algorithm involves discovering implicit features by decomposing the user-configuration matrix, making recommendations based on these features, establishing a user-configuration matrix R, and decomposing the matrix R into two matrices P and Q, where P is the user feature matrix and Q is the configuration feature matrix. The goal is to minimize the following loss function:

[0039]

[0040] in, represents the predicted user rating of the configuration, R ui represents the user's rating of the configuration, P u represents the user feature vector, Q i represents the configuration feature vector, u represents the user, i represents the configuration model, and λ represents the regularization parameter, which is used to prevent overfitting.

[0041] In order to minimize the loss function L, this embodiment adopts the alternating least squares method (ALS). In ALS, the Q matrix is ​​first fixed, then the P matrix is ​​optimized, then the P matrix is ​​fixed, and then the Q matrix is ​​optimized, and the whole process is repeated until convergence.

[0042] The alternating least squares method involves:

[0043]

[0044] Among them, R u and R irepresents the rating vector of user u and configuration i, and I represents the identity matrix.

[0045] This embodiment iteratively optimizes the feature matrices of users and configurations until the loss function L converges to the target minimum value. Finally, these feature matrices are used to predict the user's rating of the unknown configuration model and make recommendations based on the ratings.

[0046] Step S102: Automatically optimize the recommended configuration according to the current state of the device, and display the configuration content on the front-end page for the user to preview and confirm.

[0047] In some implementations, device status data is collected in real time, the device status data is analyzed using a machine learning algorithm, configuration parameters are automatically adjusted, an optimization strategy is formulated based on the device status and performance indicators, and a new configuration file is generated based on the optimization strategy, the file including the adjusted configuration parameters;

[0048] Display the optimized configuration file content on the front-end page so that users can view the configuration changes.

[0049] Specifically, in this embodiment, the running status data of the device, such as CPU usage, throughput, memory usage, network traffic, error log, etc., is collected in real time, and the collected data is statistically analyzed to identify the key performance indicators and abnormal patterns of the device, and features that are helpful for configuration recommendations are extracted from the data, such as traffic patterns during peak hours, common error types, etc., and machine learning algorithms (such as decision trees, random forests, neural networks, etc., this embodiment uses a random forest algorithm for data analysis to automatically adjust configuration parameters, which will not be further described here) are used to analyze the device status data, automatically adjust the configuration parameters, and formulate optimization strategies (such as adjusting resource allocation, changing configuration parameters, etc.) according to the device status and performance indicators. According to the optimization strategy, a new configuration file is generated, which contains the adjusted configuration parameters, ensuring that the generated configuration file meets the format requirements of the device and can be correctly parsed and applied by the device, and the optimized configuration file content is displayed on the front-end page so that the user can intuitively see the configuration changes.

[0050] This step also provides an interactive editing function, allowing users to adjust configuration parameters in the preview page to meet specific needs or preferences. After the user confirms that the configuration is correct in the preview page, the user submits the configuration for application.

[0051] Step S103: Configure corresponding parameters according to the page display and guidance, submit and automatically convert into a configuration file readable by the device, and send the configuration file to the target device.

[0052] Specifically, in this embodiment, the user selects the target device or device model on the page of the configuration tool. The system displays relevant configuration parameters and options based on the device model and the user's historical configuration data. The page provides configuration guidance, and the user enters or selects configuration parameters according to the page prompts.

[0053] After the user submits the configuration parameters, the system first performs parameter verification to ensure that all input parameters meet the established range and meet the requirements of the device. The system converts the parameters entered by the user into a format readable by the device. Using the converted parameters, the system builds the content of the configuration file. According to the specific requirements of the device, the system automatically fills the parameters into the predefined configuration template to generate a complete configuration file.

[0054] The system establishes a connection with the target device through a secure connection protocol (such as SSH, SSL, etc.), and uses the device management system or command line interface (CLI) to transfer the configuration file to the device. After the configuration file is sent, the system will request the device to confirm whether the configuration is successfully applied. The device will feedback the configuration status, and the system will record the configuration results. If the configuration is successful, the system will notify the user; if it fails, it will provide error information and recommended follow-up steps.

[0055] In some embodiments, it further comprises:

[0056] In response to the recommended target configuration model not being called in the resource library, the corresponding resource is pulled from the device manufacturer and version information, and the resource library is updated.

[0057] The method described in this embodiment is formatted and converted into a machine-recognizable format according to the data model, which lowers the threshold for users and makes configuration easier. The data model provided by the device makes the configuration more standardized and reduces the human error rate.

[0058] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0059] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a device for sending configurations by a network device.

[0060] like Figure 2 As shown, the network device sends the configuration device, including:

[0061] The model recommendation module 11 is configured to recommend a target configuration model from a resource library in real time according to the user's historical behavior and device information when the user selects a device, wherein the configuration model is based on the user's historical behavior and device information and is trained using a collaborative filtering algorithm;

[0062] The page display module 12 is configured to automatically optimize the recommended configuration according to the current state of the device and display the configuration content on the front-end page for the user to preview and confirm;

[0063] The configuration sending module 13 is configured to configure corresponding parameters according to the page display and guidance, submit the configuration file which is automatically converted into a device readable configuration file, and send the configuration file to the target device.

[0064] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0065] The device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0066] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in any of the above embodiments is implemented.

[0067] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0068] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0069] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0070] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0071] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0072] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0073] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0074] The electronic device of the above embodiment is used to implement the corresponding method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0075] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method described in any of the above embodiments.

[0076] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0077] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0078] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0079] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0080] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0081] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.

Claims

1. A method for sending configuration of a network device, characterized in that: include: When a user selects a device, a target configuration model is recommended in real time from the resource library based on the user's historical behavior and device information, wherein the configuration model is based on the user's historical behavior and device information and is trained using a collaborative filtering algorithm; Automatically optimize the recommended configuration according to the current status of the device, and display the configuration content on the front-end page for users to preview and confirm; Configure the corresponding parameters according to the page display and guidance, submit the configuration file that is automatically converted into a device-readable configuration file, and send the configuration file to the target device.

2. The method according to claim 1, characterized in that: Collect user historical configuration data and record user preferences, wherein the configuration data includes the configured device type, model and parameters, and the user preferences include frequently used configuration templates and ranges of configuration parameters; The device information includes performance data, workload, and number of connected terminals of the device.

3. The method according to claim 1, characterized in that The collaborative filtering algorithm includes: Establishing a user-configuration matrix, decomposing the user-configuration matrix into a user feature matrix and a configuration feature matrix, and constructing a loss function based on the user feature matrix and the configuration feature matrix; The feature vector is updated by alternating least squares method until the loss function converges to the minimum threshold.

4. The method according to claim 3, characterized in that The loss function formula is expressed as: in, represents the predicted user rating of the configuration, R ui represents the user's rating of the configuration, P u represents the user feature vector, Q i represents the configuration feature vector, u represents the user, and i represents the configuration model.

5. The method according to claim 4, characterized in that The alternating least squares method includes: P u =(Q T Q+λI) -1 Q T R u ; Q i =(P T P+λI) -1 P T R i ; Among them, R u and R i represents the rating vector of user u and configuration i, and I represents the identity matrix.

6. The method according to claim 1, characterized in that The automatic optimization of recommended configurations based on the current status of the device and displaying the configuration content on the front-end page for user preview and confirmation include: Collect device status data in real time, analyze the device status data using machine learning algorithms, automatically adjust configuration parameters, formulate optimization strategies based on device status and performance indicators, and generate new configuration files based on the optimization strategies, which contain the adjusted configuration parameters; Display the optimized configuration file content on the front-end page so that users can view the configuration changes.

7. The method according to claim 1, characterized in that Also includes: In response to the recommended target configuration model not being called in the resource library, the corresponding resource is pulled from the device manufacturer and version information, and the resource library is updated.

8. A network device configuration sending device, characterized in that: include: A model recommendation module is configured to recommend a target configuration model from a resource library in real time based on the user's historical behavior and device information when the user selects a device, wherein the configuration model is based on the user's historical behavior and device information and is trained using a collaborative filtering algorithm; The page display module is configured to automatically optimize the recommended configuration according to the current status of the device and display the configuration content on the front-end page for the user to preview and confirm; The configuration delivery module is configured to configure the corresponding parameters according to the page display and guidance, submit the configuration file which is automatically converted into a device-readable configuration file, and deliver the configuration file to the target device.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium, characterized in that: in, The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 7.