CN101242417A - An IP reservation method and access server for access users - Google Patents
An IP reservation method and access server for access users Download PDFInfo
- Publication number
- CN101242417A CN101242417A CNA200810081657XA CN200810081657A CN101242417A CN 101242417 A CN101242417 A CN 101242417A CN A200810081657X A CNA200810081657X A CN A200810081657XA CN 200810081657 A CN200810081657 A CN 200810081657A CN 101242417 A CN101242417 A CN 101242417A
- Authority
- CN
- China
- Prior art keywords
- user
- access server
- address
- icmp
- keep
- 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 discloses an IP keep alive method and an access sever for access users. The method comprises the steps that: the access server sends request massage to each access user; if the access server receives response massage replied by a user in given time, the access server will keep the IP address of the user. By sending ICMP request massage to each user, if response massage is received in given time, then the user is seen to be on-line; otherwise, if not one response is received after the access server sends a plurality of request massages, then the user is seen to be off-line, the IP address is withdrawn, thus saving system resource.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of user's of access IP keepalive method and access server.
Background technology
In IP network, each subscriber equipment that connects Internal all needs to distribute a unique IP address.In common mininet, the IP address is all by network manager's manual assignment, and arrived medium-and-large-sized network, and it is not too suitable that the manual assignment address just becomes.Therefore must use a kind of address distribution method efficiently, just in time addressing this problem appears in DHCP (DHCP) technology.
But, can not complete access subscriber management function be arranged as PPP (point-to-point protocol) agreement because the DHCP agreement is an address assignment agreement.After going offline as the user, unknowable fully on access server, the lease time that can only distribute by the DHCP agreement could be regained the IP address to after date, and for operator, a large amount of resources have been wasted like this.Pressing for a kind of method like this can be as PPP Keepalive message, and whether can regularly detect this user also online, rolls off the production line if find the user, and access server just can be regained this user's IP address, and deletes this user.
Summary of the invention
Technical problem to be solved by this invention provides a kind of user's of access IP keepalive method and access server; by sending the ICMP request message to each user; if receive response message at the appointed time; think that then the user is online; if send the several times request message and do not receive when once replying at access server; then think user offline, insert that the user is whether online to provide a good technological means thereby detect IP for operator.
In order to address the above problem, the invention provides a kind of user's of access IP keepalive method, comprise,
A, access server insert the user to each and send request message;
If the b access server is received the response message that the user replys at the appointed time, then keep this user's IP address.
Further, said method also can comprise, also comprise among the described step a,
A1, user terminal obtain the IP address by the dynamic host configuration protocol DHCP agreement, land access server after, access server adds described user profile in user management tabulation;
A2, access server return 0 with expired times n; Wherein expired times n is the integer greater than 0;
A3, access server are by starting timer, and the traversal user management is tabulated, and is that purpose IP, user's Mac address is purpose Mac address with the user's IP address, by Internet Control Message Protocol ICMP agreement, sends the ICMP request message to this user on time.
Further, said method also can comprise, also comprise among the described step b,
If the b1 access server is not received the ICMP response message that the user replys at the appointed time, then execution in step b2;
B2, access server are with expired times n+1, and whether access server judges expired times n more than or equal to the max-timeout number of times, if, execution in step b3 then;
B3, access server are regained this user's IP address, this user profile of deletion in the user management tabulation.
Further, said method also can comprise, also comprise among the described step b2, if access server is judged expired times n less than the max-timeout number of times, and execution in step a3 then.
The present invention also provides a kind of access server, comprises the IP keep-alive module, is used for inserting the user to each and sends request message, if receive the response message that the user replys at the appointed time, then keeps this user's IP address.
Further; above-mentioned access server also can comprise the user management list block; be used for after making user terminal obtain the IP address, in user management tabulation, add this user profile, and the user management tabulation is offered the IP keep-alive module inquire about by the DHCP agreement.
Further, above-mentioned access server can comprise that also described IP keep-alive module also is used to start timer, regularly travels through the user management tabulation, by the ICMP agreement, sends the ICMP request message to the user on time; If receive the ICMP response message that the user replys at the appointed time, then keep this user's IP address; If when the number of times that sends the ICMP request message to the user reaches the max-timeout number of times, and when not receiving the ICMP response message that the user replys, then regain this user's IP address, and the user management list block is sent message, this user profile of deletion in the user management tabulation.
Compared with prior art, use the present invention, by sending the ICMP request message to each user, if receive response message at the appointed time, think that then the user is online,, then think user offline if send the several times request message and do not receive when once replying at access server, regain user's IP address, thereby saved the resource of system.
Description of drawings
Fig. 1 is the flow chart that inserts user's IP keepalive method in the specific embodiment of the invention;
Fig. 2 is the structural representation of a kind of access server in the specific embodiment of the invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
The main design of the access user's based on the DHCP agreement of the present invention IP keepalive method is; access server sends request message to each user; if receive replying that the user replys at the appointed time; then keep this user's IP address; if when access server sends the several times request message and does not receive replying that the user replys; then think user offline, regain user's IP address, thereby saved the resource of system.
As shown in Figure 1, a kind of IP keepalive method that inserts the user, this method specifically may further comprise the steps based on the DHCP agreement:
Wherein n is the integer greater than 0.
The time of timer can dispose.
Whether step 140, access server receive the ICMP response message that the user replys at the appointed time, if then keep this user's IP address; Otherwise, execution in step 150;
If receive user's ICMP response message in access server is judged at the appointed time, then this user is online.
Fixed time can dispose.
The max-timeout number of times can dispose.
This moment, access server was after the user sends the ICMP request message, do not receive the ICMP response message that the user replys, then think this user offline, regain this user's IP address, this user profile of deletion in the user management tabulation, return step 120, whether access server detects next user online.
As shown in Figure 2, a kind of access server based on the DHCP agreement, comprises user management list block, IP keep-alive module, wherein,
The user management list block is used for after making user terminal obtain the IP address by the DHCP agreement, adds this user profile in user management tabulation, and the user management tabulation is offered the IP keep-alive module inquires about;
The IP keep-alive module is used to start timer, regularly travels through the user management tabulation, by the ICMP agreement, sends the ICMP request message to the user on time; If receive the ICMP response message that the user replys at the appointed time, then keep this user's IP address; If when the number of times that sends the ICMP request message to the user reaches the max-timeout number of times, and when not receiving the ICMP response message that the user replys, then regain this user's IP address, and the user management list block is sent message, this user profile of deletion in the user management tabulation.
The invention will be further described below in conjunction with instantiation.
The present invention includes following handling process:
Step 210, user's request are reached the standard grade, and obtain the IP address by the DHCP agreement;
Step 220, user are after access server is reached the standard grade success, and access server adds this user profile in the user management tabulation;
Step 230, access server start timer, regularly travel through the user in the user management tabulation, revise each user's detection time, when user's detection time arrives, user profile by in the user management tabulation sends ICMP Request message to the user;
Step 240, before ICMP Request (request) message is overtime, if receive ICMP Reply (replying) message that the user returns, represent that then the user is online, this moment, the user's detection time of resetting was a default value.If do not receive user answer, judge whether the user reaches the max-timeout number of times earlier, if do not exceed the max-timeout number of times, then continue to send ICMP Request message to the user, otherwise think that this user goes offline, then be recoverable to this IP address, delete this user profile.
Top step all is order with time, dependence is successively arranged, because this scheme realizes the user's online detection by the ICMP agreement, so client can not abandon the ICMP request message that access server sends over, otherwise when access server can not be received user's ICMP response message in maximum times, then can think this user offline, user's detection time at interval in addition, time-out time and max-timeout number of times all can dispose, so can use this function flexibly.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (7)
1, a kind of IP keepalive method that inserts the user is characterized in that, comprise,
A, access server insert the user to each and send request message;
If the b access server is received the response message that the user replys at the appointed time, then keep this user's IP address.
2, IP keepalive method as claimed in claim 1 is characterized in that,
Also comprise among the described step a,
A1, user terminal obtain the IP address by the dynamic host configuration protocol DHCP agreement, land access server after, access server adds described user profile in user management tabulation;
A2, access server return 0 with expired times n; Wherein expired times n is the integer greater than 0;
A3, access server are by starting timer, and the traversal user management is tabulated, and is that purpose IP, user's Mac address is purpose Mac address with the user's IP address, by Internet Control Message Protocol ICMP agreement, sends the ICMP request message to this user on time.
3, IP keepalive method as claimed in claim 2 is characterized in that,
Also comprise among the described step b,
If the b1 access server is not received the ICMP response message that the user replys at the appointed time, then execution in step b2;
B2, access server are with expired times n+1, and whether access server judges expired times n more than or equal to the max-timeout number of times, if, execution in step b3 then;
B3, access server are regained this user's IP address, this user profile of deletion in the user management tabulation.
4, IP keepalive method as claimed in claim 3 is characterized in that,
Also comprise among the described step b2, if access server is judged expired times n less than the max-timeout number of times, execution in step a3 then.
5, a kind of access server is characterized in that,
Comprise the IP keep-alive module, be used for inserting the user and send request message,, then keep this user's IP address if receive the response message that the user replys at the appointed time to each.
6, access server as claimed in claim 5 is characterized in that,
Also comprise the user management list block, be used for after making user terminal obtain the IP address, in user management tabulation, add this user profile, and the user management tabulation is offered the IP keep-alive module inquire about by the DHCP agreement.
7, access server as claimed in claim 6 is characterized in that,
Described IP keep-alive module also is used to start timer, regularly travels through the user management tabulation, by the ICMP agreement, sends the ICMP request message to the user on time; If receive the ICMP response message that the user replys at the appointed time, then keep this user's IP address; If when the number of times that sends the ICMP request message to the user reaches the max-timeout number of times, and when not receiving the ICMP response message that the user replys, then regain this user's IP address, and the user management list block is sent message, this user profile of deletion in the user management tabulation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810081657XA CN101242417A (en) | 2008-03-03 | 2008-03-03 | An IP reservation method and access server for access users |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200810081657XA CN101242417A (en) | 2008-03-03 | 2008-03-03 | An IP reservation method and access server for access users |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101242417A true CN101242417A (en) | 2008-08-13 |
Family
ID=39933626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200810081657XA Pending CN101242417A (en) | 2008-03-03 | 2008-03-03 | An IP reservation method and access server for access users |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101242417A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223732A (en) * | 2011-06-14 | 2011-10-19 | 南京信息工程大学 | Wireless multi-point DDC ED ID information sharing device and method thereof |
CN102340480A (en) * | 2010-07-14 | 2012-02-01 | 杭州华三通信技术有限公司 | Method for keeping alive between terminals and center server, center server and terminals thereof |
CN102594864A (en) * | 2011-12-20 | 2012-07-18 | 福建新大陆电脑股份有限公司 | Remote maintenance method, device and system for electronic balance |
CN102761618A (en) * | 2012-07-03 | 2012-10-31 | 杭州华三通信技术有限公司 | Method, equipment and system for realizing load balancing |
CN104519145A (en) * | 2013-09-26 | 2015-04-15 | 华为技术有限公司 | An address resource managing method, system and DHCP server |
CN104813601A (en) * | 2012-10-29 | 2015-07-29 | 伊卡诺斯通信公司 | Mechanism to facilitate timing recovery in time division duplex systems |
CN105450466A (en) * | 2015-11-10 | 2016-03-30 | 浪潮(北京)电子信息产业有限公司 | ICMP request message keep-alive control method and system |
CN105991782A (en) * | 2015-02-04 | 2016-10-05 | 北京神州泰岳软件股份有限公司 | IP address management method and apparatus |
CN106209771A (en) * | 2016-06-23 | 2016-12-07 | 贵阳朗玛信息技术股份有限公司 | User's table scan method and device of game client |
CN107733088A (en) * | 2017-11-08 | 2018-02-23 | 杭州晶智能科技有限公司 | Intelligent electricity utilization management system based on wifi network equipment access situation |
CN108712411A (en) * | 2018-05-11 | 2018-10-26 | 南京铁道职业技术学院 | A kind of IPoE roamings conversation controlling method |
CN109769029A (en) * | 2019-02-01 | 2019-05-17 | 国家电网有限公司 | Communication connecting method and terminal device based on power information acquisition system |
CN113783751A (en) * | 2021-08-30 | 2021-12-10 | 北京东方网信科技股份有限公司 | Method, electronic device and medium for detecting user broadband quality |
CN115277482A (en) * | 2022-06-10 | 2022-11-01 | 浙江清捷智能科技有限公司 | Online detection method for industrial edge equipment |
CN116016442A (en) * | 2022-12-29 | 2023-04-25 | 武汉绿色网络信息服务有限责任公司 | ip address resource management method, cloud gateway, electronic device and storage medium |
-
2008
- 2008-03-03 CN CNA200810081657XA patent/CN101242417A/en active Pending
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102340480A (en) * | 2010-07-14 | 2012-02-01 | 杭州华三通信技术有限公司 | Method for keeping alive between terminals and center server, center server and terminals thereof |
CN102340480B (en) * | 2010-07-14 | 2014-06-11 | 杭州华三通信技术有限公司 | Method for keeping alive between terminals and center server, center server and terminals thereof |
CN102223732A (en) * | 2011-06-14 | 2011-10-19 | 南京信息工程大学 | Wireless multi-point DDC ED ID information sharing device and method thereof |
CN102594864A (en) * | 2011-12-20 | 2012-07-18 | 福建新大陆电脑股份有限公司 | Remote maintenance method, device and system for electronic balance |
CN102594864B (en) * | 2011-12-20 | 2015-07-08 | 福建新大陆电脑股份有限公司 | Remote maintenance method, device and system for electronic balance |
CN102761618A (en) * | 2012-07-03 | 2012-10-31 | 杭州华三通信技术有限公司 | Method, equipment and system for realizing load balancing |
CN104813601A (en) * | 2012-10-29 | 2015-07-29 | 伊卡诺斯通信公司 | Mechanism to facilitate timing recovery in time division duplex systems |
CN104519145A (en) * | 2013-09-26 | 2015-04-15 | 华为技术有限公司 | An address resource managing method, system and DHCP server |
CN105991782B (en) * | 2015-02-04 | 2019-05-21 | 北京神州泰岳软件股份有限公司 | A kind of method and apparatus of management IP address |
CN105991782A (en) * | 2015-02-04 | 2016-10-05 | 北京神州泰岳软件股份有限公司 | IP address management method and apparatus |
CN105450466A (en) * | 2015-11-10 | 2016-03-30 | 浪潮(北京)电子信息产业有限公司 | ICMP request message keep-alive control method and system |
CN105450466B (en) * | 2015-11-10 | 2018-11-02 | 浪潮(北京)电子信息产业有限公司 | A kind of ICMP request messages keep-alive control method and system |
CN106209771A (en) * | 2016-06-23 | 2016-12-07 | 贵阳朗玛信息技术股份有限公司 | User's table scan method and device of game client |
CN107733088A (en) * | 2017-11-08 | 2018-02-23 | 杭州晶智能科技有限公司 | Intelligent electricity utilization management system based on wifi network equipment access situation |
CN107733088B (en) * | 2017-11-08 | 2020-07-07 | 杭州晶一智能科技有限公司 | Intelligent power utilization management system based on wifi network equipment access condition |
CN108712411A (en) * | 2018-05-11 | 2018-10-26 | 南京铁道职业技术学院 | A kind of IPoE roamings conversation controlling method |
CN109769029A (en) * | 2019-02-01 | 2019-05-17 | 国家电网有限公司 | Communication connecting method and terminal device based on power information acquisition system |
CN109769029B (en) * | 2019-02-01 | 2022-02-01 | 国家电网有限公司 | Communication connection method based on electricity consumption information acquisition system and terminal equipment |
CN113783751A (en) * | 2021-08-30 | 2021-12-10 | 北京东方网信科技股份有限公司 | Method, electronic device and medium for detecting user broadband quality |
CN115277482A (en) * | 2022-06-10 | 2022-11-01 | 浙江清捷智能科技有限公司 | Online detection method for industrial edge equipment |
CN115277482B (en) * | 2022-06-10 | 2023-08-22 | 浙江清捷智能科技有限公司 | On-line detection method for industrial edge equipment |
CN116016442A (en) * | 2022-12-29 | 2023-04-25 | 武汉绿色网络信息服务有限责任公司 | ip address resource management method, cloud gateway, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101242417A (en) | An IP reservation method and access server for access users | |
CN100502413C (en) | IP address requesting method for DHCP client by DHCP repeater | |
CN101068208B (en) | Method, system and proxy equipment for dynamic distributing network address | |
US8543674B2 (en) | Configuration of routers for DHCP service requests | |
CN101656764A (en) | Method, system and device for keeping session of DHCP user active | |
CN101075944B (en) | Method and system for allocating IP address | |
CN106685776A (en) | Method and system of intelligent device discovery in local area network | |
CN101159758B (en) | Classification associated dynamic host machine configuring protocol option distribution method and device | |
CN1845554B (en) | Control method for dynamically distributing IP address in 3G network | |
CN101106512A (en) | A processing method and device for QinQ termination configuration | |
CN102394948B (en) | DHCP (dynamic host configuration protocol) address distribution method and DHCP server | |
CN103312708A (en) | Lease file based IP (internet protocol) setting method and system | |
CN100405765C (en) | IP address distributing method and device | |
CN104601743A (en) | IP (internet protocol) forwarding IPoE (IP over Ethernet) dual-stack user access control method and equipment based on Ethernet | |
CN101227356A (en) | Equipment, system and method for network access based on dynamic state host computer collocation protocol | |
CN101197811B (en) | Method for improving server reliability in dynamic main unit configuration protocol under proxy mode | |
CN111935335A (en) | DHCP address allocation method and device | |
CN101325587A (en) | Method for monitoring DHCP conversation | |
CN100334855C (en) | Method to allocate protocol relay address table and server address pool for synchronization dynamic host machine | |
CN101729559A (en) | Method and system for realizing backup of DHCP server | |
CN112260888B (en) | Container cloud and resource management method of container cloud | |
CN100349433C (en) | Method of distributing switchin-in address for user terminal | |
CN101729314A (en) | Method and device for recovering dynamic table entries and dynamic host configuration protocol snoopingsnooping equipment | |
CN101237460A (en) | Processing method, system and device upon lease status change of DHCP Server | |
CN104581977B (en) | WLAN user management method, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20080813 |