Switch configuration adjustment method and device, equipment, storage medium and product

By generating executable configuration commands in response to switch configuration requests and making configuration adjustments when network performance data exceeds preset thresholds, the problems of complexity and high error rate of traditional switch configuration technology are solved, and configuration efficiency and accuracy are improved.

CN119449594APending Publication Date: 2025-02-14SHENZHEN FENGRUNDA TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411439505.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Traditional switch configuration technology has a complicated execution process or maintenance update, resulting in high configuration error rate and low efficiency.

Method used

A switch configuration adjustment method is proposed, including responding to switch configuration requests, determining configuration information, generating executable configuration commands, configuring the switch, and obtaining network performance data. When the network performance data exceeds the preset performance threshold, make configuration adjustments.

Benefits of technology

It reduces the complexity and error rate of configuration technology, can promptly detect and solve potential performance problems, and improves switch configuration efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449594A_ABST
    Figure CN119449594A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network communication, and discloses a switch configuration adjustment method and device, equipment, a storage medium and a product, and the method comprises the steps: responding to a switch configuration request, determining configuration information according to the switch configuration request, generating an executable configuration command matched with the configuration information, and sending the executable configuration command to a server; configuring the switch according to the executable configuration command, acquiring network performance data generated after the switch is configured, and performing configuration adjustment on the switch when the network performance data exceeds a preset performance threshold value; the executable configuration command matched with the configuration information is generated in response to the configuration request, and the switch configuration is adjusted when the configured network performance data exceeds the preset performance threshold, so that the complexity and the error rate of the existing configuration technology are reduced, potential performance problems can be found and solved in time, and the user experience is improved. And the switch configuration efficiency and accuracy are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network communication technology, and in particular to a switch configuration adjustment method, device, equipment, storage medium and product. Background Art

[0002] Switch configuration technology is crucial to building a good network environment. However, it currently relies mainly on manual configuration and script automation. Manual operations are prone to configuration errors, affecting network stability. Complex configuration tasks are time-consuming and difficult to respond to changes quickly. In large-scale networks, script management is complex and difficult to cope with multiple devices and configuration requirements. Traditional methods are difficult to configure in a manufacturer-specific manner and have poor compatibility. Summary of the invention

[0003] The main purpose of the present application is to provide a switch configuration adjustment method, device, equipment, readable storage medium and computer program product, aiming to solve the technical problem that the execution process or maintenance and update of traditional switch configuration technology is complicated, resulting in high configuration error rate and low efficiency.

[0004] To achieve the above object, the present application proposes a switch configuration adjustment method, the method comprising:

[0005] In response to a switch configuration request, determining configuration information according to the switch configuration request, and generating an executable configuration command matching the configuration information;

[0006] configuring the switch according to the executable configuration command, and obtaining network performance data generated after the switch is configured;

[0007] When the network performance data exceeds a preset performance threshold, the switch is configured and adjusted.

[0008] In one embodiment, the step of responding to the switch configuration request, determining configuration information according to the switch configuration request, and generating an executable configuration command matching the configuration information includes:

[0009] In response to a switch configuration request, determining configuration information according to the switch configuration request;

[0010] Preprocessing the configuration information to obtain preprocessed configuration information;

[0011] Matching the preprocessed configuration information with a feature library, and generating candidate configuration commands according to the matching result;

[0012] A target configuration command is screened out from the candidate configuration commands, and the target configuration command is modified to obtain an executable configuration command.

[0013] In one embodiment, the configuration information is text configuration information, and the step of preprocessing the configuration information to obtain the preprocessed configuration information includes:

[0014] Preprocessing the text class configuration information to obtain preprocessed text class configuration information, and extracting text features from the preprocessed text class configuration information;

[0015] identifying a first specific term and a first configuration item in the text feature;

[0016] The relationship between the first configuration items is analyzed according to the first specific term and the first configuration items, and preprocessed configuration information is generated according to the relationship between the first configuration items.

[0017] In one embodiment, the configuration information is picture configuration information, and the step of preprocessing the configuration information to obtain the preprocessed configuration information includes:

[0018] Preprocessing the picture configuration information to obtain preprocessed picture configuration information, and identifying each network device from the preprocessed picture configuration information;

[0019] Extracting network device configuration information from each of the network devices based on a computer vision model;

[0020] identifying a second specific term and a second configuration item from the network device configuration information;

[0021] The relationship between the second configuration items is analyzed according to the second specific term and the second configuration items, and preprocessed configuration information is generated according to the relationship between the second configuration items.

[0022] In one embodiment, the configuration information is voice configuration information, and the step of preprocessing the configuration information to obtain the preprocessed configuration information includes:

[0023] Preprocessing the voice configuration information, and transcribing the preprocessed voice configuration information into voice configuration information text;

[0024] Extracting a configuration instruction from the voice configuration information text, and identifying a third specific term and a third configuration item in the configuration instruction;

[0025] The relationship between the configuration items is analyzed according to the third specific term and the third configuration item, and pre-processed configuration information is generated according to the relationship between the third configuration items.

[0026] In one embodiment, after the step of configuring the switch according to the executable configuration command and acquiring the network performance data generated after the switch is configured, the method further includes:

[0027] When the network performance data exceeds a preset performance threshold and does not reach a preset upper limit of adjustment times, the switch is configured and adjusted.

[0028] When the network performance data exceeds a preset performance threshold and reaches a preset upper limit of adjustment times, a configuration optimization suggestion is output.

[0029] In addition, to achieve the above purpose, the present application also proposes a switch configuration device, the switch configuration adjustment device comprising:

[0030] A configuration generation module, configured to respond to a switch configuration request, determine configuration information according to the switch configuration request, and generate an executable configuration command matching the configuration information;

[0031] A configuration deployment module, used to configure the switch according to the executable configuration command and obtain network performance data generated after the switch is configured;

[0032] The configuration adjustment module is used to adjust the configuration of the switch when the network performance data exceeds a preset performance threshold.

[0033] In addition, to achieve the above objectives, the present application also proposes a switch configuration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the switch configuration adjustment method as described above.

[0034] In addition, to achieve the above purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the switch configuration adjustment method described above are implemented.

[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the switch configuration adjustment method described above are implemented.

[0036] The technical solution proposed in the present application responds to a switch configuration request, determines configuration information according to the switch configuration request, generates an executable configuration command matching the configuration information, configures the switch according to the executable configuration command, and obtains network performance data generated after the switch configuration, and adjusts the switch configuration when the network performance data exceeds a preset performance threshold. Since the present application generates an executable configuration command matching the configuration information by responding to a configuration request, the switch configuration is adjusted when the configured network performance data exceeds a preset performance threshold, thereby reducing the complexity and error rate of existing configuration technologies, being able to promptly discover and resolve potential performance issues, and improving the efficiency and accuracy of switch configuration. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

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

[0039] Figure 1 A flow chart of the switch configuration adjustment method embodiment 1 provided in the present application;

[0040] Figure 2 This is a schematic diagram of the switch configuration process for this application;

[0041] Figure 3 A flow chart of the switch configuration adjustment method according to the present application;

[0042] Figure 4 A flowchart of the third embodiment of the switch configuration adjustment method of the present application is provided;

[0043] Figure 5 This is a schematic diagram of the module structure of the switch configuration device according to an embodiment of the present application;

[0044] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the switch configuration adjustment method in the embodiment of the present application.

[0045] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0046] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0047] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0048] The current traditional switch configuration technology mainly relies on manual configuration and script automation. Manual configuration is suitable for simple and small networks, but it is prone to errors and inefficient. Using predefined scripts to automate the configuration process is suitable for repetitive tasks, but it is more complicated to maintain and update the scripts, and has high requirements for script writing and debugging.

[0049] Therefore, in order to overcome the above-mentioned defects, the present application provides a solution, which generates an executable configuration command that matches the configuration information in response to a configuration request, and adjusts the switch configuration when the configured network performance data exceeds a preset performance threshold, thereby reducing the complexity and error rate of existing configuration technologies, being able to promptly discover and resolve potential performance problems, and improving the efficiency and accuracy of switch configuration.

[0050] It should be noted that the execution subject of each embodiment of the present application may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a switch configuration device, etc. The following embodiments are described below taking a switch configuration device as an example.

[0051] Based on this, the embodiment of the present application provides a switch configuration adjustment method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the switch configuration adjustment method of the present application.

[0052] In this embodiment, the switch configuration adjustment method includes steps S10 to S30:

[0053] Step S10: In response to a switch configuration request, determine configuration information according to the switch configuration request, and generate an executable configuration command matching the configuration information.

[0054] It should be noted that a switch is a device used to forward data packets in a network. It sends the data packets to the correct port or network according to their destination address. Switch configuration design and implementation are required due to factors such as network planning requirements, device access requirements, network performance optimization, security management implementation, and fault recovery requirements.

[0055] In addition, it should be noted that a switch configuration request refers to a request for configuration operations on a switch. This request may come from a network administrator or an automated script, with the purpose of changing certain settings or configurations of the switch to meet the needs of network operation. Configuration information refers to the detailed setting information specified in the switch configuration request that needs to be applied or modified. This information may include port settings, virtual local area network (VLAN) divisions, routing protocol configurations, etc. Executable configuration commands refer to commands generated based on configuration information that can be directly executed on the switch to implement configuration changes specified in the configuration request.

[0056] It can be understood that, after receiving the switch configuration request, this step determines the configuration information to be applied by parsing the request, and generates a configuration command that can be directly executed on the switch based on the information.

[0057] It should be understood that the configuration information can be parsed through the feature library and executable configuration commands can be generated. The feature library is a system that describes in detail the various configuration items, parameters and their meanings of the switch, including configuration items, related parameters, default values, and the role and scope of application of each configuration item, aiming to support automated configuration generation, configuration management and troubleshooting. The feature library is usually classified by functional modules, for example: VLAN configuration includes VLAN ID, VLAN name, VLAN type (standard, extended), VLAN interface configuration, etc.; port configuration includes port mode (access mode, trunk mode), rate, duplex mode, port security, etc.; routing protocol includes configuration items of static routing and dynamic routing protocol.

[0058] Exemplarily, the VLAN configuration in the feature library may include:

[0059] Configuration item name: VLAN ID;

[0060] Type: integer;

[0061] Default value: not set (needs user definition);

[0062] Value range: 1-4094;

[0063] Impact: Identifying different VLANs affects the division of broadcast domains;

[0064] Dependency: Must be configured in the VLAN database of the switch.

[0065] The port configuration can be:

[0066] Configuration item name: port rate;

[0067] Type: Enumeration;

[0068] Default value: Auto;

[0069] Value range: 10Mbps, 100Mbps, 1Gbps, 10Gbps;

[0070] Impact: Affects data transmission speed and bandwidth;

[0071] Dependencies: Must be compatible with the device port type.

[0072] It is understandable that further comparing and revising the configuration information and the feature library to generate executable configuration commands can reduce the configuration error rate and improve configuration efficiency.

[0073] Step S20, configuring the switch according to the executable configuration command, and acquiring network performance data generated after the switch is configured.

[0074] It should be noted that configuring a switch is a comprehensive process involving login, system configuration, VLAN configuration, port configuration, enabling advanced functions, and saving configuration files, which ensures that the switch can be configured and optimized according to the configuration request, thereby providing stable, secure, and high-performance network services.

[0075] Exemplarily, the steps of configuring a switch according to an executable configuration command may be: first, log in to the switch remotely. Next, perform basic system configuration, including changing the name of the switch, setting the management IP address, and configuring the login authentication method). Then, configure VLANs according to network requirements, including creating VLANs, adding description information to the VLANs, and adding ports to the corresponding VLANs. After configuring the VLANs, you may need to configure IP addresses for the VLAN interfaces in order to implement routing functions between VLANs. In addition, you also need to configure the port type and rate according to the type of device connected to the port. In order to enhance the security and stability of the network, you also need to enable some advanced features.

[0076] It should be noted that network performance data refers to various data indicators used to measure and evaluate the operating efficiency and quality of computer networks, usually including bandwidth, latency, jitter, packet loss rate, etc., which can reflect the actual performance of the network and user experience from different dimensions.

[0077] It is understandable that the network performance data generated after obtaining the switch configuration not only records the network status indicators, but is also a feedback mechanism for evaluating the effect of the switch configuration previously performed through the executable configuration information. These network performance data, such as throughput, latency, packet loss rate, CPU utilization, etc., directly reflect the operation status and efficiency of the network after the configuration change.

[0078] Step S30: When the network performance data exceeds a preset performance threshold, adjusting the configuration of the switch.

[0079] It should be noted that the preset performance threshold is the critical value of the network performance indicator set in advance based on factors such as network requirements, business characteristics, and security requirements.

[0080] It should be understood that when network performance data exceeds the preset threshold, it means that the network may have bottlenecks, congestion or other problems. Therefore, by adjusting the switch configuration, you can optimize the network structure, improve bandwidth utilization, reduce latency and packet loss, etc., to ensure that the network can continue to provide stable and efficient services. At the same time, this is also a preventive network management measure, which can avoid the occurrence and expansion of network failures by timely discovering and solving problems.

[0081] For ease of understanding, the following references Figure 2 This invention is provided for illustration, but is not intended to limit the present application. Figure 2 This is a schematic diagram of the switch configuration process for this application. The specific steps of switch configuration are as follows:

[0082] 1. Automatically generate switch configuration commands

[0083] The Intelligent Configuration Generation Module (ICGM) includes a configuration data collection module, a configuration data preprocessing module, a feature extraction module, a feature library, and a verification and correction module. Based on the configuration information input by the user in multiple ways, the machine learning algorithm is used to analyze and understand the user's configuration requirements (receive and parse the user's configuration request), and the configuration command that meets the requirements is automatically generated in combination with the feature library. Finally, optimization suggestions are given to the user through verification.

[0084] 2. Configuration and interaction

[0085] The central control module (CCM) is the central control unit of the system. It is responsible for receiving service configuration requests from the configuration information database, coordinating the work of each service, and handling the overall operation of the system. Specifically, it distributes the corresponding configuration to the corresponding service module for configuration and interaction to complete network communication; manages the system status and log records to indirectly manage and control the switch; and uses the security management module to protect the system's data transmission, storage and operation to ensure the security of the system.

[0086] 3. Dynamically adjust configuration

[0087] The real-time optimization module (ROM) dynamically adjusts the switch configuration to optimize performance based on real-time network performance data. Specifically, it can include: monitoring network performance indicators (such as bandwidth, latency, packet loss rate, etc.), dynamically adjusting the switch configuration to improve network performance, and providing real-time feedback and optimization suggestions.

[0088] This embodiment provides a switch configuration adjustment method, which responds to a switch configuration request, determines configuration information according to the switch configuration request, generates an executable configuration command matching the configuration information, configures the switch according to the executable configuration command, and obtains network performance data generated after the switch configuration, and adjusts the switch configuration when the network performance data exceeds a preset performance threshold. Since the executable configuration command matching the configuration information is generated by responding to the configuration request, the switch configuration is adjusted when the configured network performance data exceeds the preset performance threshold, which reduces the complexity and error rate of the existing configuration technology, can timely discover and solve potential performance problems, and improves the efficiency and accuracy of switch configuration.

[0089] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , the step S10 may include steps S101 to S104:

[0090] Step S101, in response to a switch configuration request, determining configuration information according to the switch configuration request.

[0091] It is understandable that responding to a switch configuration request means that the system has received a configuration request for the switch, which may come from a network administrator, an automated script, or other management system, and is intended to change certain settings or parameters of the switch to meet network operation requirements or optimize network performance.

[0092] It should be understood that after receiving a configuration request, the system needs to parse the request to understand its specific content, that is, which settings need to be changed and how to change them, etc. This process usually involves parsing, verifying and converting the request content. Through detailed analysis of the request content, the system can determine the specific configuration information, which will guide subsequent switch configuration operations.

[0093] Step S102: preprocess the configuration information to obtain preprocessed configuration information.

[0094] It should be noted that the configuration information can be in multiple formats, such as text, image, and voice.

[0095] It is understandable that the received original configuration information may contain missing values, abnormal values ​​or erroneous data, and may also contain noise (such as random errors or deviations), which will interfere with the configuration process and cause inaccurate configuration results.

[0096] Therefore, it is necessary to preprocess the configuration information. Through preprocessing, the data can be cleaned to ensure the integrity and accuracy of the configuration information. Preprocessing can include: data cleaning, noise processing, data conversion, feature extraction and other operations.

[0097] Furthermore, in order to accurately process and analyze the configuration information, the configuration information is text configuration information, the step S102 includes:

[0098] Preprocessing the text class configuration information to obtain preprocessed text class configuration information, and extracting text features from the preprocessed text class configuration information;

[0099] identifying a first specific term and a first configuration item in the text feature;

[0100] The relationship between the first configuration items is analyzed according to the first specific term and the first configuration items, and preprocessed configuration information is generated according to the relationship between the first configuration items.

[0101] It can be understood that this step extracts key information from the configuration text, identifies specific terms and configuration items, and then analyzes the relationship between the configuration items, and finally generates preprocessed configuration information.

[0102] It should be understood that the received text configuration information is preprocessed. Preprocessing may include steps such as removing irrelevant characters (such as comments, spaces, line breaks, etc.), format standardization (such as unifying uppercase and lowercase letters, date formats, etc.), data cleaning (such as removing duplicates, correcting erroneous data, etc.). Preprocessing improves the readability, accuracy, and processability of the configuration information.

[0103] It is understandable that text features are extracted from the preprocessed text configuration information. These features may be keywords, phrases, configuration item names, etc. Methods for extracting text features may include natural language processing techniques, such as word segmentation, part-of-speech tagging, named entity recognition, etc., as well as rule-based text matching and extraction methods.

[0104] It should be understood that, based on the identified first specific term and the first configuration item, the relationship between these configuration items is analyzed. These relationships may include dependency relationships (such as the value of one configuration item depends on the value of another configuration item), conflict relationships (such as the values ​​of two configuration items cannot simultaneously meet a specific condition), etc.

[0105] Furthermore, the configuration information is picture configuration information, and the step S102 includes:

[0106] Preprocessing the picture configuration information to obtain preprocessed picture configuration information, and identifying each network device from the preprocessed picture configuration information;

[0107] Extracting network device configuration information from each of the network devices based on a computer vision model;

[0108] identifying a second specific term and a second configuration item from the network device configuration information;

[0109] The relationship between the second configuration items is analyzed according to the second specific term and the second configuration items, and preprocessed configuration information is generated according to the relationship between the second configuration items.

[0110] It is understandable that this step extracts and preprocesses the network device configuration information based on the image. Images containing network device configuration information are received as input, and these images may come from document scans, device screen shots, etc.

[0111] In order to improve the accuracy and efficiency of subsequent processing, these images need to be preprocessed. Preprocessing may include adjusting the image size, resolution, contrast, brightness, etc., as well as applying image filtering, edge detection and other technologies to better highlight the key information in the image (such as text, lines, etc.).

[0112] It should be understood that based on the pre-processed image, image recognition technology (such as the object detection model in deep learning) is used to identify the various network devices in the image. These devices may be switches, routers, firewalls, etc. A list of network devices and their location information in the image are identified.

[0113] It is understandable that the computer vision model is used to extract text information from the identified network device related areas, accurately locate the text area in the image, and convert it into an editable text format. These texts usually contain the configuration information of the network device. In the extracted configuration information text, specific terms (such as IP address, port number, protocol type, etc.) and corresponding configuration items (the values ​​of these configuration items are associated with specific terms) are further identified.

[0114] It should be understood that based on the identified second specific term and second configuration item, the logical relationship (such as dependency, mutual exclusion, etc.) between these configuration items is analyzed. According to the analysis result, the configuration information is reorganized or formatted to generate pre-processed configuration information that is easier to understand and process.

[0115] Furthermore, the configuration information is voice configuration information, and the step S102 includes:

[0116] Preprocessing the voice configuration information, and transcribing the preprocessed voice configuration information into voice configuration information text;

[0117] Extracting a configuration instruction from the voice configuration information text, and identifying a third specific term and a third configuration item in the configuration instruction;

[0118] The relationship between the configuration items is analyzed according to the third specific term and the third configuration item, and preprocessed configuration information is generated according to the relationship between the third configuration items.

[0119] It should be noted that the preprocessing of speech signals may include steps such as denoising (removing background noise), echo cancellation, speech enhancement (such as increasing volume and clarity), and endpoint detection (determining the start and end points of speech).

[0120] It is understood that the preprocessed voice signal can be converted into text using automatic speech recognition technology, the characteristics of the voice signal can be analyzed, and it can be matched with a predefined voice model to generate the corresponding text. The converted text is parsed to identify the configuration instructions therein. The configuration instructions may begin with a specific format or keyword, such as "setup", "configuration", etc.

[0121] Step S103, matching the preprocessed configuration information with a feature library, and generating candidate configuration commands according to the matching result.

[0122] It should be noted that the signature database is a database or knowledge base that contains a large number of configuration command templates, rules, parameters and their corresponding relationships. These templates and rules are pre-defined based on the configuration specifications, best practices, common configuration scenarios, etc. of network devices.

[0123] It is understandable that the process of matching the preprocessed configuration information with the feature library and generating candidate configuration commands according to the matching result is intended to find the configuration command or command set that best matches the configuration information from the predefined feature library.

[0124] It should be understood that during the matching process, the preprocessed configuration information is compared with the entries in the feature library one by one. This process may involve multiple levels of matching, including keyword matching, parameter type matching, parameter value range matching, etc. Based on the degree of matching, the command template or rule set that best meets the current configuration requirements is selected from the feature library. Once a matching command template or rule set is found, the system will generate the corresponding candidate configuration commands based on these templates or rules and the specific parameter values ​​in the preprocessed configuration information.

[0125] Step S104: Filter out a target configuration command from the candidate configuration commands, and modify the target configuration command to obtain an executable configuration command.

[0126] It is understandable that candidate configuration commands are evaluated to determine how well they match the original configuration requirements, which may be based on multiple factors, such as command accuracy, completeness, whether all specified configuration items are met, etc. If multiple candidate configuration commands meet the conditions, they can be sorted according to certain priority rules (such as command commonness, configuration complexity, compatibility of network environment, etc.). Based on the matching degree and priority sorting, the best candidate configuration command that meets the requirements is selected as the target configuration command.

[0127] It should be understood that the target configuration commands also need to be: syntax checked to ensure that they comply with the configuration syntax specifications of the network device; verify whether the parameter values ​​in the command are within a reasonable range and meet the configuration requirements of the network device; check whether there are dependencies between the target configuration commands to ensure that they are executed in the correct order; check whether the target configuration commands conflict with the existing network configuration. This may require comparison with the current network status, or the use of conflict detection algorithms to predict potential configuration conflicts.

[0128] This embodiment preprocesses multi-format configuration information, matches the preprocessed configuration information with the information in the feature library, finds one or more candidate configuration commands that are likely to be closest to or completely consistent with user needs, compares the candidate configuration commands with the preset information in the feature library, and then corrects them according to the preset information in the feature library, and generates executable configuration commands according to the correction results, thereby ensuring the readability and consistency of the configuration commands and improving the accuracy of the executable configuration commands.

[0129] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 After step S20, steps S211 to S212 may also be included:

[0130] Step S211, when the network performance data exceeds a preset performance threshold and does not reach a preset upper limit of adjustment times, adjusting the configuration of the switch.

[0131] It should be noted that the preset number of adjustments is set to prevent network instability caused by excessive adjustments, optimize resource utilization, improve operation and maintenance efficiency, prevent potential configuration conflicts, and follow best practices.

[0132] For ease of understanding, the following examples are given for illustration, but are not intended to limit the present application. The specific steps for dynamically adjusting the configuration are as follows:

[0133] 1. Monitor network performance data

[0134] Collect data from network devices, system logs, or traffic monitoring tools. This data can include network traffic, device load, port status, latency, packet loss rate, etc. The collected data will be analyzed to identify performance bottlenecks, abnormal behavior, or insufficient resources in the network. This usually involves using various statistical and analytical techniques to evaluate the status of the network. Set specific performance thresholds (such as bandwidth utilization, latency cap) and continuously monitor these indicators. Once the indicator exceeds the set threshold, the system will mark it as a situation that needs to be optimized.

[0135] 2. Dynamically adjust configuration

[0136] By analyzing monitoring data and threshold-triggered alarms, the system identifies configuration items that need to be adjusted. Based on the identified problems, adjustment strategies are developed. The system performs configuration adjustments automatically or with administrator approval. These adjustments can be configuration changes to switches, routers, or other network devices. After the adjustments are completed, network performance is monitored to verify that the new configuration effectively solves the problem. If the effect is not obvious, further adjustments may be required. All adjustments and their effects are recorded for future reference and further analysis. The system generates reports to help network administrators understand the optimization results and adjustment history.

[0137] Through the above steps, the network status can be effectively monitored and the configuration can be adjusted dynamically to maintain the optimal network performance.

[0138] Step S212: when the network performance data exceeds the preset performance threshold and reaches the preset upper limit of adjustment times, output configuration optimization suggestions.

[0139] It is understandable that the occurrence of infinite adjustment failures can be prevented based on the preset number of adjustments. If the upper limit of the preset number of adjustments is reached, optimization suggestions are output for manual intervention to improve configuration efficiency.

[0140] This embodiment configures the switch according to the executable configuration command, and then obtains the network performance data generated after the configuration. If the network performance data exceeds the preset performance threshold, it is further checked whether the preset upper limit of the number of adjustments has been reached. If the upper limit has not been reached, the system will automatically make further configuration adjustments to the switch. If the network performance continues to be poor and the preset upper limit of the number of adjustments has been reached, it means that the current configuration adjustment may not be able to effectively solve the problem or requires more in-depth analysis. At this time, the system will output configuration optimization suggestions, which significantly improves the efficiency and effectiveness of network operation and maintenance.

[0141] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the switch configuration adjustment method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0142] This application also provides a switch configuration device, please refer to Figure 5 , the switch configuration adjustment device comprises:

[0143] The configuration generation module 10 is used to respond to the switch configuration request, determine the configuration information according to the switch configuration request, and generate an executable configuration command matching the configuration information;

[0144] A configuration deployment module 20, configured to configure the switch according to the executable configuration command and obtain network performance data generated after the switch is configured;

[0145] The configuration adjustment module 30 is used to adjust the configuration of the switch when the network performance data exceeds a preset performance threshold.

[0146] The switch configuration device provided by the present application adopts the switch configuration adjustment method in the above embodiment, which can solve the technical problem that the execution process or maintenance and update of the traditional switch configuration technology is complicated, resulting in a high configuration error rate and low efficiency. Compared with the prior art, the beneficial effects of the switch configuration device provided by the present application are the same as the beneficial effects of the switch configuration adjustment method provided by the above embodiment, and the other technical features in the switch configuration device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0147] The present application provides a switch configuration device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the switch configuration adjustment method in the above-mentioned embodiment 1.

[0148] Reference below Figure 6 , which shows a schematic diagram of the structure of a switch configuration device suitable for implementing the embodiment of the present application. The switch configuration device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions: tablet computers), PMPs (Portable Media Players: portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The switch configuration device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0149] like Figure 6 As shown, the switch configuration device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the switch configuration device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the switch configuration device to communicate with other devices wirelessly or wired to exchange data. Although the switch configuration device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

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

[0151] The switch configuration device provided by the present application adopts the switch configuration adjustment method in the above embodiment, which can solve the technical problem that the execution process or maintenance and update of the traditional switch configuration technology is complicated, resulting in a high configuration error rate and low efficiency. Compared with the prior art, the beneficial effects of the switch configuration device provided by the present application are the same as the beneficial effects of the switch configuration adjustment method provided by the above embodiment, and the other technical features in the switch configuration device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0152] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0153] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0154] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the switch configuration adjustment method in the above-mentioned embodiment.

[0155] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0156] The computer-readable storage medium may be included in the switch configuration device; or may exist independently without being assembled into the switch configuration device.

[0157] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the switch configuration device, the switch configuration device: responds to a switch configuration request, determines configuration information according to the switch configuration request, generates an executable configuration command matching the configuration information, configures the switch according to the executable configuration command, and obtains network performance data generated after the switch is configured, and adjusts the configuration of the switch when the network performance data exceeds a preset performance threshold.

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

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

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

[0161] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above switch configuration adjustment method, and can solve the technical problems that the execution process or maintenance and update of traditional switch configuration technology is complicated, resulting in high configuration error rate and low efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the switch configuration adjustment method provided by the above embodiment, and will not be repeated here.

[0162] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the switch configuration adjustment method as described above are implemented.

[0163] The computer program product provided by the present application can solve the technical problem that the execution process or maintenance and update of the traditional switch configuration technology is complicated, resulting in a high configuration error rate and low efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the switch configuration adjustment method provided by the above embodiment, and will not be repeated here.

[0164] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A switch configuration adjustment method, characterized in that: The method comprises the following steps: In response to a switch configuration request, determining configuration information according to the switch configuration request, and generating an executable configuration command matching the configuration information; configuring the switch according to the executable configuration command, and obtaining network performance data generated after the switch is configured; When the network performance data exceeds a preset performance threshold, the switch is configured and adjusted.

2. The switch configuration adjustment method according to claim 1, characterized in that: The step of responding to the switch configuration request, determining configuration information according to the switch configuration request, and generating an executable configuration command matching the configuration information comprises: In response to a switch configuration request, determining configuration information according to the switch configuration request; Preprocessing the configuration information to obtain preprocessed configuration information; Matching the preprocessed configuration information with a feature library, and generating candidate configuration commands according to the matching result; A target configuration command is screened out from the candidate configuration commands, and the target configuration command is modified to obtain an executable configuration command.

3. The switch configuration adjustment method according to claim 2, characterized in that: The configuration information is text-based configuration information, and the step of preprocessing the configuration information to obtain the preprocessed configuration information includes: Preprocessing the text class configuration information to obtain preprocessed text class configuration information, and extracting text features from the preprocessed text class configuration information; identifying a first specific term and a first configuration item in the text feature; The relationship between the first configuration items is analyzed according to the first specific term and the first configuration items, and preprocessed configuration information is generated according to the relationship between the first configuration items.

4. The switch configuration adjustment method according to claim 2, characterized in that: The configuration information is picture configuration information, and the step of preprocessing the configuration information to obtain the preprocessed configuration information includes: Preprocessing the picture configuration information to obtain preprocessed picture configuration information, and identifying each network device from the preprocessed picture configuration information; Extracting network device configuration information from each of the network devices based on a computer vision model; identifying a second specific term and a second configuration item from the network device configuration information; The relationship between the second configuration items is analyzed according to the second specific term and the second configuration items, and preprocessed configuration information is generated according to the relationship between the second configuration items.

5. The switch configuration adjustment method according to claim 2, characterized in that: The configuration information is voice configuration information, and the step of preprocessing the configuration information to obtain the preprocessed configuration information includes: Preprocessing the voice configuration information, and transcribing the preprocessed voice configuration information into voice configuration information text; Extracting a configuration instruction from the voice configuration information text, and identifying a third specific term and a third configuration item in the configuration instruction; The relationship between the configuration items is analyzed according to the third specific term and the third configuration item, and pre-processed configuration information is generated according to the relationship between the third configuration items.

6. The switch configuration adjustment method according to any one of claims 1 to 5, characterized in that: After the step of configuring the switch according to the executable configuration command and obtaining the network performance data generated after the switch is configured, the method further includes: When the network performance data exceeds a preset performance threshold and does not reach a preset upper limit of adjustment times, adjusting the configuration of the switch; When the network performance data exceeds the preset performance threshold and reaches the preset upper limit of adjustment times, a configuration optimization suggestion is output.

7. A switch configuration adjustment device, characterized in that: The switch configuration adjustment device comprises: A configuration generation module, configured to respond to a switch configuration request, determine configuration information according to the switch configuration request, and generate an executable configuration command matching the configuration information; A configuration deployment module, used to configure the switch according to the executable configuration command and obtain network performance data generated after the switch is configured; The configuration adjustment module is used to adjust the configuration of the switch when the network performance data exceeds a preset performance threshold.

8. A switch configuration adjustment device, characterized in that: The switch configuration adjustment device comprises: a memory, a processor, and a switch configuration adjustment program stored in the memory and executable on the processor. When the switch configuration adjustment program is executed by the processor, the switch configuration adjustment method according to any one of claims 1 to 6 is implemented.

9. A storage medium, characterized in that: The storage medium stores a switch configuration adjustment program, and when the switch configuration adjustment program is executed by the processor, the switch configuration adjustment method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that The computer program product comprises a switch configuration adjustment program, and when the switch configuration adjustment program is executed by a processor, the switch configuration adjustment method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Device configuration scheme solution method based on web interface, device and medium

    CN119449563A

  • Switch instruction optimization method, medium and system

    CN120110897A