Internet of Things communication equipment configuration management method, device, equipment and storage medium
By obtaining the basic information and business needs of IoT communication devices, generating and issuing configuration templates, and performing effective verification and optimization, the problems of diversified equipment types and inconsistent protocol standards are solved, and the efficiency of IoT communication device configuration management is improved. and accuracy.
Patent Information
- Application Number
- CN202411431905.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-10-14
AI Technical Summary
The traditional IoT communication device configuration management method is difficult to cope with the problems of a wide range of equipment types, inconsistent protocol standards, and diversified business needs, which makes it difficult to meet the actual needs of configuration management efficiency and accuracy.
By obtaining the communication protocols supported by the communication device, collecting basic information, obtaining device types and business requirements, generating configuration templates, and issuing them to the device through the template engine rendering and standardized configuration management protocols for effective verification and dynamic optimization.
It realizes interconnection between different devices, improves the flexibility and accuracy of configuration templates, and improves the efficiency and accuracy of configuration management.
Smart Images

Figure CN119276701A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of communication equipment management, and in particular to a method, device, equipment and storage medium for configuration management of Internet of Things communication equipment. Background Art
[0002] In the field of IoT communication equipment configuration management, there are currently a variety of solutions, most of which cover basic links such as device discovery, configuration template design, configuration distribution, configuration verification and monitoring, and configuration update and optimization. These solutions have achieved automated management of IoT communication equipment configuration to a certain extent, improving configuration efficiency and accuracy.
[0003] However, with the continuous development of IoT technology and the expansion of its application areas, IoT communication equipment configuration management faces more and more challenges. Factors such as the wide variety of equipment types, inconsistent protocol standards, and diversified business needs make it difficult for traditional configuration management methods to meet actual needs. Summary of the invention
[0004] The present invention provides a method, device, equipment and storage medium for configuration management of Internet of Things communication equipment, which are used to solve the technical problem that traditional configuration management methods are difficult to meet actual needs due to factors such as a wide variety of equipment types, inconsistent protocol standards, and diversified business needs.
[0005] The present invention provides a method for managing configuration of an Internet of Things communication device, comprising:
[0006] Obtain the communication protocols supported by communication devices in the Internet of Things;
[0007] Communicate with the communication device through the communication protocol to collect basic information of the communication device;
[0008] Acquire the device type and service requirements of the communication device;
[0009] Generate a configuration template according to the device type, the business requirements and the basic information;
[0010] Sending the configuration template to the corresponding communication device for device configuration;
[0011] Performing validation on the configuration template;
[0012] When the verification is passed, the device operation data and user feedback of the configured communication device are obtained in real time;
[0013] The communication device is configured and optimized according to the device operation data and user feedback.
[0014] Optionally, the step of generating a configuration template according to the device type, the service requirement and the basic information includes:
[0015] Determine a template structure according to the device type and the business requirements;
[0016] Acquiring configuration information according to the template structure;
[0017] The basic information and the configuration information are used to fill the template structure to generate a configuration template.
[0018] Optionally, the step of sending the configuration template to a corresponding communication device for device configuration includes:
[0019] The configuration template is rendered using a template engine, and the rendered configuration template is sent to the communication device through a preset standardized configuration management protocol.
[0020] Optionally, the step of verifying the validity of the configuration template includes:
[0021] Acquiring current status information of the communication device;
[0022] According to the device type of the communication device, obtaining a target configuration template from a configuration template library;
[0023] Obtaining an expected state from the target configuration template;
[0024] Determining whether the current state information is consistent with the expected state;
[0025] If they are consistent, it is determined that the configuration template has passed the effectiveness verification.
[0026] Optionally, the step of optimizing the configuration of the communication device according to the device operation data and user feedback includes:
[0027] Obtaining the performance bottleneck, failure mode and user usage habits of the communication device from the device operation data;
[0028] Obtaining user configuration satisfaction and potential needs from the user feedback;
[0029] The configuration template of the communication device is optimized according to the performance bottleneck, the failure mode, the user usage habits, the configuration satisfaction and the potential needs.
[0030] The present invention also provides an Internet of Things communication equipment configuration management device, comprising:
[0031] A communication protocol acquisition module is used to obtain the communication protocols supported by the communication devices in the Internet of Things;
[0032] A basic information collection module, used to communicate with the communication device through the communication protocol and collect basic information of the communication device;
[0033] A device type and service requirement acquisition module, used to acquire the device type and service requirement of the communication device;
[0034] A configuration template generating module, used to generate a configuration template according to the device type, the service requirement and the basic information;
[0035] A device configuration module, used to send the configuration template to the corresponding communication device for device configuration;
[0036] A validation module, used to validate the configuration template;
[0037] A device operation data and user feedback acquisition module, used to acquire device operation data and user feedback of the configured communication device in real time when the verification is passed;
[0038] The optimization module is used to optimize the configuration of the communication device according to the device operation data and user feedback.
[0039] Optionally, the configuration template generating module includes:
[0040] A template structure determination submodule, used to determine a template structure according to the device type and the business requirements;
[0041] A configuration information acquisition submodule, used to acquire configuration information according to the template structure;
[0042] The configuration template generation submodule is used to fill the template structure with the basic information and the configuration information to generate a configuration template.
[0043] Optionally, the device configuration module includes:
[0044] The device configuration submodule is used to render the configuration template using a template engine, and send the rendered configuration template to the communication device through a preset standardized configuration management protocol.
[0045] The present invention also provides an electronic device, the device comprising a processor and a memory:
[0046] The memory is used to store program code and transmit the program code to the processor;
[0047] The processor is used to execute the Internet of Things communication device configuration management method as described in any one of the above items according to the instructions in the program code.
[0048] The present invention also provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the Internet of Things communication device configuration management method as described in any one of the above items.
[0049] It can be seen from the above technical scheme that the present invention has the following advantages: The present invention provides a method for configuration management of Internet of Things communication equipment, specifically including: obtaining the communication protocol supported by the communication equipment; communicating and connecting with the communication equipment through the communication protocol to collect the basic information of the communication equipment; obtaining the equipment type and business requirements of the communication equipment; generating a configuration template according to the equipment type, business requirements and basic information; sending the configuration template to the corresponding communication equipment for equipment configuration; verifying the effectiveness of the configuration template; when the verification is passed, obtaining the equipment operation data and user feedback of the configured communication equipment in real time; optimizing the configuration of the communication equipment according to the equipment operation data and user feedback. The present invention obtains the basic information of the communication equipment by selecting the supported communication protocol for the communication equipment, realizes the interconnection between different devices, and then generates the configuration template according to the equipment type and business requirements, so that the template configuration is more flexible, and finally improves the accuracy of the template configuration by dynamically optimizing the configuration template. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0051] Figure 1 A flowchart of a method for managing configuration of an Internet of Things communication device provided by an embodiment of the present invention;
[0052] Figure 2 A flowchart of a method for managing configuration of an Internet of Things communication device provided by another embodiment of the present invention;
[0053] Figure 3 A structural block diagram of an Internet of Things communication device configuration management device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The embodiments of the present invention provide a method, apparatus, device and storage medium for configuration management of Internet of Things communication equipment, which are used to solve the technical problem that traditional configuration management methods are difficult to meet actual needs due to factors such as a wide variety of equipment types, inconsistent protocol standards, and diversified business needs.
[0055] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] See also Figure 1 , Figure 1 A flowchart of the steps of a method for configuring and managing Internet of Things communication equipment provided by an embodiment of the present invention.
[0057] The present invention provides a method for managing the configuration of an Internet of Things communication device, which may specifically include the following steps:
[0058] Step 101, obtaining a communication protocol supported by a communication device in the Internet of Things;
[0059] Internet of Things: refers to connecting any object to the network through information sensing devices according to agreed protocols. Objects exchange and communicate information through information dissemination media to achieve intelligent identification, positioning, tracking, supervision and other functions.
[0060] The communication device in the embodiment of the present invention may be a router, a switch, a sensor or other device.
[0061] In the embodiment of the present invention, for communication devices that support standard protocols, a connection with the communication device can be established through the standard protocol. For communication devices that do not support standard communication protocols, an API interface or a custom protocol provided by the device manufacturer can be used for communication.
[0062] In an example, the standard communication protocol may be SNMP (Simple Network Management Protocol) or SSH (Secure Shell), etc.
[0063] SNMP is a standard protocol designed specifically for managing network nodes (servers, workstations, routers, switches, and Hubs, etc.) in IP networks. It is an application layer protocol. SNMP enables network administrators to manage network performance, discover and solve network problems, and plan network growth. By receiving random messages (i.e., event reports) through SNMP, the network management system is informed of network problems.
[0064] SSH is a protocol used for secure remote login and other secure network services over an insecure network.
[0065] Step 102, communicating with the communication device through a communication protocol to collect basic information of the communication device;
[0066] In the embodiment of the present invention, the basic information of the communication device may include an IP address, a MAC address, a device model, etc.
[0067] Step 103, obtaining the device type and service requirements of the communication device;
[0068] Step 104, generating a configuration template according to the device type, business requirements and basic information;
[0069] In the embodiment of the present invention, corresponding configuration templates can be designed according to device types and business requirements, including network parameters, security settings, business parameters, etc.
[0070] In a specific implementation, a text editor or a dedicated configuration management tool can be used to design a configuration template to ensure the flexibility and reusability of the configuration template.
[0071] Step 105, sending the configuration template to the corresponding communication device for device configuration;
[0072] Step 106, verifying the configuration template.
[0073] In the embodiment of the present invention, the device status information can be collected through SNMP Trap, Syslog and other mechanisms, and compared with the configuration template for verification; at the same time, the device performance can be monitored in real time using monitoring tools (such as Zabbix, Prometheus, etc.). The collection strategy of device status information is optimized to ensure the accuracy and real-time nature of the information; at the same time, a verification mechanism for device status information is provided to ensure the reliability of the information.
[0074] Step 107, when the verification is passed, obtaining the device operation data and user feedback of the configured communication device in real time;
[0075] Step 108: Optimize the configuration of the communication device according to the device operation data and user feedback.
[0076] In the embodiment of the present invention, the device configuration may be updated and optimized based on the device operation data and user feedback.
[0077] In the specific implementation, version control tools (such as Git) can be used to manage configuration templates to facilitate updates and rollbacks; at the same time, the configuration can be optimized by collecting device operation data and user feedback.
[0078] The present invention obtains basic information of communication equipment by selecting supported communication protocols for communication equipment to achieve interconnection between different equipment, then generates configuration templates according to equipment types and business requirements to make template configuration more flexible, and finally improves the accuracy of template configuration by dynamically optimizing the configuration templates.
[0079] See also Figure 2 , Figure 2 A flowchart of a method for managing the configuration of an IoT communication device provided by another embodiment of the present invention. Specifically, the following steps may be included:
[0080] Step 201, obtaining the communication protocol supported by the communication device in the Internet of Things;
[0081] Step 202, communicating with the communication device through a communication protocol to collect basic information of the communication device;
[0082] In the embodiment of the present invention, for communication devices that support standard protocols, a connection with the communication device can be established through the standard protocol. For communication devices that do not support standard communication protocols, an API interface or a custom protocol provided by the device manufacturer can be used for communication.
[0083] In an example, the standard communication protocol may be SNMP (Simple Network Management Protocol) or SSH (Secure Shell), etc.
[0084] SNMP is a standard protocol designed specifically for managing network nodes (servers, workstations, routers, switches, and Hubs, etc.) in IP networks. It is an application layer protocol. SNMP enables network administrators to manage network performance, discover and solve network problems, and plan network growth. By receiving random messages (and event reports) through SNMP, the network management system is informed of network problems.
[0085] SSH is a protocol used for secure remote login and other secure network services over an insecure network.
[0086] In an example, the specific process of using SNMP or SSH protocol for device discovery and identification is as follows:
[0087] SNMP Example:
[0088] Initialize the SNMP session:
[0089] The management system (usually a configuration management system or NMS) creates an SNMP session, specifying the IP address of the target device and the SNMP version (usually SNMPv2c or SNMPv3).
[0090] Select an SNMP community string (for SNMPv2c) or set security parameters (for SNMPv3).
[0091] Sending an SNMP GET request:
[0092] The management system constructs an SNMP GET request PDU (Protocol Data Unit) that specifies the device object identifier (OID) to be queried. In a device discovery scenario, basic information such as device type, serial number, software version, etc. may be queried.
[0093] The management system sends a GET request to the target device over the network.
[0094] Receiving SNMP response:
[0095] After receiving the SNMP GET request, the target device retrieves the corresponding information from the MIB (Management Information Base) according to the OID in the request.
[0096] The device constructs an SNMP GET response PDU and returns the retrieved information as a response to the management system.
[0097] Parsing SNMP responses:
[0098] After receiving the SNMP response, the management system parses the data in the response PDU and extracts the basic information of the device.
[0099] The extracted device information is stored in a database or configuration management system for subsequent configuration management and monitoring.
[0100] SSH Example:
[0101] When the device does not support SNMP or SNMP is not sufficient to meet the needs, SSH can be used for more complex device discovery and identification.
[0102] Establish an SSH connection:
[0103] The management system uses an SSH client library (such as OpenSSH, Paramiko, etc.) to establish a connection with the SSH server of the target device.
[0104] The management system provides a username and password (or key authentication) for identity authentication.
[0105] Execute the command:
[0106] Once the SSH connection is established and authenticated, the management system can send commands (such as CLI commands) to the device through the SSH connection.
[0107] For example, you can send commands such as show version and show interface to obtain basic information and configuration status of the device.
[0108] Receive and parse command output:
[0109] After the device executes the command, it sends the command output back to the management system through the SSH connection.
[0110] The management system receives the command output and uses a parser, such as regular expressions, to extract the required information.
[0111] Process the extracted information:
[0112] The management system stores the extracted information in a database or configuration management system for subsequent configuration management and monitoring.
[0113] When using SSH for device discovery and identification, you need to ensure that the SSH service is enabled on the target device and that the management system has access permissions.
[0114] SSH connections require encryption to ensure the security of communications. SSH key pairs can be used for authentication to increase security.
[0115] Because the format of SSH command output can vary depending on device type and version, you may need to write a specific parser to extract the required information.
[0116] Step 203, obtaining the device type and service requirements of the communication device;
[0117] Step 204, determining the template structure according to the device type and business requirements;
[0118] Step 205, obtaining configuration information according to the template structure;
[0119] Step 206, fill the template structure with basic information and configuration information to generate a configuration template;
[0120] In an embodiment of the present invention, when designing a configuration template for an IoT communication device, multiple factors such as device type, business requirements, and network environment may be considered. The following is an example of a specific configuration template design process:
[0121] 1. Determine equipment type and business needs
[0122] First, you need to identify the type of device you want to configure, such as a router, switch, sensor, or other type of IoT device. At the same time, it is also critical to understand business requirements, such as which network the device needs to access, which ports need to be opened, whether a VPN connection is required, and how to set security policies.
[0123] Taking a smart router as an example, assume that the business requirement is to provide it with a secure network environment and support remote management and VPN access.
[0124] 2. Design configuration template structure
[0125] Based on the device type and business requirements, we can start designing the basic structure of the configuration template. A configuration template usually includes the following parts:
[0126] Basic device information: such as device name, location, serial number, etc.
[0127] Network interface configuration: including WAN port and LAN port settings, such as IP address, subnet mask, gateway, etc.
[0128] Security settings: firewall rules, access control lists (ACLs), SSH access permissions, etc.
[0129] VPN configuration: If the business requirements include VPN access, you need to configure the relevant parameters of the VPN server or client.
[0130] Remote Management: Configure the remote management functions of the device, such as SNMP monitoring, TR-069 remote configuration, etc.
[0131] Other business parameters: Based on specific business requirements, you may also need to configure the DNS server, NTP server, QoS policy, etc.
[0132] 3. Fill in the configuration template content
[0133] After determining the structure of the configuration template, we need to fill in the template content according to specific business requirements and best practices. The following is a simplified example of a smart router configuration template:
[0134]
[0135] 4. Test and verify the configuration template
[0136] Before applying the configuration template to the actual device, we need to conduct sufficient testing and verification in the test environment. This includes checking the correctness of the configuration syntax, the completeness of the functions, and security. During the test process, the configuration template may need to be adjusted and optimized to ensure that it meets business requirements and can run stably in the actual environment.
[0137] 5. Deployment and Monitoring
[0138] After testing and verification, we can deploy the configuration template to the actual IoT communication device. After deployment, the device needs to be continuously monitored and maintained to ensure the correctness and effectiveness of the configuration. If any problems are found or the configuration needs to be adjusted to meet new business needs, we can return to the configuration template design stage to make corresponding modifications and updates.
[0139] Step 207, sending the configuration template to the corresponding communication device for device configuration;
[0140] In the embodiment of the present invention, a template engine may be used to render a configuration template, and the rendered configuration template may be sent to the communication device through a preset standardized configuration management protocol.
[0141] In an example, the template engine can be Jinja2, Handlebars, etc. Using the template engine to dynamically generate and render configuration templates can greatly improve the flexibility and reusability of configuration templates, while reducing the error rate during the configuration process. The following is a detailed process example of using the Jinja2 template engine to dynamically generate and render configuration templates:
[0142] 1. Install Jinja2 template engine
[0143] First, make sure Jinja2 is installed on your system.
[0144] 2. Create Jinja2 template file
[0145] Create a Jinja2 template file, usually with a .j2 file extension. In the template, you can use Jinja2 syntax to define variables and logic.
[0146] For example, router_config.j2:
[0147]
[0148] In this template, the content within the {{}} symbols will be replaced with the actual value. encrypt is a hypothetical filter used to encrypt passwords (in reality you need to implement this filter). default is a Jinja2 built-in function used to provide a default value for a variable.
[0149] 3. Prepare the data
[0150] Before rendering the template, you need to prepare some data to replace the variables in the template. This data is usually a Python dictionary or similar data structure.
[0151]
[0152] 4. Rendering Templates
[0153] Use Jinja2's Template class to load the template file and use the render method to pass data to the template for rendering.
[0154]
[0155] After completing the dynamic generation and rendering of the configuration template, you can use standardized configuration management protocols such as NETCONF (Network Configuration Protocol), YANG (Yet Another Next Generation Modeling language for Network Configuration Protocol), or TR-069 (Remote Device Management Protocol) to send the configuration template to the IoT communication device. The specific process will vary depending on the selected protocol. The following is an example and detailed description of the basic configuration sending process for these three protocols:
[0156] 1. Use NETCONF protocol to deliver configuration
[0157] NETCONF is an XML-based network configuration protocol that allows network administrators to install, manage, and configure network devices over a secure network connection.
[0158] Example process:
[0159] Establish a NETCONF session:
[0160] The client (configuration management system) establishes a TLS / SSH encrypted session with the device.
[0161] The client sends a HELLO message, and the device replies with a HELLO message to confirm the session parameters.
[0162] Sending RPC request:
[0163] The client writes an RPC (remote procedure call) request in XML format according to the YANG data model. The request contains the configuration information that needs to be sent.
[0164] The RPC request is sent to the device.
[0165] Device processing request:
[0166] The device parses the configuration data in the RPC request.
[0167] The device applies the configuration changes.
[0168] Receive Response:
[0169] The device sends an RPC reply message to the client, confirming the result of the configuration change (success or failure).
[0170] End the session (optional):
[0171] If necessary, the client can send a session end message to close the NETCONF session.
[0172] 2. Use the YANG data model language (commonly used with NETCONF)
[0173] YANG is a data modeling language that is used to define the data structure of NETCONF operations. The YANG model describes the configuration data, status data, and operations on the device.
[0174] Use of YANG model:
[0175] Define the model: Use the YANG language to define the model of the device configuration and status data.
[0176] Generate code: Generate client and server code frameworks based on the YANG model to simplify the processing of NETCONF RPC requests and responses.
[0177] Configuration delivery: The configuration is delivered by sending RPC requests based on the YANG model definition through the NETCONF session.
[0178] 3. Use TR-069 protocol to issue configuration
[0179] TR-069 (CWMP, CPE Wide Area Network Management Protocol) is a protocol defined by the DSL Forum for automatic configuration, fault management, and software management.
[0180] Example process:
[0181] Establishing a connection:
[0182] The client (ACS, automatic configuration server) and the device (CPE, customer premise equipment) establish an HTTPS or TLS encrypted session.
[0183] Send a configuration request:
[0184] The ACS sends a Get or Set parameter value request to the CPE. These parameter values are defined according to the TR-069 object model.
[0185] The request contains the configuration information that needs to be delivered.
[0186] Device processing request:
[0187] The CPE parses the request and updates its configuration based on the parameter values in the request.
[0188] The CPE replies with a confirmation message to the ACS, including the result of the configuration change.
[0189] Continuous monitoring:
[0190] The ACS can periodically send Inform message requests to request the CPE to report its status information.
[0191] CPE can actively send Inform messages to ACS to report configuration changes, fault events, etc.
[0192] Step 208, verifying the configuration template.
[0193] In the IoT communication equipment configuration management solution, the current status information of the communication equipment can be collected through mechanisms such as SNMP Trap and Syslog, and compared with the configuration template to verify whether the device configuration is effective.
[0194] In one example, step 208 may include the following sub-steps:
[0195] S81, obtaining current status information of the communication device;
[0196] S82, acquiring a target configuration template from a configuration template library according to a device type of the communication device;
[0197] S83, obtaining an expected state from a target configuration template;
[0198] S84, determining whether the current state information is consistent with the expected state;
[0199] S85: If they are consistent, it is determined that the configuration template has passed the effectiveness verification.
[0200] In the specific implementation, the current status information of the communication device is collected through mechanisms such as SNMP Trap and Syslog, and compared with the configuration template to verify whether the device configuration is effective. This can be achieved through the following process:
[0201] 1: Configure SNMP Trap and Syslog
[0202] SNMP Trap configuration: Configure the SNMP Trap function in IoT communication devices so that they can actively send Trap messages to the management system when the device status changes or specific events occur. These messages usually contain the device's IP address, event type, timestamp, and related status information.
[0203] Syslog configuration: Similarly, configure the Syslog function in the IoT communication device to enable it to send log messages to the management system periodically or according to specific conditions. These log messages record the device's operating status, errors, warnings, and other information.
[0204] 2. Management system receives and parses Trap / Syslog messages
[0205] Receiving messages: The management system receives Trap and Syslog messages from IoT communication devices by listening to the specified UDP port (usually 162 for SNMP Trap and 514 for Syslog).
[0206] Parsing messages: The management system uses corresponding parsers (such as SNMP parser, Syslog parser) to parse the received messages and extract useful information, such as device IP address, event type, timestamp, status information, etc.
[0207] 3. Compare and verify with the configuration template
[0208] Get configuration template: The management system retrieves the corresponding configuration template from the configuration template library based on the device's IP address or device type and other information.
[0209] Comparison verification: Compare the parsed device status information with the expected status in the configuration template. This can be achieved by writing scripts or using existing configuration management tools. The content of the comparison may include network parameters, security settings, business parameters, etc.
[0210] Result judgment: Based on the comparison results, determine whether the device configuration is effective. If the device status is consistent with the expected status in the configuration template, the configuration is considered to be effective; otherwise, it is considered that there is a problem with the configuration or it is not effective.
[0211] 4. Processing verification results
[0212] Record results: Record the verification results in the management system's log or database for subsequent analysis and query.
[0213] Send notification: If the verification result shows that the configuration is not effective or there is a problem, the management system can send a notification to the administrator via email, SMS, etc. to remind him to pay attention to and deal with the relevant problems.
[0214] Automatic repair: Depending on the nature and severity of the problem, the management system can attempt to automatically repair the configuration problem. For example, if a device's network parameter configuration is found to be incorrect, the management system can automatically send the correct configuration template to the device.
[0215] Example:
[0216] Assume that there is an IoT communication device with an IP address of 192.168.1.100. The configuration template requires that a network parameter of the device (such as MTU) be set to 1500.
[0217] After a configuration change occurs on the device, a message is sent to the management system through SNMP Trap, indicating that the MTU has been changed to 1500.
[0218] After receiving the Trap message, the management system parses the device's IP address (192.168.1.100) and MTU value (1500).
[0219] The management system retrieves the corresponding configuration template from the configuration template library based on the IP address of the device and extracts the expected value of MTU (also 1500).
[0220] The management system compares the parsed MTU value (1500) with the expected value (1500) in the configuration template and finds that the two are consistent.
[0221] The management system records the verification result as "Configuration has taken effect" and may notify the administrator via email that the device configuration has been successfully updated.
[0222] If the comparison results are inconsistent, the management system will record the verification result as "configuration not effective" or "configuration error" and send a corresponding notification to the administrator.
[0223] Step 209, when the verification is passed, obtaining the device operation data and user feedback of the configured communication device in real time;
[0224] Step 210: Optimize the configuration of the communication device according to the device operation data and user feedback.
[0225] In the embodiment of the present invention, the configuration template may be optimized by collecting device operation data and user feedback, which may specifically include the following sub-steps:
[0226] S101, obtaining performance bottlenecks, failure modes and user usage habits of communication equipment from equipment operation data;
[0227] S102, obtaining user configuration satisfaction and potential needs from user feedback;
[0228] S103, optimizing the configuration template of the communication device according to performance bottlenecks, failure modes, user usage habits, configuration satisfaction and potential needs.
[0229] In the specific implementation, first, monitoring tools (such as Zabbix, Prometheus, etc.) can be used to monitor the operating status of IoT communication devices in real time and collect device operation data. Then, the collected device operation data is analyzed to understand the performance bottlenecks, failure modes, and user usage habits of the device. And based on user feedback, understand the user's satisfaction and potential needs for device configuration. Then, according to the results of data analysis, the configuration template is optimized. This includes adjusting network parameters, optimizing security settings, and improving business parameters. The optimization goal is to improve the operating efficiency of communication equipment, reduce failure rates, and improve user experience. Then, after optimizing the configuration template, a test environment is built to simulate the actual production environment to test the new configuration to ensure that the new configuration does not affect the normal operation of the communication equipment. If the test verification passes, the new configuration template is submitted through Git and deployed to the actual IoT communication device.
[0230] To facilitate understanding, the following example illustrates the optimization of the configuration template:
[0231] Suppose there is an IoT communication device whose configuration template contains some network parameters and security settings. Through the monitoring tool, the operation data of the communication device is collected, and it is found that the device has a high network latency problem during certain periods of time. At the same time, user feedback also mentioned some problems related to unstable device connection.
[0232] 1. Data Analysis
[0233] After analyzing the running data, it was found that the network delay problem may be related to the MTU (maximum transmission unit) setting of the device. The current MTU setting may be too large, resulting in the splitting and reassembly of data packets during transmission, thereby increasing transmission delay.
[0234] 2. Configuration optimization
[0235] Based on the results of data analysis, the MTU setting in the configuration template can be optimized. The MTU value is adjusted from the original 1500 bytes to 1400 bytes to reduce the splitting and reassembly of data packets and reduce transmission delay.
[0236] 3. Test verification
[0237] After the optimized configuration template is deployed to the test environment, it is fully tested and verified. By simulating the actual production environment, it is found that the network latency problem of the device has been significantly improved, and user feedback also shows that the connection stability of the device has been improved.
[0238] 4. Deployment Updates
[0239] After the test verification is passed, the optimized configuration template is submitted through Git and deployed to the actual IoT communication device.
[0240] Furthermore, during the deployment process, you can also use Git's version control function to track and manage the update records of the configuration template. This facilitates subsequent maintenance and rollback operations. The process is as follows:
[0241] 1. Initialization of configuration template
[0242] Use Git to create a new repository for storing and managing configuration templates for IoT communication devices.
[0243] Add the initial version of the configuration template file to the Git repository and submit an initial commit.
[0244] 2. Modification of configuration template
[0245] When the configuration template needs to be modified, the developer checks out the latest template file from the Git repository.
[0246] Use a text editor or dedicated configuration management tool to modify the template.
[0247] After the modification is completed, add the modified template file to the staging area and commit it to the Git repository.
[0248] 3. Configuration template version history
[0249] Git records the information of each submission, including the submitter, submission time, submission instructions, and modified content.
[0250] By viewing the Git commit history, you can track the change records of the configuration template and understand the content and purpose of each modification.
[0251] 4. Rollback of configuration template
[0252] If you find a problem in a version of the configuration template, you can use Git's rollback feature to roll back the template to a previous stable version.
[0253] The rollback operation can be achieved by checking out the specified version of the template file, or by creating a new branch to save the current problematic version and rolling back to the previous stable version on the trunk branch.
[0254] The present invention obtains basic information of communication equipment by selecting supported communication protocols for communication equipment to achieve interconnection between different equipment, then generates configuration templates according to equipment types and business requirements to make template configuration more flexible, and finally improves the accuracy of template configuration by dynamically optimizing the configuration templates.
[0255] See also Figure 3 , Figure 3 A structural block diagram of an Internet of Things communication device configuration management device provided by an embodiment of the present invention.
[0256] An embodiment of the present invention provides an IoT communication device configuration management device, comprising:
[0257] The communication protocol acquisition module 301 is used to acquire the communication protocol supported by the communication device in the Internet of Things;
[0258] The basic information collection module 302 is used to communicate with the communication device through the communication protocol and collect the basic information of the communication device;
[0259] The device type and service requirement acquisition module 303 is used to acquire the device type and service requirement of the communication device;
[0260] Configuration template generation module 304, used to generate a configuration template according to device type, business requirements and basic information;
[0261] The device configuration module 305 is used to send the configuration template to the corresponding communication device for device configuration;
[0262] The validation module 306 is used to validate the configuration template.
[0263] The device operation data and user feedback acquisition module 307 is used to acquire the device operation data and user feedback of the configured communication device in real time when the verification is passed;
[0264] The optimization module 308 is used to optimize the configuration of the communication device according to the device operation data and user feedback.
[0265] In the embodiment of the present invention, the configuration template generation module 304 includes:
[0266] The template structure determination submodule is used to determine the template structure according to the device type and business requirements;
[0267] The configuration information acquisition submodule is used to obtain configuration information according to the template structure;
[0268] The configuration template generation submodule is used to fill the template structure with basic information and configuration information to generate a configuration template.
[0269] In the embodiment of the present invention, the device configuration module 305 includes:
[0270] The device configuration submodule is used to render the configuration template using the template engine, and send the rendered configuration template to the communication device through a preset standardized configuration management protocol.
[0271] In the embodiment of the present invention, the validation module 306 includes:
[0272] The current status information acquisition submodule is used to acquire the current status information of the communication device;
[0273] The target configuration template acquisition submodule is used to acquire the target configuration template from the configuration template library according to the device type of the communication device;
[0274] The expected state acquisition submodule is used to obtain the expected state from the target configuration template;
[0275] The judgment submodule is used to judge whether the current state information is consistent with the expected state;
[0276] The determination submodule is used to determine if the configuration template has passed the effectiveness verification if they are consistent.
[0277] In the embodiment of the present invention, the optimization module 308 includes:
[0278] The first acquisition submodule is used to obtain the performance bottleneck, failure mode and user usage habits of the communication device from the device operation data;
[0279] The second acquisition submodule is used to obtain the user's configuration satisfaction and potential needs from user feedback;
[0280] The optimization submodule is used to optimize the configuration template of the communication equipment according to performance bottlenecks, failure modes, user usage habits, configuration satisfaction and potential needs.
[0281] An embodiment of the present invention further provides an electronic device, the device comprising a processor and a memory:
[0282] The memory is used to store the program code and transmit the program code to the processor;
[0283] The processor is used to execute the Internet of Things communication device configuration management method of an embodiment of the present invention according to the instructions in the program code.
[0284] The embodiment of the present invention further provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute the Internet of Things communication device configuration management method of the embodiment of the present invention.
[0285] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0286] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0287] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0288] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0289] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0290] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.
[0291] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0292] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0293] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for configuration management of Internet of Things communication equipment, characterized in that: include: Obtain the communication protocols supported by communication devices in the Internet of Things; Communicate with the communication device through the communication protocol to collect basic information of the communication device; Acquire the device type and service requirements of the communication device; Generate a configuration template according to the device type, the business requirements and the basic information; Sending the configuration template to the corresponding communication device for device configuration; Performing validation on the configuration template; When the verification is passed, the device operation data and user feedback of the configured communication device are obtained in real time; The communication device is configured and optimized according to the device operation data and user feedback.
2. The method according to claim 1, characterized in that The step of generating a configuration template according to the device type, the business requirement and the basic information includes: Determine a template structure according to the device type and the business requirements; Acquiring configuration information according to the template structure; The basic information and the configuration information are used to fill the template structure to generate a configuration template.
3. The method according to claim 1, characterized in that: The step of sending the configuration template to the corresponding communication device for device configuration includes: The configuration template is rendered using a template engine, and the rendered configuration template is sent to the communication device through a preset standardized configuration management protocol.
4. The method according to claim 1, characterized in that: The step of verifying the validity of the configuration template includes: Acquiring current status information of the communication device; According to the device type of the communication device, obtaining a target configuration template from a configuration template library; Obtaining an expected state from the target configuration template; Determining whether the current state information is consistent with the expected state; If they are consistent, it is determined that the configuration template has passed the effectiveness verification.
5. The method according to claim 1, characterized in that The step of optimizing the configuration of the communication device according to the device operation data and user feedback includes: Obtaining the performance bottleneck, failure mode and user usage habits of the communication device from the device operation data; Obtaining user configuration satisfaction and potential needs from the user feedback; The configuration template of the communication device is optimized according to the performance bottleneck, the failure mode, the user usage habits, the configuration satisfaction and the potential needs.
6. A configuration management device for Internet of Things communication equipment, characterized in that: include: A communication protocol acquisition module is used to obtain the communication protocols supported by the communication devices in the Internet of Things; A basic information collection module, used to communicate with the communication device through the communication protocol and collect basic information of the communication device; A device type and service requirement acquisition module, used to acquire the device type and service requirement of the communication device; A configuration template generating module, used to generate a configuration template according to the device type, the service requirement and the basic information; A device configuration module, used to send the configuration template to the corresponding communication device for device configuration; A validation module, used to validate the configuration template; A device operation data and user feedback acquisition module, used to acquire device operation data and user feedback of the configured communication device in real time when the verification is passed; The optimization module is used to optimize the configuration of the communication device according to the device operation data and user feedback.
7. The device according to claim 6, characterized in that The configuration template generation module includes: A template structure determination submodule, used to determine a template structure according to the device type and the business requirements; A configuration information acquisition submodule, used to acquire configuration information according to the template structure; The configuration template generation submodule is used to fill the template structure with the basic information and the configuration information to generate a configuration template.
8. The device according to claim 6, characterized in that The device configuration module includes: The device configuration submodule is used to render the configuration template using a template engine, and send the rendered configuration template to the communication device through a preset standardized configuration management protocol.
9. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute the Internet of Things communication device configuration management method according to any one of claims 1-5 according to the instructions in the program code.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the Internet of Things communication device configuration management method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and equipment for verifying network equipment configuration in cloud network environment, and medium
CN113938378A
Equipment control method and device, electronic equipment and storage medium
CN115167157A
System and method for efficiently and dynamically configuring equipment parameters based on rule engine
CN117806683A
Configuration issuing method of SDN controller, equipment and medium
CN118449857A
Remotely managing and updating Internet of Things device configuration logic
US11747792B1