A network management method, device, medium and computer program product

By predicting the IP address conflict that may occur in the virtual local network, and optimizing and adjusting before predicted the conflict, the problem of passive response to the IP address conflict in existing technology has been solved, and the stability and reliability of the network are improved.

CN118890339BActive Publication Date: 2025-01-24INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411367239.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-24
Estimated Expiration
2044-09-29

AI Technical Summary

Technical Problem

The existing network management solution responds to the detection and resolution of IP address conflicts, which leads to a significant impact on network devices during IP address conflicts and makes it difficult to prevent conflicts.

Method used

By obtaining the historical IP address allocation data and the current network status of all network devices under all virtual local networks, use the decision tree algorithm or random forest algorithm predict whether there will be IP addresses that will be reused. Re -assign the IP address and adjust the network configuration.

Benefits of technology

The effective defense of IP address conflicts is achieved, which improves the stability and reliability of the network, and avoids the problem of unstable network connection due to conflict.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890339B_ABST
    Figure CN118890339B_ABST
Patent Text Reader

Abstract

The present invention discloses a network management method, device, medium and computer program product, which relates to the field of communication technology, including: obtaining the historical IP address allocation data and current network status of all network devices under each virtual local area network; predicting whether there are IP addresses that will be repeatedly allocated according to the historical IP address allocation data and the current network status; if it is predicted that there are IP addresses that will be repeatedly allocated, reallocating IP addresses to target network devices and adjusting network configuration; the target network devices are network devices that have been allocated IP addresses that are predicted to be repeatedly allocated. The method predicts whether an IP address conflict will occur, takes optimization measures before an IP address conflict occurs, realizes effective defense against IP address conflicts, and can improve the stability and reliability of the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a network management method, device, medium and computer program product. Background Art

[0002] An IP (Internet Protocol Address) address conflict refers to a network connection conflict caused when two or more network devices are assigned the same IP address on the same network. Each network device must have a unique IP address in the network to communicate normally. When an IP address conflict occurs, the network device may not be able to connect to the network, resulting in an unstable network connection state. The current network management solution is a passive response to the detection and resolution of IP address conflicts, that is, after an IP address conflict occurs, the IP address conflict is resolved. Although resolving the IP address conflict after the IP address conflict occurs can restore the network connection of the network device with the IP address conflict, it will undoubtedly have a greater impact on the network device with the IP address conflict during the IP address conflict. Therefore, how to solve the above technical defects has become a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0003] The purpose of the present invention is to provide a network management method, device, medium and computer program product to predict whether an IP address conflict will occur, take optimization measures before the IP address conflict occurs, achieve effective defense against IP address conflicts, and improve the stability and reliability of the network.

[0004] In order to solve the above technical problems, the present invention provides a network management method, comprising:

[0005] Obtain the historical IP address allocation data and current network status of all network devices under each virtual local area network;

[0006] Predicting whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status;

[0007] If it is predicted that there is an IP address that will be repeatedly allocated, the IP address is reallocated to the target network device and the network configuration is adjusted; the target network device is a network device to which the IP address that is predicted to be repeatedly allocated has been allocated.

[0008] In some embodiments, predicting whether there are IP addresses to be repeatedly allocated based on the historical IP address allocation data and the current network status includes:

[0009] According to the historical IP address allocation data and the current network status, a decision tree algorithm or a random forest algorithm is used to predict whether there are IP addresses that will be repeatedly allocated.

[0010] In some embodiments, each of the virtual local area networks is configured with a corresponding subnet mask and a default gateway, and each of the virtual local area networks is configured with a corresponding virtual routing forwarding instance, the virtual routing forwarding instance is assigned corresponding routing entries and ports, and each of the virtual local area networks is configured with a corresponding IP address pool.

[0011] In some embodiments, it also includes:

[0012] Detect whether there is an IP address conflict in the network;

[0013] If there is an IP address conflict in the network, an IP address is reassigned to the network device with the IP address conflict according to the IP address pool corresponding to the virtual local area network to which the network device with the IP address conflict belongs.

[0014] In some embodiments, when an IP address conflict is detected in the network, an IP address is reassigned to the network device with the IP address conflict, and the historical IP address allocation data and the current network status of all network devices under each virtual local area network are obtained, and based on the historical IP address allocation data and the current network status, it is predicted whether there are IP addresses that will be allocated repeatedly.

[0015] In some embodiments, it also includes:

[0016] Dividing the network into a plurality of said virtual local area networks;

[0017] A corresponding subnet mask and a default gateway are configured for each of the virtual local area networks.

[0018] In some embodiments, it also includes:

[0019] Configuring a corresponding virtual routing forwarding instance for each virtual local area network;

[0020] Corresponding routing entries and ports are allocated to the virtual routing forwarding instance.

[0021] In some embodiments, it also includes:

[0022] A corresponding IP address pool is set for each virtual local area network; different virtual local area networks have different IP address pools.

[0023] In some embodiments, it also includes:

[0024] If an IP address conflict is detected in the network, information about the detected duplicated IP addresses and information about the IP addresses re-allocated to the network devices with the IP address conflict are recorded.

[0025] In some embodiments, it also includes:

[0026] Generate an alarm report; the alarm report includes information about repeatedly allocated IP addresses, information about IP addresses re-allocated to network devices with IP address conflicts, predicted IP addresses to be repeatedly allocated, and the implemented network adjustment strategy.

[0027] In some embodiments, it also includes:

[0028] The alarm report is sent to a network management personnel.

[0029] In some embodiments, sending the alarm report to a network management personnel includes:

[0030] The alarm report is sent to the network administrator via email and / or text message.

[0031] In order to solve the above technical problems, the present invention further provides a network management device, comprising:

[0032] The acquisition module is used to obtain the historical IP address allocation data and current network status of all network devices under each virtual local area network;

[0033] A prediction module, used for predicting whether there are IP addresses to be repeatedly allocated based on the historical IP address allocation data and the current network status;

[0034] The adjustment module is used to reallocate IP addresses to target network devices and adjust network configuration if it is predicted that there are IP addresses that will be repeatedly allocated; the target network device is a network device that has been allocated IP addresses that are predicted to be repeatedly allocated.

[0035] In order to solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above network management method when executed by a processor.

[0036] In order to solve the above technical problems, the present invention further provides a network management device, comprising:

[0037] Memory for storing computer programs;

[0038] The processor is used to implement the steps of the network management method as described above when executing the computer program.

[0039] In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the network management method described above are implemented.

[0040] The network management method provided by the present invention includes: obtaining the historical IP address allocation data and the current network status of all network devices under each virtual local area network; predicting whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status; if it is predicted that there are IP addresses that will be repeatedly allocated, reallocating the IP address to the target network device and adjusting the network configuration; the target network device is a network device that has been allocated the IP address that is predicted to be repeatedly allocated.

[0041] It can be seen that the network management method provided by the present invention predicts whether there are IP addresses that will be repeatedly allocated, that is, predicts whether an IP address conflict will occur, based on the historical IP address allocation data of the network device and the current network status. When it is predicted that an IP address conflict will occur, the IP address is reallocated to the target network device, and the network configuration is adjusted; wherein the target network device is a network device that has been allocated an IP address that is predicted to be repeatedly allocated. In this way, optimization measures are taken before an IP address conflict occurs, and effective defense against IP address conflicts is achieved, which can improve the stability and reliability of the network.

[0042] The network management device, computer-readable storage medium and computer program product provided by the present invention all have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are 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 creative work.

[0044] Figure 1 A schematic diagram of a flow chart of a network management method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a network management device provided by an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a network management device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The core of the present invention is to provide a network management method, device, medium and computer program product to predict whether an IP address conflict will occur, take optimization measures before the IP address conflict occurs, achieve effective defense against IP address conflicts, and improve the stability and reliability of the network.

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 described embodiments are 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.

[0049] Please refer to Figure 1 , Figure 1 A schematic diagram of a network management method provided by an embodiment of the present invention, referring to Figure 1 As shown, the method includes:

[0050] S101: Obtain historical IP address allocation data and current network status of all network devices under each virtual local area network.

[0051] The database stores the historical IP address allocation data and current network status of all network devices under each virtual local area network. The historical IP address allocation data may include the ports on the switch, the virtual local area network to which the ports on the switch belong, and the correspondence table between the repeatedly allocated IP addresses and MAC (Media Access Control Address).

[0052] In some embodiments, each of the virtual local area networks is configured with a corresponding subnet mask and a default gateway, and each of the virtual local area networks is configured with a corresponding virtual routing forwarding instance, the virtual routing forwarding instance is allocated with corresponding routing entries and ports, and each of the virtual local area networks is configured with a corresponding IP address pool.

[0053] VLAN (Virtual Local Area Network) technology is a technology that divides a local area network into multiple subnets in a logical way. VLAN technology allows a physical local area network to be divided into multiple logical local area networks. Network devices between different VLANs cannot communicate directly, which can improve network security and management efficiency. Each VLAN is an independent broadcast domain, which can reduce the impact of broadcast storms and improve network performance. VLAN can be used to divide the network according to department, application or geographical location, making network management more flexible and convenient. Users or devices can change the logical network they belong to through VLAN configuration without changing the physical connection, which can improve the mobility and scalability of the network.

[0054] VRF (Virtual Routing and Forwarding) is a technology that allows multiple instances of routing tables to coexist in the same router at the same time. One or more logical or physical ports may have a VRF, and these VRFs do not share routes, so packets are only forwarded between ports on the same VRF. Because virtual routing forwarding instances are independent, they can use the same or overlapping IP addresses without conflicting with each other, which can improve network functionality.

[0055] This embodiment uses VLAN technology and VRF technology to divide the network into several virtual local area networks, each of which is configured with a corresponding subnet mask and default gateway, and each of which is configured with a corresponding virtual routing forwarding instance, and the virtual routing forwarding instance is assigned with corresponding routing entries and ports, and each of which is configured with a corresponding IP address pool. This ensures that IP addresses between different VLANs are independently allocated. At the same time, VRF is used to manage different routing tables, which realizes the logical isolation of the network, prevents illegal access between different network areas, and enhances the security of the network.

[0056] S102: Predict whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status.

[0057] Based on the acquisition of historical IP address allocation data and the current network status, the historical IP address allocation data and the current network status are analyzed and processed to predict whether there are IP addresses that will be allocated repeatedly, that is, whether IP address conflicts may occur.

[0058] In some embodiments, predicting whether there are IP addresses to be repeatedly allocated based on the historical IP address allocation data and the current network status includes:

[0059] According to the historical IP address allocation data and the current network status, a decision tree algorithm or a random forest algorithm is used to predict whether there are IP addresses that will be repeatedly allocated.

[0060] This embodiment predicts whether there are IP addresses that will be repeatedly assigned based on a decision tree algorithm or a random forest algorithm. A prediction model can be constructed based on a decision tree algorithm. The prediction model constructed based on the decision tree algorithm analyzes features that are more likely to lead to repeated assignment of IP addresses (for example, the number of IP address assignments, MAC changes, VLAN numbers, etc.), and predicts whether a certain IP address will be assigned to a different network device again. By constructing a decision tree, network configurations that are prone to IP address conflicts can be identified. The random forest algorithm integrates multiple decision trees. A prediction model can be constructed based on a random forest algorithm. The prediction model constructed based on the random forest algorithm analyzes the frequency of IP address usage, historical IP address conflicts, VLAN configurations, VRF configurations, etc. to predict possible future IP address conflicts.

[0061] S103: If it is predicted that there is an IP address that will be repeatedly allocated, the IP address is reallocated to the target network device and the network configuration is adjusted; the target network device is a network device to which the IP address that is predicted to be repeatedly allocated has been allocated.

[0062] If it is predicted that there is an IP address that will be repeatedly allocated, then other unused IP addresses are allocated to the network device that has been allocated the IP address, and the network configuration is adjusted, including the configuration of the virtual local area network, the configuration of the virtual routing forwarding instance, etc., to avoid IP address conflicts. Among them, adjusting the configuration of the virtual local area network may be adjusting the IP address pool corresponding to the virtual local area network. Adjusting the configuration of the virtual routing forwarding instance may be adjusting the port corresponding to the virtual routing forwarding instance. If it is predicted that no IP address conflict will occur, no operation can be performed to maintain the current IP address allocation and network configuration.

[0063] In some embodiments, it also includes:

[0064] Detect whether there is an IP address conflict in the network;

[0065] If there is an IP address conflict in the network, an IP address is reassigned to the network device with the IP address conflict according to the IP address pool corresponding to the virtual local area network to which the network device with the IP address conflict belongs.

[0066] You can use ARP (Address Resolution Protocol) and network scanning tools (such as nmap, arp-scan) to regularly scan IP addresses in the network to identify duplicate IP addresses. When an IP address conflict is detected in the network, re-allocate IP addresses to the network devices with IP address conflicts based on the IP address pool corresponding to the virtual local area network to which the network devices with IP address conflicts belong, so that there is no IP address conflict.

[0067] Use ARP and network scanning tools to detect IP address conflicts in the network and automatically reallocate IP addresses to resolve IP address conflicts, ensuring that network devices obtain unique IP addresses, and avoiding manual intervention and reducing human errors.

[0068] Obtaining the historical IP address allocation data and the current network status of all network devices under each virtual local area network, and predicting whether there are IP addresses that will be repeatedly allocated based on this, can be performed periodically, or obtaining the historical IP address allocation data and the current network status of all network devices under each virtual local area network under the triggering of a certain event, and predicting whether there are IP addresses that will be repeatedly allocated based on this.

[0069] In some embodiments, when an IP address conflict is detected in the network, an IP address is reassigned to the network device with the IP address conflict, and the historical IP address allocation data and the current network status of all network devices under each virtual local area network are obtained, and based on the historical IP address allocation data and the current network status, it is predicted whether there are IP addresses that will be allocated repeatedly.

[0070] In this embodiment, when an IP address conflict is detected in the network, not only will the IP address be reassigned to the network device with the IP address conflict, but also the historical IP address allocation data of all network devices under each virtual local area network and the current network status will be used to predict whether an IP address conflict will occur in the future. Then, when it is predicted that an IP address conflict will occur in the future, optimization and adjustment will be automatically performed. This can effectively improve the automation and intelligence of network management and ensure the reliability and security of the network.

[0071] In some embodiments, it also includes:

[0072] Dividing the network into a plurality of said virtual local area networks;

[0073] A corresponding subnet mask and a default gateway are configured for each of the virtual local area networks.

[0074] This embodiment is intended to perform virtual local area network division and configuration. The VLAN function of the switch can be used to divide the network into multiple virtual local area networks according to different departments, uses, security requirements, etc. For example, according to the department, the network is divided into three virtual local area networks, the virtual local area network allocated to the sales department is VLAN10, the virtual local area network allocated to the R&D department is VLAN20, and the virtual local area network allocated to the finance department is VLAN30. Configure the corresponding subnet mask and default gateway for each virtual local area network. For example, VLAN10 uses subnet 192.168.10.0 / 24, and the default gateway is 192.168.10.1. VLAN20 uses subnet 192.168.20.0 / 24, and the default gateway is 192.168.20.1.

[0075] In some embodiments, it also includes:

[0076] Configuring a corresponding virtual routing forwarding instance for each virtual local area network;

[0077] Corresponding routing entries and ports are allocated to the virtual routing forwarding instance.

[0078] Use VRF instances, i.e. virtual routing and forwarding instances, to configure independent routing tables for each virtual local area network to achieve network isolation. For example, configure VRF instance VRF10 for VLAN10 and VRF instance VRF20 for VLAN20. Configure different VRF instances on the router and assign corresponding routing entries and ports to each VRF instance. For example, assign port GigabitEthernet0 / 1 to VRF10 and port GigabitEthernet0 / 2 to VRF20.

[0079] In some embodiments, it also includes:

[0080] A corresponding IP address pool is set for each virtual local area network; different virtual local area networks have different IP address pools.

[0081] This embodiment is intended to configure a DHCP (Dynamic Host Configuration Protocol) server. The DHCP server is configured to set a separate IP address pool for each virtual local area network. For example, the IP address pool set for VLAN10 is 192.168.10.2-192.168.10.254, and the IP address pool set for VLAN20 is 192.168.20.

[0082] In some embodiments, it also includes:

[0083] If an IP address conflict is detected in the network, information about the detected duplicated IP addresses and information about the IP addresses re-allocated to the network devices with the IP address conflict are recorded.

[0084] The log system records the information of the detected duplicated IP addresses, which may include the IP address itself, the virtual local area network corresponding to the IP address pool to which the IP address belongs, etc. In addition, the log system records the information of the IP address re-assigned to the network device with the IP address conflict, which may include the IP address itself, the virtual local area network corresponding to the IP address pool to which the IP address belongs, etc.

[0085] In some embodiments, it also includes:

[0086] Generate an alarm report; the alarm report includes information about duplicated IP addresses, information about reassigned IP addresses for network devices with IP address conflicts, network adjustment suggestions, and implemented network adjustment strategies.

[0087] The information of the IP address that is repeatedly allocated may include the IP address itself, the virtual local area network corresponding to the IP address pool to which the IP address belongs, etc. The information of the IP address that is re-allocated to the network device with the IP address conflict may include the IP address itself, the virtual local area network corresponding to the IP address pool to which the IP address belongs, etc. The network adjustment suggestion includes the predicted IP address that may be repeatedly allocated. The network adjustment strategy includes reallocating IP addresses and adjusting the configuration of virtual local area networks and virtual routing forwarding instances.

[0088] In some embodiments, it also includes:

[0089] The alarm report is sent to a network management personnel.

[0090] After the alarm report is generated, it is sent to the network administrator so that the network administrator can understand the network status in time and take further measures.

[0091] In some embodiments, sending the alarm report to a network administrator includes:

[0092] The alarm report is sent to the network administrator via email and / or text message.

[0093] After the alarm report is generated, it is sent to the network administrator via email and / or text message, so that the network administrator can understand the network situation in time and take further measures. For example, the SMTP (Simple Mail Transfer Protocol) protocol is used to send emails to send the alarm report to the network administrator. The SMS (Short Messaging Service) gateway is used to send text messages to send the alarm report to the network administrator.

[0094] In some embodiments, it also includes:

[0095] Count the probability of IP address conflicts under different network configurations;

[0096] The network configuration with the lowest probability of IP address conflict is selected as the optimal network configuration, so that when an IP address conflict is detected or predicted to occur, the network configuration is adjusted to the optimal network configuration.

[0097] A virtual local area network configuration, a virtual routing forwarding instance configuration, and a DHCP server configuration constitute a set of network configurations. The probability of IP address conflicts under different network configurations is counted, and the network configuration with the lowest probability of IP address conflicts is selected as the optimal network configuration. When an IP address conflict is detected or predicted to occur, the IP address is reassigned and the network configuration is adjusted to the optimal network configuration to reduce the probability of IP address conflicts and improve the reliability and security of the network.

[0098] In summary, the network management method provided by the present invention predicts whether there are IP addresses that will be repeatedly allocated, that is, predicts whether an IP address conflict will occur, based on the historical IP address allocation data of the network device and the current network status. When it is predicted that an IP address conflict will occur, the IP address is reallocated to the target network device, and the network configuration is adjusted; wherein the target network device is a network device that has been allocated an IP address that is predicted to be repeatedly allocated. In this way, optimization measures are taken before an IP address conflict occurs, and effective defense against IP address conflicts is achieved, which can improve the stability and reliability of the network.

[0099] The present invention also provides a network management device, and the device described below can be referred to in correspondence with the method described above. Figure 2 As shown, the device comprises:

[0100] The acquisition module 10 is used to acquire the historical IP address allocation data and current network status of all network devices under each virtual local area network;

[0101] A prediction module 20, configured to predict whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status;

[0102] The adjustment module 30 is used to reallocate IP addresses to target network devices and adjust network configuration if it is predicted that there are IP addresses that will be repeatedly allocated; the target network devices are network devices that have been allocated IP addresses that are predicted to be repeatedly allocated.

[0103] Based on the above embodiment, as a specific implementation, the prediction module 20 is specifically used for:

[0104] According to the historical IP address allocation data and the current network status, a decision tree algorithm or a random forest algorithm is used to predict whether there are IP addresses that will be repeatedly allocated.

[0105] Based on the above embodiments, as a specific implementation method, each of the virtual local area networks is configured with a corresponding subnet mask and a default gateway, and each of the virtual local area networks is configured with a corresponding virtual routing forwarding instance, the virtual routing forwarding instance is allocated with corresponding routing entries and ports, and each of the virtual local area networks is configured with a corresponding IP address pool.

[0106] Based on the above embodiment, as a specific implementation method, it also includes:

[0107] A detection module is used to detect whether there is an IP address conflict in the network;

[0108] The allocation module is used to reallocate IP addresses to network devices with IP address conflicts according to the IP address pool corresponding to the virtual local area network to which the network devices with IP address conflicts belong if there are IP address conflicts in the network.

[0109] Based on the above embodiments, as a specific implementation method, when an IP address conflict is detected in the network, the IP address is reassigned to the network device with the IP address conflict, and the historical IP address allocation data and the current network status of all network devices under each virtual local area network are obtained, and based on the historical IP address allocation data and the current network status, it is predicted whether there is an IP address that will be repeatedly allocated.

[0110] Based on the above embodiment, as a specific implementation method, it also includes:

[0111] A division module, used for dividing the network into a plurality of said virtual local area networks;

[0112] The first configuration module is used to configure a corresponding subnet mask and a default gateway for each virtual local area network.

[0113] Based on the above embodiment, as a specific implementation method, it also includes:

[0114] A second configuration module, used to configure a corresponding virtual routing forwarding instance for each virtual local area network;

[0115] The third configuration module is used to allocate corresponding routing entries and ports to the virtual routing forwarding instance.

[0116] Based on the above embodiment, as a specific implementation method, it also includes:

[0117] The fourth configuration module is used to set a corresponding IP address pool for each virtual local area network; different virtual local area networks have different IP address pools.

[0118] Based on the above embodiment, as a specific implementation method, it also includes:

[0119] The recording module is used to record the information of the detected repeatedly allocated IP addresses and the information of the IP addresses newly allocated to the network devices with the IP address conflicts if an IP address conflict is detected in the network.

[0120] Based on the above embodiment, as a specific implementation method, it also includes:

[0121] A generation module is used to generate an alarm report; the alarm report includes information on repeatedly allocated IP addresses, information on IP addresses re-allocated to network devices with IP address conflicts, predicted IP addresses to be repeatedly allocated and the implemented network adjustment strategy.

[0122] Based on the above embodiment, as a specific implementation method, it also includes:

[0123] The sending module is used to send the alarm report to the network management personnel.

[0124] Based on the above embodiment, as a specific implementation mode, the sending module is specifically used for:

[0125] The alarm report is sent to the network administrator via email and / or text message.

[0126] The network management device provided by the present invention predicts whether there is an IP address that will be repeatedly allocated based on the historical IP address allocation data of the network device and the current network status, that is, predicts whether an IP address conflict will occur. When it is predicted that an IP address conflict will occur, the IP address is reallocated to the target network device and the network configuration is adjusted; wherein the target network device is a network device that has been allocated an IP address that is predicted to be repeatedly allocated. In this way, optimization measures are taken before an IP address conflict occurs, and effective defense against IP address conflicts is achieved, which can improve the stability and reliability of the network.

[0127] The present invention also provides a network management device, referring to Figure 3 As shown, the device includes a memory 1 and a processor 2 .

[0128] Memory 1, used for storing computer programs;

[0129] Processor 2 is used to execute the computer program to implement the following steps:

[0130] Obtain the historical IP address allocation data and current network status of all network devices under each virtual local area network; predict whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status; if it is predicted that there are IP addresses that will be repeatedly allocated, reallocate IP addresses to target network devices and adjust network configuration; the target network devices are network devices that have been allocated IP addresses that are predicted to be repeatedly allocated.

[0131] For an introduction to the device provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated here.

[0132] In some embodiments, the memory 1 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.

[0133] In addition, the memory 1 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and processing hardware-based tasks.

[0134] The processor 2 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 2 may call a program stored in the memory 1.

[0135] The communication interface is used to connect to other devices or systems. Figure 3 The structure shown does not constitute a limitation on the network management device in the embodiment of the present invention. In actual applications, the network management device may include Figure 3 More or fewer components than shown, or combinations of certain components.

[0136] The network management device provided by the present invention predicts whether there is an IP address that will be repeatedly allocated, that is, predicts whether an IP address conflict will occur, based on the historical IP address allocation data of the network device and the current network status. When it is predicted that an IP address conflict will occur, the IP address is reallocated to the target network device, and the network configuration is adjusted; wherein the target network device is a network device that has been allocated an IP address that is predicted to be repeatedly allocated. In this way, optimization measures are taken before an IP address conflict occurs, and effective defense against IP address conflicts is achieved, which can improve the stability and reliability of the network.

[0137] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:

[0138] Obtain the historical IP address allocation data and current network status of all network devices under each virtual local area network; predict whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status; if it is predicted that there are IP addresses that will be repeatedly allocated, reallocate IP addresses to target network devices and adjust network configuration; the target network devices are network devices that have been allocated IP addresses that are predicted to be repeatedly allocated.

[0139] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0140] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not elaborate on it here.

[0141] The present invention also provides a computer program product, comprising a computer program / instruction, which implements the following steps when executed by a processor:

[0142] Obtain the historical IP address allocation data and current network status of all network devices under each virtual local area network; predict whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status; if it is predicted that there are IP addresses that will be repeatedly allocated, reallocate IP addresses to target network devices and adjust network configuration; the target network devices are network devices that have been allocated IP addresses that are predicted to be repeatedly allocated.

[0143] The computer program product provided by the present invention predicts whether there is an IP address that will be repeatedly allocated, that is, predicts whether an IP address conflict will occur, based on the historical IP address allocation data of the network device and the current network status. When it is predicted that an IP address conflict will occur, the IP address is reallocated to the target network device, and the network configuration is adjusted; wherein the target network device is a network device that has been allocated an IP address that is predicted to be repeatedly allocated. In this way, optimization measures are taken before an IP address conflict occurs, and effective defense against IP address conflicts is achieved, which can improve the stability and reliability of the network.

[0144] The various embodiments in the 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 referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0145] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0146] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0147] The network management method, device, medium and computer program product provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principle and implementation method of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A network management method, characterized in that: include: Obtain the historical IP address allocation data and current network status of all network devices under each virtual local area network; Predicting whether there are IP addresses that will be repeatedly allocated based on the historical IP address allocation data and the current network status; If it is predicted that there is an IP address that will be repeatedly allocated, the IP address is reallocated to the target network device and the network configuration is adjusted; the target network device is a network device that has been allocated the IP address that is predicted to be repeatedly allocated; a virtual local area network configuration, a virtual routing forwarding instance configuration and a DHCP server configuration constitute a set of network configurations; The probability of IP address conflict under different network configurations is counted; the network configuration with the lowest probability of IP address conflict is selected as the optimal network configuration, so that when it is predicted that an IP address conflict will occur, the network configuration is adjusted to the optimal network configuration.

2. The network management method according to claim 1, characterized in that: Predicting whether there are IP addresses to be repeatedly allocated according to the historical IP address allocation data and the current network status includes: According to the historical IP address allocation data and the current network status, a decision tree algorithm or a random forest algorithm is used to predict whether there are IP addresses that will be repeatedly allocated.

3. The network management method according to claim 1, characterized in that: Each of the virtual local area networks is configured with a corresponding subnet mask and a default gateway, and each of the virtual local area networks is configured with a corresponding virtual routing forwarding instance, the virtual routing forwarding instance is allocated with corresponding routing entries and ports, and each of the virtual local area networks is configured with a corresponding IP address pool.

4. The network management method according to claim 1, characterized in that: Also includes: Detect whether there is an IP address conflict in the network; If there is an IP address conflict in the network, an IP address is reassigned to the network device with the IP address conflict according to the IP address pool corresponding to the virtual local area network to which the network device with the IP address conflict belongs.

5. The network management method according to claim 4, characterized in that: When an IP address conflict is detected in the network, the IP address is reassigned to the network device with the IP address conflict, and the historical IP address allocation data and the current network status of all network devices under each virtual local area network are obtained. Based on the historical IP address allocation data and the current network status, it is predicted whether there are IP addresses that will be allocated repeatedly.

6. The network management method according to claim 1, characterized in that: Also includes: Dividing the network into a plurality of said virtual local area networks; A corresponding subnet mask and a default gateway are configured for each virtual local area network.

7. The network management method according to claim 1, characterized in that: Also includes: Configuring a corresponding virtual routing forwarding instance for each virtual local area network; Corresponding routing entries and ports are allocated to the virtual routing forwarding instance.

8. The network management method according to claim 1, characterized in that: Also includes: A corresponding IP address pool is set for each virtual local area network; different virtual local area networks have different IP address pools.

9. The network management method according to claim 4, characterized in that: Also includes: If an IP address conflict is detected in the network, information about the detected duplicated IP addresses and information about the IP addresses re-allocated to the network devices with the IP address conflict are recorded.

10. The network management method according to claim 9, characterized in that: Also includes: Generate an alarm report; the alarm report includes information about repeatedly allocated IP addresses, information about IP addresses re-allocated to network devices with IP address conflicts, predicted IP addresses to be repeatedly allocated, and the implemented network adjustment strategy.

11. The network management method according to claim 10, characterized in that: Also includes: The alarm report is sent to a network management personnel.

12. The network management method according to claim 11, characterized in that: Sending the alarm report to the network administrator includes: The alarm report is sent to the network administrator via email and / or text message.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the network management method according to any one of claims 1 to 12 are implemented.

14. A network management device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the network management method according to any one of claims 1 to 12 when executing the computer program.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network management method according to any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • IP address conflict pre-detection method and system, computer equipment and storage medium

    CN113746950A

  • Network address conflict processing method, device, equipment, system and medium

    CN117651034A