CN106211141B - A kind of retransmission method and device of the stream of WLAN roaming stations - Google Patents

A kind of retransmission method and device of the stream of WLAN roaming stations Download PDF

Info

Publication number
CN106211141B
CN106211141B CN201510218813.2A CN201510218813A CN106211141B CN 106211141 B CN106211141 B CN 106211141B CN 201510218813 A CN201510218813 A CN 201510218813A CN 106211141 B CN106211141 B CN 106211141B
Authority
CN
China
Prior art keywords
data message
address
stream
forwarding list
list 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
CN201510218813.2A
Other languages
Chinese (zh)
Other versions
CN106211141A (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 CN201510218813.2A priority Critical patent/CN106211141B/en
Publication of CN106211141A publication Critical patent/CN106211141A/en
Application granted granted Critical
Publication of CN106211141B publication Critical patent/CN106211141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the retransmission methods and device of a kind of stream of WLAN roaming stations, to solve the problems, such as that STA flow amount forward efficiency existing in the prior art is low and waste network bandwidth resources, roaming service customer's Service disruption ratio are high.This method comprises: the first AP receives the first data message that STA is sent, first AP is associated AP after STA roaming, IP address of the source IP address of first data message in the subnet where the 2nd AP, the 2nd AP are associated AP before the STA is roamed;First data message is the data message after the STA is associated with the first AP, in the newly generated stream of STA;The source IP address of first data message is converted to specified IP address, IP address of the specified IP address in the subnet where the first AP by the first AP, and forwards first data message after conversion.

Description

A kind of retransmission method and device of the stream of WLAN roaming stations
Technical field
The present invention relates to the retransmission method of field of communication technology more particularly to a kind of stream of WLAN roaming stations and Device.
Background technique
Terminal conduct in WLAN (English: wireless local area network, abbreviation: WLAN) Roaming refers to the website (English: station, abbreviation: STA) of WLAN in a wlan, under the premise of guaranteeing that business is unbroken, STA Movement between access point (English: access point, abbreviation AP).
In a wlan, it if the number of AP is relatively more, may be managed by multiple wireless lan controllers, therefore STA is unrestrained Associated AP may be managed by identical wireless lan controller before trip and after roaming, as shown in Figure 1, it is also possible to different Wireless lan controller management, as shown in Figure 2.In Fig. 2, local AP (English: home AP, abbreviation HAP) refer to STA into Enter after WLAN associated AP for the first time;Managing the HAP is the first wireless lan controller.Nonlocal AP (English: foreign AP, Abbreviation FAP) refer to associated AP after STA roaming, manage the FAP is the control of the second WLAN.
Roaming is divided into two layers of roaming and three layers of roaming.Two layers of roaming refer to that STA is roamed in a subnet, that is, before roaming The associated AP of the STA and associated AP of STA after roaming is in the same subnet.Therefore, under two layers of roaming, the Internet protocol of subnet (Internet Protocol, abbreviation IP) address prefix does not change.In three layers of roaming, STA is from a sub- network roaming to another The IP address prefix of one subnet, two subnets is different.Under three layers of roaming scence, need to guarantee that the business of STA is not interrupted, i.e., The IP address of STA cannot change.But since STA is via a sub- network roaming to another subnet, the IP of the STA Address is the IP address in the subnet before roaming, therefore, after the stream that STA is generated cannot be by roaming in the network where after roaming Subnet gateway forwards.An equipment in the subnet generally accessed for the first time in a wlan using STA thus as home agent, The stream of STA after roaming is forwarded to home agent by tunnel, then the son that the STA is accessed for the first time is transmitted to by home agent The gateway of net.By taking HAP is home agent as an example, the stream that STA is generated after roaming first passes through associated FAP after roaming, then passes through Tunnel between FAP and the second wireless lan controller for managing the FAP is transmitted to the second wireless lan controller, then by Second wireless lan controller passes through the tunnel between the second wireless lan controller and the first wireless lan controller It is transmitted to the first wireless lan controller, the first wireless lan controller is then passed through by the first wireless lan controller Tunnel between HAP is transmitted to HAP, and the gateway forwards of the subnet as where HAP through itself are gone out.
Therefore, be forwarded by multiple tunnels, leading to forward-path, there are more detours: it is unrestrained that spanning gateway occurs in user It swims under scene, tunnel is spliced by three sections, and the stream that STA is generated after roaming needs to control by the first WLAN Device and the second wireless lan controller get to home agent.Therefore in the wireless lan controller of AP and the management AP Distance farther out when, the forward efficiency of the stream of STA is low and waste network bandwidth resources, while can occupy non-roaming service traffics Bandwidth.
Summary of the invention
The embodiment of the present invention provides the retransmission method and device of a kind of stream of local area network roaming stations, to solve STA flow The problem of measuring low forward efficiency and waste network bandwidth resources.
In a first aspect, the embodiment of the invention provides a kind of retransmission methods of the stream of WLAN roaming stations, comprising:
The first data message that first access point AP receiving station STA is sent, the first AP are to close after the STA is roamed The AP of connection, IP address of the source IP address of first data message in the subnet where the 2nd AP, the 2nd AP is institute State associated AP before STA is roamed;First data message is after the STA is associated with the first AP, in the newly generated stream of STA Data message;
The source IP address of first data message is converted to specified IP address by the first AP, and forwards conversion First data message afterwards, IP address of the specified IP address in the subnet where the first AP.
With reference to first aspect, in the first possible implementation of the first aspect, further includes:
First AP receives the second data message that the STA is sent, and second data message is in the old stream of the 2nd AP Data message, the old stream of the 2nd AP is the stream that the STA is generated in the case where the STA is associated with two AP;
First AP sends second data message by the tunnel between the first AP and the 2nd AP To the 2nd AP.
The possible implementation of with reference to first aspect the first, in second of possible implementation of first aspect In, before the first AP receives the second data message that STA is sent, the method further include:
First AP receives the tuple of the old stream of the 2nd AP and the IP address of the 2nd AP;
First AP establishes the first stream forwarding list item in stream forwarding list, and the key assignments of first stream forwarding list item is institute The tuple of the old stream of the 2nd AP is stated, the content of first stream forwarding list item includes the tunnel in the tunnel between the first AP and the 2nd AP Road purpose IP address, the tunnel purpose IP address are the IP address of the 2nd AP;
First AP sends second data message by the tunnel between the first AP and the 2nd AP To the 2nd AP, comprising:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the second data message, and described first It is first stream forwarding list item that AP, which is found with the matched stream forwarding list item of the second data message, is obtained described first-class The IP address of the 2nd AP in forwarding-table item;
First AP sends second number using the tunnel for the IP address that tunnel purpose IP address is the 2nd AP According to message.
With reference to first aspect with the first any one into second of possible implementation of first aspect, In the third possible implementation of one side, the first AP converts the source IP address of first data message For the specified IP address, comprising:
First AP searched in stream forwarding list with the matched stream forwarding list item of the first data message, when described the When one AP finds stream forwarding list item matched with first data message, the port numbers in the stream forwarding list item are obtained, The source IP address of first data message is converted to the specified IP address by the first AP, and by described first The source port number of data message is converted to the port numbers in the matched stream forwarding list item of first data message.
With reference to first aspect with the first any one into second of possible implementation of first aspect, In 4th kind of possible implementation of one side, the first AP converts the source IP address of first data message For the specified IP address, comprising:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the first data message, when the stream When lacking stream forwarding list item matched with first data message in forwarding table, the first AP is first data message The source IP address of first data message is converted to the specified IP by affiliated stream assignment of port numbers, the first AP Address, and the source port number of first data message is converted to the port numbers of distribution;
First AP establishes the second stream forwarding list item in stream forwarding list, and the key assignments of second stream forwarding list item is institute The tuple of stream belonging to the first data message is stated, the content of second stream forwarding list item includes the port numbers of distribution.
The 4th kind of possible implementation with reference to first aspect, in the 5th kind of possible implementation of first aspect In, further includes:
First AP establishes third stream forwarding list item in stream forwarding list, and the key assignments of the third stream forwarding list item is to turn The tuple of stream belonging to first data message after changing, the content of first stream forwarding list item include described before converting The source IP address of first data message and the source port number of first data message before conversion;
First AP receives the third data message for being sent to the STA, after the third data message belongs to conversion First data message belonging to stream, the purpose IP address of the third data message is the specified IP address, described The destination slogan of third data message is the port numbers of distribution;
The purpose IP address of the third data message is converted to the source for stating the first data message by the first AP The destination slogan of the third data message is converted to the source port of the first data message before the conversion by IP address Number;
The third data message after the first AP forwarding conversion.
Second aspect, it is described the embodiment of the invention provides a kind of retransmission unit of the stream of WLAN roaming stations Device is set in the first AP, and the first AP is associated AP after STA roaming, and described device includes:
Receiving module, for the first data message that receiving station STA is sent, the source IP address of first data message For the IP address in the subnet where the 2nd AP, the 2nd AP is associated AP before the STA is roamed;First datagram Text is the data message in the newly generated stream of STA after the STA is associated with the first AP;
The source IP address of processing module, the first data message for receiving the receiving module is converted to finger Determine IP address;
Sending module, for first data message after forwarding the processing module to convert, the specified IP address For the IP address in the subnet where the first AP.
In conjunction with second aspect, in the first possible implementation of the second aspect, the receiving module is also used to connect The second data message that the STA is sent is received, second data message is the data message in the old stream of the 2nd AP, described the The old stream of two AP is the stream that the STA is generated in the case where the STA is associated with two AP;
The sending module, second data message for being also used to receive the receiving module pass through described first Tunnel between AP and the 2nd AP is sent to the 2nd AP.
In conjunction with the first possible implementation of second aspect, in second of possible implementation of second aspect In, the receiving module before being also used to receive the second data message that STA is sent, receives the tuple of the old stream of the 2nd AP With the IP address of the 2nd AP;
The processing module is also used to establish the first stream forwarding list item, first stream forwarding list item in stream forwarding list Key assignments be the 2nd AP old stream tuple, the content of first stream forwarding list item includes between the first AP and the 2nd AP Tunnel tunnel purpose IP address, the tunnel purpose IP address be the 2nd AP IP address;And in stream forwarding list Lookup and the matched stream forwarding list item of the second data message, find and the matched stream forwarding list of the second data message Item is first stream forwarding list item, obtains the IP address of the 2nd AP in first stream forwarding list item;
The sending module sends out second data message by the tunnel between the first AP and the 2nd AP Giving the 2nd AP is specially tunnel of the sending module using the IP address that tunnel purpose IP address is the 2nd AP Send second data message.
In conjunction with any one of the first of second aspect and second aspect into second of possible implementation, In the third possible implementation of two aspects, the processing module turns the source IP address of first data message It is changed to the specified IP address, specifically:
Searched in stream forwarding list with the matched stream forwarding list item of the first data message, when finding and described first When the matched stream forwarding list item of data message, the port numbers in the stream forwarding list item are obtained, by first data message The source IP address is converted to the specified IP address, and the source port number of first data message is converted to described Port numbers in the matched stream forwarding list item of one data message.
In conjunction with any one of the first of second aspect and second aspect into second of possible implementation, In 4th kind of possible implementation of two aspects, the processing module turns the source IP address of first data message It is changed to the specified IP address, specifically:
Lookup and the matched stream forwarding list item of the first data message in stream forwarding list, when scarce in the stream forwarding list When weary stream forwarding list item matched with first data message, the first AP is flow point belonging to first data message With port numbers, the source IP address of first data message is converted to the specified IP address by the first AP, and The source port number of first data message is converted to the port numbers of distribution;And the second circulation is established in stream forwarding list Forwarding list item, the key assignments of second stream forwarding list item are the tuple of stream belonging to first data message, second circulation The content of forwarding list item includes the port numbers of distribution.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect In, the processing module is also used to establish third stream forwarding list item, the key assignments of the third stream forwarding list item in stream forwarding list For the tuple of stream belonging to first data message after conversion, the content of first stream forwarding list item includes before converting The source IP address of first data message and the source port number of first data message before conversion;
The receiving module is also used to receive the third data message for being sent to the STA, the third data message category Stream belonging to first data message after conversion, the purpose IP address of the third data message is for the specified IP Location, the destination slogan of the third data message are the port numbers of distribution;
The processing module, the purpose IP address for the third data message for being also used to receive the receiving module The source IP address for stating the first data message is converted to, the destination slogan of the third data message is converted into described turn The source port number of the first data message before changing;
The sending module, the third data message after being also used to that the processing module is forwarded to convert.
Since STA is in initially access WLAN, the IP address of STA just has determined as the son where the AP initially accessed IP address in net, the source IP address of the data message of newly generated stream is the IP address of STA after roaming, is accessed after roaming AP the data message can not be forwarded in the subnet where the AP, require roaming tunnel forwarding.Implemented using the present invention The scheme that example provides, the newly generated stream of STA do not need to be forwarded by roaming tunnel, but by the source of the data message of the stream IP address network address translation (English: network address translation, referred to as: NAT), the source IP address after NAT For the IP address in the subnet of associated AP after STA roaming, can directly be forwarded in the subnet after the roaming, to improve Forward efficiency.Newly generated stream does not need to detour by wireless lan controller, so the resource of network bandwidth is closed Reason utilizes.
Detailed description of the invention
Fig. 1 is that a kind of STA roams schematic diagram;
Fig. 2 is that another kind STA roams schematic diagram;
Fig. 3 is a kind of retransmission method flow chart of the stream of WLAN roaming stations provided in an embodiment of the present invention;
Fig. 4 is stream forwarding list schematic diagram provided in an embodiment of the present invention;
Fig. 5 is another stream forwarding list schematic diagram provided in an embodiment of the present invention;
Fig. 6 is another stream forwarding list schematic diagram provided in an embodiment of the present invention;
Fig. 7 is another stream forwarding list schematic diagram provided in an embodiment of the present invention;
Fig. 8 is the retransmission method flow chart of the stream of another WLAN roaming stations provided in an embodiment of the present invention;
Fig. 9 is a kind of retransmission unit schematic diagram of the stream of WLAN roaming stations provided in an embodiment of the present invention;
Figure 10 is a kind of forwarding device schematic diagram of the stream of WLAN roaming stations provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into One step it is described in detail.
The embodiment of the present invention provides the retransmission method and device of a kind of stream of WLAN roaming stations, to solve STA flow amount forward efficiency it is low and waste network bandwidth resources the problem of.Wherein, method and apparatus are based on the same inventive concept , since the principle that method and device solves the problems, such as is similar, the implementation of apparatus and method can repeat place with cross-reference It repeats no more.
The embodiment of the present invention is distinguished by the stream for generating STA, is divided into: before roaming STA former associated AP In the new associated newly generated stream of AP after the stream of generation and roaming.And different disposal is carried out to two kinds of streams that STA is generated: to roaming The stream of the preceding generation in former associated AP is forwarded still through roaming tunnel, so as to guarantee that existing business is not interrupted, to unrestrained Newly generated stream carries out NAT on new associated AP after trip, by the source IP of each data message of stream newly generated after roaming Location is converted to the IP address in the subnet of roaming place.Since STA is when being initially associated with some AP, the IP address of STA is determined as The IP address in subnet where the initial associated AP, the source IP address of the data message after roaming in newly generated stream are The IP address of STA can not directly pass through the corresponding gateway of associated AP after the roaming in the subnet after roaming where associated AP It is forwarded.Therefore the source IP address is with being converted to the IP in the subnet after roaming where associated AP by associated AP after roaming Location.
It is that the mode based on circulation hair goes out data message forwarding in the embodiment of the present invention.Specifically for circulation hair It is bright as follows:
The data message for each tuple having the same that website is sent forms stream, the stream that the website that equipment receives is sent First data message after, to the tuple in the data message look into general forwarding table (such as media access control (English: Media access control, referred to as: MAC) table, accesses control list (English: access control list, abbreviation ACL) etc.) obtain the movement executed to the data message.And a stream forwarding list is established in stream forwarding list according to checking result , which includes key assignments and content.Key assignments is sent out for providing to search to circulate in stream forwarding list to follow-up data message The index information of list item, generally comprises the tuple in data message, for example, by the source IP address of data message, purpose IP address, The five-tuple of protocol number, source port number and destination slogan composition.Content includes the action message executed for data message, example Such as include next-hop ip address or MAC Address, outgoing interface index, quality of service (English: quality of service, referred to as: QoS) etc..
Other data messages of one stream in addition to first data message are properly termed as the follow-up data message of the stream.Equipment When receiving follow-up data message, is found key value in stream forwarding list with tuple in data message and match the stream forwarding list of the tuple , the data message is subsequent packet if finding the list item for matching the tuple, if not finding the key value match tuple List item, then the data message be first data message newly flowed.If follow-up data message, then the direct basis of equipment The follow-up data message is forwarded by the content that matched stream forwarding list item includes.If the first data message, equipment according to Content in the stream forwarding list item of foundation is by first data message forwarding.
The embodiment of the invention provides a kind of retransmission methods of the stream of local area network roaming stations, as shown in figure 3, this method packet It includes:
Step 301, the first AP receives the first data message that STA is sent, and the first AP is to be associated with after the STA is roamed AP, the first AP is associated AP after STA roaming, where the source IP address of first data message is the 2nd AP Subnet in IP address, the 2nd AP be the STA roam before associated AP, first data message be described Data message after the first AP of STA association in the newly generated stream of STA.
Wherein, the first AP is in different subnets from the 2nd AP.
Step 302, the source IP address of first data message is converted to specified IP address by the first AP, institute The IP address in the subnet where specified IP address is the first AP is stated, and forwards first data message after conversion.
Wherein, specified IP address is the IP address for being exclusively used in NAT of the first AP.Specified IP address can be static state setting , be also possible to DynamicHost setting agreement (English: Dynamic Host Configuration Potocol, referred to as: DHCP) server is the first AP distribution.Dynamic Host Configuration Protocol server can be real by managing the wireless lan controller of the first AP It is existing.It can be that the first AP distributes an IP address as specified IP address by Dynamic Host Configuration Protocol server when the first AP starts.It can also With when there is STA to be associated with an AP, Dynamic Host Configuration Protocol server is that the first AP distributes an IP address as specified IP address.May be used also With when there is STA to roam into an AP, Dynamic Host Configuration Protocol server is that the first AP distributes an IP address as specified IP address.This The IP address for being exclusively used in NAT of one AP can be with only one, i.e., this specifies IP address;First AP can also have multiple be exclusively used in The IP address of NAT, such as the first specified IP address and the second specified IP address.
First AP is searched in stream forwarding list after receiving data message and is sent out with the matched circulation of the described data message List item.If the first AP find with the matched stream forwarding list item of the data message, at the content of the stream forwarding list item Manage the data message.Key assignments with the matched stream forwarding list item of data message is the tuple of stream belonging to data message.The data Message is the follow-up data message in stream, and the stream forwarding list item of the stream is exactly and the matched stream forwarding list item of the data message.
Newly generated stream is properly termed as newly flowing after STA is associated with the first AP.It is that STA has been generated before being associated with the first AP and lasting Stream after being associated with the first AP to STA is properly termed as old stream.It can be the stream of old stream with the matched stream forwarding list item of data message Forwarding-table item is also possible to the stream forwarding list item newly flowed.
If the first AP search less than with the matched stream forwarding list item of the data message, the first AP be the data message belonging to Stream establish its stream forwarding list item.Since with the matched stream forwarding list item of the data message, which is not that STA is sent First data message of the stream generated when the data message, therefore the stream is new stream.
First data message is the data message in new stream.First data message can be first datagram newly flowed Text is also possible to the follow-up data message of the stream.If the first data message is first data message newly flowed, the first AP is wanted Stream forwarding list item is established for the new stream.It include parameter needed for NAT, the follow-up data message root of the new stream in the stream forwarding list item NAT is according to the stream forwarding list item and is forwarded.First AP can according to the destination address of the first data message, after forwarding conversion the One data message can specifically be transmitted to the gateway of the subnet where the first AP, then be gone out by gateway forwards, or be transmitted to Other STA in subnet where first AP.First AP can also be regardless of the destination address of the first data message, by the first data Message is transmitted to the WLAN manager of the first AP of management, then by WLAN manager according to the first datagram The destination address of text forwards first data message.
Since STA is in initially access WLAN, the IP address of STA just has determined as STA at this time where associated AP IP address in subnet, the source IP address of the data message of newly generated stream is the IP address of STA after roaming, and STA is closed after roaming The source IP address NAT of the data message is the IP address in the subnet where associated AP after STA roaming by the AP of connection, then directly It connects and is forwarded in the subnet where the first AP, to improve forward efficiency, the resource of network bandwidth has obtained reasonable utilization.
If STA is associated with the stream generated during the 2nd AP and not yet terminates after roaming occurs, during STA is associated with the first AP It can generate and send the data message in the stream.At this point, the first AP receives the second data message that the STA is sent, described the Two data messages are the data message in the old stream of the 2nd AP.The old stream of 2nd AP refers to that the STA past for roaming into the first AP is closing Join the stream generated during the 2nd AP, and the stream not yet terminates after roaming is associated with the first AP.The tuple of second data message and The tuple that the STA is associated with the data message in the old stream of the 2nd AP sent during the 2nd AP is identical.First AP is by institute It states the second data message and the 2nd AP is sent to by the tunnel between the first AP and the 2nd AP.
If STA is associated with the stream generated during the 2nd AP and not yet terminates when roaming and occurring, in the stream forwarding list of the 2nd AP Still the stream forwarding list item of the stream is remained with.To avoid customer service from interrupting, the first AP is by the datagram in the old stream of the 2nd AP Text is sent to the 2nd AP, then continues with the data message according to the stream forwarding list item of the stream in its stream forwarding list by the 2nd AP. In order to identify which message belongs to the old stream of the 2nd AP, after STA roaming, the tuple of the old stream of the 2nd AP and the address quilt of the 2nd AP It is sent to the first AP.First AP receives the tuple of the old stream of the 2nd AP and the IP address of the 2nd AP.First AP The first stream forwarding list item is established in stream forwarding list, the key assignments of first stream forwarding list item is the member of the old stream of the 2nd AP The content of group, first stream forwarding list item includes the tunnel purpose IP address in the tunnel between the first AP and the 2nd AP, described Tunnel purpose IP address is the IP address of the 2nd AP.
Wherein, the tunnel between the first AP and the 2nd AP pre-establishes.
First AP sends second data message by the tunnel between the first AP and the 2nd AP It, specifically can be in the following manner to the 2nd AP:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the second data message, and described first It is first stream forwarding list item that AP, which is found with the matched stream forwarding list item of the second data message, is obtained described first-class The IP address of the 2nd AP in forwarding-table item.First AP is using the IP that tunnel purpose IP address is the 2nd AP The tunnel of location sends second data message.
Tuple may include source IP address and purpose IP address, can also include stream label.Or including protocol number, source Slogan and destination slogan etc..Such as tuple is five-tuple including source IP address, purpose IP address, protocol number, source port number And destination slogan.
Wherein, the first AP receives the tuple of the old stream of the 2nd AP, specifically can be in the following manner:
The first implementation:
First AP receives the stream forwarding list item of the old stream of the 2nd AP.Then in the key assignments for obtaining the stream forwarding list item Tuple.The stream forwarding list item of the old stream of 2nd AP comes from the 2nd AP.Wherein, the 2nd AP is sent still retains in its stream forwarding list Roam into all stream forwarding list items of the STA of the first AP.Since the old stream of the 2nd AP is to roam into STA past of the first AP closing Join the stream generated during the 2nd AP, and the stream not yet terminates after STA is roamed, in the stream forwarding list item that the 2nd AP is sent The stream forwarding list item of old stream including the 2nd AP.2nd AP can directly send the stream forwarding list of the old stream of the 2nd AP to the first AP , the stream forwarding list item of the old stream of the 2nd AP can also be sent to the first AP by wireless lan controller.
Second of implementation:
First AP directly receives the tuple of the old stream of the 2nd AP.
The tuple of the old stream of 2nd AP comes from the 2nd AP.2nd AP can be directly to the old stream of the 2nd AP of the first AP transmission Tuple;2nd AP can also send the tuple of the old stream of the 2nd AP by wireless lan controller to the first AP;2nd AP is also The stream forwarding list item of the old stream of the 2nd AP can be sent to wireless lan controller, wireless lan controller extracts the 2nd AP Old stream stream forwarding list item in tuple, to the first AP send the 2nd AP old stream tuple.2nd AP can extract its stream What is still retained in forwarding table roams into each tuple of all stream forwarding list items of the STA of the first AP.The stream that 2nd AP is extracted The tuple of forwarding-table item includes the tuple of the old stream of the 2nd AP.
The first data message that first AP receives STA transmission is first data message newly flowed, described first The source IP address of first data message is converted to the specified IP address by AP, can be accomplished by the following way:
The first implementation:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the first data message, when the stream When lacking stream forwarding list item matched with first data message in forwarding-table item, the first AP obtains the specified of the STA The source IP address of first data message is converted to the specified IP address of acquisition by IP address, the first AP.If First AP is not yet that the STA distributed specified IP address, i.e. the first data message is that the STA is associated with the generated after the first AP One first data message newly flowed, the first AP are that the STA distributes a specified IP address, and records the specified IP of the STA Address.The specified IP address is the specified IP for being exclusively used in not yet being assigned to other STA in the IP address of NAT of the first AP Location.If the first AP has been that the STA is assigned with specified IP address, i.e. the first data message is after the STA is associated with the first AP First data message of other the new streams generated after the new stream of first generated, the first AP extract the finger of the STA of record Determine IP address.
First AP establishes the second stream forwarding list item in stream forwarding list for the affiliated stream of first data message, institute The key assignments for stating the second stream forwarding list item is the tuple of stream belonging to first data message.The content packet of second stream forwarding list item Include the source IP address of the first data message and the specified IP address of the STA, stream forwarding list as shown in Figure 4.In Fig. 4, STA is generated A five-tuple newly flowed: source IP address 1.1.1.10, purpose IP address A1, source port number 80, destination slogan For B1, protocol number C1, specifying IP address is 2.2.2.2.The five-tuple for another new stream that the STA is generated: source IP address is 1.1.1.10, purpose IP address A2, source port number 80, destination slogan B2, protocol number C2, specified IP address are 2.2.2.2, in Fig. 4 by taking not cocurrent flow of the first AP to a STA only uses a specified IP address as an example.First AP may be Multiple streams of one STA use different specified IP address.The specified IP address of other 2 STA is different in Fig. 4.
Wherein, described when lacking stream forwarding list item matched with first data message in the stream forwarding list item First AP obtains the specified IP address of the STA, and according to the purpose IP address of the first data message by looking into address resolution protocol (English: Address Resolution Protocol, abbreviation ARP) table obtains corresponding MAC Address.First AP is by institute The source IP address for stating the first data message is converted to the specified IP address, and by the purpose of first data message MAC Address is converted to the corresponding MAC Address of purpose IP address of the first data message.The second stream forwarding list item then established it is interior The target MAC (Media Access Control) address and the target MAC (Media Access Control) address after conversion that appearance further includes the first data message.Target MAC (Media Access Control) address after NAT is The corresponding MAC Address of purpose IP address of first data message.
Second of implementation:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the first data message, when the stream When lacking stream forwarding list item matched with first data message in forwarding-table item, the first AP obtains the specified of the STA IP address, the first AP are stream assignment of port numbers belonging to first data message, and the first AP is counted described first The specified IP address is converted to according to the source IP address of message, and the source port number of first data message is converted For the port numbers of distribution.
First AP establishes the second stream forwarding list item in stream forwarding list, and the key assignments of second stream forwarding list item is institute The tuple of stream belonging to the first data message is stated, the content of second stream forwarding list item includes the port numbers of distribution.
Specifically, specified IP address can also be stored in the content of the second stream forwarding list item, such as stream shown in Fig. 5 Shown in forwarding table.In Fig. 5, STA generate a five-tuple newly flowed: source IP address 1.1.1.10, purpose IP address A1, Source port number is 80, destination slogan B1, protocol number C1, and specifying IP address is 2.2.2.2, and the first AP is stream distribution Port numbers are 3761.The STA generate another new stream five-tuple: source IP address 1.1.1.10, purpose IP address A2, Source port number is 80, destination slogan B2, protocol number C2, and specifying IP address is 2.2.2.2, and the first AP is stream distribution Difference in port numbers and a upper stream forwarding list item is 3762.Only using a specified IP address in Fig. 5 with the first AP is Example, the assigned port numbers of all streams are all different.First AP can also have multiple IP address for being exclusively used in NAT, such as One specified IP address and the second specified IP address are the two flow points then if the specified IP address of two streams is different The port numbers matched can be identical.
Optionally, if the first AP only uses a specified IP address, which can also be used as default IP address is without being recorded in the content of each stream forwarding list item.
Wherein, described when lacking stream forwarding list item matched with first data message in the stream forwarding list item First AP obtains the specified IP address of the STA, and is corresponded to according to the purpose IP address of the first data message by looking into ARP table MAC Address.The source IP address of first data message is converted to the specified IP address by the first AP, and will The target MAC (Media Access Control) address of first data message is converted to the corresponding MAC Address of purpose IP address of the first data message.Then build The content of the second vertical stream forwarding list item further includes the target MAC (Media Access Control) address of the first data message and the purpose MAC after conversion Location.As shown in Figure 6.Target MAC (Media Access Control) address after converting is the corresponding MAC Address of purpose IP address of first data message.
The first data message that first AP receives STA transmission is the follow-up data message newly flowed, the first AP The source IP address of first data message is converted into the specified IP address, can be accomplished by the following way:
The first implementation:
First AP searched in stream forwarding list with the matched stream forwarding list item of the first data message, when described the When one AP finds the second stream forwarding list item matched with first data message, the first data message matched second is obtained Specified IP address in stream forwarding list item.First AP is converted to the source IP address of first data message described Specified IP address;Wherein, the key assignments with matched second stream forwarding list item of first data message is described the The tuple of stream belonging to one data message.
Specifically, the first AP is searched in stream forwarding list and the matched stream forwarding list item of the first data message, When the first AP finds the second stream forwarding list item matched with first data message, the first data message is obtained The specified IP address in the second stream forwarding list item matched.First AP turns the source IP address of first data message It is changed to the specified IP address;If further include specified target MAC (Media Access Control) address in the content of second stream forwarding list item, execute The target MAC (Media Access Control) address of first data message is converted into specified target MAC (Media Access Control) address, which is described The corresponding target MAC (Media Access Control) address of the purpose IP address of first data message.Wherein, the described and matched institute of first data message The key assignments for stating the second stream forwarding list item is the tuple of stream belonging to first data message.
Second of implementation:
First AP searched in stream forwarding list with the matched stream forwarding list item of the first data message, when described the One AP is found with the first data message matched stream forwarding list item when being the second stream forwarding list item, is obtained with described first Port numbers in matched second stream forwarding list item of data message, the first AP will be described in first data message Source IP address is converted to the specified IP address, and the source port number of first data message is converted to first number According to the port numbers in the stream forwarding list item of message matching.If in the content of second stream forwarding list item further including specified mesh MAC Address when, the target MAC (Media Access Control) address of first data message is converted into the specified purpose as shown in fig. 6, then executing MAC Address, the specified target MAC (Media Access Control) address are the corresponding target MAC (Media Access Control) address of purpose IP address of first data message.Its In, the key assignments with matched second stream forwarding list item of first data message is belonging to first data message Stream tuple.
In order to forward the data message for being sent to STA, the first AP is also sent out in circulation when establishing the second stream forwarding list item Third stream forwarding list item is established in table, the key assignments of the third stream forwarding list item is belonging to first data message after conversion Stream tuple, the content of first stream forwarding list item include conversion before the first data message the source IP address and institute The source port number of the first data message before stating conversion.
First AP receives the third data message for being sent to the STA that network side is sent, the third datagram Text belongs to stream belonging to first data message after conversion, and the purpose IP address of the third data message is described specified IP address, the destination slogan of the third data message are the port numbers of distribution.
The purpose IP address of the third data message is converted to the source for stating the first data message by the first AP The destination slogan of the third data message is converted to the source port of the first data message before the conversion by IP address Number;
The third data message after the first AP forwarding conversion.
Wherein, stream belonging to the third data message is referred to as the negative side of stream belonging to first data message To stream.For example, the corresponding business of stream belonging to third data message is that STA1 sends datagram to STA2, then described first The corresponding business of stream belonging to data message is that STA2 sends datagram to STA1.
For example, the second stream forwarding list item of stream belonging to first data message is as shown in figure 5, then third data The third stream forwarding list item of stream belonging to message is then as shown in Figure 7.
STA is initially associated with the 2nd AP, subsequently roam to the 3rd AP, finally roam into the first AP, the first AP is that STA is currently closed The AP of connection.First AP, the 2nd AP and the 3rd AP are belonging respectively to three different subnets.Where the IP address of STA is the 2nd AP IP address in subnet.
First AP receives the tuple of the old stream of the 3rd AP and the IP address of the 3rd AP, and the old stream of the 3rd AP is to be associated in STA In the case where 3rd AP, the stream of STA generation.
First AP establishes the 4th stream forwarding list item in stream forwarding list, and the key assignments of the 4th stream forwarding list item is the old of the 3rd AP The content of the tuple of stream, the 4th stream forwarding list item includes the tunnel purpose IP address in the tunnel between the first AP and the 3rd AP, should Tunnel purpose IP address is the IP address of the 3rd AP.
First AP receives the tuple of the old stream of the 2nd AP and the IP address of the 2nd AP, and the old stream of the 2nd AP is to be associated in STA In the case where 2nd AP, the stream of STA generation.
First AP establishes the first stream forwarding list item in stream forwarding list, and the key assignments of the first stream forwarding list item is the old of the 2nd AP The tuple of stream, the content of the first stream forwarding list item include the tunnel purpose IP address in the tunnel between the first AP and the 2nd AP, should Tunnel purpose IP address is the IP address of the 2nd AP.
First AP receives the 4th data message that the STA is sent, and the 4th data message is the number in the old stream of the 3rd AP According to message.
First AP is searched in stream forwarding list and the 4th matched stream forwarding list item of data message, and the first AP is found and institute Stating the 4th matched stream forwarding list item of data message is the 4th stream forwarding list item, obtains the 3rd AP's in the 4th stream forwarding list item IP address.
First AP sends the 4th data message using the tunnel for the IP address that tunnel purpose IP address is the 3rd AP.
First AP receives the second data message that the STA is sent, and the second data message is the number in the old stream of the 2nd AP According to message.
First AP is searched in stream forwarding list to be found and the with the matched stream forwarding list item of the second data message, the first AP The matched stream forwarding list item of two data messages is the first stream forwarding list item, with obtaining the IP of the 2nd AP in the first stream forwarding list item Location.
First AP sends the second data message using the tunnel for the IP address that tunnel purpose IP address is the 2nd AP.
First AP receives the first data message that STA is sent, and the source IP address of the first data message is the IP address of STA. First data message is the data message in the newly generated stream of STA after STA is associated with the first AP.First data message is that the STA is new First data message in the stream of generation.
First AP searched in stream forwarding list with the matched stream forwarding list item of the first data message, lack in stream forwarding list with The matched stream forwarding list item of first data message.First AP is stream assignment of port numbers belonging to the first data message.First AP will The source IP address of first data message is converted to specified IP address.And the source port number of the first data message is converted into distribution Port numbers.The first data message after first AP forwarding conversion.
First AP establishes the second stream forwarding list item in stream forwarding list, and the key assignments of the second stream forwarding list item is the first datagram The tuple of stream belonging to text, the content of the second stream forwarding list item include the port numbers of distribution.
First AP receives the 5th data message that STA is sent, and the source IP address of the 5th data message is the IP address of STA. 5th data message is the number of the follow-up data message of stream belonging to the first data message, the i.e. tuple of the 5th data message and first It is identical according to the tuple of message.
First AP is searched and the 5th matched stream forwarding list item of data message in stream forwarding list.First AP find with The 5th matched stream forwarding list item of data message is the stream forwarding list item of stream belonging to the first data message, i.e. the second stream forwarding list ?.First AP obtains the port numbers in second stream forwarding list item.First AP converts the source IP address of the 5th data message For above-mentioned specified IP address, and the source port number of the 5th data message is converted into the matched stream of the 5th data message Port numbers in forwarding-table item, i.e. the first AP are the port numbers of stream distribution belonging to the first data message.
In addition, the first AP determines at least one of each data message received in preset duration and stream forwarding list Stream forwarding list item mismatches, then deletes at least one stream forwarding list item.Since a certain stream forwarding list item does not have in scheduled duration If any data message is matched, then illustrate that the corresponding stream of the stream forwarding list item has terminated, because for the system of saving Resource, by a certain stream forwarding list entry deletion.
The embodiment of the present invention is illustrated below with reference to concrete application scene.
Assuming that STA (IP address of STA is 1.1.1.10) roams into AP2 from AP1, then AP3, AP3, AP2 are roamed by AP2 From the AP1 subnet that be belonging respectively to three different.
After roaming after associated AP 3, STA, which sends datagram, is belonging respectively to following three stream:
(1) in the case where associated AP 1, the stream Session1 of generation.
(2) in the case where associated AP 2, the stream Session2 of generation.
(3) in the case where associated AP 3, the stream Session3 of generation.
Wherein, manage AP1 is the first wireless lan controller, and manage AP2 is the second wireless lan controller, Manage AP3 is third wireless lan controller.AP3 is roamed into again roaming into AP2 from AP1 in STA first, and first is wireless Lan controller, the second wireless lan controller and third wireless lan controller can perceive.
For the data traffic Session1 being had built up on AP1, as shown in Figure 8:
Step 801: third wireless lan controller determines that STA is roaming service customer.
Step 802: completing synchronization of the tuple for the stream that STA is generated on the AP of roaming forward-backward correlation.
Specifically, tuple the synchronizing on the AP of roaming forward-backward correlation for the stream that STA is generated refers to: third WLAN Controller notifies the second wireless lan controller to obtain the tuple for the Session1 that STA1 is generated, the control of the second WLAN After the tuple for getting Session1 from AP2, the tuple of Session1 is sent to device by the second wireless lan controller again Third wireless lan controller, then AP3 is issued to by third wireless lan controller.Similarly complete the tuple of Session2 Synchronization between the AP before and after roaming.
Wherein, since STA is when roaming into AP2 by AP1, the second wireless lan controller has notified the first wireless office Domain net controller obtains the Session1 tuple that STA1 is generated, and the first wireless lan controller is got from AP1 After the tuple of Session1, the tuple for the Session1 that will acquire is sent to the second wireless lan controller, and then second Wireless lan controller will get Session1 tuple again and be sent to AP2.Therefore, STA roams into the second wireless office by AP2 again When the net controller of domain, third wireless lan controller directly can obtain Session1 from the second wireless lan controller Tuple.
The IP address of step 803:AP3 acquisition AP2 and AP1.
Wherein, step 403 and step 402 when being executed can be with regardless of time successive.
Step 804, AP3 establishes the first stream forwarding list item and the second stream forwarding list item in stream forwarding list.Wherein first The key assignments of stream forwarding list item is the tuple of Session1, and the content of first stream forwarding list item includes the tunnel between AP1 and AP3 The tunnel purpose IP address in road, the tunnel purpose IP address are the IP address of AP1.Wherein the key assignments of the second stream forwarding list item is The tuple of Session2, the content of second stream forwarding list item include the tunnel destination IP in the tunnel between AP2 and AP3 Location, the tunnel purpose IP address are the IP address of AP2.
Step 805, AP3 receives the data message of STA transmission;
Step 806, AP3 is searched and the matched stream forwarding list item of the data message in stream forwarding list.
When the stream forwarding list item matched with the data message found in stream forwarding list, step 807 is executed;When When lacking stream forwarding list item matched with the data message in stream forwarding list, step 808 is executed.
Step 807, AP3 is according to the content in the stream forwarding list item by the data message forwarding.
Specifically, obtaining the first-class forwarding if the matched stream forwarding list item of data message is the first stream forwarding list item The IP address of AP1 in list item, and the datagram is sent using the tunnel for the IP address that tunnel purpose IP address is the AP1 Text.Wherein, tunnel of the tunnel between AP1 and AP3.If the matched stream forwarding list item of data message is the second stream forwarding list , AP3 obtains the IP address of the AP2 in second stream forwarding list item, and the IP for the use of tunnel purpose IP address being the AP2 The tunnel of address sends the data message.Wherein, tunnel of the tunnel between AP2 and AP3.
Step 808, AP3 is Session3 assignment of port numbers belonging to the data message, and AP3 is by the data message The source IP address be converted to specified IP address, and the source port number of the data message is converted to the port of distribution Number.Execute step 809.Here data message is first data message of Session3.
Wherein specify address of the IP address in the subnet where AP3.
Step 809, AP3 establishes third stream forwarding list item in stream forwarding list.The key assignments of the third stream forwarding list item is The tuple of Session3 belonging to the data message, the content of the third stream forwarding list item include the port numbers of distribution.
The wherein matched third stream forwarding list item of data message then illustrates that data message is Session3 except first number Follow-up data message outside according to message, AP3 obtain with the matched third stream forwarding list item of first data message in The source IP address of the data message is converted to the specified IP address by port numbers, the AP3, and by the data The source port number of message is converted to the port numbers in the matched third stream forwarding list item of the data message.
It is described to be set to first the embodiment of the invention provides a kind of retransmission unit of the stream of WLAN roaming stations In AP, the first AP is associated AP after STA roaming, as shown in figure 9, described device includes receiving module 901, processing Module 902 and sending module 903.
Receiving module 901, for the first data message that receiving station STA is sent, the source IP of first data message IP address of the address in the subnet where the 2nd AP, the 2nd AP are associated AP before the STA is roamed;First number According to the data message that message is after the STA is associated with the first AP, in the newly generated stream of STA;
The source IP address of processing module 902, the first data message for receiving the receiving module 901 turns It is changed to specified IP address, IP address of the specified IP address in the subnet where the first AP;
Sending module 903, for first data message after forwarding the processing module to convert.
Optionally, the receiving module 901 is also used to receive the second data message that the STA is sent, second number The data message in old stream for being the 2nd AP according to message, the old stream of the 2nd AP are to be associated with the 2nd AP's in the STA In the case of, the stream of the STA generation;
The sending module 903, second data message for being also used to receive the receiving module 901 pass through institute The tunnel stated between the first AP and the 2nd AP is sent to the 2nd AP.
Further, the receiving module 901 before the second data message for being also used to receive STA transmission, receives described the The IP address of the tuple of the old stream of two AP and the 2nd AP;
The processing module 902 is also used to establish the first stream forwarding list item, first stream forwarding list in stream forwarding list Key assignments be the 2nd AP old stream tuple, the content of first stream forwarding list item include the first AP and the 2nd AP it Between tunnel tunnel purpose IP address, the tunnel purpose IP address be the 2nd AP IP address;In stream forwarding list Lookup and the matched stream forwarding list item of the second data message, find and the matched stream forwarding list of the second data message Item is first stream forwarding list item, obtains the IP address of the 2nd AP in first stream forwarding list item;
Second data message is passed through the tunnel between the first AP and the 2nd AP by the sending module 903 It is sent to the 2nd AP specifically: the IP address that the sending module 903 is the 2nd AP using tunnel purpose IP address Tunnel send second data message.
In a scene of wherein one embodiment, the processing module 902 will be described in first data message Source IP address is converted to the specified IP address, specifically:
Searched in stream forwarding list with the matched stream forwarding list item of the first data message, when finding and described first When the matched stream forwarding list item of data message, the port numbers in the stream forwarding list item are obtained, by first data message The source IP address is converted to the specified IP address, and the source port number of first data message is converted to described Port numbers in the matched stream forwarding list item of one data message.
In another scene of wherein one embodiment, the processing module 902 is by the institute of first data message It states source IP address and is converted to the specified IP address, specifically:
Lookup and the matched stream forwarding list item of the first data message in stream forwarding list, when scarce in the stream forwarding list When weary stream forwarding list item matched with first data message, the first AP is flow point belonging to first data message With port numbers, the source IP address of first data message is converted to the specified IP address by the first AP, and The source port number of first data message is converted to the port numbers of distribution;And the second circulation is established in stream forwarding list Forwarding list item, the key assignments of second stream forwarding list item are the tuple of stream belonging to first data message, second circulation The content of forwarding list item includes the port numbers of distribution.
Further, the processing module 902, is also used to establish third stream forwarding list item in stream forwarding list, and described The key assignments of three stream forwarding list items be conversion after first data message belonging to stream tuple, first stream forwarding list item Content include conversion before first data message the source IP address and conversion before first data message Source port number;
The receiving module 901 is also used to receive the third data message for being sent to the STA, the third datagram Text belongs to stream belonging to first data message after conversion, and the purpose IP address of the third data message is described specified IP address, the destination slogan of the third data message are the port numbers of distribution;
The processing module 902, the purpose for the third data message for being also used to receive the receiving module 901 IP address conversion is to state the source IP address of the first data message, and the destination slogan of the third data message is converted to The source port number of the first data message before the conversion;
The sending module 903, the third data message after being also used to that the processing module 902 is forwarded to convert.
Since STA is in initially access WLAN, the IP address of STA just has determined as STA at this time where associated AP IP address in subnet, the source IP address of the data message of newly generated stream is the IP address of STA after roaming, and STA is closed after roaming The source IP address NAT of the data message is the IP address in the subnet where associated AP after STA roaming by the AP of connection, then directly It connects and is forwarded in the subnet where the first AP, to improve forward efficiency, the resource of network bandwidth has obtained reasonable utilization.
The retransmission method and device of the stream of the WLAN roaming stations provided based on the above embodiment, the present invention are implemented Example additionally provides a kind of forwarding device of the stream of WLAN roaming stations, and as shown in Figure 10, which includes wireless receiving and dispatching Device 1001, processor 1002, memory 1003 and wireline transceiver 1005.Wireless transceiver 1001, processor 1002, storage Device 1003 and wireline transceiver 1005 are connected with each other.The specific connection not limited between above-mentioned component in the embodiment of the present invention is situated between Matter.The embodiment of the present invention is being connected in Figure 10 with passing through bus 1004 between memory 1003, processor 1002 and transceiver, Bus indicates that the connection type between other components is only to be schematically illustrated, does not regard it as in Figure 10 with thick line Limit.The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, only with a thick line in Figure 10 It indicates, it is not intended that an only bus or a type of bus.
Memory 1003 in the embodiment of the present invention can be volatile for the program code that storage processor 1002 executes Property memory (English: volatile memory), such as random access memory (English: random-access memory, Abbreviation: RAM);Memory 1003 is also possible to nonvolatile memory (English: non-volatile memory), such as read-only Memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English Text: hard disk drive, abbreviation: HDD) or solid state hard disk (English: solid-state drive, abbreviation: SSD) or Memory 1003 can be used for carrying or store the desired program code with instruction or data structure form and can be by Any other medium of computer access, but not limited to this.Memory 1003 can be the combination of above-mentioned memory.
Processor 1002 in the embodiment of the present invention can be a central processing unit (English: central Processing unit, abbreviation CPU).
Wireless transceiver 1001 may include but be not limited only to antenna, be used for transmitting/receiving wireless local network packet.Wired transmitting-receiving Device 1005 may include but be not limited only to ethernet port, for receiving and dispatching wired message.
Using the forwarding device of the stream of WLAN roaming stations as the first AP or will be wireless in the embodiment of the present invention The forwarding device of the stream of local area network roaming stations is set in the first AP, can certainly be overflow by WLAN for other AP The forwarding device for swimming the stream of website is constituted, and only (the first AP) illustrates the embodiment of the present invention by taking an AP as an example, and the first AP is unrestrained for STA Associated AP after trip.
Wireless transceiver 1001 receives the first data message that STA is sent, and the source IP address of first data message is The IP address in subnet where 2nd AP, the 2nd AP are associated AP before the STA is roamed;First data message Data message after being associated with the first AP for the STA, in the newly generated stream of STA.
The source IP address of first data message is converted to specified IP address by processor 1002;And forward process First data message after the conversion of device 1002, IP of the specified IP address in the subnet where the first AP Location.
Wireless transceiver 1001 also receives the second data message that the STA is sent, and second data message is second Data message in the old stream of AP, the old stream of the 2nd AP be in the case where the STA is associated with two AP, it is described The stream that STA is generated;
Then wireline transceiver 1005 passes through second data message between the first AP and the 2nd AP Tunnel is sent to the 2nd AP.
Before the second data message that wireless transceiver 1001 receives that STA is sent, wireline transceiver 1005 receives described the The IP address of the tuple of the old stream of two AP and the 2nd AP;
Processor 1002 establishes the first stream forwarding list item, first circulation in the stream forwarding list that memory 1003 stores The key assignments of forwarding list item is the tuple of the old stream of the 2nd AP, and the content of first stream forwarding list item includes the first AP and second The tunnel purpose IP address in the tunnel between AP, the tunnel purpose IP address are the IP address of the 2nd AP.
Processor 1002 is searched and the matched stream of the second data message in the stream forwarding list that memory 1003 stores Forwarding-table item, it is first stream forwarding list that processor 1002, which is found with the matched stream forwarding list item of the second data message, , obtain the IP address of the 2nd AP in first stream forwarding list item;
Processor 1002 indicates that wireline transceiver 1005 uses the IP address that tunnel purpose IP address is the 2nd AP Tunnel sends second data message.
Processor 1002 is searched and the matched stream of the first data message in the stream forwarding list that memory 1003 stores Forwarding-table item obtains in the stream forwarding list item when finding stream forwarding list item matched with first data message The source IP address of first data message is converted to the specified IP address by port numbers, the first AP, and will The source port number of first data message is converted to the port in the matched stream forwarding list item of first data message Number.
Processor 1002 is searched and the matched stream of the first data message in the stream forwarding list that memory 1003 stores Forwarding-table item, when lacking stream forwarding list item matched with first data message in the stream forwarding list, processor 1002 For stream assignment of port numbers belonging to first data message, the source IP address of first data message is converted into institute Specified IP address is stated, and the source port number of first data message is converted to the port numbers of distribution;
Processor 1002 establishes the second stream forwarding list item in stream forwarding list, and the key assignments of second stream forwarding list item is institute The tuple of stream belonging to the first data message is stated, the content of second stream forwarding list item includes the port numbers of distribution.
Processor 1002 also establishes third stream forwarding list item in stream forwarding list, and the key assignments of the third stream forwarding list item is The tuple of stream belonging to first data message after conversion, the content of first stream forwarding list item include the institute before conversion State the source IP address of the first data message and the source port number of first data message before conversion;
Wireless transceiver 1001 receives the third data message for being sent to the STA, and the third data message, which belongs to, to be turned Stream belonging to first data message after changing, the purpose IP address of the third data message are the specified IP address, The destination slogan of the third data message is the port numbers of distribution;
The purpose IP address for the third data message that processor 1002 then receives wireless transceiver 1001 is converted For the source IP address for stating the first data message, before the destination slogan of the third data message is converted to the conversion The first data message source port number;And forward the third data message after conversion.
Since STA is in initially access WLAN, the IP address of STA just has determined as STA at this time where associated AP IP address in subnet, the source IP address of the data message of newly generated stream is the IP address of STA after roaming, and STA is closed after roaming The source IP address NAT of the data message is the IP address in the subnet where associated AP after STA roaming by the AP of connection, then directly It connects and is forwarded in the subnet where the first AP, to improve forward efficiency, the resource of network bandwidth has obtained reasonable utilization.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with By program come instruction processing unit completion, the program be can store in computer readable storage medium, and the storage is situated between Matter is non-transitory (English: non-transitory) medium, such as random access memory, read-only memory, flash Device, hard disk, solid state hard disk, tape (English: magnetic tape), floppy disk (English: floppy disk), CD (English: Optical disc) and any combination thereof.
The present invention is described referring to the method and apparatus respective flow chart and block diagram of the embodiment of the present invention.Ying Li Solution can be realized by computer program instructions in each process and box and flow chart and block diagram in flow chart and block diagram Process and box combination.These computer program instructions be can provide to general purpose computer, special purpose computer, embedded processing Machine or the processor of other programmable data processing devices are to generate a machine, so that passing through computer or other programmable numbers It generates according to the instruction that the processor of processing equipment executes for realizing in one or more flows of the flowchart and block diagram one The device for the function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims Subject to.

Claims (12)

1. a kind of retransmission method of the stream of WLAN roaming stations characterized by comprising
The first data message that first access point AP receiving station STA is sent, the first AP are associated after the STA is roamed AP, IP address of the source internet protocol IP address of first data message in the subnet where the 2nd AP, the source IP Address is the IP address of the STA, and the 2nd AP is associated AP before the STA is roamed;First data message is institute After stating the first AP of STA association, the data message in the newly generated stream of STA;
The source IP address of first data message is converted to specified IP address by the first AP, and forward conversion after First data message, IP address of the specified IP address in the subnet where the first AP.
2. the method as described in claim 1, which is characterized in that further include:
First AP receives the second data message that the STA is sent, and second data message is the number in the old stream of the 2nd AP According to message, the old stream of the 2nd AP is the stream that the STA is generated in the case where the STA is associated with two AP;
Second data message is sent to institute by the tunnel between the first AP and the 2nd AP by the first AP State the 2nd AP.
3. method according to claim 2, which is characterized in that before the first AP receives the second data message that STA is sent, The method further include:
First AP receives the tuple of the old stream of the 2nd AP and the IP address of the 2nd AP;
First AP establishes the first stream forwarding list item in stream forwarding list, and the key assignments of first stream forwarding list item is described the The content of the tuple of the old stream of two AP, first stream forwarding list item includes the tunnel mesh in the tunnel between the first AP and the 2nd AP IP address, the tunnel purpose IP address be the 2nd AP IP address;
Second data message is sent to by the tunnel between the first AP and the 2nd AP by the first AP Two AP, comprising:
First AP is searched in stream forwarding list to be looked into the matched stream forwarding list item of the second data message, the first AP Finding with the matched stream forwarding list item of the second data message is first stream forwarding list item, obtains the first-class forwarding The IP address of the 2nd AP in list item;
First AP sends second datagram using the tunnel for the IP address that tunnel purpose IP address is the 2nd AP Text.
4. the method as described in claims 1 to 3 is any, which is characterized in that the first AP is by first data message The source IP address is converted to the specified IP address, comprising:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the first data message, as the first AP When finding stream forwarding list item matched with first data message, the port numbers in the stream forwarding list item are obtained, it is described The source IP address of first data message is converted to the specified IP address by the first AP, and by first data The source port number of message is converted to the port numbers in the matched stream forwarding list item of first data message.
5. the method as described in claims 1 to 3 is any, which is characterized in that the first AP is by first data message The source IP address is converted to the specified IP address, comprising:
First AP is searched in stream forwarding list and the matched stream forwarding list item of the first data message, when the circulation is sent out When lacking stream forwarding list item matched with first data message in table, the first AP is belonging to first data message Stream assignment of port numbers, the first AP by the source IP address of first data message with being converted to the specified IP Location, and the source port number of first data message is converted to the port numbers of distribution;
First AP establishes the second stream forwarding list item in stream forwarding list, and the key assignments of second stream forwarding list item is described the The tuple of stream belonging to one data message, the content of second stream forwarding list item include the port numbers of distribution.
6. method as claimed in claim 5, which is characterized in that further include:
First AP establishes third stream forwarding list item in stream forwarding list, and the key assignments of the third stream forwarding list item is after converting First data message belonging to stream tuple, the content of the third stream forwarding list item include conversion before described first The source IP address of data message and the source port number of first data message before conversion;
First AP receives the third data message for being sent to the STA, and the third data message belongs to the institute after conversion Stream belonging to the first data message is stated, the purpose IP address of the third data message is the specified IP address, the third The destination slogan of data message is the port numbers of distribution;
The purpose IP address of the third data message with being converted to the source IP for stating the first data message by the first AP The destination slogan of the third data message is converted to the source port number of the first data message before the conversion by location;
The third data message after the first AP forwarding conversion.
7. a kind of retransmission unit of the stream of WLAN roaming stations, which is characterized in that described device is set to the first access In point AP, the first AP is associated AP after STA roaming, and described device includes:
Receiving module, the first data message sent for receiving the STA, the source internet protocol of first data message IP address of the IP address in the subnet where the 2nd AP, the source IP address is the IP address of the STA, and the 2nd AP is Associated AP before the STA is roamed;First data message is after the STA is associated with the first AP, and the STA is newly generated Stream in data message;
The source IP address of processing module, the first data message for receiving the receiving module is converted to specified IP Address, IP address of the specified IP address in the subnet where the first AP;
Sending module, for first data message after forwarding the processing module to convert.
8. device as claimed in claim 7, which is characterized in that the receiving module is also used to receive that the STA sends the Two data messages, second data message are the data message in the old stream of the 2nd AP, and the old stream of the 2nd AP is in institute In the case where stating STA association the 2nd AP, the stream of the STA generation;
The sending module, second data message for being also used to receive the receiving module by the first AP with Tunnel between 2nd AP is sent to the 2nd AP.
9. device as claimed in claim 8, which is characterized in that the receiving module is also used to receive the second number of STA transmission Before message, the tuple of the old stream of the 2nd AP and the IP address of the 2nd AP are received;
The processing module is also used to establish the first stream forwarding list item, the key of first stream forwarding list item in stream forwarding list Value is the tuple of the old stream of the 2nd AP, and the content of first stream forwarding list item includes the tunnel between the first AP and the 2nd AP The tunnel purpose IP address in road, the tunnel purpose IP address are the IP address of the 2nd AP;In stream forwarding list search with The matched stream forwarding list item of second data message, finding with the matched stream forwarding list item of the second data message is institute The first stream forwarding list item is stated, the IP address of the 2nd AP in first stream forwarding list item is obtained;
Second data message is sent to by the sending module by the tunnel between the first AP and the 2nd AP 2nd AP is specially that the sending module is sent using the tunnel for the IP address that tunnel purpose IP address is the 2nd AP Second data message.
10. the device as described in claim 7 to 9 is any, which is characterized in that the processing module is by first data message The source IP address be converted to the specified IP address, specifically:
Searched in stream forwarding list with the matched stream forwarding list item of the first data message, when finding and first data When the stream forwarding list item of message matching, the port numbers in the stream forwarding list item are obtained, it will be described in first data message Source IP address is converted to the specified IP address, and the source port number of first data message is converted to first number According to the port numbers in the stream forwarding list item of message matching.
11. the device as described in claim 7 to 9 is any, which is characterized in that the processing module is by first data message The source IP address be converted to the specified IP address, specifically:
In stream forwarding list search with the matched stream forwarding list item of the first data message, when in the stream forwarding list lack with When the matched stream forwarding list item of first data message, the first AP is that stream belonging to first data message distributes end The source IP address of first data message is converted to the specified IP address by slogan, the first AP, and by institute The source port number for stating the first data message is converted to the port numbers of distribution;And the second stream forwarding list is established in stream forwarding list , the key assignments of second stream forwarding list item is the tuple of stream belonging to first data message, second stream forwarding list The content of item includes the port numbers of distribution.
12. device as claimed in claim 11, which is characterized in that the processing module is also used to establish in stream forwarding list Third stream forwarding list item, the key assignments of the third stream forwarding list item be conversion after first data message belonging to stream member Group, before the content of the third stream forwarding list item includes the source IP address of first data message before conversion and converts First data message source port number;
The receiving module is also used to receive the third data message for being sent to the STA, and the third data message, which belongs to, to be turned Stream belonging to first data message after changing, the purpose IP address of the third data message are the specified IP address, The destination slogan of the third data message is the port numbers of distribution;
The processing module, the purpose IP address conversion for the third data message for being also used to receive the receiving module For the source IP address for stating the first data message, before the destination slogan of the third data message is converted to the conversion The first data message source port number;
The sending module, the third data message after being also used to that the processing module is forwarded to convert.
CN201510218813.2A 2015-04-30 2015-04-30 A kind of retransmission method and device of the stream of WLAN roaming stations Active CN106211141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510218813.2A CN106211141B (en) 2015-04-30 2015-04-30 A kind of retransmission method and device of the stream of WLAN roaming stations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510218813.2A CN106211141B (en) 2015-04-30 2015-04-30 A kind of retransmission method and device of the stream of WLAN roaming stations

Publications (2)

Publication Number Publication Date
CN106211141A CN106211141A (en) 2016-12-07
CN106211141B true CN106211141B (en) 2019-08-20

Family

ID=57458783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510218813.2A Active CN106211141B (en) 2015-04-30 2015-04-30 A kind of retransmission method and device of the stream of WLAN roaming stations

Country Status (1)

Country Link
CN (1) CN106211141B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473441B (en) * 2021-06-08 2024-02-06 北京小米移动软件有限公司 Data forwarding method and device, node equipment and storage medium
CN115086946B (en) * 2022-05-23 2024-04-16 阿里巴巴(中国)有限公司 Communication method, system, wireless access device and access controller

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141493A (en) * 2007-10-11 2008-03-12 杭州华三通信技术有限公司 Address analysis method and access point of wireless LAN
CN101511117A (en) * 2009-04-08 2009-08-19 杭州华三通信技术有限公司 Two-layer cross-network segment communicating method, system and equipment
CN101640882A (en) * 2009-09-07 2010-02-03 杭州华三通信技术有限公司 Method and device for preventing flow from breaking
CN102833721A (en) * 2012-08-06 2012-12-19 福建星网锐捷网络有限公司 Wireless roaming data forwarding method and wireless access point
CN104158749A (en) * 2013-05-14 2014-11-19 华为技术有限公司 Message forwarding method in software defined networking, network equipment and software defined networking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141493A (en) * 2007-10-11 2008-03-12 杭州华三通信技术有限公司 Address analysis method and access point of wireless LAN
CN101511117A (en) * 2009-04-08 2009-08-19 杭州华三通信技术有限公司 Two-layer cross-network segment communicating method, system and equipment
CN101640882A (en) * 2009-09-07 2010-02-03 杭州华三通信技术有限公司 Method and device for preventing flow from breaking
CN102833721A (en) * 2012-08-06 2012-12-19 福建星网锐捷网络有限公司 Wireless roaming data forwarding method and wireless access point
CN104158749A (en) * 2013-05-14 2014-11-19 华为技术有限公司 Message forwarding method in software defined networking, network equipment and software defined networking

Also Published As

Publication number Publication date
CN106211141A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
KR102548777B1 (en) Communication method and device
US20190261266A1 (en) Ap-local dynamic switching
US10193707B2 (en) Packet transmission method and apparatus
CN101577722B (en) Method for realizing MAC forced forwarding function and device
JP6633775B2 (en) Packet transmission
CN105024985A (en) Message processing method and apparatus
CN104935516A (en) Communication system based on software defined network and communication method
WO2017124709A1 (en) Method of establishing traffic engineering tunnel and device
US20200163011A1 (en) Method, device, and system for deploying network slice
CN104468866A (en) Fast roaming method for multi-gateway terminal in wireless local area network
CN106559302A (en) Single tunnel method for building up, device and system
CN111541616A (en) Flow control method and device
CN113206787B (en) Method and device for processing segment identifiers
CN104253878B (en) The vlan information management system and method for DHCP RELAY termination sub-interfaces
CN107769939A (en) Network element management method, webmaster, Gateway Network Element and system in data communication network
CN104995882A (en) Packet processing method and device
Cattoni et al. Mobile low latency services in 5G
CN106211141B (en) A kind of retransmission method and device of the stream of WLAN roaming stations
EP3993352A1 (en) Supporting dynamic host configuration protocol-based customer premises equipment in fifth generation wireline and wireless convergence
CN113453284B (en) Quality of service Qos control method, equipment and storage medium
WO2023024663A1 (en) Routing method and apparatus, cloud resource registration method and apparatus, storage medium, and electronic apparatus
US20200304415A1 (en) Packet flow identification with reduced decode operations
Liu et al. Recent progress in the study of the next generation Internet in China
US20220116305A1 (en) Message sending and receiving methods and apparatuses, and communication system
CN109995649A (en) It is a kind of for obtaining the method and device of cross-domain link

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