CN105191485A - Tunnel status processing method, device and system - Google Patents

Tunnel status processing method, device and system Download PDF

Info

Publication number
CN105191485A
CN105191485A CN201380076339.3A CN201380076339A CN105191485A CN 105191485 A CN105191485 A CN 105191485A CN 201380076339 A CN201380076339 A CN 201380076339A CN 105191485 A CN105191485 A CN 105191485A
Authority
CN
China
Prior art keywords
tunnel
sta
wtp
capwap
message
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.)
Granted
Application number
CN201380076339.3A
Other languages
Chinese (zh)
Other versions
CN105191485B (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
Publication of CN105191485A publication Critical patent/CN105191485A/en
Application granted granted Critical
Publication of CN105191485B publication Critical patent/CN105191485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/22Manipulation of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/32Release of transport tunnels

Landscapes

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

Abstract

Provided in an embodiment of the present invention are a tunnel status processing method, device and system. The tunnel status processing method comprises: a station (STA) and wireless termination points (WTP) establish a second control and provisioning of wireless access point (CAPWAP) tunnel to enable an access controller (AC) to interact with an STA through a first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives a tunnel change message sent by the WTP, then determining that the CAPWAP tunnel is abnormal; and the STA no longer interacts with the AC by sending a CAPWAP message through the first CAPWAP tunnel and the second CAPWAP tunnel, the first CAPWAP tunnel being an original CAPWAP tunnel between a first WTP and the AC. Thus, STA can stop interaction with the AC after learning that the tunnel is abnormal, reducing unnecessary information interaction and resource waste.

Description

Tunnel status processing method, device and system
Tunnel state processing method, apparatus and system
Technical field
The present embodiments relate to communication technical field, more particularly to a kind of tunnel state processing method, apparatus and system.
Background technology
With the fast development of internet, Centralized Wireless LAN(Wireless Local Area Network, WLAN) framework arises at the historic moment.It manages multiple wireless terminal websites by access control point (Access Controller, AC)(Wireless Termination Points, WTP), can be using 802.11 agreements and control WAP agreement between WTP and AC(Control And Provisioning of Wireless Access Point, CAPWAP) communicated, wherein, the equipment that WTP passes through 802.11 or relevant criterion access cable network for permission wireless device.Usual WTP is linked into cable network as an autonomous device by connection route device, or WTP can also integrate router feature.AC manages a large amount of WTP entity by network manager or Network Operation Center, completes the configuration to WTP equipment, and authentication, safety etc. is managed.Under this framework, WTP is primarily used to receive and send wireless network data, and AC receives the wireless data of WTP transmissions and completed after handling accordingly, can re-send to the data after processing in LAN or internet.
The Wireless Fidelity of current each operator(Wireless Fidelity, WiFi) equipment is used as website in WLAN frameworks(Station, STA) deployment is more and more intensive, the STA between each operator can produce it is very many overlapping, wherein, STA is the equipment that wireless medium is accessed comprising IEEE802.i l agreements, and STA needs to carry out in communication network using 802.11 agreements by WTP accesses.But WTP or AC can not be effectively managed substantial amounts of STA under the 802.11 protocol, the problems such as causing signal interference, scheduling of resource without controlled state of STA.Moreover, STA's is limited in one's ability, for other parts in the network architecture, such as WTP or AC lack when occurring abnormal to be perceived and coping mechanism, and in exception, STA, which remains unchanged, externally sends information, causes the wasting of resources.The content of the invention Embodiments of the invention provide a kind of tunnel state processing method, apparatus and system, and STA can no longer be interacted with AC when knowing that tunnel is abnormal, be reduced unnecessary information exchange, reduce the wasting of resources.
The first aspect of the present invention there is provided a kind of tunnel state processing method, including:
Site STA sets up the second control WAP agreement CAPWAP tunnels with wireless terminal website WTP, so that access control point AC is interacted by the first CAPWAP tunnels and second CAPWAP tunnel between the WTP and the AC with the STA;
If the STA receives the tunnel change message that the WTP is sent, it is determined that first CAPWAP tunnel is abnormal;
The STA no longer sends CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel and interacted with the AC, and first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
In the first possible implementation, according in a first aspect, it is described determine the first CAPWAP tunnel exception after, in addition to:
The STA sends inquiry message after the first preset time period to the WTP, and the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
In second of possible implementation, with reference to first aspect and the first possible implementation, the reason for first CAPWAP tunnel is abnormal is included in the tunnel change message;
The STA is after first preset time period, before sending inquiry message to the WTP, in addition to:
The STA sets first preset time period according to the reason for first CAPWAP tunnel exception.
In the third possible implementation, with reference to first aspect, the first possible implementation and second of possible implementation, the STA is after a preset time period, after the transmission inquiry message to the WTP, in addition to:
The STA receives the inquiry message response that the WTP is sent, and determines that first CAPWAP tunnel recovers normal according to the query response message.
In the 4th kind of possible implementation, according in a first aspect, it is described determine the first CAPWAP tunnel exception after, in addition to:
The STA receives the website tunnel ready message that the WTP is sent, and determines that first CAPWAP tunnel recovers normal according to website tunnel ready message. In the 5th kind of possible implementation, with reference to first aspect, the first possible implementation, second possible implementation, the third possible implementation and the 4th kind of possible implementation, the site STA is set up after the second control WAP agreement CAPWAP tunnels with wireless terminal website WTP, in addition to:
The state of tunnel state machine is switched to running status by the STA;
After the STA determines that first CAPWAP tunnel is abnormal, or, the STA determines the second CAPWAP tunnel exception, in addition to:
The state of the tunnel state machine is switched to non-operating state by the STA from the running status;If the STA determines first CAPWAP tunnel, abnormal duration exceedes first preset time period, and the state of the tunnel state machine is switched into idle state from the non-operating state;Wherein, when the tunnel state machine is the running status, the STA sends or received the CAPWAP message of the WTP forwardings;When the tunnel state machine is the non-operating state, the STA determines that first CAPWAP tunnel is abnormal or second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent and is interacted with the AC;When the tunnel state machine is the idle state, the STA determines that first CAPWAP tunnel or the 2nd CAPWAP tunnels need to be set up, and the CAPWAP message is not sent and is interacted with the AC.
In the 6th kind of possible implementation, according to the 5th kind of possible implementation, after the STA determines that first CAPWAP tunnel recovers normal, in addition to:
The state of the tunnel state machine is switched to the running status by the STA from the non-operating state.
In the 7th kind of possible implementation, with reference to the 5th kind of possible implementation and the 6th kind of possible implementation, in addition to:
If second CAPWAP tunnel is deleted, the state of the tunnel state machine is switched to the idle state by the STA from the non-operating state or the running status.The second aspect of the present invention there is provided a kind of tunnel state maintaining method, including:
Wireless terminal website WTP sets up the second control WAP agreement CAPWAP tunnels with site STA, so that access control point AC is interacted by the first CAPWAP tunnels and second CAPWAP tunnel between the WTP and the AC with the STA;
The WTP is if it is determined that first CAPWAP tunnel is abnormal, then to STA transmissions tunnel Change message, interacted so that the STA no longer sends CAPWAP message by first CAPWAP tunnel and the 2nd CAPWAP tunnels with the AC, first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
In the first possible implementation, according to second aspect, the WTP is if it is determined that first CAPWAP tunnel is abnormal, then sending tunnel change message to the STA includes:
If the WTP receives the replacement request message that the AC is sent, send the tunnel to the STA and change message, the tunnel, which is changed, includes the reason for the first CAPWAP tunnels are abnormal in message;Or,
If the WTP knows data-message transmission layer security protocol DTLS protocol stack exceptions, the reason for tunnel is changed in message, the tunnel change message comprising the first CAPWAP tunnels exception is sent to the STA.
In second of possible implementation, with reference to second aspect and the first possible implementation, the WTP if it is determined that first CAPWAP tunnel is abnormal, then after sending tunnel change message to the STA, in addition to:
The WTP receives the inquiry message that the STA is sent, and the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
The WTP is if it is determined that first CAPWAP tunnel is normal, then to STA return inquiry message responses;
The WTP is if it is determined that first CAPWAP tunnel is abnormal, then not to STA return inquiry message responses.
In the third possible implementation, with reference to second aspect and the first possible implementation, the WTP if it is determined that first CAPWAP tunnel is abnormal, then after sending tunnel change message to the STA, in addition to:
The WTP is if it is determined that first CAPWAP tunnel recovers normal, then to the STA transmitting stations tunnel ready message.
In the 4th kind of possible implementation, with reference to second aspect, the first possible implementation, second of possible implementation and the third possible implementation,
The wireless terminal website WTP is set up after the second control WAP agreement CAPWAP tunnel with site STA, in addition to:
If the state of the tunnel state machine of the WTP is switched to replacement RESET from operation RUN states State or data-message transmission layer security protocol link cut-out DTLS TD states, then tunnel change message is sent to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines the CAPWAP message that the first CAPWAP tunnels are abnormal, no longer forward the AC or described STA to send.The third aspect of the present invention there is provided a kind of site STA, including:
STA tunnel building units, for setting up the second control WAP agreement CAPWAP tunnel with wireless terminal website WTP, so that access control point AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA;
STA processing units, if receiving the tunnel change message that the WTP is sent for STA receiving units, it is determined that first CAPWAP tunnel is abnormal;Interacted so that STA transmitting elements no longer send CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
In the first possible implementation, according to the third aspect,
The STA transmitting elements, for after the first preset time period, inquiry message to be sent to the WTP, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
In second of possible implementation, according to the first possible implementation, in addition to:Time setting unit, changes the reason for first CAPWAP tunnel included in message is abnormal for receiving the tunnel according to the STA receiving units, sets first preset time period.
In the third possible implementation, with reference to the first possible implementation and second of possible implementation,
The STA receiving units, are additionally operable to receive the inquiry message response that the WTP is sent, and determine that first CAPWAP tunnel recovers normal according to the query response message.
In the 4th kind of possible implementation, according to the third aspect,
The STA receiving units, are additionally operable to receive the website tunnel ready message that the WTP is sent;The STA processing units, are additionally operable to determine that first CAPWAP tunnel recovers normal according to website tunnel ready message.
In the 5th kind of possible implementation, with reference to the third aspect, the first possible implementation, Second possible implementation, the third possible implementation and the 4th kind of possible implementation, in addition to:
Tunnel state machine, if in the state that the second CAPWAP tunnel is set up with the WTP, being switched to running status;
If it is determined that after first CAPWAP tunnel or the second CAPWAP tunnel exception, then switching to non-operating state from the running status;
If it is determined that the abnormal duration in the first CAPWAP tunnels exceedes first preset time period, then idle state is switched to from the non-operating state state;
Wherein, when the tunnel state machine is the running status, the STA sends or received the CAPWAP message of the WTP forwardings;When the tunnel state machine is the non-operating state, the STA determines that first CAPWAP tunnel is abnormal or second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent and is interacted with the AC;When the tunnel state machine is the idle state, the STA determines that first CAPWAP tunnel or the 2nd CAPWAP tunnels need to be set up, and the CAPWAP message is not sent and is interacted with the AC.
In the 6th kind of possible implementation, according to the 5th kind of possible implementation,
The tunnel state machine, is additionally operable to after determining that first CAPWAP tunnel recovers normal, the running status is switched to from the inoperative state.
In the 7th kind of possible implementation, with reference to the 5th kind of possible implementation and the 6th kind of possible implementation,
The tunnel state machine, deletes if being additionally operable to the 2nd CAPWAP tunnels, idle state is switched to from the non-operating state or the running status.The fourth aspect of the present invention there is provided a kind of wireless terminal website WTP, including:
WTP tunnel building units, for setting up the second control WAP agreement CAPWAP tunnel with site STA, so that access control point AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA;
WTP processing units, for if it is determined that first CAPWAP tunnel is abnormal, WTP transmitting elements are then made to send tunnel change message to the STA, interacted so that the STA no longer sends CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, the first CAPWAP tunnels are original between the first WTP and AC CAPWAP tunnel.
In the first possible implementation, according to fourth aspect, in addition to:
WTP receiving units, if for receiving the replacement request message that the AC occurs, so that the WTP transmitting elements send tunnel change message, the reason for tunnel is changed in message comprising first CAPWAP tunnel exception to the STA;Or,
The WTP processing units, if being additionally operable to know that data-message transmission layer security protocol DTLS protocol stacks are abnormal, then so that the WTP transmitting elements send the reason for tunnel is changed in message, the tunnel change message comprising first CAPWAP tunnel exception to the STA.
In second of possible implementation, with reference to fourth aspect and the first possible implementation, the WTP receiving units, are additionally operable to receive the inquiry message that the STA is sent, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal;
The WTP processing units, are additionally operable to if it is determined that first CAPWAP tunnel is normal, then so that the WTP transmitting elements return to inquiry message response to the STA;
The WTP processing units, are additionally operable to if it is determined that first CAPWAP tunnel is abnormal, then so that the WTP transmitting elements do not return to inquiry message response to the STA.
In the third possible implementation, with reference to fourth aspect and the first possible implementation, the WTP processing units, are additionally operable to if it is determined that first CAPWAP tunnel recovery normally, then causes the WTP transmitting elements to the STA transmitting stations tunnel ready message.
In the 4th kind of possible implementation, with reference to fourth aspect, the first possible implementation, second possible implementation, the third possible implementation and the 4th kind of possible implementation, in addition to:
Tunnel state machine, if for being switched to replacement RESET state or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, then so that the WTP transmitting elements send tunnel change message to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines the CAPWAP message that first CAPWAP tunnel is abnormal, no longer forwards the AC or described STA to send.
The fifth aspect of the present invention there is provided a kind of site STA, including: STA processors, for setting up the second control WAP agreement CAPWAP tunnel with wireless terminal website WTP, so that access control point AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA;
The STA processors, if being additionally operable to STA receivers receives the tunnel change message that the WTP is sent, it is determined that first CAPWAP tunnel is abnormal;Interacted so that STA transmitters no longer send CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
In the first possible implementation, according to the 5th aspect,
The STA transmitters, for after the first preset time period, inquiry message to be sent to the WTP, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
In second of possible implementation, according to the first possible implementation, in addition to:Timer, changes the reason for first CAPWAP tunnel included in message is abnormal for receiving the tunnel according to the STA receivers, sets first preset time period.
In the third possible implementation, with reference to the first possible implementation and second of possible implementation,
The STA receivers, are additionally operable to receive the inquiry message response that the WTP is sent, and determine that first CAPWAP tunnel recovers normal according to the query response message.
In the 4th kind of possible implementation, according to the 5th aspect,
The STA receivers, are additionally operable to receive the website tunnel ready message that the WTP is sent;The STA processors, are additionally operable to determine that first CAPWAP tunnel recovers normal according to website tunnel ready message.
In the 5th kind of possible implementation, with reference to the 5th aspect, the first possible implementation, second possible implementation, the third possible implementation and the 4th kind of possible implementation, in addition to:
The STA processors, if being additionally operable to set up the state of the second CAPWAP tunnel with the WTP, are switched to running status;
If it is determined that after first CAPWAP tunnel or the second CAPWAP tunnel exception, then switching to non-operating state from the running status;
If it is determined that the abnormal duration of first CAPWAP tunnel exceedes first preset time period, then Idle state is switched to from the non-operating state state, wherein, when being the running status, the STA sends or received the CAPWAP message of the WTP forwardings;During for the non-operating state, the STA determines that first CAPWAP tunnel is abnormal or second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent and is interacted with the AC;During for the idle state, the STA determines that first CAPWAP tunnel or second CAPWAP tunnel need to be set up, and the CAPWAP message is not sent and is interacted with the AC.
In the 6th kind of possible implementation, according to the 5th kind of possible implementation,
The STA processors, are additionally operable to after determining that first CAPWAP tunnel recovers normal, the running status are switched to from the inoperative state.
In the 7th kind of possible implementation, with reference to the 5th kind of possible implementation and the 6th kind of possible implementation,
The STA processors, delete if being additionally operable to second CAPWAP tunnel, idle state are switched to from the non-operating state or the running status.The sixth aspect of the present invention there is provided a kind of wireless terminal website WTP, including:
WTP processors, for setting up the second control WAP agreement CAPWAP tunnels with site STA, so that access control point AC is interacted by the first CAPWAP tunnels and second CAPWAP tunnel between the WTP and the AC with the STA;
The WTP processors, it is additionally operable to if it is determined that the first CAPWAP tunnels are abnormal, WTP transmitters are then made to send tunnel change message to the STA, interacted so that the STA no longer sends CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, the first CAPWAP tunnels are original CAPWAP tunnel between the first WTP and AC.
In the first possible implementation, according to the 6th aspect, in addition to:
WTP receivers, if for receiving the replacement request message that the AC occurs, causing described
WTP transmitters send in tunnel change message, the tunnel change message to the STA and include the reason for first CAPWAP tunnel is abnormal;Or,
The WTP processors, if being additionally operable to know that data-message transmission layer security protocol DTLS protocol stacks are abnormal, then so that the WTP transmitters send the reason for tunnel is changed in message, the tunnel change message comprising first CAPWAP tunnel exception to the STA. In second of possible implementation, with reference to the 6th aspect and the first possible implementation, the WTP receivers, are additionally operable to receive the inquiry message that the STA is sent, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal;
The WTP processors, are additionally operable to if it is determined that first CAPWAP tunnel is normal, then so that the WTP transmitters return to inquiry message response to the STA;
The WTP processors, are additionally operable to if it is determined that first CAPWAP tunnel is abnormal, then so that the WTP transmitters do not return to inquiry message response to the STA.
In the third possible implementation, with reference to the 6th aspect and the first possible implementation, the WTP processors, are additionally operable to if it is determined that first CAPWAP tunnel recovery normally, then causes the WTP transmitters to the STA transmitting stations tunnel ready message.
In the 4th kind of possible implementation, with reference to the 6th aspect, the first possible implementation, second of possible implementation, the third possible implementation and the 4th kind of possible implementation, the WTP processors, if the state for being additionally operable to tunnel state machine is switched to replacement RESET state or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, then so that the WTP transmitters send tunnel change message to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines the CAPWAP message that first CAPWAP tunnel is abnormal, no longer forwards the AC or described STA to send.
There is provided a kind of system in terms of 7th, including:
Wireless terminal website WTP any in any site STA and above-mentioned fourth aspect and its each implementation in the above-mentioned third aspect and its each implementation.Eighth aspect there is provided a kind of system, including:
Wireless terminal website WTP any in terms of any site STA and the above-mentioned 6th and its in each implementation in above-mentioned 5th aspect and its each implementation.Tunnel state processing method provided in an embodiment of the present invention, apparatus and system, STA and WTP set up the second CAPWAP tunnel, so that AC passes through the first CAPWAP tunnels between WTP and AC Road and the second CAPWAP tunnel are interacted with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel and interacted with AC, and the first CAPWAP tunnels are original CAPWAP tunnel between the first WTP and AC.So, by setting up the second CAPWAP tunnel between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of tunnel state maintaining method embodiment of the present invention;
Fig. 2 is the flow chart of another embodiment of tunnel state maintaining method of the present invention;
Fig. 3 is the flow chart of tunnel state maintaining method another embodiment of the present invention;
The flow chart for the tunnel establishing method embodiment that Fig. 4 provides for the present invention;
The flow chart for another embodiment of tunnel establishing method that Fig. 5 provides for the present invention;
Fig. 6 is the structural representation of site STA embodiment of the present invention;
Fig. 7 is the structural representation of another embodiment of site STA of the present invention;
Fig. 8 is the structural representation of the another embodiment of site STA of the present invention;
Fig. 9 is the structural representation of the another embodiment of site STA of the present invention;
Figure 10 is the structural representation of wireless terminal website WTP embodiments of the present invention;
Figure 11 is the structural representation of WTP of the present invention another embodiment;
Figure 12 is the structural representation of WTP of the present invention another embodiment;
Figure 13 is the structural representation of WTP of the present invention another embodiment;
Figure 14 is the structural representation of site STA embodiment of the present invention;
Figure 15 is the structural representation of another embodiment of site STA of the present invention;
Figure 16 is the structural representation of wireless terminal website WTP embodiments of the present invention;
Figure 17 is the structural representation of WTP of the present invention another embodiment;
Figure 18 is the structural representation of tunnel building system embodiment of the present invention. Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
It should be noted that, the present invention can be applied in following scene, there is at least one STA in WTP radio transmission range, STA can with and WTP and AC set up and have the first control WAP agreement (Control And Provisioning of Wireless Access Point, CAPWAP) tunnel, WTP and AC can be interacted by first CAPWAP tunnel, and, each STA and WTP can pass through 802.11 protocol communications.
Fig. 1 is the flow chart of tunnel state maintaining method embodiment of the present invention, as shown in figure 1, the method for the present embodiment can include:
5101st, STA and WTP set up the second CAPWAP tunnel, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA.
It should be noted that the communication protocol generally used between WTP and AC is control WAP agreement, the agreement is built upon User Datagram Protocol(User Datagram Protocol, UDP) on application layer protocol, its core concept is that a tunnel is set up between AC and WTP, will control message and user data message be carried in tunnel, be easy to manage and protect user data concentratedly.CAPWAP tunnels are divided into control tunnel and data tunnel, control tunnel transmission CAPWAP control messages, and data tunnel transmits data message.
Further, the second CAPWAP tunnel between WTP and STA can be set up by WTP, can also be set up by AC;After 2nd CAPWAP tunnel buildings, AC can just send the CAPWAP message for controlling STA by the first CAPWAP tunnel to WTP, forwarded again from WTP by the second CAPWAP tunnel to STA, so AC will can be just sent to STA for the message for controlling STA, and the control effect to STA can be determined by WTP forwardings STA response or message, whether such as scheduling of resource to STA is reasonable, effective.
If the 5102, STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal.
If it should be noted that STA receives tunnel change message, the first CAPWAP can be determined Tunnel is abnormal, can such as determine that RUN states are switched to replacement RESET state to WTP or data-message transmission layer security protocol link is cut off by running(DTLS TD, Datagram Transport Layer Security Tear Down) state etc..
S103, STA no longer send CAPWAP message by the first CAPWAP tunnels and the 2nd CAPWAP tunnels and AC is interacted, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
Further, WTP can safeguard a more complicated CAPWAP tunnel state machine, define the different conditions of state the first CAPWAP tunnel of correspondence of Various Complex;And it is resource-constrained due to STA, therefore a simple CAPWAP tunnel state machine can be set up in STA, only safeguard simple state machine.Here three states can be defined for STA tunnel state machine:Idle IDLE, operation RUN, inoperative UNRUN.
Wherein, the relation between the tunnel state machine that the tunnel state machine and WTP that STA is safeguarded are safeguarded is that RUN states are corresponded to completely, WTP non-RUN states correspondence STA UNRUN states.
For example, STA tunnel states notification message is that tunnel changes message, then STA determines that the first CAPWAP tunnel is abnormal, the state machine that now WTP is safeguarded should be by RUN state transitions to non-RUN states, such as DTLS TD, at the same time, STA also should be by RUN state transitions to UNRUN states, when STA safeguards UNRUN states, STA sends CAPWAP message no longer to WTP or by WTP to AC, and g Jie STA are no longer interacted by the first CAPWAP tunnel and the second CAPWAP tunnel with AC.
Tunnel state processing method provided in an embodiment of the present invention, STA and WTP sets up the 2nd CAPWAP tunnels, so that AC is interacted by the first CAPWAP tunnel and the 2nd CAPWAP tunnels between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the second CAPWAP tunnel between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources.Fig. 2 is the flow chart of another embodiment of tunnel state maintaining method of the present invention, is originally practiced under the scene that the first CAPWAP tunnel is had been set up between WTP and AC, as shown in Fig. 2 this The method of embodiment can include:
5201st, WTP and STA set up the second CAPWAP tunnel.
So that AC is interacted by the first CAPWAP tunnel and the 2nd CAPWAP tunnels between WTP and AC with STA.
It should be noted that it can be WTP control foundation that WTP and site STA, which set up the second CAPWAP tunnel, can also AC controls set up.
5202nd, WTP is if it is determined that the first CAPWAP tunnel is abnormal, then sending tunnel to STA changes message so that STA no longer sends CAPWAP message by the first CAPWAP tunnels and the 2nd CAPWAP tunnels and interacted with AC.
Determined it should be noted that the tunnel situation of WTP and AC the first CAPWAP tunnel can be the message sent according to AC, when such as WTP receives the RESET request messages of AC transmissions, RESET state can be switched to by RUN states.After WTP completes the first CAPWAP reboot operations, terminates DTLS sessions, RESET response messages can be sent to AC, then WTP can be switched to DTLS TD states by RESET states, and be switched to after DTLS TD states and can start a timer, to cause timer to constantly continuing switching state.
The tunnel situation of WTP and AC the first CAPWAP tunnel is also to be that WTP detects determination according to other message received or voluntarily, and e.g., WTP RUN states are switched to DTLS TD states:The situation for mistake occur in DTLS protocol stacks occurs for state switching, in the case of causing DTLS conversations.For WTP, when it receives DTLS notification messages:DTLS Aborted (stop), DTLS Reassembly Failure (reconstructing failure), or can all carry out the state switching during DTLS Peer Disconnect (dismounting is released).Wherein, DTLS Aborted are indicated for the session stop set up;DTLS Reassembly Failure are indicated for DTLS fragment data reconstructing failures;DTLS Peer Disconnect are used to indicate that releasing has been dismantled in DTLS sessions.Notify to cut off DTLS sessions into DTLS TD states when WTP frequently receives DTLS Decap Failure in addition, wherein, DTLS Decap Failure are used to indicate parsing packet failure, encrypted authentication failure.When the re-transmission count value for recording transmitting has reached re-transmission maximum, WTP can also be switched to DTLS TD states from RUN states.And WTP can start above-mentioned timer after being switched to DTLS TD states.
Further, in above-mentioned two situations, WTP can send tunnel state notification message to STA, and the tunnel state notification message is that tunnel changes message, that is, indicates that the first CAPWAP tunnel is abnormal.
Tunnel state processing method provided in an embodiment of the present invention, STA and WTP sets up the 2nd CAPWAP Tunnel, so that AC is interacted by the first CAPWAP tunnel and the 2nd CAPWAP tunnels between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the second CAPWAP tunnel between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources.Fig. 3 is the flow chart of tunnel state maintaining method another embodiment of the present invention, is originally practiced under the scene that the first CAPWAP tunnel is had been set up between WTP and AC, as shown in figure 3, the method for the present embodiment can include:
5301st, WTP and STA set up the second CAPWAP tunnel.
It should be noted that WTP tunnel state machine can safeguard various states, WTP and AC, which is set up, just enters operation RUN states after the first CAPWAP tunnel, WTP and STA, which is set up, still maintains the RUN states behind the 2nd CAPWAP tunnels.
5302nd, STA and WTP set up the second CAPWAP tunnel.
It should be noted that STA tunnel state machine can safeguard three kinds of states, idle IDLE state, operation RUN states and inoperative UNRUN are respectively defined as.
Wherein, before response is not succeeded in the tunnel building request message order that the second CAPWAP tunnel is set up in request, and delete and all do not safeguard the state of STA CAPWAP tunnel into IDLE state, i.e. state representation WTP after the second CAPWAP tunnel.
Further, the second CAPWAP tunnel can WTP control set up or AC control set up.
For example, the flow chart for the tunnel establishing method embodiment that Fig. 4 provides for the present invention, as shown in Fig. 4, the second CAPWAP tunnel can be WTP control foundation.
5401st, STA sends CAPWAP tunnel to WTP and sets up request.
If the 5402, WTP receives the CAPWAP tunnel buildings request of STA transmissions, at least one then set up according to CAPWAP tunnel in request content and WTP maximum access capability determines whether to set up the second CAPWAP tunnel between WTP and STA, is then to perform step S403;It is no, then perform S409. For example, at least one second CAPWAP tunnel for determining whether to set up between WTP and STA set up according to CAPWAP tunnel in request content and WTP maximum access capability can be:Whether whether the form for correctly determining or being asked according to tunnel building correctly determines the request condition that WTP is asked according to tunnel building;Or determine whether that allowance sets up the second CAPWAP tunnel and determines whether that the second CAPWAP tunnel is set up in allowance according to WTP ability;Or, determine to set up the second CAPWAP tunnel when the maximum access capability of CAPWAP tunnel buildings request content and WTP all meets condition.
Such as, whether whether the request condition that WTP is asked according to tunnel building correctly set up CAPWAP tunnel really, which can be to determine whether the source STA of CAPWAP tunnel foundation request is pre-stored in, can set up in tunnel list, and this can set up tunnel list and can be pre-stored in WTP.Determine that the second CAPWAP tunnel is set up in allowance if source STA is to be pre-stored in the STA that can set up in tunnel list.
Such as, the form that WTP can also be asked according to tunnel building determines whether that the 2nd CAPWAP tunnels are set up in allowance.The request special form, WTP can be preset with as above-mentioned message if it is determined that the tunnel building request received meets default form, it is determined that the second CAPWAP tunnel is set up in allowance.
Or, WTP can also determine whether that the 2nd CAPWAP tunnels are set up in allowance according to WTP ability.Such as, WTP maximum carryings set up the ability in the 2nd CAPWAP tunnels to set up five article of second CAPWAP tunnel, the tunnel building request of the STA is sent to WTP after the WTP only establishes 1 to 3 article of the 2nd CAPWAP tunnel, WTP determines that WTP can also carry second CAPWAP tunnel of many one, then permits setting up;The tunnel building request of the STA is sent after the WTP establishes 5 the second CAPWAP tunnel to WTP, then WTP limited abilities, and WTP disapproves the second CAPWAP tunnel set up between WTP and the STA.
If it should be noted that permitting setting up, can be returned to STA and be successfully established response, and perform S403;If disapproving foundation, tunnel building failure notification can be returned to STA, and perform S412.
The second CAPWAP tunnel that S403, WTP are set up between STA.
It should be noted that WTP is set up can send the notification message for notifying that the second CAPWAP tunnel is set up to AC after the second CAPWAP tunnel between STA.The notification message can also be carried in the CAPWAP message for meeting above-mentioned CAPWAP message form.
S404, AC send CAPWAP message to WTP.
Further, the AC CAPWAP control messages sent or data are included in CAPWAP message Message, to carry out also including identification information in scheduling of resource, CAPWAP message to STA, beacon information is that the first CAPWAP tunnel or the second CAPWAP tunnel are generated when setting up according to WTP or STA.
The identification information can be address information, or a default flag.The identification information be used for cause WTP determine that CAPWAP message is destined to STA message, be also destined to WTP the white s that disappears,.
Further, AC can also receive the CAPWAP message of WTP transmissions, or, the CAPWAP message that the STA of WTP forwardings is sent, CAPWAP message can include identification information, to cause the AC to determine the source of CAPWAP message, herein not reinflated explanation.
It should be noted that including what is described described in above-described embodiment in CAPWAP message
CAPWAP message, such as control message and data message, the form and carrying content of the CAPWAP message can will not be repeated here in accordance with the description in above-described embodiment.
5405th, WTP receives the CAPWAP message that AC is sent.
5406th, WTP determines whether CAPWAP message is to be sent to STA's according to CAPWAP message identification informations.
Further, whether identification informations of the WTP according to included in CAPWAP message, it is the message for being sent to STA to determine CAPWAP message.If identification information is address information, and the address information, when being effective address such as one STA of correspondence MAC Address, it is the message for being sent to the corresponding STA of the MAC Address to determine the message;When the address information is invalid address, that is, when corresponding to the MAC Address less than any STA, it is the message for being sent to WTP to determine the message, such as the message addresses are that 38 F are effective address, and it is invalid address etc. to be discontented with the F of 38.Wherein, STA MAC Address can be pre-stored in the presets list, determine whether address information is effective address, is defined as effective address if identical MAC Address is found in the presets list, is otherwise invalid address to table look-up.
Or, identification information is a default flag, if the default flag included in CAPWAP message is the first numerical value, one STA of each first numerical value correspondence, then WTP forwards CAPWAP message to the corresponding STA of the first numerical value;If the default flag included in CAPWAP message is second value, second value corresponds to WTP, then WTP handles CAPWAP message.Such as, the first numerical value is 1, when second value is 0, if the default flag is 1, the CAPWAP message is to be sent to WTP's;If the default flag is 0, the CAPWAP message is to be sent to STA's;Or, the first numerical value is 0, when second value is 1, if default flag is 0, the CAPWAP message is to be sent to WTP 's;If default flag is 1, the CAPWAP message is to be sent to STA's.Further, when WTP prestores multiple STA the first numerical value of correspondence, first numerical value is correspondingly arranged as 01,10,11 or 1,2,3 etc. according to the STA orders accessed respectively, when so can have the second CAPWAP tunnel in order to WTP and multiple STA foundation, it can determine the CAPWAP message is destined to which STA's.
WTP determines that CAPWAP message is destined to STA according to CAPWAP message identification informations, then performs step S407, if not then WTP parses the CAPWAP message, and according to perhaps strategy execution is operated accordingly in it.
5407th, WTP forwards CAPWAP message to the corresponding STA of CAPWAP message identification informations.
5408th, STA receives the CAPWAP message of WTP forwardings.
Further, STA can also send CAPWAP message, so, STA can be interacted by CAPWAP message with AC by WTP to AC transmission CAPWAP message by the second CAPWAP tunnel and the first CAPWAP tunnel.
S409, WTP send tunnel building failure notification to STA, and tunnel building failure notification includes failure cause.
S410, STA receive the tunnel building failure notification that WTP is sent, and are determined to resend the time that CAPWAP tunnel sets up request according to failure cause.
For example, STA can prestore a list, there are numeral and the corresponding relation of failure cause in the list, the numeral can be coding or sequence number, the failure cause that tunnel building failure notification is included can be a coding or sequence number, so, STA can determine the reason for tunnel building fails by inquiring about the list.
Further, the list can also prestore the corresponding timer of the failure cause, make it that re-request sets up the second CAPWAP tunnel to STA again after timer expiry.Such as failure cause is that the first CAPWAP tunnel is abnormal, then CAPWAP tunnel is resend after 5 seconds and sets up request etc..
Or, the flow chart for another embodiment of tunnel establishing method that Fig. 5 provides for the present invention, as shown in Fig. 5, the second CAPWAP tunnel can be AC control foundation.
S501, STA send CAPWAP tunnel to AC by WTP and set up request.
Further, STA can send CAPWAP tunnel buildings to WTP and ask, and CAPWAP tunnel is set up request and is transmitted to AC by WTP. If the 5502, AC receives the CAPWAP tunnel buildings request of STA transmissions, at least one then set up according to CAPWAP tunnel in request content and WTP maximum access capability determines whether to set up the second CAPWAP tunnel between WTP and STA, is then to perform step S503;It is no, then perform S512.
For example, whether the form that whether request condition that AC can be asked according to tunnel building is correct, can also be asked according to tunnel building correct or the one or more of maximum access capability according to WTP etc. determine whether that allowance sets up the second CAPWAP tunnel and determines whether that the second CAPWAP tunnel is set up in allowance.The method of its determination has been deployed in the above-described embodiments, will not be repeated here.
5503rd, AC sends the notification message for notifying that the second CAPWAP tunnel is set up to WTP.
S504, WTP receive the notification message for notifying that the second CAPWAP tunnel is set up.
So, WTP is known establishes the second CAPWAP tunnel with STA.It can be prepared for the CAPWAP message between follow-up forwarding STA and AC.
The second CAPWAP tunnel that S505, WTP are set up between STA, and the notification message for notifying that the second CAPWAP tunnel is set up is sent to STA.
S506, STA receive the notification message.
It should be noted that STA is received can send the message Form generation that data message or control message in CAPWAP message, the CAPWAP message can be provided according to above-described embodiment by WTP to AC after the notice, it will not be repeated here.
S507, AC send CAPWAP message to WTP.
It should be noted that AC can also receive the CAPWAP message of WTP transmissions, or,
WTP forwarding STA send CAPWAP message, AC can also to WTP send CAPWAP message or by WTP to STA forward CAPWAP message.The present embodiment is illustrated so that AC forwards CAPWAP message by WTP to STA as an example, but does not do any restriction with this.
Further, the AC CAPWAP control messages sent or data message are included in CAPWAP message, to carry out scheduling of resource to STA, identification information is also included in CAPWAP message, beacon information is that the first CAPWAP tunnel or the second CAPWAP tunnel are generated when setting up according to WTP or STA.
The identification information can be address information, or a default flag.The identification information is used to cause WTP to determine that CAPWAP message is destined to STA message, is also destined to WTP message. Such as, identification information is address information:If address information is effective address, AC sends CAPWAP message to WTP so that WTP forwards CAPWAP message to the corresponding STA of effective address;If identification information is invalid address, AC sends CAPWAP message to WTP so that WTP handles CAPWAP message.
Identification information is a default flag:If the default flag included in CAPWAP message is the first numerical value, each first numerical value corresponds to a STA, then AC sends CAPWAP message to WTP so that WTP forwards CAPWAP message to the corresponding STA of the first numerical value;If the default flag included in CAPWAP message is second value, second value corresponds to WTP, then AC sends CAPWAP message to WTP so that WTP handles CAPWAP message.
S508, WTP receive the CAPWAP message that AC is sent.
5509th, WTP determines whether CAPWAP message is to be sent to STA's according to CAPWAP message identification informations.
For example.CAPWAP message can be control message and the data message described in above-described embodiment, and the form and carrying content of message can will not be repeated here in accordance with the description in above-described embodiment.
If so, step S510 is then performed, if not then WTP parses the CAPWAP message, and according to perhaps strategy execution is operated accordingly in it.
STA forwarding CAPWAP message corresponding to identification information that the 5510th, WTP is included into CAPWAP message.
5511st, STA receives the CAPWAP message of WTP forwardings.
Further, STA can also send CAPWAP message, so, STA can be interacted by CAPWAP message with AC by WTP to AC transmission CAPWAP message by the second CAPWAP tunnel and the first CAPWAP tunnel.
5512nd, AC sends tunnel building failure notification to WTP, and WTP sends tunnel building failure notification to STA, and tunnel building failure notification includes failure cause.
S513, STA receive the tunnel building failure notification that WTP is sent, and are determined to resend the time that CAPWAP tunnel sets up request according to failure cause.
When the tunnel building request message order of the second CAPWAP tunnel is succeeded response, that is, after establishing the second CAPWAP tunnel, then into RUN states.
When STA knows that the first CAPWAP tunnel that WTP and AC is set up jumps out RUN states, i.e., when WTP state machine is in non-RUN states, STA enters UNRUN states.Generally by WTP Sending tunnel state change message causes STA to jump to UNRUN states from RUN states.In UNRUN states, the information for setting up the first CAPWAP tunnel can be handed down to STA, such as mirror image data (image data) by WTP, the information such as configuration data (config data).In a state, STA can also be sent to WTP(Website tunneled requests)Station tunnel inquire message, to obtain the progress situation that WTP currently sets up the first CAPWAP tunnel from WTP feedback message, the website TUNNEL request message can carry the timer that the state and WTP of WTP current tunnel state machines are set according to abnormal cause, STA can be in feedback message timer determine how long the second CAPWAP tunnel can be successfully established, further determine that the time that local terminal has access to.
After the second CAPWAP tunnel is successfully established, STA and WTP are in RUN states.After STA determines that the first CAPWAP tunnel is abnormal, or, STA determines the second CAPWAP tunnel exception, the state of tunnel state machine is switched to inoperative UNRUN states by STA from RUN states
Wherein, the 2nd STA and WTP can safeguard that heartbeat packet is transmitted, if STA can not be sent to by not receiving the heartbeat packet of WTP transmissions, i.e. WTP heartbeat packets in a preset time period such as 3S, heartbeat packet sends failure.STA then determines that the second CAPWAP tunnel is abnormal, and by RUN state transitions to UNRUN states.
If this implementation notifies the CAPWAP tunnels of STA the first abnormal with WTP for example, the first CAPWAP tunnel appearance exception, can notify STA, to cause STA by RUN state transitions to UNRUN states, specific method can be as follows by WTP:
S303, WTP are if it is determined that the first CAPWAP tunnel is abnormal, then sending tunnel to STA changes message.
Further, WTP receives the replacement request message of AC generations, then the reason for being sent to STA in tunnel change message, tunnel change message comprising the first CAPWAP tunnel exception;Or, WTP knows data-message transmission layer security protocol DTLS protocol stack exceptions, then the reason for being sent to STA in tunnel change message, tunnel change message comprising the first CAPWAP tunnel exception.
For example, tunnel state notification message can be tunnel change message, change message in the tunnel is sent when redirecting out RUN states from WTP to STA, such as, the state of tunnel state machine is switched to RESET state or DTLS TD states by WTP from RUN states, tunnel change message then is sent to STA, to represent that the first CAPWAP tunnel is abnormal;In addition, tunnel state notification message can delete message with the first CAPWAP tunnel, at this moment, and STA can jump to UNRUN states and continue waiting for the reconstruction of the first CAPWAP tunnel, can also jump to IDLE state, wait the first CAPWAP Rebuilding tunnel, the embodiment of the present invention is illustrated so that tunnel state notification message is tunnel change message as an example, but does not do any restriction with this.
If S304, STA receive the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal.
S305, STA are no longer sent by the first CAPWAP tunnels and the 2nd CAPWAP tunnels
CAPWAP message is interacted with AC.
It should be noted that including the reason for the first CAPWAP tunnel is abnormal in tunnel change message.Further, however, it is determined that the first CAPWAP tunnel is abnormal, the state of tunnel state machine is switched to UNRUN states by STA from RUN states.
For example, STA and WTP can prestore the reason for each first CAPWAP tunnel is abnormal corresponding coding or sequence number, when WTP sends tunnel change message, the reason for first CAPWAP tunnel is abnormal corresponding coding or sequence number can be included in tunnel change message, STA receives tunnel change message, can be by parsing the coding or sequence number, and the reason for inquire about corresponding abnormal, can so avoid because the excessive excessive occupancy to wireless network of message.
S306, STA set preset time period according to the reason for the first CAPWAP tunnel exception.For example, STA sets preset time period according to the reason for the first CAPWAP tunnel exception, and the period is prestored in lists, and different abnormal causes correspond to the different periods.Such as the first CAPWAP tunnel needs to restart DTLS sessions, then sets preset time period as lOmin etc..
5307th, STA sends inquiry message after a preset time period to WTP, and inquiry message is used to inquire whether the first CAPWAP tunnel recovers normal.
For example, such as the first CAPWAP tunnel needs to restart DTLS sessions, then sets preset time period as lOmin, after tunnel change message is connected to, lOmin sends inquiry message to constantly to WTP, and inquiry message is used to inquire whether the first CAPWAP tunnel recovers normal.
Further, if STA determines the first CAPWAP tunnel, abnormal duration exceedes preset time period, and the state of tunnel state machine is switched into idle IDLE state from UNRUN states.
5308th, WTP receives the inquiry message that STA is sent, and inquiry message is used to inquire whether the first CAPWAP tunnels recover normal.
5309th, WTP determines whether the first CAPWAP tunnel is normal, and step S310 is performed if normal;Step S311 is performed if abnormal.
S310, WTP return to inquiry message response to STA. S311, WTP do not return to inquiry message response to STA.
It should be noted that, WTP can be solved in the first CAPWAP tunnel abnormal problem, and such as WTP is rebuild after the completion of the first CAPWAP tunnel, is sent a notification message, STA is notified, to cause STA that tunnel state machine is returned into RUN states from UNRUN state transitions.Wherein, when tunnel state machine is running status, STA sends or received the CAPWAP message of WTP forwardings;When tunnel state machine is non-operating state, STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and CAPWAP message is not sent and is interacted with AC;When tunnel state machine is idle state, STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel need to be set up, and CAPWAP message is not sent and is interacted with AC.
S312, STA receive the inquiry message response that WTP is sent, and determine that the first CAPWAP tunnel recovers normal according to query response message.
After the present embodiment is with step S309, can also carry out step S313 citing illustrate, follow-up S313 steps can not also be performed, not be originally embodied as limit:
5313rd, WTP is if it is determined that the first CAPWAP tunnel recovers normal, to STA transmitting stations tunnel ready message.
5314th, STA receives the website tunnel ready message that WTP is sent, and determines that the first CAPWAP tunnel recovers normal according to website tunnel ready message.
Further, after S301 or S302, in addition to:The step of deleting the second CAPWAP tunnel, the present embodiment is illustrated so that the step is performed after S314 as an example, but does not do any restriction with this.
It should be noted that before step S315 is performed, if WTP receives the version updating information that AC is issued, WTP has version updating, can be asked by STA view data(Image data for STA request) message, to STA the part updated will be needed to issue STA, change order or newly-increased protocol contents etc. can be carried in the message.If WTP receives the configuration that AC is issued(Config) after new information, STA, including radio management can be handed down in the part related to STA(Radio adminstrative) etc. information, with cause STA according to the message carry out parameter information renewal.
5315th, STA is if it is determined that delete the second CAPWAP tunnel, then to WTP transmission tunnel removal requests.
5316th, WTP receives the tunnel removal request that STA is sent, and deletes the second CAPWAP tunnel, and notify the second CAPWAP tunnel to delete to AC.
It should be noted that deleting, the second CAPWAP tunnel can also be and AC is initiated, if such as AC It is determined that deleting the second CAPWAP tunnel, then tunnel removal request is sent to WTP;WTP is received after the tunnel removal request that AC is sent, and deletes the 2nd CAPWAP tunnels, and notify the second CAPWAP tunnel to delete to STA.STA mac address information can be wherein included in tunnel removal request, in order to which WTP determines to need to delete which the second CAPWAP tunnel for having built up is deleted according to the MAC address informations.Finally, STA receives the notice for the second CAPWAP tunnel deletion that WTP is sent, and determines that the second CAPWAP tunnel has been deleted.
Further, if the second CAPWAP tunnel is deleted, the state of tunnel state machine is switched to IDLE state by STA from UNRUN states or RUN states.
Tunnel state processing method provided in an embodiment of the present invention, STA and WTP sets up the 2nd CAPWAP tunnels, so that AC is interacted by the first CAPWAP tunnel and the 2nd CAPWAP tunnels between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the second CAPWAP tunnel between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources.Fig. 6 is the structural representation of site STA embodiment of the present invention, as shown in fig. 6, the STA 10 of the present embodiment can include:STA tunnel buildings unit 101, STA processing units 102 and STA receiving units 103.
STA tunnel buildings unit 101, for setting up the second CAPWAP tunnel with point WTP, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA.
STA processing units 102, if receiving the tunnel change message that WTP is sent for STA receiving units 103, it is determined that the first CAPWAP tunnel is abnormal;Interacted so that STA transmitting elements no longer send CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel with AC, the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
Further, STA receiving units 103, are additionally operable to receive the inquiry message response that WTP is sent, and determine that the first CAPWAP tunnel recovers normal according to query response message.
Further, STA receiving units 103, are additionally operable to receive the website tunnel that WTP sends and ready disappear STA processing units 102, are additionally operable to determine that the first CAPWAP tunnel recovers normal according to website tunnel ready message.Fig. 7 is the structural representation of another embodiment of site STA of the present invention, as shown in fig. 7, the WTP of the present embodiment is on the basis of Fig. 6 shown device structures, further, can also be included:
STA transmitting elements 104, for after the first preset time period, inquiry message to be sent to WTP, inquiry message is used to inquire whether the first CAPWAP tunnel recovers normal.
Time setting unit 105, the reason for the first CAPWAP tunnel included for being received according to STA receiving units 102 in tunnel change message is abnormal, sets the first preset time period.Fig. 8 is the structural representation of the another embodiment of site STA of the present invention, as shown in figure 8, the WTP of the present embodiment is on the basis of Fig. 7 shown device structures, further, can also be included:
STA heartbeats packet transmission unit 106, for safeguarding that heartbeat packet is transmitted with WTP, if not receiving the heartbeat packet of WTP transmissions in a preset time period, causes STA processing units 102 to determine that the second CAPWAP tunnel is abnormal.Fig. 9 is the structural representation of the another embodiment of site STA of the present invention, as shown in figure 9, the WTP of the present embodiment is on the basis of Fig. 8 shown device structures, further, can also be included:
Tunnel state machine 107, if in the state that the second CAPWAP tunnel is set up with WTP, being switched to running status;If it is determined that after the first CAPWAP tunnel or the second CAPWAP tunnel exception, then switching to non-operating state from running status;If it is determined that the abnormal duration in the first CAPWAP tunnels then switches to idle state more than the first preset time period from non-operating state state.
Wherein, when tunnel state machine is running status, STA sends or received the CAPWAP message of WTP forwardings;When tunnel state machine is non-operating state, STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and CAPWAP message is not sent and is interacted with AC;When tunnel state machine is idle state, STA determines that the first CAPWAP tunnels or the second CAPWAP tunnel need to be set up, and CAPWAP message is not sent and is interacted with AC.
Further, tunnel state machine 107, is additionally operable to after determining that the first CAPWAP tunnel recovers normal, running status is switched to from inoperative state. Yet further, tunnel state machine 107, if being additionally operable to the deletion of the second CAPWAP tunnel, idle state is switched to from non-operating state or running status.
STA provided in an embodiment of the present invention, STA and WTP set up the second CAPWAP tunnel, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnels and the 2nd CAPWAP tunnels and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the 2nd CAPWAP tunnels between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources.Figure 10 is the structural representation of wireless terminal website WTP embodiments of the present invention, and as shown in Figure 10, the WTP 20 of the present embodiment can include:WTP tunnel buildings unit 201, WTP processing units 202 and WTP transmitting elements 203.
WTP tunnel buildings unit 201, for setting up the second CAPWAP tunnel with site STA, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA.
WTP transmitting elements 202, for if it is determined that the first CAPWAP tunnel is abnormal, WTP transmitting elements 203 are then made to send tunnel change message to STA, interacted so that STA no longer sends CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel with AC, the first CAPWAP tunnels are original CAPWAP tunnel between the first WTP and AC.Figure 11 is the structural representation of WTP of the present invention another embodiment, and as shown in figure 11, the WTP of the present embodiment further, can also include on the basis of Figure 10 shown device structures:
WTP receiving units 204, if for receiving the replacement request message that AC occurs, so that WTP transmitting elements 203 send the reason for tunnel is changed in message, tunnel change message comprising the first CAPWAP tunnels exception to STA;Or,
WTP processing units 202, if being additionally operable to know that data-message transmission layer security protocol DTLS protocol stacks are abnormal, so that WTP transmitting elements 203 send the reason for tunnel is changed in message, tunnel change message comprising the first CAPWAP tunnel exception to STA. Further, WTP receiving units 203, are additionally operable to receive the inquiry message that STA is sent, inquiry message is used to inquire whether the first CAPWAP tunnel recovers normal.
Yet further, WTP processing units 202, are additionally operable to if it is determined that the first CAPWAP tunnel is normal, then so that WTP transmitting elements 203 return to inquiry message response to STA;WTP processing units 202, are additionally operable to if it is determined that the first CAPWAP tunnel is abnormal, then so that WTP transmitting elements 203 do not return to inquiry message response to STA.
Further, WTP processing units 202, are additionally operable to if it is determined that the recovery of the first CAPWAP tunnel normally, then causes WTP transmitting elements 203 to STA transmitting stations tunnel ready message.Figure 12 is the structural representation of WTP of the present invention another embodiment, and as shown in figure 12, the WTP of the present embodiment further, can also include on the basis of Figure 11 shown device structures:
WTP heartbeats packet transmission unit 205, for safeguarding that heartbeat packet is transmitted with STA, if the second CAPWAP tunnel is abnormal, heartbeat packet sends failure.Figure 13 is the structural representation of WTP of the present invention another embodiment, and as shown in figure 13, the WTP of the present embodiment further, can also include on the basis of Figure 12 shown device structures:
Tunnel state machine 206, if for being switched to replacement RESET state or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, causing WTP transmitting elements 202 to send tunnel change message to STA.Wherein, when tunnel state machine is RUN states, WTP forwardings or the CAPWAP message for receiving AC or STA transmissions;When tunnel state machine is RESET state and DTLS TD states, WTP determines that the first CAPWAP tunnel is abnormal, the CAPWAP message for no longer forwarding AC or STA to send.
WTP provided in an embodiment of the present invention, STA and WTP set up the second CAPWAP tunnel, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnels are abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnels and the 2nd CAPWAP tunnels and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the 2nd CAPWAP tunnels between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources. Figure 14 is the structural representation of site STA embodiment of the present invention, and as shown in figure 14, the STA 30 of the present embodiment can include:STA processors 301, STA receivers 302 and transmitter 303.
STA processors 301, for setting up the second CAPWAP tunnel with WTP, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA.
STA processors 301, if being additionally operable to STA receivers 302 receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;Interacted so that STA transmitters 303 no longer send CAPWAP message by the first CAPWAP tunnel and the second CAPWAP tunnel with AC, the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
Further, STA transmitters 303, for after the first preset time period, inquiry message to be sent to WTP, inquiry message is used to inquire whether the first CAPWAP tunnel recovers normal.Figure 15 is the structural representation of another embodiment of site STA of the present invention, and as shown in figure 15, the WTP of the present embodiment further, can also include on the basis of Figure 14 shown device structures:Timer 304, the tunnel for being received according to STA receivers 302 changes the reason for the first CAPWAP tunnel included in message is abnormal, sets preset time period.
Further, STA receivers 302, are additionally operable to receive the inquiry message response that WTP is sent, and determine that the first CAPWAP tunnel recovers normal according to query response message.
Further, STA receivers 302, are additionally operable to receive the website tunnel ready message that WTP is sent;
STA processors 301, are additionally operable to determine that the first CAPWAP tunnel recovers normal according to website tunnel ready message.
Further, STA processors 301, are additionally operable to safeguard that heartbeat packet is transmitted with WTP, if not receiving the heartbeat packet of WTP transmissions in the second preset time period, determine that the second CAPWAP tunnel is abnormal.
Yet further, STA processors 301, second is set up if being additionally operable to be in WTP
The state of CAPWAP tunnel, then be switched to running status;
If it is determined that after the first CAPWAP tunnel or the second CAPWAP tunnel exception, then switching to non-operating state from running status;
If it is determined that the abnormal duration in the first CAPWAP tunnels then switches to idle state more than the first preset time period from non-operating state state, wherein, when being running status, STA sends or received WTP The CAPWAP message of forwarding;During for non-operating state, STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and CAPWAP message is not sent and is interacted with AC;During for idle state, STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel need to be set up, and CAPWAP message is not sent and is interacted with AC.
Or, the STA processors 301 are additionally operable to after determining that the first CAPWAP tunnel recovers normal, running status are switched to from inoperative state.
Again or, STA processors 301, if be additionally operable to the second CAPWAP tunnel deletion, switch to idle state from non-operating state or running status.
STA provided in an embodiment of the present invention, STA and WTP set up the second CAPWAP tunnel, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnel is abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnels and the 2nd CAPWAP tunnels and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the 2nd CAPWAP tunnels between WTP and STA so that STA can know that tunnel is abnormal, and no longer interacted when knowing tunnel exception with AC, reduce unnecessary information exchange, reduce the wasting of resources.Figure 16 is the structural representation of wireless terminal website WTP embodiments of the present invention, and as shown in figure 17, the WTP 40 of the present embodiment can include:WTP processors 401 and WTP transmitters 402.
WTP processors 401, for setting up the second CAPWAP tunnel with STA, so that AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA.
WTP processors 401, it is additionally operable to if it is determined that first CAPWAP tunnel is abnormal, WTP transmitters 402 are then made to send tunnel change message to the STA, interacted so that the STA no longer sends CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, the first CAPWAP tunnels are original between the first WTP and AC
CAPWAP tunnel.Figure 17 is the structural representation of WTP of the present invention another embodiment, as shown in figure 17, originally applies the WTP of example on the basis of Figure 16 shown device structures, further, can also include: WTP receivers 403, if for receiving the replacement request message that AC occurs, so that WTP transmitters 402 send the reason for tunnel is changed in message, tunnel change message comprising the first CAPWAP tunnel exception to STA;Or,
WTP processors 401, if being additionally operable to know that data-message transmission layer security protocol DTLS protocol stacks are abnormal, so that WTP transmitters 402 send the reason for tunnel is changed in message, tunnel change message comprising the first CAPWAP tunnel exception to STA.
Further, WTP receivers 403, are additionally operable to receive the inquiry message that STA is sent, inquiry message is used to inquire whether the first CAPWAP tunnel recovers normal.
WTP processors 401, are additionally operable to if it is determined that the first CAPWAP tunnel is normal, then so that WTP transmitters 402 return to inquiry message response to STA;
WTP processors 401, are additionally operable to if it is determined that the first CAPWAP tunnel is abnormal, then so that WTP transmitters 402 do not return to inquiry message response to STA.
Further, WTP processors 401, are additionally operable to if it is determined that the recovery of the first CAPWAP tunnel normally, then causes WTP transmitters 402 to STA transmitting stations tunnel ready message.
Further, WTP processors 401, are additionally operable to safeguard that heartbeat packet is transmitted with STA, if second
CAPWAP tunnel is abnormal, then heartbeat packet sends failure.
Yet further, WTP processors 401, if the state for being additionally operable to tunnel state machine is switched to replacement RESET state or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, then so that the WTP transmitters send tunnel change message to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines the CAPWAP message that first CAPWAP tunnel is abnormal, no longer forwards the AC or described STA to send.WTP provided in an embodiment of the present invention, STA and WTP set up the second CAPWAP tunnel, so that AC is interacted by the first CAPWAP tunnel and the second CAPWAP tunnel between WTP and AC with STA;If STA receives the tunnel change message that WTP is sent, it is determined that the first CAPWAP tunnels are abnormal;STA no longer sends CAPWAP message by the first CAPWAP tunnels and the 2nd CAPWAP tunnels and interacted with AC, and the first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.So, by setting up the 2nd CAPWAP tunnels between WTP and STA so that STA can know that tunnel is abnormal, and no longer interact, subtract with AC when knowing tunnel exception Few unnecessary information exchange, reduces the wasting of resources.Figure 18 is the structural representation of tunnel building system embodiment of the present invention, and the system 1 includes:At least one STA 10 and WTP 20.
In systems, STA 10 can use structure shown in any STA 10 of Fig. 6 to Fig. 9, and WTP 20 can be using structure shown in WTP 20 any Figure 10 to Figure 13.Or, the system includes:
At least one STA 30 and WTP 40.
STA 30 can use figure using structure shown in Figure 14 or Figure 15 STA 30, WTP 40
Structure shown in 16 or Figure 17 WTP 40.
The system of the present embodiment, may be incorporated for performing the technical scheme of embodiment of the method shown in Fig. 1 to Fig. 5, and its implementing principle and technical effect is similar, and here is omitted.
System provided in an embodiment of the present invention, after the first CAPWAP tunnel between WTP and AC is set up, site STA sets up the second CAPWAP tunnel with WTP;STA receives the tunnel state notification message that WTP is sent;Message is changed if tunnel state notification message is tunnel, STA determines that the first CAPWAP tunnel is abnormal, so that STA is no longer interacted by the first CAPWAP tunnel and the 2nd CAPWAP tunnels with AC.So, by setting up the 2nd CAPWAP tunnels between WTP and STA, AC is enabled to control STA by the first CAPWAP tunnel and the second CAPWAP tunnel, so that STA is according to different scenes, by to operation processing should be carried out in the way of scene, STA disposal ability is improved, and then improves the ability of WLAN network processes.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can be completed by the related hardware of programmed instruction.Foregoing program can be stored in a computer read/write memory medium.The program upon execution, performs the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although the present invention is described in detail with reference to foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part or all technical characteristic;And these modifications or replacement, and The essence of appropriate technical solution is not set to depart from the scope of various embodiments of the present invention technical scheme

Claims (17)

  1. Claims
    1st, a kind of tunnel state processing method, it is characterised in that including:
    Site STA sets up the second control WAP agreement CAPWAP tunnels with wireless terminal website WTP, so that access control point AC is interacted by the first CAPWAP tunnels and second CAPWAP tunnel between the WTP and the AC with the STA;
    If the STA receives the tunnel change message that the WTP is sent, it is determined that first CAPWAP tunnel is abnormal;
    The STA no longer sends CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel and interacted with the AC, and first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
    2nd, according to the method described in claim 1, it is characterised in that it is described determination the first CAPWAP tunnels exception after, in addition to:
    The STA sends inquiry message after the first preset time period to the WTP, and the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
    3rd, method according to claim 2, it is characterised in that include the reason for first CAPWAP tunnel is abnormal in the tunnel change message;
    The STA is after first preset time period, before sending inquiry message to the WTP, in addition to:
    The STA sets first preset time period according to the reason for first CAPWAP tunnel exception.
    4th, according to the method in claim 2 or 3, it is characterised in that it is described to the WTP send inquiry message after, in addition to:
    The STA receives the inquiry message response that the WTP is sent, and determines that first CAPWAP tunnel recovers normal according to the query response message.
    5th, according to the method described in claim 1, it is characterised in that it is described determination the first CAPWAP tunnels exception after, in addition to:
    The STA receives the website tunnel ready message that the WTP is sent, and determines that first CAPWAP tunnel recovers normal according to website tunnel ready message.
    6th, the method according to any one of claim 1 ~ 5, it is characterised in that the site STA is set up after the second control WAP agreement CAPWAP tunnel with wireless terminal website WTP, also Including:
    The STA and WTP safeguards that heartbeat packet is transmitted, if not receiving the heartbeat packet that the WTP is sent in the second preset time period, it is determined that second CAPWAP tunnel is abnormal.
    7th, the method according to any one of claim 1 ~ 6, it is characterised in that the site STA is set up after the second control WAP agreement CAPWAP tunnel with wireless terminal website WTP, in addition to:
    The state of tunnel state machine is switched to running status by the STA;
    After the STA determines that first CAPWAP tunnel is abnormal, or, the STA determines the second CAPWAP tunnel exception, in addition to:
    The state of the tunnel state machine is switched to non-operating state by the STA from the running status;If the STA determines first CAPWAP tunnel, abnormal duration exceedes first preset time period, and the state of the tunnel state machine is switched into idle state from the non-operating state;Wherein, when the tunnel state machine is the running status, the STA sends or received the CAPWAP message of the WTP forwardings;When the tunnel state machine is the non-operating state, the STA determines that first CAPWAP tunnel is abnormal or second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent and is interacted with the AC;When the tunnel state machine is the idle state, the STA determines that first CAPWAP tunnel or the 2nd CAPWAP tunnels need to be set up, and the CAPWAP message is not sent and is interacted with the AC.
    8th, method according to claim 7, it is characterised in that after the STA determines that first CAPWAP tunnel recovers normal, in addition to:
    The state of the tunnel state machine is switched to the running status by the STA from the non-operating state.
    9th, the method according to claim 7 or 8, it is characterised in that also include:
    If second CAPWAP tunnel is deleted, the state of the tunnel state machine is switched to the idle state by the STA from the non-operating state or the running status.
    10th, a kind of tunnel state maintaining method, it is characterised in that including:
    Wireless terminal website WTP sets up the second control WAP agreement CAPWAP tunnels with site STA, so that access control point AC is interacted by the first CAPWAP tunnels and second CAPWAP tunnel between the WTP and the AC with the STA;
    The WTP is if it is determined that first CAPWAP tunnel is abnormal, then to STA transmissions tunnel Change message, interacted so that the STA no longer sends CAPWAP message by first CAPWAP tunnel and the 2nd CAPWAP tunnels with the AC, first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
    11st, method according to claim 10, it is characterised in that the WTP is if it is determined that first CAPWAP tunnel is abnormal, then sending tunnel change message to the STA includes:
    If the WTP receives the replacement request message that the AC is sent, send the tunnel to the STA and change message, the tunnel, which is changed, includes the reason for first CAPWAP tunnel is abnormal in message;Or,
    If the WTP knows data-message transmission layer security protocol DTLS protocol stack exceptions, the reason for tunnel is changed in message, the tunnel change message comprising the first CAPWAP tunnels exception is sent to the STA.
    12nd, the method according to claim 10 or 11, it is characterised in that the WTP is if it is determined that first CAPWAP tunnel is abnormal, then after sending tunnel change message to the STA, in addition to:
    The WTP receives the inquiry message that the STA is sent, and the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
    The WTP is if it is determined that first CAPWAP tunnel is normal, then to STA return inquiry message responses;
    The WTP is if it is determined that first CAPWAP tunnel is abnormal, then not to STA return inquiry message responses.
    13rd, the method according to claim 10 or 11, it is characterised in that the WTP is if it is determined that first CAPWAP tunnel is abnormal, then after sending tunnel change message to the STA, in addition to:
    The WTP is if it is determined that first CAPWAP tunnel recovers normal, then to the STA transmitting stations tunnel ready message.
    14th, the method according to any one of claim 10 ~ 13, it is characterised in that the wireless terminal website WTP is set up after the second control WAP agreement CAPWAP tunnel with site STA, in addition to:
    The WTP and STA safeguards that heartbeat packet is transmitted, if second CAPWAP tunnel is abnormal, and heartbeat packet sends failure. 15th, the method according to any one of claim 10 ~ 14, it is characterised in that the wireless terminal website WTP is set up after the second control WAP agreement CAPWAP tunnel with site STA, in addition to:
    If the state of the tunnel state machine of the WTP is switched to replacement RESET states or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, then tunnel change message is sent to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines the CAPWAP message that the first CAPWAP tunnels are abnormal, no longer forward the AC or described STA to send.
    16th, a kind of site STA, it is characterised in that including:
    STA tunnel building units, for setting up the second control WAP agreement CAPWAP tunnel with wireless terminal website WTP, so that access control point AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA;
    STA processing units, if receiving the tunnel change message that the WTP is sent for STA receiving units, it is determined that first CAPWAP tunnel is abnormal;Interacted so that STA transmitting elements no longer send CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
    17th, STA according to claim 16, it is characterised in that
    The STA transmitting elements, for after the first preset time period, inquiry message to be sent to the WTP, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
    18th, STA according to claim 17, it is characterised in that also include:
    Time setting unit, changes the reason for first CAPWAP tunnel included in message is abnormal for receiving the tunnel according to the STA receiving units, sets first preset time period.
    19th, the STA according to claim 17 or 18, it is characterised in that
    The STA receiving units, are additionally operable to receive the inquiry message response that the WTP is sent, and determine that first CAPWAP tunnel recovers normal according to the query response message.
    20th, STA according to claim 16, it is characterised in that
    The STA receiving units, are additionally operable to receive the website tunnel ready message that the WTP is sent;The STA processing units, are additionally operable to determine described first according to website tunnel ready message CAPWAP tunnel recovers normal.
    21st, the STA according to any one of claim 16 ~ 20, it is characterised in that also include:STA heartbeat packet transmission units, for safeguarding that heartbeat packet is transmitted with the WTP, if not receiving the heartbeat packet that the WTP is sent in the second preset time period, the STA processing units determine that second CAPWAP tunnel is abnormal.
    22nd, the STA according to any one of claim 16 ~ 21, it is characterised in that also include:Tunnel state machine, if in the state that the second CAPWAP tunnel is set up with the WTP, being switched to running status;
    If it is determined that after first CAPWAP tunnel or the second CAPWAP tunnel exception, then switching to non-operating state from the running status;
    If it is determined that the abnormal duration of first CAPWAP tunnel exceedes first preset time period, then idle state is switched to from the non-operating state state;
    Wherein, when the tunnel state machine is the running status, the STA sends or received the CAPWAP message of the WTP forwardings;When the tunnel state machine is the non-operating state, the STA determines that first CAPWAP tunnel is abnormal or second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent and is interacted with the AC;When the tunnel state machine is the idle state, the STA determines that first CAPWAP tunnel or the 2nd CAPWAP tunnels need to be set up, and the CAPWAP message is not sent and is interacted with the AC.
    23rd, STA according to claim 22, it is characterised in that
    The tunnel state machine, is additionally operable to after determining that first CAPWAP tunnel recovers normal, the running status is switched to from the inoperative state.
    24th, the STA according to claim 22 or 23, it is characterised in that
    The tunnel state machine, deletes if being additionally operable to second CAPWAP tunnel, idle state is switched to from the non-operating state or the running status.
    25th, a kind of wireless terminal website WTP, it is characterised in that including:
    WTP tunnel building units, for setting up the second control WAP agreement CAPWAP tunnel with site STA, so that access control point AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA;
    WTP processing units, send tunnel change message so that the STA no longer passes through described first for if it is determined that first CAPWAP tunnel is abnormal, then making WTP transmitting elements to the STA CAPWAP tunnel and the second CAPWAP tunnel send CAPWAP message and interacted with the AC, and first CAPWAP tunnel is original CAPWAP tunnels between the first WTP and AC.
    26th, WTP according to claim 25, it is characterised in that also include:
    WTP receiving units, if for receiving the replacement request message that the AC occurs, causing described
    WTP transmitting elements send in tunnel change message, the tunnel change message to the STA and include the reason for first CAPWAP tunnel is abnormal;Or,
    The WTP processing units, if being additionally operable to know that data-message transmission layer security protocol DTLS protocol stacks are abnormal, then so that the WTP transmitting elements send the reason for tunnel is changed in message, the tunnel change message comprising first CAPWAP tunnel exception to the STA.
    27th, the WTP according to claim 25 or 26, it is characterised in that
    The WTP receiving units, are additionally operable to receive the inquiry message that the STA is sent, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal;
    The WTP processing units, are additionally operable to if it is determined that first CAPWAP tunnel is normal, then so that the WTP transmitting elements return to inquiry message response to the STA;
    The WTP processing units, are additionally operable to if it is determined that first CAPWAP tunnel is abnormal, then so that the WTP transmitting elements do not return to inquiry message response to the STA.
    28th, the WTP according to claim 25 or 26, it is characterised in that
    The WTP processing units, are additionally operable to if it is determined that first CAPWAP tunnel recovery normally, then causes the WTP transmitting elements to the STA transmitting stations tunnel ready message.
    29th, the WTP according to any one of claim 25 ~ 28, it is characterised in that also include:WTP heartbeat packet transmission units, for safeguarding that heartbeat packet is transmitted with the STA, if described second
    CAPWAP tunnel is abnormal, then heartbeat packet sends failure.
    30th, the WTP according to any one of claim 25 ~ 29, it is characterised in that also include:Tunnel state machine, if for being switched to replacement RESET state or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, then so that the WTP transmitting elements send tunnel change message to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines that first CAPWAP tunnel is abnormal, and the CAPWAP for no longer forwarding the AC or described STA to send disappears 31st, a kind of site STA, it is characterised in that including:
    STA processors, for setting up the second control WAP agreement CAPWAP tunnel with wireless terminal website WTP, so that access control point AC is interacted by the first CAPWAP tunnel between the WTP and the AC and second CAPWAP tunnel with the STA;
    The STA processors, if being additionally operable to STA receivers receives the tunnel change message that the WTP is sent, it is determined that first CAPWAP tunnel is abnormal;Interacted so that STA transmitters no longer send CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, first CAPWAP tunnel is original CAPWAP tunnel between the first WTP and AC.
    32nd, STA according to claim 31, it is characterised in that
    The STA transmitters, for after the first preset time period, inquiry message to be sent to the WTP, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal.
    33rd, STA according to claim 32, it is characterised in that also include:
    Timer, changes the reason for first CAPWAP tunnel included in message is abnormal for receiving the tunnel according to the STA receivers, sets first preset time period.
    34th, the STA according to claim 32 or 33, it is characterised in that
    The STA receivers, are additionally operable to receive the inquiry message response that the WTP is sent, and determine that first CAPWAP tunnel recovers normal according to the query response message.
    35th, STA according to claim 31, it is characterised in that
    The STA receivers, are additionally operable to receive the website tunnel ready message that the WTP is sent;The STA processors, are additionally operable to determine described first according to website tunnel ready message
    CAPWAP tunnel recovers normal.
    36th, the STA according to any one of claim 31 ~ 35, it is characterized in that, the STA processors, it is additionally operable to safeguard that heartbeat packet is transmitted with the WTP, if not receiving the heartbeat packet that the WTP is sent in the second preset time period, determine that second CAPWAP tunnel is abnormal.
    37th, the STA according to any one of claim 31 ~ 36, it is characterised in that the STA processors, if being additionally operable to, in the state for setting up the second CAPWAP tunnel with the WTP, be switched to running status; If it is determined that after first CAPWAP tunnel or the second CAPWAP tunnel exception, then switching to non-operating state from the running status;
    If it is determined that the abnormal duration of first CAPWAP tunnel exceedes first preset time period, then idle state is switched to from the non-operating state state, wherein, when being the running status, the STA sends or received the CAPWAP message of the WTP forwardings;During for the non-operating state, the STA determines that first CAPWAP tunnel is abnormal or second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent and is interacted with the AC;During for the idle state, the STA determines that first CAPWAP tunnel or second CAPWAP tunnel need to be set up, and the CAPWAP message is not sent and is interacted with the AC.
    38th, the STA according to claim 37, it is characterised in that
    The STA processors, are additionally operable to after determining that first CAPWAP tunnel recovers normal, the running status are switched to from the inoperative state.
    39th, the STA according to claim 37 or 38, it is characterised in that
    The STA processors, delete if being additionally operable to second CAPWAP tunnel, idle state are switched to from the non-operating state or the running status.
    40th, a kind of wireless terminal website WTP, it is characterised in that including:
    WTP processors, for setting up the second control WAP agreement CAPWAP tunnels with site STA, so that access control point AC is interacted by the first CAPWAP tunnels and second CAPWAP tunnel between the WTP and the AC with the STA;
    The WTP processors, are additionally operable to if it is determined that the first CAPWAP tunnels are abnormal, then make
    WTP transmitters send tunnel change message to the STA, interacted so that the STA no longer sends CAPWAP message by first CAPWAP tunnel and the second CAPWAP tunnel with the AC, the first CAPWAP tunnels are original CAPWAP tunnel between the first WTP and AC.
    41st, WTP according to claim 40, it is characterised in that also include:
    WTP receivers, if for receiving the replacement request message that the AC occurs, so that the WTP transmitters send tunnel change message, the reason for tunnel is changed in message comprising first CAPWAP tunnel exception to the STA;Or,
    The WTP processors, if being additionally operable to know that data-message transmission layer security protocol DTLS protocol stacks are abnormal, cause the WTP transmitters to send the tunnel to the STA and change message, the tunnel The reason in road change message comprising first CAPWAP tunnel exception.
    42nd, the WTP according to claim 40 or 41, it is characterised in that
    The WTP receivers, are additionally operable to receive the inquiry message that the STA is sent, the inquiry message is used to inquire whether first CAPWAP tunnel recovers normal;
    The WTP processors, are additionally operable to if it is determined that first CAPWAP tunnel is normal, then so that the WTP transmitters return to inquiry message response to the STA;
    The WTP processors, are additionally operable to if it is determined that first CAPWAP tunnel is abnormal, then so that the WTP transmitters do not return to inquiry message response to the STA.
    43rd, the WTP according to claim 40 or 41, it is characterised in that
    The WTP processors, are additionally operable to if it is determined that first CAPWAP tunnel recovery normally, then causes the WTP transmitters to the STA transmitting stations tunnel ready message.
    44th, the WTP according to any one of claim 40 ~ 43, it is characterised in that
    The WTP processors, are additionally operable to safeguard that heartbeat packet is transmitted with the STA, if second CAPWAP tunnel is abnormal, heartbeat packet sends failure.
    45th, the WTP according to any one of claim 40 ~ 44, it is characterised in that
    The WTP processors, if the state for being additionally operable to tunnel state machine is switched to replacement RESET state or data-message transmission layer security protocol link cut-out DTLS TD states from operation RUN states, then so that the WTP transmitters send tunnel change message to the STA, wherein, when the tunnel state machine is RUN states, the WTP forwardings or the CAPWAP message for receiving the AC or described STA transmissions;When the tunnel state machine is the RESET state and the DTLS TD states, the WTP determines the CAPWAP message that first CAPWAP tunnel is abnormal, no longer forwards the AC or described STA to send.
    46th, a kind of system, it is characterised in that including:
    Site STA any one of claim 16 ~ 24;
    Wireless terminal website WTP any one of claim 25 ~ 30.
    47th, a kind of system, it is characterised in that including:
    Site STA any one of claim 31 ~ 39;
    Wireless terminal website WTP any one of claim 40 ~ 45.
CN201380076339.3A 2013-10-12 2013-10-12 Tunnel state processing method, apparatus and system Active CN105191485B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/085145 WO2015051552A1 (en) 2013-10-12 2013-10-12 Tunnel status processing method, device and system

Publications (2)

Publication Number Publication Date
CN105191485A true CN105191485A (en) 2015-12-23
CN105191485B CN105191485B (en) 2019-04-05

Family

ID=52812471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380076339.3A Active CN105191485B (en) 2013-10-12 2013-10-12 Tunnel state processing method, apparatus and system

Country Status (2)

Country Link
CN (1) CN105191485B (en)
WO (1) WO2015051552A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206537A1 (en) * 2006-03-06 2007-09-06 Nancy Cam-Winget System and method for securing mesh access points in a wireless mesh network, including rapid roaming
CN101426060A (en) * 2008-12-01 2009-05-06 华为技术有限公司 Method, soft switching device and system for double home soft switch
CN101801002A (en) * 2010-02-05 2010-08-11 北京傲天动联技术有限公司 Control and service separated WLAN framework and configuration method thereof
CN102869059A (en) * 2011-07-05 2013-01-09 中兴通讯股份有限公司 Method for switching wireless access controllers (ACs) and wireless access point (AP)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206537A1 (en) * 2006-03-06 2007-09-06 Nancy Cam-Winget System and method for securing mesh access points in a wireless mesh network, including rapid roaming
CN101426060A (en) * 2008-12-01 2009-05-06 华为技术有限公司 Method, soft switching device and system for double home soft switch
CN101801002A (en) * 2010-02-05 2010-08-11 北京傲天动联技术有限公司 Control and service separated WLAN framework and configuration method thereof
CN102869059A (en) * 2011-07-05 2013-01-09 中兴通讯股份有限公司 Method for switching wireless access controllers (ACs) and wireless access point (AP)

Also Published As

Publication number Publication date
CN105191485B (en) 2019-04-05
WO2015051552A1 (en) 2015-04-16

Similar Documents

Publication Publication Date Title
US20220248254A1 (en) Method of processing network slice based congestion, device and system thereof
JP4216255B2 (en) Processing method for service connection between wireless local area network and user terminal device
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
US11178057B2 (en) Offloading policy negotiation method and apparatus
CN103168448A (en) Method and apparatus for sharing internet connection based on automatic configuration of network interface
WO2012108358A1 (en) Message delivery system and base station, and message delivery method
EP3965446B1 (en) Communication method and device thereof
JP5603526B2 (en) Method for improving high availability in a secure telecommunication network and telecommunication network comprising a plurality of remote nodes
US20220248290A1 (en) Communication Method and Communications Apparatus
KR20220150425A (en) Short message service ability updating method, device and apparatus
CN101562811B (en) STA roaming switching method when WPI is finished by WTP in convergence type WLAN and system thereof
JP2005086234A (en) Switching system and method of wireless lan, and wireless lan access point
CN105264839A (en) Software defined network based networking method and device
US20230388802A1 (en) Method for configuring evolved packet system non-access stratum security algorithm and related apparatus
CN112055341A (en) Networking method, device and equipment of low-power-consumption Bluetooth Mesh network
JP2005136591A (en) Method and program of setting communication environment
CN105191485A (en) Tunnel status processing method, device and system
KR20130093494A (en) Method and device for controlling channel transmission
WO2015039284A1 (en) Data transmission method and relevant device
CN109661015B (en) Method for realizing data sharing of wireless controllers of different manufacturers
CN111147269B (en) Access point configuration method, networking system, access point and storage medium
CN105165102A (en) Tunnel establishment method, device and system
CN110519840B (en) Session processing method and device, network element and storage medium
JP7118307B1 (en) Communication system, communication control device, communication control method and program
WO2024066924A1 (en) User terminal policy configuration method and apparatus, and medium and chip

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