CN103179223B - The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network) - Google Patents

The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network) Download PDF

Info

Publication number
CN103179223B
CN103179223B CN201110440979.0A CN201110440979A CN103179223B CN 103179223 B CN103179223 B CN 103179223B CN 201110440979 A CN201110440979 A CN 201110440979A CN 103179223 B CN103179223 B CN 103179223B
Authority
CN
China
Prior art keywords
address
dynamic host
host configuration
configuration protocol
protocol server
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.)
Active
Application number
CN201110440979.0A
Other languages
Chinese (zh)
Other versions
CN103179223A (en
Inventor
宁建创
李悦
莫晓斌
袁兵
陈励锋
何秋萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Guangxi Co Ltd
Original Assignee
China Mobile Group Guangxi Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Group Guangxi Co Ltd filed Critical China Mobile Group Guangxi Co Ltd
Priority to CN201110440979.0A priority Critical patent/CN103179223B/en
Publication of CN103179223A publication Critical patent/CN103179223A/en
Application granted granted Critical
Publication of CN103179223B publication Critical patent/CN103179223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network), its main contents comprise: after the IP address assignment request receiving AP transmission, by after the utilization rate of determining current IP address in Dynamic Host Configuration Protocol server, take the strict IP address assignment strategy matched with current utilization rate, Dynamic Host Configuration Protocol server so just can be avoided to be subject to extensive aggression, to reduce IP address in Dynamic Host Configuration Protocol server and maliciously consumed.

Description

The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network)
Technical field
The present invention relates to wireless communication field, particularly relate to the method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network).
Background technology
DHCP (DynamicConfigurationProtocol, DynamicHost arranges agreement) be a kind of procotol in local area network (LAN), for giving the automatic distributing IP of internal network or webserver supplier (InternetProtocol, interconnection protocol between network) address to terminal.
Because present IP address resource is limited, broadband access operator can not accomplish to distribute a fixing IP address to each terminal applying to install broadband, and two computers be connected on the Internet communicate each other, respective IP address must be had, so the terminal of DHCP protocol mode to online will be adopted to carry out interim address assignment, namely before terminal and the Internet are connected, needing interim in Dynamic Host Configuration Protocol server secondary IP address resource pool is terminal distribution IP address, as shown in Figure 1, terminal acquisition Dynamic Host Configuration Protocol server is that the method for the IP address that it distributes comprises the following steps:
Step 101: terminal sends accessing WLAN request to the AP (AccessPoint, access point) of WLAN (wireless local area network).
After step 102:AP receives the accessing WLAN request of terminal, send IP address assignment request by SWTCH (switch) to Dynamic Host Configuration Protocol server.
After step 103:DHCP server receives described IP address assignment request, the IP address that one available is selected from local IP resource pool, as being this terminal distribution temporary ip address, and the configuration informations such as this temporary ip address, AC (AccessControl, access control equipment) address list are sent to AP.
Step 104:AP selects suitable AC, by accessing WLAN request forward to AC after receiving the configuration information of Dynamic Host Configuration Protocol server transmission.
Step 105: the IP address that terminal is distributed by Dynamic Host Configuration Protocol server and the Internet are connected.
In this step 105, the authentication information of terminal to report, according to the IP address of terminal, to the terminal feedback web authentication page, and sends to Radius server to carry out certification by portal server, and after certification is passed through, terminal can be accessed by Internet and carries out chargeable net-surfing.
When terminal and the Internet disconnect, terminal discharges the IP address distributed, and this IP address becomes IP address available in the IP resource pool of Dynamic Host Configuration Protocol server, can effectively save IP address, ensureing the demand that terminal and the Internet are connected, also improve the service efficiency of IP address.
Above-mentioned based on DHCP agreement be the mode of terminal distribution IP address bringing online for terminal easily simultaneously, be also present in certain potential safety hazard.In radio local network environment, terminal can to forge a large amount of clients, sent the request of renting IP address to Dynamic Host Configuration Protocol server by AP, make IP resources a large amount of in short time internal consumption Dynamic Host Configuration Protocol server IP resource pool, and then cause legal terminal when asking to Dynamic Host Configuration Protocol server request dispatching IP, Dynamic Host Configuration Protocol server does not have available IP address assignment to legal terminal, constitute the extensive aggression of malicious peer to DHCP, cause legal terminal cannot by WLAN (wireless local area network) success accessing Internet.
To this, current industry proposes a kind of MAC (MediaAccessControl that can be initiated IP address assignment request by restriction to switch, medium education) mode of address number, prevent terminal malice from forging MAC Address and then request Dynamic Host Configuration Protocol server distributing IP address, but, the mode of above-mentioned restriction MAC Address number is confined to wired network environment, and be not necessarily applicable to the network environment of WLAN (wireless local area network), and this mode of forcing restriction MAC Address number cannot the change of dynamically adapting network environment, may affect the normal access request of terminal.
Summary of the invention
The embodiment provides the method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network); for solving the extensive aggression how preventing malicious peer to DHCP; make legal terminal cannot normally obtain IP address, cause legal terminal cannot the problem of accessing Internet by WLAN (wireless local area network).
A method for distributing IP address in WLAN (wireless local area network), the method comprises:
After the IP address assignment request receiving access point AP transmission, determine that DynamicHost arranges the utilization rate of current IP address in protocol DHCP server;
The IP address assignment strategy corresponding according to the described utilization rate determined carries out the batch operation of IP address.
An equipment for distributing IP address in WLAN (wireless local area network), this equipment comprises:
Receiver module, for receiving the IP address assignment request that access point AP sends;
Determination module, for determining that DynamicHost arranges the utilization rate of current IP address in protocol DHCP server;
IP address assignment module, carries out the distribution of IP address for the IP address assignment strategy corresponding according to the described utilization rate determined.
A system for distributing IP address in WLAN (wireless local area network), this system comprises:
Access point AP, for sending IP address assignment request, and receives the IP address distributed;
Distributing IP address device, for after the IP address assignment request receiving AP transmission, determine that DynamicHost arranges the utilization rate of current IP address in protocol DHCP server, the IP address assignment strategy corresponding according to the described utilization rate determined carries out the batch operation of IP address.
Beneficial effect of the present invention is as follows:
The embodiment of the present invention is by determining the utilization rate of IP address in current Dynamic Host Configuration Protocol server, take the strict IP address assignment strategy matched with current utilization rate, Dynamic Host Configuration Protocol server so just can be avoided to be subject to general red attack, to reduce IP address in Dynamic Host Configuration Protocol server and maliciously consumed.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that terminal obtains that Dynamic Host Configuration Protocol server is the method for the IP address that it distributes;
Fig. 2 is the method flow diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment one;
Fig. 3 is the method flow diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment two;
Fig. 4 is the device structure schematic diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment three;
The structural representation of Fig. 5 to be the equipment of distributing IP address in WLAN (wireless local area network) be logical block in Dynamic Host Configuration Protocol server;
Fig. 6 is the system configuration schematic diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment four.
Embodiment
Below in conjunction with Figure of description, the embodiment of the present invention is described in detail.
Embodiment one:
As shown in Figure 2, be the method flow diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment one, the method comprises:
Step 201: after the IP address assignment request receiving AP transmission, determine the utilization rate of current IP address in Dynamic Host Configuration Protocol server.
Do not consumed by malicious peer in order to ensure available IP-addresses in the IP resource pool of Dynamic Host Configuration Protocol server, when receiving the IP address assignment request that AP sends, by judging the utilization rate (the IP number of addresses namely having distributed to AP accounts for the ratio of IP address total quantity in the IP resource pool of Dynamic Host Configuration Protocol server) of current IP address in Dynamic Host Configuration Protocol server, represent the quantity of remaining available IP-addresses in current Dynamic Host Configuration Protocol server, for whether taking strict IP address assignment strategy to provide foundation.
In this step 201, determine that the mode of the utilization rate of current IP address in Dynamic Host Configuration Protocol server is multiple, the quantity of the IP address that can be discharged by the quantity and terminal monitoring the IP address that Dynamic Host Configuration Protocol server distributes in real time, when determining the IP address assignment request receiving AP transmission, in Dynamic Host Configuration Protocol server, IP address is by the quantity used, also can pass through the Signalling exchange between Dynamic Host Configuration Protocol server, obtain the utilization rate of current IP address in Dynamic Host Configuration Protocol server, do not do concrete restriction here.
Step 202: the IP address assignment strategy corresponding according to the described utilization rate determined carries out the batch operation of IP address.
Particularly, according to the size of the described utilization rate determined, determine different IP address assignment strategies, wherein, described utilization rate is larger, and IP allocation strategy is stricter.The step that the IP address assignment strategy corresponding according to the described utilization rate determined carries out IP address assignment specifically comprises:
Step 2021: judge whether described utilization rate is greater than first threshold and is less than Second Threshold, if not, then performs step 2023; If so, then step 2022 is performed.
Described first threshold represents that the utilization rate of IP address in Dynamic Host Configuration Protocol server reaches the line of demarcation of high value, the large I of value of this first threshold is arranged according to the network environment of reality or empirical value, such as, time in the current time period being in Web vector graphic peak, relatively large first threshold can be set, as being set to 70%; Time in the current time period being in Web vector graphic low ebb, relatively little first threshold can be set, as being set to 40%.
When utilization rate is greater than first threshold, can represent that the quantity of IP address in the IP resource pool of current Dynamic Host Configuration Protocol server is used in a large number, available IP number of addresses is limited, once there be malicious peer to initiate a large amount of IP address assignment requests, to IP address available in the IP resource pool of Dynamic Host Configuration Protocol server be caused to be consumed in a large number in short time, and then affect legal terminal acquisition IP address, therefore, need to take strict IP address assignment strategy to available IP address.
Described Second Threshold represents that the utilization rate of IP address in Dynamic Host Configuration Protocol server reaches the line of demarcation of much higher value, and described Second Threshold is greater than first threshold.
Step 2022: after judging that AP sends IP address assignment request N time before adjacent, whether obtain the IP address of distribution, if not, then perform step 203; Otherwise, perform step 204.
Determine that the quantity of IP address in IP resource pool is used in a large number due to current, need to take strict IP address assignment strategy, therefore, in this step 2022, after requiring that AP initiates IP address assignment request many times, just allow to distribute an IP address to AP, limit with this quantity that AP obtains IP address.
The N related in this step 2022 is positive integer, and the size of N value is determined according to the situation of network reality, and N value is larger, represents stricter to the restriction of AP acquisition IP address.Such as, described N can value be 2, represent when receiving the IP address assignment request that this AP sends, need to judge whether that the IP address assignment request dispatching sent last and upper last time crosses IP address, if distribute, then this IP address assignment request received will not distributing IP address, otherwise, be the IP address assignment request dispatching IP address that this receives.
Step 2023: judge whether described utilization rate is greater than Second Threshold, if so, then performs step 2024; Otherwise, perform step 203.
After in Dynamic Host Configuration Protocol server, the utilization rate of IP address reaches much higher value, need to take the IP address assignment strategy stricter than step 2022 to available IP address.
It should be noted that, this step 2023 is the preferred steps realizing the object of the invention, if on the basis of step 2021 and step 2022, when in Dynamic Host Configuration Protocol server, the utilization rate of IP address reaches the situation of much higher value, by a kind of stricter IP address assignment strategy taked.
Step 2024: determine the time cycle that current time is corresponding, and judge that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, if so, then perform step 204, otherwise, perform step 2025.
Described M is positive integer, and the value of M can reduce along with the increase of utilization rate.
The described time cycle is from the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, the time cycle divided with the cycle duration set; Due to after the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, the quantity of the IP address obtained by this time cycle restriction AP, if and utilization rate continues when increasing gradually, in this Dynamic Host Configuration Protocol server, IP address quantity available is considerably less, there is the state of emergency, therefore, the cycle duration of setting can be increased when the increase of utilization rate.
Such as: from the t1 moment, IP address utilization rate in the IP resource pool of Dynamic Host Configuration Protocol server is greater than Second Threshold, IP address utilization rate then in the IP resource pool of Dynamic Host Configuration Protocol server is greater than Second Threshold, take T as cycle duration, division obtains at least one time cycle, suppose to obtain 2 time cycles, be respectively: t1 ~ t2, t2 ~ t3.If AP initiates IP address assignment request at moment t (corresponding t2 ~ t3 time cycle), then judge whether distributed M IP address to this AP from t2 to t in the time period; If so, the IP address to this AP distributes then is needed to limit; Otherwise, can to this AP distributing IP address.
Step 2025: judge whether the number of times that AP sends IP address assignment request in setting duration reaches setting threshold value, if so, then performs step 204; Otherwise, perform step 203.
This step 2025 sends the speed of IP address assignment request by calculating AP, estimate AP whether malicious requests distributing IP address, if the speed that AP sends IP address assignment request is too high, then can determine that current AP may be malice illegal request IP address.
Described setting threshold value represents the line of demarcation whether speed of AP transmission IP address assignment request is too high, and the size of described setting threshold value is relevant to the utilization rate of IP address in the IP resource pool of Dynamic Host Configuration Protocol server.Usually, Dynamic Host Configuration Protocol server is per second can only receive 1024 DHCP message at most simultaneously, that is when in the IP resource pool of Dynamic Host Configuration Protocol server, IP address utilization rate is less, 1024 IP address assignment requests that AP sends can be received, but along with the rising of IP address utilization rate in the IP resource pool of Dynamic Host Configuration Protocol server, the corresponding minimizing of Dynamic Host Configuration Protocol server receivable message number per second, therefore, utilization rate is higher, and setting threshold value is less.
Such as, when in the IP resource pool of Dynamic Host Configuration Protocol server, IP address utilization rate is lower than first threshold, can arrange described setting threshold value is 1024; When IP address utilization rate is greater than first threshold and is less than Second Threshold in the IP resource pool of Dynamic Host Configuration Protocol server, can arrange described setting threshold value=1024* (1-X), described X is IP address utilization rate in the IP resource pool of Dynamic Host Configuration Protocol server; When IP address utilization rate is greater than Second Threshold in the IP resource pool of Dynamic Host Configuration Protocol server, also can set threshold value according to 1024* (1-X) formulae discovery, or setting one is less than the numerical value of 100 as setting threshold value.
It should be noted that, step 2021 ~ step 2024 is that the height of IP address utilization rate in the IP resource pool with Dynamic Host Configuration Protocol server determines whether to adopt strict IP address assignment strategy, step 2025 is by sending the rate analysis of IP address assignment request to AP, determine whether to adopt strict IP address assignment strategy, also be not limited in the scheme of the present embodiment first determine whether to adopt strict IP address assignment strategy by rate analysis AP being sent to IP address assignment request, after determine whether to adopt strict IP address assignment strategy with the height of IP address utilization rate in the IP resource pool of Dynamic Host Configuration Protocol server.
Step 203: instruction Dynamic Host Configuration Protocol server is described AP distributing IP address, and terminates this IP address assignment process.
In the scheme of this step 203, by sending distribution instruction to Dynamic Host Configuration Protocol server, requiring the IP address assignment request that this AP of dhcp server response sends, is its distributing IP address.
Step 204: instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, and terminates this IP address assignment process.
In the scheme of this step 204, by sending refusal distribution instruction to Dynamic Host Configuration Protocol server, require the IP address assignment request that this AP of Dynamic Host Configuration Protocol server refusal response sends, be not its distributing IP address, and by packet discard, send log information or carry out alarm to the mode that keeper sends out mail.
By the scheme of embodiment one, determine the size of the utilization rate of IP address in the IP resource pool of Dynamic Host Configuration Protocol server, and according to the corresponding strategy of distributing IP address corresponding to described utilization rate, avoiding malicious peer utilizes a large amount of client short time of forging to take the possibility of a large amount of IP address, and then not only increase the efficiency that legal terminal obtains IP address, and maintain the normal operation of WLAN.
Embodiment two:
The present embodiment two is described in detail with the scheme of instantiation to embodiment one, and as shown in Figure 3, be the schematic flow sheet of the method for the present embodiment two, the method comprises:
Step 301: wireless terminal initiates the request of accessing WLAN to AP.
Step 302:AP, after the request receiving described accessing WLAN, sends a message by switch, wherein comprises IP address assignment request.
Step 303: after receiving message, determines whether according to the configuration information preset or default port information the message that wireless device is sent, and if so, performs step 304; Otherwise, directly forward.
Step 304: judge that the classification of message belongs to according to control channel and data channel and control message or data message, if belong to control message, then directly forward; If belong to data message, then perform step 305.
Step 305: for the data message determined, resolves this data message, and in parsing, DHCP message wherein and non-DHCP message wherein, by the non-DHCP message parsed, directly forward, and by the DHCP message parsed, performs step 306.
Step 306: resolve DHCP message, determine the IP address assignment request that AP sends.
Step 307: the utilization rate determining current IP address in Dynamic Host Configuration Protocol server, if described utilization rate is not more than first threshold, then indicates Dynamic Host Configuration Protocol server to be described AP distributing IP address, and performs step 312; Otherwise, perform step 308.
Step 308: judge whether described utilization rate is greater than first threshold and is less than Second Threshold, if so, performs step 309; If not, then step 310 is performed.
Step 309: after judging that AP sends IP address assignment request N time before adjacent, whether obtain the IP address of distribution, if there is no the IP address of distribution, then indicate Dynamic Host Configuration Protocol server to be described AP distributing IP address, and perform step 312; Otherwise instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, and alarm.
Step 310: when described utilization rate is greater than Second Threshold, determine the time cycle that current time is corresponding, and judge that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, if, then indicate Dynamic Host Configuration Protocol server refusal for described AP distributing IP address, and alarm, otherwise, perform step 311.
Step 311: judge that AP sends the number of times of IP address assignment request in setting duration, if described number of times reaches setting threshold value, then indicates Dynamic Host Configuration Protocol server refusal for described AP distributing IP address, and alarm; Otherwise instruction Dynamic Host Configuration Protocol server is described AP distributing IP address, and performs step 312.
The request message of wireless terminal requests accessing WLAN, after acquisition Dynamic Host Configuration Protocol server is the IP address of corresponding wireless terminal distribution, is forwarded to AC by switch by step 312:AP.
The certification page of Web is pushed to wireless terminal by Portal server by step 313:AC, and the authentication information reported by wireless terminal is committed to Radius server carries out certification.
Step 314: when Radius server passes through the authentication of wireless terminal, wireless terminal will successfully utilize the IP address accessing WLAN of distribution, start chargeable net-surfing; Otherwise, return login failure message.
In a step 314, return login failure message if receive after, wireless terminal can carry out re-authentication, after reaching the re-authentication number of times of setting, will be released this IP address.
Embodiment three:
As shown in Figure 4, be the device structure schematic diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment three, this equipment comprises: receiver module 41, determination module 42 and IP address assignment module 43.Wherein,
Receiver module 41, for receiving the IP address assignment request that AP sends; Determination module 42, for determining the utilization rate of current IP address in Dynamic Host Configuration Protocol server; IP address assignment module 43, carries out the distribution of IP address for the IP address assignment strategy corresponding according to the described utilization rate determined.
Particularly, described IP address assignment module 43 comprises: utilization rate judges that submodule 44, first number judges submodule 45 and IP address assignment submodule 46.
Utilization rate judges submodule 44, for judging whether the utilization rate of current IP address in Dynamic Host Configuration Protocol server is greater than first threshold and is less than Second Threshold, and described Second Threshold is greater than first threshold;
First time number judges submodule 45, for when the utilization rate of current IP address is greater than first threshold and is less than Second Threshold, after judging this AP IP address assignment request that N time sends before adjacent, whether obtains the IP address of distribution;
IP address assignment submodule 46, for when the judged result of first number judge module 44 is for being, instruction Dynamic Host Configuration Protocol server is described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address.
Particularly, described utilization rate judges submodule 44, also for judging whether the utilization rate of current IP address in Dynamic Host Configuration Protocol server is greater than Second Threshold.
Described IP address assignment module 43 also comprises: the time cycle determines that submodule 47 and second number judge submodule 48.Wherein,
Time cycle determines submodule 47, for when the utilization rate of current IP address is greater than Second Threshold, determine the time cycle that current time is corresponding, the described time cycle is from the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, the time cycle divided with the cycle duration set;
Second time number judges submodule 48, and for judging that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, described M is positive integer;
Described IP address assignment submodule 46, also for when the judged result of second number judge module 48 is for being, instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server is described AP distributing IP address.
In addition, in this WLAN (wireless local area network), the equipment of distributing IP address also comprises: transmission times determination module 49 and transmission times judge module 50.Wherein,
Transmission times determination module 49, for determining that described AP sends the number of times of IP address assignment request in setting duration;
Transmission times judge module 50, for judging whether the number of times that described AP sends IP address assignment request in setting duration reaches setting threshold value, and the utilization rate of described IP address is larger, and described setting threshold value is less;
Described IP address assignment submodule 46, also for when the number of times that described AP sends IP address assignment request in setting duration reaches setting threshold value, instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address.
In this WLAN (wireless local area network), the equipment of distributing IP address can be independently equipment, also can be the logical block in Dynamic Host Configuration Protocol server, as shown in Figure 5, for the equipment of distributing IP address in WLAN (wireless local area network) is the structural representation of the logical block in Dynamic Host Configuration Protocol server.
Embodiment four:
As shown in Figure 6, be the system configuration schematic diagram of distributing IP address in a kind of WLAN (wireless local area network) of the present embodiment four, this system comprises: AP61 and distributing IP address device 62.Wherein,
AP61, for sending IP address assignment request, and receives the IP address distributed;
Distributing IP address device 62, for after the IP address assignment request receiving AP transmission, determine the utilization rate of current IP address in Dynamic Host Configuration Protocol server, the IP address assignment strategy corresponding according to the described utilization rate determined carries out the distribution of IP address.
Particularly, described distributing IP address device 62, if be greater than first threshold specifically for described utilization rate and be less than Second Threshold, after then judging that this AP sends IP address assignment request N time before adjacent, whether obtain the IP address of distribution, if there is no the IP address of distribution, then Dynamic Host Configuration Protocol server is indicated to be described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, and described N is positive integer, and described Second Threshold is greater than first threshold.
Described distributing IP address device 62, if be greater than Second Threshold specifically for described utilization rate, determine the time cycle that current time is corresponding, judge that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, if, then indicate Dynamic Host Configuration Protocol server refusal for described AP distributing IP address, otherwise, instruction Dynamic Host Configuration Protocol server is described AP distributing IP address, wherein, the described time cycle is from the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, and the time cycle divided with the cycle duration set, described M is positive integer.
Described distributing IP address device 62, also for after the utilization rate determining current IP address in Dynamic Host Configuration Protocol server, determine that described AP sends the number of times of IP address assignment request in setting duration, setting threshold value is reached at described number of times, then indicate Dynamic Host Configuration Protocol server refusal for described AP distributing IP address, the utilization rate of described IP address is larger, and described setting threshold value is less.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method for distributing IP address in WLAN (wireless local area network), it is characterized in that, the method comprises:
After the IP address assignment request receiving access point AP transmission, determine that DynamicHost arranges the utilization rate of current IP address in protocol DHCP server;
The IP address assignment strategy corresponding according to the described utilization rate determined carries out the batch operation of IP address, concrete, if described utilization rate is greater than first threshold and is less than Second Threshold, after then judging that this AP sends IP address assignment request N time before adjacent, the IP address whether acquisition distributes, described N is positive integer, and described Second Threshold is greater than first threshold; If there is no the IP address of distribution, then Dynamic Host Configuration Protocol server is indicated to be described AP distributing IP address; If obtain the IP address distributed, then indicate Dynamic Host Configuration Protocol server refusal for described AP distributing IP address.
2. the method for claim 1, is characterized in that, also comprises:
If described utilization rate is greater than Second Threshold, then determine the time cycle that current time is corresponding, the described time cycle is from the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, the time cycle divided with the cycle duration set;
Judge that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, described M is positive integer;
If so, then indicate Dynamic Host Configuration Protocol server refusal for described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server is described AP distributing IP address.
3. method as claimed in claim 2, it is characterized in that, the cycle duration of described setting increases along with the increase of utilization rate.
4. method as claimed in claim 1 or 2, it is characterized in that, described method also comprises:
Determine that described AP sends the number of times of IP address assignment request in setting duration;
When described number of times reaches setting threshold value, instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, and the utilization rate of described IP address is larger, and described setting threshold value is less.
5. the equipment of distributing IP address in WLAN (wireless local area network), it is characterized in that, this equipment comprises:
Receiver module, for receiving the IP address assignment request that access point AP sends;
Determination module, for determining that DynamicHost arranges the utilization rate of current IP address in protocol DHCP server;
IP address assignment module, carries out the distribution of IP address for the IP address assignment strategy corresponding according to the described utilization rate determined; Described IP address assignment module comprises: utilization rate judges submodule, for judging whether the utilization rate of current IP address in Dynamic Host Configuration Protocol server is greater than first threshold and is less than Second Threshold, and described Second Threshold is greater than first threshold; First time number judges submodule, for when the utilization rate of current IP address is greater than first threshold and is less than Second Threshold, after judging this AP IP address assignment request that N time sends before adjacent, whether obtains the IP address of distribution; IP address assignment submodule, for when first number judges the judged result of submodule as being, instruction Dynamic Host Configuration Protocol server is described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address.
6. equipment as claimed in claim 5, is characterized in that,
Described utilization rate judges submodule, also for judging whether the utilization rate of current IP address in Dynamic Host Configuration Protocol server is greater than Second Threshold;
Described IP address assignment module also comprises:
Time cycle determines submodule, for when the utilization rate of current IP address is greater than Second Threshold, determine the time cycle that current time is corresponding, the described time cycle is from the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, the time cycle divided with the cycle duration set;
Second time number judges submodule, and for judging that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, described M is positive integer;
Described IP address assignment submodule, also for when the judged result of second number judge module is for being, instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server is described AP distributing IP address.
7. the equipment as described in claim 5 or 6, is characterized in that, this equipment also comprises:
Transmission times determination module, for determining that described AP sends the number of times of IP address assignment request in setting duration;
Transmission times judge module, for judging whether the number of times that described AP sends IP address assignment request in setting duration reaches setting threshold value, and the utilization rate of described IP address is larger, and described setting threshold value is less;
Described IP address assignment submodule, also for when the number of times that described AP sends IP address assignment request in setting duration reaches setting threshold value, instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address.
8. equipment as claimed in claim 7, it is characterized in that, in described WLAN (wireless local area network), the equipment of distributing IP address is the equipment in Dynamic Host Configuration Protocol server.
9. the system of distributing IP address in WLAN (wireless local area network), it is characterized in that, this system comprises:
Access point AP, for sending IP address assignment request, and receives the IP address distributed;
Distributing IP address device, for after the IP address assignment request receiving AP transmission, determine that DynamicHost arranges the utilization rate of current IP address in protocol DHCP server, the IP address assignment strategy corresponding according to the described utilization rate determined carries out the distribution of IP address; If be greater than first threshold specifically for described utilization rate and be less than Second Threshold, after then judging that this AP sends IP address assignment request N time before adjacent, the IP address whether acquisition distributes, if there is no the IP address of distribution, then Dynamic Host Configuration Protocol server is indicated to be described AP distributing IP address, otherwise instruction Dynamic Host Configuration Protocol server refusal is described AP distributing IP address, and described N is positive integer, and described Second Threshold is greater than first threshold.
10. system as claimed in claim 9, is characterized in that,
Described distributing IP address device, if be greater than Second Threshold specifically for described utilization rate, determine the time cycle that current time is corresponding, judge that whether Dynamic Host Configuration Protocol server was as this AP distributed M IP address within the time cycle determined, if, then indicate Dynamic Host Configuration Protocol server refusal for described AP distributing IP address, otherwise, instruction Dynamic Host Configuration Protocol server is described AP distributing IP address, wherein, the described time cycle is from the IP address utilization rate of Dynamic Host Configuration Protocol server is greater than Second Threshold, and the time cycle divided with the cycle duration set, described M is positive integer.
CN201110440979.0A 2011-12-26 2011-12-26 The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network) Active CN103179223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110440979.0A CN103179223B (en) 2011-12-26 2011-12-26 The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110440979.0A CN103179223B (en) 2011-12-26 2011-12-26 The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network)

Publications (2)

Publication Number Publication Date
CN103179223A CN103179223A (en) 2013-06-26
CN103179223B true CN103179223B (en) 2016-04-27

Family

ID=48638841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110440979.0A Active CN103179223B (en) 2011-12-26 2011-12-26 The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network)

Country Status (1)

Country Link
CN (1) CN103179223B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10171417B2 (en) * 2014-10-07 2019-01-01 Telefonaktiebolaget Lm Ericsson (Publ) Distributed IP allocation and de-allocation mechanism in a communications network having a distributed S/PGW architecture
CN105791238A (en) * 2014-12-24 2016-07-20 天津诸子科技有限公司 Method for preventing DHCP flooding attacks of wireless local area network
CN105306617B (en) * 2015-09-22 2019-07-09 广州昂宝电子有限公司 For distributing the method and the network equipment of network address
CN105959282A (en) 2016-04-28 2016-09-21 杭州迪普科技有限公司 Protection method and device for DHCP attack
CN107147753B (en) * 2017-06-21 2021-01-08 金华市智甄通信设备有限公司 IP address allocation method, cloud controller and wireless access point
CN108270615A (en) * 2017-12-25 2018-07-10 深圳市泰信通信息技术有限公司 Network equipment beginning method, apparatus and equipment based on SDN network controller
CN115134333B (en) * 2022-09-01 2022-12-02 广东邦盛新能源科技发展有限公司 Rapid networking method and system based on photovoltaic power generation and cloud platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992736A (en) * 2005-12-30 2007-07-04 西门子(中国)有限公司 IP address distribution method and use thereof
CN101674338A (en) * 2009-10-16 2010-03-17 福建星网锐捷网络有限公司 Recovering method of IP address and DHCP server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430614B2 (en) * 2003-10-31 2008-09-30 Redback Networks, Inc. Use of IP address blocks with default interfaces in a router

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992736A (en) * 2005-12-30 2007-07-04 西门子(中国)有限公司 IP address distribution method and use thereof
CN101674338A (en) * 2009-10-16 2010-03-17 福建星网锐捷网络有限公司 Recovering method of IP address and DHCP server

Also Published As

Publication number Publication date
CN103179223A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN103179223B (en) The method, apparatus and system of distributing IP address in a kind of WLAN (wireless local area network)
CN100544279C (en) The method of monitoring illegal access point, equipment and system in the WLAN (wireless local area network)
CN101222354A (en) Intelligent terminal management method
CN101795449B (en) Wireless network terminal access control method and device thereof
CN101765114A (en) Method, system and equipment for controlling wireless user access
CN104104516A (en) Portal authentication method and device
CN104853001A (en) Address resolution protocol (ARP) message processing method and device
CN101895587A (en) Method, device and system for preventing users from modifying IP addresses privately
CN103780641A (en) Cloud desktop access method, home gateway and system
CN102946385A (en) Method and equipment for preventing falsifying Release message for attack
WO2014059820A1 (en) Access control method and device for machine type terminal
US9118588B2 (en) Virtual console-port management
CN102984031A (en) Method and device for allowing encoding equipment to be safely accessed to monitoring and control network
CN102130832B (en) Terminal registration method in coaxial network and system
CN104243625A (en) IP address distribution method and device
CN102075588B (en) Method and system for realizing network address translation (NAT) transversing and equipment
CN102244620A (en) Method and system for determining association relationship between gateway and equipment
CN108712419A (en) A kind of authorization terminal authentication method, system and aaa server
CN106470193A (en) A kind of anti-DoS of DNS recursion server, the method and device of ddos attack
CN112910854A (en) Method and device for safe operation and maintenance of Internet of things, terminal equipment and storage medium
CN107995125B (en) Traffic scheduling method and device
CN103581354A (en) Network address allocation method and system
CN102281334A (en) Management control method and system thereof for wired terminal and access server
CN105791238A (en) Method for preventing DHCP flooding attacks of wireless local area network
CN103179222B (en) Method and device for distributing double-stack addresses

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant