A kind of method for updating roaming user address and access controller
Technical field
The present invention relates to wireless local area network technology, specifically, relate to a kind of method for updating roaming user address and access controller.
Background technology
WLAN (Wireless Local Area Network, WLAN (wireless local area network)) provides a kind of wireless connections service of local area network (LAN), because wireless data access at a high speed can be provided, WLAN is one of relatively more popular technology of present IT industry, also is popular wireless access way.WLAN adopts centralized AC-AP (Access Controller-Access Point, access controller one access point) framework usually.Wherein, AC provides the centralized management of wlan network, and AP then by setting up link with AC, behind the adding wlan network, provides the wireless access service.
Radio roaming is the key point that solves user mobility.At HA (Home Agent, home agent)-FA (Foreign Agent, the roaming place agency) in the roaming framework, all data to roaming user terminal must mail to HA earlier, be the AC among the HA, by between the HA-FA, that is, the roaming tunnel between user terminal ownership place AC and roaming place AC arrives the roamer then.
As shown in Figure 1, in existing wireless network, to roaming place network 3, by the access controller AC3 on AP (not shown) access roaming ground, roaming place, STA1 is responsible for access control its belonging area network by AC1 to user terminal 1 (STA1) from its belonging area network roaming 1; Wireless user 2 (STA2) is by the access controller AC2 of its ownership place AP (not shown) access belonging area, and STA2 is responsible for access control its belonging area network by AC2.
At this moment, when the message of STA1 is gone in existence, for example, mail to the message of STA1, all arrive AC1 earlier, then, be sent to AC3, arrive STA1 at last by the roaming tunnel between AC1 and the AC3 from PC or STA2.
But, if in case fault has taken place in the roaming tunnel between AC1 or AC1 and the AC3, even and if STA1 has been associated with on the AC3 again as domestic consumer's terminal, that is to say, STA1 as LUT association gone up AC3.So, when STA1 does not initiatively send message in network, for other network equipments beyond the AC3, as, STA2, and do not know that STA1 has gone up AC3 as LUT association again.In other words, if STA1 does not initiatively send message, other network equipments can continue the message that mails to STA1 to mail to AC1.Because fault has taken place the roaming tunnel between AC1 or AC1 and the AC3 at this moment, visible described message can not arrive AC3, thereby STA1 can not receive data yet.
This shows, when the HA of roaming user terminal break down or HA-FA between roaming during tunnel fails, before user terminal does not initiatively send message, that is to say, if user terminal receives only data, do not send data before because the network equipment does not know that the HA of roaming user terminal breaks down or can't handle this fault, even the roamer goes up FA as domestic consumer's association (Association/Re-Association, association-series of fortified passes connection); Mail to this user's data and also can be sent to HA, cause business obstructed, communicating interrupt.
Therefore, how a kind of method for updating roaming user address and access controller are provided, solve when the HA of roaming user terminal break down or HA-FA between roaming during tunnel fails, and do not have initiatively to send under the prerequisite of message at user terminal, can guarantee normally carrying out of communication equally.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method for updating roaming user address and access controller, realize that HA when roaming user terminal breaks down or HA-FA between roam tunnel fails, and before user terminal does not initiatively send message, still can guarantee normally carrying out of communication.
For solving the problems of the technologies described above, it is as follows to the invention provides scheme:
A kind of method for updating roaming user address comprises the steps:
When the roaming place at the current place of roaming user terminal access controller detects roaming tunnel state that described roaming user terminal roams into the roaming place network from its belonging area network and worsens, described roaming place access controller with this roaming user terminal as the LUT association;
The broadcast transmission source address is the address renewal message of described user terminal MAC Address outside the access controller of described roaming place.
Method of the present invention, wherein, described roaming user terminal worsens from the roaming tunnel state that its belonging area network roams into the roaming place network, be that ownership place access controller by described roaming user terminal periodically sends message to the roaming place access controller, if the roaming place access controller is not periodically received described message, judge that the roaming tunnel state worsens; Perhaps the roaming place access controller of described roaming user terminal periodically sends message to the ownership place access controller, if the roaming place access controller is not periodically received the response message that the ownership place access controller sends, judge that the roaming tunnel state worsens.
Method of the present invention, wherein, described roaming place access controller as the LUT association, is that the state of directly described roaming user terminal is set to the LUT state by the roaming user terminal state with this roaming user terminal.
Method of the present invention, wherein, described roaming place access controller with this roaming user terminal as the LUT association, be that described roaming place access controller removes related message or removes message identifying by transmission, the force users terminal rolls off the production line and makes it related again as LUT.
A kind of access controller comprises: the broadcast transmission module is upgraded in roaming tunnel detection module, related trigger module, address;
Described roaming tunnel detection module is used for the roaming tunnel of roaming user terminal is detected, and when detecting the roaming tunnel when being in state deteriorating, triggers related trigger module;
Described related trigger module is used for the triggering according to roaming tunnel detection module, and the roaming user terminal that will come by the roaming tunnel roaming that is in state deteriorating is associated as LUT, and triggers the address and upgrade the broadcast transmission module;
The broadcast transmission module is upgraded in described address, is used for the broadcast transmission address and upgrades message, and the source address that message is upgraded in described address is the MAC Address that is in the roaming user terminal that the roaming tunnel roaming of state deteriorating comes.
Access controller of the present invention, wherein, described roaming tunnel detection module is further used for triggering related trigger module when the tunnel detection messages that can not receive periodically that roaming user terminal ownership place access controller sends.
Access controller of the present invention, wherein, described roaming tunnel detection module, be further used for periodically sending the tunnel detection messages to roaming user terminal ownership place access controller, in the time can not periodically receiving the response message that roaming user terminal ownership place access controller sends, trigger related trigger module.
Access controller of the present invention, wherein, described related trigger module, be further used for the triggering according to roaming tunnel detection module, the state of the roaming user terminal that the directly described roaming tunnel roaming that is in state deteriorating is set to the LUT state by the roaming user terminal state.
Access controller of the present invention, wherein, described related trigger module, be further used for triggering according to roaming tunnel detection module, remove related message or remove message identifying to the roaming user terminal transmission that the described roaming tunnel roaming that is in state deteriorating comes, and receive of the again association of described user terminal as LUT.
Method of the present invention and access controller, by the ownership place access controller of response roaming user terminal or the event of failure in roaming tunnel, with roaming user terminal as the LUT association, the broadcast transmission transmission source address is the address renewal message of described user terminal MAC Address simultaneously, come transmitting of the described user terminal of trigger network renewal of the equipment, thereby the data that will need to arrive described user terminal are directly guided to described roaming place access controller; Therefore, realized when the HA of roaming user terminal break down or HA-FA between roam tunnel fails, and before user terminal does not initiatively send message, still can guarantee normally carrying out of communication.
The technical problem that will solve of the present invention, technical scheme main points and beneficial effect will be in conjunction with the embodiments, are described further with reference to accompanying drawing.
Description of drawings
Fig. 1 is the structural representation of wireless network in the prior art;
Fig. 2 is the flow chart of the described method of the embodiment of the invention;
Fig. 3 is the described wireless network architecture schematic diagram of the embodiment of the invention.
Embodiment
With reference to Fig. 2, after user terminal roamed into the roaming place network from its belonging area network, the described method of the embodiment of the invention comprised the steps:
Step 101: whether the roaming place access controller AC at the current place of described user terminal detects described roaming user terminal worsens from the state that its belonging area network roams into the roaming tunnel of roaming place network, if find to have the roaming tunnel state to worsen execution in step 102; Otherwise, then be failure to actuate, finish.
Here, described roaming tunnel state worsens, and for example, the user terminal ownership place access controller machine state of delaying is perhaps roamed the malfunction that the tunnel is in communicating interrupt, perhaps is in malfunctions such as congested.Whether the roaming place access controller AC of described user terminal detects the roaming tunnel worsens, and can be accomplished in several ways.For example, the roaming place access controller AC of described user terminal periodically sends message to its ownership place access controller, as, all the time enliven Keep Alive message, detect whether can periodically receive corresponding response message then, if can receive, then expression roaming tunnel and ownership place AC are all normal, if do not receive response message, show that then roaming tunnel or ownership place AC break down.Again for example, also can all periodically send the tunnel detection messages by the roaming place AC and the ownership place AC of user terminal to the other side, as, Keep Alive message perhaps periodically sends Keep Alive message to roaming place AC by ownership place AC; If roaming place AC periodically receives the Keep Alive message from ownership place AC, show that then roaming tunnel and ownership place AC are all normal, as periodically not receiving Keep Alive message, show that then roaming tunnel or ownership place AC break down from ownership place AC.
Step 102: described user terminal roaming place access controller AC with this user terminal as the LUT association;
Here, access controller AC in user terminal roaming place can adopt this user terminal as the LUT association mode of direct correlation or indirect association.Direct correlation be exactly described roaming place AC directly the state of described user terminal be set to the LUT state by the roaming user terminal state.For the indirect association mode, can be to carry out common message interaction by roaming place access controller AC and user terminal to realize.For example, roaming place access controller AC is by sending DEASSOCIATION (going association) message or DEAUTHENTICATION (going authentication) message, and the force users terminal rolls off the production line and it is associated with on the access controller AC of roaming place again as LUT.
Step 103: described roaming place access controller AC is the address renewal message of described user terminal MAC Address to outer net broadcast transmission source address, come transmitting of the described user terminal of trigger network renewal of the equipment, thereby the data that will need to arrive described user terminal are directly guided to described roaming place access controller.
Here, described roaming place access controller AC is the address renewal message of described user terminal MAC Address to outer net broadcast transmission source address, can realize by the privately owned special message of broadcast transmission, also can realize, so long as the source address of the message that sends is that described user terminal MAC Address gets final product by the existing communication packet of broadcast transmission.For example, can adopt logic link layer XID (the Exchange Identifier of 802.2 Class1, exchange identification) upgrades response message, the source MAC of this message is set to the MAC Address of subscriber equipment, like this, after the network equipment is received this message, can be updated to transmitting of described subscriber equipment, data are guided to the roaming place access controller; The destination address that upgrades message for this address is set to broadcast address, and wherein dsap field and ssap field are set to NULL, and the control word of message can repeat no more here with reference to the definition in 802.2 agreements.
With reference to Fig. 3, in the described WLAN (wireless local area network) of the embodiment of the invention, comprising: PC, local switch LSW, the first user terminal STA1, the second user terminal STA2, the first access controller AC1, the second access controller AC2, the 3rd access controller AC3.
Wherein, PC inserts WLAN (wireless local area network) by LSW; STA1 roams into roaming place (network at AC3 place) from its ownership place (network at AC1 place), and sets up roaming tunnel AC1-AC3; STA2 is responsible for it is carried out local access control by AC2.
The 3rd access controller AC3 comprises: broadcast transmission module 30 is upgraded in roaming tunnel detection module 10, related trigger module 20, address.
Described roaming tunnel detection module 10 is used for the roaming tunnel of roaming user terminal is detected, and when detecting the deterioration of roaming tunnel state, triggers related trigger module 20.
Described related trigger module 20 is used for the triggering according to roaming tunnel detection module 10, will be associated as LUT by the roaming user terminal that described fault roaming tunnel roaming comes, and trigger the address and upgrade broadcast transmission module 30.
Broadcast transmission module 30 is upgraded in described address, is used for the broadcast transmission address and upgrades message, and the source address that message is upgraded in described address is the MAC Address that the roaming user terminal that comes is roamed in fault roaming tunnel.
At first, when STA1 roams into roaming place (network at AC3 place) from its ownership place (network at AC1 place), and after setting up roaming tunnel AC1-AC3, whether the state that the roaming tunnel detection module 10 among the AC3 detects roaming tunnel AC1-AC3 worsens.For example, roaming tunnel detection module 10 among the AC3 periodically sends Keep Alive message message to AC1, detect whether can periodically receive corresponding response message then, if can receive, then expression roaming tunnel AC1-AC3 and AC1 are all normal, if do not receive response message, show that then roaming tunnel AC1-AC3 or AC1 break down, roaming tunnel detection module 10 sends triggering signal to related trigger module 20.Again for example, also can all periodically send the tunnel detection messages with AC1 by the roaming tunnel detection module among the AC3 10 to the other side, as, Keep Alive message, perhaps by AC1 periodically the roaming tunnel detection module in AC3 10 send Keep Alive messages; So, if the roaming tunnel detection module 10 among the AC3 is periodically received the Keep Alive message from ownership place AC, show that then roaming tunnel AC1-AC3 and AC1 are all normal, as periodically not receiving Keep Alive message from AC1, show that then roaming tunnel AC1-AC3 or AC1 break down, thereby roaming tunnel detection module 10 sends triggering signal to related trigger module 20.
After the triggering signal triggering that the related trigger module among the AC3 20 is sent by roaming tunnel detection module 10, the related trigger module 20 directly state of described roaming user terminal is set to the LUT state by the roaming user terminal state.Perhaps, related trigger module 20 sends DEASSOCIATION (going association) message or DEAUTHENTICATION (going authentication) message, and the force users terminal rolls off the production line and it is associated with on the access controller AC of roaming place again as LUT.
After AC3 is associated as LUT by related trigger module 20 with the next user terminal of described fault roaming tunnel roaming, it is the address renewal message of described user terminal MAC Address to outer net broadcast transmission source address that broadcast transmission module 30 is upgraded in address among the AC3, come other network equipments (as LSW, AC2) in the trigger network upgrade as described in the transmitting of STA1, that is, the MAC Address of STA1 and AC3 are set up mapping relations.Here, can realize, also can realize, so long as the source address of the message that sends is that described user terminal MAC Address gets final product by the existing communication packet of broadcast transmission by the privately owned special message of broadcast transmission.
At this moment, if have again when PC or STA2 mail to the message of STA1,, upgraded transmitting of STA1 because other network equipments (as LSW, AC2) in the network upgrade broadcasting packet according to address as described in receiving, therefore, need the data of the described STA1 of arrival directly to guide on the AC3.
This shows, when the AC1 of STA1 break down or AC1-AC3 between roam tunnel fails, and before STA1 does not initiatively send message, if the message that needs to arrive STA1 is arranged in the network, according to the described method and system of the embodiment of the invention, roaming tunnel AC1-AC3 or the AC1 by having broken down do not arrive STA1 and directly pass through described AC3, thereby guaranteed normally carrying out of communication.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds necessary general hardware platform, can certainly pass through hardware, but obviously the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product comprises that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of the embodiment of the invention.
Equally, can also also realize that described computer equipment comprises in order to the software of carrying out the method for the invention and moves the necessary hardware of this software by a kind of computer equipment.
A kind of method for updating roaming user address of the present invention and access controller, be not restricted to listed utilization in specification and the execution mode, it can be applied to various suitable the present invention's field fully, for those skilled in the art, can easily realize additional advantage and make amendment, therefore under the situation of the spirit and scope of the universal that does not deviate from claim and equivalency range and limited, the examples shown that the present invention is not limited to specific details, representational equipment and illustrates here and describe.