CN110049523B - Access control method, access point connection method, access control device, access point connection device and electronic equipment - Google Patents

Access control method, access point connection method, access control device, access point connection device and electronic equipment Download PDF

Info

Publication number
CN110049523B
CN110049523B CN201910345150.9A CN201910345150A CN110049523B CN 110049523 B CN110049523 B CN 110049523B CN 201910345150 A CN201910345150 A CN 201910345150A CN 110049523 B CN110049523 B CN 110049523B
Authority
CN
China
Prior art keywords
wireless terminal
address
historical
access point
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910345150.9A
Other languages
Chinese (zh)
Other versions
CN110049523A (en
Inventor
吴清根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201910345150.9A priority Critical patent/CN110049523B/en
Publication of CN110049523A publication Critical patent/CN110049523A/en
Application granted granted Critical
Publication of CN110049523B publication Critical patent/CN110049523B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0077Transmission or use of information for re-establishing the radio link of access information of target access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/17Selecting a data network PoA [Point of Attachment]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/14Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support

Landscapes

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

Abstract

The application provides an access control method and device, an access point connection method and device and an electronic device. The access control method is applied to an access controller and comprises the following steps: acquiring identification information of a wireless terminal requesting to access a first access point; inquiring a historical IP address corresponding to the wireless terminal according to the identification information, wherein the historical IP address comprises an IP address used when the wireless terminal is connected with a second access point previously; if the historical IP address is found, first indication information is sent to the wireless terminal, wherein the first indication information is used for informing the access controller of the wireless terminal that the historical IP address applied by the wireless terminal is stored, so that the wireless terminal accesses the first access point by adopting the historical IP address. The method can enable the wireless terminal to use the historical IP address to rapidly access the first access point, and can improve the network switching efficiency.

Description

Access control method, access point connection method, access control device, access point connection device and electronic equipment
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to an access control method and apparatus, an access point connection method and apparatus, and an electronic device.
Background
With the rapid development of Wireless communication technology and the wide spread of mobile terminals (such as mobile phones, notebooks, tablet computers, etc.), more and more users are used to Access the internet anytime and anywhere using Wireless terminals, because the coverage area of a Wireless Local Area Network (WLAN) provided by a single Access Point (AP) is limited, in order to meet the requirement of a user for networking through the Access Point, a plurality of APs are often required to be arranged at intervals in places such as stations, airports, shopping malls, office buildings, etc., and during the moving process of the user, the Wireless terminal carried by the user can be switched between the Wireless local area networks provided by different APs to realize network roaming.
Referring to fig. 1, which shows a schematic diagram of an application scenario provided in some embodiments of the present application, in this application scenario, one Access Controller (AC) may manage multiple Access points such as AP1 and AP2 … … APn, when a wireless terminal roams from the vicinity of AP1 to the vicinity of AP2, for better wireless network quality, it is necessary to disconnect from AP1, and switch to AP2, the access flow for the wireless terminal to access AP2 is shown generally in fig. 2, the wireless terminal first scans for a list of available access points, then, an AP (for example, AP2) with better network quality is selected from the access point list, a wireless link is established with an AP managed by the AC through an Authentication frame, an Association frame, and the like, an IP address is obtained through interaction with the AC through a DHCP (Dynamic Host Configuration Protocol) Protocol, and then, the AP2 is accessed for data communication based on the IP address.
The above access flow has complicated steps and takes a long time, and especially under the condition of a large access amount, the efficiency of allocating the IP address to the AP by the AC is low, which causes that the internet cannot be accessed for a long time in the network switching process, thereby seriously affecting the user experience.
Disclosure of Invention
The application aims to provide an access control method and device, an access point connection method and device and electronic equipment.
A first aspect of the present application provides an access control method, applied to an access controller, including:
acquiring identification information of a wireless terminal requesting to access a first access point;
inquiring a historical IP address corresponding to the wireless terminal according to the identification information, wherein the historical IP address comprises an IP address used when the wireless terminal is connected with a second access point previously;
if the historical IP address is found, first indication information is sent to the wireless terminal, wherein the first indication information is used for informing the access controller of the wireless terminal that the historical IP address applied by the wireless terminal is stored, so that the wireless terminal accesses the first access point by adopting the historical IP address.
A second aspect of the present application provides an access control apparatus, applied to an access controller, including:
the identification information acquisition module is used for acquiring identification information of a wireless terminal requesting to access the first access point;
a historical IP address query module, configured to query, according to the identification information, a historical IP address corresponding to the wireless terminal, where the historical IP address includes an IP address used when the wireless terminal is previously connected to a second access point;
and a first indication information sending module, configured to send first indication information to the wireless terminal if the historical IP address is found, where the first indication information is used to notify the wireless terminal that the access controller already stores the historical IP address applied by the wireless terminal, so that the wireless terminal accesses the first access point using the historical IP address.
A third aspect of the present application provides an access point connection method, applied to a wireless terminal, including:
sending a connection request to a first access point;
receiving response information returned by the first access point for the connection request and coming from an access controller;
and if the response information comprises first indication information, accessing the first access point by adopting a historical IP address, wherein the first indication information is used for informing the wireless terminal that the access controller stores the historical IP address applied by the wireless terminal.
The fourth aspect of the present application provides an access point connection apparatus, which is applied to a wireless terminal, and includes:
a connection request sending module, configured to send a connection request to a first access point;
a response information receiving module, configured to receive response information from an access controller, where the response information is returned by the first access point for the connection request;
a first access point access module, configured to access the first access point by using a historical IP address if the response information includes first indication information, where the first indication information is used to notify the wireless terminal that the access controller has stored the historical IP address applied by the wireless terminal.
A fifth aspect of the present application provides an electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing when executing the computer program to implement the method of the first or third aspect of the application.
Compared with the prior art, in the access control method provided in the first aspect of the present application, after obtaining the identification information of the wireless terminal requesting to access the first access point, the access controller may query the historical IP address corresponding to the wireless terminal according to the identification information, and after finding the historical IP address, send the first indication information to the wireless terminal to notify the wireless terminal that the access controller has stored the historical IP address applied by the wireless terminal, so that the wireless terminal accesses the first access point using the historical IP address. Based on the method, the wireless terminal can directly use the existing historical IP address to quickly access the first access point without applying for a new IP address, and the step of redistributing the IP address is omitted, so that the network switching efficiency can be greatly improved, the wireless network switching without perception of the user is realized, and the user experience is improved.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a schematic diagram of an application scenario provided by some embodiments of the present application;
fig. 2 is a flow chart illustrating a wireless network connection method provided in the prior art;
fig. 3 illustrates a flow chart of an access control method provided by some embodiments of the present application;
fig. 4 is a schematic diagram illustrating a format of a network status information element according to some embodiments of the present application;
FIG. 5 illustrates a format diagram of a Content field of a network state information element provided by some embodiments of the present application;
fig. 6 illustrates a schematic diagram of an access control device provided in some embodiments of the present application;
fig. 7 illustrates a flow chart of an access point connection method provided by some embodiments of the present application;
fig. 8 illustrates a schematic diagram of an access point connection apparatus provided in some embodiments of the present application;
fig. 9 illustrates a flow chart of a wireless terminal handover network provided by some embodiments of the present application;
fig. 10 illustrates a schematic diagram of an electronic device provided by some embodiments of the present application.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which this application belongs.
In addition, the terms "first" and "second", etc. are used to distinguish different objects, rather than to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the application provides an access control method and device, an access point connection method and device, and an electronic device, which are described below with reference to the accompanying drawings.
Referring to fig. 3, which shows a flowchart of an access control method provided in some embodiments of the present application, as shown, the access control method, for an access controller AC, may include the following steps:
step S101: acquiring identification information of a wireless terminal requesting to access a first access point;
in some embodiments, if a user wants to use a wireless terminal to Access a wireless local area network through a first Access point, the user may first use the wireless terminal to send a connection request to the first Access point, where the connection request may include identification information such as a Media Access Control Address (MAC Address) of the wireless terminal, and the first Access point may forward the connection request to an Access controller after receiving the connection request, or send the analyzed identification information of the wireless terminal to the Access controller, so that the controller knows that the wireless terminal is to be accessed on the first Access point managed by the controller, where the Access controller may obtain the identification information of the wireless terminal by analyzing the connection request, or directly receive the identification information forwarded by the first Access point.
Step S102: inquiring a historical IP address corresponding to the wireless terminal according to the identification information, wherein the historical IP address comprises an IP address used when the wireless terminal is connected with a second access point previously;
step S103: if the historical IP address is found, sending first indication information to the wireless terminal, wherein the first indication information is used for informing the access controller of the wireless terminal that the historical IP address applied by the wireless terminal is stored, so that the wireless terminal accesses the first access point by using the historical IP address;
in another embodiment, the first indication message carries a history IP address applied by the wireless terminal, and correspondingly, after receiving the first indication message, the wireless terminal determines that the history IP address applied by the wireless terminal is stored in the wireless controller, so that the wireless terminal accesses the first access point by using the history IP address;
of course, the first indication message may also carry both the specific identifier and the historical IP address applied by the wireless terminal.
In the access control method provided by the embodiment of the application, after acquiring the identification information of the wireless terminal requesting to access the first access point, the access controller may query the historical IP address corresponding to the wireless terminal according to the identification information, and after finding the historical IP address, send the first indication information to the wireless terminal to notify the wireless terminal that the access controller has stored the historical IP address applied by the wireless terminal, so that the wireless terminal accesses the first access point by using the historical IP address. Based on the method, the wireless terminal can directly use the existing historical IP address to quickly access the first access point without applying for a new IP address, and the step of redistributing the IP address is omitted, so that the network switching efficiency can be greatly improved, the wireless network switching without perception of the user is realized, and the user experience is improved.
It should be noted that, in some embodiments, the historical IP address may refer to an IP address used by the wireless terminal when connecting to the access point managed by the access controller last time.
One of the objectives of the foregoing embodiments of the present application is to implement fast handover of a wireless terminal between multiple wireless local area networks when roaming among multiple APs, so that communication can be quickly resumed after network handover, for example, based on the foregoing embodiments, the wireless terminal can be quickly handed over from a wireless local area network provided by a second access point to a wireless local area network provided by a first access point, during which, when connecting to the first access point, the wireless terminal does not need to apply for a new IP address, but directly accesses the first access point by using an IP address (which may be referred to as a historical IP address at this time) used when accessing the second access point, and as a process of reapplication for an IP address is omitted, networking steps can be simplified, and network handover efficiency can be improved.
Based on the above description, in some implementations of the embodiments of the present application, before querying the historical IP address corresponding to the wireless terminal, the method may further include:
when a wireless terminal accesses a second access point, storing an IP address allocated to the wireless terminal as a historical IP address corresponding to the wireless terminal in a local cache, wherein the second access point and the first access point are both managed by the access controller.
When the second access point receives an access request sent by the wireless terminal, for example, the wireless terminal negotiates with the second access point through an Authentication frame and an Association frame, and requests to establish a wireless link therebetween, the second access point may be triggered to send identification information of the accessed wireless terminal to the access controller, so as to inform the access controller that the wireless terminal desires to access the second access point. For example, in some embodiments, the access controller may be a network device configured to centrally control the wireless AP and is responsible for managing all the wireless APs under the control of the network device, where the management of the AP includes, but is not limited to, issuing configuration, modifying related configuration parameters, performing radio frequency intelligent management, performing access security control, and the like, and based on this, when the wireless terminal is previously connected to the second access point, the access controller also needs to perform authentication and release, and at any time after the access controller releases the access of the wireless terminal to the second access point, the access controller may store the IP address allocated to the wireless terminal as a historical IP address corresponding to the wireless terminal in a local cache, so as to be directly used when the subsequent wireless terminal is connected to another access point to construct a wireless communication link.
Specifically, the access controller may locally table the correspondence between the wireless terminal and the historical IP address, for example, in some examples, the access controller may set up a table entry to store the following information for the wireless terminal:
MAC Address is the MAC Address of the wireless terminal;
IP Address: an IP address of the wireless terminal;
VLAN: VLAN where the wireless terminal is located;
based on the above embodiment, after acquiring the identification information (for example, MAC address) of the wireless terminal requesting to access the first access point, the access controller may query the historical IP address corresponding to the MAC address of the wireless terminal according to the MAC address of the wireless terminal. The historical IP addresses are stored in a local cache, so that the query efficiency can be effectively improved, the corresponding response information is quickly sent to the wireless terminal according to the query result, and the network access efficiency is integrally improved.
In view of that the number of access terminals of the AC may be relatively large, if the historical IP address is reserved for a long time, the method may occupy too many system resources of the AC device, and in order to ensure normal and smooth operation of the AC, on the basis of the foregoing embodiments, in some modified embodiments, the method may further include:
and deleting the stored historical IP address after detecting that the wireless terminal is disconnected from the second access point and exceeds a preset time threshold.
Through the embodiment, a corresponding time length threshold can be set, and the time length threshold can be the same as the IP aging time length set in the DHCP server, so that the wireless terminal can adopt the historical IP address to realize the rapid switching of the network at any time within the time length threshold; in addition, if the wireless terminal is disconnected from the second access point for a long time, for example, the time length threshold is exceeded, it may be determined that the wireless terminal has left the coverage of the wireless local area network of each AP controlled by the AC, and the historical IP address in the DHCP server has aged, and the historical IP address may have been allocated to another wireless terminal newly accessed.
Referring to the above description, in some implementations of embodiments of the present application, after querying the historical IP address corresponding to the wireless terminal, the method further includes:
and if the historical IP address is not found, sending second indication information to the wireless terminal, wherein the second indication information is used for informing the access controller of the wireless terminal that the historical IP address applied by the wireless terminal is not stored so as to indicate the wireless terminal to apply for a new IP address to access the first access point.
Through the embodiment, under the condition that the historical IP address is deleted or the controller does not record the IP address of the wireless terminal before, the second indication information can be quickly sent to the wireless terminal to indicate the wireless terminal to apply for a new IP address to access the first access point, so that the wireless terminal can still smoothly access the first access point.
In some embodiments, the request message may include an Association frame, and the Response message may include an Association Response frame, so that the first indication message or the second indication message is transferred in an Association interaction phase, thereby more quickly implementing network access and handover.
In some embodiments, the sending the first indication information to the wireless terminal may include:
generating response Information aiming at the connection request sent by the wireless terminal, wherein the first indication Information is recorded in a network state Information Element (IE) in the response Information;
and sending the response information to the wireless terminal through the first access point.
For example, referring to fig. 4, which shows an example of a format of a network status information element provided in some embodiments of the present application, each field of the information element IE may be defined as follows:
IE identification information, for example this value may be 221;
length: the length of the IE may be, for example, 4 bytes;
organization Identifier: an organization identifier, such as an OUI (organization unique identifier) of the access device vendor;
secondary IE identification information, for example, the value may be 01;
content, which is used for identifying whether the current AC caches the corresponding historical IP address and can occupy 1 byte;
the format of the IE Content is shown in fig. 5, and may include the following fields:
IP Cache Status: the access point information is used for identifying whether the AC currently stores a historical IP address corresponding to the wireless terminal, for example, the Bit position is 1, which indicates that the current AC stores the historical IP address corresponding to the wireless terminal, that is, the first indication information may be used to indicate that the wireless terminal accesses the first access point by using the historical IP address; the Bit position is 0, which means that the current AC does not have the historical IP address corresponding to the wireless terminal, i.e. the second indication information, which may be used to indicate the wireless terminal to reapply a new IP address to access the first access point.
Through the above embodiment, the first indication information or the second indication information can be transmitted to the wireless terminal through the information element IE by using a smaller data volume, so that the purpose of improving network access and handover efficiency in the embodiment of the present application can be achieved with smaller modification and lower cost on the basis of the existing embodiment, and the popularization and application are facilitated.
In the foregoing embodiment, an access control method is provided, and correspondingly, the present application further provides an access control apparatus. The access control device provided in the embodiments of the present application may implement the above access control method, and the access control device may be implemented by software, hardware, or a combination of software and hardware. For example, the access control device may comprise integrated or separate functional modules or units to perform the corresponding steps in the above-described methods. Please refer to fig. 6, which illustrates a schematic diagram of an access control apparatus according to some embodiments of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 6, the access control apparatus 10, applied to an access controller, may include:
an identification information obtaining module 101, configured to obtain identification information of a wireless terminal requesting to access a first access point;
a historical IP address query module 102, configured to query, according to the identification information, a historical IP address corresponding to the wireless terminal, where the historical IP address includes an IP address used when the wireless terminal is previously connected to a second access point;
a first indication information sending module 103, configured to send first indication information to the wireless terminal if the historical IP address is found, where the first indication information is used to notify the wireless terminal that the access controller already stores the historical IP address applied by the wireless terminal, so that the wireless terminal accesses the first access point using the historical IP address.
In some modifications of the embodiments of the present application, the apparatus 10 may further include:
and the historical IP address storage module is used for storing the IP address allocated to the wireless terminal as the historical IP address corresponding to the wireless terminal when the wireless terminal accesses a second access point, wherein the second access point and the first access point are both managed by the access controller.
In some modifications of the embodiments of the present application, the apparatus 10 may further include:
and the historical IP address deleting module is used for deleting the stored historical IP address after detecting that the wireless terminal is disconnected with the second access point and exceeds a preset time threshold.
In some modifications of the embodiments of the present application, the apparatus 10 may further include:
and a second indication information sending module, configured to send second indication information to the wireless terminal if the historical IP address is not found, where the second indication information is used to notify that the access controller of the wireless terminal does not store the historical IP address applied by the wireless terminal, so as to indicate the wireless terminal to apply for a new IP address to access the first access point.
The access control device 10 provided in the embodiment of the present application and the access control method provided in the foregoing embodiment of the present application have the same advantageous effects from the same inventive concept.
In the foregoing embodiment, an access control method is provided, and correspondingly, the present application further provides an access point connection method, where the access point connection method is implemented in cooperation with the foregoing access control method, and belongs to the same inventive concept, so that the following description of the embodiment of the access point connection method may be understood by referring to the foregoing description of the embodiment of the access control method, and a part of the description is not repeated, and accordingly, the foregoing embodiment of the access control method may also be understood by referring to the following description of the embodiment of the access point connection method.
Referring to fig. 7, which shows a flowchart of an access point connection method provided in some embodiments of the present application, as shown, the access point connection method is used for a wireless terminal, and in one embodiment, the following method may be implemented by a client in the wireless terminal, and may include the following steps:
step S201: sending a connection request to a first access point;
step S202: receiving response information returned by the first access point for the connection request and coming from an access controller;
step S203: and if the response information comprises first indication information, accessing the first access point by adopting a historical IP address, wherein the first indication information is used for informing the wireless terminal that the access controller stores the historical IP address applied by the wireless terminal.
The access point connection method provided by the embodiment of the present application and the access control method provided by the foregoing embodiment of the present application have the same inventive concept, and at least have the following corresponding beneficial effects: when the response information comprises the first indication information, the wireless terminal can directly use the existing historical IP address to rapidly access the first access point without applying for a new IP address, and the step of applying for the IP address is omitted, so that the network switching efficiency can be greatly improved, the wireless network switching without perception of a user is realized, and the user experience is improved.
In some implementations of the embodiments of the present application, before accessing the first access point using the historical IP address, the method may further include:
and reading the historical IP address from a local cache.
In this embodiment, the wireless terminal may store the historical IP address in a local cache in advance, so that when receiving the first indication information, the wireless terminal may quickly read the historical IP address and quickly access the first access point to perform data communication using the historical IP address.
In some variations, the method may further comprise:
and before accessing a new access point, storing the IP address allocated to the wireless terminal as a historical IP address corresponding to the wireless terminal in a local cache.
Before the wireless terminal accesses the new access point, the connection state with the old access point may be any time, or the connection with the old access point may be disconnected, which is not limited in the embodiments of the present application.
Specifically, after the wireless terminal accesses the first access point, a table entry may be established in a local cache to store the following information:
IP Address: the wireless terminal is connected with an IP address used by the first access point;
gateway: the gateway information of the first access point includes, for example, a MAC address, an SSID (Service Set Identifier), and other information.
The IP address is the historical IP address of the wireless terminal when the wireless terminal accesses a new access point next time.
In other embodiments, the wireless terminal may not store and read the historical IP address from the local cache, but the first access point sends the historical IP address with the response information, and the wireless terminal may also obtain the historical IP address by parsing the response information and quickly access the first access point by using the historical IP address to perform data communication. Those skilled in the art can implement the above-described exemplary embodiments in a variety of ways, and the embodiments of the present application are not limited thereto and should fall within the scope of the present application.
Furthermore, in some embodiments, the method may further include: and if the response information comprises second indication information, applying for a new IP address to the access controller through the first access point, and accessing the first access point by adopting the new IP address, wherein the second indication information is used for informing the wireless terminal that the historical IP address applied by the wireless terminal is not stored in the access controller.
By the embodiment, the first access point can be smoothly accessed by adopting a traditional scheme through applying for a new IP address under the condition that the AC does not store the historical IP address, and higher compatibility and fault tolerance rate are achieved.
In the foregoing embodiments, an access point connection method is provided, and correspondingly, an access point connection apparatus is also provided in the present application. The access point connection device provided in the embodiment of the present application may implement the access point connection method, and the access point connection device may be implemented by software, hardware, or a combination of software and hardware. For example, the access point connection means may comprise integrated or separate functional modules or units to perform the corresponding steps of the above-described methods. Please refer to fig. 8, which illustrates a schematic diagram of an access point connection apparatus according to some embodiments of the present application. Since the apparatus embodiments are substantially similar to the method embodiments, they are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for relevant points. The device embodiments described below are merely illustrative.
As shown in fig. 8, the access point connection apparatus 20, applied to a wireless terminal, may include:
a connection request sending module 201, configured to send a connection request to a first access point;
a response information receiving module 202, configured to receive response information from the access controller, returned by the first access point for the connection request;
a first access point accessing module 203, configured to access the first access point by using a historical IP address if the response information includes first indication information, where the first indication information is used to notify the wireless terminal that the access controller has stored the historical IP address applied by the wireless terminal.
In some implementations of the embodiments of the present application, the apparatus 20 may further include:
and the local IP reading module is used for reading the historical IP address from a local cache.
In some implementations of the embodiments of the present application, the apparatus 20 may further include:
and the local IP storage module is used for storing the IP address allocated to the wireless terminal as a historical IP address corresponding to the wireless terminal into a local cache before a new access point is accessed.
In some implementations of the embodiments of the present application, the apparatus 20 may further include:
and the new IP access module is used for applying a new IP address to the access controller through the first access point and accessing the first access point by adopting the new IP address if the response information comprises second indication information, wherein the second indication information is used for informing the wireless terminal that the historical IP address applied by the wireless terminal is not stored in the access controller.
The access point connection device 20 provided in the embodiment of the present application and the access point connection method provided in the foregoing embodiment of the present application have the same advantageous effects based on the same inventive concept.
For better understanding of the foregoing embodiments of the present application, please refer to fig. 9, which shows a flowchart of a wireless terminal handover network provided in some embodiments of the present application, and an access control method and an access point connection method described in any of the foregoing embodiments may be mutually referred to and understood with the following exemplary description, and some contents are not repeated. As shown in fig. 9, the process of the wireless terminal being handed over from the second access point AP1 to the first access point AP2 may include the following steps:
the wireless terminal is on line for the first time and is connected with the AP1 stage:
step S301: the wireless terminal firstly scans and acquires an available access point list;
step S302: the wireless terminal selects the AP1 with better network quality from the access point list, communicates with the AC through an Authentication frame, an Association frame and the like, and establishes a wireless link between the wireless terminal and the AP1 under the control of the AC;
step S303: the wireless terminal interacts with the AC through a DHCP protocol to obtain an IP address, wherein if the AC has an IP address allocation function, the IP address is allocated by the AC, if the AC does not have the IP address allocation function, the AC forwards an IP address application request to a DHCP server, the DHCP server allocates the IP address for the wireless terminal, and then the AC forwards the IP address to the wireless terminal;
meanwhile, the AC stores network information such as an IP address (namely a historical IP address) corresponding to the wireless terminal, a table entry is established, and meanwhile, after the wireless terminal is off-line, an aging timer is started to time, so that the table entry is deleted after the aging timer reaches a preset time threshold.
The table entry mainly comprises the following items:
MAC Address is the wireless terminal MAC Address;
IP Address: a wireless terminal IP address;
VLAN: VLAN where the wireless terminal is located;
meanwhile, the wireless terminal side also locally stores the applied IP address information (i.e. the historical IP address when accessing the AP2), and the method mainly includes the following steps:
IP Address: the IP address used by the wireless terminal to connect to the AP 1;
gateway: gateway information of AP 1.
Step S304: the wireless terminal is accessed to the AP1 for data communication;
after the wireless terminal moves to the vicinity of the AP2, the following steps are performed:
step S305: the wireless terminal firstly scans and acquires an available access point list;
step S306: and selecting the AP2 with better network quality from the access point list, communicating with the AC through an Authentication frame, an Association frame and the like, and establishing a wireless link between the wireless terminal and the AP2 under the control of the AC.
Meanwhile, the AC side searches for a local entry according to the MAC address of the wireless terminal, and if a corresponding historical IP address is stored, the Association Response includes a network state IE as shown in fig. 4, and refers to fig. 5, and uses the IP Cache Status Bit to identify whether the current AC has cached the historical IP address, where the Bit is 1, which indicates that the current AC stores the historical IP address corresponding to the wireless terminal, that is, the first indication information may be used to indicate that the wireless terminal accesses the first access point using the historical IP address; the Bit position is 0, which means that the current AC does not have the historical IP address corresponding to the wireless terminal, i.e. the second indication information, which may be used to indicate the wireless terminal to reapply a new IP address to access the first access point.
Step S307: after receiving the Association reply, the wireless terminal analyzes IE carried in the frame, and if the IPcache Status is 1 in the network Status IE, the wireless terminal uses the historical IP address of the local cache to access the AP2 for data communication; and if the IP Cache Status is 0, reapplying a new IP address to access the AP2 for data communication.
Through the above exemplary description, the wireless terminal can avoid the step of reacquiring the IP address in the mobile process, shorten the time consumed by access, quickly recover data communication, and greatly improve the wireless local area network access experience of the wireless terminal.
The embodiment of the present application further provides an electronic device corresponding to the access control method and the access point connection method provided in the foregoing embodiments, where the electronic device may be a gateway device such as an access controller, and the like, so as to execute the access control method; the electronic device may also be a terminal device with a wireless network connection function, such as a mobile phone, a notebook computer, a tablet computer, and the like, to execute the access point connection method.
Referring to fig. 10, a schematic diagram of an electronic device provided in some embodiments of the present application is shown. As shown in fig. 10, the electronic device 30 includes: the system comprises a processor 300, a memory 301, a bus 302 and a communication interface 303, wherein the processor 300, the communication interface 303 and the memory 301 are connected through the bus 302; the memory 301 stores a computer program that can be executed on the processor 300, and the processor 300 executes the computer program to perform the access control method or the access point connection method provided in any of the foregoing embodiments of the present application.
The Memory 301 may include a Random Access Memory (RAM) and a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 303 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
Bus 302 can be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 301 is configured to store a program, and the processor 300 executes the program after receiving an execution instruction, where the access control method or the access point connection method disclosed in any of the foregoing embodiments of the present application may be applied to the processor 300, or implemented by the processor 300.
Processor 300 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 300. The Processor 300 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 301, and the processor 300 reads the information in the memory 301 and completes the steps of the method in combination with the hardware thereof.
The electronic device provided by the embodiment of the present application, the access control method and the access point connection method provided by the embodiment of the present application are based on the same inventive concept, and have the same beneficial effects as the method adopted, operated or implemented by the electronic device.
It should be noted that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present disclosure, and the present disclosure should be construed as being covered by the claims and the specification.

Claims (12)

1. An access control method applied to an access controller is characterized by comprising the following steps:
acquiring identification information of a wireless terminal requesting to access a first access point;
inquiring a historical IP address corresponding to the wireless terminal according to the identification information, wherein the historical IP address comprises an IP address used when the wireless terminal is connected with a second access point previously;
if the historical IP address is found, first indication information is sent to the wireless terminal, wherein the first indication information is used for informing the access controller of the wireless terminal that the historical IP address applied by the wireless terminal is stored, so that the wireless terminal accesses the first access point by adopting the historical IP address.
2. The method of claim 1, wherein before querying the historical IP address corresponding to the wireless terminal, the method further comprises:
when a wireless terminal accesses a second access point, storing an IP address allocated to the wireless terminal as a historical IP address corresponding to the wireless terminal in a local cache, wherein the second access point and the first access point are both managed by the access controller.
3. The method of claim 2, further comprising:
and deleting the stored historical IP address after detecting that the wireless terminal is disconnected from the second access point and exceeds a preset time threshold.
4. The method of claim 1, wherein after querying the historical IP address corresponding to the wireless terminal, further comprising:
and if the historical IP address is not found, sending second indication information to the wireless terminal, wherein the second indication information is used for informing the access controller of the wireless terminal that the historical IP address applied by the wireless terminal is not stored so as to indicate the wireless terminal to apply for a new IP address to access the first access point.
5. An access control device applied to an access controller, comprising:
the identification information acquisition module is used for acquiring identification information of a wireless terminal requesting to access the first access point;
a historical IP address query module, configured to query, according to the identification information, a historical IP address corresponding to the wireless terminal, where the historical IP address includes an IP address used when the wireless terminal is previously connected to a second access point;
and a first indication information sending module, configured to send first indication information to the wireless terminal if the historical IP address is found, where the first indication information is used to notify the wireless terminal that the access controller already stores the historical IP address applied by the wireless terminal, so that the wireless terminal accesses the first access point using the historical IP address.
6. The apparatus of claim 5, further comprising:
and the historical IP address storage module is used for storing the IP address allocated to the wireless terminal as the historical IP address corresponding to the wireless terminal when the wireless terminal accesses a second access point, wherein the second access point and the first access point are both managed by the access controller.
7. The apparatus of claim 6, further comprising:
and the historical IP address deleting module is used for deleting the stored historical IP address after detecting that the wireless terminal is disconnected with the second access point and exceeds a preset time threshold.
8. The apparatus of claim 5, further comprising:
and a second indication information sending module, configured to send second indication information to the wireless terminal if the historical IP address is not found, where the second indication information is used to notify that the access controller of the wireless terminal does not store the historical IP address applied by the wireless terminal, so as to indicate the wireless terminal to apply for a new IP address to access the first access point.
9. An access point connection method applied to a wireless terminal, the method comprising:
sending a connection request to a first access point;
receiving response information returned by the first access point for the connection request and coming from an access controller;
and if the response information comprises first indication information, accessing the first access point by adopting a historical IP address, wherein the first indication information is used for informing the wireless terminal that the access controller stores the historical IP address applied by the wireless terminal.
10. The method of claim 9, further comprising:
and before accessing a new access point, storing the IP address allocated to the wireless terminal as a historical IP address corresponding to the wireless terminal in a local cache.
11. The method of claim 9, further comprising:
and if the response information comprises second indication information, applying for a new IP address to the access controller through the first access point, and accessing the first access point by adopting the new IP address, wherein the second indication information is used for informing the wireless terminal that the historical IP address applied by the wireless terminal is not stored in the access controller.
12. An access device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor executes the computer program to implement the method according to any of claims 1 to 4, 9 to 11.
CN201910345150.9A 2019-04-26 2019-04-26 Access control method, access point connection method, access control device, access point connection device and electronic equipment Active CN110049523B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910345150.9A CN110049523B (en) 2019-04-26 2019-04-26 Access control method, access point connection method, access control device, access point connection device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910345150.9A CN110049523B (en) 2019-04-26 2019-04-26 Access control method, access point connection method, access control device, access point connection device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110049523A CN110049523A (en) 2019-07-23
CN110049523B true CN110049523B (en) 2021-09-21

Family

ID=67279670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910345150.9A Active CN110049523B (en) 2019-04-26 2019-04-26 Access control method, access point connection method, access control device, access point connection device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110049523B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123373A (en) * 2006-10-25 2011-07-13 华为技术有限公司 User equipment for switching between different types of access systems
CN102857985A (en) * 2012-09-21 2013-01-02 东莞宇龙通信科技有限公司 Server, terminal and network switching method
CN103314615A (en) * 2011-01-10 2013-09-18 阿尔卡特朗讯公司 Method of data path switching during inter-radio access technology handover
CN104168269A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机系统有限公司 Secure connection establishing method, apparatus and system
CN104981028A (en) * 2015-03-09 2015-10-14 深圳市腾讯计算机系统有限公司 Wireless network access method and related equipment
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
CN107040966A (en) * 2016-01-28 2017-08-11 谷歌公司 The system and method for seamless mobility with the internuncial user conversation of multiple access
CN107148061A (en) * 2017-06-15 2017-09-08 重庆邮电大学 A kind of LTE based on SDN and WLAN heterogeneous networks switching system and method
CN108965036A (en) * 2018-09-21 2018-12-07 深圳市信锐网科技术有限公司 Configure across public network equipment exchanging visit method, system, server and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724172A (en) * 2011-07-28 2012-10-10 北京天地互连信息技术有限公司 System and method supporting rapid access authentication
CN102420880B (en) * 2011-12-15 2014-04-02 福建星网锐捷网络有限公司 Internet protocol (IP) address management method, system and device
US9445138B2 (en) * 2012-04-12 2016-09-13 Qualcomm Incorporated Broadcast content via over the top delivery
US9749910B2 (en) * 2013-07-19 2017-08-29 Lg Electronics Method and apparatus for transmitting user equipment group information in wireless communication system
CN104010292B (en) * 2014-06-16 2018-09-21 武汉大学 A kind of VoWLAN loaming methods based on AP auxiliary
WO2016165751A1 (en) * 2015-04-15 2016-10-20 Nokia Solutions And Networks Oy Using a wlan interworking gateway (wig) for offloading ue traffic from cellular network to wlan

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123373A (en) * 2006-10-25 2011-07-13 华为技术有限公司 User equipment for switching between different types of access systems
CN103314615A (en) * 2011-01-10 2013-09-18 阿尔卡特朗讯公司 Method of data path switching during inter-radio access technology handover
CN102857985A (en) * 2012-09-21 2013-01-02 东莞宇龙通信科技有限公司 Server, terminal and network switching method
CN104168269A (en) * 2014-07-24 2014-11-26 深圳市腾讯计算机系统有限公司 Secure connection establishing method, apparatus and system
CN104981028A (en) * 2015-03-09 2015-10-14 深圳市腾讯计算机系统有限公司 Wireless network access method and related equipment
CN107040966A (en) * 2016-01-28 2017-08-11 谷歌公司 The system and method for seamless mobility with the internuncial user conversation of multiple access
CN106878483A (en) * 2017-01-24 2017-06-20 新华三技术有限公司 A kind of IP address distribution method and device
CN107148061A (en) * 2017-06-15 2017-09-08 重庆邮电大学 A kind of LTE based on SDN and WLAN heterogeneous networks switching system and method
CN108965036A (en) * 2018-09-21 2018-12-07 深圳市信锐网科技术有限公司 Configure across public network equipment exchanging visit method, system, server and storage medium

Also Published As

Publication number Publication date
CN110049523A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
US11356919B2 (en) Handover method, mobility management network element, and communications system
US10701605B2 (en) Dedicated network handover method, dedicated network type notification method, and device
US20190208572A1 (en) Method for dynamically creating local packet data network, apparatus, and system
EP3531619B1 (en) Method, device and system for function scheduling
CN111757343B (en) Communication method and device
CN111417111A (en) Data processing method and network equipment
CN110351194B (en) Multicast group creating method and device and multicast group joining method and device
WO2017063484A1 (en) Method and apparatus for handing over terminal device to target cell, and base station
JP2021533625A (en) Capacity management method and communication equipment
JP6667662B2 (en) Route processing method and apparatus, and terminal
EP2037712A2 (en) Method, apparatus and system for obtaining MIH (Media Independent Handover) service information
CN110086839B (en) Dynamic access method and device for remote equipment
TWI638576B (en) Method for redirecting terminal equipment to private network, terminal equipment and base station
CN104426816B (en) A kind of virtual machine communication method and device
US10863555B2 (en) Access method, apparatus, device, and system
CN101026546A (en) Method for realizing packet data session
CN104427568A (en) Method and device for realizing unloading of 3GPP network flow
CN103763685A (en) Method for sending short message and short message center
CN104519551A (en) DHCP (Dynamic Host Configuration Protocol) negotiation method and client in WiFi (Wireless Fidelity) network
CN103828442A (en) WLAN access method and device
WO2019041897A1 (en) Network communication method and device
CN110049523B (en) Access control method, access point connection method, access control device, access point connection device and electronic equipment
US10575365B2 (en) PDN connection release method and apparatus, and user equipment
CN107920372B (en) Information indication method and device
CN103533612A (en) Access network switching method, access network discovery support functions (ANDSF) entity and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant