CN101510902B - Method, system and equipment for preventing wireless client terminal from disconnection during internet process - Google Patents

Method, system and equipment for preventing wireless client terminal from disconnection during internet process Download PDF

Info

Publication number
CN101510902B
CN101510902B CN2009100807113A CN200910080711A CN101510902B CN 101510902 B CN101510902 B CN 101510902B CN 2009100807113 A CN2009100807113 A CN 2009100807113A CN 200910080711 A CN200910080711 A CN 200910080711A CN 101510902 B CN101510902 B CN 101510902B
Authority
CN
China
Prior art keywords
mac address
dhcp
wireless client
address
message
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
CN2009100807113A
Other languages
Chinese (zh)
Other versions
CN101510902A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2009100807113A priority Critical patent/CN101510902B/en
Publication of CN101510902A publication Critical patent/CN101510902A/en
Application granted granted Critical
Publication of CN101510902B publication Critical patent/CN101510902B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a system and a facility for preventing a wireless client from disconnecting from the internet in the process of surfing online. The method comprises: after receiving DHCP request message transmitted by the wireless client, a wireless access point (AP) looks for the existence of a list item corresponded with the MAC address, if no list item exists, the DHCP request message is forwarded to a DHCP server, if yes, the IP address in the list item corresponded with the MAC address is allocated to the wireless client. The method, the system and the facility for preventing a wireless client from disconnecting from the internet in the process of surfing online can avoid disconnection from the internet when a network card of the wireless client is flash off.

Description

Method, system and equipment for preventing wireless client from being disconnected in internet surfing process
Technical Field
The invention relates to a wireless local area network technology, in particular to a method, a system and equipment for preventing a wireless client from being disconnected in the internet surfing process.
Background
A Wireless Local Area Network (WLAN) technology is one of hot spot technologies in the current communication field, compared with a wired Network, the deployment and implementation of the WLAN are relatively simple, the maintenance cost is low, generally, one or more Access Port (AP) devices are installed to establish a Local Area Network covering the whole building or Area, and a Wireless client is accessed to the Wireless Local Area Network through the AP and then connected to a fixed Network or the internet.
In a WLAN network, the main process of a wireless client to realize internet access includes:
1. the wireless client starts scanning and is connected to the AP;
2. the wireless client acquires an IP address through a Dynamic Host Configuration Protocol (DHCP) request stage;
in a DHCP request stage, a wireless client sends a DHCP discover message, and after receiving the DHCP discover message, an AP forwards the DHCP discover message to each DHCP server in a network; each DHCP server receives the DHCP discover message, carries the IP address allocated to the wireless client in the DHCP offer message and sends the DHCP offer message to the wireless client through the AP; the wireless client selects an IP address in a DHCP offer message (usually, the first DHCP offer message received) as the selected IP address, and sends a DHCP request message carrying the selected IP address; after receiving the DHCP request message, the AP forwards the DHCP request message to each DHCP server in the network; and after receiving the DHCP request message, the DHCP server which allocates the selected IP address saves the table entry corresponding to the wireless client, carries the selected IP address in a DHCP ack message and sends the DHCP ack message to the wireless client through the AP, and the wireless client takes the IP address in the DHCP ack message as the finally obtained IP address.
3. And the wireless client accesses the internet by using the acquired IP address.
In a WLAN network, the network card in the wireless client is often reconnected after being instantly disconnected, which is also called network card flash. There are many reasons for causing network card flash, for example, because the WLAN network uses a common frequency band, there are many potential interference sources, and instantaneous interference may be generated on the network card in the wireless client.
The network card flash is that the network card in the wireless client is suddenly disconnected due to interference, and the quality of a wireless signal between the wireless client and the AP still meets the connection requirement, so that the network card can be immediately recovered to be connected with the AP after being instantly disconnected. After the network card is connected again, the wireless client sends a DHCP request message through the AP again to acquire the IP address again, and because the network card is disconnected abnormally by the wireless client, the DHCP server does not receive the DHCP request message sent by the wireless client under the condition of normal disconnection (namely, a user instructs the wireless client to disconnect), so that the DHCP request message is still stored in the previous table item of the wireless client. Or, because the DHCP server still stores the previous entry, a new IP address is assigned to the wireless client, which causes all application failures of the wireless client based on the IP address before the flash, and also causes a drop of the wireless client.
As can be seen from the above description, in the prior art, after the network card in the wireless client is flashed off, the wireless client is disconnected, so that the service performance is greatly reduced, and the service experience of the user is reduced.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method, a system and a device for preventing a wireless client from dropping during a network access process, so as to avoid the wireless client from dropping after a network card in the wireless client is flashed off.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for preventing a wireless client from being disconnected in the internet surfing process comprises the following steps:
after receiving a DHCP request message sent by a wireless client, a wireless access point AP controls an MAC address according to the medium access of the wireless client carried in the DHCP request message, searches whether a table item corresponding to the MAC address exists in the wireless access point AP or not, if not, the wireless access point AP forwards the DHCP request message to a DHCP server, and if so, an IP address in the table item corresponding to the MAC address is allocated to the wireless client.
After the AP does not find the entry corresponding to the MAC address in itself, the method further includes:
the AP extracts the IP address and the MAC address in the DHCP request message and stores the extracted IP address and the MAC address in a table entry corresponding to the MAC address;
or,
and the AP receives a DHCP ack message returned by the DHCP server, extracts the IP address and the MAC address from the DHCP ack message, and stores the extracted IP address and the extracted MAC address in a table entry corresponding to the MAC address.
The step of allocating the IP address in the MAC address correspondence table to the wireless client includes:
the AP carries the IP address in the corresponding table entry of the MAC address in a DHCP ack message and sends the DHCP ack message to a wireless client;
or,
and the AP carries the IP address in the corresponding table entry of the MAC address in an IP address distribution message appointed with the wireless client and sends the IP address distribution message to the wireless client.
After the AP receives the DHCP request message sent by the wireless client, and before searching whether an entry corresponding to the MAC address exists in the AP, the method further includes:
and the AP judges whether the DHCP request message contains a server identifier option, if so, the step of searching whether a table item corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the message is continuously executed, and if not, the AP forwards the DHCP request message to a DHCP server.
The method further comprises the following steps:
the AP receives a DHCP discovery message sent by the wireless client; the AP searches whether a table item corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the DHCP discovery message, if not, the DHCP discovery message is forwarded to a DHCP server, and if so, the IP address in the table item corresponding to the MAC address is carried in a DHCP offer message and sent to the wireless client.
The method further comprises the following steps: and after receiving the DHCPrelease message sent by the wireless client, the AP deletes the table entry corresponding to the MAC address in the AP according to the MAC address carried in the DHCP release message.
The system for preventing the wireless client from being disconnected in the internet surfing process comprises: a wireless client and an AP, wherein,
the wireless client is used for sending a DHCP request message carrying the MAC address of the wireless client, and taking the IP address sent by the AP as an allocated IP address;
and the AP is used for searching whether a table item corresponding to the MAC address exists in the AP according to the MAC address carried in the message after receiving the DHCP request message sent by the wireless client, forwarding the DHCP request message to a DHCP server if the table item corresponding to the MAC address does not exist in the AP, and sending the IP address in the table item corresponding to the MAC address to the wireless client if the table item corresponding to the MAC address does not exist in the AP.
Prevent AP that wireless client dropped off in the online process, this AP includes:
the receiving and sending unit is used for receiving the DHCP request message sent by the wireless client and forwarding the DHCP request message to the DHCP server after receiving the forwarding instruction sent by the processing unit;
the processing unit is used for extracting the MAC address from the DHCP request message received by the receiving and sending unit, searching whether a table item corresponding to the extracted MAC address exists in the table item storage unit, if not, sending a forwarding instruction to the receiving and sending unit, and if so, allocating the IP address in the table item corresponding to the extracted MAC address in the table item storage unit to the wireless client;
and the table entry storage unit is used for storing the table entries corresponding to the MAC addresses, and each table entry stores the MAC address and the IP address.
The processing unit is used for processing the data,
the table entry storage unit is further used for extracting the IP address from the DHCP request message received by the transceiver unit after the table entry corresponding to the extracted MAC address is not found in the table entry storage unit, and establishing a table entry corresponding to the MAC address and comprising the extracted IP address and the MAC address in the table entry storage unit;
or,
and further configured to, after the entry corresponding to the extracted MAC address is not found in the entry storage unit, extract the IP address and the MAC address from a DHCP ack packet returned by the DHCP server and further received by the transceiver unit, and establish an entry corresponding to the MAC address in the entry storage unit, where the entry includes the extracted IP address and MAC address.
The processing unit is further configured to, before executing the MAC address extraction from the DHCP request message received from the transceiving unit, determine whether the DHCP request message includes a servicedentifier option, if yes, continue to execute the MAC address extraction from the DHCPrequest message received from the transceiving unit, and if not, execute the forwarding instruction to be sent to the transceiving unit.
The transceiver unit is further configured to receive a DHCP discover message sent from a wireless client, and send the DHCP offer message sent from the processing unit to the wireless client.
The processing unit is further configured to extract an MAC address from the DHCP discover message received by the transceiver unit, search whether an entry corresponding to the extracted MAC address exists in the entry storage unit, if not, execute the sending of the forwarding instruction to the transceiver unit, and if so, carry the IP address in the entry corresponding to the extracted MAC address in the entry storage unit in the constructed DHCP offer message and send the DHCP offer message to the transceiver unit.
The transceiver unit is further configured to receive a DHCP release message sent by the wireless client;
the processing unit is further configured to extract an MAC address from the DHCP release message received by the transceiver unit, and delete a table entry in the table entry storage unit corresponding to the MAC address extracted from the DHCP release message.
It can be seen that the present invention has the following advantages:
in the invention, when the AP receives the DHCP request message sent by the wireless client, whether the network card in the current wireless client is flashed can be accurately judged according to whether the entry corresponding to the MAC address in the DHCP request message exists in the AP. In addition, after the flash break is determined, the AP can allocate the IP address in the corresponding table entry of the MAC address to the wireless client, so that the wireless client can be guaranteed to be reallocated to the IP address after the network card is flashed, and the defect that the wireless client can not be reallocated to the IP address and is disconnected in the prior art is overcome. In addition, because the IP address in the table entry corresponding to the MAC address is the IP address used by the wireless client before the flash-off occurs, after the IP address is reassigned to the wireless client, the invention can ensure that all applications of the wireless client based on the IP address before the flash-off can be continuously carried out, and also avoids the disconnection of the wireless client, thereby greatly improving the service performance and enhancing the service experience of users.
Drawings
Fig. 1 is a schematic diagram of a system for preventing a wireless client from being disconnected during internet access according to an embodiment of the present invention.
Fig. 2 is a flow chart of the method for preventing a wireless client from being disconnected during the process of accessing the internet in a preferred embodiment of the invention.
Fig. 3 is a schematic diagram of a basic structure of an AP for preventing a wireless client from being disconnected during internet access in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
The invention firstly provides a method for preventing a wireless client from being disconnected in the process of network connection, in the method, after an AP receives a DHCP request message sent by the wireless client, according to a Media Access Control (MAC) address of the wireless client carried in the DHCPrequest message, whether a table item corresponding to the MAC address exists in the AP is searched, if not, the DHCP request message is forwarded to a DHCP server, and if so, an IP address in the table item corresponding to the MAC address is distributed to the wireless client.
The invention correspondingly provides a system for preventing the wireless client from being disconnected in the internet surfing process. Fig. 1 is a schematic diagram of a system for preventing a wireless client from being disconnected during internet access according to an embodiment of the present invention. Referring to fig. 1, the system includes: a wireless client and an AP, wherein,
the wireless client is used for sending a DHCP request message carrying the MAC address of the wireless client, and taking the IP address sent by the AP as an allocated IP address;
and the AP is used for searching whether a table item corresponding to the MAC address exists in the AP according to the MAC address carried in the message after receiving the DHCP request message sent by the wireless client, forwarding the DHCP request message to a DHCP server if the table item corresponding to the MAC address does not exist in the AP, and sending the IP address in the table item corresponding to the MAC address to the wireless client if the table item corresponding to the MAC address does not exist in the AP.
Fig. 2 is a flow chart of the method for preventing a wireless client from being disconnected during the process of accessing the internet in a preferred embodiment of the invention. Referring to fig. 1 and 2, in a preferred embodiment of the present invention, the process of preventing the wireless client from dropping after the network card is disconnected during the internet surfing process by using the system provided by the present invention specifically includes the following steps:
step 201: after the AP establishes connection with the wireless client, monitoring the DHCP message is started.
Step 202: the AP receives a DHCP discovery message sent by a wireless client, searches whether a table item corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the DHCP discovery message, if not, executes a step 203, and if so, executes a step 204.
Those skilled in the art know that, in one case (denoted as case 1), the wireless client sends a DHCP discover message for applying for an IP address to each DHCP server according to the normal service flow requirement after initial connection; in another case (denoted as case 2), if the internal network card is flashed during the internet access process after the wireless client acquires the IP address, the DHCPdiscovery message is also retransmitted. Therefore, in this step, the AP does not adopt the processing of directly forwarding the DHCPdiscovery message to each DHCP server in the prior art, but first needs to determine whether the currently received DHCP discovery message is the message sent under the above-mentioned condition 1 or the message sent under the above-mentioned condition 2, so as to adopt different processing for different conditions, and under the condition that the wireless client is not disconnected after the network card is flashed, the AP can also ensure the performance of other normal services.
Analyzing the process of the wireless client-side internet service can know that under the condition 1, because the wireless client-side does not acquire the IP address used for internet after initial connection, the AP does not have the table entry corresponding to the MAC address of the wireless client-side; in case 2, the wireless client obtains the IP address and then flashes during the network access process, so the AP already stores the entry corresponding to the MAC address of the wireless client according to the existing protocol. It can be seen that the AP may determine, by using the entry corresponding to the MAC address of the wireless client, whether the currently received DHCP discover message is the message sent under the above-mentioned condition 1 or the message sent under the above-mentioned condition 2, where the specific determination method is "to find whether the entry corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the DHCP discover message," if the entry does not exist, it may be determined that the currently received DHCP discover message is the message sent under the above-mentioned condition 1, and if the entry exists, it may be determined that the currently received DHCP discover message is the message sent under the above-mentioned condition 2 (i.e., after the network card flash occurs).
Step 203: the AP forwards the DHCP discovery message to the DHCP server, and performs step 205.
In this step, since the AP has determined that the received DHCP discover message is the DHCP discover message applying for the IP address sent to each DHCP server according to the normal service flow after the initial connection in case 1 described above, the same process as in the prior art is performed, that is, the DHCP discover message in this step is forwarded to the DHCP server.
Step 204: and the AP carries the IP address in the table entry corresponding to the MAC address in a DHCP offer message and sends the DHCP offer message to the wireless client.
When the step is executed, because the AP has determined that the received DHCP discover message is the dhcpdiscover message that is retransmitted after the network card in the wireless client is flashed in the above case 2, in order to ensure that the wireless client is not disconnected, the AP needs to ensure that the wireless client can receive the DHCP offer message, thereby triggering the wireless client to execute a subsequent process of sending the DHCPrequest message to determine the allocated IP address.
Step 205: the AP receives a DHCP request message sent by the wireless client, and determines whether the DHCP request message includes a server identifier (server identifier) option, if so, then step 207 is executed, otherwise, step 206 is executed.
As can be appreciated from the DHCP protocol, a DHCP request message has two uses, one is sent by the wireless client to determine the assigned IP address in response to the DHCP offer message; the other is that the IP address allocated by the DHCP server for the wireless client has aging time and cannot be used indefinitely, and the wireless client sends the IP address in order to extend the service life of the IP address. According to the DHCP protocol, if the DHCP request message is used as the former one, the message contains a server identifier option.
Therefore, in this step, the AP determines whether the DHCP request message includes a servicer option, and if so, it indicates that the DHCP request message is for responding to the DHCPoffer message to determine the allocated IP address, in this case, the network card of the wireless client may be sent after being flashed, and step 207 and subsequent processing need to be executed, and if not, it indicates that the DHCP request message is not for determining the allocated IP address in response to the DHCP offer message, that is, the network card of the wireless client is not flashed, so that only the processing in the prior art needs to be executed, and step 206 is executed.
Step 206: and the AP forwards the DHCP request message to the DHCP server and ends the current process.
Step 207: the AP searches whether a table entry corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the DHCP request message, if not, performs step 208, and if so, performs step 210.
Those skilled in the art know that, in the above case 1, after initial connection, the wireless client needs to send a DHCP request message for determining an allocated IP address after receiving a DHCP offer message according to a normal service flow; in the above case 2, if the network card is flashed in the wireless client, after retransmitting the DHCP discover message and receiving the DHCP offer message, the DHCP request message that determines the allocated IP address is also retransmitted, so in this step, the AP cannot directly forward the DHCP request message to the DHCP server in the prior art for processing, but first needs to determine whether the currently received DHCP request message is a message transmitted in the above case 1 or a message transmitted in the above case 2, so as to adopt different processing for different situations, and under the condition that the wireless client does not drop the line after the network card is flashed, the wireless client can also ensure the performance of other normal services.
According to the analysis of the process of the wireless client internet access service in the step 202, the AP may determine, by using the entry corresponding to the MAC address of the wireless client, whether the currently received DHCP request message is the message sent under the above-mentioned condition 1 or the message sent under the above-mentioned condition 2, where the specific determination method is "to find whether the entry corresponding to the MAC address exists in the itself according to the MAC address of the wireless client carried in the DHCP request message," and if not, may determine that the currently received DHCP request message is the message sent under the above-mentioned condition 1, and if so, may determine that the currently received DHCP request message is the message sent under the above-mentioned condition 2 (i.e., after the network card is flashed).
Step 208-209: the AP extracts the IP address and the MAC address in the DHCP request message, and stores the extracted IP address and the MAC address in a newly-built table entry corresponding to the MAC address; and then, the AP forwards the DHCP request message to a DHCP server, and the current process is ended.
Here, since the AP has determined that the received DHCP request message is the message sent according to the normal service flow after the initial connection in case 1, it is necessary to perform the process of forwarding the DHCP request message to the DHCP server in the prior art.
In addition, at this time, since no entry corresponding to the MAC address of the wireless client is established in the AP, the AP may establish an entry corresponding to the MAC address by using the IP address and the MAC address in the DHCP request message. Of course, in the actual implementation of the service, there are other methods for establishing the entry, that is, the AP may also wait for receiving a DHCP ack packet returned by the DHCP server according to the normal service flow without establishing the entry corresponding to the MAC address by using the IP address and the MAC address in the DHCP request message, extract the IP address and the MAC address from the DHCP ack packet, and store the extracted IP address and MAC address in the entry corresponding to the MAC address.
Step 210: and the AP allocates the IP address in the MAC address corresponding table item in the DHCP request message to the wireless client.
The implementation process of this step may be: in the first mode, the AP carries the IP address in the MAC address corresponding table item in the DHCP request message in the DHCP ack message and sends the DHCP ack message to the wireless client; and in the second mode, the AP carries the IP address in the MAC address corresponding table item in the DHCP request message in the IP address distribution message appointed with the wireless client and sends the IP address to the wireless client.
Through the processing of the flow shown in fig. 2, it can be ensured that the network card in the wireless client can be reallocated to the IP address after the flash-off occurs, and the reallocated IP address is the same as the IP address used before the flash-off occurs (i.e., the IP address in the table entry corresponding to the MAC address of the wireless client), and the wireless client can continue to surf the internet by using the IP address, and all applications before the flash-off occurs can continue to be performed, thereby ensuring that the wireless client does not drop the line.
It should be noted that, in the present invention, as long as the AP receives the DHCPrelease message sent by the wireless client, the AP may determine that the wireless client is offline according to the normal service flow, and delete the entry corresponding to the MAC address in the AP according to the MAC address carried in the DHCP release message.
In addition, the invention also provides an AP for preventing the wireless client from being disconnected in the process of uploading. Fig. 3 is a schematic diagram of a basic structure of an AP for preventing a wireless client from being disconnected during internet access in an embodiment of the present invention. Referring to fig. 3, the basic structure of the AP includes:
the receiving and sending unit is used for receiving the DHCP request message sent by the wireless client and forwarding the DHCP request message to the DHCP server after receiving the forwarding instruction sent by the processing unit;
the processing unit is used for extracting the MAC address from the DHCP request message received by the receiving and sending unit, searching whether a table item corresponding to the extracted MAC address exists in the table item storage unit, if not, sending a forwarding instruction to the receiving and sending unit, and if so, allocating the IP address in the table item corresponding to the extracted MAC address in the table item storage unit to the wireless client;
and the table entry storage unit is used for storing the table entries corresponding to the MAC addresses, and each table entry stores the MAC address and the IP address.
In a preferred embodiment of the invention, the processing unit,
the table entry storage unit is further used for extracting the IP address from the DHCP request message received by the transceiver unit after the table entry corresponding to the extracted MAC address is not found in the table entry storage unit, and establishing a table entry corresponding to the MAC address and comprising the extracted IP address and the MAC address in the table entry storage unit;
or,
and further configured to, after the entry corresponding to the extracted MAC address is not found in the entry storage unit, extract the IP address and the MAC address from a DHCP ack packet returned by the DHCP server and further received by the transceiver unit, and establish an entry corresponding to the MAC address in the entry storage unit, where the entry includes the extracted IP address and MAC address.
In a preferred embodiment of the present invention, the processing unit is further configured to, before executing the extraction of the MAC address from the DHCP request message received from the transceiver unit, determine whether the DHCP request message includes a server identifier option, if yes, continue to execute the extraction of the MAC address from the DHCP request message received from the transceiver unit, and if not, execute the sending of the forwarding instruction to the transceiver unit.
In a preferred embodiment of the present invention, the transceiver unit is further configured to receive a DHCP discover message sent from a wireless client, and send a DHCP offer message sent from the processing unit to the wireless client;
the processing unit is further configured to extract an MAC address from the DHCP discover message received by the transceiver unit, search whether an entry corresponding to the extracted MAC address exists in the entry storage unit, if not, execute the sending of the forwarding instruction to the transceiver unit, and if so, carry the IP address in the entry corresponding to the extracted MAC address in the entry storage unit in the constructed DHCP offer message and send the DHCP offer message to the transceiver unit.
In a preferred embodiment of the present invention, the transceiver unit is further configured to receive a DHCP release message sent from the wireless client;
the processing unit is further configured to extract an MAC address from the DHCP release message received by the transceiver unit, and delete a table entry in the table entry storage unit corresponding to the MAC address extracted from the DHCP release message.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for preventing a wireless client from being disconnected in the internet surfing process is characterized by comprising the following steps:
after receiving a DHCP request message sent by a wireless client, a wireless access point AP controls an MAC address according to the medium access of the wireless client carried in the DHCP request message, searches whether a table item corresponding to the MAC address exists in the wireless access point AP or not, if not, the wireless access point AP forwards the DHCP request message to a DHCP server, and if so, an IP address in the table item corresponding to the MAC address is allocated to the wireless client.
2. The method of claim 1, wherein after the AP finds no entry corresponding to the MAC address in itself, the method further comprises:
the AP extracts the IP address and the MAC address in the DHCP request message and stores the extracted IP address and the MAC address in a table entry corresponding to the MAC address;
or,
and the AP receives a DHCP ack message returned by the DHCP server, extracts the IP address and the MAC address from the DHCP ack message, and stores the extracted IP address and the extracted MAC address in a table entry corresponding to the MAC address.
3. The method of claim 1, wherein the step of assigning the IP address in the MAC address correspondence table to the wireless client comprises:
the AP carries the IP address in the corresponding table entry of the MAC address in a DHCP ack message and sends the DHCP ack message to a wireless client;
or,
and the AP carries the IP address in the corresponding table entry of the MAC address in an IP address distribution message appointed with the wireless client and sends the IP address distribution message to the wireless client.
4. The method of claim 1, wherein after the AP receives a DHCP request message from a wireless client and before looking up whether an entry corresponding to the MAC address exists in the AP, the method further comprises:
and the AP judges whether the DHCP request message contains a server identifier option, if so, the step of searching whether a table item corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the message is continuously executed, and if not, the AP forwards the DHCP request message to a DHCP server.
5. The method according to any one of claims 1 to 4, characterized in that the method further comprises:
the AP receives a DHCP discovery message sent by the wireless client; the AP searches whether a table item corresponding to the MAC address exists in the AP according to the MAC address of the wireless client carried in the DHCP discovery message, if not, the DHCP discovery message is forwarded to a DHCP server, and if so, the IP address carried in the table item corresponding to the MAC address is carried in a DHCPoffer message and sent to the wireless client.
6. The method according to any one of claims 1 to 4, characterized in that the method further comprises: and after receiving the DHCP release message sent by the wireless client, the AP deletes the table entry corresponding to the MAC address in the AP according to the MAC address carried in the DHCP release message.
7. A system for preventing a wireless client from being disconnected in the internet surfing process is characterized by comprising: a wireless client and an AP, wherein,
the wireless client is used for sending a DHCP request message carrying the MAC address of the wireless client, and taking the IP address sent by the AP as an allocated IP address;
and the AP is used for searching whether a table item corresponding to the MAC address exists in the AP according to the MAC address carried in the message after receiving the DHCP request message sent by the wireless client, forwarding the DHCP request message to a DHCP server if the table item corresponding to the MAC address does not exist in the AP, and sending the IP address in the table item corresponding to the MAC address to the wireless client if the table item corresponding to the MAC address does not exist in the AP.
8. Prevent AP that wireless client dropped off at the online in-process, its characterized in that, this AP includes:
the receiving and sending unit is used for receiving the DHCP request message sent by the wireless client and forwarding the DHCP request message to the DHCP server after receiving the forwarding instruction sent by the processing unit;
the processing unit is used for extracting the MAC address from the DHCP request message received by the receiving and sending unit, searching whether a table item corresponding to the extracted MAC address exists in the table item storage unit, if not, sending a forwarding instruction to the receiving and sending unit, and if so, allocating the IP address in the table item corresponding to the extracted MAC address in the table item storage unit to the wireless client;
and the table entry storage unit is used for storing the table entries corresponding to the MAC addresses, and each table entry stores the MAC address and the IP address.
9. The AP of claim 8, wherein the processing unit,
the table entry storage unit is further used for extracting the IP address from the DHCP request message received by the transceiver unit after the table entry corresponding to the extracted MAC address is not found in the table entry storage unit, and establishing a table entry corresponding to the MAC address and comprising the extracted IP address and the MAC address in the table entry storage unit;
or,
and further configured to, after the entry corresponding to the extracted MAC address is not found in the entry storage unit, extract the IP address and the MAC address from a DHCP ack packet returned by the DHCP server and further received by the transceiver unit, and establish an entry corresponding to the MAC address in the entry storage unit, where the entry includes the extracted IP address and MAC address.
10. The AP of claim 8, wherein the processing unit is further configured to, before executing extracting the MAC address from the DHCP request message received from the transceiver unit, determine whether the DHCP request message includes a server identifier option, if yes, continue executing the extracting of the MAC address from the DHCP request message received from the transceiver unit, and if not, execute the sending of the forwarding instruction to the transceiver unit.
11. The AP according to claim 8, 9 or 10, wherein the transceiver unit is further configured to receive a DHCP discover message sent from a wireless client, and send a DHCP offer message sent from the processing unit to the wireless client.
The processing unit is further configured to extract an MAC address from the DHCP discover message received by the transceiver unit, search whether an entry corresponding to the extracted MAC address exists in the entry storage unit, if not, execute the sending of the forwarding instruction to the transceiver unit, and if so, carry the IP address in the entry corresponding to the extracted MAC address in the entry storage unit in the constructed DHCP offer message and send the DHCP offer message to the transceiver unit.
12. The AP according to claim 8, 9 or 10, wherein the transceiver unit is further configured to receive a DHCP release message sent from the wireless client;
the processing unit is further configured to extract an MAC address from the DHCP release message received by the transceiver unit, and delete a table entry in the table entry storage unit corresponding to the MAC address extracted from the DHCP release message.
CN2009100807113A 2009-03-25 2009-03-25 Method, system and equipment for preventing wireless client terminal from disconnection during internet process Active CN101510902B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100807113A CN101510902B (en) 2009-03-25 2009-03-25 Method, system and equipment for preventing wireless client terminal from disconnection during internet process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100807113A CN101510902B (en) 2009-03-25 2009-03-25 Method, system and equipment for preventing wireless client terminal from disconnection during internet process

Publications (2)

Publication Number Publication Date
CN101510902A CN101510902A (en) 2009-08-19
CN101510902B true CN101510902B (en) 2011-12-21

Family

ID=41003165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100807113A Active CN101510902B (en) 2009-03-25 2009-03-25 Method, system and equipment for preventing wireless client terminal from disconnection during internet process

Country Status (1)

Country Link
CN (1) CN101510902B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238527B (en) * 2010-04-22 2014-07-02 杭州华三通信技术有限公司 Method, system and access point for wireless roaming user to access network
CN101883090A (en) * 2010-04-29 2010-11-10 北京星网锐捷网络技术有限公司 Client access method, equipment and system
CN102316447B (en) * 2011-09-14 2014-12-24 福建星网锐捷网络有限公司 Internet protocol (IP) address allocation and sending method, wireless access device, server and system
TWI497967B (en) * 2013-01-31 2015-08-21 Everfocus Electronics Corp Port DHCP server protocol address management method
CN104243153B (en) * 2013-06-07 2017-11-17 华为终端有限公司 The method and user equipment of a kind of user for discovering device
CN103442450B (en) * 2013-08-21 2017-03-15 宇龙计算机通信科技(深圳)有限公司 Wireless communications method and Wireless Telecom Equipment
CN104683136B (en) * 2013-11-29 2018-02-09 杭州迪普科技股份有限公司 DHCP delay event-handling methods and device
CN107615723B (en) * 2015-06-29 2020-04-14 华为技术有限公司 Internet protocol address allocation method and relay equipment
CN106254571B (en) * 2016-08-05 2020-12-18 新华三技术有限公司 Client IP address allocation method and device
CN108243263A (en) * 2016-12-26 2018-07-03 中移(苏州)软件技术有限公司 A kind of cut-in method of mobile hotspot device and mobile hotspot device
CN107453945A (en) * 2017-07-14 2017-12-08 上海斐讯数据通信技术有限公司 Because router netting twine disconnects the solution method and system for causing network not connect
CN107370640A (en) * 2017-08-21 2017-11-21 太仓市同维电子有限公司 Automatically control the system and method that network interface card connection AP is tested
CN109802980A (en) * 2017-11-17 2019-05-24 华为技术有限公司 Method for message interaction, relevant apparatus and system
CN107911276B (en) * 2017-12-27 2020-08-07 迈普通信技术股份有限公司 Request response method, wireless controller, wireless access point and request response system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481133A (en) * 2002-09-05 2004-03-10 深圳市中兴通迅股份有限公司上海第二 Method for accessing server through wideband
CN101039234A (en) * 2007-03-19 2007-09-19 中兴通讯股份有限公司 Method for realizing distributed DHCP relay
CN101192998A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 Data line detection method based on network processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481133A (en) * 2002-09-05 2004-03-10 深圳市中兴通迅股份有限公司上海第二 Method for accessing server through wideband
CN101192998A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 Data line detection method based on network processor
CN101039234A (en) * 2007-03-19 2007-09-19 中兴通讯股份有限公司 Method for realizing distributed DHCP relay

Also Published As

Publication number Publication date
CN101510902A (en) 2009-08-19

Similar Documents

Publication Publication Date Title
CN101510902B (en) Method, system and equipment for preventing wireless client terminal from disconnection during internet process
US8787200B2 (en) Device, system, and method for automatically configuring application terminals in home network
KR101723453B1 (en) Apparatus and method for providing universal plug and play based on wi-fi direct connection in portable terminal
CN101453495B (en) Method, system and equipment for preventing authentication address resolution protocol information loss
CN102209023B (en) Fiber channel over Ethernet (FCoE) communication connection establishment method, device, name server and system
RU2464722C2 (en) Method, device and system for distribution of messages
EP2169877A1 (en) Processing method and device for qinq termination configuration
CN113692753B (en) Network device and method for searching edge service implemented in network device
US9794115B2 (en) Method, device and system for an application layer traffic optimization server
US20160344681A1 (en) Apparatus and Methods for Assigning Internetwork Addresses
EP2154840A1 (en) Method and apparatus for supporting user terminal to access network in the fixed access network
CN104519551A (en) DHCP (Dynamic Host Configuration Protocol) negotiation method and client in WiFi (Wireless Fidelity) network
CN106850760B (en) Geographic position acquisition method and device
KR101506852B1 (en) Method for Selecting Network Mode, Mobile Router Therefor
US20130086259A1 (en) Method for acquiring an ip address and network access device
US20190334772A1 (en) Automatically Determining Mesh Network Role of Network Device
JP3793193B2 (en) Mobile terminal and mobile terminal control method
CN109068338B (en) System and method for detecting and processing compatibility of three-address wireless distributed system
CN102761629A (en) Method, device and system for setting DNS (Domain Name System) server address
CN104052826B (en) The method and apparatus of discovery web medium server based on DHCP
CN108965363B (en) Method and equipment for processing message
CN106803846A (en) For AP shares out the work method, equipment and the system of AC in WLAN
CN106375224B (en) Router and method for network connection by using same
CN114126008B (en) Method, device and system for improving transmission performance and readable storage medium
US20240314103A1 (en) Detection and solution of misdirected domain name system requests

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
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address