Method and system for distributing subnet addresses based on SDN (Software Defined Network)
By dynamically dividing address segments and managing dynamic address pools in the SDN environment, the dynamic adjustment and resource optimization problems of traditional IP address allocation methods in complex network environments are solved, and efficient and flexible IP address management is achieved.
Patent Information
- Application Number
- CN202510451738.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-04-11
AI Technical Summary
Traditional IP address allocation methods are difficult to achieve dynamic adjustment and resource optimization in complex network environments, resulting in unbalanced address allocation and low resource utilization.
The SDN-based subnet address allocation method is adopted to obtain the initial network configuration requirements and collect network information in real time, and use the adaptive subnet division algorithm to dynamically divide the address segments, generate a dynamic address pool, and when receiving the DHCP request, the address allocation is performed according to the pre-developed IP address allocation strategy, and the subnet configuration and address pool are monitored and adjusted in real time.
It improves the utilization rate of IP addresses and network flexibility and manageability, reduces manual intervention and address conflicts, and ensures the optimality and efficiency of address allocation.
Smart Images

Figure CN119966949A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of network communications, and in particular to a method and system for allocating subnet addresses based on SDN. Background Art
[0002] At present, with the continuous expansion of network scale, especially in enterprise networks, cloud computing and big data centers, the network topology is becoming increasingly complex, the number of devices and traffic load are increasing, and the traditional IP address allocation method faces many challenges. Existing IP address allocation usually relies on static configuration or dynamic allocation methods based on DHCP. Although DHCP can achieve a certain degree of automation, its working scope is generally limited to address allocation within a single subnet, and it is difficult to achieve global planning and resource optimization across subnets. Traditional solutions usually adopt a fixed subnet division strategy, that is, manually set the address range of each subnet during the initial configuration of the network. However, this method lacks flexibility and cannot be dynamically adjusted according to changes in network status. When some subnet address resources are exhausted, while other subnets still have a large number of idle addresses, it is impossible to effectively schedule resources between subnets, resulting in uneven address allocation. In addition, the existing technical solutions mostly rely on centralized DHCP servers for IP address allocation, lack the ability to perceive the global network status, device load and dynamic topology changes in real time, and it is difficult to ensure the optimality and efficiency of IP address allocation in a complex network environment.
[0003] The above-mentioned existing technical solutions have the following defects: when the network topology changes or the device load fluctuates, the existing technical solutions are difficult to adjust the subnet division and address pool configuration in time, resulting in low resource utilization or local shortage, so there is room for improvement. Summary of the invention
[0004] In order to improve the utilization efficiency of address resources, the present application provides a method and system for allocating subnet addresses based on SDN.
[0005] The above-mentioned invention objective of the present application is achieved through the following technical solutions: A method for allocating subnet addresses based on SDN, the method comprising: Obtaining initial network configuration requirements, including global IP address segments, subnet division strategies, lease duration, and network isolation requirements; Collect network information in real time, including network topology information, device status and traffic load data; Based on the network information and the initial network configuration requirements, an adaptive subnetting algorithm is used to dynamically divide the address segments and generate corresponding subnet configurations and dynamic address pools; Upon receiving a DHCP request, selecting an available IP address from the dynamic address pool according to a pre-established IP address allocation policy, generating a corresponding DHCP response message, and sending the DHCP response message to the requesting device to complete address allocation; Real-time monitoring of real-time data after address allocation, the real-time data including IP address usage, device load data and topology changes, and dynamic adjustment of the subnet configuration and dynamic address pool according to the real-time data.
[0006] By adopting the above technical solution, by obtaining the initial network configuration requirements, including the global IP address segment, subnet division strategy, lease duration and network isolation requirements, the rationality of network resource planning can be ensured, and the allocation of IP addresses can meet business needs, thereby improving the flexibility and manageability of the network and reducing the complexity of manual intervention; by real-time collection of network information, including network topology information, device status and traffic load data, the real-time status of the network environment can be obtained, ensuring that subnet division and address allocation can be optimized based on the latest network conditions, thereby improving the dynamic adaptability of IP address allocation and reducing address conflicts caused by topology changes; by using an adaptive subnet division algorithm to dynamically divide address segments and generate corresponding subnet configurations and dynamic address pools, the subnet size can be automatically adjusted based on the real-time collected network information to optimize the subnet size. DHCP requests are received, and according to the pre-established IP address allocation strategy, an available IP address is selected from the dynamic address pool, a corresponding DHCP response message is generated, and the DHCP response message is sent to the requesting device to complete the address allocation, thereby ensuring that the address allocation complies with the established strategy, preventing IP address allocation conflicts, and reducing the manual intervention of network administrators, thereby improving the automation level of network management; by real-time monitoring of real-time data after address allocation, and dynamically adjusting the subnet configuration and dynamic address pool according to the real-time data, network load changes can be discovered in a timely manner, and subnet division and address pool management can be dynamically optimized, thereby ensuring the reasonable allocation of network resources and improving network stability and scalability.
[0007] In one example, the present application may be further configured as follows: the obtaining of the initial network configuration requirement includes: The initial network configuration requirements further include preset service priorities and tenant isolation requirements; Receiving network configuration requirement data submitted by a user, parsing the network configuration requirement data submitted by the user, and extracting the global IP address segment, subnet division strategy, lease duration, network isolation requirement, preset service priority, and tenant isolation requirement; The global IP address segment, subnet division strategy, lease duration, network isolation requirements, preset business priorities and tenant isolation requirements are statistically integrated to obtain the initial network configuration requirements.
[0008] By adopting the above technical solution, by further including preset business priorities and tenant isolation requirements when obtaining the initial network configuration requirements, it is possible to ensure that resource allocation between different business scenarios and tenants meets differentiated needs, thereby improving the fairness and security of network resources; by receiving network configuration requirement data submitted by users, and parsing and extracting global IP address segments, subnet division strategies, lease durations, network isolation requirements, business priorities and tenant isolation requirements, it is possible to achieve standardized processing of network configuration requirements, ensuring that all parameters are accurately parsed, thereby reducing human configuration errors and improving the accuracy of network management; by statistically integrating the extracted data to obtain the initial network configuration requirements, it is possible to form unified configuration data, providing standardized input for subsequent subnet division and address allocation, thereby improving the automation and consistency of the entire network management.
[0009] In one example, the present application may be further configured as follows: the real-time collection of network information includes: Collecting the network topology information within a preset time period, the network topology information including connection status, port information and link quality data between various devices; Real-time monitoring of the status data of each network device, including device operating status, CPU and memory load, fault alarms and key indicators; Determine the real-time data traffic situation of each network area through traffic statistics and obtain the traffic load data of each node; The network topology information, device status data and traffic load data are integrated and analyzed to obtain the network information.
[0010] By adopting the above technical solution, by collecting network topology information within a preset time period, including device connection status, port information and link quality data, it is possible to continuously obtain changes in the network structure, ensure that subnet division and IP address management always adapt to the current network environment, thereby reducing resource waste and conflicts caused by topology changes; by real-time monitoring of the status data of each network device, including operating status, CPU and memory load, fault alarm and key indicators, it is possible to ensure that the network management system can promptly discover abnormal devices and make reasonable adjustments to the IP address pool and subnet configuration, thereby reducing network instability problems caused by equipment failure; by determining the real-time data traffic situation of each network area through traffic statistics, and obtaining the traffic load data of each node, it is possible to effectively evaluate the load situation of different subnets, provide an optimization basis for subnet division, thereby reducing load imbalance and improving the overall network performance; by integrating and analyzing the collected network information, it is possible to form a comprehensive network status view, provide accurate data support for subsequent subnet division, address pool management and traffic optimization, thereby improving the intelligence level of network management.
[0011] In one example, the present application may be further configured as follows: based on the network information and the initial network configuration requirements, the adaptive subnet partitioning algorithm is used to dynamically partition the address segments, and the corresponding subnet configuration and dynamic address pool are generated, including: Preliminarily divide a plurality of candidate subnets according to the global IP address segment in the initial network configuration requirement and the network topology information in the network information, and determine a candidate subnet solution; Using a constraint optimization model, combined with the device status, traffic load data, and network isolation requirements, the candidate subnet solutions are screened and optimized, the subnet scale and division boundary are determined, and the subnet configuration is generated; According to the subnet configuration, a dynamic address pool is constructed for each subnet; Based on the dynamic address pool and the lease duration, preset service priority and isolation requirements in the initial network configuration requirements, a corresponding IP address allocation strategy is formulated to obtain the pre-formulated IP address allocation strategy, which is used to guide the subsequent DHCP address allocation process.
[0012] By adopting the above technical solution, multiple candidate subnets are preliminarily divided according to the global IP address segment and network topology information, and the candidate subnet scheme is determined, so that a basic subnet planning can be formed in the overall network architecture, and a structural framework can be provided for subsequent optimization, thereby ensuring the rationality of subnet division and improving the flexibility of subnet planning; by using the constraint optimization model, combined with the device status, traffic load data and network isolation requirements, the candidate subnet scheme is screened and optimized, the subnet scale and division boundary are determined, and the subnet division can be dynamically optimized under different business requirements and network conditions, so that the subnet boundary dynamically adapts to the load change, thereby improving the utilization rate of IP address resources and reducing the address fragmentation problem between subnets; by building a dynamic address pool for each subnet, it can ensure that the IP resources of different subnets can be flexibly expanded and adjusted, thereby improving the utilization efficiency of IP addresses and avoiding waste of subnet resources; by formulating a corresponding IP address allocation strategy based on the lease duration, business priority and isolation requirements in the dynamic address pool and the initial network configuration requirements, and using it to guide the subsequent DHCP address allocation process, it can ensure that the allocation of IP addresses meets business requirements and network security strategies, thereby improving the manageability and resource allocation efficiency of the entire network.
[0013] In one example, the present application may be further configured as follows: before the constraint optimization model is used to screen and optimize the candidate subnet solutions in combination with the device status, traffic load data, and network isolation requirements, the SDN-based subnet address allocation method further includes: Collect historical network operation data, including historical IP address usage, device load, network topology changes, and traffic load data; Analyze subnet resource utilization, load balancing and network isolation effects based on the historical network operation data, evaluate the applicability of existing subnet division strategies, and generate analysis results; Based on the analysis results, the parameters of the constraint optimization model are dynamically adjusted, and the parameters of the constraint optimization model include subnet division rules, load balancing weights, address pool allocation ratios, and tenant isolation strategies.
[0014] By adopting the above technical solution, by collecting historical network operation data, including IP address usage, equipment load, network topology changes and traffic load data, it is possible to provide long-term network operation trend analysis and provide accurate data support for subnet optimization, thereby improving the predictability and rationality of subnet planning; by analyzing subnet resource utilization, load balancing and network isolation effects based on historical data, evaluating the applicability of existing subnet division strategies, and generating analysis results, it is possible to identify the shortcomings of existing subnet division schemes and dynamically adjust planning strategies, thereby reducing low address utilization and network congestion problems caused by unreasonable subnet division; by dynamically adjusting the parameters of the constraint optimization model based on the analysis results, including subnet division rules, load balancing weights, address pool allocation ratios and tenant isolation strategies, it is possible to ensure that the optimization model can be continuously adjusted according to historical data, thereby improving its adaptability and making network management more intelligent and dynamically adjustable.
[0015] In one example, the present application may be further configured as follows: when receiving a DHCP request, selecting an available IP address from the dynamic address pool, and generating a corresponding DHCP response message includes: Parsing the DHCP request to determine the subnet where the requesting device is located; According to the dynamic address pool of the subnet where the requesting device is located and the pre-established IP address allocation policy, selecting an available IP address in the dynamic address pool; Determine the network configuration information corresponding to the available IP address according to the lease duration, preset service priority and network isolation requirement defined in the initial network configuration requirement; The corresponding DHCP response message is generated according to the available IP address and network configuration information.
[0016] By adopting the above technical solution, by parsing the DHCP request and determining the subnet where the requesting device is located, the accuracy of IP address allocation can be ensured, and network anomalies caused by incorrect subnet allocation can be prevented, thereby improving the accuracy of allocation; by selecting the available IP address in the dynamic address pool according to the dynamic address pool of the subnet where the requesting device is located and the pre-established IP address allocation strategy, it can be ensured that the allocation of IP addresses meets the current resource situation and business needs, thereby improving the efficiency of IP address resource utilization; by determining the network configuration information corresponding to the available IP address according to the lease duration, business priority and network isolation requirements in the initial network configuration requirements, it can be ensured that IP allocation meets the overall network management strategy, thereby improving the security and flexibility of the network; by generating the corresponding DHCP response message according to the available IP address and network configuration information, it can achieve standardized allocation of IP addresses, ensuring that the terminal device can be normally connected to the network, thereby improving the stability of the entire network management system.
[0017] In one example, the present application may be further configured as follows: the SDN-based subnet address allocation method further includes: When the lease of the allocated IP address is about to expire, a lease renewal notification is sent to the corresponding requesting device. If the requesting device does not send a lease renewal request and the online status of the requesting device is still not detected after the lease expires, the allocated IP address is released and returned to the dynamic address pool; When an IP address that has not been used for a long time is detected or the requesting device is offline, the corresponding IP address is recovered and reallocated according to a preset recovery strategy; A change in business demand is obtained, subnet division is dynamically adjusted according to the change in business demand, and the subnet configuration is adjusted.
[0018] By adopting the above technical solution, when the lease of the allocated IP address is about to expire, a lease renewal notification is sent to the terminal device. If the terminal device does not send a renewal request and the online status of the requesting device is still not detected after the lease expires, the IP address is released and returned to the dynamic address pool, which can ensure the rationality of IP address recovery and avoid invalid address occupation, thereby improving the utilization efficiency of IP address resources; when an IP address that has not been used for a long time is detected or the requesting device is offline, the corresponding IP address is recovered and reallocated according to a preset recovery strategy, which can further optimize the resource allocation of IP addresses and reduce the problem of invalid address occupation, thereby improving the IP address management efficiency of the entire network; after obtaining changes in business needs, the subnet division is dynamically adjusted and the subnet configuration is adjusted, which can ensure that the subnet division can adapt to new business needs at any time, thereby improving the flexibility and expansion capability of the network.
[0019] The second object of the invention is achieved by the following technical solutions: A subnet address allocation system based on SDN, the subnet address allocation system based on SDN comprising: A demand acquisition module is used to obtain initial network configuration requirements, which include global IP address segments, subnet division strategies, lease durations, and network isolation requirements; A network information collection module is used to collect network information in real time, wherein the network information includes network topology information, device status and traffic load data; A partitioning module, for dynamically partitioning address segments using an adaptive subnet partitioning algorithm based on the network information and initial network configuration requirements, and generating corresponding subnet configurations and dynamic address pools; The address allocation module is used to select an available IP address from the dynamic address pool according to a pre-defined IP address allocation policy when receiving a DHCP request, generate a corresponding DHCP response message, and send the DHCP response message to the requesting device to complete the address allocation; The adjustment module is used to monitor the real-time data after address allocation in real time, wherein the real-time data includes IP address usage, device load data and topology changes, and dynamically adjust the subnet configuration and dynamic address pool according to the real-time data.
[0020] By adopting the above technical solution, by obtaining the initial network configuration requirements, including the global IP address segment, subnet division strategy, lease duration and network isolation requirements, the rationality of network resource planning can be ensured, and the allocation of IP addresses can meet business needs, thereby improving the flexibility and manageability of the network and reducing the complexity of manual intervention; by real-time collection of network information, including network topology information, device status and traffic load data, the real-time status of the network environment can be obtained, ensuring that subnet division and address allocation can be optimized based on the latest network conditions, thereby improving the dynamic adaptability of IP address allocation and reducing address conflicts caused by topology changes; by using an adaptive subnet division algorithm to dynamically divide address segments and generate corresponding subnet configurations and dynamic address pools, the subnet size can be automatically adjusted based on the real-time collected network information to optimize the subnet size. DHCP requests are received, and according to the pre-established IP address allocation strategy, an available IP address is selected from the dynamic address pool, a corresponding DHCP response message is generated, and the DHCP response message is sent to the requesting device to complete the address allocation, thereby ensuring that the address allocation complies with the established strategy, preventing IP address allocation conflicts, and reducing the manual intervention of network administrators, thereby improving the automation level of network management; by real-time monitoring of real-time data after address allocation, and dynamically adjusting the subnet configuration and dynamic address pool according to the real-time data, network load changes can be discovered in a timely manner, and subnet division and address pool management can be dynamically optimized, thereby ensuring the reasonable allocation of network resources and improving network stability and scalability.
[0021] In summary, this application includes the following beneficial technical effects: 1. By obtaining the initial network configuration requirements, the rationality of network resource planning can be ensured, and the allocation of IP addresses can meet business needs, thereby improving the flexibility and manageability of the network and reducing the complexity of manual intervention; by collecting network information in real time, the real-time status of the network environment can be obtained, ensuring that subnet division and address allocation can be optimized based on the latest network conditions, thereby improving the dynamic adaptability of IP address allocation and reducing address conflicts caused by topology changes; 2. By adopting an adaptive subnet division algorithm to dynamically divide address segments and generate corresponding subnet configurations and dynamic address pools, it can automatically adjust the subnet size based on real-time collected network information, optimize subnet division, and improve IP address utilization, thereby reducing address waste within the subnet and improving overall network performance; when receiving a DHCP request, according to a pre-established IP address allocation strategy, select an available IP address from the dynamic address pool, generate a corresponding DHCP response message, and send the DHCP response message to the requesting device to complete the address allocation, which can ensure that the address allocation complies with the established strategy, prevent IP address allocation conflicts, and reduce the manual intervention of network administrators, thereby improving the automation level of network management. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a flow chart of a method for allocating subnet addresses based on SDN in one embodiment of the present application; Figure 2 It is a flowchart for implementing step S10 in a method for allocating subnet addresses based on SDN in one embodiment of the present application; Figure 3 It is a flowchart for implementing step S20 in a method for allocating subnet addresses based on SDN in an embodiment of the present application; Figure 4 It is a flowchart for implementing step S30 in a method for allocating subnet addresses based on SDN in one embodiment of the present application; Figure 5 It is a flowchart for implementing step S32 in a method for allocating subnet addresses based on SDN in an embodiment of the present application; Figure 6 It is a flowchart for implementing step S40 in a method for allocating subnet addresses based on SDN in one embodiment of the present application; Figure 7 It is a flowchart of an implementation method of allocating subnet addresses based on SDN in an embodiment of the present application; Figure 8 It is a principle block diagram of a subnet address allocation system based on SDN in one embodiment of the present application. DETAILED DESCRIPTION
[0023] The present application is further described in detail below in conjunction with the accompanying drawings.
[0024] In one embodiment, if Figure 1 As shown, the present application discloses a method for allocating subnet addresses based on SDN, which specifically includes the following steps: S10: Obtain initial network configuration requirements, which include global IP address segments, subnet division strategies, lease duration, and network isolation requirements.
[0025] Specifically, it parses the network configuration data input by the user, extracts the global IP address segment information, identifies the starting address, ending address and subnet range of the IP address, determines the granularity of address allocation based on the subnet division strategy, such as whether to divide it according to a fixed size or dynamically adjust the subnet size according to business needs, calculates the number of available addresses in each subnet, extracts the lease duration parameters, determines the effective time of the IP address allocation, and generates corresponding isolation strategies based on network isolation requirements, such as whether the traffic between tenants is interoperable, the priority setting of different business flows, and the constraints of security policies. All parsed configuration data is stored as structured data to provide basic information for subsequent address allocation and management.
[0026] S20: Collect network information in real time, including network topology information, device status and traffic load data.
[0027] Specifically, it regularly accesses the network control plane to obtain the current network topology information, including the connection relationship between switches, routers and terminal devices, queries the port status of network devices, records whether the port is enabled, the current rate and bandwidth usage, accesses the device management interface, collects the CPU usage, memory usage and operating status of each device, counts the load of each device, calls the traffic monitoring module to analyze the traffic interaction between different subnets, calculates the traffic load of each link, identifies traffic peak areas and possible congestion points, and stores all acquired network information according to timestamps for subsequent subnet division and dynamic adjustment.
[0028] S30: Based on the network information and the initial network configuration requirements, an adaptive subnetting algorithm is used to dynamically divide the address segments, and a corresponding subnet configuration and a dynamic address pool are generated.
[0029] Specifically, the stored network information is parsed, the currently available global IP address range is calculated, and the subnet division strategy is determined according to the current device load. If the device load is low, the subnet division is performed according to fixed rules. If the device load is high, a dynamic adjustment strategy is adopted. The historical traffic data is combined to predict future load changes. Subnets of different sizes are divided according to the lease duration and business isolation requirements. In the process of generating subnets, the subnet mask, gateway address and broadcast address of each subnet are calculated to avoid the generation of too small subnets, which will lead to a decrease in address utilization, and at the same time avoid the subnet size being too large to affect network stability. The corresponding address pool is dynamically generated based on the divided subnet configuration, and the available IP range, the current number of allocated IPs and the lease management rules of each address pool are recorded. All generated data is stored in the address allocation database to provide a basis for subsequent DHCP request processing.
[0030] S40: When a DHCP request is received, an available IP address is selected from the dynamic address pool according to a pre-defined IP address allocation policy, a corresponding DHCP response message is generated, and the DHCP response message is sent to the requesting device to complete the address allocation.
[0031] Specifically, the DHCP request message is parsed to extract the MAC address of the requesting device, the requested IP address and the lease duration requirement, and to determine whether the requesting device is a registered device. If the device is registered and within the lease validity period, the original IP address and lease information are returned. If the device is a newly accessed device or the lease has expired, the dynamic address pool is queried, and the best available IP address is selected according to the preset IP allocation strategy, and available IPs in subnets with lower loads are allocated first. If multiple subnets have the same load, the frontmost available IP is selected according to the address allocation order, and a DHCP Offer message containing the IP address, subnet mask, gateway address and lease duration is generated. If the requesting device accepts the IP address, a DHCP Ack message is returned to confirm the allocation result, and the allocation status of the IP address is recorded. At the same time, the number of available IPs in the dynamic address pool is updated to ensure that the allocated IP address will not be reused.
[0032] S50: monitors the real-time data after address allocation in real time, including IP address usage, device load data and topology changes, and dynamically adjusts subnet configuration and dynamic address pool according to the real-time data.
[0033] Specifically, the usage of allocated IP addresses is continuously tracked, and the IP address occupancy rate of each subnet is counted. If the subnet address usage rate exceeds the preset threshold, the subnet expansion mechanism is triggered, the subnet boundary is adjusted according to the current network load, and new IP address segments are added to the dynamic address pool of the high-load subnet. If the subnet address utilization rate is lower than the preset threshold for a long time, some unused addresses are recycled to the global address pool to optimize resource utilization. At the same time, the load changes of network devices are monitored. If the traffic load of a subnet continues to increase, which may cause the performance of the subnet to deteriorate, the future trend is predicted based on the traffic model, and the IP address pool of the subnet is adjusted in advance or some terminal devices are migrated to the subnet with lower load. In addition, the changes in the network topology are monitored in real time. If a new device is detected to be connected or the device is offline, the network topology is updated to ensure that the subnet division and address pool configuration always match the latest network environment. All adjusted data is stored in the database for subsequent optimization and analysis.
[0034] By adopting the above technical solution and obtaining the initial network configuration requirements, the rationality of network resource planning can be ensured, and the allocation of IP addresses can be made to meet business needs, thereby improving the flexibility and manageability of the network and reducing the complexity of manual intervention; by collecting network information in real time, the real-time status of the network environment can be obtained, ensuring that subnet division and address allocation can be optimized based on the latest network conditions, thereby improving the dynamic adaptability of IP address allocation and reducing address conflicts caused by topology changes; by adopting an adaptive subnet division algorithm to dynamically divide address segments and generate corresponding subnet configurations and dynamic address pools, the subnet size can be automatically adjusted based on the real-time collected network information, subnet division can be optimized, and IP address utilization can be improved, thereby reducing the address space within the subnet. Waste and improve the overall network performance; by selecting an available IP address from the dynamic address pool according to a pre-established IP address allocation strategy when receiving a DHCP request, generating a corresponding DHCP response message, and sending the DHCP response message to the requesting device to complete the address allocation, it can ensure that the address allocation complies with the established strategy, prevent IP address allocation conflicts, and reduce the manual intervention of network administrators, thereby improving the automation level of network management; by real-time monitoring of real-time data after address allocation, and dynamically adjusting the subnet configuration and dynamic address pool according to the real-time data, it can timely discover network load changes, dynamically optimize subnet division and address pool management, thereby ensuring the reasonable allocation of network resources and improving network stability and scalability.
[0035] In one embodiment, if Figure 2 As shown, in step S10, the initial network configuration requirements are obtained, which specifically include: S11: receiving network configuration requirement data submitted by the user, parsing the network configuration requirement data submitted by the user, and extracting the global IP address segment, subnet division strategy, lease duration, network isolation requirement, preset business priority and tenant isolation requirement.
[0036] Specifically, it receives network configuration parameters submitted by users through the interface, parses the data format, identifies the range of global IP address segments, extracts subnet division policy information, determines whether to adopt fixed subnet division rules or dynamic adaptive division, parses lease duration parameters, determines the lease period of IP addresses, extracts network isolation requirements, analyzes whether it is necessary to apply access control policies to specific IP address ranges, and parses business priority information to determine the priority of different types of equipment or business applications in address allocation, extracts tenant isolation requirements, determines whether tenants need to be forcibly isolated or can share some network resources, stores all parsed data in cache, and performs consistency checks to ensure that the data is complete and complies with predefined rules.
[0037] Furthermore, the initial network configuration requirements further include preset service priorities and tenant isolation requirements. The service priority information is used to determine the priority of different types of services in IP address allocation. For example, for services with low latency requirements, subnets with lower loads are allocated, and for services with higher bandwidth requirements, subnets with more sufficient bandwidth resources are allocated. The network isolation level between tenants is identified based on the tenant isolation requirements, and it is determined whether different tenants are allowed to share subnet resources. If complete isolation is required between tenants, independent IP address pools are allocated in different subnets. If partial sharing is allowed, access control rules are configured according to preset policies to ensure that traffic isolation between tenants meets security requirements. All extracted data is stored in the configuration database to provide a basis for subsequent address allocation.
[0038] S12: The global IP address segment, subnet division strategy, lease duration, network isolation requirements, preset business priorities and tenant isolation requirements are statistically integrated to obtain the initial network configuration requirements.
[0039] Specifically, read the parsed configuration data, verify the global IP address segment to ensure that the address range does not conflict with existing subnets, calculate the number of subnets that can be divided according to the subnet division strategy, determine the address range of each subnet, and calculate the IP address allocation time limit in combination with the lease duration information to ensure that it can be recovered and reallocated after the lease expires. Determine the IP address allocation rules for different business types based on business priority information, give priority to address allocation needs for key businesses, adjust subnet planning according to tenant isolation requirements, ensure that IP address allocation for different tenants complies with security policies, store all statistically integrated configuration data in the database, and generate a standardized initial network configuration file for subsequent subnet division and IP address management.
[0040] In one embodiment, if Figure 3 As shown, in step S20, real-time collection of network information specifically includes: S21: Collect network topology information within a preset time period, where the network topology information includes connection status, port information, and link quality data between devices.
[0041] Specifically, regularly access the network device management interface to obtain the current network topology, record the connection relationship between each switch, router and terminal device, query the enabled status, bandwidth configuration and actual traffic load of each port, collect link quality data, including link delay, packet loss rate and bandwidth utilization, and analyze whether there are abnormal fluctuations in the link status. If an abnormality is found, it is marked as a potential fault point and the alarm mechanism is triggered. All collected network topology information is stored in the database, and the topology changes are recorded in chronological order for subsequent subnet division and optimization.
[0042] S22: Real-time monitoring of the status data of each network device, including the device operating status, CPU and memory load, fault alarm and key indicators.
[0043] Specifically, the operation status of network devices is queried periodically to obtain CPU usage, memory occupancy and port activity status, and the device load is analyzed. If the CPU or memory of a device is in a high-load state for a long time, it is marked as a high-load node, and the historical load change trend of the device is recorded. The fault alarm information of the device is monitored, and whether there is a port failure, connection interruption or hardware abnormality is analyzed. Key performance indicators are extracted, including device temperature, power status and fan speed, to determine whether the device is in normal working condition, all monitoring data are stored in the database, and a device health status report is generated for subsequent network optimization and resource scheduling.
[0044] S23: Determine the real-time data traffic situation of each network area through traffic statistics, and obtain the traffic load data of each node.
[0045] Specifically, it monitors the traffic statistics of each switch and router, analyzes the traffic exchange between different subnets, calculates the inbound and outbound traffic of each network node, counts the data load during peak traffic periods, identifies whether there are abnormal traffic surges, calculates link utilization, determines whether there is a congestion risk, extracts the traffic share of key business flows, ensures that the traffic occupancy of high-priority businesses meets expectations, aggregates the traffic data of each node, calculates the overall traffic load of each subnet, and stores the data in the database for subsequent subnet adjustments and traffic balancing optimization.
[0046] S24: Integrate and analyze the network topology information, device status data, and traffic load data to obtain network information.
[0047] Specifically, the collected network topology information is summarized, the changes in device connection relationships are analyzed, the health status of each node is evaluated in combination with the device status data, the resource utilization of different subnets is calculated based on the traffic load data, the load balancing situation is identified, and it is determined whether it is necessary to optimize the subnet configuration or adjust the traffic path. The historical data is analyzed, the future traffic trends are predicted, and the overall load balancing of the network is calculated. If it is found that some subnets are in a high-load state for a long time, they are recorded as potential optimization targets, all analyzed network information is stored in the database, and statistical reports are generated for subsequent network management and subnet division decisions.
[0048] In one embodiment, if Figure 4 As shown, in step S30, based on the network information and the initial network configuration requirements, an adaptive subnetting algorithm is used to dynamically divide the address segments to generate corresponding subnet configurations and dynamic address pools, specifically including: S31: Preliminarily divide multiple candidate subnets according to the global IP address segment in the initial network configuration requirements and the network topology information in the network information, and determine the candidate subnet solution.
[0049] Specifically, parse the global IP address segment information, obtain the assignable IP address range, identify the physical and logical structures of different network areas according to the network topology information, determine the connection relationship between the areas and the deployment of the equipment, and calculate the reasonable subnet size according to the subnet division strategy to ensure that the subnet size meets the needs of the current network environment. If a fixed subnet division method is used, the subnets are divided according to the preset address range. If an adaptive subnet division method is used, the subnet boundaries are dynamically adjusted based on the network load. During the division process, the location of the equipment, business flow and link quality are considered to ensure that the divided subnets can efficiently utilize network resources while avoiding address conflicts between different subnets. All division results are stored as candidate subnet solutions, and the preliminary configuration information of each subnet is recorded, including the address range, gateway, subnet mask and broadcast address.
[0050] S32: Using the constraint optimization model, combined with device status, traffic load data, and network isolation requirements, the candidate subnet solutions are screened and optimized, the subnet size and division boundaries are determined, and the subnet configuration is generated.
[0051] Specifically, the candidate subnet scheme is loaded, and the optimal subnet division scheme is calculated based on the constraint optimization model. The device status data is analyzed to select areas with lower load to accommodate more terminal devices, while avoiding the high-load area from further expanding the subnet scale. The network traffic situation in different areas is evaluated in combination with the traffic load data to avoid congestion caused by excessive subnet scale in high-traffic areas. The isolation level between different subnets is determined based on the network isolation requirements. If some subnets require strong isolation, the subnet boundaries are adjusted to ensure that different address segments cannot communicate directly. In the optimization process, the constraint optimization algorithm is applied, and the heuristic method is used to evaluate different division schemes. The resource utilization, load balancing and address utilization of each scheme are calculated, and the optimal scheme that meets the business needs is selected. Finally, the subnet scale and division boundary are determined, and the final subnet configuration data, including the IP address range, gateway, subnet mask and security policy of each subnet, are stored. The objective function of the constraint optimization model maximizes the IP address resource utilization and minimizes the subnet load imbalance and tenant isolation violations. Constraints ensure the rationality of subnet division, including restrictions such as IP address continuity, load balancing, and tenant isolation. The solution method combines heuristic clustering, particle swarm optimization or genetic algorithm to search for the optimal solution, and adjusts the solutions that do not meet the constraints through the penalty function method, and finally generates an optimized subnet configuration solution.
[0052] S33: Build a dynamic address pool for each subnet based on the subnet configuration.
[0053] Specifically, parse the finalized subnet configuration, obtain the address range of each subnet, and calculate the number of allocatable IP addresses. According to the address allocation strategy, eliminate special-purpose addresses, including gateway addresses, broadcast addresses, and reserved IP addresses, build a dynamic address pool, record the list of available IP addresses for each subnet, initialize the address allocation status, ensure that unoccupied IP addresses are in an allocatable state, and configure lease management rules for each dynamic address pool to define the IP address allocation duration and lease renewal strategy. If the address pool usage rate of a subnet is high, mark the address pool as a high-load area so that IP addresses in low-load areas can be allocated preferentially in the subsequent DHCP address allocation process. Finally, store all dynamic address pools in the address management database for subsequent DHCP allocation process calls.
[0054] S34: Based on the dynamic address pool and the lease duration in the initial network configuration requirements, the preset service priority and the isolation requirements, a corresponding IP address allocation strategy is formulated to obtain a pre-formulated IP address allocation strategy, which is used to guide the subsequent DHCP address allocation process.
[0055] Specifically, the lease duration parameters of the initial network configuration requirements are used to determine the lease durations of different types of equipment. For example, a longer lease duration is assigned to fixed terminal equipment, and a shorter lease duration is assigned to mobile devices or temporary access devices. The address allocation priority is defined in combination with the preset service priority information to ensure that stable IP addresses are assigned to critical services first. At the same time, a dynamic adjustment mechanism is used for low-priority services to prevent low-priority services from occupying high-value IP resources for a long time. The network isolation requirements are analyzed to ensure that address allocations for different tenants are not cross-allocated. If isolation is required between tenants, IP addresses are allocated separately in different address pools, and corresponding network policies are configured to avoid network conflicts between different tenants. Finally, a pre-established IP address allocation policy is generated and stored in the database for subsequent DHCP address allocation process calls to ensure that the allocation of all IP addresses meets established business requirements and security policies.
[0056] In one embodiment, if Figure 5 As shown, before step S32, that is, before screening and optimizing the candidate subnet solutions by using the constraint optimization model in combination with the device status, traffic load data and network isolation requirements, the SDN-based subnet address allocation method further includes: S3201: Collect historical network operation data, which includes historical IP address usage, device load, network topology changes and traffic load data.
[0057] Specifically, IP address usage records are regularly extracted from the historical data repository, the changes in IP address usage in different time periods are analyzed, and address segments that have not been used for a long time are identified in order to optimize the configuration of the address pool. Equipment load statistics are collected, and the CPU usage, memory usage and historical load trends of each device are extracted. High-load areas and long-term low-load areas are identified to provide a reference for subnet optimization. Historical network topology changes are analyzed, and changes in device connections in different time periods are recorded. It is determined which areas have a high frequency of device access to optimize the subnet division strategy. Historical traffic load data is extracted, and the traffic usage of different subnets during peak and low-load periods is calculated. Areas with long-term load imbalances are identified, and all historical data is stored for subsequent analysis and optimization of the subnet division model.
[0058] S3202: Analyze subnet resource utilization, load balancing, and network isolation effects based on historical network operation data, evaluate the applicability of existing subnet division strategies, and generate analysis results.
[0059] Specifically, calculate the resource utilization of each subnet based on the historical IP address usage, determine whether there is a long-term problem of insufficient IP addresses or address waste in some subnets, analyze the load balancing situation, calculate the load changes of each device in different time periods, evaluate whether the current subnet division strategy can balance network traffic, identify high-load subnets and low-load subnets, and record optimization adjustment suggestions. Combined with the network isolation effect, evaluate the traffic interaction between subnets, and determine whether the current network isolation strategy meets expectations. If unexpected traffic interaction is found between different tenants, record the abnormal situation for subsequent adjustment of the isolation strategy. Finally, generate a subnet optimization report based on all analysis data and store it in the database for subsequent optimization of the subnet division strategy.
[0060] S3203: Based on the analysis results, dynamically adjust the parameters of the constraint optimization model, the parameters of the constraint optimization model include subnet division rules, load balancing weights, address pool allocation ratios, and tenant isolation strategies.
[0061] Specifically, parse the subnet optimization report, extract the analysis results of subnet resource utilization, load balancing and network isolation effect, adjust the subnet division rules according to the IP address usage, if some subnets have long-term IP address shortage, appropriately increase the IP address range of the subnet, if some subnets have long-term IP address waste, reduce the size of the subnet, adjust the load balancing weight, ensure that high-load areas can obtain more resources when subnetting, reduce network congestion problems, optimize the address pool allocation ratio based on historical data, ensure that IP address resources are more evenly distributed among different subnets, if loopholes are found in the tenant isolation strategy, adjust the tenant isolation rules of the constraint optimization model, ensure that network isolation of different tenants meets business needs, and finally store the optimized constraint optimization model parameters in the database for call in subsequent subnet division process to improve the dynamic adaptability and resource utilization of subnet division.
[0062] In one embodiment, if Figure 6 As shown, in step S40, that is, when a DHCP request is received, an available IP address is selected from the dynamic address pool and a corresponding DHCP response message is generated, which specifically includes: S41: Parse the DHCP request and determine the subnet where the requesting device is located.
[0063] Specifically, it receives and parses the DHCP request message, extracts the device's MAC address, client identifier, requested IP address and other related fields, queries the currently allocated IP address record, and directly confirms the subnet to which it belongs if the requesting device has been assigned an IP address and the lease has not expired. If the requesting device has never obtained an IP address or the lease has expired, it determines the subnet range of the device based on the Option field information in the DHCP request, such as the subnet identifier, gateway address, etc., combined with the current network topology information, matches the switch, access port and VLAN information where the device is located, and stores the parsed results in a temporary database for subsequent IP address allocation steps.
[0064] S42: According to the dynamic address pool of the subnet where the requesting device is located and a pre-defined IP address allocation policy, an available IP address in the dynamic address pool is selected.
[0065] Specifically, based on the device subnet information obtained through analysis, the dynamic address pool of the corresponding subnet is queried, the list of currently available IP addresses is read, and based on the pre-established IP address allocation strategy, free addresses of low-load subnets are preferentially selected. If the current subnet load is high, a determination is made as to whether cross-subnet allocation is allowed. If allowed, an available address is searched in an adjacent subnet. If the device's MAC address or client identifier matches the historical record, the IP address previously used by the device is preferentially allocated to reduce the impact of address changes on the business. If the device belongs to a high-priority business, an IP address in a low-latency or high-bandwidth subnet is selected based on the business priority information. If the requesting device belongs to a special tenant and the tenant isolation policy requires the allocation of a specific range of IP addresses, an available IP address is selected from the tenant's reserved address pool, and the allocation status of the address is marked to ensure that it is not occupied by other devices.
[0066] S43: Determine the network configuration information corresponding to the available IP address according to the lease duration, preset service priority and network isolation requirements defined in the initial network configuration requirements.
[0067] Specifically, based on the lease duration parameters in the initial network configuration requirements, the lease validity period of the device is determined. If the device is a fixed terminal or server, a long-term lease is assigned. If the device is a temporary access terminal or visitor device, a short-term lease is assigned. Based on the service priority information, it is determined whether additional network resource guarantees are needed. If the device belongs to a high-priority service, such as a video conferencing terminal or a critical business server, the QoS policy is enabled in the configuration to prioritize the allocation of low-latency and high-bandwidth network resources. Based on the network isolation requirements, check whether the IP address belongs to the isolated address pool. If the device belongs to an independent tenant, add access control rules to the assigned configuration to ensure that devices of different tenants cannot communicate directly. Finally, a complete network configuration information including the IP address, subnet mask, gateway address, DNS server and lease duration is generated, and the allocation record of the device is stored for subsequent lease management and renewal processing.
[0068] S44: Generate a corresponding DHCP response message according to the available IP address and network configuration information.
[0069] Specifically, based on the selected available IP address and the determined network configuration information, a DHCP Offer message is constructed, and parameters such as the allocated IP address, subnet mask, default gateway, DNS server address, and lease duration are filled in. If the device has confirmed the IP address allocation, the same configuration information is included in the DHCP Ack message, and the lease validity period is set. If the IP address pool is insufficient or the device does not meet the allocation conditions, a DHCP NAK message is returned to reject the address allocation request. All generated DHCP response messages are integrity checked before being sent to ensure that all fields comply with the DHCP protocol specification, and are broadcast or unicast to the DHCP client of the requesting device via the UDP protocol to complete the address allocation process, and the allocation log is recorded for subsequent query and management.
[0070] In one embodiment, if Figure 7 As shown, the SDN-based subnet address allocation method also includes: S60: When the lease of the allocated IP address is about to expire, a lease renewal notification is sent to the corresponding requesting device. If the requesting device does not send a lease renewal request and the online status of the requesting device is still not detected after the lease expires, the allocated IP address is released and returned to the dynamic address pool.
[0071] Specifically, within a preset time period before the lease expires, a DHCP_Renewal request is sent to the device. If the device responds and requests renewal, the lease time is updated and the device usage status is re-recorded. If the device does not respond, the lease grace period begins and the device's online status continues to be detected. If no renewal request is received after the grace period, the device's online status is detected through ARP or ICMP_Ping. If the device is still active, the lease is automatically renewed and the current IP address is retained. If the device does not respond and no traffic activity is detected within multiple detection cycles, the device is determined to be offline, and the IP address is released, re-marked as allocatable, and the address is returned to the dynamic address pool for allocation to new devices.
[0072] S70: When an IP address that has not been used for a long time is detected or the requesting device is offline, the corresponding IP address is reclaimed and reallocated according to a preset reclaiming policy.
[0073] Specifically, the list of allocated IP addresses is scanned periodically, and the usage of each IP address is counted. If an IP address has not generated data traffic for a long time and the device has not sent a renewal request, it is marked as "recyclable". If the IP address belongs to a long-term offline device, it is processed according to the recycling policy. If the recycling policy allows immediate recycling, the IP address is directly released and returned to the dynamic address pool. If the recycling policy requires gradual release, an observation period is entered, during which the activity status of the device continues to be detected. If the device is still not detected to be back online after the observation period, the IP address is forcibly released and the IP binding relationship of the device is removed from the allocation record so that subsequent devices can use the IP address. At the same time, the recycling log is stored for the administrator to review or adjust the recycling policy.
[0074] S80: Obtain changes in business requirements, dynamically adjust subnet division according to the changes in business requirements, and adjust subnet configuration.
[0075] Specifically, monitor the change events of business demand and regularly analyze the business traffic data. If the traffic growth or reduction of a specific business is detected, determine whether it is necessary to adjust the subnet range used by the business. If the business traffic continues to grow and the available IP addresses of the current subnet are about to be exhausted, trigger the subnet expansion operation, adjust the subnet boundary, and add new address blocks to meet the business growth needs. If the business demand decreases and the current subnet address utilization rate continues to be lower than the preset threshold, trigger the subnet contraction operation, recycle some unused IP addresses, and return them to the global address pool to ensure the reasonable allocation of IP address resources. If a new business is detected to be online and requires an independent subnet environment, a new subnet configuration is automatically generated according to the preset subnet division strategy, and a corresponding dynamic address pool is created to meet the network needs of the new business. Finally, the adjusted subnet configuration is synchronized to the network equipment and DHCP server to ensure that all network devices and terminal devices can communicate according to the latest address planning, and store the adjustment log for subsequent analysis and optimization.
[0076] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0077] In one embodiment, a subnet address allocation system based on SDN is provided, and the subnet address allocation system based on SDN corresponds one-to-one to the subnet address allocation method based on SDN in the above embodiment. Figure 8 As shown, the SDN-based subnet address allocation system includes a demand acquisition module, a network information collection module, a division module, an address allocation module and an adjustment module. The functional modules are described in detail as follows: The requirement acquisition module is used to obtain the initial network configuration requirements, which include global IP address segments, subnet division strategies, lease duration, and network isolation requirements. The network information collection module is used to collect network information in real time, including network topology information, device status and traffic load data; A partitioning module is used to dynamically partition address segments using an adaptive subnet partitioning algorithm based on network information and initial network configuration requirements, and generate corresponding subnet configurations and dynamic address pools; The address allocation module is used to select an available IP address from the dynamic address pool according to a pre-defined IP address allocation policy when receiving a DHCP request, generate a corresponding DHCP response message, and send the DHCP response message to the requesting device to complete the address allocation; The adjustment module is used to monitor the real-time data after address allocation, including IP address usage, device load data and topology changes, and dynamically adjust the subnet configuration and dynamic address pool according to the real-time data.
[0078] Optionally, the requirements module includes: The demand analysis submodule is used to receive the network configuration demand data submitted by the user, analyze the network configuration demand data submitted by the user, and extract the global IP address segment, subnet division strategy, lease duration, network isolation requirements, preset business priorities and tenant isolation requirements; The integration submodule is used to statistically integrate the global IP address segments, subnet division strategies, lease durations, network isolation requirements, preset business priorities, and tenant isolation requirements to obtain initial network configuration requirements.
[0079] Optionally, the network information collection module includes: The network topology acquisition submodule is used to acquire network topology information within a preset time period. The network topology information includes the connection status, port information and link quality data between various devices. The real-time monitoring status submodule is used to monitor the status data of each network device in real time. The status data includes the device operation status, CPU and memory load, fault alarm and key indicators; The traffic statistics submodule is used to determine the real-time data traffic situation of each network area through traffic statistics and obtain the traffic load data of each node; The network integration submodule is used to integrate and analyze network topology information, device status data and traffic load data to obtain network information.
[0080] Optionally, the partitioning modules include: Determine the candidate sub-module, which is used to preliminarily divide multiple candidate subnets and determine the candidate subnet solution according to the global IP address segment in the initial network configuration requirements and the network topology information in the network information; The screening submodule is used to screen and optimize the candidate subnet solutions by using the constraint optimization model, combining the device status, traffic load data and network isolation requirements, determine the subnet scale and division boundaries, and generate the subnet configuration; The address pool building submodule is used to build a dynamic address pool for each subnet according to the subnet configuration; The allocation strategy determination submodule is used to formulate a corresponding IP address allocation strategy based on the lease duration, preset service priority and isolation requirements in the dynamic address pool and the initial network configuration requirements, and obtain a pre-formulated IP address allocation strategy. The pre-formulated IP address allocation strategy is used to guide the subsequent DHCP address allocation process.
[0081] Optionally, the SDN-based subnet address allocation system further includes: The historical data collection module is used to collect historical network operation data, including historical IP address usage, device load, network topology changes and traffic load data; The analysis and operation module is used to analyze subnet resource utilization, load balancing and network isolation effects based on historical network operation data, evaluate the applicability of existing subnet division strategies, and generate analysis results; The optimization model parameter module is used to dynamically adjust the parameters of the constraint optimization model based on the analysis results. The parameters of the constraint optimization model include subnet division rules, load balancing weights, address pool allocation ratios, and tenant isolation strategies. Optionally, the address allocation module includes: The subnet determination submodule is used to parse the DHCP request and determine the subnet where the requesting device is located; The address selection submodule is used to select an available IP address in the dynamic address pool according to the dynamic address pool of the subnet where the requesting device is located and a pre-defined IP address allocation strategy; Determine the network configuration submodule, which is used to determine the network configuration information corresponding to the available IP address according to the lease duration, preset service priority and network isolation requirements defined in the initial network configuration requirements; The message generation submodule is used to generate a corresponding DHCP response message according to the available IP address and network configuration information.
[0082] Optionally, the SDN-based subnet address allocation system further includes: A lease renewal module is used to send a lease renewal notification to the corresponding requesting device when the lease of the allocated IP address is about to expire. If the requesting device does not send a lease renewal request and the online status of the requesting device is still not detected after the lease expires, the allocated IP address is released and returned to the dynamic address pool; A recycling module is used to recycle the corresponding IP address and reallocate it according to a preset recycling strategy when an IP address that has not been used for a long time is detected or the requesting device is offline; The division adjustment module is used to obtain changes in business requirements, dynamically adjust subnet divisions according to changes in business requirements, and adjust subnet configurations.
[0083] For the specific definition of a subnet address allocation system based on SDN, please refer to the definition of a subnet address allocation method based on SDN above, which will not be repeated here. Each module in the above-mentioned subnet address allocation system based on SDN can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0084] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.
[0085] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for allocating subnet addresses based on SDN, characterized in that: The SDN-based subnet address allocation method includes: Obtaining initial network configuration requirements, including global IP address segments, subnet division strategies, lease duration, and network isolation requirements; Collect network information in real time, including network topology information, device status and traffic load data; Based on the network information and the initial network configuration requirements, an adaptive subnetting algorithm is used to dynamically divide the address segments and generate corresponding subnet configurations and dynamic address pools; Upon receiving a DHCP request, selecting an available IP address from the dynamic address pool according to a pre-established IP address allocation policy, generating a corresponding DHCP response message, and sending the DHCP response message to the requesting device to complete address allocation; Real-time monitoring of real-time data after address allocation, the real-time data including IP address usage, device load data and topology changes, and dynamic adjustment of the subnet configuration and dynamic address pool according to the real-time data.
2. The method for allocating subnet addresses based on SDN according to claim 1, characterized in that: The obtaining of the initial network configuration requirements includes: The initial network configuration requirements further include preset service priorities and tenant isolation requirements; Receiving network configuration requirement data submitted by a user, parsing the network configuration requirement data submitted by the user, and extracting the global IP address segment, subnet division strategy, lease duration, network isolation requirement, preset service priority, and tenant isolation requirement; The global IP address segment, subnet division strategy, lease duration, network isolation requirements, preset business priorities and tenant isolation requirements are statistically integrated to obtain the initial network configuration requirements.
3. The method for allocating subnet addresses based on SDN according to claim 1, characterized in that: The real-time collection of network information includes: Collecting the network topology information within a preset time period, the network topology information including connection status, port information and link quality data between various devices; Real-time monitoring of the status data of each network device, including device operating status, CPU and memory load, fault alarms and key indicators; Determine the real-time data traffic situation of each network area through traffic statistics and obtain the traffic load data of each node; The network topology information, device status data and traffic load data are integrated and analyzed to obtain the network information.
4. The method for allocating subnet addresses based on SDN according to claim 2, characterized in that: The method of dynamically dividing the address segments based on the network information and the initial network configuration requirements using an adaptive subnet division algorithm to generate corresponding subnet configurations and dynamic address pools includes: Preliminarily divide a plurality of candidate subnets according to the global IP address segment in the initial network configuration requirement and the network topology information in the network information, and determine a candidate subnet solution; Using a constraint optimization model, combined with the device status, traffic load data, and network isolation requirements, the candidate subnet solutions are screened and optimized, the subnet scale and division boundary are determined, and the subnet configuration is generated; According to the subnet configuration, a dynamic address pool is constructed for each subnet; Based on the dynamic address pool and the lease duration, preset service priority and isolation requirements in the initial network configuration requirements, a corresponding IP address allocation strategy is formulated to obtain the pre-formulated IP address allocation strategy, which is used to guide the subsequent DHCP address allocation process.
5. The method for allocating subnet addresses based on SDN according to claim 4, characterized in that: Before screening and optimizing the candidate subnet solutions by using the constraint optimization model in combination with the device status, traffic load data, and network isolation requirements, the SDN-based subnet address allocation method further includes: Collect historical network operation data, including historical IP address usage, device load, network topology changes, and traffic load data; Analyze subnet resource utilization, load balancing and network isolation effects based on the historical network operation data, evaluate the applicability of existing subnet division strategies, and generate analysis results; Based on the analysis results, the parameters of the constraint optimization model are dynamically adjusted, and the parameters of the constraint optimization model include subnet division rules, load balancing weights, address pool allocation ratios, and tenant isolation strategies.
6. The method for allocating subnet addresses based on SDN according to claim 4, characterized in that: When receiving a DHCP request, selecting an available IP address from the dynamic address pool and generating a corresponding DHCP response message includes: Parsing the DHCP request to determine the subnet where the requesting device is located; According to the dynamic address pool of the subnet where the requesting device is located and the pre-established IP address allocation policy, selecting an available IP address in the dynamic address pool; Determine the network configuration information corresponding to the available IP address according to the lease duration, preset service priority and network isolation requirement defined in the initial network configuration requirement; The corresponding DHCP response message is generated according to the available IP address and network configuration information.
7. The method for allocating subnet addresses based on SDN according to claim 4, characterized in that: The SDN-based subnet address allocation method further includes: When the lease of the allocated IP address is about to expire, a lease renewal notification is sent to the corresponding requesting device. If the requesting device does not send a lease renewal request and the online status of the requesting device is still not detected after the lease expires, the allocated IP address is released and returned to the dynamic address pool; When an IP address that has not been used for a long time is detected or the requesting device is offline, the corresponding IP address is recovered and reallocated according to a preset recovery strategy; A change in business demand is obtained, subnet division is dynamically adjusted according to the change in business demand, and the subnet configuration is adjusted.
8. A subnet address allocation system based on SDN, characterized in that: The SDN-based subnet address allocation system includes: A demand acquisition module is used to obtain initial network configuration requirements, which include global IP address segments, subnet division strategies, lease durations, and network isolation requirements; A network information collection module is used to collect network information in real time, wherein the network information includes network topology information, device status and traffic load data; A partitioning module, for dynamically partitioning address segments using an adaptive subnet partitioning algorithm based on the network information and initial network configuration requirements, and generating corresponding subnet configurations and dynamic address pools; The address allocation module is used to select an available IP address from the dynamic address pool according to a pre-defined IP address allocation policy when receiving a DHCP request, generate a corresponding DHCP response message, and send the DHCP response message to the requesting device to complete the address allocation; The adjustment module is used to monitor the real-time data after address allocation in real time, wherein the real-time data includes IP address usage, device load data and topology changes, and dynamically adjust the subnet configuration and dynamic address pool according to the real-time data.
Citation Information
Patent Citations
Isolation method and device for dynamic network topology resources
CN117749631A
IP address resource allocation method and system based on machine learning
CN119135657A
IP address checking method and device based on port state data
CN119383171A
IP address management method and system
CN119520482A
Adaptive IP address allocating system and allocationmethod the same
KR1020050032264A
Cited By
Computing power allocation optimization method and system for multiple data processing tasks
CN120578510A
IP automatic planning method and device suitable for large-scale simulation network construction and medium
CN121357152A