WO2017024663A1 - Method and device for increasing access efficiency of station - Google Patents

Method and device for increasing access efficiency of station Download PDF

Info

Publication number
WO2017024663A1
WO2017024663A1 PCT/CN2015/090908 CN2015090908W WO2017024663A1 WO 2017024663 A1 WO2017024663 A1 WO 2017024663A1 CN 2015090908 W CN2015090908 W CN 2015090908W WO 2017024663 A1 WO2017024663 A1 WO 2017024663A1
Authority
WO
WIPO (PCT)
Prior art keywords
site
address
table corresponding
information table
station
Prior art date
Application number
PCT/CN2015/090908
Other languages
French (fr)
Chinese (zh)
Inventor
张蓬勃
蔡磊磊
李�杰
Original Assignee
深圳市华讯方舟科技有限公司
深圳市华讯方舟软件信息科技有限公司
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
Priority claimed from CN201510488042.9A external-priority patent/CN105142189B/en
Priority claimed from CN201510488041.4A external-priority patent/CN105188107B/en
Priority claimed from CN201510487887.6A external-priority patent/CN105072669B/en
Application filed by 深圳市华讯方舟科技有限公司, 深圳市华讯方舟软件信息科技有限公司 filed Critical 深圳市华讯方舟科技有限公司
Publication of WO2017024663A1 publication Critical patent/WO2017024663A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for improving access efficiency of a station.
  • the embodiments of the present invention provide a method and an apparatus for improving access efficiency of a station, so as to solve the problem that some stations in the prior art do not support the wireless network protocol, resulting in low access efficiency.
  • the problem is a problem that some stations in the prior art do not support the wireless network protocol, resulting in low access efficiency.
  • an embodiment of the present invention provides a method for improving access efficiency of a site, including: [0005] deleting a media access control MAC address of a site when receiving a disassociation request message of a site Corresponding the first hash table, deleting the second hash table corresponding to the initial Internet Protocol IP address of the site, and deleting the first site information table corresponding to the site;
  • the first hash table corresponding to the MAC address of the site and the first site information corresponding to the site are re-established. a table, and replying to the reassociation response message to the site;
  • an embodiment of the present invention provides an apparatus for improving access efficiency of a station, including: [0009] a first deleting unit, configured to: after receiving a disassociation request message of a site, deleting the The first hash table corresponding to the MAC address of the site is deleted, the second hash table corresponding to the initial Internet Protocol IP address of the site is deleted, and the first site information table corresponding to the site is deleted;
  • a first establishing unit configured to: if the re-association request message sent by the station is received in the first preset time, re-establish a first hash table corresponding to the MAC address of the site, and the a first site information table corresponding to the site, and replying to the re-association response message to the site;
  • a first IP address allocation unit configured to obtain, from the third hash table corresponding to the MAC address of the site and the initial IP address, if the IP address update message is not received in the second preset time Initial I of the site
  • the beneficial effects of the embodiment of the present invention compared with the prior art are:
  • the embodiment of the present invention improves the connection of the site by adapting a message that does not conform to the wireless network protocol specification to a message conforming to the wireless network protocol specification.
  • the success rate of the user is improved, and the user's online experience is improved.
  • the third hash table corresponding to the MAC address of the site and the initial IP address is temporarily reserved.
  • FIG. 1 is a flowchart of an implementation of a method for improving access efficiency of a site according to an embodiment of the present invention
  • 2 is a flowchart of an implementation of a method for improving access efficiency of a station according to another embodiment of the present invention
  • FIG. 3 is a method for improving access efficiency of a station according to another embodiment of the present invention
  • FIG. 4 is a structural block diagram of an apparatus for improving access efficiency of a station according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of an implementation of a method for improving access efficiency of a site according to an embodiment of the present invention, which is as follows:
  • step S101 when the disassociation request message of the station is received, the first hash table corresponding to the media access control MAC address of the site is deleted, and the first corresponding IP address of the site is deleted. Two hash tables, and delete the first site information table corresponding to the site.
  • the executive body of the embodiment of the present invention may be an AC (Access Controller).
  • the stations in the embodiments of the present invention refer to wireless stations, such as smart phones, tablets, and smart bracelets.
  • the disassociation request message may be a disassociation request (Disassociation)
  • the station sends an unlink request message to the access point, and the access point forwards the disassociation request message to the AC.
  • the access point refers to the access point currently accessed by the station.
  • the disassociation request message is parsed according to the 802.11 protocol, to obtain the MAC (Media Access Control) of the site from the disassociation request message. address.
  • the first hash table corresponding to the MAC address of the site is searched according to the MAC address of the site, and the first hash table corresponding to the MAC address of the site is deleted.
  • the second hash table corresponding to the initial IP address of the site is searched according to the initial IP address of the site, and deleted.
  • the second hash table corresponding to the initial IP address of the site Delete all the information in the first site information table corresponding to the site, retain the third hash table corresponding to the MAC address and IP address of the site, and start the first
  • the fixed length of the first fixed device is equal to the first preset time.
  • step S102 if the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site is re-established, and the site corresponding to the site is re-established.
  • the MAC address of the station is obtained from the re-association request message, and the presence or absence of the The first hash table corresponding to the MAC address of the site, if the first hash table corresponding to the MAC address of the site does not exist, re-establish the first hash table corresponding to the MAC address of the site, and establish a corresponding hash table of the site.
  • the first site information table, and then the re-association response message is sent to the site.
  • the second fixed device is started, and the fixed length of the second fixed device is equal to the second preset time.
  • the first site information table corresponding to the site includes the MAC address of the site, and further includes a MAC address, an IP address, and an SSID (Service Set Identifier) of the access point that the site requests to access. , service set identifier) and / or WLAN ID (WLAN Identifier)
  • SSID Service Set Identifier
  • step S103 if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is obtained from the site. An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
  • the MAC address of the site and the initial IP address in the third hash table corresponding to the initial IP address are re-re- Assign to the site and update the initial IP address to the first site information table corresponding to the site.
  • CAPWAP Control And Provisioning of Wireless Access Points protocol
  • the site configuration request message carries site addition information.
  • the site add message is sent to the access point accessed by the site to notify the access point to add information about the site and process the Internet data of the site.
  • the Socket communication technology is used to change the site from the non-working state to the working state to process the data forwarding of the site.
  • the third hash table corresponding to the MAC address of the site and the initial IP address is used.
  • the initial IP address is reassigned to the site, allowing the site to quickly access the network, improving the access efficiency of the site.
  • the method further includes:
  • the new IP address is obtained from the IP address update message, and the new IP address is assigned to the site. And updating the new IP address to the first site information table corresponding to the site, establishing a third hash table corresponding to the MAC address of the site and the new IP address, and deleting the MAC address corresponding to the site and the initial IP address.
  • the third hash table if an IP address update message is received before the end of the second timer, the new IP address is obtained from the IP address update message, and the new IP address is assigned to the site. And updating the new IP address to the first site information table corresponding to the site, establishing a third hash table corresponding to the MAC address of the site and the new IP address, and deleting the MAC address corresponding to the site and the initial IP address.
  • the method further includes:
  • the deleting the first hash table corresponding to the MAC address of the site, and deleting the second hash table corresponding to the initial IP address of the site includes:
  • the method further includes:
  • the third hash table corresponding to the MAC address of the site and the initial IP address is deleted.
  • the third hash table corresponding to the MAC address of the site and the initial IP address is deleted.
  • the site configuration request message carries site deletion information. Sending the site deletion message to the access point accessed by the site to notify the access point that the site has left the network and delete the information of the site.
  • the message interface defined inside the system uses Socket (socket) communication technology to change the site from the working state to the non-working state, and stops processing the data forwarding of the site.
  • the embodiment of the present invention improves the access success rate of the site by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification, and improves the user's online experience;
  • the third hash table corresponding to the MAC address of the reserved station and the initial IP address is temporarily reserved, and if the re-association request message sent by the station is received in the first preset time, and the second preset is If the IP address update message is not received in the time, the IP address in the third hash table corresponding to the MAC address of the site and the initial IP address is reassigned to the site, thereby quickly re-accessing the network by using the initial IP address. , thereby improving the access efficiency of the site.
  • FIG. 2 is a flowchart of an implementation of a method for improving access efficiency of a site according to another embodiment of the present invention. Referring to FIG. 2:
  • step S201 when the association request message sent by the station is received, the MAC address of the station and the information of the access point requested by the station are obtained from the association request message.
  • the association request message is parsed to obtain the MAC address of the site and the access point (AP, where the site requests access) from the association request message.
  • the information of the Access Point is further queried according to the MAC address of the site to check whether there is a first hash table corresponding to the MAC address of the site.
  • step S202 if the first hash table corresponding to the MAC address of the site is queried, the first site information table corresponding to the site is obtained.
  • step S203 if the access point requested by the station is consistent with the access point stored in the first station information table, the association response message is replied to the station.
  • the first hash table corresponding to the MAC address of the site is queried, it indicates that the site sends the association request message again when the network is already connected.
  • the first hash table corresponding to the MAC address of the site is queried in the embodiment of the present invention. Obtaining the information of the access point requested by the site from the association request message, and obtaining the information of the stored access point from the first site information table corresponding to the site, and then requesting the access point of the site to access the site The information is compared with the information of the access point stored in the first site information table.
  • the 802.11 protocol directly responds to the association response message to the site without repeatedly performing access processing on the site, without Make a status change to the site.
  • the reply association response message to the site is specifically: The access point requesting access and the MAC address, IP address, SSID, and/or WLAN of the access point stored in the first site information table
  • step S204 when the disassociation request message of the station is received, the first hash table corresponding to the media access control MAC address of the site is deleted, and the first corresponding IP address of the site is deleted. Two hash tables, and delete the first site information table corresponding to the site.
  • step S205 if the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site is re-established, and the site corresponding to the site is re-established.
  • step S206 if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is obtained from the site. An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
  • the method further includes:
  • the first hash table corresponding to the MAC address of the site is not queried, the first hash table corresponding to the MAC address of the site is established, and the site corresponding to the association request message is established.
  • the first site information table and then reply to the association response message to the site.
  • the site after receiving the association request message sent by the site, if the first hash table corresponding to the MAC address of the site is not queried, the site is established according to the MAC address of the site.
  • the first hash table corresponding to the MAC address, and the first site information table corresponding to the site is established according to the association request message, and then the association response message is replied to the site according to the 802.11 protocol.
  • the establishing, by the association request message, the first site information table corresponding to the site includes: [0057] obtaining, from the association request message, a MAC address of an access point that the station requests to access;
  • the establishing, by the association request message, the first site information table corresponding to the site includes: obtaining, by using an association request message, a MAC address of an access point that the site requests to access, and then The MAC address of the site and the MAC address of the access point that the site requests to access establish a first site information table corresponding to the site.
  • the first station information table includes the MAC address of the station and the MAC address of the access point that the station requests to access.
  • the establishing, by the association request message, the first site information table corresponding to the site includes: obtaining, from the association request message, a MAC address and an IP address of an access point that the site requests to access.
  • the address, the SSID, and/or the WLAN ID are used to establish a first site information table corresponding to the site according to the MAC address of the site and the MAC address, IP address, SSID, and/or WLAN ID of the access point that the site requests to access.
  • the first station information table includes the MAC address of the station, and further includes a MAC address, an IP address, an SSID, and/or a WLAN ID of the access point that the station requests to access.
  • the method further includes:
  • the third hash table is used to record the correspondence between the MAC address of the site and the IP address.
  • sending the site adding information corresponding to the site to the access point requested by the site to access is specifically :
  • the site configuration request message carries site addition information. Sending the site configuration request message to the access point that the site requests to access, to notify the access point to add information of the site, and forward the Internet access data of the site.
  • the method further includes: using a Socket communication technology to establish an AC recording site in an active state through a message interface defined in the AC system, and establishing a local site data forwarding relationship table to process the site Internet data.
  • the embodiment of the present invention improves the access success rate of the website and improves the online experience of the user by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification;
  • the association request message ⁇ obtains the MAC address of the site from the association request message, and determines whether the first hash table corresponding to the MAC address of the site can be queried, and if the MA C address corresponding to the site is queried a hash table, and the access point requested by the site is consistent with the access point stored in the first site information table corresponding to the site, and the reply response message is directly replied to the site without repeating the connection to the site. Into the processing, thereby improving the access efficiency of the site.
  • FIG. 3 is a flowchart of an implementation of a method for improving access efficiency of a site according to another embodiment of the present invention. Referring to FIG. 3:
  • step S301 when the association request message sent by the station is received, the medium access control MAC address of the site and the information of the access point requested by the station are obtained from the association request message.
  • step S302 if the first hash table corresponding to the MAC address of the site is queried, the first site information table corresponding to the site is obtained.
  • step S303 if the access point requested by the station is consistent with the access point stored in the first station information table, the association response message is replied to the station.
  • step S304 if the information of the access point that the station requests to access is inconsistent with the information of the access point stored in the first station information table, the access requested according to the station is requested.
  • the information of the point updates the first site information table, obtains a second site information table, and replies with an association response message to the site.
  • the first hash table corresponding to the MAC address of the site is queried, it indicates that the site sends the association request message again when the network is already connected. Since the resending of the association request message by the station in the case of accessing the network does not comply with the specification procedure of the wireless network protocol, in the embodiment of the present invention, if After the first hash table corresponding to the MAC address of the site is obtained, the first site information table corresponding to the site is obtained, the information of the stored access point is obtained from the first site information table, and the site is requested to access the connection. The information of the inbound point is compared with the information of the access point stored in the first station information table.
  • the information is inconsistent, it indicates that the station has roamed, that is, the station does not access the network through the original access point. If the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, update the first site information table according to the information of the access point that the site requests to access, and obtain the second site.
  • the information table in accordance with the 8 02.11 agreement, replies to the association response message to the site.
  • the information of the access point that the station requests to access is inconsistent with the information of the access point stored in the first station information table, and the specific information is: The MAC address, IP address, SSID, and/or WLAN ID of the access point stored in the site information table are inconsistent.
  • step S305 assigning a new IP address to the site according to DHCP, establishing a second hash table corresponding to the new IP address of the site, establishing a MAC address and a new IP address of the site. Corresponding third hash table.
  • the third hash table is used to record the correspondence between the MAC address of the site and the IP address.
  • the site is assigned a new IP address, and a second hash table corresponding to the new IP address of the site is established, and a third hash corresponding to the new IP address of the MAC address of the site is established. table.
  • step S306 the second site information table is updated according to the new IP address of the site, to obtain a third site information table.
  • the method further includes:
  • the second hash corresponding to the initial IP address of the site is deleted.
  • step S307 when the disassociation request message of the station is received, the first hash table corresponding to the media access control MAC address of the site is deleted, and the first corresponding IP address of the site is deleted. Two hash tables, and delete the first site information table corresponding to the site. [0083] In step S308, if the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site is re-established, and the site corresponding to the site is re-established. The first site information table, and reply to the reassociation response message to the site.
  • step S309 if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is obtained from the site. An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
  • the method further includes:
  • the method further includes: updating a local site data forwarding relationship table by using a Socket communication technology through a message interface defined in the AC system, to process the Internet data of the site.
  • the first site information table is updated according to the information of the access point that the site requests to access
  • obtaining, from the association request message, a MAC address, an IP address, a service set identifier SSID, and/or a wireless local area network identifier WLAN ID of the access point that the station requests to access, and requesting access by the site The MAC address, IP address, SSID, and/or WLAN ID of the access point are added to the first site information table to obtain the second site information table.
  • the first site information table needs to be updated, specifically, Delete all the information of the access point stored in the first site information table, obtain the MAC address, IP address, SSID, and/or WLAN ID of the access point requested by the site from the association request message, and connect the site request Incoming
  • the MAC address, IP address, SSID, and/or WLAN ID of the ingress are added to the first site information table to obtain a second site information table.
  • the embodiment of the present invention improves the access success rate of the site by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification, and prevents the site from using the network after roaming, thereby improving the user.
  • Internet access experience when receiving the association request message sent by the site, and the information of the access point requested by the site is inconsistent with the information of the access point stored in the first site information table, it is determined that the site has roamed, that is, switched The access point is executed, and the process of switching the access point is performed, thereby preventing the site from being unable to access the network or using the network after accessing the network, thereby improving the user's online experience.
  • the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be taken to the embodiment of the present invention.
  • the implementation process constitutes any limitation.
  • FIG. 4 is a structural block diagram of an apparatus for improving access efficiency of a station according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
  • the first deleting unit 401 is configured to: when receiving the disassociation request message of the site, delete the first hash table corresponding to the media access control MAC address of the site, and delete the initial Internet Protocol IP address of the site. Corresponding second hash table, and deleting the first site information table corresponding to the site;
  • the first establishing unit 402 is configured to: if the re-association request message sent by the station is received in the first preset time, re-establish the first hash table corresponding to the MAC address of the site and the Determining a first site information table corresponding to the site, and replying to the re-association response message to the site;
  • the first IP address allocating unit 403 is configured to: if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is used. Obtaining an initial IP address of the site, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
  • the device further includes:
  • the second IP address allocating unit 404 is configured to: if the IP address update message is received in the second preset time, obtain a new IP address from the IP address update message, The new IP address is assigned to the site, and the new IP address is updated to the first site information table corresponding to the site.
  • the device further includes:
  • the second establishing unit 405 is configured to establish a third hash table corresponding to the MAC address of the site and the new IP address.
  • the second deleting unit 406 is configured to delete a third hash table corresponding to the MAC address of the site and the initial IP address.
  • the first deleting unit 401 is specifically configured to:
  • the device further includes:
  • the third deleting unit 407 is configured to: if the re-association request message sent by the station is not received in the first preset time, delete the MAC address of the station and the initial IP address.
  • the third hash table is configured to: if the re-association request message sent by the station is not received in the first preset time, delete the MAC address of the station and the initial IP address.
  • the embodiment of the present invention improves the access success rate of the website and improves the online experience of the user by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification;
  • the third hash table corresponding to the MAC address of the reserved station and the initial IP address is temporarily reserved, and if the re-association request message sent by the station is received in the first preset time, and the second preset is If the IP address update message is not received in the time, the IP address in the third hash table corresponding to the MAC address of the site and the initial IP address is reassigned to the site, thereby quickly re-accessing the network by using the initial IP address. , thereby improving the access efficiency of the site.
  • the device further includes:
  • the first obtaining unit 408 is configured to: when receiving an association request message sent by the station, obtain, from the association request message, a MAC address of the site and information of an access point that the site requests to access;
  • the second obtaining unit 409 is configured to: if the first hash table corresponding to the MAC address of the site is queried, obtain the first site information table corresponding to the site;
  • the first response unit 410 is configured to: when the access point requested by the station is consistent with the access point stored in the first station information table, reply the association response message to the station.
  • the device further includes:
  • the second response unit 411 is configured to: if the first hash table corresponding to the MAC address of the site is not queried, establish a first hash table corresponding to the MAC address of the site, and according to the The association request message establishes a first site information table corresponding to the site, and then replies the association response message to the site.
  • the second response unit 411 is specifically configured to:
  • the device further includes:
  • the third establishing unit 412 is configured to allocate an internet protocol IP address to the site according to the dynamic host configuration protocol, and establish a second hash table corresponding to the IP address of the site, and establish a MAC address of the site. a third hash table corresponding to the IP address of the site;
  • the first site information table updating unit 413 is configured to update the IP address of the site into the first site information table.
  • the device further includes:
  • the first sending unit 414 is configured to send the site adding information corresponding to the site to the access point that the site requests to access.
  • the embodiment of the present invention improves the access success rate of the website and improves the online experience of the user by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification;
  • the association request message ⁇ obtains the MAC address of the site from the association request message, and determines whether the first hash table corresponding to the MAC address of the site can be queried, and if the MA C address corresponding to the site is queried a hash table, and the access point requested by the site is consistent with the access point stored in the first site information table corresponding to the site, and the reply response message is directly replied to the site without repeating the connection to the site. Into the processing, thereby improving the access efficiency of the site.
  • the device further includes:
  • the second site information table updating unit 415 is configured to: if the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, according to the site Information of the access point requesting access to update the first site information table, obtain a second site information table, and reply to the association Message to the site;
  • the fourth establishing unit 416 is configured to allocate a new IP address to the site according to DHCP, establish a second hash table corresponding to the new IP address of the site, and establish a MAC address of the site and a new The third hash table corresponding to the IP address;
  • the second site information table updating unit 415 is further configured to update the second site information table according to the new IP address of the site to obtain a third site information table.
  • the device further includes:
  • the fourth deleting unit 417 is configured to delete a second hash table corresponding to the initial IP address of the site, and delete a third hash table corresponding to the MAC address of the site and the initial IP address.
  • the device further includes:
  • the second sending unit 418 is configured to send site deletion information corresponding to the site to an access point stored in the first site information table.
  • the second site information table updating unit 415 is specifically configured to:
  • obtaining, from the association request message, a MAC address, an IP address, a service set identifier SSID, and/or a wireless local area network identifier WLAN ID of the access point that the station requests to access, and requesting access by the site The MAC address, IP address, SSID, and/or WLAN ID of the access point are added to the first site information table to obtain the second site information table.
  • the embodiment of the present invention improves the access success rate of the site by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification, and prevents the site from using the network after roaming, thereby improving the user.
  • Internet access experience when receiving the association request message sent by the site, and the information of the access point requested by the site is inconsistent with the information of the access point stored in the first site information table, it is determined that the site has roamed, that is, switched The access point is executed, and the process of switching the access point is performed, thereby preventing the site from being unable to access the network or using the network after accessing the network, thereby improving the user's online experience.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of the unit, and may be in electrical, mechanical or other form.
  • the unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM, Read-Only)
  • RAM random access memory
  • disk disk or optical disk, and other media that can store program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention is suitable for the technical field of communications, and provided are a method and device for increasing the access efficiency of a station. The method comprises: when a disassociation request message of a station is received, deleting a first hash table corresponding to a media access control (MAC) address of the station, deleting a second hash table corresponding to an initial Internet protocol (IP) address of the station, and deleting a station information table corresponding to the station; if an association request message sent by the station is received within a first pre-set time, reestablishing the first hash table corresponding to the MAC address of the station and the station information table corresponding to the station, and replying with an association response message to the station; and if no IP address update message is received within a second pre-set time, acquiring an initial IP address of the station from a third hash table corresponding to the MAC address and the initial IP address of the station, reallocating the initial IP address to the station, and updating the initial IP address to the station information table corresponding to the station. By means of the present invention, the access efficiency of the station is increased.

Description

说明书 发明名称:提高站点的接入效率的方法及装置 技术领域  Description: Method and apparatus for improving access efficiency of a station
[0001] 本发明属于通信技术领域, 尤其涉及提高站点的接入效率的方法及装置。  [0001] The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for improving access efficiency of a station.
背景技术  Background technique
[0002] 随着智能手机、 平板电脑和智能手环等移动终端的普及, 人们的上网方式发生 了变化, 越来越多的场所提供公共 Wi-Fi (Wireless Fidelity, 无线保真技术) 。 但是, 目前一些站点 (STA, Station) 对于无线网络协议的支持度不高, 导致一 些站点无法接入 WLAN (Wireless Local Area Network, 无线局域网) , 或者接入 效率较低, 或者接入后无法使用网络, 大大影响了用户的上网体验。  [0002] With the popularity of mobile terminals such as smartphones, tablets and smart bracelets, people's ways of accessing the Internet have changed, and more and more places offer public Wi-Fi (Wireless Fidelity). However, some sites (STA, Station) currently have low support for wireless network protocols, resulting in some sites failing to access the WLAN (Wireless Local Area Network), or the access efficiency is low, or cannot be used after access. The network has greatly affected the user's online experience.
技术问题  technical problem
[0003] 鉴于此, 本发明实施例提供了一种提高站点的接入效率的方法及装置, 以解决 现有技术中的一些站点对于无线网络协议的支持度不高, 导致接入效率较低的 问题。  In view of the above, the embodiments of the present invention provide a method and an apparatus for improving access efficiency of a station, so as to solve the problem that some stations in the prior art do not support the wireless network protocol, resulting in low access efficiency. The problem.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0004] 第一方面, 本发明实施例提供了一种提高站点的接入效率的方法, 包括: [0005] 当接收到站点的解除关联请求消息吋, 刪除所述站点的介质访问控制 MAC地 址对应的第一哈希表, 刪除所述站点的初始网际协议 IP地址对应的第二哈希表, 并刪除所述站点对应的第一站点信息表;  [0004] In a first aspect, an embodiment of the present invention provides a method for improving access efficiency of a site, including: [0005] deleting a media access control MAC address of a site when receiving a disassociation request message of a site Corresponding the first hash table, deleting the second hash table corresponding to the initial Internet Protocol IP address of the site, and deleting the first site information table corresponding to the site;
[0006] 若在第一预设吋间内接收到所述站点发送的重关联请求消息, 则重新建立所述 站点的 MAC地址对应的第一哈希表以及所述站点对应的第一站点信息表, 并回 复重关联响应消息至所述站点;  [0006] If the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site and the first site information corresponding to the site are re-established. a table, and replying to the reassociation response message to the site;
[0007] 若在第二预设吋间内未接收到 IP地址更新消息, 则从所述站点的 MAC地址和初 始 IP地址对应的第三哈希表中获取所述站点的初始 IP地址, 将所述初始 IP地址重 新分配给所述站点, 并将所述初始 IP地址更新至所述站点对应的第一站点信息表 中。 [0008] 第二方面, 本发明实施例提供了一种提高站点的接入效率的装置, 包括: [0009] 第一刪除单元, 用于当接收到站点的解除关联请求消息吋, 刪除所述站点的介 质访问控制 MAC地址对应的第一哈希表, 刪除所述站点的初始网际协议 IP地址 对应的第二哈希表, 并刪除所述站点对应的第一站点信息表; If the IP address update message is not received in the second preset time, the initial IP address of the site is obtained from the third hash table corresponding to the MAC address of the site and the initial IP address. The initial IP address is reassigned to the site, and the initial IP address is updated to the first site information table corresponding to the site. [0008] In a second aspect, an embodiment of the present invention provides an apparatus for improving access efficiency of a station, including: [0009] a first deleting unit, configured to: after receiving a disassociation request message of a site, deleting the The first hash table corresponding to the MAC address of the site is deleted, the second hash table corresponding to the initial Internet Protocol IP address of the site is deleted, and the first site information table corresponding to the site is deleted;
[0010] 第一建立单元, 用于若在第一预设吋间内接收到所述站点发送的重关联请求消 息, 则重新建立所述站点的 MAC地址对应的第一哈希表以及所述站点对应的第 一站点信息表, 并回复重关联响应消息至所述站点; a first establishing unit, configured to: if the re-association request message sent by the station is received in the first preset time, re-establish a first hash table corresponding to the MAC address of the site, and the a first site information table corresponding to the site, and replying to the re-association response message to the site;
[0011] 第一 IP地址分配单元, 用于若在第二预设吋间内未接收到 IP地址更新消息, 则 从所述站点的 MAC地址和初始 IP地址对应的第三哈希表中获取所述站点的初始 I[0011] a first IP address allocation unit, configured to obtain, from the third hash table corresponding to the MAC address of the site and the initial IP address, if the IP address update message is not received in the second preset time Initial I of the site
P地址, 将所述初始 IP地址重新分配给所述站点, 并将所述初始 IP地址更新至所 述站点对应的第一站点信息表中。 a P address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0012] 本发明实施例与现有技术相比存在的有益效果是: 本发明实施例通过将不符合 无线网络协议规范的消息适配成符合无线网络协议规范的消息, 从而提高了站 点的接入成功率, 提高了用户的上网体验; 当接收到站点的解除关联请求消息 后, 暂吋保留站点的 MAC地址和初始 IP地址对应的第三哈希表, 若在第一预设 吋间内接收到站点发送的重关联请求消息, 且在第二预设吋间内未接收到 IP地址 更新消息, 则将站点的 MAC地址和初始 IP地址对应的第三哈希表中的 IP地址重 新分配给该站点, 由此利用初始 IP地址快速地再次接入网络, 从而提高了站点的 接入效率。  [0012] The beneficial effects of the embodiment of the present invention compared with the prior art are: The embodiment of the present invention improves the connection of the site by adapting a message that does not conform to the wireless network protocol specification to a message conforming to the wireless network protocol specification. The success rate of the user is improved, and the user's online experience is improved. After receiving the disassociation request message of the site, the third hash table corresponding to the MAC address of the site and the initial IP address is temporarily reserved. Receiving the re-association request message sent by the station, and not receiving the IP address update message in the second preset time, reallocating the IP address in the third hash table corresponding to the MAC address of the site and the initial IP address To the site, the network is quickly re-accessed using the initial IP address, thereby improving the access efficiency of the site.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0013] 为了更清楚地说明本发明实施例中的技术方案, 下面将对实施例或现有技术描 述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性 的前提下, 还可以根据这些附图获得其他的附图。  [0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are merely Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the skilled artisan.
[0014] 图 1是本发明实施例提供的提高站点的接入效率的方法的实现流程图; [0015] 图 2是本发明另一实施例提供的提高站点的接入效率的方法的实现流程图; [0016] 图 3是本发明另一实施例提供的提高站点的接入效率的方法的实现流程图; [0017] 图 4是本发明实施例提供的提高站点的接入效率的装置的结构框图。 1 is a flowchart of an implementation of a method for improving access efficiency of a site according to an embodiment of the present invention; 2 is a flowchart of an implementation of a method for improving access efficiency of a station according to another embodiment of the present invention; [0016] FIG. 3 is a method for improving access efficiency of a station according to another embodiment of the present invention; [0017] FIG. 4 is a structural block diagram of an apparatus for improving access efficiency of a station according to an embodiment of the present invention.
本发明的实施方式 Embodiments of the invention
[0018] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例 , 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用 以解释本发明, 并不用于限定本发明。  The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0019] 图 1示出了本发明实施例提供的提高站点的接入效率的方法的实现流程图, 详 述如下:  1 is a flowchart of an implementation of a method for improving access efficiency of a site according to an embodiment of the present invention, which is as follows:
[0020] 在步骤 S101中, 当接收到站点的解除关联请求消息吋, 刪除所述站点的介质访 问控制 MAC地址对应的第一哈希表, 刪除所述站点的初始网际协议 IP地址对应 的第二哈希表, 并刪除所述站点对应的第一站点信息表。  [0020] In step S101, when the disassociation request message of the station is received, the first hash table corresponding to the media access control MAC address of the site is deleted, and the first corresponding IP address of the site is deleted. Two hash tables, and delete the first site information table corresponding to the site.
[0021] 需要说明的是, 本发明实施例的执行主体可以为 AC (Access Controller, 接入 控制器) 。 本发明实施例中的站点指的是无线站点, 如智能手机、 平板电脑和 智能手环等。  [0021] It should be noted that the executive body of the embodiment of the present invention may be an AC (Access Controller). The stations in the embodiments of the present invention refer to wireless stations, such as smart phones, tablets, and smart bracelets.
[0022] 在本发明实施例中, 解除关联请求消息可以为去关联请求 (Disassociation  [0022] In the embodiment of the present invention, the disassociation request message may be a disassociation request (Disassociation)
Request) 消息或者去鉴权请求 (Deauthentication Request) 消息。 站点将解除关 联请求消息发送至接入点, 接入点将解除关联请求消息转发至 AC。 在这里, 接 入点指的是站点当前接入的接入点。  Request) Message or Deauthentication Request message. The station sends an unlink request message to the access point, and the access point forwards the disassociation request message to the AC. Here, the access point refers to the access point currently accessed by the station.
[0023] 在本发明实施例中, 接收到站点的解除关联请求消息后, 按照 802.11协议解析 解除关联请求消息, 以从解除关联请求消息中获取该站点的 MAC (Media Access Control, 介质访问控制) 地址。 根据该站点的 MAC地址査找该站点的 MAC地址 对应的第一哈希表, 并刪除该站点的 MAC地址对应的第一哈希表。 通过该站点 对应的第一站点信息表获取该站点的初始 IP (Internet Protocol, 网际协议) 地址 后, 根据该站点的初始 IP地址査找该站点的初始 IP地址对应的第二哈希表, 并刪 除该站点的初始 IP地址对应的第二哈希表。 刪除该站点对应的第一站点信息表中 的所有信息, 保留该站点的 MAC地址和 IP地址对应的第三哈希表, 并启动第一 定吋器, 该第一定吋器的定吋吋长等于第一预设吋间。 [0023] In the embodiment of the present invention, after receiving the disassociation request message of the site, the disassociation request message is parsed according to the 802.11 protocol, to obtain the MAC (Media Access Control) of the site from the disassociation request message. address. The first hash table corresponding to the MAC address of the site is searched according to the MAC address of the site, and the first hash table corresponding to the MAC address of the site is deleted. After obtaining the initial IP (Internet Protocol) address of the site by using the first site information table corresponding to the site, the second hash table corresponding to the initial IP address of the site is searched according to the initial IP address of the site, and deleted. The second hash table corresponding to the initial IP address of the site. Delete all the information in the first site information table corresponding to the site, retain the third hash table corresponding to the MAC address and IP address of the site, and start the first The fixed length of the first fixed device is equal to the first preset time.
[0024] 在步骤 S102中, 若在第一预设吋间内接收到所述站点发送的重关联请求消息, 则重新建立所述站点的 MAC地址对应的第一哈希表以及所述站点对应的第一站 点信息表, 并回复重关联响应消息至所述站点。  [0024] In step S102, if the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site is re-established, and the site corresponding to the site is re-established. The first site information table, and reply to the reassociation response message to the site.
[0025] 在本发明实施例中, 若在第一定吋器计吋结束前接收到站点发送的重关联请求 消息, 则从重关联请求消息中获取该站点的 MAC地址, 并査询是否存在该站点 的 MAC地址对应的第一哈希表, 若不存在该站点的 MAC地址对应的第一哈希表 , 则重新建立该站点的 MAC地址对应的第一哈希表, 并建立该站点对应的第一 站点信息表, 再回复重关联响应消息至该站点。 启动第二定吋器, 该第二定吋 器的定吋吋长等于第二预设吋间。  [0025] In the embodiment of the present invention, if the re-association request message sent by the station is received before the end of the first timer, the MAC address of the station is obtained from the re-association request message, and the presence or absence of the The first hash table corresponding to the MAC address of the site, if the first hash table corresponding to the MAC address of the site does not exist, re-establish the first hash table corresponding to the MAC address of the site, and establish a corresponding hash table of the site. The first site information table, and then the re-association response message is sent to the site. The second fixed device is started, and the fixed length of the second fixed device is equal to the second preset time.
[0026] 作为本发明的一个实施例, 该站点对应的第一站点信息表包括该站点的 MAC 地址, 还包括该站点请求接入的接入点的 MAC地址、 IP地址、 SSID (Service Set Identifier, 服务集标识) 和 /或 WLAN ID (WLAN Identifier, 无线局域网标识)  As an embodiment of the present invention, the first site information table corresponding to the site includes the MAC address of the site, and further includes a MAC address, an IP address, and an SSID (Service Set Identifier) of the access point that the site requests to access. , service set identifier) and / or WLAN ID (WLAN Identifier)
[0027] 在步骤 S103中, 若在第二预设吋间内未接收到 IP地址更新消息, 则从所述站点 的 MAC地址和初始 IP地址对应的第三哈希表中获取所述站点的初始 IP地址, 将 所述初始 IP地址重新分配给所述站点, 并将所述初始 IP地址更新至所述站点对应 的第一站点信息表中。 [0027] In step S103, if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is obtained from the site. An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
[0028] 若在第二定吋器定吋结束前未接收到 DHCP服务器发送的 IP地址更新消息, 则 将该站点的 MAC地址和初始 IP地址对应的第三哈希表中的初始 IP地址重新分配 给该站点, 并将初始 IP地址更新至该站点对应的第一站点信息表中。 此外, 按照 CAPWAP (Control And Provisioning of Wireless Access Points protocol  [0028] If the IP address update message sent by the DHCP server is not received before the end of the second timer, the MAC address of the site and the initial IP address in the third hash table corresponding to the initial IP address are re-re- Assign to the site and update the initial IP address to the first site information table corresponding to the site. In addition, follow CAPWAP (Control And Provisioning of Wireless Access Points protocol
specification, 无线接入点的控制和配置协议) , 组成标准的站点配置请求消息 , 该站点配置请求消息携带站点添加信息。 将该站点添加消息发送至该站点接 入的接入点, 以通知该接入点添加该站点的信息, 并处理该站点的上网数据。 此外, 通过 AC系统内部定义的消息接口, 使用 Socket通信技术, 将该站点由非 工作态变更为工作态, 以处理该站点的数据转发。  Specification, control and configuration protocol of the wireless access point), which constitutes a standard site configuration request message, and the site configuration request message carries site addition information. The site add message is sent to the access point accessed by the site to notify the access point to add information about the site and process the Internet data of the site. In addition, through the message interface defined in the AC system, the Socket communication technology is used to change the site from the non-working state to the working state to process the data forwarding of the site.
[0029] 在本发明实施例中, 通过将站点的 MAC地址和初始 IP地址对应的第三哈希表中 的初始 IP地址重新分配给该站点, 使该站点快速接入网络, 提高了站点的接入效 率。 [0029] In the embodiment of the present invention, the third hash table corresponding to the MAC address of the site and the initial IP address is used. The initial IP address is reassigned to the site, allowing the site to quickly access the network, improving the access efficiency of the site.
[0030] 优选地, 在所述回复重关联响应消息至所述站点之后, 所述方法还包括:  [0030] Preferably, after the reply re-association response message to the site, the method further includes:
[0031] 若在所述第二预设吋间内接收到所述 IP地址更新消息, 则从所述 IP地址更新消 息中获取新的 IP地址, 将所述新的 IP地址分配给所述站点, 并将所述新的 IP地址 更新至所述站点对应的第一站点信息表中。 [0031] if the IP address update message is received in the second preset time, a new IP address is obtained from the IP address update message, and the new IP address is allocated to the site. And updating the new IP address to the first site information table corresponding to the site.
[0032] 在本发明实施例中, 若在第二定吋器计吋结束前接收到 IP地址更新消息, 则从 I P地址更新消息中获取新的 IP地址, 将新的 IP地址分配给站点, 并将新的 IP地址 更新至站点对应的第一站点信息表中, 建立该站点的 MAC地址和新的 IP地址对 应的第三哈希表, 并刪除该站点的 MAC地址和初始 IP地址对应的第三哈希表。  [0032] In the embodiment of the present invention, if an IP address update message is received before the end of the second timer, the new IP address is obtained from the IP address update message, and the new IP address is assigned to the site. And updating the new IP address to the first site information table corresponding to the site, establishing a third hash table corresponding to the MAC address of the site and the new IP address, and deleting the MAC address corresponding to the site and the initial IP address. The third hash table.
[0033] 优选地, 在所述将所述新的 IP地址更新至所述站点对应的第一站点信息表中之 后, 所述方法还包括:  [0033] Preferably, after the updating the new IP address to the first site information table corresponding to the site, the method further includes:
[0034] 建立所述站点的 MAC地址和新的 IP地址对应的第三哈希表;  [0034] establishing a third hash table corresponding to the MAC address of the site and the new IP address;
[0035] 刪除所述站点的 MAC地址和初始 IP地址对应的第三哈希表。  [0035] deleting a third hash table corresponding to the MAC address of the site and the initial IP address.
[0036] 优选地, 所述刪除所述站点的 MAC地址对应的第一哈希表, 刪除所述站点的 初始 IP地址对应的第二哈希表包括:  [0036] Preferably, the deleting the first hash table corresponding to the MAC address of the site, and deleting the second hash table corresponding to the initial IP address of the site includes:
[0037] 从所述解除关联请求消息中获取所述站点的 MAC地址, 并刪除所述站点的 MA C地址对应的第一哈希表;  [0037] obtaining a MAC address of the site from the disassociation request message, and deleting a first hash table corresponding to the MA C address of the site;
[0038] 从所述站点对应的第一站点信息表中获取所述站点的初始 IP地址, 并刪除所述 站点的初始 IP地址对应的第二哈希表。  [0038] obtaining an initial IP address of the site from the first site information table corresponding to the site, and deleting a second hash table corresponding to the initial IP address of the site.
[0039] 优选地, 在所述刪除所述站点对应的第一站点信息表之后, 所述方法还包括: [0039] Preferably, after the deleting the first site information table corresponding to the site, the method further includes:
[0040] 若未在所述第一预设吋间内接收到所述站点发送的所述重关联请求消息, 则刪 除所述站点的 MAC地址和初始 IP地址对应的第三哈希表。 [0040] If the re-association request message sent by the station is not received in the first preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is deleted.
[0041] 在本发明实施例中, 若第一定吋器计吋结束后仍未接收到站点发送的重关联请 求消息, 则刪除该站点的 MAC地址和初始 IP地址对应的第三哈希表, 以确保 AC 中无冗余数据。 此外, 按照 CAPWAP, 组成标准的站点配置请求消息, 该站点 配置请求消息携带站点刪除信息。 将该站点刪除消息发送至该站点接入的接入 点, 以通知该接入点该站点已离幵网络, 并刪除该站点的信息。 此外, 通过 AC 系统内部定义的消息接口, 使用 Socket (套接字) 通信技术, 将该站点由工作态 变更为非工作态, 停止处理该站点的数据转发。 [0041] In the embodiment of the present invention, if the re-association request message sent by the station is not received after the first timer is terminated, the third hash table corresponding to the MAC address of the site and the initial IP address is deleted. To ensure there is no redundant data in the AC. In addition, according to CAPWAP, a standard site configuration request message is formed, and the site configuration request message carries site deletion information. Sending the site deletion message to the access point accessed by the site to notify the access point that the site has left the network and delete the information of the site. In addition, through AC The message interface defined inside the system uses Socket (socket) communication technology to change the site from the working state to the non-working state, and stops processing the data forwarding of the site.
[0042] 本发明实施例通过将不符合无线网络协议规范的消息适配成符合无线网络协议 规范的消息, 从而提高了站点的接入成功率, 提高了用户的上网体验; 当接收 到站点的解除关联请求消息后, 暂吋保留站点的 MAC地址和初始 IP地址对应的 第三哈希表, 若在第一预设吋间内接收到站点发送的重关联请求消息, 且在第 二预设吋间内未接收到 IP地址更新消息, 则将站点的 MAC地址和初始 IP地址对 应的第三哈希表中的 IP地址重新分配给该站点, 由此利用初始 IP地址快速地再次 接入网络, 从而提高了站点的接入效率。  [0042] The embodiment of the present invention improves the access success rate of the site by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification, and improves the user's online experience; After the disassociation request message is received, the third hash table corresponding to the MAC address of the reserved station and the initial IP address is temporarily reserved, and if the re-association request message sent by the station is received in the first preset time, and the second preset is If the IP address update message is not received in the time, the IP address in the third hash table corresponding to the MAC address of the site and the initial IP address is reassigned to the site, thereby quickly re-accessing the network by using the initial IP address. , thereby improving the access efficiency of the site.
[0043] 图 2示出了本发明另一实施例提供的提高站点的接入效率的方法的实现流程图 , 参照图 2:  2 is a flowchart of an implementation of a method for improving access efficiency of a site according to another embodiment of the present invention. Referring to FIG. 2:
[0044] 在步骤 S201中, 当接收到站点发送的关联请求消息吋, 从所述关联请求消息中 获取所述站点的 MAC地址以及所述站点请求接入的接入点的信息。  [0044] In step S201, when the association request message sent by the station is received, the MAC address of the station and the information of the access point requested by the station are obtained from the association request message.
[0045] 在本发明实施例中, 当接收到站点发送的关联请求消息后, 解析关联请求消息 , 以从关联请求消息中获取该站点的 MAC地址以及站点请求接入的接入点 (AP , Access Point) 的信息, 再根据该站点的 MAC地址査询是否存在该站点的 MAC 地址对应的第一哈希表。  [0045] In the embodiment of the present invention, after receiving the association request message sent by the station, the association request message is parsed to obtain the MAC address of the site and the access point (AP, where the site requests access) from the association request message. The information of the Access Point is further queried according to the MAC address of the site to check whether there is a first hash table corresponding to the MAC address of the site.
[0046] 在步骤 S202中, 若査询到站点的 MAC地址对应的第一哈希表, 则获取站点对 应的第一站点信息表。  [0046] In step S202, if the first hash table corresponding to the MAC address of the site is queried, the first site information table corresponding to the site is obtained.
[0047] 在步骤 S203中, 若所述站点请求接入的接入点与所述第一站点信息表中存储的 接入点一致, 则回复关联响应消息至所述站点。  [0047] In step S203, if the access point requested by the station is consistent with the access point stored in the first station information table, the association response message is replied to the station.
[0048] 若査询到该站点的 MAC地址对应的第一哈希表, 则表明该站点在已接入网络 的情况下再次发送关联请求消息。 由于站点在已接入网络的情况下再次发送关 联请求消息不符合无线网络协议的规范流程, 因此, 在本发明实施例中, 若査 询到站点的 MAC地址对应的第一哈希表, 则从关联请求消息中获取该站点请求 接入的接入点的信息, 并从该站点对应的第一站点信息表中获取存储的接入点 的信息, 再将该站点请求接入的接入点的信息与第一站点信息表中存储的接入 点的信息相比较, 若一致, 则表明该站点未切换网络, 该站点还是通过原来的 接入点接入网络。 当该站点请求接入的接入点与第一站点信息表中存储的接入 点一致吋, 按照 802.11协议, 直接回复关联响应消息至该站点, 而无需重复对该 站点进行接入处理, 无需对该站点进行状态变更。 [0048] If the first hash table corresponding to the MAC address of the site is queried, it indicates that the site sends the association request message again when the network is already connected. In the embodiment of the present invention, if the first hash table corresponding to the MAC address of the site is queried, the first hash table corresponding to the MAC address of the site is queried in the embodiment of the present invention. Obtaining the information of the access point requested by the site from the association request message, and obtaining the information of the stored access point from the first site information table corresponding to the site, and then requesting the access point of the site to access the site The information is compared with the information of the access point stored in the first site information table. If they are consistent, it indicates that the site has not switched the network, and the site still passes the original The access point accesses the network. When the access point requested by the site is consistent with the access point stored in the first site information table, the 802.11 protocol directly responds to the association response message to the site without repeatedly performing access processing on the site, without Make a status change to the site.
[0049] 可选地, 若所述站点请求接入的接入点与所述第一站点信息表中存储的接入点 一致, 则回复关联响应消息至所述站点具体为: 若所述站点请求接入的接入点 与所述第一站点信息表中存储的接入点的 MAC地址、 IP地址、 SSID和 /或 WLAN[0049] Optionally, if the access point that the site requests to access is consistent with the access point stored in the first site information table, the reply association response message to the site is specifically: The access point requesting access and the MAC address, IP address, SSID, and/or WLAN of the access point stored in the first site information table
ID—致, 则回复关联响应消息至所述站点。 ID-, then reply the association response message to the site.
[0050] 在步骤 S204中, 当接收到站点的解除关联请求消息吋, 刪除所述站点的介质访 问控制 MAC地址对应的第一哈希表, 刪除所述站点的初始网际协议 IP地址对应 的第二哈希表, 并刪除所述站点对应的第一站点信息表。 [0050] In step S204, when the disassociation request message of the station is received, the first hash table corresponding to the media access control MAC address of the site is deleted, and the first corresponding IP address of the site is deleted. Two hash tables, and delete the first site information table corresponding to the site.
[0051] 在步骤 S205中, 若在第一预设吋间内接收到所述站点发送的重关联请求消息, 则重新建立所述站点的 MAC地址对应的第一哈希表以及所述站点对应的第一站 点信息表, 并回复重关联响应消息至所述站点。 [0051] In step S205, if the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site is re-established, and the site corresponding to the site is re-established. The first site information table, and reply to the reassociation response message to the site.
[0052] 在步骤 S206中, 若在第二预设吋间内未接收到 IP地址更新消息, 则从所述站点 的 MAC地址和初始 IP地址对应的第三哈希表中获取所述站点的初始 IP地址, 将 所述初始 IP地址重新分配给所述站点, 并将所述初始 IP地址更新至所述站点对应 的第一站点信息表中。 [0052] In step S206, if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is obtained from the site. An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
[0053] 优选地, 在所述从所述关联请求消息中获取所述站点的介质访问控制 MAC地 址以及所述站点请求接入的接入点的信息之后, 所述方法还包括:  [0053] Preferably, after the obtaining, by the association request message, the media access control MAC address of the site and the information of the access point that the site requests to access, the method further includes:
[0054] 若査询不到所述站点的 MAC地址对应的第一哈希表, 则建立所述站点的 MAC 地址对应的第一哈希表, 并根据所述关联请求消息建立所述站点对应的第一站 点信息表, 再回复所述关联响应消息至所述站点。  [0054] if the first hash table corresponding to the MAC address of the site is not queried, the first hash table corresponding to the MAC address of the site is established, and the site corresponding to the association request message is established. The first site information table, and then reply to the association response message to the site.
[0055] 在本发明实施例中, 当接收到站点发送的关联请求消息后, 若査询不到该站点 的 MAC地址对应的第一哈希表, 则根据该站点的 MAC地址建立该站点的 MAC地 址对应的第一哈希表, 并根据关联请求消息建立该站点对应的第一站点信息表 , 再按照 802.11协议回复关联响应消息至该站点。  [0055] In the embodiment of the present invention, after receiving the association request message sent by the site, if the first hash table corresponding to the MAC address of the site is not queried, the site is established according to the MAC address of the site. The first hash table corresponding to the MAC address, and the first site information table corresponding to the site is established according to the association request message, and then the association response message is replied to the site according to the 802.11 protocol.
[0056] 优选地, 所述根据所述关联请求消息建立所述站点对应的第一站点信息表包括 [0057] 从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址; [0056] Preferably, the establishing, by the association request message, the first site information table corresponding to the site includes: [0057] obtaining, from the association request message, a MAC address of an access point that the station requests to access;
[0058] 根据所述站点的 MAC地址以及所述站点请求接入的接入点的 MAC地址建立所 述站点对应的第一站点信息表。  [0058] establishing a first site information table corresponding to the site according to the MAC address of the site and the MAC address of the access point that the site requests to access.
[0059] 作为本发明的一个实施例, 根据所述关联请求消息建立所述站点对应的第一站 点信息表包括: 从关联请求消息中获取站点请求接入的接入点的 MAC地址, 再 根据站点的 MAC地址以及站点请求接入的接入点的 MAC地址建立站点对应的第 一站点信息表。 在本发明实施例中, 第一站点信息表包括站点的 MAC地址以及 站点请求接入的接入点的 MAC地址。  [0059] As an embodiment of the present invention, the establishing, by the association request message, the first site information table corresponding to the site includes: obtaining, by using an association request message, a MAC address of an access point that the site requests to access, and then The MAC address of the site and the MAC address of the access point that the site requests to access establish a first site information table corresponding to the site. In the embodiment of the present invention, the first station information table includes the MAC address of the station and the MAC address of the access point that the station requests to access.
[0060] 作为本发明的另一个实施例, 根据所述关联请求消息建立所述站点对应的第一 站点信息表包括: 从关联请求消息中获取站点请求接入的接入点的 MAC地址、 I P地址、 SSID和 /或 WLAN ID, 再根据站点的 MAC地址以及站点请求接入的接入 点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID建立站点对应的第一站点信息表。 在本发明实施例中, 第一站点信息表包括站点的 MAC地址, 还包括站点请求接 入的接入点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID。  [0060] As another embodiment of the present invention, the establishing, by the association request message, the first site information table corresponding to the site includes: obtaining, from the association request message, a MAC address and an IP address of an access point that the site requests to access. The address, the SSID, and/or the WLAN ID are used to establish a first site information table corresponding to the site according to the MAC address of the site and the MAC address, IP address, SSID, and/or WLAN ID of the access point that the site requests to access. In the embodiment of the present invention, the first station information table includes the MAC address of the station, and further includes a MAC address, an IP address, an SSID, and/or a WLAN ID of the access point that the station requests to access.
[0061] 优选地, 在所述根据所述关联请求消息建立所述站点对应的第一站点信息表, 再回复所述关联响应消息至所述站点之后, 所述方法还包括:  [0061] Preferably, after the establishing the first site information table corresponding to the site according to the association request message, and then replying the association response message to the site, the method further includes:
[0062] 根据动态主机配置协议 DHCP为所述站点分配网际协议 IP地址, 并建立所述站 点的 IP地址对应的第二哈希表;  [0062] assigning an Internet Protocol IP address to the site according to the dynamic host configuration protocol, and establishing a second hash table corresponding to the IP address of the site;
[0063] 建立所述站点的 MAC地址与所述站点的 IP地址对应的第三哈希表;  [0063] establishing a third hash table corresponding to a MAC address of the site and an IP address of the site;
[0064] 将所述站点的 IP地址更新至所述第一站点信息表中。  [0064] updating the IP address of the site to the first site information table.
[0065] 在本发明实施例中, 当接收到站点发送的关联请求消息后, 若査询不到该站点 的 MAC地址对应的第一哈希表, 则在建立该站点的 MAC地址对应的第一哈希表 、 该站点对应的第一站点信息表以及回复关联响应消息至该站点后, 根据 DHCP [0065] In the embodiment of the present invention, after receiving the association request message sent by the station, if the first hash table corresponding to the MAC address of the site is not queried, the corresponding MAC address of the site is established. a hash table, a first site information table corresponding to the site, and a reply association response message to the site, according to DHCP
(Dynamic Host Configuration Protocol, 动态主机配置协议) 为该站点分配 IP地 址, 建立该站点的 IP地址对应的第二哈希表, 建立该站点的 MAC地址与 IP地址 对应的第三哈希表, 并将该站点的 IP地址更新至该站点对应的第一站点信息表中 。 其中, 第三哈希表用于记录站点的 MAC地址与 IP地址的对应关系。 (Dynamic Host Configuration Protocol) assigns an IP address to the site, establishes a second hash table corresponding to the IP address of the site, and establishes a third hash table corresponding to the MAC address of the site and the IP address, and Update the IP address of the site to the first site information table corresponding to the site. The third hash table is used to record the correspondence between the MAC address of the site and the IP address.
[0066] 其中, 发送所述站点对应的站点添加信息至所述站点请求接入的接入点具体为 : 按照 CAPWAP组成标准的站点配置请求消息, 该站点配置请求消息携带站点 添加信息。 将该站点配置请求消息发送至站点请求接入的接入点, 以通知该接 入点添加该站点的信息, 并转发该站点的上网数据。 [0066] wherein, sending the site adding information corresponding to the site to the access point requested by the site to access is specifically : According to the CAPWAP component standard site configuration request message, the site configuration request message carries site addition information. Sending the site configuration request message to the access point that the site requests to access, to notify the access point to add information of the site, and forward the Internet access data of the site.
[0067] 作为本发明的一个实施例, 该方法还包括: 通过 AC系统内部定义的消息接口 , 使用 Socket通信技术, 使 AC记录站点处于工作态, 并建立本地站点数据转发 关系表, 以处理站点的上网数据。  [0067] As an embodiment of the present invention, the method further includes: using a Socket communication technology to establish an AC recording site in an active state through a message interface defined in the AC system, and establishing a local site data forwarding relationship table to process the site Internet data.
[0068] 本发明实施例通过将不符合无线网络协议规范的消息适配成符合无线网络协议 规范的消息, 从而提高了站点的接入成功率, 提高了用户的上网体验; 当接收 到站点发送的关联请求消息吋, 从关联请求消息中获取站点的 MAC地址, 并判 断是否能够査询到该站点的 MAC地址对应的第一哈希表, 若査询到该站点的 MA C地址对应的第一哈希表, 且该站点请求接入的接入点与该站点对应的第一站点 信息表中存储的接入点一致, 则直接回复关联响应消息至该站点, 而无需重复 对站点进行接入处理, 从而提高了站点的接入效率。  [0068] The embodiment of the present invention improves the access success rate of the website and improves the online experience of the user by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification; The association request message 吋, obtains the MAC address of the site from the association request message, and determines whether the first hash table corresponding to the MAC address of the site can be queried, and if the MA C address corresponding to the site is queried a hash table, and the access point requested by the site is consistent with the access point stored in the first site information table corresponding to the site, and the reply response message is directly replied to the site without repeating the connection to the site. Into the processing, thereby improving the access efficiency of the site.
[0069] 图 3示出了本发明另一实施例提供的提高站点的接入效率的方法的实现流程图 , 参照图 3:  3 is a flowchart of an implementation of a method for improving access efficiency of a site according to another embodiment of the present invention. Referring to FIG. 3:
[0070] 在步骤 S301中, 当接收到站点发送的关联请求消息吋, 从所述关联请求消息中 获取所述站点的介质访问控制 MAC地址以及所述站点请求接入的接入点的信息  [0070] In step S301, when the association request message sent by the station is received, the medium access control MAC address of the site and the information of the access point requested by the station are obtained from the association request message.
[0071] 在步骤 S302中, 若査询到所述站点的 MAC地址对应的第一哈希表, 则获取所 述站点对应的第一站点信息表。 [0071] In step S302, if the first hash table corresponding to the MAC address of the site is queried, the first site information table corresponding to the site is obtained.
[0072] 在步骤 S303中, 若所述站点请求接入的接入点与所述第一站点信息表中存储的 接入点一致, 则回复关联响应消息至所述站点。  [0072] In step S303, if the access point requested by the station is consistent with the access point stored in the first station information table, the association response message is replied to the station.
[0073] 在步骤 S304中, 若所述站点请求接入的接入点的信息与所述第一站点信息表中 存储的接入点的信息不一致, 则根据所述站点请求接入的接入点的信息更新所 述第一站点信息表, 得到第二站点信息表, 并回复关联响应消息至所述站点。  [0073] In step S304, if the information of the access point that the station requests to access is inconsistent with the information of the access point stored in the first station information table, the access requested according to the station is requested. The information of the point updates the first site information table, obtains a second site information table, and replies with an association response message to the site.
[0074] 若査询到该站点的 MAC地址对应的第一哈希表, 则表明该站点在已接入网络 的情况下再次发送关联请求消息。 由于站点在已接入网络的情况下再次发送关 联请求消息不符合无线网络协议的规范流程, 因此, 在本发明实施例中, 若査 询到站点的 MAC地址对应的第一哈希表, 则获取站点对应的第一站点信息表, 从第一站点信息表中获取存储的接入点的信息, 再将该站点请求接入的接入点 的信息与第一站点信息表中存储的接入点的信息相比较, 若不一致, 则表明该 站点发生了漫游, 即该站点不是通过原来的接入点接入网络。 若站点请求接入 的接入点的信息与第一站点信息表中存储的接入点的信息不一致, 则根据站点 请求接入的接入点的信息更新第一站点信息表, 得到第二站点信息表, 再按照 8 02.11协议, 回复关联响应消息至站点。 [0074] If the first hash table corresponding to the MAC address of the site is queried, it indicates that the site sends the association request message again when the network is already connected. Since the resending of the association request message by the station in the case of accessing the network does not comply with the specification procedure of the wireless network protocol, in the embodiment of the present invention, if After the first hash table corresponding to the MAC address of the site is obtained, the first site information table corresponding to the site is obtained, the information of the stored access point is obtained from the first site information table, and the site is requested to access the connection. The information of the inbound point is compared with the information of the access point stored in the first station information table. If the information is inconsistent, it indicates that the station has roamed, that is, the station does not access the network through the original access point. If the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, update the first site information table according to the information of the access point that the site requests to access, and obtain the second site. The information table, in accordance with the 8 02.11 agreement, replies to the association response message to the site.
[0075] 作为本发明的一个实施例, 站点请求接入的接入点的信息与第一站点信息表中 存储的接入点的信息不一致具体为: 站点请求接入的接入点与第一站点信息表 中存储的接入点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID不一致。  [0075] As an embodiment of the present invention, the information of the access point that the station requests to access is inconsistent with the information of the access point stored in the first station information table, and the specific information is: The MAC address, IP address, SSID, and/or WLAN ID of the access point stored in the site information table are inconsistent.
[0076] 在步骤 S305中, 根据 DHCP为所述站点分配一个新的 IP地址, 建立所述站点的 新的 IP地址对应的第二哈希表, 建立所述站点的 MAC地址与新的 IP地址对应的 第三哈希表。  [0076] In step S305, assigning a new IP address to the site according to DHCP, establishing a second hash table corresponding to the new IP address of the site, establishing a MAC address and a new IP address of the site. Corresponding third hash table.
[0077] 其中, 第三哈希表用于记录站点的 MAC地址与 IP地址的对应关系。 在这里, 根 据 DHCP为该站点分配一个新的 IP地址, 并建立该站点的新的 IP地址对应的第二 哈希表, 以及建立该站点的 MAC地址与新的 IP地址对应的第三哈希表。  [0077] The third hash table is used to record the correspondence between the MAC address of the site and the IP address. Here, according to DHCP, the site is assigned a new IP address, and a second hash table corresponding to the new IP address of the site is established, and a third hash corresponding to the new IP address of the MAC address of the site is established. table.
[0078] 在步骤 S306中, 根据所述站点的新的 IP地址更新所述第二站点信息表, 得到第 三站点信息表。  [0078] In step S306, the second site information table is updated according to the new IP address of the site, to obtain a third site information table.
[0079] 在所述回复关联响应消息至所述站点之后, 所述根据 DHCP为所述站点分配一 个新的 IP地址之前, 所述方法还包括:  [0079] After the reply association response message is sent to the site, before the allocating a new IP address to the site according to the DHCP, the method further includes:
[0080] 刪除所述站点的初始 IP地址对应的第二哈希表, 并刪除所述站点的 MAC地址和 初始 IP地址对应的第三哈希表。 [0080] deleting a second hash table corresponding to the initial IP address of the site, and deleting a MAC address of the site and a third hash table corresponding to the initial IP address.
[0081] 在本发明实施例中, 若站点请求接入的接入点的信息与第一站点信息表中存储 的接入点的信息不一致, 则刪除站点的初始 IP地址对应的第二哈希表, 并刪除站 点的 MAC地址和初始 IP地址对应的第三哈希表, 以避免 AC中存储冗余数据。 In the embodiment of the present invention, if the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, the second hash corresponding to the initial IP address of the site is deleted. Table, and delete the third hash table corresponding to the MAC address of the site and the initial IP address to avoid storing redundant data in the AC.
[0082] 在步骤 S307中, 当接收到站点的解除关联请求消息吋, 刪除所述站点的介质访 问控制 MAC地址对应的第一哈希表, 刪除所述站点的初始网际协议 IP地址对应 的第二哈希表, 并刪除所述站点对应的第一站点信息表。 [0083] 在步骤 S308中, 若在第一预设吋间内接收到所述站点发送的重关联请求消息, 则重新建立所述站点的 MAC地址对应的第一哈希表以及所述站点对应的第一站 点信息表, 并回复重关联响应消息至所述站点。 [0082] In step S307, when the disassociation request message of the station is received, the first hash table corresponding to the media access control MAC address of the site is deleted, and the first corresponding IP address of the site is deleted. Two hash tables, and delete the first site information table corresponding to the site. [0083] In step S308, if the re-association request message sent by the station is received in the first preset time, the first hash table corresponding to the MAC address of the site is re-established, and the site corresponding to the site is re-established. The first site information table, and reply to the reassociation response message to the site.
[0084] 在步骤 S309中, 若在第二预设吋间内未接收到 IP地址更新消息, 则从所述站点 的 MAC地址和初始 IP地址对应的第三哈希表中获取所述站点的初始 IP地址, 将 所述初始 IP地址重新分配给所述站点, 并将所述初始 IP地址更新至所述站点对应 的第一站点信息表中。 [0084] In step S309, if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is obtained from the site. An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
[0085] 优选地, 在所述得到第三站点信息表之后, 所述方法还包括: [0085] Preferably, after the obtaining the third site information table, the method further includes:
[0086] 发送所述站点对应的站点添加信息至所述站点请求接入的接入点。 [0086] sending the site corresponding information of the site to the access point that the site requests to access.
[0087] 在得到第三站点信息表后, 按照 CAPWAP, 组成站点添加信息, 并将该站点添 加信息发送至站点请求接入的接入点, 以通知该站点请求接入的接入点添加该 站点的信息, 并转发该站点的上网数据。 按照 CAPWAP组成站点刪除信息, 并 将该站点刪除信息发送至第一站点信息表中存储的接入点, 以使第一站点信息 表中存储的接入点刪除该站点的信息, 并停止处理该站点的上网数据。 [0087] after obtaining the third site information table, according to the CAPWAP, composing the site adding information, and sending the site adding information to the access point requested by the site to notify the access point that the site requests to access to add the Site information, and forward the site's Internet data. Deleting the information according to the CAPWAP composition site, and sending the site deletion information to the access point stored in the first site information table, so that the access point stored in the first site information table deletes the information of the site, and stops processing the Internet data for the site.
[0088] 作为本发明的一个实施例, 该方法还包括: 通过 AC系统内部定义的消息接口 , 使用 Socket通信技术, 更新本地站点数据转发关系表, 以处理站点的上网数据 [0088] As an embodiment of the present invention, the method further includes: updating a local site data forwarding relationship table by using a Socket communication technology through a message interface defined in the AC system, to process the Internet data of the site.
[0089] 优选地, 所述根据所述站点请求接入的接入点的信息更新所述第一站点信息表[0089] Preferably, the first site information table is updated according to the information of the access point that the site requests to access
, 得到第二站点信息表包括: , get the second site information table including:
[0090] 刪除所述第一站点信息表中存储的接入点的所有信息; [0090] deleting all information of the access point stored in the first site information table;
[0091] 从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址、 IP地址、 服务集标识 SSID和 /或无线局域网标识 WLAN ID, 并将所述站点请求接入的接入 点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID添加到所述第一站点信息表中, 得 到所述第二站点信息表。  [0091] obtaining, from the association request message, a MAC address, an IP address, a service set identifier SSID, and/or a wireless local area network identifier WLAN ID of the access point that the station requests to access, and requesting access by the site The MAC address, IP address, SSID, and/or WLAN ID of the access point are added to the first site information table to obtain the second site information table.
[0092] 在本发明实施例中, 若站点请求接入的接入点的信息与第一站点信息表中存储 的接入点的信息不一致, 则需要对第一站点信息表进行更新, 具体地, 刪除第 一站点信息表中存储的接入点的所有信息, 从关联请求消息中获取站点请求接 入的接入点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID, 并将站点请求接入的接 入点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID添加到第一站点信息表中, 得到 第二站点信息表。 In the embodiment of the present invention, if the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, the first site information table needs to be updated, specifically, Delete all the information of the access point stored in the first site information table, obtain the MAC address, IP address, SSID, and/or WLAN ID of the access point requested by the site from the association request message, and connect the site request Incoming The MAC address, IP address, SSID, and/or WLAN ID of the ingress are added to the first site information table to obtain a second site information table.
[0093] 本发明实施例通过将不符合无线网络协议规范的消息适配成符合无线网络协议 规范的消息, 从而提高了站点的接入成功率, 避免站点在漫游后无法使用网络 , 提高了用户的上网体验; 当接收到站点发送的关联请求消息, 且站点请求接 入的接入点的信息与第一站点信息表中存储的接入点的信息不一致吋, 判定站 点发生了漫游, 即切换了接入点, 并执行切换接入点的流程, 由此避免站点无 法接入网络或者在接入网络后无法使用网络, 提高了用户的上网体验。  [0093] The embodiment of the present invention improves the access success rate of the site by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification, and prevents the site from using the network after roaming, thereby improving the user. Internet access experience; when receiving the association request message sent by the site, and the information of the access point requested by the site is inconsistent with the information of the access point stored in the first site information table, it is determined that the site has roamed, that is, switched The access point is executed, and the process of switching the access point is performed, thereby preventing the site from being unable to access the network or using the network after accessing the network, thereby improving the user's online experience.
[0094] 应理解, 在本发明实施例中, 上述各过程的序号的大小并不意味着执行顺序的 先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应对本发明实施例 的实施过程构成任何限定。  It should be understood that, in the embodiment of the present invention, the size of the sequence numbers of the foregoing processes does not mean the order of execution sequence, and the execution order of each process should be determined by its function and internal logic, and should not be taken to the embodiment of the present invention. The implementation process constitutes any limitation.
[0095] 图 4示出了本发明实施例提供的提高站点的接入效率的装置的结构框图。 为了 便于说明, 仅示出了与本发明实施例相关的部分。  [0095] FIG. 4 is a structural block diagram of an apparatus for improving access efficiency of a station according to an embodiment of the present invention. For the convenience of description, only parts related to the embodiment of the present invention are shown.
[0096] 参照图 4, 该装置包括:  [0096] Referring to FIG. 4, the device includes:
[0097] 第一刪除单元 401, 用于当接收到站点的解除关联请求消息吋, 刪除所述站点 的介质访问控制 MAC地址对应的第一哈希表, 刪除所述站点的初始网际协议 IP 地址对应的第二哈希表, 并刪除所述站点对应的第一站点信息表;  [0097] The first deleting unit 401 is configured to: when receiving the disassociation request message of the site, delete the first hash table corresponding to the media access control MAC address of the site, and delete the initial Internet Protocol IP address of the site. Corresponding second hash table, and deleting the first site information table corresponding to the site;
[0098] 第一建立单元 402, 用于若在第一预设吋间内接收到所述站点发送的重关联请 求消息, 则重新建立所述站点的 MAC地址对应的第一哈希表以及所述站点对应 的第一站点信息表, 并回复重关联响应消息至所述站点;  [0098] The first establishing unit 402 is configured to: if the re-association request message sent by the station is received in the first preset time, re-establish the first hash table corresponding to the MAC address of the site and the Determining a first site information table corresponding to the site, and replying to the re-association response message to the site;
[0099] 第一 IP地址分配单元 403, 用于若在第二预设吋间内未接收到 IP地址更新消息 , 则从所述站点的 MAC地址和初始 IP地址对应的第三哈希表中获取所述站点的 初始 IP地址, 将所述初始 IP地址重新分配给所述站点, 并将所述初始 IP地址更新 至所述站点对应的第一站点信息表中。  [0099] The first IP address allocating unit 403 is configured to: if the IP address update message is not received in the second preset time, the third hash table corresponding to the MAC address of the site and the initial IP address is used. Obtaining an initial IP address of the site, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
[0100] 优选地, 所述装置还包括:  [0100] Preferably, the device further includes:
[0101] 第二 IP地址分配单元 404, 用于若在所述第二预设吋间内接收到所述 IP地址更 新消息, 则从所述 IP地址更新消息中获取新的 IP地址, 将所述新的 IP地址分配给 所述站点, 并将所述新的 IP地址更新至所述站点对应的第一站点信息表中。 [0102] 优选地, 所述装置还包括: [0101] The second IP address allocating unit 404 is configured to: if the IP address update message is received in the second preset time, obtain a new IP address from the IP address update message, The new IP address is assigned to the site, and the new IP address is updated to the first site information table corresponding to the site. [0102] Preferably, the device further includes:
[0103] 第二建立单元 405, 用于建立所述站点的 MAC地址和新的 IP地址对应的第三哈 希表;  [0103] The second establishing unit 405 is configured to establish a third hash table corresponding to the MAC address of the site and the new IP address.
[0104] 第二刪除单元 406, 用于刪除所述站点的 MAC地址和初始 IP地址对应的第三哈 希表。  [0104] The second deleting unit 406 is configured to delete a third hash table corresponding to the MAC address of the site and the initial IP address.
[0105] 优选地, 所述第一刪除单元 401具体用于:  [0105] Preferably, the first deleting unit 401 is specifically configured to:
[0106] 从所述解除关联请求消息中获取所述站点的 MAC地址, 并刪除所述站点的 MA [0106] obtaining a MAC address of the site from the disassociation request message, and deleting the MA of the site
C地址对应的第一哈希表; a first hash table corresponding to the C address;
[0107] 从所述站点对应的第一站点信息表中获取所述站点的初始 IP地址, 并刪除所述 站点的初始 IP地址对应的第二哈希表。 [0107] Obtain an initial IP address of the site from the first site information table corresponding to the site, and delete a second hash table corresponding to the initial IP address of the site.
[0108] 优选地, 所述装置还包括: [0108] Preferably, the device further includes:
[0109] 第三刪除单元 407, 用于若未在所述第一预设吋间内接收到所述站点发送的所 述重关联请求消息, 则刪除所述站点的 MAC地址和初始 IP地址对应的第三哈希 表。  [0109] The third deleting unit 407 is configured to: if the re-association request message sent by the station is not received in the first preset time, delete the MAC address of the station and the initial IP address. The third hash table.
[0110] 本发明实施例通过将不符合无线网络协议规范的消息适配成符合无线网络协议 规范的消息, 从而提高了站点的接入成功率, 提高了用户的上网体验; 当接收 到站点的解除关联请求消息后, 暂吋保留站点的 MAC地址和初始 IP地址对应的 第三哈希表, 若在第一预设吋间内接收到站点发送的重关联请求消息, 且在第 二预设吋间内未接收到 IP地址更新消息, 则将站点的 MAC地址和初始 IP地址对 应的第三哈希表中的 IP地址重新分配给该站点, 由此利用初始 IP地址快速地再次 接入网络, 从而提高了站点的接入效率。  [0110] The embodiment of the present invention improves the access success rate of the website and improves the online experience of the user by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification; After the disassociation request message is received, the third hash table corresponding to the MAC address of the reserved station and the initial IP address is temporarily reserved, and if the re-association request message sent by the station is received in the first preset time, and the second preset is If the IP address update message is not received in the time, the IP address in the third hash table corresponding to the MAC address of the site and the initial IP address is reassigned to the site, thereby quickly re-accessing the network by using the initial IP address. , thereby improving the access efficiency of the site.
[0111] 优选地, 所述装置还包括: [0111] Preferably, the device further includes:
[0112] 第一获取单元 408, 用于当接收到站点发送的关联请求消息吋, 从所述关联请 求消息中获取所述站点的 MAC地址以及所述站点请求接入的接入点的信息; [0112] The first obtaining unit 408 is configured to: when receiving an association request message sent by the station, obtain, from the association request message, a MAC address of the site and information of an access point that the site requests to access;
[0113] 第二获取单元 409, 用于若査询到所述站点的 MAC地址对应的第一哈希表, 则 获取所述站点对应的第一站点信息表; [0113] The second obtaining unit 409 is configured to: if the first hash table corresponding to the MAC address of the site is queried, obtain the first site information table corresponding to the site;
[0114] 第一响应单元 410, 用于若所述站点请求接入的接入点与所述第一站点信息表 中存储的接入点一致, 则回复关联响应消息至所述站点。 [0115] 优选地, 所述装置还包括: [0114] The first response unit 410 is configured to: when the access point requested by the station is consistent with the access point stored in the first station information table, reply the association response message to the station. [0115] Preferably, the device further includes:
[0116] 第二响应单元 411, 用于若査询不到所述站点的 MAC地址对应的第一哈希表, 则建立所述站点的 MAC地址对应的第一哈希表, 并根据所述关联请求消息建立 所述站点对应的第一站点信息表, 再回复所述关联响应消息至所述站点。  [0116] The second response unit 411 is configured to: if the first hash table corresponding to the MAC address of the site is not queried, establish a first hash table corresponding to the MAC address of the site, and according to the The association request message establishes a first site information table corresponding to the site, and then replies the association response message to the site.
[0117] 优选地, 所述第二响应单元 411具体用于:  [0117] Preferably, the second response unit 411 is specifically configured to:
[0118] 从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址;  [0118] acquiring, from the association request message, a MAC address of an access point that the station requests to access;
[0119] 根据所述站点的 MAC地址以及所述站点请求接入的接入点的 MAC地址建立所 述站点对应的第一站点信息表。  [0119] establishing a first site information table corresponding to the site according to the MAC address of the site and the MAC address of the access point that the site requests to access.
[0120] 优选地, 所述装置还包括: [0120] Preferably, the device further includes:
[0121] 第三建立单元 412, 用于根据动态主机配置协议 DHCP为所述站点分配网际协议 IP地址, 并建立所述站点的 IP地址对应的第二哈希表, 建立所述站点的 MAC地 址与所述站点的 IP地址对应的第三哈希表;  [0121] The third establishing unit 412 is configured to allocate an internet protocol IP address to the site according to the dynamic host configuration protocol, and establish a second hash table corresponding to the IP address of the site, and establish a MAC address of the site. a third hash table corresponding to the IP address of the site;
[0122] 第一站点信息表更新单元 413, 用于将所述站点的 IP地址更新至所述第一站点 信息表中。  [0122] The first site information table updating unit 413 is configured to update the IP address of the site into the first site information table.
[0123] 优选地, 所述装置还包括:  [0123] Preferably, the device further includes:
[0124] 第一发送单元 414, 用于发送所述站点对应的站点添加信息至所述站点请求接 入的接入点。  [0124] The first sending unit 414 is configured to send the site adding information corresponding to the site to the access point that the site requests to access.
[0125] 本发明实施例通过将不符合无线网络协议规范的消息适配成符合无线网络协议 规范的消息, 从而提高了站点的接入成功率, 提高了用户的上网体验; 当接收 到站点发送的关联请求消息吋, 从关联请求消息中获取站点的 MAC地址, 并判 断是否能够査询到该站点的 MAC地址对应的第一哈希表, 若査询到该站点的 MA C地址对应的第一哈希表, 且该站点请求接入的接入点与该站点对应的第一站点 信息表中存储的接入点一致, 则直接回复关联响应消息至该站点, 而无需重复 对站点进行接入处理, 从而提高了站点的接入效率。  [0125] The embodiment of the present invention improves the access success rate of the website and improves the online experience of the user by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification; The association request message 吋, obtains the MAC address of the site from the association request message, and determines whether the first hash table corresponding to the MAC address of the site can be queried, and if the MA C address corresponding to the site is queried a hash table, and the access point requested by the site is consistent with the access point stored in the first site information table corresponding to the site, and the reply response message is directly replied to the site without repeating the connection to the site. Into the processing, thereby improving the access efficiency of the site.
[0126] 优选地, 所述装置还包括:  [0126] Preferably, the device further includes:
[0127] 第二站点信息表更新单元 415, 用于若所述站点请求接入的接入点的信息与所 述第一站点信息表中存储的接入点的信息不一致, 则根据所述站点请求接入的 接入点的信息更新所述第一站点信息表, 得到第二站点信息表, 并回复关联响 应消息至所述站点; [0127] The second site information table updating unit 415 is configured to: if the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, according to the site Information of the access point requesting access to update the first site information table, obtain a second site information table, and reply to the association Message to the site;
[0128] 第四建立单元 416, 用于根据 DHCP为所述站点分配一个新的 IP地址, 建立所述 站点的新的 IP地址对应的第二哈希表, 建立所述站点的 MAC地址与新的 IP地址 对应的第三哈希表;  [0128] The fourth establishing unit 416 is configured to allocate a new IP address to the site according to DHCP, establish a second hash table corresponding to the new IP address of the site, and establish a MAC address of the site and a new The third hash table corresponding to the IP address;
[0129] 所述第二站点信息表更新单元 415, 还用于根据所述站点的新的 IP地址更新所 述第二站点信息表, 得到第三站点信息表。  [0129] The second site information table updating unit 415 is further configured to update the second site information table according to the new IP address of the site to obtain a third site information table.
[0130] 优选地, 所述装置还包括: [0130] Preferably, the device further includes:
[0131] 第四刪除单元 417, 用于刪除所述站点的初始 IP地址对应的第二哈希表, 并刪 除所述站点的 MAC地址和初始 IP地址对应的第三哈希表。  [0131] The fourth deleting unit 417 is configured to delete a second hash table corresponding to the initial IP address of the site, and delete a third hash table corresponding to the MAC address of the site and the initial IP address.
[0132] 优选地, 所述装置还包括: [0132] Preferably, the device further includes:
[0133] 第二发送单元 418, 用于发送所述站点对应的站点刪除信息至所述第一站点信 息表中存储的接入点。  [0133] The second sending unit 418 is configured to send site deletion information corresponding to the site to an access point stored in the first site information table.
[0134] 优选地, 所述第二站点信息表更新单元 415具体用于: [0134] Preferably, the second site information table updating unit 415 is specifically configured to:
[0135] 刪除所述第一站点信息表中存储的接入点的所有信息; [0135] deleting all the information of the access point stored in the first site information table;
[0136] 从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址、 IP地址、 服务集标识 SSID和 /或无线局域网标识 WLAN ID, 并将所述站点请求接入的接入 点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID添加到所述第一站点信息表中, 得 到所述第二站点信息表。  [0136] obtaining, from the association request message, a MAC address, an IP address, a service set identifier SSID, and/or a wireless local area network identifier WLAN ID of the access point that the station requests to access, and requesting access by the site The MAC address, IP address, SSID, and/or WLAN ID of the access point are added to the first site information table to obtain the second site information table.
[0137] 本发明实施例通过将不符合无线网络协议规范的消息适配成符合无线网络协议 规范的消息, 从而提高了站点的接入成功率, 避免站点在漫游后无法使用网络 , 提高了用户的上网体验; 当接收到站点发送的关联请求消息, 且站点请求接 入的接入点的信息与第一站点信息表中存储的接入点的信息不一致吋, 判定站 点发生了漫游, 即切换了接入点, 并执行切换接入点的流程, 由此避免站点无 法接入网络或者在接入网络后无法使用网络, 提高了用户的上网体验。  [0137] The embodiment of the present invention improves the access success rate of the site by adapting the message that does not conform to the wireless network protocol specification to the message conforming to the wireless network protocol specification, and prevents the site from using the network after roaming, thereby improving the user. Internet access experience; when receiving the association request message sent by the site, and the information of the access point requested by the site is inconsistent with the information of the access point stored in the first site information table, it is determined that the site has roamed, that is, switched The access point is executed, and the process of switching the access point is performed, thereby preventing the site from being unable to access the network or using the network after accessing the network, thereby improving the user's online experience.
[0138] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本发明的范围。 [0138] Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Professionals can use different methods to implement the description for each specific application. The functions described, but such implementations should not be considered to be outside the scope of the present invention.
[0139] 所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述的装 置和单元的具体工作过程, 可以参考前述方法实施例中的对应过程, 在此不再 赘述。  [0139] It is to be understood by those skilled in the art that, for the convenience and brevity of the description, the specific working process of the device and the unit described above may be referred to the corresponding process in the foregoing method embodiments, and details are not described herein again.
[0140] 在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可以通 过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分方 式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征可 以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通 信连接可以是通过一些接口, 单元的间接耦合或通信连接, 可以是电性, 机械 或其它的形式。  [0140] In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be through some interface, indirect coupling or communication connection of the unit, and may be in electrical, mechanical or other form.
[0141] 所述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。  [0141] The unit described as a separate component may or may not be physically distributed, and the component displayed as a unit may or may not be a physical unit, that is, may be located in one place, or may be distributed to multiple On the network unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
[0142] 另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可 以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0143] 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用吋, 可 以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明的技术方案 本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产 品的形式体现出来, 该计算机软件产品存储在一个存储介质中, 包括若干指令 用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 执 行本发明各个实施例所述方法的全部或部分步骤。 而前述的存储介质包括: U盘 、 移动硬盘、 只读存储器 (ROM, Read-Only  [0143] The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM, Read-Only)
Memory) 、 随机存取存储器 (RAM, Random Access Memory) 、 磁碟或者光盘 等各种可以存储程序代码的介质。  Memory, random access memory (RAM), disk or optical disk, and other media that can store program code.
[0144] 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到变化 或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述 以权利要求的保护范围为准。 The above description is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes within the technical scope disclosed by the present invention. Or, the replacement should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
[权利要求 1] 一种提高站点的接入效率的方法, 其特征在于, 包括:  [Claim 1] A method for improving access efficiency of a station, comprising:
当接收到站点的解除关联请求消息吋, 刪除所述站点的介质访问控制 When the disassociation request message of the site is received, the media access control of the site is deleted.
MAC地址对应的第一哈希表, 刪除所述站点的初始网际协议 IP地址 对应的第二哈希表, 并刪除所述站点对应的第一站点信息表; 若在第一预设吋间内接收到所述站点发送的重关联请求消息, 则重新 建立所述站点的 MAC地址对应的第一哈希表以及所述站点对应的第 一站点信息表, 并回复重关联响应消息至所述站点; The first hash table corresponding to the MAC address, deleting the second hash table corresponding to the initial Internet Protocol IP address of the site, and deleting the first site information table corresponding to the site; if in the first preset Receiving the re-association request message sent by the station, re-establishing a first hash table corresponding to the MAC address of the site, and a first site information table corresponding to the site, and replying to the re-association response message to the site ;
若在第二预设吋间内未接收到 IP地址更新消息, 则从所述站点的 MA C地址和初始 IP地址对应的第三哈希表中获取所述站点的初始 IP地址 , 将所述初始 IP地址重新分配给所述站点, 并将所述初始 IP地址更新 至所述站点对应的第一站点信息表中。  If the IP address update message is not received in the second preset time, the initial IP address of the site is obtained from the third hash table corresponding to the MA C address and the initial IP address of the site, where The initial IP address is reassigned to the site, and the initial IP address is updated to the first site information table corresponding to the site.
[权利要求 2] 如权利要求 1所述的方法, 其特征在于, 在所述回复重关联响应消息 至所述站点之后, 所述方法还包括: [Claim 2] The method according to claim 1, wherein after the reply reassociation response message to the site, the method further includes:
若在所述第二预设吋间内接收到所述 IP地址更新消息, 则从所述 IP地 址更新消息中获取新的 IP地址, 将所述新的 IP地址分配给所述站点, 并将所述新的 IP地址更新至所述站点对应的第一站点信息表中。  If the IP address update message is received in the second preset time, a new IP address is obtained from the IP address update message, the new IP address is assigned to the site, and The new IP address is updated to the first site information table corresponding to the site.
[权利要求 3] 如权利要求 2所述的方法, 其特征在于, 在所述将所述新的 IP地址更 新至所述站点对应的第一站点信息表中之后, 所述方法还包括: 建立所述站点的 MAC地址和新的 IP地址对应的第三哈希表; 刪除所述站点的 MAC地址和初始 IP地址对应的第三哈希表。  [Claim 3] The method according to claim 2, after the updating the new IP address to the first site information table corresponding to the site, the method further includes: establishing a third hash table corresponding to the MAC address of the site and the new IP address; deleting a third hash table corresponding to the MAC address of the site and the initial IP address.
[权利要求 4] 如权利要求 1所述的方法, 其特征在于, 所述刪除所述站点的 MAC地 址对应的第一哈希表, 刪除所述站点的初始 IP地址对应的第二哈希表 包括:  [Claim 4] The method according to claim 1, wherein the deleting the first hash table corresponding to the MAC address of the site, and deleting the second hash table corresponding to the initial IP address of the site Includes:
从所述解除关联请求消息中获取所述站点的 MAC地址, 并刪除所述 站点的 MAC地址对应的第一哈希表;  Obtaining, by the disassociation request message, a MAC address of the site, and deleting a first hash table corresponding to the MAC address of the site;
从所述站点对应的第一站点信息表中获取所述站点的初始 IP地址, 并 刪除所述站点的初始 IP地址对应的第二哈希表。 如权利要求 1至 4任意一项所述的方法, 其特征在于, 在所述刪除所述 站点对应的第一站点信息表之后, 所述方法还包括: Obtaining an initial IP address of the site from the first site information table corresponding to the site, and deleting a second hash table corresponding to the initial IP address of the site. The method according to any one of claims 1 to 4, wherein after the deleting the first site information table corresponding to the site, the method further comprises:
若未在所述第一预设吋间内接收到所述站点发送的所述重关联请求消 息, 则刪除所述站点的 MAC地址和初始 IP地址对应的第三哈希表。 如权利要求 1任意所述的方法, 其特征在于, 在所述当接收到站点的 解除关联请求消息吋, 刪除所述站点的 MAC地址对应的第一哈希表 之前, 所述方法还包括:  And if the re-association request message sent by the station is not received in the first preset time zone, deleting a MAC address of the site and a third hash table corresponding to the initial IP address. The method according to any one of the preceding claims, wherein, before the receiving the disassociation request message of the site, the first hash table corresponding to the MAC address of the site is deleted, the method further includes:
当接收到所述站点发送的关联请求消息吋, 从所述关联请求消息中获 取所述站点的 MAC地址以及所述站点请求接入的接入点的信息; 若査询到所述站点的 MAC地址对应的第一哈希表, 则获取所述站点 对应的第一站点信息表;  Obtaining, from the association request message, the MAC address of the site and the information of the access point that the site requests to access when receiving the association request message sent by the site; if the MAC address of the site is queried Obtaining a first hash table corresponding to the address, and acquiring a first site information table corresponding to the site;
若所述站点请求接入的接入点与所述第一站点信息表中存储的接入点 一致, 则回复关联响应消息至所述站点。  If the access point requested by the station is consistent with the access point stored in the first station information table, an association response message is replied to the station.
如权利要求 6所述的方法, 其特征在于, 在所述从所述关联请求消息 中获取所述站点的 MAC地址以及所述站点请求接入的接入点的信息 之后, 所述方法还包括:  The method according to claim 6, wherein after the obtaining the MAC address of the station and the information of the access point requested by the station from the association request message, the method further includes :
若査询不到所述站点的 MAC地址对应的第一哈希表, 则建立所述站 点的 MAC地址对应的第一哈希表, 并根据所述关联请求消息建立所 述站点对应的第一站点信息表, 再回复所述关联响应消息至所述站点 如权利要求 7所述的方法, 其特征在于, 所述根据所述关联请求消息 建立所述站点对应的第一站点信息表包括:  If the first hash table corresponding to the MAC address of the site is not queried, the first hash table corresponding to the MAC address of the site is established, and the first corresponding to the site is established according to the association request message. The site information table, and the replies to the association response message to the site according to the method of claim 7, wherein the establishing the first site information table corresponding to the site according to the association request message comprises:
从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址 根据所述站点的 MAC地址以及所述站点请求接入的接入点的 MAC地 址建立所述站点对应的第一站点信息表。  Obtaining, by the association request message, the MAC address of the access point that the site requests to access, according to the MAC address of the site and the MAC address of the access point that the site requests to access, establishing the first corresponding to the site Site information form.
[权利要求 9] 如权利要求 7或 8所述的方法, 其特征在于, 在所述根据所述关联请求 消息建立所述站点对应的第一站点信息表, 再回复所述关联响应消息 至所述站点之后, 所述方法还包括: [Claim 9] The method according to claim 7 or 8, wherein the first site information table corresponding to the site is established according to the association request message, and the association response message is replied After the site, the method further includes:
根据动态主机配置协议 DHCP为所述站点分配 IP地址, 并建立所述站 点的 IP地址对应的第二哈希表;  Assigning an IP address to the site according to the dynamic host configuration protocol, and establishing a second hash table corresponding to the IP address of the site;
建立所述站点的 MAC地址与所述站点的 IP地址对应的第三哈希表; 将所述站点的 IP地址更新至所述第一站点信息表中。  Establishing a third hash table corresponding to the MAC address of the site and the IP address of the site; updating the IP address of the site to the first site information table.
[权利要求 10] 如权利要求 9所述的方法, 其特征在于, 在所述将所述站点的 IP地址 更新至所述第一站点信息表中之后, 所述方法还包括:  [Claim 10] The method according to claim 9, wherein after the updating the IP address of the site to the first site information table, the method further includes:
发送所述站点对应的站点添加信息至所述站点请求接入的接入点。  Sending the site corresponding to the site to add information to the access point that the site requests to access.
[权利要求 11] 如权利要求 6所述的方法, 其特征在于, 在所述获取所述站点对应的 第一站点信息表之后, 所述方法还包括:  [Claim 11] The method of claim 6, wherein after the acquiring the first site information table corresponding to the site, the method further includes:
若所述站点请求接入的接入点的信息与所述第一站点信息表中存储的 接入点的信息不一致, 则根据所述站点请求接入的接入点的信息更新 所述第一站点信息表, 得到第二站点信息表, 并回复关联响应消息至 所述站点;  If the information of the access point that the site requests to access is inconsistent with the information of the access point stored in the first site information table, update the first information according to the information of the access point that the site requests to access. a site information table, obtaining a second site information table, and replying to the association response message to the site;
根据 DHCP为所述站点分配一个新的 IP地址, 建立所述站点的新的 IP 地址对应的第二哈希表, 建立所述站点的 MAC地址与新的 IP地址对 应的第三哈希表;  Assigning a new IP address to the site according to the DHCP, establishing a second hash table corresponding to the new IP address of the site, and establishing a third hash table corresponding to the MAC address of the site and the new IP address;
根据所述站点的新的 IP地址更新所述第二站点信息表, 得到第三站点 信息表。  Updating the second site information table according to the new IP address of the site, and obtaining a third site information table.
[权利要求 12] 如权利要求 11所述的方法, 其特征在于, 在所述回复关联响应消息至 所述站点之后, 所述根据 DHCP为所述站点分配一个新的 IP地址之前 , 所述方法还包括:  [Claim 12] The method according to claim 11, wherein after the reply association response message to the site, the method is configured to assign a new IP address to the site according to DHCP Also includes:
刪除所述站点的初始 IP地址对应的第二哈希表, 并刪除所述站点的 M AC地址和初始 IP地址对应的第三哈希表。  Deleting a second hash table corresponding to the initial IP address of the site, and deleting a third hash table corresponding to the M AC address of the site and the initial IP address.
[权利要求 13] 如权利要求 11所述的方法, 其特征在于, 在所述得到第三站点信息表 之后, 所述方法还包括: [Claim 13] The method of claim 11, wherein after the obtaining the third site information table, the method further comprises:
发送所述站点对应的站点添加信息至所述站点请求接入的接入点。  Sending the site corresponding to the site to add information to the access point that the site requests to access.
[权利要求 14] 如权利要求 11所述的方法, 其特征在于, 在所述回复关联响应消息至 所述站点之后, 所述方法还包括: [Claim 14] The method according to claim 11, wherein in the reply association response message to After the site, the method further includes:
发送所述站点对应的站点刪除信息至所述第一站点信息表中存储的接 入点。  Sending site deletion information corresponding to the site to an access point stored in the first site information table.
[权利要求 15] 如权利要求 11至 14任意一项所述的方法, 其特征在于, 所述根据所述 站点请求接入的接入点的信息更新所述第一站点信息表, 得到第二站 点信息表包括:  [Claim 15] The method according to any one of claims 11 to 14, wherein the updating the first site information table according to the information of the access point requested by the site to obtain the second The site information table includes:
刪除所述第一站点信息表中存储的接入点的所有信息;  Deleting all information of the access point stored in the first site information table;
从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址 、 IP地址、 服务集标识 SSID和 /或无线局域网标识 WLAN ID, 并将所 述站点请求接入的接入点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID 添加到所述第一站点信息表中, 得到所述第二站点信息表。  Obtaining, from the association request message, a MAC address, an IP address, a service set identifier SSID, and/or a wireless local area network identifier WLAN ID of the access point that the station requests to access, and the access point that the station requests to access The MAC address, IP address, SSID, and/or WLAN ID are added to the first site information table to obtain the second site information table.
[权利要求 16] —种提高站点的接入效率的装置, 其特征在于, 包括: [Claim 16] An apparatus for improving access efficiency of a station, comprising:
第一刪除单元, 用于当接收到站点的解除关联请求消息吋, 刪除所述 站点的介质访问控制 MAC地址对应的第一哈希表, 刪除所述站点的 初始网际协议 IP地址对应的第二哈希表, 并刪除所述站点对应的第一 站点信息表;  a first deleting unit, configured to delete a first hash table corresponding to a media access control MAC address of the site, and delete a second corresponding to an initial Internet Protocol IP address of the site, after receiving a disassociation request message of the site Hashing the table, and deleting the first site information table corresponding to the site;
第一建立单元, 用于若在第一预设吋间内接收到所述站点发送的重关 联请求消息, 则重新建立所述站点的 MAC地址对应的第一哈希表以 及所述站点对应的第一站点信息表, 并回复重关联响应消息至所述站 点;  a first establishing unit, configured to: if the re-association request message sent by the station is received in the first preset time, re-establish a first hash table corresponding to the MAC address of the site, and corresponding to the site a first site information table, and replying to the reassociation response message to the site;
第一 IP地址分配单元, 用于若在第二预设吋间内未接收到 IP地址更新 消息, 则从所述站点的 MAC地址和初始 IP地址对应的第三哈希表中 获取所述站点的初始 IP地址, 将所述初始 IP地址重新分配给所述站点 , 并将所述初始 IP地址更新至所述站点对应的第一站点信息表中。  a first IP address allocation unit, configured to: if the IP address update message is not received in the second preset time, obtain the site from a third hash table corresponding to the MAC address of the site and the initial IP address An initial IP address, reallocating the initial IP address to the site, and updating the initial IP address to a first site information table corresponding to the site.
[权利要求 17] 如权利要求 16所述的装置, 其特征在于, 所述装置还包括: [Claim 17] The device according to claim 16, wherein the device further comprises:
第二 IP地址分配单元, 用于若在所述第二预设吋间内接收到所述 IP地 址更新消息, 则从所述 IP地址更新消息中获取新的 IP地址, 将所述新 的 IP地址分配给所述站点, 并将所述新的 IP地址更新至所述站点对应 的第一站点信息表中。 a second IP address allocation unit, configured to: obtain a new IP address from the IP address update message if the IP address update message is received in the second preset time, and the new IP address Assigning an address to the site, and updating the new IP address to the site corresponding The first site information table.
如权利要求 17所述的装置, 其特征在于, 所述装置还包括: 第二建立单元, 用于建立所述站点的 MAC地址和新的 IP地址对应的 第三哈希表; The device according to claim 17, wherein the device further comprises: a second establishing unit, configured to establish a third hash table corresponding to the MAC address of the station and the new IP address;
第二刪除单元, 用于刪除所述站点的 MAC地址和初始 IP地址对应的 第三哈希表。 And a second deleting unit, configured to delete a third hash table corresponding to the MAC address of the site and the initial IP address.
如权利要求 16所述的装置, 其特征在于, 所述第一刪除单元具体用于 从所述解除关联请求消息中获取所述站点的 MAC地址, 并刪除所述 站点的 MAC地址对应的第一哈希表; The device according to claim 16, wherein the first deleting unit is configured to acquire a MAC address of the site from the disassociation request message, and delete a first corresponding to a MAC address of the site. Hash table
从所述站点对应的第一站点信息表中获取所述站点的初始 IP地址, 并 刪除所述站点的初始 IP地址对应的第二哈希表。 Obtaining an initial IP address of the site from the first site information table corresponding to the site, and deleting a second hash table corresponding to the initial IP address of the site.
如权利要求 16至 19任意一项所述的装置, 其特征在于, 所述装置还包 括: The apparatus according to any one of claims 16 to 19, wherein the apparatus further comprises:
第三刪除单元, 用于若未在所述第一预设吋间内接收到所述站点发送 的所述重关联请求消息, 则刪除所述站点的 MAC地址和初始 IP地址 对应的第三哈希表。 a third deleting unit, configured to delete the MAC address of the site and the third port corresponding to the initial IP address if the re-association request message sent by the station is not received in the first preset time interval Greek table.
如权利要求 16所述的装置, 其特征在于, 所述装置还包括: 第一获取单元, 用于当接收到站点发送的关联请求消息吋, 从所述关 联请求消息中获取所述站点的 MAC地址以及所述站点请求接入的接 入点的信息; The device according to claim 16, wherein the device further comprises: a first acquiring unit, configured to: obtain an MAC of the site from the association request message when receiving an association request message sent by a station An address and information of an access point that the station requests to access;
第二获取单元, 用于若査询到所述站点的 MAC地址对应的第一哈希 表, 则获取所述站点对应的第一站点信息表; a second obtaining unit, configured to acquire a first site information table corresponding to the site if the first hash table corresponding to the MAC address of the site is queried;
第一响应单元, 用于若所述站点请求接入的接入点与所述第一站点信 息表中存储的接入点一致, 则回复关联响应消息至所述站点。 The first response unit is configured to: when the access point requested by the station is consistent with the access point stored in the first site information table, reply the association response message to the station.
如权利要求 21所述的装置, 其特征在于, 所述装置还包括: 第二响应单元, 用于若査询不到所述站点的 MAC地址对应的第一哈 希表, 则建立所述站点的 MAC地址对应的第一哈希表, 并根据所述 关联请求消息建立所述站点对应的第一站点信息表, 再回复所述关联 响应消息至所述站点。 The device according to claim 21, wherein the device further comprises: a second response unit, configured to: if the first hash table corresponding to the MAC address of the site is not queried, establish the site MAC address corresponding to the first hash table, and according to the The association request message establishes a first site information table corresponding to the site, and then replies the association response message to the site.
如权利要求 22所述的装置, 其特征在于, 所述第二响应单元具体用于 从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址 根据所述站点的 MAC地址以及所述站点请求接入的接入点的 MAC地 址建立所述站点对应的第一站点信息表。 The device according to claim 22, wherein the second response unit is configured to obtain, from the association request message, a MAC address of an access point that the station requests to access according to a MAC address of the station. And the MAC address of the access point that the station requests to access to establish a first site information table corresponding to the site.
如权利要求 22或 23所述的装置, 其特征在于, 所述装置还包括: 第三建立单元, 用于根据动态主机配置协议 DHCP为所述站点分配网 际协议 IP地址, 并建立所述站点的 IP地址对应的第二哈希表, 建立所 述站点的 MAC地址与所述站点的 IP地址对应的第三哈希表; 第一站点信息表更新单元, 用于将所述站点的 IP地址更新至所述第一 站点信息表中。 The device according to claim 22 or 23, wherein the device further comprises: a third establishing unit, configured to allocate an internet protocol IP address to the station according to a dynamic host configuration protocol, and establish the site a second hash table corresponding to the IP address, establishing a third hash table corresponding to the MAC address of the site and the IP address of the site; and a first site information table updating unit, configured to update the IP address of the site To the first site information table.
如权利要求 24所述的装置, 其特征在于, 所述装置还包括: 第一发送单元, 用于发送所述站点对应的站点添加信息至所述站点请 求接入的接入点。 The device according to claim 24, wherein the device further comprises: a first sending unit, configured to send a site adding information corresponding to the site to an access point that the site requests to access.
如权利要求 21所述的装置, 其特征在于, 所述装置还包括: 第二站点信息表更新单元, 用于若所述站点请求接入的接入点的信息 与所述第一站点信息表中存储的接入点的信息不一致, 则根据所述站 点请求接入的接入点的信息更新所述第一站点信息表, 得到第二站点 信息表, 并回复关联响应消息至所述站点; The device according to claim 21, wherein the device further comprises: a second site information table updating unit, configured to: if the site requests access to the access point information and the first site information table If the information of the access point stored in the information is inconsistent, the first site information table is updated according to the information of the access point that the site requests to access, and the second site information table is obtained, and the association response message is returned to the site;
第四建立单元, 用于根据 DHCP为所述站点分配一个新的 IP地址, 建 立所述站点的新的 IP地址对应的第二哈希表, 建立所述站点的 MAC 地址与新的 IP地址对应的第三哈希表; a fourth establishing unit, configured to allocate a new IP address to the site according to the DHCP, establish a second hash table corresponding to the new IP address of the site, and establish a MAC address corresponding to the new IP address of the site. Third hash table;
所述第二站点信息表更新单元, 还用于根据所述站点的新的 IP地址更 新所述第二站点信息表, 得到第三站点信息表。 The second site information table updating unit is further configured to: update the second site information table according to the new IP address of the site to obtain a third site information table.
如权利要求 26所述的装置, 其特征在于, 所述装置还包括: 第四刪除单元, 用于刪除所述站点的初始 IP地址对应的第二哈希表, 并刪除所述站点的 MAC地址和初始 IP地址对应的第三哈希表。 The device of claim 26, wherein the device further comprises: And a fourth deleting unit, configured to delete a second hash table corresponding to the initial IP address of the site, and delete a third hash table corresponding to the MAC address of the site and the initial IP address.
[权利要求 28] 如权利要求 27所述的装置, 其特征在于, 所述装置还包括: [Claim 28] The device according to claim 27, wherein the device further comprises:
第二发送单元, 用于发送所述站点对应的站点刪除信息至所述第一站 点信息表中存储的接入点。  And a second sending unit, configured to send site deletion information corresponding to the site to an access point stored in the first site information table.
[权利要求 29] 如权利要求 26至 28任意一项所述的装置, 其特征在于, 所述第二站点 信息表更新单元具体用于: [Claim 29] The device according to any one of claims 26 to 28, wherein the second site information table updating unit is specifically configured to:
刪除所述第一站点信息表中存储的接入点的所有信息;  Deleting all information of the access point stored in the first site information table;
从所述关联请求消息中获取所述站点请求接入的接入点的 MAC地址 、 IP地址、 服务集标识 SSID和 /或无线局域网标识 WLAN ID, 并将所 述站点请求接入的接入点的 MAC地址、 IP地址、 SSID和 /或 WLAN ID 添加到所述第一站点信息表中, 得到所述第二站点信息表。  Obtaining, from the association request message, a MAC address, an IP address, a service set identifier SSID, and/or a wireless local area network identifier WLAN ID of the access point that the station requests to access, and the access point that the station requests to access The MAC address, IP address, SSID, and/or WLAN ID are added to the first site information table to obtain the second site information table.
PCT/CN2015/090908 2015-08-11 2015-09-28 Method and device for increasing access efficiency of station WO2017024663A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN201510487887.6 2015-08-11
CN201510488042.9A CN105142189B (en) 2015-08-11 2015-08-11 The roam control method and device of website
CN201510488041.4A CN105188107B (en) 2015-08-11 2015-08-11 Improve the method and device of the access efficiency of website
CN201510488041.4 2015-08-11
CN201510487887.6A CN105072669B (en) 2015-08-11 2015-08-11 The connection control method and device of website
CN201510488042.9 2015-08-11

Publications (1)

Publication Number Publication Date
WO2017024663A1 true WO2017024663A1 (en) 2017-02-16

Family

ID=57982841

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090908 WO2017024663A1 (en) 2015-08-11 2015-09-28 Method and device for increasing access efficiency of station

Country Status (1)

Country Link
WO (1) WO2017024663A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1505799A1 (en) * 2003-08-05 2005-02-09 Alcatel IPv4/v6 address acquisition techniques for mobile terminals operating within wireless LANs
US20060140163A1 (en) * 2004-12-23 2006-06-29 Haixiang He Method and apparatus to facilitate the closure of mobility tunnels
CN104519551A (en) * 2013-09-27 2015-04-15 中国电信股份有限公司 DHCP (Dynamic Host Configuration Protocol) negotiation method and client in WiFi (Wireless Fidelity) network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1505799A1 (en) * 2003-08-05 2005-02-09 Alcatel IPv4/v6 address acquisition techniques for mobile terminals operating within wireless LANs
US20060140163A1 (en) * 2004-12-23 2006-06-29 Haixiang He Method and apparatus to facilitate the closure of mobility tunnels
CN104519551A (en) * 2013-09-27 2015-04-15 中国电信股份有限公司 DHCP (Dynamic Host Configuration Protocol) negotiation method and client in WiFi (Wireless Fidelity) network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"IEEE Trial-Use Recommended Practice for Multi-Vendor Access Point Interoperability via an Inter-Access Point Protocol Across Distribution system supporting IEEE 802.11 operation", IEEE 802.11F, 14 July 2003 (2003-07-14) *

Similar Documents

Publication Publication Date Title
EP2723137B1 (en) Apparatus for setting up network for ip communication in mobile terminal
US9674748B2 (en) Method and apparatus for network handover
US11219073B2 (en) Session connection establishment method and control plane network element
CN106576119B (en) Method and apparatus for delegating prefixes to Wi-Fi clients
KR20140116900A (en) Methods and apparatus for establishing a tunneled direct link setup (tdls) session between devices in a wireless network
US20160308824A1 (en) Method for determining gre tunnel, gateway device, and access site
WO2011144134A1 (en) Method, apparatus and system for pushing information
EP4243364A2 (en) Network address policy information received in a pre-associated state
CN105142189B (en) The roam control method and device of website
CN103517378B (en) Packet Data Network connects method for building up and equipment
CN113810517A (en) Multi-link equipment MAC address management method and device and multi-link equipment
WO2016192572A1 (en) Method, device and system for improving concurrent processing ability of wireless local area network
US8775583B1 (en) Assigning internet protocol addresses in a network
WO2011000168A1 (en) Method, apparatus and system for obtaining local domain name
CN103024876A (en) Access control method, gateway and system
CN105072669B (en) The connection control method and device of website
US10798054B2 (en) IP address allocation method in D2D communication and user equipment
WO2017024663A1 (en) Method and device for increasing access efficiency of station
WO2009012694A1 (en) Network address processing method and router node
CN105188107B (en) Improve the method and device of the access efficiency of website
JP2012227648A (en) Radio communication terminal
US8411685B1 (en) Managing the allocation of internet protocol addresses in a wireless network
US9515990B1 (en) Communicating reregistration information based on the lifetime of a communication session
JP6023843B1 (en) Wireless LAN system, access point management apparatus, access point, wireless LAN control method, and computer program
WO2020113955A1 (en) Communication method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15900858

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 05.07.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 15900858

Country of ref document: EP

Kind code of ref document: A1