AI-based cluster network device configuration synchronization method and system
By combining AI-based large model parsing with a configuration rule engine, intelligent parsing and automatic correction of network device configurations are achieved, solving the problems of high error rates and conflicts in traditional configuration methods and improving the accuracy and reliability of network device configuration.
Patent Information
- Application Number
- CN202511267821.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2045-09-05
AI Technical Summary
Traditional network device configuration methods cannot dynamically adapt to changes in network topology, resulting in high configuration error rates and high maintenance costs. Furthermore, human error and configuration conflicts are prone to occur when configuring a large number of devices. Existing automation tools are difficult to cope with complex and ever-changing network environments and lack a global resource coordination mechanism, which affects network reliability.
It employs an AI-based large model to parse unstructured configuration instructions, enabling intelligent parsing of configuration content for clustered network devices, intelligent allocation of unique configurations, and automatic detection and correction of configuration conflicts. The pre-trained AI large model performs pattern matching or semantic analysis on configuration data packets to identify the functional semantics of configuration items, and combines this with a configuration rule engine for intelligent checking and error correction.
It improves the accuracy and efficiency of configuration information, automatically detects and corrects configuration conflicts, ensures the reasonable allocation of network resources, improves the efficiency and reliability of network configuration, and reduces labor and time costs.
Smart Images

Figure CN120935012B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of clustered network device configuration technology, and in particular to an AI-based method and system for synchronizing the configuration of clustered network devices. Background Technology
[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.
[0003] With the rapid development of cloud computing, edge computing and Internet of Things technologies, modern network infrastructure is showing a trend of large-scale clustering, with a surge in the number of network devices and a significant increase in heterogeneity.
[0004] Network device configuration management refers to the systematic, standardized, and full lifecycle management of configuration files for various devices in network infrastructure (such as routers, switches, firewalls, load balancers, etc.). This ensures the stability, security, and maintainability of network operations.
[0005] In some scenarios, it is necessary to configure a large number of network devices, such as: A number of monitoring devices need to be installed along the railway line, requiring a stable network connection. Therefore, a number of 4G routers need to be deployed along the railway route. Alternatively, Telnet needs to be disabled for 200 network devices, and login failure lockouts need to be implemented. Or, during a disaster recovery center switchover drill, to simulate off-site disaster recovery, the static routes, BGP policies, VRRP priorities, and NAT pools of 300 devices need to be switched from the primary center to the backup center, and then switched back in batches after the drill.
[0006] Traditional network device configuration methods mainly rely on manual operation or scripted tools, which cannot dynamically adapt to changes in network topology, resulting in high configuration error rates and a surge in maintenance costs. When faced with the centralized deployment of a large number of devices, multiple people are often required to operate, which can easily lead to human error and configuration conflicts. Furthermore, troubleshooting is difficult, configuration efficiency is low, and reliability is affected.
[0007] Existing automated configuration tools are mostly based on predefined rule bases, which are difficult to cope with complex and ever-changing network environments. When faced with parallel configuration of multiple devices in a distributed cluster, they lack a global resource coordination mechanism, which can easily lead to configuration conflicts such as IP address conflicts and routing policy overlays, affecting network reliability.
[0008] Meanwhile, changes to network device configurations often require a lengthy process of manual modification, device-by-device push, segmented testing, and full network implementation, resulting in high labor and time costs. Summary of the Invention
[0009] To address the aforementioned issues, this invention proposes an AI-based method and system for synchronizing the configuration of clustered network devices. This method is applicable to scenarios requiring the simultaneous configuration of a large number of network devices. It uses a large AI model to parse unstructured configuration instructions, enabling intelligent parsing of configuration content for clustered network devices, intelligent allocation of unique configurations, and automatic detection and correction of configuration conflicts.
[0010] In some implementations, the following technical solutions are adopted: An AI-based method for synchronizing the configuration of clustered network devices, comprising: Obtain basic information about all network devices in the network cluster; the basic information includes at least: MAC address, device model, firmware version, current IP address, and supported configuration types; Select one of the network devices as the master device and configure the master device with the desired basic network parameters; the basic network parameters are the parameters that all network devices need to be configured. Actively scan the current initial configuration of all devices in the network cluster at a preset period, and package all the obtained configuration information and the expected basic parameter configuration information of the master device into a configuration data packet in a set format; By using a pre-trained AI model, pattern matching or semantic analysis is performed on the name of each configuration segment in the configuration data package, as well as the name and value of the configuration items contained in each configuration segment. This extracts the configuration parameter structure required by each target device, the position of the configuration item in the entire configuration parameter structure, and the actual functional semantics of the configuration item. At the same time, the configuration type of each configuration item is identified. Based on the configuration rules, the configuration parameters of each target device are assigned values and stored in a structured manner in the configuration database. The system intelligently checks, corrects, and updates the configuration parameters in the configuration database, and synchronizes the parameter configuration for each target device based on the updated configuration data in the configuration database.
[0011] As a further solution, the current initial configuration of all devices in the network cluster is actively scanned at a preset period to obtain at least the following information: IP address, subnet mask, default gateway, DNS server, VPN settings, NTP configuration, routing table, and ACL rules.
[0012] As a further solution, the AI large model performs semantic analysis on the unstructured text in the acquired configuration data package based on its built-in configuration rule engine, specifically: Extract the value field of the configuration item and match it with the built-in regular expression library. If the match is successful, generate the corresponding configuration item matching result. If the match fails, the identifier, explanation and content corresponding to the configuration item are sent to the large language model for semantic understanding, and the standardized semantic label corresponding to the configuration item is output.
[0013] As a further solution, the configuration rule engine has a pre-built rule base for defining the function of each configuration item. Based on the identified configuration item matching results or semantic tags, the actual functional semantics of the configuration item are inferred from the rule base. Alternatively, the configuration rule engine can combine other configuration items to perform contextual reasoning to obtain the actual functional semantics of the current configuration item.
[0014] As a further solution, the AI large model identifies the configuration type of each configuration item based on its built-in configuration rule engine, specifically: Configuration items that must remain unique globally or in a specific context, otherwise will cause conflicts or failures, are identified as unique configurations. Configuration items that can be securely reused across multiple or all devices and represent a unified policy or standard are identified as generic configurations. Furthermore, specific configuration rules are defined for unique configurations and general configurations, respectively.
[0015] As a further solution, intelligent checks are performed on the configuration parameters in the configuration database, including: Multi-rule engine matching conflict check: This is used to check whether there are configuration items that have different constraints under different rule engines, or conflicts between rules that make it impossible to judge. Rule Engine Uncovered Items Check: Used to check for the existence of new configuration items or configuration items that are not constrained by rules in the rule engine; Low to medium confidence configuration item check: Used to check for configuration items with a confidence level lower than the preset value; If a corresponding configuration item is found, it will be submitted to a human for secondary confirmation.
[0016] As a further solution, it also includes: correcting configuration conflicts, insufficient network planning resources or incorrect allocation ranges, and contradictory configuration logic in the configuration database; specifically: If there are configuration conflicts, the AI big model will provide recommended repair values for the corresponding configuration items and automatically modify the configuration items based on the recommended repair values; If there are insufficient network planning resources or incorrect allocation range, the AI big model will automatically expand the resource pool or automatically adjust the allocation range. If there are contradictions in the configuration logic, the AI big model analyzes the contradictions and provides solutions based on the rule engine library. The resolved parameters are then reported to human judges, who decide whether to adopt the AI's solution.
[0017] As a further step, newly added configuration rules and configuration schemes that have been manually confirmed will be automatically synchronized to the configuration rule engine to continuously enhance the detection capabilities of the AI large model.
[0018] As a further solution, after all configuration data is updated, a dedicated final configuration dataset is generated for each target device. The configuration dataset is then pushed to the target devices in batches, in parallel, or sequentially according to a predetermined strategy through a secure channel. Upon receiving the configuration dataset, the target device parses it and compares it with the currently running configuration. Any configuration items that differ from the dataset are updated, and confirmation information is returned.
[0019] In other embodiments, an AI-based clustered network device configuration synchronization system is disclosed, comprising: The basic information acquisition module is configured to acquire basic information of all network devices in the network cluster; the basic information includes at least: MAC address, device model, firmware version, current IP address and supported configuration types; The master device configuration module is configured to: select one of the network devices as the master device, and configure the master device with the desired basic network parameters; the basic network parameters are parameters that need to be configured for all network devices; The configuration data collection module is configured to: actively scan the current initial configuration of all devices in the network cluster at a preset period, and package all the acquired configuration information and the expected basic parameter configuration information of the master device into a configuration data packet in a set format; The parameter generation module is configured to: use a pre-trained AI model to perform pattern matching or semantic analysis on the name of each configuration segment in the configuration data package, the name and value of the configuration items contained in each configuration segment, extract the configuration parameter structure required by each target device, the position of the configuration item in the entire configuration parameter structure, and the actual functional semantics of the configuration item; identify the configuration type of each configuration item; assign values to the configuration parameters of each target device based on configuration rules; and store them in a structured manner in the configuration database. The check and update module is configured to intelligently check, correct, and update the configuration parameters in the configuration database. The configuration distribution module is configured to synchronize parameter configurations for each target device based on the updated configuration data in the configuration database.
[0020] Compared with the prior art, the beneficial effects of the present invention are: (1) The present invention uses an AI big model to parse the configuration data packet in JSON format. The AI big model can extract configuration items based on keywords and contextual semantics, and can accurately identify the position of the configuration item in the entire configuration parameter structure and the actual functional semantics of the configuration item through semantic analysis, thereby avoiding misidentification of configuration items with duplicate or similar names but different actual functions or semantics, thus improving the accuracy of configuration information.
[0021] (2) The AI big model of the present invention can automatically configure the parameters of other target network devices based on the expected network parameter configuration of the master device, and combine the rules and constraints of the rule engine library; and can automatically check whether there are configuration conflicts or configuration errors in the configuration parameters, and automatically correct and update the parameters according to the automatically identified device configuration type.
[0022] (3) The AI-based cluster network device configuration synchronization method of the present invention, compared with the manual configuration or automatic configuration based on predefined rule base in the prior art, can accurately parse and classify various complex configuration information through semantic recognition when facing network device cluster configuration, and automatically complete the synchronization configuration of network parameters of all devices, which greatly improves the configuration efficiency; at the same time, it can automatically check configuration conflicts or errors, and provide recommended repair values, and automatically adjust configuration information, which can effectively deal with the conflict risk in multi-device environment, ensure the reasonable allocation of network resources, and improve the efficiency and reliability of network configuration.
[0023] Other features and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0024] Figure 1 This is a flowchart of the AI-based clustered network device configuration synchronization method in an embodiment of the present invention. Detailed Implementation
[0025] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0026] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0027] Example 1 In one or more embodiments, an AI-based clustered network device configuration synchronization method is disclosed, combining... Figure 1 Specifically, it includes the following processes: S101: Obtain basic information of registered network devices in the local area network; the basic information includes at least: MAC address, device model, firmware version, current IP address and supported configuration types.
[0028] The MAC address is a unique hardware identifier for a device, also known as a physical address; the MAC address allows a device to be accurately located among a group of devices.
[0029] Device model, firmware version, IP address, and supported configuration types can be used to check for differences in configuration items between these devices and whether the firmware needs to be upgraded to be consistent.
[0030] For example, by checking the supported configuration types, you can know in advance whether the device configuration has been overridden by the rule engine, and you can also understand whether there are configuration differences between devices. For example, for the same VPN, some devices support enabling ping testing directly on the VPN configuration page (Ping testing is a network tool used to test the time it takes for a data packet to travel from the source host to the target host on the network and back to the source host), while others require configuration on a dedicated ping testing page. This allows you to analyze in advance whether there are differences in firmware versions and whether a unified firmware is needed.
[0031] In this embodiment, the network device management center uses the mDNS (Multicast DNS) protocol or the ZeroConf (Zero Configuration Networking) protocol to automatically discover network devices in the local area network. The network devices will automatically register with the device management center and upload basic information. The device management center verifies and stores the basic information of the registered devices.
[0032] In this embodiment, all network devices registered to the device management center are treated as a network cluster.
[0033] S102: Select one of the network devices as the master device and configure the master device with the desired basic network parameters. The basic network parameters refer to the parameters that all network devices in the network cluster need to be configured, that is, the common parameters that all network devices need to be configured.
[0034] Specifically, in the device management center, the administrator designates or selects a network device as the "configuration template source" (i.e., the "master device").
[0035] After the device is automatically registered in step S101, it is still in the initial unconfigured state; basic parameter configuration is required for all devices in the entire network cluster.
[0036] In this embodiment, the first step is to determine the parameters that need to be configured for all devices, which will serve as the basic network parameters. Administrators can use the unified web interface or API provided by the device management center (not necessarily relying on a built-in page of a specific physical device) to complete the initial, desired basic network parameter configuration on the main device. Examples include: VPN (Virtual Private Network) parameters, LAN (Virtual Local Area Network) segment planning, NTP (Network Time Protocol) server addresses, and core firewall policies.
[0037] The AI big data model can automatically configure the basic parameters of other devices in the network cluster based on the basic network parameter configuration of the master device.
[0038] S103: Actively scan the current initial configuration of all registered devices in the network at a preset period, and package all the obtained configuration information and the expected parameter configuration information of the master device into a configuration data packet in a set format.
[0039] In this embodiment, the collector (a component of the device management center) is configured to actively scan all registered devices (including master devices and other target devices) in the network at a preset period (e.g., 5 seconds) to collect their current initial operating configuration.
[0040] The collected information includes, but is not limited to: basic information and fundamental network parameters, such as: MAC address, device model, firmware version, current IP address and supported configuration types; subnet mask, default gateway, DNS server, VPN (Virtual Private Network) parameters, LAN (Virtual Local Area Network) segment planning, NTP (Network Time Protocol) server address, routing table, ACL (Access Control List) rules, etc. The configuration collector packages all the configuration information collected from all devices into a configuration data packet in JSON format and sends it to the RESTful service interface of the configuration parsing module via the secure HTTPS protocol. The RESTful service interface is a network interface designed based on the REST (Representational State Transition) architectural style and is used to receive the configuration data packet sent by the configuration collector.
[0041] S104: Using a pre-trained AI model, pattern matching or semantic analysis is performed on the name of each configuration segment in the configuration data package, as well as the name and value of the configuration items contained in each configuration segment. This extracts the configuration parameter structure required by each target device, the position of the configuration item in the entire configuration parameter structure, and the actual functional semantics of the configuration item. At the same time, the configuration type of each configuration item is identified. Based on the configuration rules, the configuration parameters of each target device are assigned values and stored in a structured manner in the configuration database. In this embodiment, the configuration parsing module is configured with a pre-trained AI large model. The acquired configuration data package is input into the pre-trained AI large model, which has a built-in configuration rule engine. The configuration rule engine first needs to convert the raw, unstructured text (such as "ip-addr": "192.168.1.1") into facts that the model can understand. The specific conversion methods mainly include the following two: (1) Pattern matching (regular expression): The configuration rule engine extracts the value field of the configuration item and matches it with the built-in regular expression library. If the match is successful, the corresponding configuration item matching result is generated.
[0042] The regular expression library is used to identify values that conform to a specific format; for example, the configuration rule engine extracts the value field of a configuration item ("192.168.1.1") and matches it against a regular expression pattern. If the match is successful, a fact assertion is generated: config_item_102.type = ip_address (meaning that the type attribute of the configuration item named config_item_102 is set to ip_address).
[0043] This is a quick and direct way to determine the meaning, but for more complex situations, such as when the configuration item name is ambiguous ("description": "management gateway", "value": "10.1.1.254"), regular expressions cannot directly determine the meaning from the name; in this case, the second method can be used.
[0044] (2) Semantic analysis based on large language models: The configuration rule engine sends the name (identifier), description (explanation), and value (content) of the configuration item to the Large Language Model (LLM) for semantic understanding. Based on massive training data, the Large Language Model analyzes the context and outputs standardized semantic tags corresponding to the configuration item. For example: semantic_tags: ["ip-address", "gateway"] (meaning that the value of this data is an IP address, and this IP address is the address of the network gateway).
[0045] The above method can be used to extract the name, meaning, and current value of all configuration items required for each network device.
[0046] After extracting all the configuration parameters required for the operation of each target device, the contextual understanding capability of the AI model is used to determine the position of each configuration item in the entire configuration parameter structure, such as the configuration block to which the configuration item belongs and its parent node attributes.
[0047] The specific process is as follows: The configuration rule engine has a pre-built rule base for defining the function of each configuration item. Based on the identified configuration item matching results or semantic tags, the actual functional semantics of the configuration item are inferred from the rule base; for example: IF config_item.semantic_tags INCLUDES "ip-address" AND config_item.name INCLUDES "loopback" THEN config_item.function = "Device loopback address, used for management and routing protocol stability" (meaning if the semantic tag of the configuration item contains "ip-address" and the name of the configuration item contains "loopback", then the function description of the configuration item is set to "Device loopback address, used for management and routing protocol stability").
[0048] By matching these rules, the configuration rule engine can infer the specific function of the IP address.
[0049] Alternatively, the configuration rule engine can combine other configuration items to perform contextual reasoning to obtain the actual functional semantics of the current configuration item. For example, upon discovering an IP address 10.1.1.1 / 24, the configuration rule engine will immediately search the facts: Is there a routing protocol such as OSPF / BGP referencing this IP as a Router-ID? If so, its function is a route identifier. Or, is there an SNMP (Simple Network Management Protocol) or Syslog server address configured with this IP? If so, it is a management destination.
[0050] This approach accurately identifies the actual functional semantics of each configuration item, avoiding confusion between configuration items with the same or similar names but different functions, thus ensuring configuration accuracy. For example, if a device simultaneously runs multiple VPNs, each with an ipaddr (destination address) parameter, without inference based on context such as configuration blocks and parent nodes, the AI will only consider these IP addresses as duplicates.
[0051] After determining the actual functional semantics of the configuration item, the configuration rule engine will also perform syntax verification, semantic verification, and business logic verification on the identified configuration item based on the built-in verification rules.
[0052] Taking IP address configuration item validation as an example, during syntax validation, the configuration rule engine calls the built-in function `is_valid_ip()` to check if each octet of the IP address is between 0 and 255 (for example, 192.168.500.1 would be considered invalid). It also checks if it's a reserved IP (such as 0.0.0.0), a multicast address, etc. During semantic validation, the configuration rule engine performs a deeper check based on the context. For example, it determines if the IP address falls within the legal range for that device type (a public IP should not appear in the configuration of an internal host), whether it's in the same network segment as the IPs of other devices, and whether there are IP address conflicts. During business logic validation, validation is based on the enterprise's own operational policies. For example, rules might stipulate that the management IP of core network devices must be statically assigned and cannot be obtained via DHCP; the configuration rule engine will issue a warning accordingly.
[0053] In this embodiment, the AI large model can also perform preliminary classification of the configuration items that need to be configured, determining whether they are unique or general configurations, and output classification confidence scores. Specifically: (1) Configuration items that must remain unique in the global or specific context (such as the same subnet or VLAN) or otherwise will cause conflict or failure are classified as unique configurations. The judgment criteria are: based on the AI big model’s analysis of parameter semantics, configuration attributes and context from all currently collected device configurations, and combined with the explicit rules (such as “IPv4 addresses must be unique within the same IP subnet”) in the configuration rule engine library for comprehensive judgment.
[0054] (2) Configuration items that can be securely reused on multiple or all devices and represent a unified policy or standard (such as NTP server, DNS server, Syslog server, unified time zone) are classified as general configurations; the judgment basis is: semantic analysis clearly identifies them as shared services or device-independent settings.
[0055] In this embodiment, specific configuration rules are defined for configurations that are determined to be unique and general configurations. For example, the configuration item parameters of unique configurations are configured uniquely according to predetermined rules, while the configuration item parameters of general configurations can be configured the same as those of the main device, so as to facilitate the rapid configuration of parameters for other target devices.
[0056] Tables 1 and 2 provide examples of how to determine unique and general configurations, respectively.
[0057] Table 1. Examples of unique configuration determination
[0058] Table 2 Examples of General Configuration Judgments
[0059] Finally, the parsed configuration items (containing explicit unique or generic type markers), their associated device information, and parameter values are structured and stored in the configuration database.
[0060] In this embodiment, the large AI model can be the open-source DeepSeek-Coder-33B.
[0061] After the AI big data model parses the names, meanings, functional semantics, and configuration types of all configuration items required for each network device, it can automatically assign values to the configuration parameters of each target device based on the configuration information of the master device and in conjunction with a pre-defined configuration rule engine library.
[0062] S105: Perform intelligent checks, corrections, and updates on the configuration parameters in the configuration database, and synchronize parameter configurations for each target device based on the updated configuration data in the configuration database.
[0063] In this embodiment, the configuration rule engine performs intelligent checks on the configuration parameters in the configuration database. The main check items include: (1) Multi-rule engine matching conflict check: used to check whether there are configuration items with different constraints under different rule engines, or conflicts between rules that make it impossible to judge; The main check is whether the same configuration item is matched by multiple rule engines at the same time, and whether the judgment results (such as classification, strategy, operation instructions) given by these rule engines for the configuration item are inconsistent.
[0064] (2) Rule Engine Uncovered Item Check: This is used to check whether there are new configuration items or configuration items that have not been constrained by rules in the rule engine; iterates through all configuration items, and if the rule matching result set of a certain configuration item is empty (no rule engine hit), it is marked as an uncovered item.
[0065] (3) Check for low and medium confidence configuration items: This is used to check whether there are configuration items with confidence levels lower than the preset value. Each answer of the large model is based on confidence level. The confidence field output by the rule engine is directly extracted. If the maximum matching rule confidence level of a configuration item is <90% (or the average confidence level of all matching rules is <90%), it is marked as a low confidence item.
[0066] When a configuration item with low to medium confidence (<90%), conflicting interpretations by multiple rule engines, or not covered by the rule base is detected, an "awaiting confirmation" list is automatically generated, and a conflict report is produced.
[0067] The "Pending Confirmation" list includes the configuration name, the reason for the large model's judgment anomaly, and the error correction suggestions proposed by the large model.
[0068] The conflict report details the conflict item, the actual semantics of the configuration item, the devices involved, the root cause, the confidence score and the basis for judgment (e.g., 95% confidence of VLAN ID duplication: based on topology verification of 12 devices), and the suggested repair value (which can be the recommended value of the AI model or the value entered manually).
[0069] For conflict items in the conflict report, such as those matching multiple rule engines, items not covered by the rule engine, or configuration items with low to medium confidence, manual confirmation, reassignment, or addition of new configuration rules are required.
[0070] As a further implementation method, in addition to intelligently checking for conflicts in multi-rule engine matching, items not covered by the rule engine, and configuration items with low to medium confidence (<90%), the AI large model also checks for and automatically corrects configuration conflicts, insufficient network planning resources, incorrect allocation ranges, or contradictory configuration logic. Specifically: (1) The configuration rule engine performs logical reasoning based on the standardized semantic tags of different configuration items to determine whether there is a conflict between the configuration logic relationship between two configuration items; for example, the business intent (rule B: allow web access) contradicts the actual effective configuration (rule A: deny all).
[0071] If there are configuration conflicts, the AI big data model will provide recommended repair values for the corresponding configuration items and automatically modify the configuration items based on the recommended repair values.
[0072] (2) If there is insufficient network planning resources such as IP address and VLAN ID or the allocation range is incorrect, the AI big model will automatically expand the resource pool or automatically adjust the allocation range. For example, if a batch of 200 devices needs to be configured with an IP address, but there are only 150 DHCP address pools, the AI will determine that the address does not meet the current needs and will provide new suggestions, such as expanding the address pool or using static IP.
[0073] (3) The configuration rule engine also performs logical reasoning based on the standardized semantic tags of different configuration items to determine whether there is a contradiction in the configuration rules. For example, configuration 2 requires all routes (including 10.10.10.0 / 24) to be advertised; while configuration 1 requires blocking and prohibiting the advertisement of 10.10.10.0 / 24.
[0074] If there are contradictions in the configuration logic, the AI big model analyzes the contradictions and provides solutions based on the rule engine library. The resolved parameters are then reported to human judges, who decide whether to adopt the AI's solution.
[0075] For high-risk or other conflicts, a detailed conflict report is generated and proactively submitted to the administrator for confirmation.
[0076] All new or supplementary rules, or configurations that have been manually confirmed or reassigned, are automatically synchronized to the configuration rule engine to continuously enhance the detection capabilities of the AI large model; enabling the AI large model to have a closed-loop feedback system of "reasoning-learning-optimization"; both executing rules and continuously generating, pruning, and adjusting rules through machine learning.
[0077] In this embodiment, the configuration data in the configuration database is automatically updated based on the results of intelligent inspection and automatic error correction. After the update is completed, a unique final configuration dataset (usually in JSON format) is generated for each target device. Then, the configuration dataset is pushed in batches, in parallel or in policy order through a secure channel (such as HTTPS protocol) (to achieve consistency of final state, not strictly simultaneous effect). After receiving the configuration packet, the device's local configuration agent parses it and compares it with the currently running configuration, only applying the differences (incremental update). After the application is completed, an ACK (Acknowledgment) confirmation message (containing status code and error information) is sent to the management center.
[0078] For failure scenarios, such as network interruptions leading to the loss of configuration datasets or ACKs, device processing abnormalities, or local verification errors, the system executes a failure handling mechanism: if an ACK is not received or times out, a retry mechanism is initiated (e.g., exponential backoff, up to 3 times); when a failure ACK is clearly received, the system judges the error information: if it is a temporary error (e.g., device busy), it is added to the retry queue; if it is a very small number of configuration-related errors, only the problematic configuration items related to that device are rolled back (if partially applied), the device configuration is marked as abnormal, and the administrator is alerted (the failure of a single device does not affect other successfully configured devices); if it is a device malfunction, the device is marked as abnormal and an alert is issued; for devices that continuously fail, they are marked as "configuration synchronization failed," detailed logs are recorded, and the administrator is notified for manual intervention; the system will continue to attempt or wait for repairs to ensure that all device configurations eventually reach a consistent state.
[0079] The method in this embodiment employs an intelligent configuration parsing module, combined with natural language processing (NLP) and a rule engine, which can accurately parse and classify various complex configuration information, support intelligent identification and management of multiple configuration types, and improve the flexibility and complexity of configuration management.
[0080] Through the collaborative work of AI intelligent analysis and rule engine, the system achieves automatic detection and intelligent allocation of unique configurations, effectively avoiding configuration conflicts, ensuring the rational allocation of network resources, and improving the efficiency of network planning. Through intelligent conflict detection and repair mechanisms, it can effectively cope with conflict risks in multi-device environments, automatically adjust configuration information, and improve network stability and reliability.
[0081] Implementation Case: The method described in this embodiment was applied to a newly built smart factory of an electronics manufacturing company. This smart factory deployed more than 500 switches, firewalls, gateway devices, and industrial controllers at once, distributed across multiple workshops, warehouse areas, and a data center. The basic network parameters that these devices need to be configured with include IP addresses, gateways, VLAN IDs, VPN servers, NTP time sources, and firewall policies.
[0082] The specific implementation process is as follows: Upon powering on, all devices automatically broadcast their identity information to the local DNS server via the mDNS protocol. The basic information includes at least: MAC address, device model, firmware version, current IP address, and supported configuration types.
[0083] The main device first configures basic network parameters, including IP address, gateway, VLAN ID, VPN server, NTP time source, and firewall policy; the system synchronously collects the existing default configurations of each device.
[0084] The AI-powered big data model intelligently assigns non-conflicting IP addresses, gateways, and VLAN IDs to each device based on the factory's partitioning structure, subnetting, and service priorities. It also automatically detects the address pool in use to avoid duplication. During deployment, it was discovered that a few devices had fixed IP addresses upon initial startup, causing conflicts with other devices on the existing network. The system automatically detected and located the source of the conflict, issued automatic change commands, and updated the database records.
[0085] Unified configuration items (VPN server, time server, firewall policy) are pushed to all devices via MQTT to ensure unified policies and time baselines for all devices in the factory area.
[0086] The entire deployment cycle is shortened by more than 50% compared to existing configuration methods, avoiding manual configuration errors, ensuring high consistency and rapid controllability of configuration, and reducing labor costs and network risks.
[0087] Example 2 In one or more embodiments, an AI-based clustered network device configuration synchronization system is disclosed, comprising: The basic information acquisition module is configured to acquire basic information of all network devices in the network cluster; the basic information includes at least: MAC address, device model, firmware version, current IP address and supported configuration types; The master device configuration module is configured to: select one of the network devices as the master device, and configure the master device with the desired basic network parameters; the basic network parameters are parameters that need to be configured for all network devices; The configuration data collection module is configured to: actively scan the current initial configuration of all devices in the network cluster at a preset period, and package all the acquired configuration information and the expected basic parameter configuration information of the master device into a configuration data packet in a set format; The parameter generation module is configured to: use a pre-trained AI model to perform pattern matching or semantic analysis on the name of each configuration segment in the configuration data package, the name and value of the configuration items contained in each configuration segment, extract the configuration parameter structure required by each target device, the position of the configuration item in the entire configuration parameter structure, and the actual functional semantics of the configuration item; identify the configuration type of each configuration item; assign values to the configuration parameters of each target device based on configuration rules; and store them in a structured manner in the configuration database. The check and update module is configured to intelligently check, correct, and update the configuration parameters in the configuration database. The configuration distribution module is configured to synchronize parameter configurations for each target device based on the updated configuration data in the configuration database.
[0088] It should be noted that the specific implementation methods of the above modules are the same as those in Example 1, and will not be described in detail again.
[0089] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.
Claims
1. A method for synchronizing the configuration of clustered network devices based on AI, characterized in that, include: Obtain basic information about all network devices in the network cluster; The basic information includes at least: MAC address, device model, firmware version, current IP address, and supported configuration types; Select one of the network devices as the master device and configure the master device with the desired basic network parameters; the basic network parameters are the parameters that all network devices need to be configured. Actively scan the current initial configuration of all devices in the network cluster at a preset period, and package all the obtained configuration information and the expected basic parameter configuration information of the master device into a configuration data packet in a set format; By using a pre-trained AI model, pattern matching or semantic analysis is performed on the name of each configuration segment in the configuration data package, as well as the name and value of the configuration items contained in each configuration segment. This extracts the configuration parameter structure required by each target device, the position of the configuration item in the entire configuration parameter structure, and the actual functional semantics of the configuration item. At the same time, the configuration type of each configuration item is identified. Based on the configuration rules, the configuration parameters of each target device are assigned values and stored in a structured manner in the configuration database. The AI big data model identifies the configuration type of each configuration item based on its built-in configuration rule engine, specifically: Configuration items that must remain unique globally or in a specific context, otherwise will cause conflicts or failures, will be identified as unique configurations. Configuration items that can be securely reused across multiple or all devices and represent a unified policy or standard are identified as generic configurations. Furthermore, specific configuration rules are defined for unique configurations and general configurations respectively; The system intelligently checks, corrects, and updates the configuration parameters in the configuration database, and synchronizes the parameter configuration for each target device based on the updated configuration data in the configuration database.
2. The AI-based clustered network device configuration synchronization method as described in claim 1, characterized in that, Actively scan the current initial configuration of all devices in the network cluster at preset intervals, and obtain at least the following information: IP address, subnet mask, default gateway, DNS server, VPN settings, NTP configuration, routing table, and ACL rules.
3. The AI-based clustered network device configuration synchronization method as described in claim 1, characterized in that, The AI large model performs semantic analysis on the unstructured text in the acquired configuration data package based on its built-in configuration rule engine, specifically: Extract the value field of the configuration item and match it with the built-in regular expression library. If the match is successful, generate the corresponding configuration item matching result. If the match fails, the identifier, explanation and content corresponding to the configuration item are sent to the large language model for semantic understanding, and the standardized semantic label corresponding to the configuration item is output.
4. The AI-based clustered network device configuration synchronization method as described in claim 3, characterized in that, The configuration rule engine has a pre-built rule base for defining the function of each configuration item. Based on the matching results or semantic tags of the identified configuration items, the actual functional semantics of the configuration items are inferred from the rule base. Alternatively, the configuration rule engine can combine other configuration items to perform contextual reasoning to obtain the actual functional semantics of the current configuration item.
5. The AI-based clustered network device configuration synchronization method as described in claim 1, characterized in that, Perform intelligent checks on configuration parameters in the configuration database, including: Multi-rule engine matching conflict check: This is used to check whether there are configuration items that have different constraints under different rule engines, or conflicts between rules that make it impossible to judge. Rule Engine Uncovered Items Check: Used to check for the existence of new configuration items or configuration items that are not constrained by rules in the rule engine; Low to medium confidence configuration item check: Used to check for configuration items with a confidence level lower than the preset value; If a corresponding configuration item is found, it will be submitted to a human for secondary confirmation.
6. The AI-based clustered network device configuration synchronization method as described in claim 1, characterized in that, Also includes: Correct configuration conflicts, insufficient network planning resources or incorrect allocation range, and contradictory configuration logic in the configuration database; Specifically: If there are configuration conflicts, the AI big model will provide recommended repair values for the corresponding configuration items and automatically modify the configuration items based on the recommended repair values; If there are insufficient network planning resources or incorrect allocation range, the AI big model will automatically expand the resource pool or automatically adjust the allocation range. If there are contradictions in the configuration logic, the AI big model analyzes the contradictions and provides solutions based on the rule engine library. The resolved parameters are then reported to human judges, who decide whether to adopt the AI's solution.
7. A method for synchronizing the configuration of clustered network devices based on AI as described in any one of claims 1-6, characterized in that, Newly added configuration rules and configuration schemes that have been manually confirmed will be automatically synchronized to the configuration rule engine to continuously enhance the detection capabilities of the AI large model.
8. The AI-based clustered network device configuration synchronization method as described in claim 1, characterized in that, After all configuration data is updated, a unique final configuration dataset is generated for each target device. The configuration dataset is then pushed to the target devices in batches, in parallel, or sequentially according to a predetermined strategy through a secure channel. Upon receiving the configuration dataset, the target device parses it and compares it with the currently running configuration. Any configuration items that differ from the dataset are updated, and a confirmation message is returned.
9. An AI-based clustered network device configuration synchronization system employing the AI-based clustered network device configuration synchronization method as described in any one of claims 1-8, characterized in that, include: The basic information acquisition module is configured to acquire basic information about all network devices in the network cluster. The basic information includes at least: MAC address, device model, firmware version, current IP address, and supported configuration types; The master device configuration module is configured to: select one of the network devices as the master device, and configure the master device with the desired basic network parameters; the basic network parameters are parameters that need to be configured for all network devices; The configuration data collection module is configured to: actively scan the current initial configuration of all devices in the network cluster at a preset period, and package all the acquired configuration information and the expected basic parameter configuration information of the master device into a configuration data packet in a set format; The parameter generation module is configured to: use a pre-trained AI model to perform pattern matching or semantic analysis on the name of each configuration segment in the configuration data package, the name and value of the configuration items contained in each configuration segment, extract the configuration parameter structure required by each target device, the position of the configuration item in the entire configuration parameter structure, and the actual functional semantics of the configuration item; identify the configuration type of each configuration item; assign values to the configuration parameters of each target device based on configuration rules; and store them in a structured manner in the configuration database. The check and update module is configured to intelligently check, correct, and update the configuration parameters in the configuration database. The configuration distribution module is configured to synchronize parameter configurations for each target device based on the updated configuration data in the configuration database.
Citation Information
Patent Citations
Method and system for configuring three-layer network equipment ACL command based on AI technology and medium
CN120200829A
