[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105591941B - A kind of wireless roaming method and device - Google Patents

A kind of wireless roaming method and device Download PDF

Info

Publication number
CN105591941B
CN105591941B CN201510439630.3A CN201510439630A CN105591941B CN 105591941 B CN105591941 B CN 105591941B CN 201510439630 A CN201510439630 A CN 201510439630A CN 105591941 B CN105591941 B CN 105591941B
Authority
CN
China
Prior art keywords
address
sta
public network
level
table item
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
CN201510439630.3A
Other languages
Chinese (zh)
Other versions
CN105591941A (en
Inventor
黄智明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201510439630.3A priority Critical patent/CN105591941B/en
Publication of CN105591941A publication Critical patent/CN105591941A/en
Application granted granted Critical
Publication of CN105591941B publication Critical patent/CN105591941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/021Ensuring consistency of routing table updates, e.g. by using epoch numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2521Translation architectures other than single NAT servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of wireless roaming method and device, this method comprises: after STA establishes session connection by the first private net address and destination server, first AC receives the corresponding second level NAT table item of session connection sent by the 2nd AC, the corresponding relationship of the first private net address and the first public network address including STA;It is that session connection distributes the second public network address according to the first private net address, establishes new second level NAT table item, the corresponding relationship of the first private net address and second public network address including STA;After STA roams into the first AC and certification passes through, MC is sent by the second public network address of STA, so that the second public network address replaces the first public network address as the level-one private net address in the level-one NAT table item of MC;When receiving the data message of STA transmission, which is forwarded according to new second level NAT table item.Therefore the present invention can promote user experience to avoid the problem of service interruption in STA roaming.

Description

A kind of wireless roaming method and device
Technical field
The present invention relates to network technique field more particularly to a kind of wireless roaming methods and device.
Background technique
In WLAN (Wireless Local Access Network, WLAN), by multiple AP (Access Point, wireless access point) provide wirelessly access be known as ESS (Extend Service Set, extended service set), and And user is allowed to be linked into any one AP in the ESS using same authentication information.When user switches from an AP in ESS When to another AP, need to introduce roaming technology to guarantee that its business is not interrupted as far as possible.
In roam procedure, MA (Mobility Agent, roaming broker device) can replace AC (Access Controller, Radio Access Controller) control the wireless access verification process of AP, multiple MA realize three layers of interconnection by MC, lower extension it is all AP belongs to the same ESS.But in large-scale networking, because STA (Station, work cannot be transmitted between the MA of difference group Stand) information, thus will increase MC to be responsible for transmitting the STA information between different grouping, to guarantee that user can roam success.
NAT can also be used on MC (Mobility Controller, Roaming control device) in large-scale networking at present (Network Address Translate, network address translation) technology improves address utilization rate.When STA is changed to from MA1 When on another group of MA2, since the private net address of the STA can change, then MC needs to re-establish NAT mapping table for it , cause the private net address of the STA that may be mapped to different public network address and port up, so that STA and opposite end service Device must not non-interrupting service lay equal stress on and newly establish connection, cause poor user experience.
Summary of the invention
In view of this, the present invention provides a kind of wireless roaming method and device, the address to solve because of STA can change The problem of leading to STA service disconnection.
Specifically, the present invention is achieved through the following technical solutions:
A kind of wireless roaming method, the method are applied to the first AC, and the first AC is connected with MC, and the MC is also connected with 2nd AC, which comprises
After the STA establishes session connection by the first private net address and destination server, the first AC receive by The corresponding second level NAT table item of the session connection that 2nd AC is sent, the second level NAT table item include the of the STA The corresponding relationship of one private net address and the first public network address;
It is that the session connection distributes the second public network address according to first private net address, establishes new second level NAT table , the new second level NAT table item includes that first private net address of the STA and the corresponding of second public network address are closed System;
After the STA roams into the first AC and certification passes through, send the second public network address of the STA to MC, so that second public network address replaces first public network address private as the level-one in the level-one NAT table item of the MC Net address;
When receiving the data message that the STA is sent, which is forwarded according to the new second level NAT table item.
Further, before distributing the second public network address for the session connection, the method also includes:
Check whether first private net address is occupied;
If so, the 2nd AC is notified to replace first private net address.
It is further, described that the data message is forwarded according to the new second level NAT table item, comprising:
When receiving the data message that the STA is sent, according to the new second level NAT table item by the source of the data message Address is substituted for second public network address, and is forwarded to MC.
Based on identical design, the present invention also provides a kind of wireless roaming method, the method is applied to the 2nd AC, described 2nd AC is connected with MC, and the MC is also connected with the first AC, which comprises
When receiving the Address requests message that the STA is sent, the first private net address is distributed for the STA, so that described STA establishes session connection by first private net address and destination server;With distributing the first public network for the session connection Location;
Second level NAT table item is established, the second level NAT table item includes first private net address and described of the STA The corresponding relationship of one public network address;
The second level NAT table item is synchronized to the first AC, so that the first AC is according in the second level NAT table item First private net address be the second public network address of distribution, and make second public network address instead of first public network Location is as the level-one private net address in the level-one NAT table item of the MC.
Further, described to distribute the first private network for the STA as the 2nd AC as Dynamic Host Configuration Protocol server when acting on behalf of Address, further includes:
The first private net address of the STA is requested to the Dynamic Host Configuration Protocol server according to the MAC Address of the STA.
Based on identical design, the present invention also provides a kind of radio roaming device, described device is applied to the first AC, described First AC is connected with MC, and the MC is also connected with the 2nd AC, and described device includes:
List item receiving unit, for after the STA establishes session connection by the first private net address and destination server, The corresponding second level NAT table item of the session connection sent by the 2nd AC is received, the second level NAT table item includes described The first private net address of STA and the corresponding relationship of the first public network address;
Allocation unit, for being that the session connection distributes the second public network address according to first private net address, New second level NAT table item is established, the new second level NAT table item includes first private net address and described of the STA The corresponding relationship of two public network addresses;
Address transmission unit, for after the STA roams into the first AC and authenticates and pass through, by the of the STA Two public network addresses are sent to the MC so that second public network address replace first public network address as the MC one Level-one private net address in grade NAT table item;
Message retransmission unit, for when receiving the data message that the STA is sent, according to the new second level NAT table Item forwards the data message.
Further, described device further include:
Address check unit, for before distributing the second public network address for the session connection, checking that described first is private Whether net address is occupied;If so, the 2nd AC is notified to replace first private net address.
Further, the message retransmission unit, specifically for when receiving the data message that the STA is sent, according to The source address of the data message is substituted for second public network address by the new second level NAT table item, and is forwarded to MC.
Based on identical design, the present invention also provides a kind of radio roaming device, described device is applied to the 2nd AC, described 2nd AC is connected with MC, and the MC is also connected with the first AC, and described device includes:
Allocation unit, for distributing first for the STA when receiving the Address requests message that the STA is sent Private net address, so that the STA establishes session connection by first private net address and destination server;For session company Connect the first public network address of distribution;
List item establishes unit, and for establishing second level NAT table item, the second level NAT table item includes described the first of the STA The corresponding relationship of private net address and first public network address;
List item synchronization unit, for the second level NAT table item to be synchronized to the first AC so that the first AC according to First private net address in the second level NAT table item is the second public network address of distribution, and makes second public network address Instead of first public network address as the level-one private net address in the level-one NAT table item of the MC.
Further, as the 2nd AC as Dynamic Host Configuration Protocol server when acting on behalf of,
The allocation unit is also used to according to the MAC Address of the STA to described in Dynamic Host Configuration Protocol server request The first private net address of STA.
It can be seen that the present invention can be by establishing second level NAT table item on the 2nd AC with saving the first private network of STA The corresponding relationship of location and the first public network address, then the second level NAT table item is synchronized on the first AC, and the first AC can be according to One private net address distributes the second public network address, establishes new second level NAT table item, and contact with the level-one NAT table item foundation on MC, To guarantee to can be realized NAT conversion on MC.Therefore present invention can ensure that the first private net address of STA will not in roam procedure It changes, so as to avoid the problem of service interruption in STA roaming, promotes user experience.
Detailed description of the invention
Fig. 1 is the group-network construction figure in a kind of illustrative embodiments of the present invention;
Fig. 2 is a kind of process flow diagram of one of illustrative embodiments of present invention wireless roaming method;
Fig. 3 is the process flow diagram of another wireless roaming method in a kind of illustrative embodiments of the present invention;
Fig. 4 is the interaction diagrams between the STA-AC1-AC2 in a kind of illustrative embodiments of the present invention;
Fig. 5 a is the interaction diagrams before the roaming in a kind of illustrative embodiments of the present invention between STA-AC1-MC;
Fig. 5 b is the interaction diagrams after the roaming in a kind of illustrative embodiments of the present invention between STA-AC1-MC;
Fig. 6 a is the hardware structure diagram of the first AC in a kind of illustrative embodiments of the present invention where radio roaming device;
Fig. 6 b is a kind of building-block of logic of one of illustrative embodiments of present invention radio roaming device;
Fig. 7 a is the hardware structure diagram of the 2nd AC in a kind of illustrative embodiments of the present invention where radio roaming device;
Fig. 7 b is the building-block of logic of another radio roaming device in a kind of illustrative embodiments of the present invention.
Specific embodiment
Referring to Figure 1, it is group-network construction figure in a kind of illustrative embodiments of the present invention, wherein AC1, AC2 belong to together The different grouping of one ESS, and three layer intercommunications can be realized by MC.Under existing network environment, due to AC1 and AC2 Come to distribute address for STA as Dynamic Host Configuration Protocol server, but the network segment and difference of AC1 and AC2 distribution address, such as AC1 network segment is 1.0.0.1 AC2 network segment is 2.0.0.1.Assuming that STA is under AP1 before roaming, the corresponding Dynamic Host Configuration Protocol server of the STA is AC1/ 1.0.0.1, when STA and destination server establish session connection, the private net address being assigned to is 1.0.0.100, and gateway is 1.0.0.1.When the STA is roamed under AP2, the corresponding Dynamic Host Configuration Protocol server of the STA is AC2/2.0.0.1, and gateway should be 2.0.0.1, since original private net address 1.0.0.100 cannot have been used, STA then needs to obtain to AC2 applied address again Private net address 2.0.0.100 and gateway 2.0.0.1 newly is obtained, it could normal use network service.
For the NAT disposed on MC, because the private net address of the STA is changed, MC needs to build again for it Vertical NAT table item, therefore the STA may be mapped to other public network addresses and port up, so that, destination server is had to It re-establishes and connect with STA interrupting service, the problems such as login is lost is likely to result in during interruption, seriously affects user experience.
To solve the above-mentioned problems, the present invention can save the of STA by establishing second level NAT table item on the 2nd AC The corresponding relationship of one private net address and the first public network address, then the second level NAT table item is synchronized on the first AC, and the first AC The second public network address can be distributed according to the first private net address, establish new second level NAT table item, and with the level-one NAT table item on MC Connection is established, to guarantee to can be realized NAT conversion on MC.Therefore present invention can ensure that the first private net address of STA is roaming It will not change in the process, so as to avoid the problem of service interruption in STA roaming, promote user experience.
Referring to FIG. 2, be a kind of process flow diagram of one of illustrative embodiments of present invention wireless roaming method, This method is applied to the first AC, and the first AC is connected with MC, and the MC is also connected with the 2nd AC, this method comprises:
Step 201, after the STA establishes session connection by the first private net address and destination server, described first AC receives the corresponding second level NAT table item of the session connection sent by the 2nd AC, and the second level NAT table item includes described The first private net address of STA and the corresponding relationship of the first public network address;
In the present embodiment, after establishing session connection due to STA and destination server, the 2nd AC can build for the session connection Vertical second level NAT table item, and can be synchronized on the first AC, therefore the first AC can receive the second level NAT table item, including institute State the first private net address of STA and the corresponding relationship of the first public network address.In the present invention, the 2nd AC can represent the ESS In support roaming function in addition to the first AC AC, be not limited only to specific a certain AC.
Step 202 is that the session connection distributes the second public network address according to first private net address, establishes new two Grade NAT table item, the new second level NAT table item includes first private net address and second public network address of the STA Corresponding relationship;
In the present embodiment, the first AC can be session company according to the first private net address in the second NAT table item Connect the second public network address of distribution.Later, the first AC can establish new second level NAT table item, the new second level for the session connection It include the corresponding relationship of first private net address and second public network address in NAT table item, to guarantee that the STA is roamed into When one AC, private net address will not change, and avoid the problem that service disconnection.
Step 203, the STA roam into the first AC and authenticate pass through after, by the second public network address of the STA It is sent to MC, so that second public network address replaces first public network address as in the level-one NAT table item of the MC Level-one private net address;
In the present embodiment, when STA is roamed on the first AC and authenticate by when, the first AC can be by the STA The second public network address be sent to MC so that MC using second public network address replace first public network address as described one Level-one private net address in grade NAT table item.Therefore the present invention can be built by second public network address and the level-one NAT table item on MC Vertical connection, to guarantee to can be realized NAT conversion on MC.
Step 204 when receiving the data message that the STA is sent, forwards the data according to the new second level NAT table item Message.
It in the present embodiment, can be according to two newly when the first AC receives the data message that the STA is sent Grade NAT table item forwards the data message.Specifically, when the first AC receives the data message that the STA is sent, it can be according to institute It states new second level NAT table item and the source address of the data message is substituted for second public network address, and be forwarded to MC.Due to The level-one private net address in level-one NAT table item in MC has replaced with second public network address, therefore MC may be implemented one Grade NAT conversion, and guarantee that the first private net address of STA will not change in roam procedure.
It can be seen that the present invention can be by establishing second level NAT table item on the 2nd AC with saving the first private network of STA The corresponding relationship of location and the first public network address, then the second level NAT table item is synchronized on the first AC, and the first AC can be according to One private net address distributes the second public network address, establishes new second level NAT table item, and contact with the level-one NAT table item foundation on MC, To guarantee to can be realized NAT conversion on MC.Therefore present invention can ensure that the first private net address of STA will not in roam procedure It changes, so as to avoid the problem of service interruption in STA roaming, promotes user experience.
In optional embodiment of the present invention, the first AC is the session after according to first private net address received Before connection the second public network address of distribution, can further check whether first private net address is occupied;If then leading to Know that the 2nd AC replaces first private net address.To guarantee that private net address will not generate conflict when STA is roamed.
In optional embodiment of the present invention, due to address resource shortage, the side NAT-PT also can be used in second level NAT Formula is similar to the transformation of addr:port to addr:port in level-one NAT, then first private net address can also be by the One private net address adds port numbers to indicate, first public network address can add port numbers by the first public network address to indicate, Therefore the occupancy of address resource can be reduced.
In optional embodiment of the present invention, second level NAT table item further includes the state of AC, such as has used state or spare shape State usually can refer to the AC being attached in the ESS with the STA with state;Stand-by state can refer to support that the STA is unrestrained in the ESS Trip but not connected AC.When STA accesses an AC, the state in the second level NAT table item of the AC is then to have used state.When this STA and when being disconnected with the AC of state, it is believed that the service ending of the STA, then the AC can will be corresponding with the STA Second level NAT table entry deletion, so as to save network storage space.
Referring to FIG. 3, being the process flow of another wireless roaming method in a kind of illustrative embodiments of the present invention Figure, the method are applied to the 2nd AC, and the 2nd AC is connected with MC, and the MC is also connected with the first AC, which comprises
Step 301, when receiving the Address requests message that the STA is sent, distribute the first private net address for the STA, So that the STA establishes session connection by first private net address and destination server;For session connection distribution the One public network address;
In the present embodiment, after the 2nd AC receives the Address requests message that STA is sent, since the 2nd AC can be used as DHCP Server uses, therefore the Address requests message that the 2nd AC can be sent according to STA is that the STA distributes the first private net address, So that the STA can access wireless network by first private net address, and session connection is established with the destination server of distal end.
In optional embodiment of the present invention, when proxy server of the 2nd AC as Dynamic Host Configuration Protocol server, second AC can request the first private net address of the STA according to the MAC Address of STA to the Dynamic Host Configuration Protocol server.Due to each STA's MAC Address is different, therefore the problem of can conflict to avoid request address on the 2nd AC and the first AC, thereby may be ensured that every A STA can request corresponding private net address.
In the present embodiment, when STA and destination server conversate, the 2nd AC can distribute for the session connection First public network address, the second level NAT which can be used to implement on the 2nd AC are passed through, and first public network Location is also used as the level-one private net address in the level-one NAT table item that MC is session connection foundation, thus on the 2nd AC Second level NAT table item on MC level-one NAT table item foundation contact.
Step 302 establishes second level NAT table item, and the second level NAT table item includes first private net address of the STA With the corresponding relationship of first public network address;
In the present embodiment, the 2nd AC can establish second level NAT table item according to for the session connection.Second level NAT The corresponding relationship of the first private net address and the first public network address in list item including the STA.
The second level NAT table item is synchronized to the first AC by step 303, so that the first AC is according to the second level First private net address in NAT table item is the second public network address of distribution, and is made described in the second public network address replacement First public network address is as the level-one private net address in the level-one NAT table item of the MC.
In the present embodiment, the second level NAT table item can be synchronized to the first AC by the 2nd AC, so that described first AC is the second public network address of distribution according to first private net address in the second level NAT table item, so that the first AC exists The STA issues MC when local authentication passes through, by second public network address, and MC is made to replace institute with second public network address The first public network address is stated as the level-one private net address in the level-one NAT table item.So as to so that the first AC can be according to new Second level NAT table item by the data message forwarding of STA to MC.
It can be seen that the present invention can be by establishing second level NAT table item on the 2nd AC with saving the first private network of STA The corresponding relationship of location and the first public network address, then the second level NAT table item is synchronized on the first AC, and the first AC can be according to One private net address distributes the second public network address, establishes new second level NAT table item, and contact with the level-one NAT table item foundation on MC, To guarantee to can be realized NAT conversion on MC.Therefore present invention can ensure that the first private net address of STA will not in roam procedure It changes, so as to avoid the problem of service interruption in STA roaming, promotes user experience.
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, right below based on the group-network construction of Fig. 1 Scheme of the present invention is described in further detail.
In the present embodiment, AC1 is consistent with the DHCP network segment of AC2, it is assumed that the user side address of AC1 and AC2 is 172.0.0.1.When STA requests online at AC1 for the first time, STA can send dhcp address request message to AC1 to apply The private net address of session connection is established with destination server.Interaction flow between STA-AC1-AC2 is as shown in figure 4, wherein wrap It includes:
After AC1 receives dhcp address request message, the first private net address 172.0.0.10 is distributed for the session connection: 2000, gateway 172.0.0.1, and be to STA return the first private net address 172.0.0.10:2000 of carrying and gateway 172.0.0.1 DHCP response message, STA receive the DHCP response message, obtain the first private net address 172.0.0.10: 2000, gateway 172.0.0.1.
After the first private net address 172.0.0.10:2000 and gateway 172.0.0.1 that STA is obtained, it can be sent to AP1 Authentication information carries out authentication, after certification passes through, AC1 can pre-allocate the first public network address for the session connection and (be assumed to be 11.0.0.100:1000), so that STA is communicated by first public network address 11.0.0.100:1000 with MC.
AC1 establishes second level NAT table item to save the MAC Address 1-1-1 of STA, the first private net address 172.0.0.10 simultaneously: 2000 and first public network address 11.0.0.100:1000 corresponding relationship, the second level NAT table item is as shown in table 1:
STA ID MAC First public network IP First private network IP State
1 1-1-1 11.0.0.100:1000 172.0.0.10:2000 Used
Table 1
Wherein, the state of AC1 is that " Used " indicates that STA is online at AC1.
Meanwhile the user information of STA, authentication information and the second level NAT table item etc. can be synchronized to AC2 by AC1.
After AC2 receives the synchronizing information, i.e. starting roaming pretreatment.
AC2 is first the second new public network address of STA predistribution according to the first private net address 172.0.0.10:2000 12.0.0.100:1000 and saving.The second new public network address is the address that STA is communicated at AC2 with MC.AC2 can be with New second level NAT table item is further created according to the second new public network address, as shown in table 2:
STA ID MAC Second public network IP First private network IP State
1 1-1-1 12.0.0.100:1000 172.0.0.10:2000 Pre-Roam
Table 2
Wherein, the state of AC2 is that " Pre-Roam " indicates that STA is online not at AC2.
After above-mentioned processing, STA from AC1 access network when, it is assumed that STA send message destination address be 10.0.0.1:1000 the interaction flow before roaming between STA-AC1-MC is as shown in Figure 5 a, including:
When the message passes through AC1, because AC1 has generated second level NAT table item (table 1), therefore source address (the first private network Location) 172.0.0.10:2000 is converted into the first public network address 11.0.0.100:1000, and destination address is constant, is subsequently forwarded to MC。
When message reaches MC, according to the level-one NAT table item configured on MC, by the source address 11.0.0.100 of the message: 1000 are converted into public network address 16.182.17.100:32484, are sent to the destination service that destination address is 10.0.0.1:1000 Device.The level-one NAT table item is as shown in table 3:
Source address Public network address Destination address
11.0.0.100:1000 16.182.17.100:32484 10.0.0.1:1000
Table 3
When MC receives the response message of destination server, replaced according to above-mentioned replacement process is counter, AC2 also carries out phase The anti-replacement operation answered, enables the end STA to receive the response message.
When STA is roamed to AP2, according to normal roaming process, it is connected to AP2, and it is online to initiate roam-requests authentication-exempt. AC2 carries out identification checkup to the STA according to the authentication information in synchronizing information, and after certification passes through, STA may be connected to AP2.This When, it is Used that AC2, which can modify the state in the second level NAT table item locally saved, and notifies AC1 by corresponding table item status modifier For Pre-Roam.Meanwhile AC2 notifies MC, the level-one private net address (source address) of STA to be changed to 12.0.0.100: 1000。
After MC is connected to the message, local level-one NAT table item (table 3) is searched, source address 11.0.0.100:1000 is corresponding List item replace all with 12.0.0.100:1000, replaced level-one NAT table item is as shown in table 4:
Source address Public network address Destination address
12.0.0.100:1000 16.182.17.100:32484 10.0.0.1:1000
Table 4
After roaming, the interaction flow between STA-AC2-MC is as shown in Figure 5 b, including:
When the message that STA is sent passes through AC2, because AC2 has generated second level NAT table item (table 2), therefore source address (the One private net address) 172.0.0.10:2000 is converted into the second public network address 12.0.0.100:1000, and destination address is not Become, is subsequently forwarded to MC.
When message reaches MC, according to the level-one NAT table item (table 4) configured on MC, source address 12.0.0.100:1000 is turned It changes public network address 16.182.17.100:32484 into, is sent to destination server.When MC receives response message, replaced according to above-mentioned Change that process is counter to be replaced, AC2 also carries out corresponding anti-replacement operation, and the end STA is enable to receive the response message.
It can be seen that the source address of STA is only changed in the repeating process of AC to MC, and taken relative to target It is engaged in for device, the source address of STA is there is no any variation, therefore STA may be implemented the unaware of distal end the case where in the present invention AP belonging to lower change, and guarantee that business is not interrupted.
Based on identical design, the present invention also provides a kind of radio roaming device, described device can by software realization, It can also be realized by way of hardware or software and hardware combining.Taking software implementation as an example, radio roaming device of the invention is made It is that corresponding computer program instructions in memory are read by the CPU of equipment where it for the device on a logical meaning After run.
Fig. 6 a and Fig. 6 b is please referred to, is a kind of one of illustrative embodiments of present invention radio roaming device 600, institute It states device to be connected applied to the first AC, the first AC with MC, the MC is also connected with the 2nd AC, the basic running environment of described device Including CPU, memory and other hardware, from logic level, described device 600 includes:
List item receiving unit 601, for establishing session connection by the first private net address and destination server in the STA Afterwards, the corresponding second level NAT table item of the session connection sent by the 2nd AC is received, the second level NAT table item includes institute State the first private net address of STA and the corresponding relationship of the first public network address;
Allocation unit 602 is used for according to first private net address for the session connection the second public network of distribution Location, establishes new second level NAT table item, and the new second level NAT table item includes first private net address of the STA and described The corresponding relationship of second public network address;
Address transmission unit 603, for the STA roam into the first AC and authenticate pass through after, by the STA's Second public network address is sent to the MC, so that second public network address replaces first public network address as the MC's Level-one private net address in level-one NAT table item;
Message retransmission unit 604, for when receiving the data message that the STA is sent, according to the new second level NAT List item forwards the data message.
Optionally, described device 600 further include:
Address check unit 605, for checking described first before distributing the second public network address for the session connection Whether private net address is occupied;If so, the 2nd AC is notified to replace first private net address.
Optionally, the message retransmission unit 604, specifically for when receiving the data message that the STA is sent, according to The source address of the data message is substituted for second public network address by the new second level NAT table item, and is forwarded to MC.
Fig. 7 a and Fig. 7 b is please referred to, is another radio roaming device 700 in a kind of illustrative embodiments of the present invention, Described device is applied to the 2nd AC, and the 2nd AC is connected with MC, and the MC is also connected with the first AC, and described device runs ring substantially Border includes CPU, memory and other hardware, and from logic level, described device 700 includes:
Allocation unit 701, for when receiving the Address requests message that the STA is sent, for STA distribution the One private net address, so that the STA establishes session connection by first private net address and destination server;For the session Connection the first public network address of distribution;
List item establishes unit 702, and for establishing second level NAT table item, the second level NAT table item includes the described of the STA The corresponding relationship of first private net address and first public network address;
List item synchronization unit 703, for the second level NAT table item to be synchronized to the first AC, so that the first AC It is the second public network address of distribution according to first private net address in the second level NAT table item, and makes second public network Address replaces first public network address as the level-one private net address in the level-one NAT table item of the MC.
Optionally, as the 2nd AC as Dynamic Host Configuration Protocol server when acting on behalf of,
The allocation unit 701 is also used to request institute to the Dynamic Host Configuration Protocol server according to the MAC Address of the STA State the first private net address of STA.
In conclusion the present invention can be by establishing second level NAT table item on the 2nd AC with saving the first private network of STA The corresponding relationship of location and the first public network address, then the second level NAT table item is synchronized on the first AC, and the first AC can be according to One private net address distributes the second public network address, establishes new second level NAT table item, and contact with the level-one NAT table item foundation on MC, To guarantee to can be realized NAT conversion on MC.Therefore present invention can ensure that the first private net address of STA will not in roam procedure It changes, so as to avoid the problem of service interruption in STA roaming, promotes user experience.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of wireless roaming method, which is characterized in that the method is applied to the first AC, the first AC and Roaming control device MC is connected, and the MC is also connected with the 2nd AC, which comprises
After STA establishes session connection by the first private net address and destination server, the first AC is received by described second The session connection corresponding second level NAT table item that AC is sent, the second level NAT table item include the first private network of the STA The corresponding relationship of location and the first public network address;
It is that the session connection distributes the second public network address according to first private net address, establishes new second level NAT table item, institute Stating new second level NAT table item includes first private net address of the STA and the corresponding relationship of second public network address;
After the STA roams into the first AC and certification passes through, MC is sent by the second public network address of the STA, with Second public network address is set to replace first public network address as the level-one private network in the level-one NAT table item of the MC Location;
When receiving the data message that the STA is sent, which is forwarded according to the new second level NAT table item.
2. the method according to claim 1, wherein for the session connection distribute the second public network address before, The method also includes:
Check whether first private net address is occupied;
If so, the 2nd AC is notified to replace first private net address.
3. the method according to claim 1, wherein described forward the number according to the new second level NAT table item According to message, comprising:
When receiving the data message that the STA is sent, according to the new second level NAT table item by the source address of the data message It is substituted for second public network address, and is forwarded to MC.
4. a kind of wireless roaming method, which is characterized in that the method is applied to the 2nd AC, the 2nd AC and Roaming control device MC is connected, and the MC is also connected with the first AC, which comprises
When receiving the Address requests message of STA transmission, the first private net address is distributed for the STA, so that the STA passes through institute It states the first private net address and destination server establishes session connection;The first public network address is distributed for the session connection;
Establish second level NAT table item, the second level NAT table item includes first private net address of the STA and described first public The corresponding relationship of net address;
The second level NAT table item is synchronized to the first AC, so that the first AC is according to the institute in the second level NAT table item The first private net address is stated as the second public network address of distribution, and makees second public network address instead of first public network address For the level-one private net address in the level-one NAT table item of the MC.
5. according to the method described in claim 4, it is characterized in that, when the 2nd AC is as Dynamic Host Configuration Protocol server when acting on behalf of, It is described to distribute the first private net address for the STA, further includes:
The first private net address of the STA is requested to the Dynamic Host Configuration Protocol server according to the MAC Address of the STA.
6. a kind of radio roaming device, which is characterized in that described device is applied to the first AC, the first AC and Roaming control device MC is connected, and the MC is also connected with the 2nd AC, and described device includes:
List item receiving unit, for receiving by institute after STA establishes session connection by the first private net address and destination server The corresponding second level NAT table item of the session connection of the 2nd AC transmission is stated, the second level NAT table item includes the first of the STA The corresponding relationship of private net address and the first public network address;
Allocation unit is established for being that the session connection distributes the second public network address according to first private net address New second level NAT table item, the new second level NAT table item include first private net address of the STA and described second public The corresponding relationship of net address;
Address transmission unit, it is public by the second of the STA for after the STA roams into the first AC and authenticates and pass through Net address is sent to the MC, so that second public network address replaces level-one of first public network address as the MC Level-one private net address in NAT table item;
Message retransmission unit, for being turned according to the new second level NAT table item when receiving the data message that the STA is sent Send out the data message.
7. device according to claim 6, which is characterized in that described device further include:
Address check unit, for before distributing the second public network address for the session connection, checking first private network Whether location is occupied;If so, the 2nd AC is notified to replace first private net address.
8. device according to claim 6, which is characterized in that
The message retransmission unit, specifically for when receiving the data message that the STA is sent, according to the new second level The source address of the data message is substituted for second public network address by NAT table item, and is forwarded to MC.
9. a kind of radio roaming device, which is characterized in that described device is applied to the 2nd AC, the 2nd AC and Roaming control device MC is connected, and the MC is also connected with the first AC, and described device includes:
Allocation unit, for distributing the first private net address for the STA when receiving the Address requests message of STA transmission, So that the STA establishes session connection by first private net address and destination server;For session connection distribution the One public network address;
List item establishes unit, and for establishing second level NAT table item, the second level NAT table item includes first private network of the STA The corresponding relationship of address and first public network address;
List item synchronization unit, for the second level NAT table item to be synchronized to the first AC, so that the first AC is according to First private net address in second level NAT table item is the second public network address of distribution, and replaces second public network address First public network address is as the level-one private net address in the level-one NAT table item of the MC.
10. device according to claim 9, which is characterized in that when the 2nd AC is as Dynamic Host Configuration Protocol server when acting on behalf of,
The allocation unit is also used to request the STA's to the Dynamic Host Configuration Protocol server according to the MAC Address of the STA First private net address.
CN201510439630.3A 2015-07-23 2015-07-23 A kind of wireless roaming method and device Active CN105591941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510439630.3A CN105591941B (en) 2015-07-23 2015-07-23 A kind of wireless roaming method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510439630.3A CN105591941B (en) 2015-07-23 2015-07-23 A kind of wireless roaming method and device

Publications (2)

Publication Number Publication Date
CN105591941A CN105591941A (en) 2016-05-18
CN105591941B true CN105591941B (en) 2018-12-25

Family

ID=55931175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510439630.3A Active CN105591941B (en) 2015-07-23 2015-07-23 A kind of wireless roaming method and device

Country Status (1)

Country Link
CN (1) CN105591941B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108011986B (en) * 2016-10-31 2020-04-03 华为技术有限公司 Method for guiding and forwarding data message, access point equipment and network equipment
CN109067659B (en) * 2018-08-20 2021-08-06 普联技术有限公司 Session establishing method, router and session system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101146045A (en) * 2007-10-11 2008-03-19 杭州华三通信技术有限公司 Radio LAN and its access method and access device
CN102497655A (en) * 2011-12-13 2012-06-13 南京恩瑞特实业有限公司 Dual network card cooperative handover method based on train position
US8254309B2 (en) * 2006-12-20 2012-08-28 Kabushiki Kaisha Toshiba Wireless communication equipment system for wireless local area network communication, and wireless communication sequence for the system
CN103188154A (en) * 2013-04-19 2013-07-03 杭州华三通信技术有限公司 Method for network address translation and board card
CN103945361A (en) * 2014-04-22 2014-07-23 福建星网锐捷网络有限公司 Processing method and system for roaming of sites in wireless local area network and wireless access points
CN104254147A (en) * 2013-06-25 2014-12-31 中国移动通信集团广东有限公司 Session control method, device and GPRS gateway control node GGSN

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8254309B2 (en) * 2006-12-20 2012-08-28 Kabushiki Kaisha Toshiba Wireless communication equipment system for wireless local area network communication, and wireless communication sequence for the system
CN101146045A (en) * 2007-10-11 2008-03-19 杭州华三通信技术有限公司 Radio LAN and its access method and access device
CN102497655A (en) * 2011-12-13 2012-06-13 南京恩瑞特实业有限公司 Dual network card cooperative handover method based on train position
CN103188154A (en) * 2013-04-19 2013-07-03 杭州华三通信技术有限公司 Method for network address translation and board card
CN104254147A (en) * 2013-06-25 2014-12-31 中国移动通信集团广东有限公司 Session control method, device and GPRS gateway control node GGSN
CN103945361A (en) * 2014-04-22 2014-07-23 福建星网锐捷网络有限公司 Processing method and system for roaming of sites in wireless local area network and wireless access points

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PAPAR: Pairing Based Authentication Protocol with Anonymous Roaming for Wireless Mesh Networks;Nazatul Haque Sultan; Nityananda Sarma;《2014 International conference on Information Technology》;20141224;第I136-56页 *
高速移动子网的切换与漫游关键技术研究;钱红艳;《中国博士学位论文全文数据库 信息科技辑》;20120115(第1期);第155-160页 *

Also Published As

Publication number Publication date
CN105591941A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN105637805B (en) Enhance mobile alternate channel to solve the node failure in wired networks
TWI660610B (en) A resource allocation method of a wireless communication system and equipment and system thereof
US9967738B2 (en) Methods and arrangements for enabling data transmission between a mobile device and a static destination address
CN111612466B (en) Consensus and resource transmission method, device and storage medium
CN102404418B (en) Method, device and system for distributing IP (internet protocol) address for user terminal
US20120011230A1 (en) Utilizing a Gateway for the Assignment of Internet Protocol Addresses to Client Devices in a Shared Subset
US8611358B2 (en) Mobile network traffic management
CN104158916A (en) Method and device for device accessing to network
WO2016184317A1 (en) Method, device and system for allocating ap
KR20100103639A (en) Apparatus and method for concurrently accessing multiple wireless networks
JP2017526298A (en) Method and system for managing network traffic
EP2432194B1 (en) Method, device and system for information synchronization
JP2017022693A (en) Device and method for allocating internetwork address
WO2021008591A1 (en) Data transmission method, device, and system
CN103401954B (en) The implementation method of virtual DHCP
CN104349511B (en) The distribution method and device of AP addresses in wlan network
CN105591941B (en) A kind of wireless roaming method and device
CN104253878A (en) VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface
CN112689029A (en) Method, device and equipment for acquiring IP address of group user
CN107659930A (en) A kind of AP connection control methods and device
CN103414800B (en) A kind of NAT passes through the distribution of middle distributed relay server and system of selection and system
CN115955456A (en) IPv 6-based enterprise campus network and networking method
JPWO2014061314A1 (en) Content distribution method
CN104717640A (en) Realization method for wireless network communication based on positioning
US20160323082A1 (en) Communication device and managing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: NEW H3C TECHNOLOGIES Co.,Ltd.

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

Applicant before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240704

Address after: Room 301, Block D, Building 1, No. 459 Jianghong Road, Hangzhou City, Zhejiang Province, 310052

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

Country or region before: China