DHCP (Dynamic Host Configuration Protocol) address pool management method and system for gateway and router access
By dynamically adjusting the size and allocation strategy of the DHCP address pool, combined with machine learning algorithms and real-time monitoring, the problems of address waste and limited performance in traditional DHCP address pool management are solved, achieving more efficient IP address utilization and network performance improvement.
Patent Information
- Application Number
- CN202410765858.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-20
AI Technical Summary
The traditional DHCP address pool management method has the problems of wasted addresses, inflexible management, and limited performance. It cannot effectively utilize IP addresses and adapt to changes in network load.
Create a dynamically adjusted address pool through the DHCP service, monitor network load parameters in real time, divide the address sub-pool and allocate IP addresses according to device type and priority, use machine learning algorithms to calculate load evaluation values, dynamically adjust the size of the address pool, and address idle or failed addresses. The IP address is recycled.
It improves the utilization rate of DHCP address pool and the flexibility of IP address allocation, improves the network performance of gateways and routers, reduces the idle waste of IP addresses, and flexibly responds to changes in network load and access requirements.
Smart Images

Figure CN118677879A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of DHCP address management, and in particular to a DHCP address pool management method and system for gateway and router access. Background Art
[0002] When a smart terminal accesses a gateway or router, it needs to be allocated an IP address through the DHCP service. The traditional DHCP service uses a static DHCP address pool allocation method, that is, a certain range of IP addresses is pre-configured in the DHCP address pool, and then IP addresses are allocated according to demand. However, the traditional method has the following disadvantages:
[0003] 1. Address waste: A static DHCP address pool may lead to a waste of IP addresses, because a portion of the IP addresses in the pre-configured DHCP address pool may remain idle for a long time and not be used.
[0004] 2. Inflexible management: The DHCP service cannot dynamically adjust the IP address allocation strategy based on real-time network conditions and the needs of smart terminals.
[0005] 3. Limited performance: The static DHCP address pool is subject to limited performance when facing changes in network load. It may not be possible to adjust the IP address allocation strategy in time to adapt to network needs, thereby affecting the network performance of gateways and routers.
[0006] Therefore, how to provide a DHCP address pool management method and system for gateway and router access to improve the utilization rate of the DHCP address pool, the flexibility of IP address allocation, and the network performance of gateway and router access has become a technical problem to be solved urgently. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a DHCP address pool management method and system for gateway and router access, so as to improve the utilization rate of the DHCP address pool, the flexibility of IP address allocation, and the network performance of gateway and router access.
[0008] In a first aspect, the present invention provides a DHCP address pool management method for gateway and router access, comprising the following steps:
[0009] Step S1, creating a DHCP address pool including a plurality of IP addresses through a DHCP service, setting an address allocation strategy for the DHCP address pool, and monitoring network load parameters of the network in real time;
[0010] Step S2: The DHCP service dynamically adjusts the size of the DHCP address pool based on the network load parameter;
[0011] Step S3, the DHCP service obtains an access request from the smart terminal, and based on the access request and the address allocation policy, selects a corresponding IP address from the DHCP address pool and allocates it to the smart terminal to access the gateway or router;
[0012] Step S4, the DHCP service performs real-time monitoring and dynamic recovery of IP addresses in the DHCP address pool;
[0013] Step S5: The DHCP service dynamically adjusts the address allocation strategy of the DHCP address pool based on the network load parameters and the access requirements of the intelligent terminal.
[0014] Furthermore, in step S1, the address allocation strategy is specifically: dividing the DHCP address pool into a plurality of address sub-pools, each of the address sub-pools managing a plurality of IP addresses respectively, setting the device type and the allocation priority of the IP address corresponding to each of the address sub-pools, and allocating the IP address based on the device type and the allocation priority;
[0015] The network load parameters include at least the number of device connections, device activity, traffic, bandwidth utilization, packet loss rate, delay, jitter, throughput, error rate, peak traffic, number of sessions, and resource utilization.
[0016] Furthermore, the step S2 is specifically as follows:
[0017] The DHCP service calculates a load evaluation value based on the network load parameter by a machine learning algorithm, dynamically adjusts a scaling ratio of the DHCP address pool based on the load evaluation value, and recycles idle IP addresses or adds new IP addresses based on the scaling ratio to dynamically adjust the size of the DHCP address pool.
[0018] Furthermore, the step S3 is specifically as follows:
[0019] The DHCP service obtains a connection request from the smart terminal that carries an account number, password, device type, timestamp, and a hash value, where the hash value is calculated by hashing the account number, password, device type, and timestamp;
[0020] The connection request is parsed to obtain the account number, password, device type, timestamp and hash value, and after performing integrity verification through the hash value, a timeliness verification is performed through the timestamp. Then, the account number and password are matched and verified through a preset password table. Based on the device type and address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the smart terminal to access the gateway or router.
[0021] Furthermore, the step S4 is specifically as follows:
[0022] The DHCP service monitors the IP addresses in the DHCP address pool in real time, and dynamically reclaims the IP addresses whose idle time exceeds a preset time threshold and expires.
[0023] In a second aspect, the present invention provides a DHCP address pool management system for gateway and router access, comprising the following modules:
[0024] A network monitoring module, used to create a DHCP address pool including a number of IP addresses through a DHCP service, set an address allocation strategy for the DHCP address pool, and monitor network load parameters of the network in real time;
[0025] A DHCP address pool management module, used for the DHCP service to dynamically adjust the size of the DHCP address pool based on the network load parameter;
[0026] An IP address allocation module is used for obtaining an access request of an intelligent terminal through a DHCP service, and based on the access request and an address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the intelligent terminal so as to access a gateway or a router;
[0027] An IP address recovery module is used for the DHCP service to monitor and dynamically recover the IP addresses in the DHCP address pool in real time;
[0028] The address allocation strategy adjustment module is used for the DHCP service to dynamically adjust the address allocation strategy of the DHCP address pool based on the network load parameters and the access requirements of the intelligent terminal.
[0029] Further, in the network monitoring module, the address allocation strategy is specifically: dividing the DHCP address pool into a plurality of address sub-pools, each of the address sub-pools respectively managing a plurality of IP addresses, setting a device type corresponding to each of the address sub-pools and an allocation priority of the IP address, and allocating the IP address based on the device type and the allocation priority;
[0030] The network load parameters include at least the number of device connections, device activity, traffic, bandwidth utilization, packet loss rate, delay, jitter, throughput, error rate, peak traffic, number of sessions, and resource utilization.
[0031] Furthermore, the DHCP address pool management module is specifically used to:
[0032] The DHCP service calculates a load evaluation value based on the network load parameter by a machine learning algorithm, dynamically adjusts a scaling ratio of the DHCP address pool based on the load evaluation value, and recycles idle IP addresses or adds new IP addresses based on the scaling ratio to dynamically adjust the size of the DHCP address pool.
[0033] Furthermore, the IP address allocation module is specifically used to:
[0034] The DHCP service obtains a connection request from the smart terminal that carries an account number, password, device type, timestamp, and a hash value, where the hash value is calculated by hashing the account number, password, device type, and timestamp;
[0035] The connection request is parsed to obtain the account number, password, device type, timestamp and hash value, and after performing integrity verification through the hash value, a timeliness verification is performed through the timestamp. Then, the account number and password are matched and verified through a preset password table. Based on the device type and address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the smart terminal to access the gateway or router.
[0036] Furthermore, the IP address recovery module is specifically used for:
[0037] The DHCP service monitors the IP addresses in the DHCP address pool in real time, and dynamically reclaims the IP addresses whose idle time exceeds a preset time threshold and expires.
[0038] The advantages of the present invention are:
[0039] A DHCP address pool including several IP addresses is created through the DHCP service, and the address allocation policy of the DHCP address pool is set. The DHCP service dynamically adjusts the size of the DHCP address pool based on the real-time monitored network load parameters; then the DHCP service obtains the access request of the smart terminal, and based on the access request and the address allocation policy, selects the corresponding IP address from the DHCP address pool and allocates it to the smart terminal to access the gateway or router; the DHCP service monitors and dynamically recycles the IP addresses in the DHCP address pool in real time, and dynamically adjusts the address allocation policy of the DHCP address pool based on the network load parameters and the access requirements of the smart terminal; that is, in the process of DHCP address pool management, the size of the DHCP address pool is dynamically adjusted based on the network load parameters, and the IP addresses whose idle time exceeds the preset time threshold and expired are dynamically recycled to reduce the idle waste of IP addresses, and the address allocation policy can be dynamically adjusted based on the network load parameters and the access requirements of the smart terminal to flexibly respond to changes in network load and access requirements, and ensure the network performance of gateway and router access, which ultimately greatly improves the utilization rate of the DHCP address pool, the flexibility of IP address allocation, and the network performance of gateway and router access. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0041] Figure 1 The invention discloses a flow chart of a DHCP address pool management method for gateway and router access.
[0042] Figure 2 The present invention is a structural diagram of a DHCP address pool management system for gateway and router access. DETAILED DESCRIPTION
[0043] The technical solution in the embodiments of the present application has the following overall idea: in the process of DHCP address pool management, the size of the DHCP address pool is dynamically adjusted based on network load parameters, and IP addresses whose idle time exceeds a preset time threshold and are invalid are dynamically recycled to reduce idle waste of IP addresses. The address allocation strategy is dynamically adjusted based on network load parameters and access requirements of smart terminals to flexibly respond to changes in network load and access requirements, ensure the network performance of gateway and router access, and thereby improve the utilization rate of the DHCP address pool, the flexibility of IP address allocation, and the network performance of gateway and router access.
[0044] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a DHCP address pool management method for gateway and router access of the present invention comprises the following steps:
[0045] Step S1, creating a DHCP address pool including several IP addresses through DHCP service, setting the address allocation strategy of the DHCP address pool, and monitoring the network load parameters of the network in real time; the DHCP address pool is used to allocate IP addresses to intelligent terminals accessing the network; the network load parameters are used to dynamically adjust the size of the DHCP address pool and the address allocation strategy; the address allocation strategy is the allocation strategy of the IP address, which can be set as needed during specific implementation;
[0046] Step S2: The DHCP service dynamically adjusts the size of the DHCP address pool based on the network load parameter to improve the utilization rate of the DHCP address pool;
[0047] Step S3, the DHCP service obtains an access request from the smart terminal, and based on the access request and the address allocation policy, selects a corresponding IP address from the DHCP address pool and allocates it to the smart terminal to access the gateway or router;
[0048] Step S4: The DHCP service monitors and dynamically recycles the IP addresses in the DHCP address pool in real time to improve the utilization efficiency of IP address resources;
[0049] Step S5: The DHCP service dynamically adjusts the address allocation strategy of the DHCP address pool based on the network load parameters and the access requirements of the intelligent terminal, that is, optimizes the address allocation strategy, thereby optimizing network performance.
[0050] In step S1, the address allocation strategy is specifically: dividing the DHCP address pool into a plurality of address sub-pools, each of which manages a plurality of IP addresses, setting the device type and the allocation priority of the IP address corresponding to each of the address sub-pools, and allocating the IP address based on the device type and the allocation priority;
[0051] The network load parameters include at least the number of device connections, device activity, traffic, bandwidth utilization, packet loss rate, delay, jitter, throughput, error rate, peak traffic, number of sessions, and resource utilization.
[0052] The step S2 is specifically as follows:
[0053] The DHCP service calculates a load evaluation value based on the network load parameter by a machine learning algorithm, dynamically adjusts a scaling ratio of the DHCP address pool based on the load evaluation value, and recycles idle IP addresses or adds new IP addresses based on the scaling ratio to dynamically adjust the size of the DHCP address pool.
[0054] The step S3 is specifically as follows:
[0055] The DHCP service obtains a connection request from the smart terminal that carries an account number, password, device type, timestamp, and a hash value, where the hash value is calculated by hashing the account number, password, device type, and timestamp;
[0056] Parse the connection request to obtain the account number, password, device type, timestamp and hash value, perform integrity check through the hash value, perform timeliness check through the timestamp, then perform matching check on the account number and password through a preset password table, and then select the corresponding IP address from the DHCP address pool based on the device type and address allocation strategy to allocate to the smart terminal to access the gateway or router, that is, match the corresponding address sub-pool based on the device type, and then select an unallocated, non-expired, and highest allocation priority IP address from the address sub-pool for allocation. The DHCP address pool marks the already allocated IP addresses.
[0057] The step S4 is specifically as follows:
[0058] The DHCP service monitors the IP addresses in the DHCP address pool in real time, and dynamically reclaims the IP addresses whose idle time exceeds a preset time threshold and expires.
[0059] A preferred embodiment of a DHCP address pool management system for gateway and router access of the present invention includes the following modules:
[0060] The network monitoring module is used to create a DHCP address pool including several IP addresses through the DHCP service, set the address allocation strategy of the DHCP address pool, and monitor the network load parameters of the network in real time; the DHCP address pool is used to allocate IP addresses to intelligent terminals accessing the network; the network load parameters are used to dynamically adjust the size of the DHCP address pool and the address allocation strategy; the address allocation strategy is the allocation strategy of the IP address, which can be set as needed during specific implementation;
[0061] A DHCP address pool management module, used for the DHCP service to dynamically adjust the size of the DHCP address pool based on the network load parameter to improve the utilization rate of the DHCP address pool;
[0062] An IP address allocation module is used for obtaining an access request of an intelligent terminal through a DHCP service, and based on the access request and an address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the intelligent terminal so as to access a gateway or a router;
[0063] An IP address recovery module is used for the DHCP service to monitor and dynamically recover the IP addresses in the DHCP address pool in real time to improve the utilization efficiency of IP address resources;
[0064] The address allocation strategy adjustment module is used for the DHCP service to dynamically adjust the address allocation strategy of the DHCP address pool based on the network load parameters and the access requirements of the intelligent terminal, that is, to optimize the address allocation strategy and thus optimize the network performance.
[0065] In the network monitoring module, the address allocation strategy is specifically: dividing the DHCP address pool into a plurality of address sub-pools, each of the address sub-pools manages a plurality of IP addresses respectively, setting the device type and the allocation priority of the IP address corresponding to each of the address sub-pools, and allocating the IP address based on the device type and the allocation priority;
[0066] The network load parameters include at least the number of device connections, device activity, traffic, bandwidth utilization, packet loss rate, delay, jitter, throughput, error rate, peak traffic, number of sessions, and resource utilization.
[0067] The DHCP address pool management module is specifically used for:
[0068] The DHCP service calculates a load evaluation value based on the network load parameter by a machine learning algorithm, dynamically adjusts a scaling ratio of the DHCP address pool based on the load evaluation value, and recycles idle IP addresses or adds new IP addresses based on the scaling ratio to dynamically adjust the size of the DHCP address pool.
[0069] The IP address allocation module is specifically used for:
[0070] The DHCP service obtains a connection request from the smart terminal that carries an account number, password, device type, timestamp, and a hash value, where the hash value is calculated by hashing the account number, password, device type, and timestamp;
[0071] Parse the connection request to obtain the account number, password, device type, timestamp and hash value, perform integrity check through the hash value, perform timeliness check through the timestamp, then perform matching check on the account number and password through a preset password table, and then select the corresponding IP address from the DHCP address pool based on the device type and address allocation strategy to allocate to the smart terminal to access the gateway or router, that is, match the corresponding address sub-pool based on the device type, and then select an unallocated, non-expired, and highest allocation priority IP address from the address sub-pool for allocation. The DHCP address pool marks the already allocated IP addresses.
[0072] The IP address recovery module is specifically used for:
[0073] The DHCP service monitors the IP addresses in the DHCP address pool in real time, and dynamically reclaims the IP addresses whose idle time exceeds a preset time threshold and expires.
[0074] In summary, the advantages of the present invention are:
[0075] A DHCP address pool including several IP addresses is created through the DHCP service, and the address allocation policy of the DHCP address pool is set. The DHCP service dynamically adjusts the size of the DHCP address pool based on the real-time monitored network load parameters; then the DHCP service obtains the access request of the smart terminal, and based on the access request and the address allocation policy, selects the corresponding IP address from the DHCP address pool and allocates it to the smart terminal to access the gateway or router; the DHCP service monitors and dynamically recycles the IP addresses in the DHCP address pool in real time, and dynamically adjusts the address allocation policy of the DHCP address pool based on the network load parameters and the access requirements of the smart terminal; that is, in the process of DHCP address pool management, the size of the DHCP address pool is dynamically adjusted based on the network load parameters, and the IP addresses whose idle time exceeds the preset time threshold and expired are dynamically recycled to reduce the idle waste of IP addresses, and the address allocation policy can be dynamically adjusted based on the network load parameters and the access requirements of the smart terminal to flexibly respond to changes in network load and access requirements, and ensure the network performance of gateway and router access, which ultimately greatly improves the utilization rate of the DHCP address pool, the flexibility of IP address allocation, and the network performance of gateway and router access.
[0076] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A DHCP address pool management method for gateway and router access, characterized in that: The steps include: Step S1, creating a DHCP address pool including a plurality of IP addresses through a DHCP service, setting an address allocation strategy for the DHCP address pool, and monitoring network load parameters of the network in real time; Step S2: The DHCP service dynamically adjusts the size of the DHCP address pool based on the network load parameter; Step S3, the DHCP service obtains an access request from the smart terminal, and based on the access request and the address allocation policy, selects a corresponding IP address from the DHCP address pool and allocates it to the smart terminal to access the gateway or router; Step S4, the DHCP service performs real-time monitoring and dynamic recovery of IP addresses in the DHCP address pool; Step S5: The DHCP service dynamically adjusts the address allocation strategy of the DHCP address pool based on the network load parameters and the access requirements of the intelligent terminal.
2. A DHCP address pool management method for gateway and router access as claimed in claim 1, characterized in that: In step S1, the address allocation strategy is specifically: dividing the DHCP address pool into a plurality of address sub-pools, each of which manages a plurality of IP addresses, setting the device type and the allocation priority of the IP address corresponding to each of the address sub-pools, and allocating the IP address based on the device type and the allocation priority; The network load parameters include at least the number of device connections, device activity, traffic, bandwidth utilization, packet loss rate, delay, jitter, throughput, error rate, peak traffic, number of sessions, and resource utilization.
3. A DHCP address pool management method for gateway and router access as claimed in claim 1, characterized in that: The step S2 is specifically as follows: The DHCP service calculates a load evaluation value based on the network load parameter by a machine learning algorithm, dynamically adjusts a scaling ratio of the DHCP address pool based on the load evaluation value, and recycles idle IP addresses or adds new IP addresses based on the scaling ratio to dynamically adjust the size of the DHCP address pool.
4. A DHCP address pool management method for gateway and router access as claimed in claim 1, characterized in that: The step S3 is specifically as follows: The DHCP service obtains a connection request from the smart terminal that carries an account number, password, device type, timestamp, and a hash value, where the hash value is calculated by hashing the account number, password, device type, and timestamp; The connection request is parsed to obtain the account number, password, device type, timestamp and hash value, and after performing integrity verification through the hash value, a timeliness verification is performed through the timestamp. Then, the account number and password are matched and verified through a preset password table. Based on the device type and address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the smart terminal to access the gateway or router.
5. A DHCP address pool management method for gateway and router access as claimed in claim 1, characterized in that: The step S4 is specifically as follows: The DHCP service monitors the IP addresses in the DHCP address pool in real time, and dynamically reclaims the IP addresses whose idle time exceeds a preset time threshold and expires.
6. A DHCP address pool management system for gateway and router access, characterized in that: Includes the following modules: A network monitoring module, used to create a DHCP address pool including a number of IP addresses through a DHCP service, set an address allocation strategy for the DHCP address pool, and monitor network load parameters of the network in real time; A DHCP address pool management module, used for the DHCP service to dynamically adjust the size of the DHCP address pool based on the network load parameter; An IP address allocation module is used for obtaining an access request of an intelligent terminal through a DHCP service, and based on the access request and an address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the intelligent terminal so as to access a gateway or a router; An IP address recovery module is used for the DHCP service to monitor and dynamically recover the IP addresses in the DHCP address pool in real time; The address allocation strategy adjustment module is used for the DHCP service to dynamically adjust the address allocation strategy of the DHCP address pool based on the network load parameters and the access requirements of the intelligent terminal.
7. A DHCP address pool management system for gateway and router access as claimed in claim 6, characterized in that: In the network monitoring module, the address allocation strategy is specifically: dividing the DHCP address pool into a plurality of address sub-pools, each of the address sub-pools manages a plurality of IP addresses respectively, setting the device type and the allocation priority of the IP address corresponding to each of the address sub-pools, and allocating the IP address based on the device type and the allocation priority; The network load parameters include at least the number of device connections, device activity, traffic, bandwidth utilization, packet loss rate, delay, jitter, throughput, error rate, peak traffic, number of sessions, and resource utilization.
8. A DHCP address pool management system for gateway and router access as claimed in claim 6, characterized in that: The DHCP address pool management module is specifically used for: The DHCP service calculates a load evaluation value based on the network load parameter by a machine learning algorithm, dynamically adjusts a scaling ratio of the DHCP address pool based on the load evaluation value, and recycles idle IP addresses or adds new IP addresses based on the scaling ratio to dynamically adjust the size of the DHCP address pool.
9. A DHCP address pool management system for gateway and router access as claimed in claim 6, characterized in that: The IP address allocation module is specifically used for: The DHCP service obtains a connection request from the smart terminal that carries an account number, password, device type, timestamp, and a hash value, where the hash value is calculated by hashing the account number, password, device type, and timestamp; The connection request is parsed to obtain the account number, password, device type, timestamp and hash value, and after performing integrity verification through the hash value, a timeliness verification is performed through the timestamp. Then, the account number and password are matched and verified through a preset password table. Based on the device type and address allocation policy, a corresponding IP address is selected from the DHCP address pool and allocated to the smart terminal to access the gateway or router.
10. A DHCP address pool management system for gateway and router access as claimed in claim 6, characterized in that: The IP address recovery module is specifically used for: The DHCP service monitors the IP addresses in the DHCP address pool in real time, and dynamically reclaims the IP addresses whose idle time exceeds a preset time threshold and expires.
