CN106936942A - A kind of dhcp address recovery system and method - Google Patents
A kind of dhcp address recovery system and method Download PDFInfo
- Publication number
- CN106936942A CN106936942A CN201710131231.XA CN201710131231A CN106936942A CN 106936942 A CN106936942 A CN 106936942A CN 201710131231 A CN201710131231 A CN 201710131231A CN 106936942 A CN106936942 A CN 106936942A
- Authority
- CN
- China
- Prior art keywords
- address
- dhcp
- modules
- portal
- terminal device
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention relates to the dhcp address recovery technology in the communications field, it discloses a kind of dhcp address recovery system and method, cannot reclaiming in time for dhcp address recovery scheme presence has left the IP address that the terminal of network takes in solving the problems, such as conventional art.The method includes:A. DHCP modules and portal modules are monitored;B. when detecting terminal device and being offline, judge whether to need to reclaim the IP address of the terminal device, if desired reclaimed, then into step c, otherwise, return to step b;C. notify that DHCP modules reclaim the IP address of corresponding terminal.The present invention is reclaimed suitable for dhcp address.
Description
Technical field
The present invention relates to DHCP (DHCP) address recovery technology in the communications field, and in particular to a kind of
Dhcp address recovery system and method.
Background technology
In the epoch of communication network widespread adoption, DHCP is always the mainstream technology of dynamic IP addressing distribution, Ji Hu
Will be disposed in all of communication network and used.It is the function of being bound to use during DHCP is implemented that address is reclaimed.By address
Recovery makes address resource be reused.
With the popularization of the Internet, applications, portal authentication techniques have been also carried out deployment in large-scale network, big
In partial portal network designs, Dynamic Host Configuration Protocol server and portal authentication gateways are same equipment, and terminal needs to first pass through
Dynamic Host Configuration Protocol server obtains IP address, then carries out portal certifications, and certification can normal access network after passing through.Due to DHCP service
Device distributes address limited amount, and is not before lease time arrival for each IP for distributing sets a lease time
The IP address recovery can be carried out, therefore, there is problems with traditional dhcp address recovery scheme:When the terminal in lease time
When accessing quantity and distributing number of addresses more than DHCP, can cause later terminal because lack IP address cannot access network, but
It is not released through leaving the IP address shared by the terminal device of network.
The content of the invention
The technical problems to be solved by the invention are:A kind of dhcp address recovery system and method are proposed, traditional skill is solved
What dhcp address recovery scheme was present in art cannot in time reclaim the problem of the IP address of the terminal occupancy for having left network.
On the one hand, the embodiment of the present invention provides a kind of dhcp address recovery system, including:
Process enables identification module, for identifying whether to enable DHCP modules and portal modules, when identifying DHCP moulds
After block and portal modules are activated, process monitoring module is triggered;
Process monitoring module, it is offline when terminal device is detected for being monitored to DHCP modules and portal modules
When, judge whether to need to reclaim the IP address of terminal, if desired reclaim, then trigger address recycling module;
Address recycling module, for notifying that DHCP modules reclaim the IP address of corresponding terminal.
Used as further optimization, process monitoring module receives the offline messages of portal by detecting portal modules and judges
Terminal device is offline.
As further optimization, the process monitoring module be additionally operable to the IP address in the offline messages of portal and
MAC Address is identified, and retrieves corresponding IP address and MAC Address in DHCP modules have distributed address list.
Used as further optimization, the process monitoring module judges whether to need to reclaim the IP address of terminal device
Method be:
If retrieving corresponding IP address and MAC Address in DHCP modules have distributed address list, judge that needs are right
The IP address of terminal device is reclaimed.
Another further aspect, the embodiment of the invention provides a kind of dhcp address recovery method, and it is comprised the following steps:
A. DHCP modules and portal modules are monitored;
B. when detecting terminal device and being offline, judge whether to need to reclaim the IP address of the terminal device, if
Needs are reclaimed, then into step c, otherwise, return to step b;
C. notify that DHCP modules reclaim the IP address of corresponding terminal.
As further optimization, step is also included before step a:
A0. identify whether to enable DHCP modules and portal modules, after DHCP modules and portal modules are activated,
Perform step a.
As further optimization, in step b, the offline messages of portal are received by detecting portal modules and judges terminal
Equipment is offline.
As further optimization, in step b, the method for judging whether to need to reclaim the IP address of the terminal device
It is:
IP address and MAC Address in the offline messages of portal is identified, and in DHCP modules distributively
Corresponding IP address and MAC Address are retrieved in the list of location, if retrieving corresponding IP address and MAC Address, judges that needs are right
The IP address of the terminal device is reclaimed.
As further optimization, in step c, the method that the notice DHCP modules reclaim the IP address of corresponding terminal equipment
It is:
To DHCP modules send address release message, address release message in carry corresponding terminal equipment IP address and
MAC Address.
Used as further optimization, step c also includes:DHCP modules are receiving the logical of the IP address of recovery corresponding terminal equipment
After knowing, the corresponding IP address list item that will distribute the terminal device in address list is deleted, and the IP address of release is re-applied to
In address pool.
The beneficial effects of the invention are as follows:
1) dhcp address reclaims timely:
When row address recovery is entered, recovering condition expires and is changed into terminal deviated from network DHCP from lease time, reclaims week
Phase significantly reduces.
2) dhcp address reclaims accurate:
DHCP enters row address and reclaims according to portal authentication mechanisms, and terminal device needs the access network must to carry out portal
Certification, then when network is left, portal can also be accurately identified, and DHCP is in the offline message of terminal for receiving portal
Terminal address recovery is just carried out afterwards, has fundamentally prevented the mistake for reclaiming.
Brief description of the drawings
Fig. 1 is the dhcp address recovery system structured flowchart in the present invention;
Fig. 2 enables identification process figure for process;
Fig. 3 is the dhcp address recovery method flow chart in the embodiment of the present invention.
Specific embodiment
The present invention is directed to propose a kind of dhcp address recovery system and method, solve dhcp address recovery side in conventional art
What case was present cannot in time reclaim the problem of the IP address of the terminal device occupancy for having left network.Its core concept is:According to
The realization mechanism of portal certifications, when terminal is offline leaves network, portal servers are notified that gateway device should
Terminal device is offline, during gateway device can accurately judge whether terminal device still suffers from network using the mechanism, and
In portal network designs, Dynamic Host Configuration Protocol server and portal authentication gateways are same equipment, so that DHCP can also perceive end
End has been left, then the address for carrying out the terminal immediately is reclaimed, so that the return period of shortening address, realizes the quick of address resource
Recycle.
As shown in figure 1, the dhcp address recovery system in the present invention includes:Process enables identification module, process monitoring mould
Block and address recycling module;Wherein,
Process enables identification module, for identifying whether to enable DHCP modules and portal modules, when identifying DHCP moulds
After block and portal modules are activated, process monitoring module is triggered;
In the present invention, in order to allow the DHCP can to perceive the online situation of portal subscriber terminal equipments, it is necessary to DHCP moulds
After block and portal modules are activated, process monitoring module is just triggered, otherwise monitor nonsensical, process enables identification process
As shown in Fig. 2 after identifying and enabling DHCP modules, also to judge whether to enable portal modules, both by
Process monitoring module is triggered after enabling.
Process monitoring module, it is offline when terminal device is detected for being monitored to DHCP modules and portal modules
When, judge whether to need to reclaim the IP address of terminal, if desired reclaim, then trigger address recycling module;
Process monitoring module is the online of detecting portal subscriber terminal equipments to the purpose that portal modules are monitored
Situation, when portal modules receive the offline message of terminal device, the terminal device in the offline message of monitoring module extraction
IP address and MAC Address;Process monitoring module is to IP that the purpose that DHCP modules are monitored is the line terminal equipment under extraction
Behind address and MAC Address, distribute in address list whether have corresponding table according to the IP address and MAC Address retrieval DHCP
, so as to judge whether to need to reclaim the IP address of terminal device, if there is corresponding list item in address list, triggering ground
Location recycling module;
Address recycling module, for notifying that DHCP modules reclaim the IP address of corresponding terminal equipment.
It is corresponding that address recycling module notifies that DHCP modules are reclaimed after the notice for receiving process monitoring module, with message mode
The IP address of terminal device, carries the IP address and MAC Address of corresponding terminal equipment in message, DHCP modules are receiving message
Afterwards, the corresponding table entry deletion that will have been distributed in address list according to IP address and MAC Address, and the IP address is placed back in
In address pool, so as to complete the recovery to the IP address.
Embodiment:
As shown in figure 3, the dhcp address recovery method proposed in the embodiment of the present invention includes following implementation steps:
1st, judge whether to receive the offline messages of portal during being monitored DHCP modules and portal modules, such as
Fruit receives, then extract IP address and MAC Address in the offline messages of portal, if do not received, continues to monitor;
Based on portal authentication mechanisms, when terminal device is offline, portal servers all can be to portal authentication gateways
The offline messages of portal are sent, and Dynamic Host Configuration Protocol server and portal authentication gateways are same equipment, thus utilize the portal
Offline message, Dynamic Host Configuration Protocol server also can awareness apparatus it is offline.
2nd, according to IP address and MAC Address the retrieval allocated address lists of DHCP for extracting message;
The MAC Address that Dynamic Host Configuration Protocol server presses terminal device is the IP ground in the terminal device distribution address pool of access network
Location, records the IP address of distribution and the MAC Address of terminal device in address list after being allocated successfully;Therefore, extracting
List item matching can be carried out after IP address and MAC Address in the offline messages of portal in address list.
3rd, then judge to need to this if list item corresponding with the IP address and MAC Address extracted in address list
The IP address of offline terminal equipment is reclaimed, into step 4;If without corresponding list item, return to step 1 continues to detect
Survey;
4th, address recycling module notifies that DHCP modules reclaim the IP address of corresponding terminal equipment;
In this step, address recycling module notifies that DHCP modules reclaim the IP address of corresponding terminal equipment with message mode,
In message carry corresponding terminal equipment IP address and MAC Address, DHCP modules after message is received, according to IP address and MAC
The corresponding table entry deletion that address will have been distributed in address list, and the IP address placed back in into address pool, so as to complete
Recovery to the IP address.
Claims (10)
1. a kind of dhcp address recovery system, it is characterised in that including:
Process enables identification module, for identifying whether to enable DHCP modules and portal modules, when identify DHCP modules and
After portal modules are activated, process monitoring module is triggered;
Process monitoring module, for being monitored to DHCP modules and portal modules, when detecting terminal device and being offline, sentences
It is disconnected whether to need to reclaim the IP address of terminal device, if desired reclaim, then trigger address recycling module;
Address recycling module, for notifying that DHCP modules reclaim the IP address of corresponding terminal.
2. a kind of dhcp address recovery system as claimed in claim 1, it is characterised in that process monitoring module is by detecting
It is offline to judge terminal device that portal modules receive the offline messages of portal.
3. a kind of dhcp address recovery system as claimed in claim 2, it is characterised in that the process monitoring module is additionally operable to
IP address and MAC Address in the offline messages of portal is identified, and address list has been distributed in DHCP modules
It is middle to retrieve corresponding IP address and MAC Address.
4. a kind of dhcp address recovery system as claimed in claim 3, it is characterised in that the process monitoring module judge be
The no method that needs to reclaim the IP address of terminal is:
If retrieving corresponding IP address and MAC Address in DHCP modules have distributed address list, judgement is needed to terminal
The IP address of equipment is reclaimed.
5. a kind of dhcp address recovery method, it is characterised in that comprise the following steps:
A. DHCP modules and portal modules are monitored;
B. when detecting terminal device and being offline, judge whether to need to reclaim the IP address of the terminal device, if desired
Reclaimed, then into step c, otherwise, return to step b;
C. notify that DHCP modules reclaim the IP address of corresponding terminal.
6. a kind of dhcp address recovery method as claimed in claim 5, it is characterised in that also include step before step a:
A0. identify whether to enable DHCP modules and portal modules, after DHCP modules and portal modules are activated, perform
Step a.
7. a kind of dhcp address recovery method as claimed in claim 5, it is characterised in that in step b, by detecting portal
It is offline to judge terminal device that module receives the offline messages of portal.
8. a kind of dhcp address recovery method as claimed in claim 7, it is characterised in that in step b, it is right to judge whether to need
The method that the IP address of the terminal device is reclaimed is:
IP address and MAC Address in the offline messages of portal is identified, and address column has been distributed in DHCP modules
Corresponding IP address and MAC Address are retrieved in table, if retrieving corresponding IP address and MAC Address, judges to need to the end
The IP address of end equipment is reclaimed.
9. a kind of dhcp address recovery method as claimed in claim 8, it is characterised in that in step c, the notice DHCP moulds
The method of IP address that block reclaims corresponding terminal is:
Address release message is sent to DHCP modules, the IP address and MAC Address of corresponding terminal are carried in address release message.
10. a kind of dhcp address recovery method as claimed in claim 9, it is characterised in that step c also includes:DHCP modules
After the notice for receiving the IP address for reclaiming corresponding terminal equipment, the corresponding IP address of the terminal device in address list will be distributed
List item is deleted, and the IP address of release is re-applied in address pool.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710131231.XA CN106936942A (en) | 2017-03-07 | 2017-03-07 | A kind of dhcp address recovery system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710131231.XA CN106936942A (en) | 2017-03-07 | 2017-03-07 | A kind of dhcp address recovery system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106936942A true CN106936942A (en) | 2017-07-07 |
Family
ID=59424545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710131231.XA Pending CN106936942A (en) | 2017-03-07 | 2017-03-07 | A kind of dhcp address recovery system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106936942A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232372A (en) * | 2007-01-26 | 2008-07-30 | 华为技术有限公司 | Authentication method, authentication system and authentication device |
CN101795300A (en) * | 2009-11-11 | 2010-08-04 | 福建星网锐捷网络有限公司 | IP (Internet Protocol) address recovery method and system, as well as DHCP (Dynamic Host Configuration Protocol) repeater and DHCP server |
CN102244866A (en) * | 2011-08-18 | 2011-11-16 | 杭州华三通信技术有限公司 | Portal verifying method and access controller |
CN103763405A (en) * | 2014-01-21 | 2014-04-30 | 福建三元达通讯股份有限公司 | Method for quickly recovering DHCP leases |
CN103957194A (en) * | 2014-04-04 | 2014-07-30 | 杭州华三通信技术有限公司 | IP access method and device |
CN104158917A (en) * | 2013-05-14 | 2014-11-19 | 杭州华三通信技术有限公司 | Method and device for recovering IP (Internet protocol) address of DHCP (dynamic host configuration protocol) client |
US9438630B2 (en) * | 2014-10-15 | 2016-09-06 | Adtran, Inc. | Network access control using subnet addressing |
CN106331190A (en) * | 2015-06-19 | 2017-01-11 | 中兴通讯股份有限公司 | IP address withdrawing method and device, and dynamic host configuration protocol server |
-
2017
- 2017-03-07 CN CN201710131231.XA patent/CN106936942A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101232372A (en) * | 2007-01-26 | 2008-07-30 | 华为技术有限公司 | Authentication method, authentication system and authentication device |
CN101795300A (en) * | 2009-11-11 | 2010-08-04 | 福建星网锐捷网络有限公司 | IP (Internet Protocol) address recovery method and system, as well as DHCP (Dynamic Host Configuration Protocol) repeater and DHCP server |
CN102244866A (en) * | 2011-08-18 | 2011-11-16 | 杭州华三通信技术有限公司 | Portal verifying method and access controller |
CN104158917A (en) * | 2013-05-14 | 2014-11-19 | 杭州华三通信技术有限公司 | Method and device for recovering IP (Internet protocol) address of DHCP (dynamic host configuration protocol) client |
CN103763405A (en) * | 2014-01-21 | 2014-04-30 | 福建三元达通讯股份有限公司 | Method for quickly recovering DHCP leases |
CN103957194A (en) * | 2014-04-04 | 2014-07-30 | 杭州华三通信技术有限公司 | IP access method and device |
US9438630B2 (en) * | 2014-10-15 | 2016-09-06 | Adtran, Inc. | Network access control using subnet addressing |
CN106331190A (en) * | 2015-06-19 | 2017-01-11 | 中兴通讯股份有限公司 | IP address withdrawing method and device, and dynamic host configuration protocol server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101453495B (en) | Method, system and equipment for preventing authentication address resolution protocol information loss | |
CN107071005A (en) | A kind of method of data synchronization and system | |
CN104077701A (en) | Task processing method and device used for e-business platform | |
CN101542979A (en) | MAC address overlap eliminating method, network device managing system, server, and information device | |
CN101667928B (en) | Client, signaling tracking server, protocol module and signaling tracking method | |
CA2745661A1 (en) | A method and system for subscriber base monitoring in ip data networks | |
CN103763148B (en) | ONU automatic authorization configuration recovery method | |
CN112019366B (en) | Leasing method and device of physical host, cloud platform and readable storage medium | |
CN106331190A (en) | IP address withdrawing method and device, and dynamic host configuration protocol server | |
CN109698871A (en) | A kind of optical fiber distributed type access system and its management method | |
CN102025574B (en) | Cable modem termination system and method | |
CN105471610A (en) | HQoS protection method and HQoS protection device through multiple board cards | |
CN102185724B (en) | Address management method and equipment | |
CN103414641A (en) | Neighbor table item release method, device and network equipment | |
CN106936942A (en) | A kind of dhcp address recovery system and method | |
CN104009961A (en) | PPPoE session ID distribution method and equipment thereof | |
CN108509296B (en) | Method and system for processing equipment fault | |
CN101778107A (en) | State synchronization processing method and device | |
CN106982127B (en) | Message detection and distribution method in convergence charging and tandem proxy device | |
CN101505478B (en) | Method, apparatus and system for filtering packets | |
CN108076165B (en) | Method, equipment and system for domain name resolution information management | |
CN101247255B (en) | Method and system for processing fault | |
CN102340511B (en) | Safety control method and device | |
CN107800802A (en) | A kind of Rack whole machine cabinets write-in and the method for reading UUID | |
WO2017020748A1 (en) | Method and device for processing signalling tracking task |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170707 |