IP address management method and system

By clustering network devices in large networks, building address pools and dynamically allocating IP addresses, the problems of low efficiency and frequent conflicts of IP address management are solved, and efficient utilization and intelligent recycling of IP address resources are achieved.

CN119520482APending Publication Date: 2025-02-25ZHEJIANG HUAYUN INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411683450.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently manage IP addresses in large networks, resulting in low IP address allocation efficiency, frequent conflicts and lack of intelligence in recycling strategies.

Method used

The corresponding address pool is built through network device clustering, and IP addresses are assigned to network devices in the area, and IP addresses are recycled from low to high according to priority when needed.

Benefits of technology

It improves the efficiency of IP address allocation, avoids IP address allocation conflicts, and ensures efficient utilization of IP address resources through intelligent recycling strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520482A_ABST
    Figure CN119520482A_ABST
Patent Text Reader

Abstract

The invention discloses an IP address management method and system, and the method comprises the following steps: S1, obtaining network equipment information, and obtaining a cluster according to the network equipment information through employing a clustering algorithm; s2, constructing address pools corresponding to the clusters, and allocating IP addresses in the address pools based on the clusters; s3, acquiring real-time network equipment information, and matching the corresponding address pool according to the real-time network equipment information and the corresponding condition of the clustering cluster to adjust the IP address distribution condition; and S4, constructing a recovery priority according to the use proportion of the IP addresses in each address pool, and executing IP address recovery based on the recovery priority. The method has the beneficial effects that the IP address allocation efficiency is improved, and IP address allocation conflicts are avoided. Meanwhile, when the IP addresses need to be recycled, the IP addresses are recycled from the address pool according to the priority from low to high, so that efficient utilization of IP address resources is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of IP address management, and in particular to an IP address management method and system. Background Art

[0002] As the scale of the network expands, the allocation and recovery of IP addresses becomes increasingly complex. The traditional manual allocation method is not only inefficient, but also prone to IP address conflicts and waste.

[0003] For large networks, which have complex structures and a large number of access terminals, a large number of IP addresses need to be allocated. This increases the difficulty of IP address management because administrators need to ensure that each subnet has sufficient IP address resources and avoid overlap between subnets.

[0004] In the related technology, static allocation, dynamic allocation and simple recycling mechanisms are usually used to implement the allocation and recycling of IP addresses. However, static allocation means that each device is permanently assigned a fixed IP address. This method may work when the network scale is small or the device changes are not frequent. However, with the expansion of network scale and the frequent increase and decrease of devices, static allocation becomes difficult to manage, because each device change requires manual update of the IP address allocation table, which is not only time-consuming and labor-intensive, but also prone to errors. Although DHCP (Dynamic Host Configuration Protocol) can automatically allocate IP addresses to devices in the network, its configuration and management still requires certain professional knowledge, which may be a challenge for non-professional users. Traditional recycling mechanisms often recycle IP addresses based on fixed time intervals or simply use thresholds. This method lacks intelligence and cannot dynamically adjust the recycling strategy according to the real-time status and needs of the network. Summary of the invention

[0005] The present application aims at the problem that the rationality and efficiency of IP address allocation cannot be taken into account in the prior art, and provides an IP address management method and system, which specifically discloses that an address pool corresponding to the clustering result is constructed by clustering network devices, and the corresponding address pool allocates IP addresses to network devices in the corresponding area, which not only improves the efficiency of IP address allocation, but also avoids IP address allocation conflicts. At the same time, when IP addresses need to be recovered, IP addresses are recovered from the address pool in order from low to high priority to ensure efficient use of IP address resources.

[0006] To achieve the above technical objectives, the present application provides a technical solution, which is an IP address management method, comprising the following steps: S1: obtaining network device information, and using a clustering algorithm to obtain clustering clusters based on the network device information; S2: constructing address pools corresponding to the clustering clusters, and allocating IP addresses in each address pool based on the clustering clusters; S3: obtaining real-time network device information, and adjusting the IP address allocation by matching the corresponding address pools according to the correspondence between the real-time network device information and the clustering clusters; S4: constructing a recycling priority based on the usage ratio of IP addresses in each address pool, and performing IP address recycling based on the recycling priority.

[0007] Furthermore, the S1 also includes: acquiring network device information, and acquiring clusters according to the network device information using a clustering algorithm according to the geographical location of the network device in the network device information.

[0008] Furthermore, S1 also includes: obtaining network equipment requirements, network equipment usage patterns and network equipment geographic locations; marking central network equipment based on network equipment requirements and network equipment usage patterns; using the central network equipment as a clustering center, and obtaining cluster clusters based on the network equipment information using a clustering algorithm according to the geographic locations of the network equipment in the network equipment information.

[0009] Furthermore, the marking of central network devices based on network device requirements and network device usage patterns includes: obtaining an evaluation coefficient of each network device based on the network device type, network device application, network device online time and frequency, network device data traffic and load, and preset weights; and obtaining the central network device based on the evaluation coefficient of each network device and the number of IP addresses of the core network segment.

[0010] Furthermore, the S3 also includes: acquiring real-time network device information, matching a corresponding cluster according to the geographical location of the real-time network device in the real-time network device information, and allocating IP addresses using an address pool corresponding to the cluster.

[0011] Furthermore, S4 also includes: constructing a recycling priority based on the usage ratio of IP addresses in each address pool and the activity of the address pool; if there are address pools with the same recycling priority, selecting the corresponding recycling address pool based on the distance from the initial address pool of the IP address to be recycled; and recycling the IP address to be recycled with the recycling address pool.

[0012] Furthermore, it also includes: S5: calculating the remaining resources of the address pool in real time, and when the remaining resources of the address pool are less than a preset address pool resource threshold, executing an alarm prompt.

[0013] Furthermore, the S2 further includes: obtaining a minimum address allocation unit, and allocating IP addresses in each address pool by using the minimum address allocation unit and the clustering cluster.

[0014] Furthermore, the method further includes: when the total load of two adjacent clusters is less than a preset minimum load, merging the clusters and adjusting the corresponding address pools.

[0015] Another technical solution provided by the present application is an IP address management system for implementing the method as described above, characterized in that it includes: a data acquisition unit for acquiring network device information; an address pool construction unit for constructing an address pool according to the network device information and allocating IP addresses; an address allocation unit for calling the corresponding address pool to perform IP address allocation according to the real-time network device information; and an address recovery unit for performing IP address recovery according to the usage of the address pool.

[0016] The beneficial effects of the present application are as follows: by clustering network device information through a clustering algorithm, network devices with similar characteristics are grouped into a cluster, one cluster corresponds to an address pool, and IP addresses are dynamically allocated according to the size of the cluster, ensuring the reasonable allocation of address resources. At the same time, according to the correspondence between the real-time network device information and the cluster, the newly connected network device is allocated to the corresponding address pool to obtain an IP address, avoiding address resource conflicts between address pools. The recycling priority is constructed based on the usage ratio of IP addresses in each address pool, so that when there is IP address recycling, the IP address is reallocated to the most needed or most suitable address pool, avoiding overload or idleness of the address pool, and making the IP address flow reasonably between address pools, while avoiding some active address pools from affecting the normal connection of the device due to insufficient IP addresses, and preventing other address pools from wasting resources due to excess IP addresses, thereby improving the overall utilization of IP addresses. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of an IP address management method is provided for this application. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application is further described in detail below in conjunction with the drawings and examples. It should be understood that the specific implementation method described here is only an optimal embodiment of the present application, which is only used to explain the present application and does not limit the scope of protection of the present application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0019] like Figure 1 As shown, as an embodiment 1 of the present application, an IP address management method includes the following steps: S1: Obtain network device information, and use clustering algorithm to obtain clustering clusters according to the network device information; S2: Building address pools corresponding to clusters, and allocating IP addresses in each address pool based on the clusters; S3: Acquire real-time network device information, and adjust IP address allocation by matching the corresponding address pool according to the correspondence between the real-time network device information and the clustering clusters; S4: Establish a recycling priority according to the usage ratio of IP addresses in each address pool, and perform IP address recycling based on the recycling priority.

[0020] The network device information is clustered by clustering algorithm, and network devices with similar characteristics are classified into a cluster. A cluster corresponds to an address pool. IP addresses are dynamically allocated according to the size of the cluster, ensuring the reasonable allocation of address resources. At the same time, according to the correspondence between real-time network device information and clusters, newly connected network devices are allocated to the corresponding address pool to obtain IP addresses to avoid address resource conflicts between address pools. The recycling priority is constructed based on the usage ratio of IP addresses in each address pool, so that when IP addresses are recycled, IP addresses are reallocated to the most needed or most suitable address pool, avoiding overload or idleness of address pools, and making IP addresses flow reasonably between address pools, avoiding some active address pools from affecting the normal connection of devices due to insufficient IP addresses, and preventing other address pools from wasting resources due to excess IP addresses, thereby improving the overall utilization of IP addresses.

[0021] In IP address management, the allocation and recovery of IP addresses are two crucial links. Reasonable IP address allocation can ensure the optimal use of network resources and improve resource utilization. Network device information at least includes network device requirements, network device usage patterns, and network device geographic locations. Step S1 also includes: The network device information is obtained, and a clustering cluster is obtained according to the network device information by using a clustering algorithm according to the geographical location of the network device in the network device information.

[0022] In this embodiment, cluster analysis is performed based on the geographical location of network devices, and network devices with similar geographical locations are obtained as a cluster. When allocating IP addresses, network devices with similar geographical locations can be allocated to similar IP address segments to improve network performance and scalability and reduce the complexity of network management. For example, when network devices with similar geographical locations are allocated to similar IP address segments, the communication path between them will often be shorter, and the number of routing hops will be reduced accordingly, which can effectively reduce network delay and increase data transmission speed. At the same time, network devices with similar geographical locations are more likely to communicate in the same subnet or VLAN, and continuous IP address segments are allocated to them to improve the utilization rate of IP addresses.

[0023] The clustering algorithm may be K-means, DBSCAN or other clustering algorithms.

[0024] In some other cases, step S1 further includes: Obtain network equipment demand, network equipment usage patterns, and network equipment geographic locations; Mark central network devices based on network device requirements and network device usage patterns; The central network device is used as the clustering center, and a clustering algorithm is used to obtain cluster clusters according to the geographical location of the network device in the network device information.

[0025] Different types of network devices may have different requirements for IP addresses, or some network devices may need IP addresses in the core network segment. However, usually not all IP addresses in the address pool are in the core network segment. Putting the IP addresses in the core network segment into one address pool may also cause the address pool to be overloaded, or the allocation efficiency of the address pool may not be able to meet the requirements of the IP addresses in each core network segment at the same time. At this time, the network devices that need the IP addresses in the core network segment are obtained from each network device according to the network device requirements and network usage patterns, and used as the clustering center. At this time, the cluster is composed of a core network device that needs the IP addresses in the core network segment and multiple edge network devices that can use the IP addresses in the edge network segment.

[0026] Network equipment requirements at least include network equipment types and network equipment applications. Network equipment usage patterns at least include network equipment online time and frequency, network equipment data flow and load. Based on network equipment requirements and network equipment usage patterns, the marking center network equipment includes: Based on the network device type, network device application, network device online time and frequency, network device data flow and load, and preset weights, obtain the evaluation coefficient of each network device; The central network device is obtained based on the evaluation coefficient of each network device and the number of IP addresses of the core network segment.

[0027] In this embodiment, the corresponding evaluation coefficient is obtained by the importance of each network device at four levels. For example, a server is usually more important than a router or a switch. Therefore, corresponding to the preset weight of the network device type, the weight of the server is higher than that of the router or the switch. Considering the application role of the network device in the network, devices that provide high bandwidth and low latency services may need to be assigned an IP address located in the core network segment, while devices that provide general services may be located in the edge network segment. Similarly, the online time and frequency of the network device are analyzed, and network devices that are often online and frequently connected should be given a higher weight. And network devices with high traffic and high load should also be given a higher weight. This ensures that network devices with higher importance can be assigned IP addresses of the core network segment. The preset weight can be set according to the historical IP address allocation. If the network device type is often assigned an IP address of the core network segment in the historical IP address allocation, then a higher preset weight is assigned to the network device type. In other cases, the preset weight can also be set according to expert experience.

[0028] The number of available IP addresses in the core network segment is determined based on the network architecture and design. Based on the evaluation coefficient of the network device and the number of IP addresses in the core network segment, the device with the highest evaluation coefficient is selected as the central network device. The number of central network devices corresponds to the number of IP addresses in the core network segment. In other embodiments, different IP addresses can also be divided according to the core situation of the network segment, and the network segment correspondence is performed based on the actual needs of the network device, so as to obtain more clusters.

[0029] Step S2 also includes: Construct address pools corresponding to clusters; Obtain IP addresses and allocate IP addresses from each address pool based on the IP addresses and cluster sizes.

[0030] When the address pool is constructed, the cluster center is selected based on the importance of the network device and the cluster range is obtained based on the geographical location of the network device. Therefore, the number of network devices contained in each cluster cluster reflects the importance of the location to a certain extent, that is, the possibility of accessing network devices within the geographical location range. Therefore, IP addresses are allocated according to the size ratio of the cluster clusters, the possibility of new access network devices is predicted in advance, and more IP addresses are given to the address pool with greater access possibility to meet the subsequent network device needs.

[0031] It is understandable that when clustering is performed based on the geographical location of network devices, clustering constraints can be constructed according to the load of network devices. For example, when the total load of all network devices in a cluster reaches the preset maximum load, clustering is considered to be completed. In order to avoid load imbalance caused by too many network devices in the cluster, a spare pool can be set at this time. If some network devices are still not included in any cluster after clustering is completed, they will be included in the spare pool for allocation. As the load of the equipment changes, a preset minimum load can also be set. When the total load of two adjacent clusters is less than the preset minimum load, the clusters are merged, and the corresponding address pools are automatically merged and adjusted to improve resource utilization. A dynamic address allocation strategy is adopted in the address pool adjustment process, and a DHCP server is used to automatically adjust the address pool size and allocation strategy. Alternatively, multiple address pools can be combined into a multi-level address pool group, and the address pool groups within the group are uniformly allocated and managed.

[0032] Step S3 also includes: Real-time network device information is obtained, a corresponding cluster is matched according to the geographical location of the real-time network device in the real-time network device information, and an IP address is allocated using an address pool corresponding to the cluster.

[0033] In this embodiment, clustering is first performed based on the geographical location of each network device through a clustering algorithm to obtain clusters, each cluster corresponds to an address pool, and when a new network device is connected, an IP address is allocated to the network device based on the address pool corresponding to the geographical location of the network device. Since the addresses in each address pool correspond to a regional range, it is ensured that the IP addresses between different address pools do not overlap, so as to avoid potential address conflicts and improve the efficiency of IP address allocation when a new network device is connected.

[0034] In other cases, address conflict detection can be performed on all IP addresses in each address pool in the initial state to ensure that there is no duplicate address resource between each address pool and avoid address conflict problems in the network.

[0035] When IP address recycling occurs, a recycling priority is established based on the usage ratio of IP addresses in each address pool. For example, the higher the usage ratio of IP addresses in the address pool, the higher the recycling priority. The IP address is more likely to be recycled to an address pool with a higher usage ratio of IP addresses, thereby promoting the reasonable flow of IP addresses between address pools and ensuring more efficient use of IP address resources.

[0036] In some other cases, step S4 also includes: Establish recycling priorities based on the usage ratio of IP addresses in each address pool and the activity of the address pool; If there are address pools with the same recycling priority, the corresponding recycling address pool is selected based on the distance from the initial address pool of the IP address to be recycled; Reclaim the IP addresses to be reclaimed using the reclaim address pool.

[0037] In this embodiment, for each address pool, the usage ratio of its IP addresses is calculated regularly, that is, the ratio of the number of allocated IP addresses to the total number of IP addresses. The higher the usage ratio of the address pool, the tighter its IP address resources are, so the recycling priority should be increased accordingly. The activity of the address pool can be obtained by the frequency of allocation and release of IP addresses in the address pool. When the address pool activity is high, it indicates that the current address pool is performing multiple IP address allocations and releases, and the address pool cannot quickly recycle the IP addresses to be recycled, which may cause conflicts with new allocation requests during the recycling process, resulting in network interruption or performance degradation. Therefore, a weighted sum is performed according to the IP address usage ratio and the address pool activity, and the address pool with a high usage ratio and low address pool activity is used as the highest recycling priority, thereby improving the utilization of IP address resources while avoiding recycling conflicts. At this time, if there are two address pools that are both of the first recycling priority, the corresponding recycling address pool is selected according to the distance of the initial address pool of the IP address to be recycled. For example, if the initial address pool of the IP address to be recycled is the C address pool, and there are two address pools A and B with the highest recycling priority, at this time, the distance between the geographical location of the cluster center of the cluster corresponding to the A address pool and the geographical location of the cluster center of the cluster corresponding to the C address pool is less than the distance between the geographical location of the cluster center of the cluster corresponding to the B address pool and the geographical location of the cluster center of the cluster corresponding to the C address pool, then the A address pool is used as the recycling address pool. This can minimize network latency and improve network performance.

[0038] As a second embodiment of the present application, an IP address management method further includes: S5: Calculate the remaining resources of the address pool in real time. When the remaining resources of the address pool are less than the preset address pool resource threshold, an alarm is issued.

[0039] In this embodiment, the remaining resources of the address pool show the available resources in the address pool. According to different mask division sizes, the available addresses in the pool are calculated, and the available address = 2∧(32 minus the mask length)-2-used address. For example, for a 500kV substation, the network mask length of the business address of its non-real-time business is 25 bits, then its available address is 2∧(32-25)-2=126, and then the group PING detection method is used to detect the number of used addresses, and then 126 minus the number of used addresses is the remaining resources of the address pool of the substation. If the remaining resources of the IP address pool are less than the preset address pool resource threshold, an alarm prompt is executed.

[0040] Step S2 also includes: The minimum address allocation unit is obtained, and the IP addresses in each address pool are allocated by using the minimum address allocation unit and the cluster.

[0041] The minimum address allocation unit is specified by masking or specifying the number of addresses. This ensures that the IP addresses in the address pool meet the actual needs of users. For example: 500kV substation: 64 IP addresses for real-time services, 128 IP addresses for non-real-time services, and 64 IP addresses for emergency services; 220kV substation: 32 IP addresses for real-time services, 64 IP addresses for non-real-time services, and 32 IP addresses for emergency services; 110kV substation: 16 IP addresses for real-time services, 32 IP addresses for non-real-time services, and 16 IP addresses for emergency services.

[0042] Different minimum address allocation units are allocated to different address pools according to different geographical locations to avoid the situation where the network devices in some geographical locations have low activity in the past, resulting in address allocation not meeting actual needs.

[0043] As a third embodiment of the present application, an IP address management system includes: Data collection module, used to obtain network equipment information; The address pool building module is used to build an address pool according to network device information and allocate IP addresses; The address allocation module is used to call the corresponding address pool to perform IP address allocation according to the real-time network device information; The address recovery module is used to perform IP address recovery based on the usage of the address pool.

[0044] In this embodiment, the IP address management system is established on the control cloud platform, and based on the cloud connection between the control cloud platform and each network system, network device information and IP addresses are obtained, and the IP addresses are assignable IP addresses.

[0045] Among them, the data acquisition module at least includes: a template format management unit, a feedback form management unit and a network equipment information acquisition unit. Template format unit module: improve the template customization function, including creating, modifying, viewing and deleting templates. In the process of template customization, the feedback form attachment can be called. According to the network equipment (routers, switches), security equipment (encryption devices, firewalls, etc.) and business equipment (104 telecontrol, ERTU, fault recording, etc.) required for data network plant access, a comprehensive address feedback form template is formulated to meet all the information required for the power data network plant access application; according to the equipment name, equipment model, equipment location, system and other information that need to be submitted when the business terminal enters the network, a complete equipment access application form template is formulated. Feedback form management unit: group templates according to the application object category, and support redefining the group after the template is grouped. Realize the addition, deletion, modification and query of the feedback form attachment, including the upload and download functions of the template file. So that it can be called in time during the template customization process. The network equipment information acquisition unit is connected to each network management system to obtain network equipment data and IP address data.

[0046] In the network equipment information acquisition unit, different naming rules are defined according to different equipment types; standardized naming management is performed on the equipment connected to the data network plant station to ensure that the equipment naming methods of the main station and the plant station are consistent to avoid ambiguity during the equipment access process; historical equipment is checked to avoid duplication and similar naming.

[0047] An IP address management system further comprising: The address analysis unit is used to construct an IP address trend analysis curve according to the usage of the IP address.

[0048] Provides visual trend charts and data support, supports multiple trend analysis models and methods, analyzes network address usage trends and changes, and predicts future IP address demand and planning.

[0049] The specific implementation method described above is a preferred implementation method of an IP address management method and system of the present application, and is not intended to limit the specific implementation scope of the present application. The scope of the present application includes but is not limited to the specific implementation method. All equivalent changes made in accordance with the shape and structure of the present application are within the protection scope of the present application.

Claims

1. An IP address management method, characterized in that: The steps include: S1: Obtain network device information, and use clustering algorithm to obtain clustering clusters according to the network device information; S2: Building address pools corresponding to clusters, and allocating IP addresses in each address pool based on the clusters; S3: Acquire real-time network device information, and adjust IP address allocation by matching the corresponding address pool according to the correspondence between the real-time network device information and the clustering clusters; S4: Establish a recycling priority according to the usage ratio of IP addresses in each address pool, and perform IP address recycling based on the recycling priority.

2. An IP address management method as claimed in claim 1, characterized in that: The S1 further comprises: The network device information is obtained, and a clustering cluster is obtained according to the network device information by using a clustering algorithm according to the geographical location of the network device in the network device information.

3. The IP address management method according to claim 1, wherein: The S1 further comprises: Obtain network equipment demand, network equipment usage patterns, and network equipment geographic locations; Mark central network devices based on network device requirements and network device usage patterns; The central network device is used as the clustering center, and a clustering algorithm is used to obtain cluster clusters according to the geographical location of the network device in the network device information.

4. The IP address management method according to claim 3, characterized in that: The network device marking center network device based on network device demand and network device usage mode includes: Based on the network device type, network device application, network device online time and frequency, network device data flow and load, and preset weights, obtain the evaluation coefficient of each network device; The central network device is obtained based on the evaluation coefficient of each network device and the number of IP addresses of the core network segment.

5. The IP address management method according to claim 1, characterized in that: The S3 further includes: Real-time network device information is obtained, a corresponding cluster is matched according to the geographical location of the real-time network device in the real-time network device information, and an IP address is allocated using an address pool corresponding to the cluster.

6. An IP address management method as claimed in claim 1, characterized in that: The S4 also includes: Establish recycling priorities based on the usage ratio of IP addresses in each address pool and the activity of the address pool; If there are address pools with the same recycling priority, the corresponding recycling address pool is selected based on the distance from the initial address pool of the IP address to be recycled; Reclaim the IP addresses to be reclaimed using the reclaim address pool.

7. An IP address management method as claimed in claim 1, characterized in that: Also includes: S5: Calculate the remaining resources of the address pool in real time. When the remaining resources of the address pool are less than the preset address pool resource threshold, an alarm is issued.

8. An IP address management method as claimed in claim 7, characterized in that: The S2 further includes: The minimum address allocation unit is obtained, and the IP addresses in each address pool are allocated by using the minimum address allocation unit and the cluster.

9. The IP address management method according to claim 1, characterized in that: Also includes: When the total load of two adjacent clusters is less than the preset minimum load, the clusters are merged and the corresponding address pools are adjusted.

10. An IP address management system, used to implement the method according to any one of claims 1 to 9, characterized in that: include: Data collection module, used to obtain network equipment information; The address pool building module is used to build an address pool according to network device information and allocate IP addresses; The address allocation module is used to call the corresponding address pool to perform IP address allocation according to the real-time network device information; The address recovery module is used to perform IP address recovery based on the usage of the address pool.

Citation Information

Cited By

  • Method and system for distributing subnet addresses based on SDN (Software Defined Network)

    CN119966949A