CN105744579B - Method, switching control and the access device that terminal switches between AP - Google Patents

Method, switching control and the access device that terminal switches between AP Download PDF

Info

Publication number
CN105744579B
CN105744579B CN201410764859.XA CN201410764859A CN105744579B CN 105744579 B CN105744579 B CN 105744579B CN 201410764859 A CN201410764859 A CN 201410764859A CN 105744579 B CN105744579 B CN 105744579B
Authority
CN
China
Prior art keywords
terminal
controller
address
association
information table
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
CN201410764859.XA
Other languages
Chinese (zh)
Other versions
CN105744579A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410764859.XA priority Critical patent/CN105744579B/en
Publication of CN105744579A publication Critical patent/CN105744579A/en
Application granted granted Critical
Publication of CN105744579B publication Critical patent/CN105744579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method that terminal switches between AP, switching control and access device, controller is managed collectively the IP address information of AP, and records the mark of host the AP mark and current AP of terminal association, to realize terminal in the switching of AP.When terminal roams to purpose AP by source AP, request re-associates to purpose AP, and purpose AP can indicate whether to allow the terminal association to purpose AP with request controller;When controller instruction allows the terminal association to purpose AP, purpose AP need not carry out user identity authentication to the terminal, and IP address need not be also redistributed for the terminal, and terminal can be directly linked to purpose AP and access internet.To improve the efficiency that terminal carries out AP switching, wireless communication quality is improved.

Description

Method, switching control and the access device that terminal switches between AP
Technical field
The present invention relates to field of communication technology more particularly to a kind of methods that terminal switches between AP, switching control And access device.
Background technique
WLAN (Wireless Local Area Network, abbreviation WLAN), access efficiency low with networking cost It the features such as height, flexible deployment, is widely applied.To meet public transportation vehicle, such as bus, subway etc., multiply above The online demand of visitor makes nothing using WLAN technology by affixing one's name to vehicle-mounted access point (Access Point, abbreviation AP) in vehicle upper Line network coverage vehicle provides service on net for the passenger on vehicle.
On the vehicle of the vehicle-mounted AP of above-mentioned deployment, terminal can still move, user wanted at end after accessing WLAN Hold the connection kept in moving process with WLAN.For example, after terminal accesses WLAN in bus stop, in bus driving process It still is able to access WLAN.Therefore, during terminal location changes, connection between terminal and WLAN how is kept not Interruption receives extensive attention.
At this point, if when terminal switches to another vehicle-mounted AP by a vehicle-mounted AP, it would be possible to due to purpose in handoff procedure The subscriber authentication and IP address re-allocation process of vehicle-mounted AP, leads to the terminal of terminal data business.For example, terminal A WLAN has been accessed by vehicle-mounted AP1 on bus 1, and has obtained Internet protocol (Internet Protocol, abbreviation IP) address, user can pass through the accessible internet terminal A at this time;When bus 2 is close or terminal is by bus 1 When being moved to bus 2, the vehicle-mounted AP2 offer wireless network signal quality on bus 2 is more excellent, at this point, terminal will switch Onto the vehicle-mounted AP2, vehicle-mounted AP1 is that the IP address of terminal A distribution will be cancelled before, and vehicle-mounted AP2 can re-start use to terminal A Family authentication and the process for distributing IP address, the process would potentially result in the interruption of the corresponding data service of terminal A.
It can be seen that it is poor that there are quality of wireless network, causes at present during terminal switches between different AP The problem of data traffic interruptions.
Summary of the invention
The embodiment of the present invention provides a kind of method that terminal switches between AP, switching control and access device, to It solves at present during terminal switches between different AP, it is poor that there are quality of wireless network, leads to data traffic interruptions The problem of.
Specific technical solution provided in an embodiment of the present invention is as follows:
In a first aspect, the present invention provides a kind of method that terminal switches between access point AP, comprising: controller receives purpose The user state information inquiry request that AP is sent includes the media interviews of first terminal in the user state information inquiry request Control MAC Address;The controller is obtained according to the MAC Address of the first terminal and the terminal management table of the controller The mark of source AP of the corresponding current AP mark of the first terminal as the first terminal;The terminal management table is for remembering Record terminal iidentification, the corresponding relationship of host AP mark and current AP mark;The controller notifies the source AP by the source AP Terminal association information table described in the corresponding User Status of first terminal be updated to switching state, and by the controller The corresponding current AP mark of first terminal described in terminal management table is updated to the mark of the purpose AP;Wherein, the terminal Related information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;The controller is to the mesh AP send inquiry response, include switching instruction in the inquiry response, the switching is designated as allowing to switch, and is used to indicate institute Stating purpose AP allows the first terminal to be associated with the purpose AP, and records in the terminal association information table of the purpose AP The corresponding terminal association information table of the first terminal;Wherein, in the corresponding terminal association information table of the first terminal, Terminal iidentification is the MAC Address of the first terminal, and user type is roaming service customer.
In the first possible implementation of the first aspect, the use that the purpose AP is sent is received in the controller Before the request of family state information searching, further comprise: controller receives the synchronizing information that the source AP is sent;Wherein, described It include the corresponding terminal association information table of first terminal in synchronizing information;Controller is according to the mark of the source AP and described same Information is walked, increases the corresponding terminal management list item of the first terminal in the terminal management table of the controller, described first In the corresponding terminal management list item of terminal, terminal iidentification is the MAC Address of the first terminal, and host AP is identified as the source AP Mark, current AP is identified as the mark of the source AP.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, the terminal management table entry deletion that the controller receives the purpose AP is requested, in the terminal management table entry deletion request MAC Address including the first terminal;According to the terminal management table of the MAC Address of the first terminal and the controller, The controller obtains the corresponding current AP mark of MAC Address of the first terminal;If the current AP mark and the mesh AP mark it is identical, then the controller obtains the place in the corresponding terminal management list item of MAC Address of the first terminal Main AP mark, notifies the host AP to identify the terminal that corresponding AP deletes the MAC Address that terminal iidentification is the first terminal Related information table, and discharge the Internet protocol IP address for distributing to the first terminal;The controller is from terminal management table Delete the terminal management list item for the MAC Address that terminal iidentification is the first terminal.
Second aspect, the present invention provide a kind of method that terminal switches between access point AP, comprising: source AP receives controller The switching notice of transmission includes the MAC address of first terminal in the switching notice;The source AP is according to institute Switching notice is stated, the corresponding terminal association information table of first terminal described in the terminal association information table of the source AP is obtained , the User Status in the corresponding terminal association information table of the first terminal is updated to switching state;Wherein, described Terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status.
In the first possible implementation of the second aspect, source AP receive controller send switching notice it Before, further comprise: the source AP receives the association request that the first terminal is sent, and asks in the association request comprising association Seek type;Headed by the source AP determines the association request type when secondary association, user identity is carried out to the first terminal Certification;After the user identity authentication passes through, the source AP receives the dynamic host configuration association that the first terminal is sent DHCP request is discussed, the DHCP request includes the MAC Address of the first terminal;Internet protocol of the source AP from the source AP In IP address pond, selected the first IP address in unallocated state distributes to the first terminal, and by the first IP The address state of location is set as the state of having distributed;And in the terminal association information table of the source AP, described first is recorded eventually Hold corresponding terminal association information table, terminal iidentification is described the in the corresponding terminal association information table of the first terminal The MAC Address of one terminal, user type are original user, and User Status is non-switching state.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, the source AP is that the first terminal distributes after the first IP address, and the source AP is according to the first terminal corresponding end Related information list item is held, synchronizing information is generated;The synchronizing information is sent to the controller by the source AP, notifies the control Device processed is according to the mark of the first terminal corresponding terminal association information table and the source AP, end in the controller The corresponding terminal management list item of the first terminal is recorded in end pipe reason table;Wherein, the terminal management table is for recording terminal Mark, the corresponding relationship of host AP mark and current AP mark;In the corresponding terminal management list item of the first terminal, terminal mark Know the MAC Address for the first terminal, host AP is identified as the mark of the source AP, and current AP is identified as the mark of the source AP Know.
In conjunction with second of possible implementation of second aspect, in the third possible implementation of second aspect In, after the corresponding terminal association information of the first terminal is sent to the controller by the source AP, the source AP is received The offline notice of terminal that the controller is sent;Wherein, including the MAC of the first terminal in the offline notice of the terminal Location;The source AP deletes the terminal association for the MAC Address that terminal iidentification in the terminal association information table is the first terminal Information table, and discharge first IP address for distributing to the first terminal.
In conjunction with second aspect the first any one of to the third possible implementation, the 4th of second aspect the In the possible implementation of kind, before the association request that the source AP receives that first terminal is sent, described in the source AP reception Controller is the IP address information of source AP distribution;Alternatively, being pre-configured with the IP address information of the source AP;The IP address Information includes the IP address pond of the source AP, subnet mask and gateway address.
The third aspect, the present invention provide a kind of method that terminal switches between access point AP, comprising: purpose AP receives first The association request that terminal is sent includes association request type in the association request;When the purpose AP determines that the association is asked When to seek type be re-association, generate user state information inquiry request and be sent to controller, the user state information inquiry is asked Media in asking including the first terminal visit control MAC Address, so that the controller determines whether that described first is whole End switches to the purpose AP;The purpose AP receives the inquiry response that the controller is sent, and includes in the inquiry response Switching instruction;If the switching is designated as allowing to switch, the purpose AP allows the first terminal to switch to the purpose AP, And the corresponding terminal association information table of the first terminal is recorded in the terminal association information table of the purpose AP;Wherein, The terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;Described first eventually It holds in corresponding terminal association information table, terminal iidentification is the MAC Address of the first terminal, and the user type is roaming User.
In the first possible implementation of the third aspect, the purpose AP allows the first terminal by the source AP is switched to after the purpose AP, further comprises: when the purpose AP detects that the first terminal is not in connection shape When state, the request of terminal management table entry deletion is generated, includes the MAC of the first terminal in the terminal management table entry deletion request Address;And the terminal management table entry deletion request is sent to the controller, notify the controller to delete described first eventually Hold corresponding terminal management list item;The purpose AP deletes the first terminal from the terminal association information table of the purpose AP Corresponding terminal association information table.
Fourth aspect, the present invention provide a kind of switching control, comprising: receiving unit is sent for receiving purpose AP User state information inquiry request, include the media access control of first terminal in the user state information inquiry request MAC Address;Acquiring unit obtains the first terminal pair for the MAC Address and terminal management table according to the first terminal Mark of the current AP mark answered as the source AP of the first terminal;The terminal management table is for recording terminal iidentification, place The corresponding relationship of main AP mark and current AP mark;Notification unit, for notifying the source AP by the terminal association of the source AP The corresponding User Status of first terminal described in information table is updated to switching state;Updating unit is used for terminal management table Described in the corresponding current AP mark of first terminal be updated to the mark of the purpose AP;Wherein, the terminal association information table For recording terminal iidentification, user type, the corresponding relationship between User Status;Transmission unit, for being sent out to the purpose AP Inquiry response is sent, includes switching instruction in the inquiry response, the switching is designated as allowing to switch, and is used to indicate the purpose AP allows the first terminal to be associated with the purpose AP, and records in the terminal association information table of the purpose AP described the The corresponding terminal association information table of one terminal;Wherein, in the corresponding terminal association information table of the first terminal, terminal mark Know the MAC Address for the first terminal, user type is roaming service customer.
In the first possible implementation of the fourth aspect, the switching control further includes terminal management information Adding unit is used for: before receiving the user state information inquiry request that the purpose AP is sent, being received the source AP and is sent Synchronizing information;It wherein, include the corresponding terminal association information table of first terminal in the synchronizing information;According to the source AP Mark and the synchronizing information, increase the corresponding terminal management list item of the first terminal, institute in the terminal management table It states in the corresponding terminal management list item of first terminal, terminal iidentification is the MAC Address of the first terminal, and host AP is identified as institute The mark of source AP is stated, current AP is identified as the mark of the source AP.
In conjunction with the first possible implementation of fourth aspect, in second of possible implementation of fourth aspect In, the switching control further includes terminal management information deletion unit, is used for: receiving the terminal management table of the purpose AP Entry deletion is requested, and includes the MAC Address of the first terminal in the terminal management table entry deletion request;Eventually according to described first The MAC Address at end and the terminal management table obtain the corresponding current AP mark of MAC Address of the first terminal;If described Current AP mark is identical as the mark of the purpose AP, then obtains the corresponding terminal management table of MAC Address of the first terminal Host AP mark in notifies the host AP with identifying the MAC that corresponding AP deletion terminal iidentification is the first terminal The terminal association information table of location, and discharge the Internet protocol IP address for distributing to the first terminal;It is deleted from terminal management table Except the terminal management list item for the MAC Address that terminal iidentification is the first terminal.
5th aspect, provides a kind of access device, comprising: receiving unit, for receiving the switching notice of controller transmission, It include the MAC address of first terminal in the switching notice;Acquiring unit, for logical according to the switching Know, obtains the corresponding terminal association information table of first terminal described in the terminal association information table of the access device;Its In, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;It updates single Member, the User Status in the corresponding terminal association information table of first terminal for getting the acquiring unit are updated to Switching state.
In the first possible implementation of the 5th aspect, the access device further includes processing unit, is used for: Before receiving the switching notice that controller is sent, the association request that the first terminal is sent is received, is wrapped in the association request Type containing association request;Headed by determining the association request type when secondary association, user identity is carried out to the first terminal Certification;After the user identity authentication passes through, receives the dynamic host configuration protocol DHCP that the first terminal is sent and ask It asks, the DHCP request includes the MAC Address of the first terminal;From the Internet protocol IP address pond of the access device, Selected the first IP address in unallocated state distributes to the first terminal, and by the address state of first IP address It is set as the state of having distributed;And in the terminal association information table of the access device, it is corresponding to record the first terminal Terminal association information table, terminal iidentification is the first terminal in the corresponding terminal association information table of the first terminal MAC Address, user type are original user, and User Status is non-switching state.
In conjunction with the first possible implementation of the 5th aspect, in second of possible implementation of the 5th aspect In, the access device further includes transmission unit, is used for: after distributing the first IP address for the first terminal, according to described The corresponding terminal association information table of first terminal generates synchronizing information;The synchronizing information is sent to the controller, is led to The controller is known according to the mark of the first terminal corresponding terminal association information table and the access device, described The corresponding terminal management list item of the first terminal is recorded in terminal management table in controller;Wherein, the terminal management table For recording terminal iidentification, the corresponding relationship of host AP mark and current AP mark;The corresponding terminal management of the first terminal In list item, terminal iidentification is the MAC Address of the first terminal, and host AP is identified as the mark of the access device, current AP It is identified as the mark of the access device.
In conjunction with second of possible implementation of the 5th aspect, in the third possible implementation of the 5th aspect In, the access device further includes the offline processing unit of terminal, is used for: by the corresponding terminal association information table of the first terminal Item is sent to after the controller, receives the offline notice of terminal that the controller is sent;Wherein, the offline notice of the terminal In include the first terminal MAC Address;Deleting terminal iidentification in the terminal association information table is the first terminal The terminal association information table of MAC Address, and discharge first IP address for distributing to the first terminal.
In conjunction with the 5th aspect the first any one of to the third possible implementation, at the 4th kind of the 5th aspect In possible implementation, the access device further includes IP address information acquiring unit, is used for: being sent receiving first terminal Association request before, receive the controller be the access device distribution IP address information;Alternatively, being pre-configured with described The IP address information of access device;The IP address information includes the IP address pond of access device, subnet mask and gateway address.
6th aspect, the present invention provide a kind of access device, comprising: receiving unit, for receiving first terminal transmission Association request includes association request type in the association request;Transmission unit, for being when the judgement association request type When re-association, generates user state information inquiry request and be sent to controller, include in the user state information inquiry request The MAC address of the first terminal, so that the controller determines whether the first terminal switching To the access device;The receiving unit, is also used to receive the inquiry response that the controller is sent, in the inquiry response It is indicated including switching;Switch unit, for allowing the first terminal to switch to institute when the switching is designated as allowing to switch Access device is stated, and records the corresponding terminal association letter of the first terminal in the terminal association information table of the access device Cease list item;Wherein, the terminal association information table is for recording terminal iidentification, user type, and corresponding between User Status is closed System;In the corresponding terminal association information of the first terminal, terminal iidentification is the MAC Address of the first terminal, the user Type is roaming service customer.
In the first possible implementation of the 6th aspect, the access device further includes that the offline processing of terminal is single Member is used for: when detecting that the first terminal is not in connection status, generating the request of terminal management table entry deletion, the end End pipe manages the MAC Address in list item removal request including the first terminal;And the terminal management is sent to the controller List item removal request notifies the controller to delete the corresponding terminal management list item of the first terminal;From the access device Terminal association information table in delete the corresponding terminal association information table of the first terminal.
In the embodiment of the present invention, be managed collectively the IP address information of AP, including IP address pond by controller, gateway address and Subnet mask, and the mark of host the AP mark and current AP of terminal association is recorded, to realize terminal in the switching of AP.Terminal is first The AP of secondary association is host AP, and host AP authenticates the terminal and is the terminal distribution IP address.If terminal is cut by source AP Purpose AP is shifted to, request re-associates to purpose AP, and purpose AP can indicate whether to allow the terminal association to mesh with request controller AP;When controller preserves the mark of the first terminal, when instruction allows the terminal association to purpose AP, purpose AP is without right The terminal carries out user identity authentication, also need not redistribute IP address for the terminal, terminal can be visited directly by purpose AP Ask internet.Using technical solution of the present invention, by increasing controller in AP framework, needs to carry out AP by controller inquiry and cut Whether the terminal iidentification for the terminal changed is stored in the controller, if being stored in the controller, allow terminal between the aps into Row switching, and internet is directly accessed by purpose AP, without the process that user identity authentication and IP address reassign, thus The efficiency that terminal carries out AP switching is improved, the interruption of data service is effectively prevented, improves wireless communication quality.
Detailed description of the invention
Fig. 1 is WLAN configuration diagram in the embodiment of the present invention;
Fig. 2 is the flow chart one that terminal switches between AP in the embodiment of the present invention;
Fig. 3 is the flowchart 2 that terminal switches between AP in the embodiment of the present invention;
Fig. 4 is the flow chart 3 that terminal switches between AP in the embodiment of the present invention;
Fig. 5 is that the corresponding User Status of terminal switches schematic diagram in the embodiment of the present invention;
Fig. 6 is switching control structural schematic diagram in the embodiment of the present invention;
Fig. 7 is access device structural schematic diagram one in the embodiment of the present invention;
Fig. 8 is access device structural schematic diagram two in the embodiment of the present invention;
Fig. 9 is controller architecture schematic diagram in the embodiment of the present invention;
Figure 10 is AP structural schematic diagram one in the embodiment of the present invention;
Figure 11 is AP structural schematic diagram two in the embodiment of the present invention.
Specific embodiment
In the embodiment of the present invention, be managed collectively the IP address information of AP, including IP address pond by controller, gateway address and Subnet mask, and the mark of host the AP mark and current AP of terminal association is recorded, to realize switching of the terminal between AP.Terminal Associated AP is host AP for the first time, and host AP authenticates the terminal and is the terminal distribution IP address.If terminal is by source AP Purpose AP is roamed to, request re-associates to purpose AP, and purpose AP can indicate whether that the terminal association is allowed to arrive with request controller Purpose AP;When controller preserves the mark of the terminal, when instruction allows the terminal association to purpose AP, purpose AP is without to this Terminal carries out user identity authentication, and IP address need not be also redistributed for the terminal, and terminal can be directly linked to purpose AP visit Ask internet.In technical solution of the present invention, when switching between different AP due to terminal, IP address is remained unchanged, and solves terminal During being switched between different AP, the problem of not can guarantee data service or even cause service disconnection.To improve Terminal carries out the efficiency of AP switching, effectively prevents the interruption of data service, improves wireless communication quality.
As shown in fig.1, including a controller for WLAN configuration diagram in the embodiment of the present invention, in the WLAN and more A AP;Wherein, controller for managing the corresponding IP address pond each AP, and records the host that each terminal is accessed AP mark and current AP mark, in the specific implementation, the controller can be AC;The terminal of secondary association carries out user identity headed by AP Verifying, distributes IP address, and headed by secondary association or the terminal of re-association addressable local resource or internet are provided Resource.
In the embodiment of the present invention, for the process that terminal switches between AP, any AP can be relative to different terminals Source AP, or purpose AP.For example, terminal 1 is associated with the first AP for the first time, in terminal 1 from first in scene shown in Fig. 1 During AP is switched to the 2nd AP, for terminal 1, the first AP is source AP, and the 2nd AP is purpose AP;And terminal 4 is closed for the first time Join the 2nd AP, during terminal 4 is switched to an AP from the 2nd AP, for terminal 4, the 2nd AP is source AP, the first AP It is purpose AP.
Below with reference to scene shown in FIG. 1, using first terminal as terminal 1 as an example, introducing technical solution of the present invention, packet Include: first terminal is associated with the first AP for the first time, i.e. when the first AP is the host AP of first terminal, controller and the first AP's is processed Journey;And later first terminal is switched to the 2nd AP from the first AP, the first AP is source AP, and the 2nd AP is purpose AP When, the treatment process of controller, source AP (the first AP) and purpose AP (the 2nd AP).
As shown in fig.2, be a kind of method flow diagram that terminal switches between access point AP provided in an embodiment of the present invention, It is executed by controller, which comprises
Step 200: controller receives the user state information inquiry request that purpose AP is sent, and the user state information is looked into Ask address media access control (Medium Access Control, abbreviation MAC) in request including first terminal.
Step 210: the controller is obtained according to the MAC Address of first terminal and the terminal management table of the controller The corresponding current AP of first terminal identifies the mark as source AP.
Step 220: the controller notifies the source AP by first terminal pair in the terminal association information table of the source AP The User Status answered is updated to switching state, and the corresponding current AP of first terminal in the terminal management table of controller is identified It is updated to the mark of the purpose AP.
Step 230: the controller sends inquiry response to the purpose AP, includes switching instruction in the inquiry response, The switching is designated as allowing to switch, and being used to indicate the purpose AP allows first terminal to be associated with the purpose AP, and in institute It states and records the corresponding terminal association information table of first terminal in the terminal association information table of AP.
Specifically, for the scene of the first AP roaming switch to the 2nd AP, source AP is the terminal 1 shown in above-mentioned Fig. 1 First AP, purpose AP are the 2nd AP.
Before step 200, the first AP and the 2nd AP establish connection with controller after electrifying startup, specifically Are as follows: the first AP sends the first request for building link to controller, and controller establishes the first AP according to first request for building link The first link between controller, the 2nd AP send the second request for building link to controller, and controller is according to second chain The second link that request is established between the 2nd AP and controller is established on road.
Optionally, if controller is AC, above-mentioned first link and the second link can be controlled and be configured for wireless access point The tunnel (Control And Provisioning of Wireless Access Points, abbreviation CAPWAP).
After controller establishes corresponding link with the first AP and the 2nd AP respectively, controller is respectively each AP configuration IP address information, and safeguard the corresponding relationship of AP mark and IP address information;Wherein, AP mark includes Electronic Serial Number (Electronic Serial Number, abbreviation ESN) code, MAC Address etc.;IP address information includes that IP address pond (can also be with Be IP address section, be illustrated by taking IP address pond as an example in the embodiment of the present invention), gateway address and subnet mask.
Alternatively, the IP address information on each AP can also be pre-configured with, controller only maintains AP mark to be believed with IP address The corresponding relationship of breath.
The IP address Chi Buchong of each AP of the IP address pond difference namely controller administration of each AP of controller administration It is folded, and the gateway address of all AP of controller administration and subnet mask are all the same.For example, the IP address pond of the first AP is 192.168.1.2 the IP address pond of~192.168.1.128, the 2nd AP are 192.168.1.130~192.168.1.255;Control The gateway address of device processed is 192.168.1.1, subnet mask 255.255.0.0, then the first AP and the under controller administration The gateway address of two AP is 192.168.1.1, and subnet mask is 255.255.0.0.
Each AP saves the IP address information that controller is itself configuration, even if the connection between AP and controller is to interrupt When state, AP also can be terminal distribution IP address, gateway address and subnet mask.
By adopting the above technical scheme, identical gateway address and son are configured for each AP under the administration of the same controller Net mask is managed the IP address information of AP, the IP address information of the terminal and terminal that access the AP convenient for controller, Service disconnection caused when IP address can be carried out redistributing to avoid terminal in AP handoff procedure.
AP can save the address state of each IP address in its IP address pond, and address state is worked as identifying IP address It is preceding whether to distribute to user terminal, may include distributed with it is unallocated, distributed indicate IP address be already allocated to user end End uses, and unallocated status indicator IP address is not yet assigned to the use of any one user terminal.Optionally, AP can also save net Address and subnet mask are closed, then AP needs to distinguish the IP address in IP address pond, gateway address and subnet mask;It can pass through ground Location type is distinguished, and address style may include three gateway address, subnet mask and station address types;Wherein, IP address The address style of IP address in pond is station address.For example, AP saves address information table as shown in Table 1, with recording IP The corresponding relationship of location and address state.
Table 1
IP address Address style Address state
192.168.1.1 Gateway address NA
255.255.0.0 Subnet mask NA
192.168.1.2 Station address It has distributed
192.168.1.3 Station address It has distributed
…… …… ……
192.168.1.128 Station address It is unallocated
First AP receives the association request that first terminal is sent, wherein includes association request type in the association request.Such as Headed by association request type in the fruit association request when secondary association, the first AP carries out user identity authentication to the first terminal; After user identity authentication passes through, the first AP receives the dynamic host configuration protocol (Dynamic that above-mentioned first terminal is sent Host Configuration Protocol, abbreviation DHCP) request, wherein it is identified in the DHCP request comprising first terminal, The first terminal is identified as the MAC Address of first terminal;It is not that first AP selectes address state from the IP address pond of the first AP First IP address of distribution state generates dhcp response and is sent to first terminal, includes the first IP in the dhcp response Address;And the address state of first IP address is updated to the state of having distributed by the first AP;Terminal of first AP in the first AP The corresponding terminal association information table of first terminal is added in related information table;And by the corresponding terminal association information of first terminal List item is synchronized to controller.
Above-mentioned association for the first time refers to that first terminal is not associated with controller administration before request is associated with the first AP Under an any other AP.Each AP under AC administration is all made of above method realization to user's body of associated terminal for the first time Part certification and address distribution, details are not described herein again.
Terminal association information table is used to record the corresponding relationship of terminal iidentification, User Status and user type.Wherein, this It include the mark of first terminal, the User Status of first terminal, first terminal in the corresponding terminal association information table of one terminal User type.The mark of the first terminal includes the MAC Address of first terminal, can also include the IP address of first terminal, I.e. above-mentioned first IP address.Optionally, above-mentioned terminal association information table can also include synchronous regime.
User type indicates that first terminal is to be associated with for the first time to the terminal of the first AP, or switch to the first AP by other AP On terminal, if secondary association is to the first AP headed by first terminal, the corresponding user type of first terminal is original user, if One terminal is to be switched on the first AP by other AP, then the corresponding user type of first terminal is roaming service customer.
User Status is for characterizing whether first terminal occurs AP switching, when the corresponding user type of first terminal is original When user, the corresponding User Status of first terminal includes two types, does not switch respectively and has switched, wherein if first is whole AP switching does not occur for end, then User Status if first terminal has occurred and that AP switches, i.e., is roamed labeled as not switching by the first AP To the 2nd AP, then User Status is labeled as having switched.Further, above-mentioned user type can also include third seed type, i.e., For Restzustand, which AP switching, but first AP and control when first terminal is offline do not occur for first terminal The case where disconnecting (i.e. link is obstructed) between device, at this point it is possible to by user type labeled as residual.In addition, when first When the user type of terminal is roaming service customer, due to having determined that AP switching has occurred in first terminal, User Status can be with It labeled as having switched, can also be not repeated to be identified as to have switched, directly be identified as NA (sky).
Synchronous regime is for characterizing the corresponding terminal association information table of first terminal saved in the first AP, with controller Whether the corresponding terminal management list item of the first terminal of middle preservation synchronizes, comprising having synchronized and not synchronous two states.Wherein, The corresponding terminal association information table of first terminal of the first AP of synchronization representation end corresponding with the first terminal of controller End pipe manages list item and keeps synchronizing;The corresponding terminal association information table of first terminal of non-the first AP of synchronization representation not with controller The corresponding terminal management list item of first terminal keep synchronizing.If first terminal carries out AP switching, the first AP and controller Between connection be in interrupt status, alternatively, controller is not when the connection between the 2nd AP and controller is in interrupt status First terminal is allowed to carry out AP switching.Therefore, if controller allows first terminal to carry out AP switching, show that the first AP's is upper It is synchronous to state the corresponding terminal association information table of first terminal terminal management list item corresponding with the first terminal of controller, Therefore, in the embodiment of the present invention, when the corresponding User Status of first terminal is switching state, and user type is original user When, synchronous regime can be not concerned with.Further, if the corresponding User Status of first terminal is Restzustand, show first Terminal is offline, at this point, the first AP can be not concerned with synchronous regime, can set NA for synchronous regime.
For example, AP saves terminal association information table shown in table 2, for recording terminal iidentification, user type, User Status Corresponding relationship between synchronous regime.
Table 2
IP address of terminal Terminal MAC address User type User Status Synchronous regime
192.168.1.2 A-A-A Original user Do not switch It does not synchronize
192.168.1.3 B-B-B Original user Do not switch It has synchronized
192.168.1.4 C-C-C Original user Switch NA
192.168.1.5 E-E-E Original user Residual NA
192.168.2.200 D-D-D Roaming service customer NA NA
From the above, when first terminal is associated with for the first time to an AP, controller receives the synchronizing information that the first AP is sent, It include the corresponding terminal association information table of first terminal in the synchronizing information;According to the corresponding terminal association information of first terminal The mark of list item and the first AP records the corresponding terminal management list item of first terminal in the terminal management table of controller.Eventually End pipe reason table is used to record the corresponding relationship of terminal iidentification, host AP mark, current AP mark;Wherein, host AP mark indicates The mark of terminal associated AP for the first time, current AP mark indicate the mark of the current associated AP of terminal.If host AP mark and Current AP mark is identical, shows that AP switching does not occur and shows terminal if host AP mark is different with current AP mark for terminal AP switching occurs.In the corresponding terminal management list item of the first terminal, terminal iidentification includes the MAC Address of first terminal, place Main AP is identified as the mark of the first AP, and current AP mark is also the mark of the first AP.Above-mentioned terminal management table can also include eventually The IP address at end, the link identification of host AP, the MAC Address of host AP, the ESN code of host AP, current AP link identification, when The information such as ESN code of the MAC Address of preceding AP, current AP.For example, controller saves terminal management table as shown in table 3.
Table 3
Continue from the above, when first terminal is associated with for the first time to an AP, first terminal sends DHCP request to described First AP receives and parses through the dhcp response of the first AP transmission, obtains the first IP address and first for including in the dhcp response The MAC Address of AP, and save to first terminal local;Optionally, first terminal can be by the MAC of the first IP address and the first AP Address is saved into the address resolution protocol of first terminal (Address Resolution Protocol, abbreviation ARP) table.
Further, when first terminal is associated with an AP for the first time, if during the connection between the first AP and controller is The IP address information of preservation also can be used in disconnected state, the first AP, distributes IP address for first terminal, and save in the first AP The corresponding terminal association information table of above-mentioned first terminal;After the connection between the first AP and controller restores normal, The corresponding terminal association information table of first terminal is synchronized to controller again by the first AP.In this way, when first terminal is associated with for the first time When one AP, the connection between instant first AP and controller is interrupt status, and first terminal still is able to be associated with to the first AP, And access the resource on the first AP.When the connection between the first AP and controller is in interrupt status, if first terminal by First AP is offline, and authentication will be re-started to the first AP, the first AP and be divided to first terminal by being associated with for the first time again later With IP address, such as the second IP address, and the corresponding terminal association information table of first terminal is saved again.When the first AP and control After connection between device processed restores normal, the IP address in the corresponding terminal management list item of first terminal that controller saves is still So the first IP address for the first terminal last time before offline, the then corresponding terminal management of the first terminal saved in controller The corresponding terminal association information table of the first terminal currently saved in list item and the first AP is inconsistent.At this point, controller is by root The corresponding terminal association information table of first terminal reported according to the first AP updates the corresponding terminal of first terminal in controller Manage list item.By adopting the above technical scheme, for terminal for the first time associated AP when, connection between AP and controller, which is in, interrupts shape The abnormal conditions of state propose solution, and the relevant information for the terminal that can effectively avoid controller and AP from saving is inconsistent to ask Topic, ensure that the accuracy of the terminal management table saved in controller.
In the embodiment of the present invention, when first terminal is in moving process, the wireless network signal quality of the first AP is detected Parameter is lower than the first predetermined threshold value, and when the wireless network signal mass parameter of the 2nd AP is higher than the second predetermined threshold value, and the One terminal initiates association request to the 2nd AP, includes association request type in the association request;If association request type is series of fortified passes Connection indicates that first terminal request re-associates to the 2nd AP.It wherein, include a specific fields in association request, for characterizing Association request type.The specific fields are characterized terminal request and are associated with for the first time to an AP, gone back by different values in association request It is to be associated with to other AP, currently requested association to the AP.For example, this is specific when first terminal is associated with for the first time to an AP Field is 0000, for indicating secondary association headed by association request type;It, should when the first terminal requests association to two AP again Specific fields are 0010, for indicating that association request type is re-association.AP can be by being somebody's turn to do in the association request of terminal transmission The value of specific fields determines headed by terminal that secondary association is coupled to the AP to the AP or series of fortified passes.
When the 2nd AP receive first terminal transmission association request, determine the association request type be re-association after, root According to the MAC Address of first terminal, generates user state information inquiry request and be sent to controller, request controller indicates whether to permit Perhaps the described first terminal is associated with to the 2nd AP.
In step 210, the first terminal in user state information inquiry request that controller is sent according to the 2nd AP MAC Address is inquired in the terminal management table of controller and whether preserves the MAC Address of first terminal, when determination preserves first When the MAC Address of terminal, controller obtains the corresponding current AP mark of MAC Address of the first terminal.In a step 220, it obtains When current AP being taken to identify the mark as corresponding first AP of first terminal, controller notifies the first AP to update the first AP's The corresponding terminal association information table of first terminal in terminal association information table, and it is corresponding to update first terminal in terminal management table Terminal management list item.
Specifically, controller notifies the first AP to update the corresponding terminal association information of first terminal in terminal association information table List item, comprising: when controller determines that AP switching occurs for first terminal, notify the first AP by terminal association information table, first The corresponding User Status of terminal is revised as switching state;And the corresponding synchronous regime of first terminal is revised as NA;Also, the The address state of one AP the first IP address not corresponding to first terminal is modified, to guarantee the first AP not by above-mentioned first eventually The problem of holding corresponding first IP address to distribute to other terminals, avoid IP address conflict.
Specifically, for first terminal, there is a situation where AP to switch, and controller updates first terminal pair in terminal management table The process for the terminal management list item answered includes: the MAC Address that controller searches above-mentioned first terminal in terminal association information table; It is after controller finds the MAC Address of first terminal in terminal management table, the MAC Address of first terminal is corresponding current AP identifies the mark for being revised as the 2nd AP.In addition, when the MAC Address for preserving first terminal in terminal management table is corresponding current When the link identification of AP, it is also necessary to which the link identification of the corresponding current AP of the MAC Address of first terminal is updated to the second link. For example, IP address is that the corresponding host AP of first terminal of 192.168.1.3 is identified as the mark of the first AP refering to shown in table 3, When first terminal judgement meets switching condition, first terminal request switches to the 2nd AP by the first AP, and controller is according to the The user state information inquiry request that two AP are sent, the MAC Address of the first terminal in the terminal management table of controller is corresponding Current AP mark be updated to the mark of the 2nd AP, and the link identification of current AP is updated to the second link.
Further, when first terminal request re-associates to two AP, if the connection between the first AP and controller The switching in inquiry response received for interrupt status, the 2nd AP is designated as not allowing to switch, at this point, the 2nd AP will refuse One terminal association to the 2nd AP.It using the technical solution, can be avoided under the abnormal conditions, terminal occur when AP switching The problem of mistake.
In step 230, when controller determines that AP switching occurs for first terminal, inquiry response is sent to the 2nd AP, it should Comprising switching instruction in inquiry response, which is designated as allowing to switch, and being used to indicate the 2nd AP allows first terminal to be associated with 2nd AP;2nd AP adds the corresponding terminal association information table of first terminal in the terminal association information table of the 2nd AP;Example Such as, refering to shown in table 2, corresponding first IP address of first terminal is added in IP address of terminal, is added in terminal MAC address The MAC Address of first terminal, sets roaming service customer for user type, sets NA for User Status, synchronous regime is arranged For NA.
Further, after the 2nd AP allows first terminal to be associated with the 2nd AP, the 2nd AP sends ARP to first terminal Message;First terminal parses the ARP message, obtains the MAC Address for the 2nd AP for including in ARP message, will protect in first terminal The MAC Address of the first AP deposited is updated to the MAC Address of the 2nd AP;Optionally, when preserving ARP table in first terminal, the One terminal updates above-mentioned ARP table according to the MAC Address of the 2nd AP, to guarantee the accuracy of ARP table saved in first terminal.
Optionally, identical MAC Address can be set in all AP under controller administration, at this point, when first terminal is by controlling When the first AP under device administration processed switches to two AP, ARP table need not be updated, to save system signaling interaction and terminal Workload.
By adopting the above technical scheme, when terminal carries out AP switching, it is only necessary to detect whether the terminal accesses by controller Any one AP in addition to purpose AP under controller administration;When controller determines that the terminal accesses under controller administration When any one AP in addition to purpose AP, it is terminal without purpose AP that terminal, which directly uses the IP address of any one AP distribution, IP address is redistributed, user identity authentication also is carried out to terminal again without purpose AP, AP is carried out so as to shorten terminal and cuts The time changed avoids the interruption of the data service in AP handoff procedure.
Further, when first terminal request re-associates to two AP, if the junction between the 2nd AP and controller In interrupt status, at this point, the 2nd AP, which will refuse first terminal, carries out AP re-association, i.e. first terminal can not carry out AP and switch Journey.It using the technical solution, effectively avoids under the abnormal conditions, terminal carries out occurring the situation of mistake when AP switching.
Further, when first terminal request re-associates to two AP, controller detects that first terminal does not access this When the lower any one AP of controller administration, that is, generates and be designated as that the inquiry response of switching is not allowed to be sent to second comprising switching AP does not allow first terminal to re-associate to the 2nd AP.
In the embodiment of the present invention, when first terminal does not carry out AP switching, the first AP passes through the heart between first terminal Jump message judges whether first terminal is offline, when first terminal switches to two AP, the first AP no longer detects first eventually Whether end is offline, judges whether first terminal is offline by the heartbeat message between first terminal by the 2nd AP. When it is that first terminal is not in connection status that first terminal is offline, the first AP, the 2nd AP and controller are for first terminal Offline behavior, treatment process are respectively as follows:
If AP switching does not occur for first terminal, and the connection between the first AP and controller is normal, then the first AP is based on the The MAC Address of one terminal generates the request of terminal management table entry deletion and is sent to controller, and deletes the terminal association letter of the first AP Cease the corresponding terminal association information table of first terminal in table;Controller receives the terminal management table entry deletion that the first AP is sent and asks It asks, and the MAC of the first terminal carried in terminal management table entry deletion request is searched in the terminal management table of controller Location, and delete the corresponding terminal management list item of first terminal in terminal management table.Since in these cases, first terminal is simultaneously AP switching does not occur, therefore, is not related to update of the 2nd AP to terminal association information table.
Further, when first terminal is offline, if the connection between the first AP and controller is in interrupt status, the One AP directly deletes the corresponding terminal association information table of first terminal in the terminal association information table of the first AP, and is released to First IP address of one terminal distribution, i.e., set unallocated state for the address state of the first IP address.In this case, by AP switching does not occur in first terminal, when first terminal is offline, the first IP address is reassigned to other and closed for the first time by the first AP The terminal of connection not will cause IP address conflict problem, therefore, by adopting the above technical scheme, still be able to guarantee each in WLAN framework The normal data traffic of a terminal.
Alternatively, when first terminal is offline, if the connection between the first AP and controller is in interrupt status, when first It, will in the terminal association information table of the first AP when AP determines that the corresponding terminal management list item of first terminal has reported to controller The corresponding User Status of first terminal is set as Restzustand, and keeping the address state of the first IP address is to have distributed state, For example, being directed to above-mentioned Tables 1 and 2, if first terminal is offline, the corresponding terminal association letter of first terminal is not deleted in table 2 Cease list item, and the address state of the corresponding IP address of first terminal remained into the state of distribution in table 1, in the first AP and When connection between controller reverts to normal condition by interrupt status, one AP, that is, notification controller is deleted in terminal management table The corresponding terminal management list item of first terminal, is always ensured that the synchronism of terminal related information in the first AP and controller;When When one AP determines that the corresponding terminal management list item of first terminal does not report to controller, the terminal association of directly the first AP of deletion is believed The corresponding terminal association information table of first terminal in table is ceased, and discharges the first IP address of distribution to first terminal, i.e., by the The address state of one IP address is set as unallocated state, this kind of situation corresponds to first terminal when being associated with an AP for the first time, The connection of first AP and controller is in interrupt status, and when first terminal is offline, the connection of the first AP and controller is still located In the interrupt status the case where, when being associated with an AP for the first time due to first terminal, i.e., not by the corresponding terminal of above-mentioned first terminal Related information list item is sent to controller, does not preserve the corresponding terminal management list item of first terminal in controller, therefore, When first terminal is offline, the first AP directly deletes the corresponding terminal of above-mentioned first terminal in the terminal association information table of the first AP Related information list item, without reporting to controller.
If AP switching has occurred for first terminal, and the connection between the 2nd AP and controller is normal, then when the 2nd AP is detected When being not in connection status to first terminal, the 2nd AP sends terminal management table to controller according to the MAC Address of first terminal Entry deletion request;Controller is requested according to the terminal management table entry deletion, deletes first terminal corresponding end in terminal management table End pipe manages list item;Also, the 2nd AP deletes the corresponding terminal association information of first terminal in the terminal association information table of the 2nd AP List item and notification controller send the offline notice of terminal to the first AP, include the MAC of first terminal in the offline notice of the terminal Address;The offline notice of terminal that first AP is sent according to controller searches above-mentioned in the terminal association information table of the first AP The MAC Address of one terminal, and the corresponding terminal association information table of above-mentioned first terminal is deleted, and first terminal is corresponding The address state of first IP address is set as unallocated state.
During above-mentioned first terminal is offline, since the connection between the first AP and controller is in interrupt status, or Connection between the 2nd AP of person and controller is in interrupt status, may cause between the first AP, controller and the 2nd AP The relevant information for being directed to first terminal is asynchronous, therefore, in order to guarantee to be directed between the first AP, controller and the 2nd AP Synchronism between the relevant information of first terminal, be divided into following two situation realize the first AP, the 2nd AP and controller it Between synchronizing information:
The first situation: AP switching does not occur for first terminal.
If the connection between the first AP and controller is in interrupt status, the first AP deletes the terminal association letter of the first AP The corresponding terminal association information table of first terminal in table is ceased, and will be distributed to the address shape of the first IP address of first terminal State is set as unallocated state, then when the connection between the first AP and controller reverts to normal condition by interrupt status, the The corresponding terminal association information table of terminals all in terminal association information table is sent to controller by one AP;Controller detects It include the corresponding terminal management list item of first terminal in terminal management table in controller, and all terminals pair that the first AP is reported In the terminal association information table answered when terminal association information table corresponding not comprising first terminal, then show the first terminal It is offline, at this point, controller directly deletes the corresponding terminal management list item of first terminal in terminal management table.
If the connection between the first AP and controller is in interrupt status, terminal association information of the first AP in the first AP Restzustand is set by the corresponding User Status of first terminal in table, and keeps distributing to the first IP address of first terminal Address state is to have distributed state, then when the connection between the first AP and controller reverts to normal condition by interrupt status, First AP sends the request of terminal management table entry deletion to controller;Controller receives the terminal management table entry deletion that the first AP is sent Request, and obtain the MAC Address for the first terminal for including in terminal management table entry deletion request;When the terminal management of controller When preserving the MAC Address of first terminal in table, controller deletes first terminal corresponding end in the terminal management table of controller End pipe manages list item.
Second situation: AP switching occurs for first terminal.
When the 2nd AP detects that first terminal is offline, if the connection between the 2nd AP and controller is interrupt status, the Two AP by the corresponding terminal association information table of first terminal in the terminal association information table for deleting the first AP, then as the 2nd AP and Connection between controller reverts to normal condition by interrupt status, and the 2nd AP will own in the terminal association information table of the 2nd AP The corresponding terminal association information table of terminal is sent to controller, and controller detects to include first terminal in terminal management table Corresponding terminal management list item, and in the corresponding terminal association information table of all terminals that the 2nd AP is sent, do not include first When the corresponding terminal association information table of terminal, controller deletes the corresponding terminal management table of first terminal in terminal management table ?.
When the 2nd AP detects that first terminal is offline, if the connection between the 2nd AP and controller is normal condition, and Connection between first AP and controller is interrupt status, then the connection between the first AP and controller reverts to normal condition Afterwards, controller sends the offline notice of terminal to the first AP, and the first AP of instruction is deleted first in the terminal association information table of the first AP The corresponding terminal association information table of terminal.
Further, after first terminal switches to two AP by the first AP, and the first AP network communication quality is detected More preferably, when and meeting switching condition, first terminal sends association request to the first AP, which is re-association;The One AP sends User Status inquiry request according to the association request type, to controller, includes in the User Status inquiry request The MAC Address of first terminal;Controller inquires terminal management table, determines that the corresponding current AP of first terminal is identified as the 2nd AP's When mark, the 2nd AP is notified to delete the corresponding terminal association information table of first terminal in the terminal association information table of the 2nd AP; And the corresponding current AP mark of first terminal in the terminal management table of controller is updated to the mark of the first AP by controller, and raw It is designated as allowing the inquiry response switched to be sent to the first AP at comprising switching;First AP indicates according to above-mentioned switching, allows the One terminal association to the first AP;First AP updates the corresponding User Status of first terminal in the terminal association information table of the first AP For non-switching state.
It is corresponding with controller side shown in above-mentioned Fig. 2, as shown in fig.3, to be provided in an embodiment of the present invention another whole The method flow diagram switched between access point AP is held, is executed by source AP (the first AP), this method comprises:
Step 300: source AP receives the switching notice that controller is sent, and includes the MAC of first terminal in the switching notice Location.
Step 310: it is corresponding to obtain first terminal in the terminal association information table of source AP according to above-mentioned switching notice by source AP Terminal association information table is updated to the User Status in the corresponding terminal association information table of first terminal to have switched shape State;Wherein, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status.
Specifically, in the present embodiment, still as shown in connection with fig. 1 terminal 1 from the first AP roaming switch to the field of the 2nd AP For scape, source AP is the first AP.
In the embodiment of the present invention, before above-mentioned steps 300, the first AP is established to controller transmission link and is requested, notice Controller establishes the connection between controller and the first AP according to the request for building link;When between above-mentioned first AP and controller Link establishment finish after, the first AP receive controller be the first AP distribution IP address information;Alternatively, the IP in the first AP Address information can also be by being manually pre-configured with, and controller only maintains the corresponding relationship of AP mark and IP address information;First AP According to above-mentioned IP address information, headed by the first terminal of secondary association to the first AP distribute IP address.Wherein, above-mentioned IP address information Including IP address pond, gateway address and subnet mask.
Optionally, if controller is AC, the link between above-mentioned first AP and controller can be the tunnel for meeting CAPWAP Road.
Optionally, it is based on above-mentioned IP address information, the first AP is locally generated address information table as shown in Table 1.
Specifically, the first AP is according to IP address information, headed by the first terminal of secondary association to the first AP distribute IP address, i.e., Are as follows: when the first AP receives the association request of first terminal transmission, determine the association request type for including in the association request Headed by secondary association when, the first AP to first terminal carry out user identity authentication;After above-mentioned user identity authentication passes through, first AP receives the DHCP request that first terminal is sent;The IP address for including according to the DHCP request, the IP address information from the first AP Chi Zhong, arbitrarily selected address state are the first IP address of unallocated state, generate dhcp response and are sent to first terminal, described It include first IP address in dhcp response;And the first AP is updated to the address state of first IP address to have distributed shape State;First AP adds the corresponding terminal association information table of first terminal in the terminal association information table of the first AP;And by The corresponding terminal association information table of one terminal is synchronized to controller.
When first terminal is associated with for the first time to an AP, controller receives the synchronizing information that the first AP is sent, synchronization letter It include the corresponding terminal association information table of first terminal in breath;According to the corresponding terminal association information table of first terminal and The mark of first AP records the corresponding terminal management list item of first terminal in the terminal management table of controller.Terminal management table For recording the corresponding relationship of terminal iidentification, host AP mark, current AP mark;Wherein, host AP mark indicates terminal for the first time The mark of associated AP, current AP mark indicate the mark of the current associated AP of terminal.If host AP mark and current AP mark It is sensible same, show that AP switching does not occur and shows that terminal has occurred AP and cut if host AP mark is different with current AP mark for terminal It changes.In the corresponding terminal management list item of the first terminal, terminal iidentification includes the MAC Address of first terminal, host AP mark For the mark of the first AP, current AP mark is also the mark of the first AP.Above-mentioned terminal management table can also include the IP of terminal Location, the link identification of host AP, the MAC Address of host AP, the ESN code of host AP, the link identification of current AP, current AP The information such as ESN code of MAC Address, current AP.
When first terminal is associated with an AP for the first time, if the connection between the first AP and controller is interrupt status, the The IP address information of preservation also can be used in one AP, distributes IP address for first terminal, and save above-mentioned first in the first AP The corresponding terminal association information table of terminal;After the connection between the first AP and controller restores normal, the first AP is again The corresponding terminal association information table of first terminal is synchronized to controller.In this way, when first terminal is associated with an AP for the first time, Connection between instant first AP and controller is interrupt status, and first terminal still is able to association to the first AP, and accesses the Resource on one AP.When the connection between the first AP and controller is in interrupt status, if first terminal is by under the first AP Line, authentication and distribution IP address will be re-started to first terminal by being associated with for the first time again later to the first AP, the first AP, Such as second IP address, and the corresponding terminal association information table of first terminal is saved again.When between the first AP and controller Connection restore normal after, the IP address in the corresponding terminal management list item of first terminal that controller saves remains as first Terminal it is last it is offline before the first IP address, then the corresponding terminal management list item of the first terminal saved in controller and the The corresponding terminal association information table of the first terminal currently saved in one AP is inconsistent.At this point, controller will be according to the first AP The corresponding terminal association information table of the first terminal reported updates the corresponding terminal management table of first terminal in controller ?.By adopting the above technical scheme, for terminal for the first time associated AP when, the connection between AP and controller is different in interrupt status Reason condition proposes solution, and the inconsistent problem of the relevant information for the terminal that can effectively avoid controller and AP from saving is protected The accuracy of the terminal management table saved in controller is demonstrate,proved.
In step 310, when controller determines that first terminal can carry out AP switching, switching notice is sent to the first AP; First AP repairs the corresponding User Status of above-mentioned first terminal in the terminal association information table of the first AP according to the switching notice It is changed to switching state;Also, the first AP need not modify to the address state for the first IP address distributed for first terminal, The address state for keeping the first IP address is to have distributed state, to guarantee the first AP not by above-mentioned first terminal corresponding first The problem of IP address distributes to other terminals, avoids IP address conflict.
By adopting the above technical scheme, when terminal carries out AP switching, it is only necessary to detect whether the terminal accesses by controller Any one AP in addition to purpose AP under controller administration;When controller determines that the terminal accesses under controller administration When any one AP in addition to purpose AP, it is terminal without purpose AP that terminal, which directly uses the IP address of any one AP distribution, IP address is redistributed, user identity authentication also is carried out to terminal again without purpose AP, AP is carried out so as to shorten terminal and cuts The time changed avoids the interruption of the data service in AP handoff procedure.
Further, when first terminal request re-associates to two AP, during the connection between the first AP and controller is Connection between disconnected state or the 2nd AP and controller is in interrupt status, and the 2nd AP will refuse first terminal progress AP and cut It changes.It using the technical solution, avoids under the abnormal conditions, terminal carries out occurring the situation of mistake when AP switching.
Further, it when the first AP detects that first terminal is not in connection status, is cut if first terminal does not carry out AP It changes, then the first AP sends the request of terminal management table entry deletion to controller according to the MAC Address of first terminal;Controller according to The corresponding terminal management list item of first terminal in terminal management table is deleted in terminal management table entry deletion request;First AP deletes the The corresponding terminal association information table of above-mentioned first terminal in the terminal association information table of one AP, and it is released to first terminal point The first IP address matched, i.e., set unallocated state for the address state of the first IP address;It is cut if first terminal has carried out AP It changes, then the 2nd AP sends the request of terminal management table entry deletion to controller, and the 2nd AP deletes the terminal association information of the 2nd AP The corresponding terminal association information table of first terminal in table;Controller is requested according to the terminal management table entry deletion, generates terminal Offline notice, and the corresponding terminal management list item of first terminal in the terminal management table of controller is deleted, in the offline notice MAC Address comprising first terminal;First AP receives the offline notice of terminal that controller is sent, and believes in the terminal association of the first AP The MAC Address of above-mentioned first terminal is searched in breath table, and deletes the corresponding terminal association of first terminal in terminal association information table Information table, and unallocated state is set by the address state for the first IP address distributed for first terminal.
During above-mentioned first terminal is offline, since the connection between the first AP and controller is in interrupt status, or Connection between the 2nd AP of person and controller is in interrupt status, may cause between the first AP, controller and the 2nd AP The relevant information for being directed to first terminal is asynchronous, therefore, in order to guarantee to be directed between the first AP, controller and the 2nd AP Synchronism between the relevant information of first terminal, be divided into following two situation realize the first AP, the 2nd AP and controller it Between synchronization:
The first situation: AP switching does not occur for first terminal.
If the connection between the first AP and controller is in interrupt status, the first AP deletes the terminal association letter of the first AP The corresponding terminal association information table of first terminal in table is ceased, and will be distributed to the address shape of the first IP address of first terminal State is set as unallocated state, then when the connection between the first AP and controller reverts to normal condition by interrupt status, the The corresponding terminal association information table of terminals all in terminal association information table is sent to controller by one AP;Controller detects It include the corresponding terminal management list item of first terminal in terminal management table in controller, and all terminals pair that the first AP is reported In the terminal association information table answered when terminal association information table corresponding not comprising first terminal, then show the first terminal It is offline, at this point, controller directly deletes the corresponding terminal management list item of first terminal in terminal management table.
If the connection between the first AP and controller is in interrupt status, terminal association information of the first AP in the first AP Restzustand is set by the corresponding User Status of first terminal in table, and keeps distributing to the first IP address of first terminal Address state is to have distributed state, then when the connection between the first AP and controller reverts to normal condition by interrupt status, First AP sends the request of terminal management table entry deletion to controller;Controller receives the terminal management table entry deletion that the first AP is sent Request, and obtain the MAC Address for the first terminal for including in terminal management table entry deletion request;When the terminal management of controller When preserving the MAC Address of first terminal in table, controller deletes first terminal corresponding end in the terminal management table of controller End pipe manages list item.
Second situation: AP switching occurs for first terminal.
When the 2nd AP detects that first terminal is offline, if the connection between the 2nd AP and controller is interrupt status, the Two AP by the corresponding terminal association information table of first terminal in the terminal association information table for deleting the first AP, then as the 2nd AP and Connection between controller reverts to normal condition by interrupt status, and the 2nd AP will own in the terminal association information table of the 2nd AP The corresponding terminal association information table of terminal is sent to controller, and controller detects to include first terminal in terminal management table Corresponding terminal management list item, and in the corresponding terminal association information table of all terminals that the 2nd AP is sent, do not include first When the corresponding terminal association information table of terminal, controller deletes the corresponding terminal management table of first terminal in terminal management table ?.
When the 2nd AP detects that first terminal is offline, if the connection between the 2nd AP and controller is normal condition, and Connection between first AP and controller is interrupt status, then the connection between the first AP and controller reverts to normal condition Afterwards, controller sends the offline notice of terminal to the first AP, and the first AP of instruction is deleted first in the terminal association information table of the first AP The corresponding terminal association information table of terminal.
It is corresponding with controller side shown in above-mentioned Fig. 2, as shown in fig.4, to be provided in an embodiment of the present invention another whole The method flow diagram switched between access point AP is held, is executed by purpose AP (the 2nd AP), this method comprises:
Step 400: purpose AP receives the association request that first terminal is sent, and includes association request class in the association request Type.
Step 410: when the purpose AP determines the association request type for re-association, generating user state information and look into It askes request and is sent to controller, include the MAC Address of the first terminal in the user state information inquiry request, so that institute It states controller and determines whether that the first terminal switches to the purpose AP.
Step 420: the purpose AP receives the inquiry response that controller is sent, and includes switching instruction in the inquiry response.
Step 430: if the switching is designated as allowing to switch, it is described that the purpose AP allows the first terminal to be associated with Purpose AP;And the corresponding terminal association information table of the first terminal is recorded in the terminal association information table of the purpose AP ?;Wherein, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;Institute It states in the corresponding terminal association information table of first terminal, terminal iidentification is the MAC Address of the first terminal, the user class Type is roaming service customer, and the User Status is sky.
Specifically, in the present embodiment, still as shown in connection with fig. 1 terminal 1 from the first AP roaming switch to the field of the 2nd AP For scape, purpose AP is the 2nd AP.
Before step 400, the 2nd AP is established to controller transmission link and is requested, and notification controller is built according to above-mentioned link The connection between controller and the 2nd AP is established in vertical request;After link establishment finishes, it is second that the 2nd AP, which receives controller, The IP address information of AP distribution;Alternatively, the IP address information in the 2nd AP can also be pre-configured with, controller only maintains AP mark With the corresponding relationship of IP address information;2nd AP according to above-mentioned IP address information, headed by secondary association to local second terminal point With IP address.Wherein, above-mentioned IP address information includes IP address pond, gateway address and subnet mask.
Optionally, if controller is AC, the link between above-mentioned 2nd AP and controller can be the tunnel for meeting CAPWAP Road.
Optionally, the 2nd IP address information of the AP based on configuration is locally generated address information table as shown in Table 1.
Specifically, the 2nd AP is according to IP address information, headed by the second terminal of secondary association to the 2nd AP distribute IP address, i.e., Are as follows: when the 2nd AP receives the association request of second terminal transmission, when determining secondary association headed by the association request type, to the Two terminals carry out user identity authentication;After above-mentioned user identity authentication passes through, the 2nd AP receives what second terminal was sent DHCP request;In the IP address pond for including according to the DHCP request, the IP address information from the 2nd AP, arbitrarily selected address state It for the second IP address of unallocated state, generates dhcp response and is sent to second terminal, include described the in the dhcp response Two IP address;And the address state of second IP address is updated to the state of having distributed by the 2nd AP;2nd AP is the 2nd AP's The corresponding terminal association information table of second terminal is added in terminal association information table;And by the corresponding terminal association of second terminal Information table is synchronized to controller.
When second terminal is associated with for the first time to two AP, controller receives the synchronizing information that the 2nd AP is sent, synchronization letter It include the corresponding terminal association information table of second terminal in breath;According to the corresponding terminal association information table of second terminal and The mark of 2nd AP records the corresponding terminal management list item of second terminal in the terminal management table of controller.Terminal management table For recording the corresponding relationship of terminal iidentification, host AP mark, current AP mark;Wherein, host AP mark indicates terminal for the first time The mark of associated AP, current AP mark indicate the mark of the current associated AP of terminal.If host AP mark and current AP mark It is sensible same, show that AP switching does not occur and shows that terminal has occurred AP and cut if host AP mark is different with current AP mark for terminal It changes.In the corresponding terminal management list item of the second terminal, terminal iidentification includes the MAC Address of second terminal, host AP mark For the mark of the 2nd AP, current AP mark is also the mark of the 2nd AP.Above-mentioned terminal management table can also include the IP of terminal Location, the link identification of host AP, the MAC Address of host AP, the ESN code of host AP, the link identification of current AP, current AP The information such as ESN code of MAC Address, current AP.
In step 410, when first terminal is in moving process, detect that the wireless network signal mass parameter of the first AP is low In the first predetermined threshold value, and when the wireless network signal mass parameter of the 2nd AP is higher than the second predetermined threshold value, to the 2nd AP Association request is initiated, request accesses the 2nd AP, and the association request type for including in the association request is re-association;2nd AP root User state information inquiry request is generated according to the MAC Address of first terminal according to the association request type;2nd AP is by the use State information searching request in family is sent to controller, and notification controller is inquired above-mentioned first terminal and is connected under controller administration Which AP.
In step 420, the first terminal that is carried in the user state information inquiry request that controller is sent according to the 2nd AP MAC Address, inquire the MAC Address of above-mentioned first terminal from the terminal management table of controller, and determine that first terminal is corresponding Current AP when being an AP, send switching notice to the first AP, and first terminal in the terminal management table of controller is corresponding Current AP mark be revised as the mark of the 2nd AP.Also, controller sends inquiry response to the 2nd AP;2nd AP is looked into according to this The switching instruction for including in response is ask, determines whether that first terminal switches to the 2nd AP by the first AP.
In step 430, when above-mentioned switching, which is designated as, to be allowed to switch, the 2nd AP is in the terminal association information table of the 2nd AP The corresponding terminal association information table of above-mentioned first terminal is recorded, i.e., it is corresponding to add above-mentioned first terminal in IP address of terminal IP address adds the MAC Address of first terminal in first terminal MAC Address, sets roaming service customer for user type, will use Family state is set as NA.
By adopting the above technical scheme, when terminal carries out AP switching, it is only necessary to detect whether the terminal accesses by controller Any one AP under controller administration;When determining any one AP under terminal access above controller administration, without mesh AP be terminal redistribute IP address, also without purpose AP to terminal carry out user identity authentication, so as to shorten terminal into The time of row AP switching, the terminal of the data service in AP handoff procedure is avoided, and reduce the workload of purpose AP.
Further, when first terminal request re-associates to two AP, during the connection between the first AP and controller is Connection between disconnected state or the 2nd AP and controller is in interrupt status, and the 2nd AP will refuse first terminal progress AP and cut Change process.It using the technical solution, avoids under the abnormal conditions, terminal carries out occurring the situation of mistake when AP switching.
Further, when the 2nd AP detects that first terminal is not in connection status (i.e. first terminal is offline), second AP sends the request of terminal management table entry deletion to controller, and it is corresponding that notification controller deletes the first terminal from terminal management table Terminal management list item;And notification controller indicates that the first AP deletes above-mentioned first terminal in the terminal association information table of the first AP Corresponding terminal association information table, and the first AP is notified to set unallocated state for the address state of the first IP address; 2nd AP deletes the corresponding terminal association information table of first terminal in terminal association information table.
Special, for following abnormal conditions, when the 2nd AP detects that first terminal is not in connection status, if second Connection between AP and controller is in interrupt status, then the 2nd AP deletes above-mentioned from the terminal association information table of the 2nd AP The corresponding terminal association information table of one terminal.
Further, when the connection between the 2nd AP and controller is successful connection state by interrupt status reparation, the The corresponding terminal association information table of terminals all in terminal association information table is sent to controller, notification controller inspection by two AP Measuring includes the corresponding terminal management list item of first terminal in terminal management table, and all terminals corresponding end that the 2nd AP is sent It holds in related information list item, when not including the corresponding terminal association information table of first terminal, controller deletes terminal management table The corresponding terminal management list item of middle first terminal.
Based on the above-mentioned technical proposal, User Status project variation signal in the corresponding terminal association information table of first terminal Figure is refering to shown in Fig. 5.Wherein:
0 indicates initial state, and first terminal is associated with the first AP for the first time at this time, at this point, the first terminal saved in the first AP Synchronous regime is non-synchronous regime in corresponding terminal association information table, and User Status is non-switching state.
1 indicates that the first AP is by first terminal corresponding end when the connection between the first AP and controller is normal condition End related information list item is sent to controller, keeps controller synchronous with the holding of the corresponding information of the first AP, at this time the in the first AP The corresponding synchronous regime project of one terminal is that synchronous regime, User Status have been non-switching state.
2 indicate not switch non-synchronous regime when first terminal is in, and when first terminal is offline, the first AP deletes terminal and closes Join the corresponding terminal association information table of above-mentioned first terminal in information table, and by the ground of corresponding first IP address of first terminal Location state is set as unallocated state, so that completing release recycles above-mentioned first IP address.
3 indicate not switch under synchronous regime when first terminal is in, and first terminal is offline, and the first AP and controller it Between connection be normal condition when, to controller send terminal management table entry deletion request, notification controller delete terminal management The corresponding terminal management list item of first terminal in table, and the first AP deletes the corresponding terminal of first terminal in terminal association information table Related information list item, and unallocated state is set by the address state of corresponding first IP address of first terminal, to complete Above-mentioned first IP address is recycled in release.
4 indicate not switch under synchronous regime when first terminal is in, and first terminal carries out AP switching, and controller updates eventually End pipe manages the corresponding terminal management list item of first terminal in table, and the first AP is notified to update terminal association information table in the first AP The corresponding User Status of first terminal is revised as having switched by the corresponding terminal association information table of middle first terminal, i.e. the first AP The address state of state, corresponding first IP address of above-mentioned first terminal is maintained as the state of having distributed.
5 expression first terminals, which are in, not to be switched under synchronous regime, and the first AP detects that the first terminal is offline, Yi Ji Connection between one AP and controller is interrupt status, and the corresponding User Status of first terminal is set as remaining by the first AP, the The address state of corresponding first IP address of one terminal is maintained as the state of having distributed;Alternatively, the first AP deletes terminal association letter Cease the corresponding terminal association information table of first terminal in table.
6 indicate that first terminal is under switching state, and when first terminal is offline, controller notifies the first AP above-mentioned first Terminal is offline, then the first AP deletes the corresponding terminal association information table of first terminal in terminal association information table, and by the The address state of corresponding first IP address of one terminal is set as unallocated state, to complete release with recycling above-mentioned first IP Location.In addition, the 2nd AP deletes the terminal association information of the 2nd AP when the connection between controller and the 2nd AP is interrupt status The corresponding terminal association information table of first terminal in table, when the connection between controller and the 2nd AP reverts to normal condition When, the 2nd AP is by the corresponding terminal association information reporting of all terminals in terminal association information table to controller, controller root The corresponding terminal management list item of first terminal in terminal management table is deleted according to the corresponding terminal association information table of all terminals, And the first AP is notified to delete the corresponding terminal association information table of first terminal in the terminal association information table of the first AP.Work as control When connection between device processed and the first AP is interrupt status, controller deletes the corresponding terminal conduit of first terminal in terminal management table Manage list item;When the connection between controller and the first AP reverts to normal condition, controller is offline to the first AP transmission terminal Notice notifies the first AP to delete the corresponding terminal association information table of first terminal in terminal association information table.
7 expression first terminals are under Restzustand, after the link establishment between the first AP and controller, first AP notification controller deletes the corresponding terminal management list item of first terminal in the terminal management table of controller, and by first terminal pair The address state for the first IP address answered is set as unallocated state, so that completing release recycles above-mentioned first IP address.
Based on the above-mentioned technical proposal, it as shown in fig.6, the embodiment of the present invention provides a kind of switching control, including connects Unit 60 is received, acquiring unit 61, notification unit 62, updating unit 63 and transmission unit 64, the switching control are deployed in On controller, the method that switches between AP for realizing present invention terminal shown in Fig. 2.Wherein:
Receiving unit 60, for receiving the user state information inquiry request of purpose AP transmission, the user state information It include the MAC address of first terminal in inquiry request;
Acquiring unit 61 obtains the first terminal for the MAC Address and terminal management table according to the first terminal The mark of source AP of the corresponding current AP mark as the first terminal;The terminal management table is used to record terminal iidentification, The corresponding relationship of host AP mark and current AP mark;
Notification unit 62, for notifying the source AP by first terminal pair described in the terminal association information table of the source AP The User Status answered is updated to switching state;
Updating unit 63, for the corresponding current AP mark of first terminal described in terminal management table to be updated to the mesh AP mark;Wherein, the terminal association information table is for recording terminal iidentification, user type, pair between User Status It should be related to;
Transmission unit 64 includes switching instruction, institute in the inquiry response for sending inquiry response to the purpose AP Switching is stated to be designated as allowing to switch, being used to indicate the purpose AP allows the first terminal to be associated with the purpose AP, and The corresponding terminal association information table of the first terminal is recorded in the terminal association information table of the purpose AP;Wherein, described In the corresponding terminal association information table of first terminal, terminal iidentification is the MAC Address of the first terminal, and user type is unrestrained Swim user.
Optionally, described device further includes terminal management information adding unit 65, is used for: being sent receiving the purpose AP User state information inquiry request before, receive the synchronizing information that the source AP is sent;Wherein, include in the synchronizing information The corresponding terminal association information table of first terminal;According to the mark and the synchronizing information of the source AP, in the terminal conduit Increase the corresponding terminal management list item of the first terminal in reason table, in the corresponding terminal management list item of the first terminal, eventually End is identified as the MAC Address of the first terminal, and host AP is identified as the mark of the source AP, and current AP is identified as the source AP Mark.
Optionally, described device further includes terminal management information deletion unit 66, is used for: receiving the terminal of the purpose AP List item removal request is managed, includes the MAC Address of the first terminal in the terminal management table entry deletion request;According to described The MAC Address of first terminal and the terminal management table obtain the corresponding current AP mark of MAC Address of the first terminal; If the current AP mark is identical as the mark of the purpose AP, the corresponding terminal of MAC Address of the first terminal is obtained The host AP mark in list item is managed, notifying the host AP to identify corresponding AP to delete terminal iidentification is the first terminal The terminal association information table of MAC Address, and discharge the Internet protocol IP address for distributing to the first terminal;From terminal management table The middle terminal management list item for deleting the MAC Address that terminal iidentification is the first terminal.
In the present embodiment, function and working principle in relation to the switching control do not use up details, can refer to above-mentioned Described in the embodiment of the method for Fig. 2~5.
Based on the above-mentioned technical proposal, it as shown in fig.7, the embodiment of the present invention provides a kind of access device, including receives single Member 70, acquiring unit 71, updating unit 72;The access device is deployed on the AP of source, for realizing present invention terminal shown in Fig. 3 The method switched between AP.Wherein:
Receiving unit 70 includes first terminal in the switching notice for receiving the switching notice of controller transmission MAC Address;
Acquiring unit 71, for obtaining institute in the terminal association information table of the access device according to the switching notice State the corresponding terminal association information table of first terminal;Wherein, the terminal association information table is used for recording terminal iidentification Family type, the corresponding relationship between User Status;
Updating unit 72, for the corresponding terminal association information of first terminal for getting the acquiring unit 71 User Status in list item is updated to switching state.
Further, described device further includes processing unit 73, is used for: receive controller send switching notice it Before, the association request that the first terminal is sent is received, includes association request type in the association request;When determining the pass Headed by connection request type when secondary association, user identity authentication is carried out to the first terminal;When the user identity authentication passes through Later, the dynamic host configuration protocol DHCP request that the first terminal is sent is received, the DHCP request includes described first The MAC Address of terminal;From the Internet protocol IP address pond of the access device, with selecting the first IP in unallocated state The first terminal is distributed in location, and sets the state of having distributed for the address state of first IP address;And described In the terminal association information table of access device, the corresponding terminal association information table of the first terminal is recorded, described first eventually Holding terminal iidentification in corresponding terminal association information table is the MAC Address of the first terminal, and user type is original user, User Status is non-switching state.
Further, the access device further includes transmission unit 74, is used for: with distributing the first IP for the first terminal After location, according to the corresponding terminal association information table of the first terminal, synchronizing information is generated;The synchronizing information is sent To the controller, the controller is notified to be filled according to the corresponding terminal association information table of the first terminal and the access The mark set records the corresponding terminal management list item of the first terminal in terminal management table in the controller;Wherein, The terminal management table is for recording terminal iidentification, the corresponding relationship of host AP mark and current AP mark;The first terminal In corresponding terminal management list item, terminal iidentification is the MAC Address of the first terminal, and host AP is identified as the access device Mark, current AP is identified as the mark of the access device.
Further, the access device further includes the offline processing unit 75 of terminal, is used for: the first terminal is corresponding Terminal association information table be sent to after the controller, receive the offline notice of terminal that the controller is sent;Wherein, It include the MAC Address of the first terminal in the offline notice of terminal;Delete terminal iidentification in the terminal association information table For the terminal association information table of the MAC Address of the first terminal, and discharge the first IP for distributing to the first terminal Address.
Further, described device further includes IP address information acquiring unit 76, is used for: receiving what first terminal was sent Before association request, the IP address information that the controller is access device distribution is received;Alternatively, being pre-configured with described connect Enter the IP address information of device;The IP address information includes the IP address pond of the access device, subnet mask and gateway Location.
In the present embodiment, function and working principle in relation to the access device do not use up details, can refer to above-mentioned Fig. 2~ Described in 5 embodiments of the method.
Based on the above-mentioned technical proposal, it as shown in fig.8, the embodiment of the present invention provides another access device, including receives Unit 80, transmission unit 81 and switch unit 82;The access device is deployed on purpose AP, for realizing Fig. 4 institute of the present invention The method that the terminal shown switches between AP.Wherein:
Receiving unit 80 includes association request in the association request for receiving the association request of first terminal transmission Type;
Transmission unit 81, for generating user state information inquiry when determining the association request type for re-association Request is sent to controller, includes the media access control MAC of the first terminal in the user state information inquiry request Address, so that the controller determines whether that the first terminal switches to the purpose AP;
The receiving unit 80 is also used to receive the inquiry response that the controller is sent, includes in the inquiry response Switching instruction;
Switch unit 82 allows the first terminal if being designated as allowing to switch for the switching in the inquiry response It is associated with the access device;And the first terminal corresponding end is recorded in the terminal association information table of the access device Hold related information list item;Wherein, the terminal association information table is for recording terminal iidentification, user type, between User Status Corresponding relationship;In the corresponding terminal association information of the first terminal, terminal iidentification is the MAC Address of the first terminal, The user type is roaming service customer, and the User Status is sky.
Further, the access device further includes the offline processing unit 83 of terminal, is used for: when detect it is described first eventually When end is not in connection status, the request of terminal management table entry deletion is generated, includes institute in the terminal management table entry deletion request State the MAC Address of first terminal;And the terminal management table entry deletion request is sent to the controller, notify the controller Delete the corresponding terminal management list item of the first terminal;Described is deleted from the terminal association information table of the access device The corresponding terminal association information table of one terminal.
In the present embodiment, function and working principle in relation to the access device do not use up details, can refer to above-mentioned Fig. 2~ Described in 5 embodiments of the method.
Based on the above-mentioned technical proposal, as shown in fig.9, the embodiment of the present invention also provides a kind of controller, including processor 90, wireless communication port 91, memory 92 and bus 93 switch between AP for realizing present invention terminal shown in Fig. 2 Method.Wherein:
Processor 90, wireless communication port 91, memory 92 are connected with each other by bus 93;Bus 93 can be peripheral hardware portion Part interconnection standards (peripheral component interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA) bus etc..The bus can be divided into address Bus, data/address bus, control bus etc..Only to be indicated with a thick line in Fig. 9, it is not intended that only one convenient for indicating Bus or a type of bus.
Memory 92, for storing program.Specifically, program may include program code, and said program code includes meter Calculation machine operational order.Memory 92 may include random access memory (random access memory, abbreviation RAM), It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Wireless communication port 91, for receiving the user state information inquiry request of purpose AP transmission, the User Status It include the MAC address of first terminal in information inquiring request.Processor 90, for running the memory 92 The program of middle storage, performs the following operations:
According to the MAC Address and terminal management table of the first terminal, the corresponding current AP mark of the first terminal is obtained Know the mark of the source AP as the first terminal;The terminal management table identifies and works as recording terminal iidentification, host AP The corresponding relationship of preceding AP mark;Notification unit, for notifying the source AP will be described in the terminal association information table of the source AP The corresponding User Status of first terminal is updated to switching state;By the corresponding current AP of first terminal described in terminal management table Mark is updated to the mark of the purpose AP;Wherein, the terminal association information table is for recording terminal iidentification, user type, Corresponding relationship between User Status.
The wireless communication port 91 is also used to send inquiry response to the purpose AP, includes in the inquiry response Switching instruction, the switching is designated as allowing to switch, and being used to indicate the purpose AP allows described in the first terminal is associated with Purpose AP, and the corresponding terminal association information table of the first terminal is recorded in the terminal association information table of the purpose AP ?;Wherein, in the corresponding terminal association information table of the first terminal, terminal iidentification is the MAC Address of the first terminal, User type is roaming service customer.
Further, the wireless communication port 91, is also used to: in the user state information for receiving the purpose AP transmission Before inquiry request, the synchronizing information that the source AP is sent is received;It wherein, include that first terminal is corresponding in the synchronizing information Terminal association information table;
Further, the processor 90, is also used to: according to the received synchronous letter of the wireless communication port 91 The mark of breath and the source AP, increases the corresponding terminal management list item of the first terminal, institute in the terminal management table It states in the corresponding terminal management list item of first terminal, terminal iidentification is the MAC Address of the first terminal, and host AP is identified as institute The mark of source AP is stated, current AP is identified as the mark of the source AP.
Further, the wireless communication port 91, is also used to: the terminal management table entry deletion for receiving the purpose AP is asked It asks, includes the MAC Address of the first terminal in the terminal management table entry deletion request;
Further, the processor 90, is also used to: according to the MAC Address of the first terminal and the terminal management Table obtains the corresponding current AP mark of MAC Address of the first terminal;If the mark of current the AP mark and the purpose AP It is sensible same, then the host AP mark in the corresponding terminal management list item of MAC Address of the first terminal is obtained, notifies the place Main AP identifies corresponding AP and deletes the terminal association information table for the MAC Address that terminal iidentification is the first terminal, and discharges and divide The Internet protocol IP address of first terminal described in dispensing;It is the first terminal that terminal iidentification is deleted from terminal management table The terminal management list item of MAC Address.
The memory 92, is also used to store terminal management list item.
Above-mentioned processor 90 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate Or transistor logic, discrete hardware components.
In the present embodiment, function and working principle in relation to the controller do not use up details, can refer to above-mentioned Fig. 2~5 Described in embodiment of the method.
Based on the above-mentioned technical proposal, as shown in fig.10, the embodiment of the present invention also provides a kind of AP, including processor 100, Wireless communication port 101, memory 102 and bus 103, in which:
Processor 100, wireless communication port 101, memory 102 are connected with each other by bus 103;Bus 103 can be Pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicate, It is only indicated with a thick line in Figure 10, it is not intended that an only bus or a type of bus.
Memory 102, for storing program.Specifically, program may include program code, and said program code includes meter Calculation machine operational order.Memory 102 may include RAM, it is also possible to and it further include nonvolatile memory, a for example, at least disk Memory.
Wireless communication port 101 includes first whole in the switching notice for receiving the switching notice of controller transmission The MAC address at end;
Processor 100 runs the program stored in the memory 102, performs the following operations:
According to the switching notice, the corresponding terminal of first terminal described in the terminal association information table of the AP is obtained Related information list item;Wherein, the terminal association information table is for recording terminal iidentification, user type, between User Status User Status in the corresponding terminal association information table of the first terminal is simultaneously updated to switching state by corresponding relationship.
Further, the wireless communication port 101, is also used to: before receiving the switching notice that controller is sent, connecing The association request that the first terminal is sent is received, includes association request type in the association request;
Further, the processor 100, is also used to: headed by determining the association request type when secondary association, to institute It states first terminal and carries out user identity authentication;After the user identity authentication passes through, receive what the first terminal was sent Dynamic host configuration protocol DHCP request, the DHCP request includes the MAC Address of the first terminal;From the AP's In Internet protocol IP address pond, selected the first IP address in unallocated state distributes to the first terminal, and will be described The address state of first IP address is set as the state of having distributed;And in the terminal association information table of the AP, described in record The corresponding terminal association information table of first terminal, terminal iidentification is in the corresponding terminal association information table of the first terminal The MAC Address of the first terminal, user type are original user, and User Status is non-switching state.
Further, processor 100 are also used to: after distributing the first IP address for the first terminal, according to described the The corresponding terminal association information table of one terminal generates synchronizing information;
Further, the wireless communication port 101, is also used to: the synchronizing information being sent to the controller, is led to The controller is known according to the mark of the first terminal corresponding terminal association information table and the AP, in the controller In terminal management table in record the corresponding terminal management list item of the first terminal;Wherein, the terminal management table is for remembering Record terminal iidentification, the corresponding relationship of host AP mark and current AP mark;In the corresponding terminal management list item of the first terminal, Terminal iidentification is the MAC Address of the first terminal, and host AP is identified as the mark of the AP, and current AP is identified as the AP's Mark.
Further, the wireless communication port 101, is also used to: by the corresponding terminal association information of the first terminal List item is sent to after the controller, receives the offline notice of terminal that the controller is sent;Wherein, the terminal is offline logical It include the MAC Address of the first terminal in knowing;
Further, the processor 100, is also used to: according to the offline notice of the terminal, deleting the terminal association letter The terminal association information table for the MAC Address that terminal iidentification in table is the first terminal is ceased, and discharges and distributes to described first First IP address of terminal.
The memory 102 is also used to store the terminal association information table.
Above-mentioned processor 100 can be general processor, including CPU, NP etc.;Can also be DSP, ASIC, FPGA or Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In the present embodiment, function and working principle in relation to the AP do not use up details, can refer to the method for above-mentioned Fig. 2~5 Described in embodiment.
Based on the above-mentioned technical proposal, refering to fig. 1 shown in 1, the embodiment of the present invention also provides a kind of AP, including processor 110, Wireless communication port 111, memory 112 and bus 113, in which:
Processor 110, wireless communication port 111, memory 112 are connected with each other by bus 113;Bus 113 can be Pci bus or eisa bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicate, It is only indicated with a thick line in Figure 11, it is not intended that an only bus or a type of bus.
Memory 112, for storing program.Specifically, program may include program code, and said program code includes meter Calculation machine operational order.Memory 112 may include RAM, it is also possible to and it further include nonvolatile memory, a for example, at least disk Memory.
Wireless communication port 111 includes association in the association request for receiving the association request of first terminal transmission Request type;
Processor 110, the program for storing in run memory 112, performs the following operations:
When determining the association request type for re-association, user state information inquiry request, user's shape are generated It include the MAC Address of the first terminal in state information inquiring request.
Wireless communication port 111, for the user state information inquiry request to be sent to controller, so that the control Device processed indicates whether that the first terminal is allowed to switch to the AP according to the MAC Address of the first terminal;
Wireless communication port 111 is also used to receive the inquiry response that the controller is sent, includes in the inquiry response Switching instruction;
Processor 110 is also used to when the switching in the inquiry response, which is designated as, to be allowed to switch, and permission described first is eventually End is associated with the AP;And the corresponding terminal association information of the first terminal is recorded in the terminal association information table of the AP List item;Wherein, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status; In the corresponding terminal association information table of the first terminal, terminal iidentification is the MAC Address of the first terminal, the user Type is roaming service customer.
Further, processor 110 are also used to: when detecting that the first terminal is not in connection status, being generated eventually End pipe manages list item removal request, includes the MAC Address of the first terminal in the terminal management table entry deletion request;
Further, wireless communication port 111 are also used to: Xiang Suoshu controller sends the terminal management table entry deletion Request notifies the controller to delete the corresponding terminal management list item of the first terminal;And believe from the terminal association of the AP The corresponding terminal association information table of the first terminal is deleted in breath table.
The memory 112 is also used to store the terminal association information table.
Above-mentioned processor 110 can be general processor, including CPU, NP etc.;Can also be DSP, ASIC, FPGA or Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In the present embodiment, function and working principle in relation to the AP do not use up details, can refer to the method for above-mentioned Fig. 2~5 Described in embodiment.
In conclusion controller receives the user state information inquiry that purpose AP is sent in the embodiment of the present invention;According to The media access control of one terminal and the terminal management table of controller obtain the corresponding current AP mark of first terminal and are used as first The identification request of the source AP of terminal;Notice source AP by the corresponding User Status of first terminal in the terminal association information table of source AP more It is newly switching state, and the corresponding current AP mark of first terminal in the terminal management table of controller is updated for purpose AP's Mark;Inquiry response is sent to purpose AP, includes allowing to switch to indicate in the inquiry response, this allows to switch instruction and is used to indicate Purpose AP allows first terminal to be associated with purpose AP, and record first terminal is corresponding in the terminal association information table of purpose AP Terminal association information.Using technical solution of the present invention, when switching between different AP due to terminal, IP address is remained unchanged, and is solved During terminal switches between different AP, the problem of not can guarantee data service or even cause service disconnection.To The efficiency that terminal carries out AP switching is improved, the interruption of data service is effectively prevented, improves wireless communication quality.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The range of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention and its wait Within the scope of technology, then the present invention is also intended to include these modifications and variations.

Claims (20)

1. a kind of method that terminal switches between access point AP characterized by comprising
Controller receives the user state information inquiry request that purpose AP is sent, and includes in the user state information inquiry request The MAC address of first terminal;
The controller obtains described first according to the MAC Address of the first terminal and the terminal management table of the controller The mark of source AP of the corresponding current AP mark of terminal as the first terminal;The terminal management table is for recording terminal mark Know, the corresponding relationship of host AP mark and current AP mark;
The controller notifies the source AP by the corresponding user of first terminal described in the terminal association information table of the source AP State is updated to switching state, and the corresponding current AP of first terminal described in the terminal management table of the controller is identified It is updated to the mark of the purpose AP;Wherein, the terminal association information table is for recording terminal iidentification, user type, user Corresponding relationship between state;
The controller sends inquiry response to the purpose AP, includes switching instruction in the inquiry response, and the switching refers to It is shown as allowing to switch, being used to indicate the purpose AP allows the first terminal to be associated with the purpose AP, and in the purpose The corresponding terminal association information table of the first terminal is recorded in the terminal association information table of AP;Wherein, the first terminal In corresponding terminal association information table, terminal iidentification is the MAC Address of the first terminal, and user type is roaming service customer.
2. the method as described in claim 1, which is characterized in that receive user's shape that the purpose AP is sent in the controller Before state information inquiring request, the method also includes:
Controller receives the synchronizing information that the source AP is sent;It wherein, include first terminal corresponding end in the synchronizing information Hold related information list item;
Controller according to the mark and the synchronizing information of the source AP, increase in the terminal management table of the controller described in The corresponding terminal management list item of first terminal, in the corresponding terminal management list item of the first terminal, terminal iidentification is described the The MAC Address of one terminal, host AP are identified as the mark of the source AP, and current AP is identified as the mark of the source AP.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
The terminal management table entry deletion that the controller receives the purpose AP is requested, in the terminal management table entry deletion request MAC Address including the first terminal;
According to the terminal management table of the MAC Address of the first terminal and the controller, the controller obtains described first The corresponding current AP mark of the MAC Address of terminal;
If the current AP mark is identical as the mark of the purpose AP, the controller obtains the MAC of the first terminal Host AP mark in the corresponding terminal management list item in address notifies the host AP to identify corresponding AP deletion terminal iidentification and be The terminal association information table of the MAC Address of the first terminal, and discharge the Internet protocol IP for distributing to the first terminal Address;
The controller deletes the terminal management table for the MAC Address that terminal iidentification is the first terminal from terminal management table ?.
4. a kind of method that terminal switches between access point AP characterized by comprising
Source AP receives the switching notice that controller is sent, and includes the media access control MAC of first terminal in the switching notice Address;
It is corresponding to obtain first terminal described in the terminal association information table of the source AP according to the switching notice by the source AP User Status in the corresponding terminal association information table of the first terminal is updated to switch by terminal association information table State;Wherein, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status.
5. method as claimed in claim 4, which is characterized in that before the switching notice that source AP receives that controller is sent, institute State method further include:
The source AP receives the association request that the first terminal is sent, and includes association request type in the association request;
Headed by the source AP determines the association request type when secondary association, user identity is carried out to the first terminal and is recognized Card;
After the user identity authentication passes through, the source AP receives the dynamic host configuration protocol that the first terminal is sent DHCP request, the DHCP request include the MAC Address of the first terminal;
The source AP selectes the first IP address in unallocated state and distributes from the Internet protocol IP address pond of the source AP The state of having distributed is set as to the first terminal, and by the address state of first IP address;And
In the terminal association information table of the source AP, the corresponding terminal association information table of the first terminal is recorded, it is described In the corresponding terminal association information table of first terminal, terminal iidentification is the MAC Address of the first terminal, and user type is original Beginning user, User Status are non-switching state.
6. method as claimed in claim 5, which is characterized in that the source AP be the first terminal distribute the first IP address it Afterwards, the method also includes:
The source AP generates synchronizing information according to the corresponding terminal association information table of the first terminal;
The synchronizing information is sent to the controller by the source AP, notifies that the controller is corresponding according to the first terminal Terminal association information table and the source AP mark, described first is recorded in terminal management table in the controller eventually Hold corresponding terminal management list item;Wherein, the terminal management table is for recording terminal iidentification, host AP mark and current AP mark The corresponding relationship of knowledge;In the corresponding terminal management list item of the first terminal, terminal iidentification is the MAC of the first terminal Location, host AP are identified as the mark of the source AP, and current AP is identified as the mark of the source AP.
7. method as claimed in claim 6, which is characterized in that in the source AP by the corresponding terminal association of the first terminal Information table is sent to after the controller, the method also includes:
The source AP receives the offline notice of terminal that the controller is sent;It wherein, include described in the offline notice of the terminal The MAC Address of first terminal;
The source AP deletes the terminal association for the MAC Address that terminal iidentification in the terminal association information table is the first terminal Information table, and discharge first IP address for distributing to the first terminal.
8. such as the described in any item methods of claim 5 to 7, which is characterized in that receive what first terminal was sent in the source AP Before association request, the method also includes:
The source AP receives the IP address information that the controller is source AP distribution;Alternatively, being pre-configured with the source AP's IP address information;The IP address information includes the IP address pond of the source AP, subnet mask and gateway address.
9. a kind of method that terminal switches between access point AP characterized by comprising
Purpose AP receives the association request that first terminal is sent, and includes association request type in the association request;
When the purpose AP determines the association request type for re-association, generates user state information inquiry request and be sent to Controller includes the MAC address of the first terminal in the user state information inquiry request, so that institute It states controller and determines whether that the first terminal switches to the purpose AP;
The purpose AP receives the inquiry response that the controller is sent, and includes switching instruction in the inquiry response;
If the switching is designated as allowing to switch, the purpose AP allows the first terminal to be associated with the purpose AP, and The corresponding terminal association information table of the first terminal is recorded in the terminal association information table of the purpose AP;Wherein, described Terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;The first terminal pair In the terminal association information table answered, terminal iidentification is the MAC Address of the first terminal, and the user type is that roaming is used Family.
10. method as claimed in claim 9, which is characterized in that the purpose AP allows the first terminal to be switched by source AP After to the purpose AP, the method also includes:
When the purpose AP detects that the first terminal is not in connection status, the request of terminal management table entry deletion is generated, It include the MAC Address of the first terminal in the terminal management table entry deletion request;And
The terminal management table entry deletion request is sent to the controller, the controller is notified to delete the first terminal pair The terminal management list item answered;
The purpose AP deletes the corresponding terminal association letter of the first terminal from the terminal association information table of the purpose AP Cease list item.
11. a kind of switching control characterized by comprising
Receiving unit, for receiving the user state information inquiry request of purpose AP transmission, the user state information inquiry is asked It include the MAC address of first terminal in asking;
It is corresponding to obtain the first terminal for the MAC Address and terminal management table according to the first terminal for acquiring unit The mark of source AP of the current AP mark as the first terminal;The terminal management table is for recording terminal iidentification, host AP The corresponding relationship of mark and current AP mark;
Notification unit, for notifying the source AP by the corresponding use of first terminal described in the terminal association information table of the source AP Family state is updated to switching state;
Updating unit, for the corresponding current AP mark of first terminal described in terminal management table to be updated to the purpose AP's Mark;Wherein, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;
Transmission unit includes switching instruction, the switching in the inquiry response for sending inquiry response to the purpose AP It is designated as allowing to switch, being used to indicate the purpose AP allows the first terminal to be associated with the purpose AP, and in the mesh AP terminal association information table in record the corresponding terminal association information table of the first terminal;Wherein, described first eventually It holds in corresponding terminal association information table, terminal iidentification is the MAC Address of the first terminal, and user type is that roaming is used Family.
12. device as claimed in claim 11, which is characterized in that further include terminal management information adding unit, be used for:
Before receiving the user state information inquiry request that the purpose AP is sent, the synchronous letter that the source AP is sent is received Breath;It wherein, include the corresponding terminal association information table of first terminal in the synchronizing information;According to the mark of the source AP and The synchronizing information increases the corresponding terminal management list item of the first terminal in the terminal management table, and described first eventually It holds in corresponding terminal management list item, terminal iidentification is the MAC Address of the first terminal, and host AP is identified as the source AP's Mark, current AP are identified as the mark of the source AP.
13. the device as described in claim 11 or 12, which is characterized in that further include terminal management information deletion unit, be used for:
The terminal management table entry deletion request of the purpose AP is received, includes described the in terminal management table entry deletion request The MAC Address of one terminal;According to the MAC Address of the first terminal and the terminal management table, the first terminal is obtained The corresponding current AP mark of MAC Address;If the current AP mark is identical as the mark of the purpose AP, described first is obtained Host AP mark in the corresponding terminal management list item of the MAC Address of terminal notifies the host AP to identify corresponding AP and delete Terminal iidentification is the terminal association information table of the MAC Address of the first terminal, and discharges and distribute to the first terminal Internet protocol IP address;The terminal management table for the MAC Address that terminal iidentification is the first terminal is deleted from terminal management table ?.
14. a kind of access device characterized by comprising
Receiving unit includes the media visit of first terminal for receiving the switching notice of controller transmission, in the switching notice Ask control MAC Address;
Acquiring unit, for obtaining first described in the terminal association information table of the access device according to the switching notice The corresponding terminal association information table of terminal;Wherein, the terminal association information table is for recording terminal iidentification, user class Type, the corresponding relationship between User Status;
Updating unit, the user in the corresponding terminal association information table of first terminal for getting the acquiring unit State is updated to switching state.
15. device as claimed in claim 14, which is characterized in that further include processing unit, be used for:
Before receiving the switching notice that controller is sent, the association request that the first terminal is sent is received, the association is asked It include association request type in asking;Headed by determining the association request type when secondary association, the first terminal is used Family authentication;After the user identity authentication passes through, the dynamic host configuration protocol that the first terminal is sent is received DHCP request, the DHCP request include the MAC Address of the first terminal;From the Internet protocol IP address of the access device Chi Zhong, selected the first IP address in unallocated state distribute to the first terminal, and by the ground of first IP address Location state is set as the state of having distributed;And in the terminal association information table of the access device, record the first terminal Corresponding terminal association information table, terminal iidentification is described first in the corresponding terminal association information table of the first terminal The MAC Address of terminal, user type are original user, and User Status is non-switching state.
16. device as claimed in claim 15, which is characterized in that further include transmission unit, be used for:
After distributing the first IP address for the first terminal, according to the corresponding terminal association information table of the first terminal, Generate synchronizing information;The synchronizing information is sent to the controller, notifies the controller according to the first terminal pair The mark of the terminal association information table and the access device answered, in terminal management table in the controller described in record The corresponding terminal management list item of first terminal;Wherein, the terminal management table identifies and works as recording terminal iidentification, host AP The corresponding relationship of preceding AP mark;In the corresponding terminal management list item of the first terminal, terminal iidentification is the first terminal MAC Address, host AP are identified as the mark of the access device, and current AP is identified as the mark of the access device.
17. device as claimed in claim 16, which is characterized in that further include the offline processing unit of terminal, be used for:
After the corresponding terminal association information table of the first terminal is sent to the controller, the controller hair is received The offline notice of the terminal sent;It wherein, include the MAC Address of the first terminal in the offline notice of the terminal;Delete the end Terminal iidentification is the terminal association information table of the MAC Address of the first terminal in the related information table of end, and discharges and distribute to institute State first IP address of first terminal.
18. such as the described in any item devices of claim 15 to 17, which is characterized in that it further include IP address information acquiring unit, For:
Before receiving the association request that first terminal is sent, the IP address that the controller is access device distribution is received Information;Alternatively, being pre-configured with the IP address information of the access device;The IP address information includes the IP address of access device Pond, subnet mask and gateway address.
19. a kind of access device characterized by comprising
Receiving unit includes association request type in the association request for receiving the association request of first terminal transmission;
Transmission unit, for generating user state information inquiry request hair when determining the association request type for re-association It send to controller, includes the MAC address of the first terminal in the user state information inquiry request, with The controller is set to determine whether that the first terminal switches to the access device;
The receiving unit, is also used to receive the inquiry response that the controller is sent, and includes that switching refers in the inquiry response Show;
Switch unit, for allowing the first terminal to be associated with the access dress when the switching is designated as allowing to switch It sets;And the corresponding terminal association information table of the first terminal is recorded in the terminal association information table of the access device; Wherein, the terminal association information table is for recording terminal iidentification, user type, the corresponding relationship between User Status;It is described In the corresponding terminal association information of first terminal, terminal iidentification is the MAC Address of the first terminal, and the user type is unrestrained Swim user.
20. device as claimed in claim 19, which is characterized in that further include the offline processing unit of terminal, be used for:
When detecting that the first terminal is not in connection status, the request of terminal management table entry deletion, the terminal conduit are generated Manage the MAC Address in list item removal request including the first terminal;And the terminal management list item is sent to the controller Removal request notifies the controller to delete the corresponding terminal management list item of the first terminal;From the end of the access device The corresponding terminal association information table of the first terminal is deleted in the related information table of end.
CN201410764859.XA 2014-12-11 2014-12-11 Method, switching control and the access device that terminal switches between AP Active CN105744579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410764859.XA CN105744579B (en) 2014-12-11 2014-12-11 Method, switching control and the access device that terminal switches between AP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410764859.XA CN105744579B (en) 2014-12-11 2014-12-11 Method, switching control and the access device that terminal switches between AP

Publications (2)

Publication Number Publication Date
CN105744579A CN105744579A (en) 2016-07-06
CN105744579B true CN105744579B (en) 2019-06-18

Family

ID=56241300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410764859.XA Active CN105744579B (en) 2014-12-11 2014-12-11 Method, switching control and the access device that terminal switches between AP

Country Status (1)

Country Link
CN (1) CN105744579B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635257A (en) * 2016-07-18 2018-01-26 中国电信股份有限公司 Wireless extensions loaming method and system, home gateway and wireless access points
CN107484223B (en) * 2017-08-23 2020-08-04 杭州迪普科技股份有限公司 Method and device for terminal roaming switching
CN109922506A (en) * 2017-12-13 2019-06-21 中兴通讯股份有限公司 Switching method, AP and AP collaborative work controller between AP
CN109067788B (en) * 2018-09-21 2020-06-09 新华三技术有限公司 Access authentication method and device
JP7456432B2 (en) * 2019-03-22 2024-03-27 ソニーグループ株式会社 Communication control device and method, communication terminal and method
CN113381936B (en) * 2020-03-09 2023-08-15 阿里巴巴集团控股有限公司 Network information processing method and device and network equipment
CN111787586B (en) * 2020-07-27 2022-10-21 新华三信息技术有限公司 Wireless roaming method and device
CN114172864B (en) * 2020-08-21 2024-04-09 中国移动通信集团重庆有限公司 Internet of things terminal address allocation method and device
CN115134878B (en) * 2021-03-26 2023-11-14 大唐移动通信设备有限公司 Network interoperation method and device, base station and storage medium
CN114531414A (en) * 2022-01-07 2022-05-24 锐捷网络股份有限公司 Terminal migration acceleration method and device
CN115665814A (en) * 2022-12-22 2023-01-31 新华三技术有限公司 Roaming method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802147A (en) * 2011-05-24 2012-11-28 中兴通讯股份有限公司 Switching method and system
WO2014044315A1 (en) * 2012-09-21 2014-03-27 Nokia Siemens Networks Oy Delay determination
CN104053199A (en) * 2013-03-13 2014-09-17 中国移动通信集团设计院有限公司 Method for switching between wireless local area networks, switching management device, and wireless network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802147A (en) * 2011-05-24 2012-11-28 中兴通讯股份有限公司 Switching method and system
WO2014044315A1 (en) * 2012-09-21 2014-03-27 Nokia Siemens Networks Oy Delay determination
CN104053199A (en) * 2013-03-13 2014-09-17 中国移动通信集团设计院有限公司 Method for switching between wireless local area networks, switching management device, and wireless network

Also Published As

Publication number Publication date
CN105744579A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN105744579B (en) Method, switching control and the access device that terminal switches between AP
CN109076357B (en) Migration application method in mobile edge system, related equipment and system
KR101796405B1 (en) Communication system, base station, communication method, and non-transitory computer readable medium storing program
CN103747431B (en) Method and device for realizing rapid roaming based on neighbor detection
EP3029989A1 (en) Wlan user roaming
CN105828402B (en) A kind of blind reorientation method and core net, base station
CN104780071A (en) Method and device for upgrading virtual switch
US20170180309A1 (en) Selective ip address allocation for probes that do not have assigned ip addresses
CN108934035B (en) Data backup method and device
CN109417492A (en) A kind of network function NF management method and NF management equipment
US11071012B2 (en) Base station, terminal, and wireless communication system
CN111757424B (en) Sharing method and device of wireless access network
CN106060135B (en) A kind of method for updating edition and device
CN108234270B (en) Method and system for realizing multi-domain coexistence of virtual extensible local area network
CN107547675A (en) A kind of user equipment migration method and apparatus
CN105933939A (en) Link maintenance method and device
CN106165344A (en) Virtual machine is distributed in being coupled to the gateway of switch of software definition
CN105472628B (en) Extend the method and device of WLAN ID numbers
EP3280091B1 (en) Method, apparatus and system for establishing interface between vnfms
CN104053159A (en) Method and device for distributing frequency points to multi-carrier base station
CN104333878B (en) A kind of method and device of neighboring BS information configuration
CN108271149A (en) A kind of method, apparatus and system of user data moving anchor point
CN113133008A (en) Communication method and device
CN106488547A (en) A kind of authentication data management method of STA, device and equipment
CN108738027B (en) Network processing method, resource management system and network equipment

Legal Events

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