CN103763405A - Method for quickly recovering DHCP leases - Google Patents
Method for quickly recovering DHCP leases Download PDFInfo
- Publication number
- CN103763405A CN103763405A CN201410027353.0A CN201410027353A CN103763405A CN 103763405 A CN103763405 A CN 103763405A CN 201410027353 A CN201410027353 A CN 201410027353A CN 103763405 A CN103763405 A CN 103763405A
- Authority
- CN
- China
- Prior art keywords
- lease
- terminal
- dhcp
- production line
- recyclable
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention provides a method for quickly recovering DHCP leases. When a terminal is offline, a WLAN module senses that the terminal is offline and sends information to inform a DHCP module, the DHCP module marks the lease of the terminal to be at a recoverable state, and the lease of the terminal is saved in a recoverable lease table; for leases in the recoverable lease table, if the using number of leases reaches a threshold, lease recovery checking is started; if the terminal is offline, the lease is recovered and marked to be at the idle state, the lease is used for being distributed to other terminals, and otherwise, the lease is not recovered; if the using number of leases does not reach the threshold, recovery checking is not started; the problem that an idle lease can not be used, and a new terminal can not acquire an address is solved, and IP address conflict caused by mistaken recovery of leases can not occur.
Description
Technical field
The present invention relates to field of network communication, a kind of method that particularly DHCP lease reclaims fast.
Background technology
Under WLAN environment, occur sometimes following situation: DHCP lease has all dispensed, the terminal of new access cannot be obtained DHCP lease, cannot apply for address; But the terminal that more in fact gets these leases has rolled off the production line or left, and because lease is not yet due, DHCP can not reclaim these leases, causes obviously available free DHCP lease, but can not be used;
If directly reclaim idle lease, may there is following problem again:
If originally using the terminal of this address is immediately reach the standard grade again after instantaneous rolling off the production line (as: wireless link concussion), when this terminal is reached the standard grade again, be generally that the Request message that directly sends DHCP is asked address that original application had been rather than from initial complete DHCP protocol interaction of transmission Discover start of heading, may be occurred following situation:
During instantaneous rolling off the production line, just have other client to reach the standard grade and applied for away this address, the application of this client is less than original address; Even if do not have other client just to reach the standard grade and apply for away this address, because address was released on server, so original address will not applied in direct Request address when this client is reached the standard grade again, client also needs in addition to carry out applied address from sending Discover start of heading complete DHCP reciprocal process again, causes delaying networking speed;
If originally took the terminal of this address, be after instantaneous rolling off the production line, immediately reach the standard grade again (wireless link concussion), and the Request message that does not send DHCP while reaching the standard grade is asked the address that application had been originally (because not yet due can also the continuation of the lease that this terminal is applied for before finding used), may occur: while rolling off the production line, just have other terminal to reach the standard grade and applied for away this address, and this terminal links is used original address while shaking again, can cause existing in wlan network IP address conflict.
Summary of the invention
The technical problem to be solved in the present invention, a kind of method that provides DHCP lease to reclaim is fast provided, can be under WLAN environment the DHCP lease of the terminal that recovery has been rolled off the production line fast, thereby solve, because idle lease can not be used, cause new client application less than the problem of IP address and avoid being reclaimed and causing IP address conflict problem by mistake because of lease.
The present invention specifically comprises the steps:
When step 10, terminal roll off the production line, WLAN module perceives it and rolls off the production line, transmission information notice DHCP module, and DHCP module is labeled as recyclable state by the lease of this terminal, and is stored in addition in callable lease table;
If the lease quantity that step 20 is used reaches threshold values, for the lease in callable lease table, start the recyclable inspection of lease, otherwise do not start the recyclable inspection of lease;
After step 30, the recyclable inspection of startup lease, if terminal rolls off the production line, reclaim lease and be labeled as idle condition, for distributing to other-end, otherwise do not reclaim lease.
Further, described step 30 is further specially:
Start after the recyclable inspection of lease, by checking in every the first limiting time that the speed that specifies number lease sends the FORCERENEW message of DHCP to the IP address of terminal corresponding to the lease of each required inspection, notify this terminal again to ask lease; If do not receive REQUEST message in the second limiting time, represent definite off-line of this terminal, reclaim lease and be labeled as idle condition, for distributing to other-end; If receive REQUEST message in the second limiting time, represent that this terminal is online, delete the recyclable mark of this lease, from callable lease table, delete this lease, do not reclaim this lease.
Further, described terminal rolls off the production line and rolls off the production line for the associated message of transmission solution normally rolls off the production line or do not send the associated message of solution, during described terminal roaming, is not used as and rolls off the production line.
Further, described information comprises the IP address information that terminal is corresponding.
Tool of the present invention has the following advantages:
The inventive method under WLAN environment fast recovery rolled off the production line or the DHCP lease of overtime terminal, solve idle lease and can not be used and cause new terminal cannot obtain the problem of address, and there will not be and by mistake, reclaimed and cause IP address conflict because of lease.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Fig. 2 is for the present invention relates to module map.
Fig. 3 is the recyclable sequence chart of DHCP mark lease of the present invention.
Fig. 4 is DHCP verification of the present invention and reclaims lease sequence chart.
Embodiment
As shown in Figure 1, a kind of DHCP lease of the present invention fastly recovering, comprises the steps:
If the lease quantity that step 20 is used reaches threshold values, for the lease in callable lease table, start the recyclable inspection of lease, otherwise do not start the recyclable inspection of lease;
After step 30, the recyclable inspection of startup lease, if terminal rolls off the production line, reclaim lease and be labeled as idle condition, be used for distributing to other-end, otherwise do not reclaim lease: start after the recyclable inspection of lease, by checking in every the first limiting time that the speed that specifies number lease sends the FORCERENEW message of DHCP to the IP address of terminal corresponding to the lease of each required inspection, notify this terminal again to ask lease; If do not receive REQUEST message in the second limiting time, represent definite off-line of this terminal, reclaim lease and be labeled as idle condition, for distributing to other-end; If receive REQUEST message in the second limiting time, represent that this terminal is online, delete the recyclable mark of this lease, from callable lease table, delete this lease, do not reclaim this lease.
A specific embodiment of the present invention is as follows:
As shown in Figure 2, wireless controller comprises WLAN processing module and DHCP processing module, and as shown in Figure 3, WLAN processing module is received rolling off the production line of terminal or overtime notice; Notice DHCP processing module terminal and roll off the production line, in advertised information, mainly comprise corresponding IP address information;
DHCP processing module is received the notice of rolling off the production line of the terminal of WLAN processing module, and the state that identifies the lease of corresponding IP address is " recyclable ", and this lease is deposited in " recyclable " lease table;
As shown in Figure 4, when the lease quantity of using reaches threshold value (such as use lease surpass whole leases 90%), to the lease in " recyclable " lease table, to carry out every minor tick the first limiting time T1(as 2 seconds), the mode of at every turn taking out N (as 10) lease, IP address (terminal address) in the lease checking to needs sends DHCPRECONF message, notifies it again to obtain address; The second limiting time is set and is time-out time T2(as 1 second), T2 receives the REQUEST message of terminal (SET-1) response in the time, show not off-line of this terminal, remove " recyclable " mark, from " recyclable " lease table, delete this lease and respond confirmation message; If T2 does not receive the REQUEST message of terminal (SET-2) response in the time, think and reclaim this lease by the certain off-line of terminal.
Tool of the present invention has the following advantages:
The inventive method under WLAN environment fast recovery rolled off the production line or the DHCP lease of overtime terminal, solve idle lease and can not be used and cause new terminal cannot obtain the problem of address, and there will not be and by mistake, reclaimed and cause IP address conflict because of lease.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in equivalent modification and the variation done according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.
Claims (4)
1. the method that DHCP lease reclaims fast, is characterized in that: comprise the steps:
When step 10, terminal roll off the production line, WLAN module perceives it and rolls off the production line, transmission information notice DHCP module, and DHCP module is labeled as recyclable state by the lease of this terminal, and is stored in addition in callable lease table;
If the lease quantity that step 20 is used reaches threshold values, for the lease in callable lease table, start the recyclable inspection of lease, otherwise do not start the recyclable inspection of lease;
After step 30, the recyclable inspection of startup lease, if terminal rolls off the production line, reclaim lease and be labeled as idle condition, for distributing to other-end, otherwise do not reclaim lease.
2. the method that a kind of DHCP lease according to claim 1 reclaims fast, is characterized in that: described step 30 is further specially:
Start after the recyclable inspection of lease, by checking in every the first limiting time that the speed that specifies number lease sends the FORCERENEW message of DHCP to the IP address of terminal corresponding to the lease of each required inspection, notify this terminal again to ask lease; If do not receive REQUEST message in the second limiting time, represent definite off-line of this terminal, reclaim lease and be labeled as idle condition, for distributing to other-end; If receive REQUEST message in the second limiting time, represent that this terminal is online, delete the recyclable mark of this lease, from callable lease table, delete this lease, do not reclaim this lease.
3. the method that a kind of DHCP lease according to claim 1 reclaims fast, is characterized in that: described terminal rolls off the production line and rolls off the production line for the associated message of transmission solution normally rolls off the production line or do not send the associated message of solution, during described terminal roaming, is not used as and rolls off the production line.
4. the method that a kind of DHCP lease according to claim 1 reclaims fast, is characterized in that: described information comprises the IP address information that terminal is corresponding.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410027353.0A CN103763405A (en) | 2014-01-21 | 2014-01-21 | Method for quickly recovering DHCP leases |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410027353.0A CN103763405A (en) | 2014-01-21 | 2014-01-21 | Method for quickly recovering DHCP leases |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103763405A true CN103763405A (en) | 2014-04-30 |
Family
ID=50530563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410027353.0A Pending CN103763405A (en) | 2014-01-21 | 2014-01-21 | Method for quickly recovering DHCP leases |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103763405A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016202126A1 (en) * | 2015-06-19 | 2016-12-22 | 中兴通讯股份有限公司 | Method and device of reclaiming ip address and dynamic host configuration protocol server |
CN106470253A (en) * | 2016-11-21 | 2017-03-01 | 杭州迪普科技股份有限公司 | IP address recovery method and device |
CN106936942A (en) * | 2017-03-07 | 2017-07-07 | 迈普通信技术股份有限公司 | A kind of dhcp address recovery system and method |
CN108566669A (en) * | 2017-12-07 | 2018-09-21 | 惠州Tcl移动通信有限公司 | A kind of method of terminal intelligent power saving, terminal and the device with store function |
WO2020001045A1 (en) * | 2018-06-29 | 2020-01-02 | 华为技术有限公司 | Address management method and device |
CN111277590A (en) * | 2020-01-19 | 2020-06-12 | 深信服科技股份有限公司 | Device information screening method, firewall device, network device and storage medium |
-
2014
- 2014-01-21 CN CN201410027353.0A patent/CN103763405A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016202126A1 (en) * | 2015-06-19 | 2016-12-22 | 中兴通讯股份有限公司 | Method and device of reclaiming ip address and dynamic host configuration protocol server |
CN106331190A (en) * | 2015-06-19 | 2017-01-11 | 中兴通讯股份有限公司 | IP address withdrawing method and device, and dynamic host configuration protocol server |
CN106470253A (en) * | 2016-11-21 | 2017-03-01 | 杭州迪普科技股份有限公司 | IP address recovery method and device |
CN106470253B (en) * | 2016-11-21 | 2019-12-06 | 杭州迪普科技股份有限公司 | IP address recovery method and device |
CN106936942A (en) * | 2017-03-07 | 2017-07-07 | 迈普通信技术股份有限公司 | A kind of dhcp address recovery system and method |
CN108566669A (en) * | 2017-12-07 | 2018-09-21 | 惠州Tcl移动通信有限公司 | A kind of method of terminal intelligent power saving, terminal and the device with store function |
CN108566669B (en) * | 2017-12-07 | 2021-05-04 | 惠州Tcl移动通信有限公司 | Intelligent power saving method for terminal, terminal and device with storage function |
WO2020001045A1 (en) * | 2018-06-29 | 2020-01-02 | 华为技术有限公司 | Address management method and device |
CN110661897A (en) * | 2018-06-29 | 2020-01-07 | 华为技术有限公司 | Method and device for managing address |
CN111277590A (en) * | 2020-01-19 | 2020-06-12 | 深信服科技股份有限公司 | Device information screening method, firewall device, network device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103763405A (en) | Method for quickly recovering DHCP leases | |
CN101730090B (en) | Method and equipment for releasing IP addresses by DHCP server | |
CN101106512B (en) | A processing method and device for QinQ termination configuration | |
CN101510902B (en) | Method, system and equipment for preventing wireless client terminal from disconnection during internet process | |
CN102333335B (en) | Service recovery method, equipment and system for wireless local area network (WLAN) | |
WO2020001045A1 (en) | Address management method and device | |
CN101656764A (en) | Method, system and device for keeping session of DHCP user active | |
CN103475751A (en) | Method and device for IP address switch | |
CN103905579A (en) | Method and system for communication between platform and terminal, platform and relevant devices | |
CN102123105A (en) | Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP | |
CN104468201A (en) | Automatic deleting method and device for offline network equipment | |
CN103312708A (en) | Lease file based IP (internet protocol) setting method and system | |
US20170318483A1 (en) | Self-recovery method and device after disconnection of base station | |
CN103685398B (en) | Communication connection method for building up and communication system | |
CN101778107B (en) | State synchronization processing method and device | |
CN104219337A (en) | IP address allocation method and device applied to SDN | |
CN102523316B (en) | A kind of address distribution method and equipment | |
CN104009961A (en) | PPPoE session ID distribution method and equipment thereof | |
CN105049546A (en) | Client terminal IP address allocation method through DHCP server and device thereof | |
CN102710629A (en) | Network connection method and system | |
CN104618943A (en) | OMCH (Operation Maintenance Channel) fault treatment method, device and system | |
CN106936940B (en) | Lease information backup method and system in a kind of Dynamic Host Configuration Protocol server | |
CN100396042C (en) | Quick cut-in method and system for abnormally cut-off of broad band users | |
CN103051738A (en) | DHCP (Dynamic Host Configuration Protocol) address distribution method and system | |
CN110933775A (en) | Method and device for establishing signal connection and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C41 | Transfer of patent application or patent right or utility model | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20151229 Address after: Copper Road Software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Software Industrial Park B District 7 Applicant after: FUJIAN SUNNADA COMMUNICATION CO., LTD. Address before: No. 7 building two Wufeng Street software Avenue Gulou District of Fuzhou city in Fujian province 350000 No. 89 Fuzhou Software Industrial Park Applicant before: Fujian Sunnada Communication Co., Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140430 |