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

Tunnel status processing method, device and system Download PDF

Info

Publication number
WO2015051552A1
WO2015051552A1 PCT/CN2013/085145 CN2013085145W WO2015051552A1 WO 2015051552 A1 WO2015051552 A1 WO 2015051552A1 CN 2013085145 W CN2013085145 W CN 2013085145W WO 2015051552 A1 WO2015051552 A1 WO 2015051552A1
Authority
WO
WIPO (PCT)
Prior art keywords
tunnel
sta
wtp
capwap
message
Prior art date
Application number
PCT/CN2013/085145
Other languages
French (fr)
Chinese (zh)
Inventor
杨晖
唐厚成
甄斌
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380076339.3A priority Critical patent/CN105191485B/en
Priority to PCT/CN2013/085145 priority patent/WO2015051552A1/en
Publication of WO2015051552A1 publication Critical patent/WO2015051552A1/en

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

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a tunnel state processing method, apparatus, and system.
  • WTP Wireless Termination Points
  • AC Access Controller
  • 802.11 Protocol and Control Access Point of Wireless Access Point can be used between WTP and AC.
  • CAPWAP CAPWAP
  • WTP is a device that allows wireless devices to access the wired network through 802.11 or related standards.
  • WTP is connected to the wired network as a standalone device through a connection router, or WTP can also integrate router functions.
  • the AC manages a large number of WTP entities through the network administrator or the network operation center to complete the configuration, authentication, and security management of the WTP devices.
  • WTP is mainly used to receive and send wireless network data. After the AC receives the wireless data sent by the WTP and completes the corresponding processing, it will send the processed data to the local area network or the Internet.
  • WiFi wireless Fidelity
  • STAs stations
  • the STA is a device that includes the IEEE 802.il protocol to access the wireless medium.
  • the STA needs to access the 802.11 protocol through the WTP access in the communication network.
  • WTP or AC cannot effectively manage a large number of STAs under the 802.11 protocol.
  • the unmanaged state of the STA may cause signal interference and resource scheduling.
  • the STA has limited capabilities. For other parts of the network architecture, such as WTP or AC, when there is an abnormality, there is a lack of sensing and coping mechanism.
  • the embodiment of the present invention provides a tunnel state processing method, device, and system.
  • the STA can no longer interact with the AC when the tunnel abnormality is learned, reducing unnecessary information interaction and reducing resource waste.
  • a first aspect of the present invention provides a tunnel state processing method, including:
  • the STA and the wireless terminal station WTP establish a second control wireless access point protocol CAPWAP tunnel, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the STA interacts;
  • the STA receives the tunnel change message sent by the WTP, determining that the first CAPWAP tunnel is abnormal;
  • the STA does not interact with the AC by sending a CAPWAP message through the first CAPWAP tunnel and the second CAPWAP tunnel, where the first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC. .
  • the method further includes:
  • the STA After the first preset time period, the STA sends an inquiry message to the WTP, where the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
  • the tunnel change message includes a cause of the first CAPWAP tunnel abnormality
  • the STA After the STA sends the inquiry message to the WTP after the first preset time period, the STA further includes:
  • the STA sets the first preset time period according to the reason of the first CAPWAP tunnel abnormality.
  • the STA sends the query to the WTP after a preset time period. After the message, it also includes:
  • the STA receives the inquiry message response sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the query response message.
  • the method further includes:
  • the STA receives the site tunnel ready message sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the site tunnel ready message.
  • the site After the STA establishes the second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, the method further includes:
  • the STA switches the state of the tunnel state machine to an operating state
  • the STA After the STA determines that the first CAPWAP tunnel is abnormal, or after the STA determines the second CAPWAP tunnel abnormality, the STA further includes:
  • the STA switches the state of the tunnel state machine from the running state to the non-operation state; if the STA determines that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, The state of the tunnel state machine is switched from the non-operational state to the idle state; wherein, when the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP; When the device is in the non-operational state, the STA determines that the first CAPWAP tunnel abnormality or the second CAPWAP tunnel abnormality does not send the CAPWAP message to interact with the AC; the tunnel state machine is the In the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send the CAPWAP message to interact with the AC.
  • the STA further includes:
  • the STA switches the state of the tunnel state machine from the non-operational state to the operational state.
  • the method further includes:
  • a second aspect of the present invention provides a tunnel state maintenance method, including:
  • the wireless terminal station WTP establishes a second control wireless access point protocol CAPWAP tunnel with the station STA, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the STA interacts;
  • the WTP determines that the first CAPWAP tunnel is abnormal, sending a tunnel to the STA Transmitting the message, so that the STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel, where the first CAPWAP tunnel is between the first WTP and the AC.
  • sending a tunnel change message to the STA includes:
  • the WTP sends the tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality;
  • the WTP sends the tunnel change message to the STA if the data packet transport layer security protocol DTLS protocol stack is abnormal, and the tunnel change message includes the first CAPWAP tunnel abnormality.
  • the method further includes:
  • the WTP receives an inquiry message sent by the STA, and the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
  • the WTP determines that the first CAPWAP tunnel is normal, the WTP returns an inquiry message response to the STA;
  • the WTP determines that the first CAPWAP tunnel is abnormal, the WTP does not return an inquiry message response to the STA.
  • the method further includes:
  • the method further includes:
  • a station STA including:
  • a STA tunnel establishing unit configured to establish a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC passes the first CAPWAP tunnel between the WTP and the AC, and the first The CAPWAP tunnel interacts with the STA;
  • a STA processing unit configured to: if the STA receiving unit receives the tunnel change message sent by the WTP, determine that the first CAPWAP tunnel is abnormal; that the STA sending unit does not send the CAPWAP through the first CAPWAP tunnel and the second CAPWAP tunnel The message is exchanged with the AC, and the first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC.
  • the STA sending unit is configured to send an inquiry message to the WTP after the first preset time period, where the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
  • the method further includes: a time setting unit, configured to receive, according to the STA receiving unit, the first CAPWAP tunnel included in the tunnel change message For the cause of the abnormality, the first preset time period is set.
  • the STA receiving unit is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel returns to normal.
  • the STA receiving unit is further configured to receive a site tunnel ready message sent by the WTP, where the STA processing unit is further configured to determine that the first CAPWAP tunnel is normal according to the site tunnel ready message.
  • the third aspect, the first possible implementation, The second possible implementation manner, the third possible implementation manner, and the fourth possible implementation manner also include:
  • a tunnel state machine configured to switch to an operating state if a state of establishing a second CAPWAP tunnel with the WTP is performed
  • the STA When the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP; when the tunnel state machine is in the non-operation state, the STA determines the first The CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent to interact with the AC; when the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel needs to be established. Or the second CAPWAP tunnel does not send the CAPWAP message to interact with the AC.
  • the tunnel state machine is further configured to switch from the non-operating state to the running state after determining that the first CAPWAP tunnel returns to normal.
  • a wireless terminal station WTP including:
  • a WTP tunnel establishing unit configured to establish a second control radio access point protocol CAPWAP tunnel with the station STA, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP between the WTP and the AC The tunnel interacts with the STA;
  • a WTP processing unit configured to: if the first CAPWAP tunnel is abnormal, send a tunnel change message to the STA, so that the STA does not send the CAPWAP through the first CAPWAP tunnel and the second CAPWAP tunnel The message interacts with the AC, where the first CAPWAP tunnel is original between the first WTP and the AC CAPWAP tunnel.
  • the method further includes:
  • a WTP receiving unit configured to: when receiving the reset request message generated by the AC, causing the WTP sending unit to send a tunnel change message to the STA, where the tunnel change message includes a cause of the first CAPWAP tunnel abnormality Or,
  • the WTP processing unit is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP sending unit sends the tunnel change message to the STA, where the tunnel change message includes the The cause of the first CAPWAP tunnel exception.
  • the WTP receiving unit is further configured to receive an inquiry message sent by the STA, where the inquiry message is used to query the Whether the first CAPWAP tunnel is restored to normal;
  • the WTP processing unit is further configured to: if it is determined that the first CAPWAP tunnel is normal, enable the WTP sending unit to return an inquiry message response to the STA;
  • the WTP processing unit is further configured to: if the first CAPWAP tunnel is abnormal, the WTP sending unit does not return an inquiry message response to the STA.
  • the WTP processing unit is further configured to: if the first CAPWAP tunnel is determined to be normal, to enable the WTP sending unit A site tunnel ready message is sent to the STA.
  • the method further includes:
  • a tunnel state machine configured to: if the switch from the running RUN state to the reset RESET state or the data packet transport layer security protocol link cuts off the DTLS TD state, causing the WTP sending unit to send a tunnel change message to the STA, where When the tunnel state machine is in the RUN state, the WTP forwards or receives the CAPWAP message sent by the AC or the STA; when the tunnel state machine is the RESET state and the DTLS TD state, the WTP Determining the first CAPWAP tunnel abnormality, and not forwarding the CAPWAP message sent by the AC or the STA.
  • a station STA including: a STA processor, configured to establish a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC passes the first CAPWAP tunnel and the second between the WTP and the AC
  • the CAPWAP tunnel interacts with the STA;
  • the STA processor is further configured to: if the STA receiver receives the tunnel change message sent by the WTP, determine that the first CAPWAP tunnel is abnormal; so that the STA transmitter does not pass the first CAPWAP tunnel and the second CAPWAP The tunnel sends a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC.
  • the STA transmitter is configured to send an inquiry message to the WTP after the first preset time period, where the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
  • the method further includes: a timer, configured to receive, according to the STA receiver, the first CAPWAP tunnel abnormality included in the tunnel change message The reason is that the first preset time period is set.
  • the STA receiver is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel is back to normal.
  • the STA receiver is further configured to receive the site tunnel ready message sent by the WTP, where the STA processor is further configured to determine that the first CAPWAP tunnel is normal according to the site tunnel ready message.
  • the method further includes:
  • the STA processor is further configured to switch to an operating state if a state of establishing a second CAPWAP tunnel with the WTP is performed;
  • the STA sends or receives the CAPWAP message forwarded by the WTP; when in the non-operation state, the STA determines The first CAPWAP tunnel abnormality or the second CAPWAP tunnel abnormality does not send the CAPWAP message to interact with the AC; when the idle state is, the STA determines that the first CAPWAP tunnel needs to be established or The second CAPWAP tunnel does not send the CAPWAP message to interact with the AC.
  • the STA processor is further configured to: after determining that the first CAPWAP tunnel returns to normal, switch from the non-operation state to the running state.
  • a wireless terminal station WTP including:
  • a WTP processor configured to establish, by the STA STA, a second control radio access point protocol CAPWAP tunnel, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC Interacting with the STA;
  • the WTP processor is further configured to: if the first CAPWAP tunnel is abnormal, send a WTP sender to send a tunnel change message to the STA, so that the STA does not pass the first CAPWAP tunnel and the second CAPWAP The tunnel sends a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC.
  • the method further includes:
  • a WTP receiver configured to: if receiving a reset request message generated by the AC,
  • the WTP sender sends a tunnel change message to the STA, where the tunnel change message includes the cause of the first CAPWAP tunnel abnormality; or
  • the WTP processor is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP sender sends the tunnel change message to the STA, where the tunnel change message includes the The cause of the first CAPWAP tunnel exception.
  • the WTP receiver is further configured to receive an inquiry message sent by the STA, where the inquiry message is used to query the Whether the first CAPWAP tunnel is restored to normal;
  • the WTP processor is further configured to: if the first CAPWAP tunnel is determined to be normal, causing the WTP sender to return an inquiry message response to the STA;
  • the WTP processor is further configured to: if the first CAPWAP tunnel is abnormal, cause the WTP sender not to return an inquiry message response to the STA.
  • the WTP processor is further configured to: if the first CAPWAP tunnel is determined to be normal, to enable the WTP transmitter A site tunnel ready message is sent to the STA.
  • the WTP processing And if the state of the tunnel state machine is switched from the running RUN state to the reset RESET state or the data packet transport layer security protocol link cuts off the DTLS TD state, causing the WTP sender to send a tunnel change message to the STA
  • the WTP forwards or receives the CAPWAP message sent by the AC or the STA; when the tunnel state machine is in the RESET state and the DTLS TD state
  • the WTP determines that the first CAPWAP tunnel is abnormal, and does not forward the CAPWAP message sent by the AC or the STA.
  • a system comprising:
  • a system comprising:
  • the tunnel state processing method, device, and system provided by the embodiment of the present invention the STA establishes a second CAPWAP tunnel with the WTP, so that the AC passes the first CAPWAP tunnel between the WTP and the AC.
  • the channel and the second CAPWAP tunnel interact with the STA. If the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal.
  • the STA does not send the CAPWAP message to interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • the STA can learn the tunnel abnormality and no longer interact with the AC when the tunnel is abnormal, reducing unnecessary information interaction and reducing resource waste.
  • FIG. 1 is a flowchart of an embodiment of a tunnel state maintenance method according to the present invention.
  • FIG. 2 is a flowchart of another embodiment of a tunnel state maintenance method according to the present invention.
  • FIG. 3 is a flowchart of still another embodiment of a tunnel state maintenance method according to the present invention.
  • FIG. 4 is a flowchart of an embodiment of a tunnel establishment method provided by the present invention.
  • FIG. 5 is a flowchart of another embodiment of a tunnel establishment method according to the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of a station STA according to the present invention.
  • FIG. 7 is a schematic structural diagram of another embodiment of a station STA according to the present invention.
  • FIG. 8 is a schematic structural diagram of still another embodiment of a station STA according to the present invention.
  • FIG. 9 is a schematic structural diagram of still another embodiment of a station STA according to the present invention.
  • FIG. 10 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention.
  • FIG. 11 is a schematic structural diagram of another embodiment of a WTP according to the present invention.
  • FIG. 12 is a schematic structural diagram of still another embodiment of a WTP according to the present invention.
  • FIG. 13 is a schematic structural diagram of still another embodiment of WTP according to the present invention.
  • FIG. 14 is a schematic structural diagram of an embodiment of a station STA according to the present invention.
  • FIG. 15 is a schematic structural diagram of another embodiment of a station STA according to the present invention.
  • 16 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention.
  • FIG. 17 is a schematic structural diagram of another embodiment of a WTP according to the present invention.
  • FIG. 18 is a schematic structural diagram of an embodiment of a tunnel establishment system according to the present invention. detailed description
  • the present invention can be applied to a scenario in which there is at least one STA in the wireless transmission range of the WTP, and the STA can establish a first control wireless access point protocol (Wand and the AC and the AC). , CAPWAP) tunnel, WTP and AC can interact through the first CAPWAP tunnel, and each STA and WTP can communicate through the 802.11 protocol.
  • a first control wireless access point protocol Wand and the AC and the AC.
  • CAPWAP CAPWAP
  • FIG. 1 is a flowchart of an embodiment of a tunnel state maintenance method according to the present invention. As shown in FIG. 1, the method in this embodiment may include:
  • the STA establishes a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the communication protocol commonly used between WTP and AC is to control the wireless access point protocol, which is an application layer protocol built on the User Datagram Protocol (UDP).
  • UDP User Datagram Protocol
  • a tunnel is set up between the AC and the WTP to carry control packets and user data packets in the tunnel to facilitate centralized management and protection of user data.
  • the CAPWAP tunnel is divided into a control tunnel and a data tunnel.
  • the control tunnel transmits CAPWAP control packets
  • the data tunnel transmits data packets.
  • the second CAPWAP tunnel between the WTP and the STA may be established by the WTP or by the AC.
  • the AC may send a CAPWAP packet for controlling the STA to the WTP through the first CAPWAP tunnel, and then The WTP is forwarded to the STA through the second CAPWAP tunnel, so that the AC can send the packet for controlling the STA to the STA, and the WTP can forward the response or the packet of the STA to determine the control effect on the STA, such as the STA. Whether the resource scheduling is reasonable and effective.
  • S102 If the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal.
  • the STA may determine the first CAPWAP.
  • the tunnel is abnormal. For example, it can be determined that the WTP is switched from the running RUN state to the reset RESET state or the data packet transport layer security Tear Down state (DTLS TD, Datagram Transport Layer Security Tear Down).
  • DTLS TD Datagram Transport Layer Security Tear Down
  • the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • the WTP can maintain a relatively complex CAPWAP tunnel state machine, and define multiple complex states corresponding to different states of the first CAPWAP tunnel; and because the STA resources are limited, a simple CAPWAP tunnel state machine can be established in the STA. , only maintain a simple state machine.
  • three states can be defined for the STA's tunnel state machine: idle IDLE, run RUN, non-run UNRUN.
  • the relationship between the tunnel state machine maintained by the STA and the tunnel state machine maintained by the WTP is that the RUN state corresponds completely, and the non-RUN state of the WTP corresponds to the UNRUN state of the STA.
  • the STA tunnel status notification message is a tunnel change message
  • the STA determines that the first CAPWAP tunnel is abnormal.
  • the state machine maintained by the WTP should be changed from the RUN state to the non-RUN state, such as DTLS TD, and at the same time, the STA The RUN state should be redirected to the UNRUN state.
  • the STA maintains the UNRUN state
  • the STA does not send CAPWAP packets to the AC through the WTP or through the WTP.
  • the g ⁇ STA no longer passes the first CAPWAP tunnel and the second CAPWAP tunnel and the AC. Interact.
  • the STA establishes a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC;
  • the tunnel change message is used to determine that the first CAPWAP tunnel is abnormal.
  • the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. .
  • FIG. 2 is a flowchart of another embodiment of a tunnel state maintenance method according to the present invention.
  • the present application is applied to a scenario in which a first CAPWAP tunnel is established between a WTP and an AC, as shown in FIG. 2,
  • the method of an embodiment may include:
  • the WTP establishes a second CAPWAP tunnel with the STA.
  • the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the WTP and the STA of the station establish a second CAPWAP tunnel, which may be established by WTP control or by AC control.
  • the WTP sends a tunnel change message to the STA, so that the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC.
  • the tunnel status of the first CAPWAP tunnel of the WTP and the AC may be determined according to the message sent by the AC. If the WTP receives the RESET request message sent by the AC, the WTP will switch from the RUN state to the RESET state. After the WTP completes the first CAPWAP restart operation and ends the DTLS session, it may send a RESET response message to the AC, and then the WTP will switch from the RESET state to the DTLS TD state, and after switching to the DTLS TD state, a timer may be started to enable timing. The device continues to switch states when it is timed.
  • the tunnel condition of the first CAPWAP tunnel of the WTP and the AC is also determined by the WTP according to other messages received or self-detection.
  • the RUN state of the WTP is switched to the DTLS TD state: the state switch occurs in the DTLS protocol stack. Situation, causing a DTLS session to be interrupted.
  • this state switch occurs when it receives a DTLS notification message: DTLS Aborted, DTLS Reassembly Failure, or DTLS Peer Disconnect.
  • the DTLS Aborted is used to indicate the establishment of the session suspension; the DTLS Reassembly Failure is used to indicate that the DTLS fragment data reorganization fails; and the DTLS Peer Disconnect is used to indicate that the DTLS session has been disassembled.
  • the WTP receives the DTLS Decap Failure notification frequently, it may also cut off the DTLS session and enter the DTLS TD state.
  • the DTLS Decap Failure is used to indicate that the parsing packet fails, and the encryption verification fails.
  • WTP also switches from the RUN state to the DTLS TD state. And the above timer will be started after the WTP switches to the DTLS TD state.
  • the WTP may send a tunnel status notification message to the STA, where the tunnel status notification message is a tunnel change message, that is, the first CAPWAP tunnel is abnormal.
  • the STA and the WTP establish a second CAPWAP a tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal; the STA does not pass the first The CAPWAP tunnel and the second CAPWAP tunnel send a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 3 is a flowchart of still another embodiment of a tunnel state maintenance method according to the present invention.
  • the present embodiment is applied to a scenario in which a first CAPWAP tunnel is established between a WTP and an AC.
  • the method in this embodiment may include :
  • the WTP establishes a second CAPWAP tunnel with the STA.
  • the WTP tunnel state machine can maintain multiple states. After the WTP and the AC establish the first CAPWAP tunnel, the WTP enters the running RUN state. After the WTP and the STA establish the second CAPWAP tunnel, the RUN state is maintained.
  • the STA establishes a second CAPWAP tunnel with the WTP.
  • the STA tunnel state machine can maintain three states, which are defined as idle IDLE state, running RUN state, and non-running UNRUN.
  • the IDLE state is entered. That is, the state indicates that the WTP does not maintain the state of the STA's CAPWAP tunnel.
  • the second CAPWAP tunnel may be established by WTP control or may be established by AC control.
  • FIG. 4 is a flowchart of an embodiment of a tunnel establishment method provided by the present invention.
  • a second CAPWAP tunnel may be established by WTP control.
  • the STA sends a CAPWAP tunnel establishment request to the WTP.
  • the WTP determines whether to establish a second CAPWAP tunnel between the WTP and the STA according to at least one of the CAPWAP tunnel establishment request content and the maximum access capability of the WTP. S403; No, then S409 is performed.
  • determining whether to establish a second CAPWAP tunnel between the WTP and the STA according to at least one of the CAPWAP tunnel establishment request content and the maximum access capability of the WTP may be: whether the WTP is correctly determined according to the request condition of the tunnel establishment request, or Whether the format of the tunnel establishment request is correctly determined; or determining whether to permit the establishment of the second CAPWAP tunnel to determine whether to permit the establishment of the second CAPWAP tunnel according to the capability of the WTP; or, when the CAPWAP tunnel establishment request content and the maximum access capability of the WTP satisfy the condition It is determined to establish a second CAPWAP tunnel.
  • whether the WTP is based on the request condition of the tunnel establishment request, whether the CAPWAP tunnel is established or not, may be determined whether the source STA of the CAPWAP tunnel establishment request is pre-existing in the configurable tunnel list, and the configurable tunnel list may be pre-stored in the WTP. If the source STA is pre-existing, the STA in the tunnel list can be established to determine to permit the establishment of the second CAPWAP tunnel.
  • the WTP may also determine whether to permit the establishment of the second CAPWAP tunnel according to the format of the tunnel establishment request.
  • the request may be pre-configured in a special format as in the above message. If the WTP determines that the received tunnel establishment request conforms to the preset format, it determines to permit the establishment of the second CAPWAP tunnel.
  • WTP can also determine whether to permit the establishment of a second CAPWAP tunnel based on the capabilities of the WTP. For example, the capability of the WTP maximum bearer to establish the second CAPWAP tunnel is to establish five second CAPWAP tunnels.
  • the tunnel establishment request of the STA is sent to the WTP after the WTP only establishes one to three second CAPWAP tunnels, and the WTP determines that the WTP can also be The second CAPWAP tunnel carrying one more is allowed to be established; the tunnel establishment request of the STA is sent to the WTP after the WTP establishes 5 second CAPWAP tunnels, and the WTP capability is limited, and the WTP does not permit the establishment of the WTP and the STA.
  • the establishment success response may be returned to the STA, and S403 is performed; if the establishment is not permitted, the tunnel establishment failure notification may be returned to the STA, and S412 is performed.
  • the WTP establishes a second CAPWAP tunnel with the STA.
  • the notification message for notifying the establishment of the second CAPWAP tunnel may be sent to the AC.
  • the notification message may also be carried in a CAPWAP message conforming to the above CAPWAP message format.
  • the AC sends a CAPWAP message to the WTP.
  • the CAPWAP message includes the CAPWAP control packet or data sent by the AC.
  • the packet is configured to perform resource scheduling on the STA.
  • the CAPWAP message further includes the identifier information.
  • the identifier information is generated by the WTP or the STA when the first CAPWAP tunnel or the second CAPWAP tunnel is established.
  • the identifier information may be address information or a preset identifier.
  • the identification information is used to cause the WTP to determine whether the CAPWAP message is a message sent to the STA or a whitespace s sent to the WTP.
  • the AC may also receive the CAPWAP message sent by the WTP, or the CAPWAP message sent by the WTP-transferred STA, and the CAPWAP message may include the identification information, so that the AC determines the source of the CAPWAP message, and the description is not extended here.
  • CAPWAP message includes the description described in the foregoing embodiment.
  • the format and the content of the CAPWAP packet can be described in the foregoing embodiment, and details are not described herein.
  • the WTP receives the CAPWAP message sent by the AC.
  • the WTP determines, according to the identifier information in the CAPWAP message, whether the CAPWAP message is sent to the STA.
  • the WTP determines, according to the identifier information included in the CAPWAP message, whether the CAPWAP message is a message sent to the STA. If the identifier information is the address information, and the address information is a valid address, such as a MAC address corresponding to one STA, the message is determined to be a message sent to the STA corresponding to the MAC address; when the address information is an invalid address, When any STA's MAC address is determined, the message is sent to the WTP. For example, the message address is 38 bits F is a valid address, and 38 bits F is an invalid address.
  • the MAC address of the STA may be pre-stored in the preset list to check whether the address information is a valid address. If the same MAC address is found in the preset list, it is determined to be a valid address, otherwise it is an invalid address.
  • the identifier information is a preset identifier, and if the preset identifier included in the CAPWAP message is the first value, and each first value corresponds to one STA, the WTP forwards the CAPWAP message to the STA corresponding to the first value;
  • the preset identifier bit included in the CAPWAP message is the second value, and the second value corresponds to the WTP, and the WTP processes the CAPWAP message. For example, if the first value is 1, and the second value is 0, if the preset flag is 1, the CAPWAP message is sent to the WTP; if the preset flag is 0, the CAPWAP message is sent to the STA.
  • the first value is 0, and when the second value is 1, if the preset flag is 0, the CAPWAP message is sent to WTP. If the preset flag is 1, the CAPWAP message is sent to the STA. Further, when the WTP pre-stores the corresponding first value of the multiple STAs, the first value is respectively set to 01, 10, 11 or 1, 2, 3, etc. according to the order of STA access, which can facilitate WTP and multiple When the STA establishes a second CAPWAP tunnel, it can determine which STA the CAPWAP message is sent to.
  • the WTP determines that the CAPWAP message is sent to the STA according to the identifier information in the CAPWAP message, and then performs step S407. If not, the WTP parses the CAPWAP message and performs a corresponding operation according to the content or policy.
  • the WTP forwards the CAPWAP message to the STA corresponding to the identifier information in the CAPWAP message.
  • S408 The STA receives the CAPWAP message forwarded by the WTP.
  • the STA may also send a CAPWAP message to the AC through the WTP, that is, the CAPWAP message is sent through the second CAPWAP tunnel and the first CAPWAP tunnel, so that the STA can interact with the AC through the CAPWAP message.
  • the WTP sends a tunnel establishment failure notification to the STA, and the tunnel establishment failure notification includes the failure reason.
  • the STA receives a tunnel establishment failure notification sent by the WTP, and determines, according to the failure reason, a time for resending the CAPWAP tunnel establishment request.
  • the STA may pre-store a list with a correspondence between the number and the reason for the failure, the number may be an encoding or a serial number, and the tunnel establishment failure notification may include a coding or serial number, so that The STA can query the list to determine the reason for the tunnel establishment failure.
  • the list may further pre-store a timer corresponding to the failure reason, so that the STA re-requests to establish a second CAPWAP tunnel after the timer expires. If the failure occurs because the first CAPWAP tunnel is abnormal, the CAPWAP tunnel establishment request is resent after 5 seconds.
  • FIG. 5 is a flowchart of another embodiment of a tunnel establishment method provided by the present invention.
  • the second CAPWAP tunnel may be established by AC control.
  • S501 The STA sends a CAPWAP tunnel establishment request to the AC through the WTP.
  • the STA may send a CAPWAP tunnel establishment request to the WTP, and the WTP forwards the CAPWAP tunnel establishment request to the AC. If the CAPWAP tunnel establishment request sent by the STA is received, the AC determines whether to establish a second CAPWAP tunnel between the WTP and the STA according to at least one of the CAPWAP tunnel establishment request content and the maximum access capability of the WTP. S503; No, execute S512.
  • the AC may determine whether to permit the establishment of the second CAPWAP tunnel according to whether the request condition of the tunnel establishment request is correct, whether the format of the tunnel establishment request is correct, or according to one or more of the maximum access capabilities of the WTP. Determine if a second CAPWAP tunnel is allowed to be established. The method for determining the same has been developed in the above embodiment, and details are not described herein again.
  • the AC sends a notification message to the WTP to notify the second CAPWAP tunnel establishment.
  • the WTP receives a notification message that notifies the establishment of the second CAPWAP tunnel.
  • the WTP learns that a second CAPWAP tunnel has been established with the STA.
  • the CAPWAP message between the STA and the AC can be prepared for subsequent forwarding.
  • the WTP establishes a second CAPWAP tunnel with the STA, and sends a notification message to the STA to notify the establishment of the second CAPWAP tunnel.
  • the STA receives the notification message.
  • the STA may send a CAPWAP message to the AC through the WTP.
  • the data packet or the control packet in the CAPWAP message may be generated according to the packet format given in the foregoing embodiment, and is no longer Narration.
  • the AC sends a CAPWAP message to the WTP.
  • the AC can also receive the CAPWAP message sent by the WTP, or
  • the CAPWAP message sent by the STA forwarded by the WTP can also send a CAPWAP message to the WTP or forward the CAPWAP message to the STA through the WTP.
  • This example uses the AC to forward the CAPWAP message to the STA through the WTP as an example, but does not limit it.
  • the CAPWAP message includes a CAPWAP control packet or a data packet sent by the AC to perform resource scheduling on the STA, and the CAPWAP message further includes the identifier information, where the identifier information is the first CAPWAP tunnel or the second CAPWAP tunnel is established according to the WTP. Or STA generated.
  • the identifier information may be address information or a preset identifier.
  • the identification information is used to cause the WTP to determine whether the CAPWAP message is a message sent to the STA or a message sent to the WTP.
  • the identifier information is the address information: If the address information is a valid address, the AC sends a CAPWAP message to the WTP, so that the WTP forwards the CAPWAP message to the STA corresponding to the effective address. If the identifier information is an invalid address, the AC sends a CAPWAP message to the WTP. Enable WTP to process CAPWAP messages.
  • the identifier information is a preset identifier bit: if the preset identifier bit included in the CAPWAP message is the first value, and each first value corresponds to one STA, the AC sends a CAPWAP message to the WTP, so that the WTP corresponds to the first value. The STA forwards the CAPWAP message. If the preset identifier bit included in the CAPWAP message is the second value and the second value corresponds to the WTP, the AC sends a CAPWAP message to the WTP, so that the WTP processes the CAPWAP message.
  • the WTP receives the CAPWAP message sent by the AC.
  • the WTP determines, according to the identifier information in the CAPWAP message, whether the CAPWAP message is sent to the STA.
  • the CAPWAP message may be the control packet and the data packet in the foregoing embodiment.
  • the format and the content of the packet may be as described in the foregoing embodiment, and details are not described herein.
  • step S510 is performed. If not, the WTP parses the CAPWAP message and performs a corresponding operation according to its content or policy.
  • the WTP forwards the CAPWAP message to the STA corresponding to the identifier information included in the CAPWAP message.
  • the STA receives the CAPWAP message forwarded by the WTP.
  • the STA may also send a CAPWAP message to the AC through the WTP, that is, the CAPWAP message is sent through the second CAPWAP tunnel and the first CAPWAP tunnel, so that the STA can interact with the AC through the CAPWAP message.
  • the AC sends a tunnel establishment failure notification to the WTP, and the WTP sends a tunnel establishment failure notification to the STA, and the tunnel establishment failure notification includes the failure reason.
  • the STA receives a tunnel establishment failure notification sent by the WTP, and determines, according to the failure reason, a time for resending the CAPWAP tunnel establishment request.
  • the STA When the STA learns that the first CAPWAP tunnel established by the WTP and the AC is in the RUN state, that is, when the state machine of the WTP is in the non-RUN state, the STA enters the UNRUN state.
  • WTP Sending a tunnel status change message causes the STA to jump from the RUN state to the UNRUN state.
  • the WTP sends the information about the first CAPWAP tunnel to the STA, such as image data and config data.
  • the STA may also send a (Site Tunnel Request) Station tunnel inquire message to the WTP to obtain the progress of the WTP currently establishing the first CAPWAP tunnel from the WTP feedback message, where the site tunnel request message may carry the WTP current tunnel.
  • the STA can determine, according to the timer in the feedback message, how long the second CAPWAP tunnel can be successfully established, and further determine the time that the local end can access.
  • both STA and WTP are in the RUN state.
  • the STA determines that the first CAPWAP tunnel is abnormal, or after the STA determines that the second CAPWAP tunnel is abnormal, the STA switches the state of the tunnel state machine from the RUN state to the non-running UNRUN state.
  • the second STA and the WTP can maintain the heartbeat packet transmission. If the heartbeat packet sent by the WTP is not received within a preset time period, such as 3S, that is, the WTP heartbeat packet cannot be delivered to the STA, the heartbeat packet fails to be sent.
  • the STA determines the second CAPWAP tunnel exception and transitions from the RUN state to the UNRUN state.
  • This example uses the WTP to notify the STA of the first CAPWAP tunnel exception. If the first CAPWAP tunnel is abnormal, the STA can be notified by the WTP to make the STA transition from the RUN state to the UNRUN state.
  • the specific method can be as follows:
  • the WTP determines that the first CAPWAP tunnel is abnormal, the WTP sends a tunnel change message to the STA.
  • the WTP receives the reset request message generated by the AC, and sends a tunnel change message to the STA, where the tunnel change message includes the cause of the first CAPWAP tunnel abnormality; or, the WTP learns that the data packet transport layer security protocol DTLS protocol stack is abnormal.
  • the tunnel change message is sent to the STA, and the tunnel change message includes the cause of the first CAPWAP tunnel abnormality.
  • the tunnel state notification message may be a tunnel change message, and the tunnel change message is sent to the STA when the WTP jumps out of the RUN state.
  • the WTP switches the state of the tunnel state machine from the RUN state to the RESET state or DTLS.
  • the tunnel change message is sent to the STA to indicate that the first CAPWAP tunnel is abnormal.
  • the tunnel state notification message may delete the message by using the first CAPWAP tunnel.
  • the STA may jump to the UNRUN state and continue to wait for the first CAPWAP tunnel.
  • a CAPWAP tunnel can also be redirected to the IDLE state, waiting for the first CAPWAP
  • the tunnel state notification message is a tunnel change message as an example, but is not limited thereto.
  • the STA determines that the first CAPWAP tunnel is abnormal.
  • the STA is no longer sent through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the CAPWAP message interacts with the AC.
  • the tunnel change message includes the cause of the first CAPWAP tunnel exception. Further, if it is determined that the first CAPWAP tunnel is abnormal, the STA switches the state of the tunnel state machine from the RUN state to the UNRUN state.
  • both the STA and the WTP may pre-store the coding or sequence number corresponding to the cause of the first CAPWAP tunnel abnormality.
  • the tunnel change message may include the cause of the first CAPWAP tunnel abnormality.
  • the encoding or sequence number, the STA receives the tunnel change message, and can resolve the reason of the corresponding abnormality by parsing the code or serial number, so as to avoid excessive occupation of the wireless network because the message is too large.
  • the STA sets a preset time period according to the first CAPWAP tunnel abnormality. For example, the STA sets a preset time period according to the reason of the first CAPWAP tunnel abnormality, and pre-stores the time period in the list, and different abnormal causes correspond to different time segments. If the first CAPWAP tunnel needs to restart the DTLS session, set the preset time period to lOmin.
  • the STA After a preset period of time, the STA sends an inquiry message to the WTP, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
  • the preset time period is set to 10 min.
  • lOmin arrives at the time, and sends an inquiry message to the WTP, and the inquiry message is used to query the first CAPWAP. Whether the tunnel is back to normal.
  • the state of the tunnel state machine is switched from the UNRUN state to the idle IDLE state.
  • the WTP receives an inquiry message sent by the STA, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
  • step S310 determines whether the first CAPWAP tunnel is normal. If yes, step S310 is performed. If the fault is abnormal, step S311 is performed.
  • the WTP returns an inquiry message response to the STA.
  • S311. The WTP does not return an inquiry message response to the STA.
  • the WTP can be solved in the first CAPWAP tunnel abnormality problem. For example, after the WTP reestablishes the first CAPWAP tunnel, the notification message is sent to notify the STA, so that the STA will jump from the UNRUN state to the RUN state.
  • the STA sends or receives the CAPWAP message forwarded by the WTP.
  • the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send the CAPWAP message to the AC.
  • Interaction When the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send a CAPWAP message to interact with the AC.
  • the STA receives the inquiry message response sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the query response message.
  • step S309 the embodiment may further perform step S313 for example, or may not perform the subsequent step S313, and is not limited by the implementation:
  • the WTP determines that the first CAPWAP tunnel is normal, the WTP sends a site tunnel ready message to the STA.
  • the STA receives the site tunnel ready message sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the site tunnel ready message.
  • the method further includes: deleting the second CAPWAP tunnel, and the step is performed after the step S314 in this embodiment, but is not limited thereto.
  • the STA data request (Image data for STA request) message may be used to send the STA the updated part. Send to the STA, the message can carry the change command or the content of the new protocol. If the WTP receives the configuration (config) update message from the AC, the STA sends the STA-related part to the STA, including radio management (radio adminstrative), so that the STA updates the parameter information according to the message.
  • the STA determines to delete the second CAPWAP tunnel, the STA sends a tunnel deletion request to the WTP.
  • the WTP receives the tunnel deletion request sent by the STA, deletes the second CAPWAP tunnel, and notifies the AC to the second CAPWAP tunnel to delete.
  • deleting the second CAPWAP tunnel may also be initiated by the AC, such as AC.
  • the tunnel deletion request is sent to the WTP.
  • the WTP deletes the second CAPWAP tunnel and notifies the STA of the second CAPWAP tunnel deletion.
  • the tunnel deletion request may include the MAC address information of the STA, so that the WTP determines, according to the MAC address information, which of the established second CAPWAP tunnels needs to be deleted.
  • the STA receives the notification of the second CAPWAP tunnel deletion sent by the WTP, and determines that the second CAPWAP tunnel has been deleted.
  • the STA switches the state of the tunnel state machine from the UNRUN state or the RUN state to the IDLE state.
  • the STA establishes a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC;
  • the tunnel change message is used to determine that the first CAPWAP tunnel is abnormal.
  • the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. .
  • FIG. 6 is a schematic structural diagram of an embodiment of a station STA according to the present invention.
  • the STA 10 of this embodiment may include: a STA tunnel establishing unit 101, a STA processing unit 102, and a STA receiving unit 103.
  • the STA tunnel establishing unit 101 is configured to establish a second CAPWAP tunnel with the point WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the STA processing unit 102 is configured to determine, if the STA receiving unit 103 receives the tunnel change message sent by the WTP, the first CAPWAP tunnel abnormality, so that the STA sending unit does not send the CAPWAP message and the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • the STA receiving unit 103 is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel is restored to normal.
  • FIG. 7 is a schematic structural diagram of another embodiment of a station STA according to the present invention. As shown in FIG. 7, the WTP of the present embodiment may further include:
  • the STA sending unit 104 is configured to send an inquiry message to the WTP after the first preset time period, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
  • the time setting unit 105 is configured to set a first preset time period according to the reason that the STA receiving unit 102 receives the first CAPWAP tunnel abnormality included in the tunnel change message.
  • FIG. 8 is a schematic structural diagram of still another embodiment of a station STA according to the present invention. As shown in FIG. 8, the WTP of the present embodiment may further include:
  • the STA heartbeat packet transmission unit 106 is configured to maintain a heartbeat packet transmission with the WTP. If the heartbeat packet sent by the WTP is not received within a preset time period, the STA processing unit 102 determines that the second CAPWAP tunnel is abnormal.
  • FIG. 9 is a schematic structural diagram of another embodiment of a station STA according to the present invention. As shown in FIG. 9, the WTP of the present embodiment may further include:
  • the tunnel state machine 107 is configured to switch to the running state if the second CAPWAP tunnel is established with the WTP, and to switch from the running state to the non-running state if the first CAPWAP tunnel or the second CAPWAP tunnel is determined to be abnormal; When it is determined that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, the non-operating state state is switched to the idle state.
  • the STA When the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP. When the tunnel state machine is in the non-operation state, the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send the CAPWAP message to the AC. Interaction: When the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send a CAPWAP message to interact with the AC.
  • tunnel state machine 107 is further configured to switch from the non-operation state to the running state after the first CAPWAP tunnel returns to normal. Further, the tunnel state machine 107 is further configured to switch from the non-operation state or the running state to the idle state if the second CAPWAP tunnel is deleted.
  • the STA, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP Then, the first CAPWAP tunnel is determined to be abnormal.
  • the STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 10 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention.
  • the WTP 20 of this embodiment may include: a WTP tunnel establishing unit 201, a WTP processing unit 202, and a WTP sending unit 203.
  • the WTP tunnel establishing unit 201 is configured to establish a second CAPWAP tunnel with the STA, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the WTP sending unit 202 is configured to: if the first CAPWAP tunnel is abnormal, the WTP sending unit 203 sends a tunnel change message to the STA, so that the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 11 is a schematic structural diagram of another embodiment of the WTP of the present invention. As shown in FIG. 11, the WTP of the present embodiment may further include:
  • the WTP receiving unit 204 is configured to: when receiving the reset request message generated by the AC, cause the WTP sending unit 203 to send a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality; or
  • the WTP processing unit 202 is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP sending unit 203 sends a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality. Further, the WTP receiving unit 203 is further configured to receive an inquiry message sent by the STA, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
  • the WTP processing unit 202 is further configured to: if it is determined that the first CAPWAP tunnel is normal, the WTP sending unit 203 returns an inquiry message response to the STA; the WTP processing unit 202 is further configured to: if it is determined that the first CAPWAP tunnel is abnormal, The WTP transmitting unit 203 is caused not to return an inquiry message response to the STA.
  • FIG. 12 is a schematic structural diagram of still another embodiment of the WTP of the present invention. As shown in FIG. 12, the WTP of the present embodiment may further include:
  • the WTP heartbeat packet transmission unit 205 is configured to maintain heartbeat packet transmission with the STA. If the second CAPWAP tunnel is abnormal, the heartbeat packet transmission fails.
  • FIG. 13 is a schematic structural diagram of another embodiment of the WTP of the present invention. As shown in FIG. 13, the WTP of the present embodiment may further include:
  • the tunnel state machine 206 is configured to enable the WTP sending unit 202 to send a tunnel change message to the STA if the switch from the running RUN state to the reset RESET state or the data packet transport layer security protocol link disconnects the DTLS TD state.
  • the WTP forwards or receives the CAPWAP message sent by the AC or the STA.
  • the WTP determines that the first CAPWAP tunnel is abnormal, and is not forwarded by the AC or the STA. CAPWAP message.
  • the WTP, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP
  • the first CAPWAP tunnel is determined to be abnormal.
  • the STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 14 is a schematic structural diagram of an embodiment of a station STA according to the present invention.
  • the STA 30 of this embodiment may include: a STA processor 301, a STA receiver 302, and a transmitter 303.
  • the STA processor 301 is configured to establish a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the STA processor 301 is further configured to: if the STA receiver 302 receives the tunnel change message sent by the WTP, determine the first CAPWAP tunnel abnormality; so that the STA transmitter 303 does not send the CAPWAP message through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the AC interacts.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 15 is a schematic structural diagram of another embodiment of a station STA according to the present invention.
  • the WTP of this embodiment may further include: a timer 304, based on the apparatus structure shown in FIG. The preset time period is set according to the reason of the first CAPWAP tunnel abnormality included in the tunnel change message received by the STA receiver 302.
  • the STA receiver 302 is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel is restored to normal.
  • the STA receiver 302 is further configured to receive a site tunnel ready message sent by the WTP.
  • the STA processor 301 is further configured to determine that the first CAPWAP tunnel is restored according to the site tunnel ready message.
  • the STA processor 301 is further configured to maintain a heartbeat packet transmission with the WTP, and if the heartbeat packet sent by the WTP is not received within the second preset time period, determine that the second CAPWAP tunnel is abnormal.
  • the STA processor 301 is further configured to establish a second with the WTP.
  • the status of the CAPWAP tunnel is switched to the running state.
  • the operation state is switched to the non-operation state
  • the state is switched from the non-operation state state to the idle state, where, when the operation state is performed, the STA sends or receives the WTP.
  • the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send a CAPWAP message to interact with the AC; when idle, the STA determines that the first CAPWAP tunnel or the second needs to be established.
  • a CAPWAP tunnel does not send a CAPWAP message to interact with the AC.
  • the STA processor 301 is further configured to switch from the non-operational state to the running state after the first CAPWAP tunnel is restored to normal.
  • the STA processor 301 is further configured to switch from the non-running state or the running state to the idle state if the second CAPWAP tunnel is deleted.
  • the STA, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP Then, the first CAPWAP tunnel is determined to be abnormal.
  • the STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 16 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention.
  • the WTP 40 of this embodiment may include: a WTP processor 401 and a WTP transmitter 402.
  • the WTP processor 401 is configured to establish a second CAPWAP tunnel with the STA, so that the AC interacts with the STA by using the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
  • the WTP processor 401 is further configured to: if the first CAPWAP tunnel is abnormal, send the WTP sender 402 to send a tunnel change message to the STA, so that the STA does not pass the first CAPWAP tunnel and the second CAPWAP The tunnel sends a CAPWAP message to interact with the AC, where the first CAPWAP tunnel is the original between the first WTP and the AC.
  • FIG. 17 is a schematic structural diagram of another embodiment of the WTP according to the present invention. As shown in FIG. 17, the WTP of the present embodiment may further include: The WTP receiver 403 is configured to: when receiving the AC reset request message, the WTP transmitter 402 sends a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality; or
  • the WTP processor 401 is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP transmitter 402 sends a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality.
  • the WTP receiver 403 is further configured to receive an inquiry message sent by the STA, and the inquiry message is used to query whether the first CAPWAP tunnel is restored.
  • the WTP processor 401 is further configured to: if the first CAPWAP tunnel is determined to be normal, cause the WTP transmitter 402 to return an inquiry message response to the STA;
  • the WTP processor 401 is further configured to: if the first CAPWAP tunnel is abnormal, cause the WTP sender 402 not to return an inquiry message response to the STA.
  • the WTP processor 401 is further configured to: if it is determined that the first CAPWAP tunnel is restored, the WTP transmitter 402 is configured to send a site tunnel ready message to the STA.
  • the WTP processor 401 is further configured to maintain heartbeat packet transmission with the STA, if the second
  • the heartbeat packet fails to be sent.
  • the WTP processor 401 is further configured to: if the state of the tunnel state machine is switched from the running RUN state to the reset RESET state or the data packet transport layer security protocol link cuts off the DTLS TD state, the WTP transmitter is caused to The STA sends a tunnel change message, where the WTP forwards or receives the CAPWAP message sent by the AC or the STA when the tunnel state machine is in a RUN state; the tunnel state machine is the RESET state. And the DTP TD state, the WTP determines that the first CAPWAP tunnel is abnormal, and does not forward the AC or the CAPWAP message sent by the STA.
  • the WTP, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP
  • the first CAPWAP tunnel is determined to be abnormal.
  • the STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
  • FIG. 18 is a schematic structural diagram of an embodiment of a tunnel establishment system according to the present invention.
  • the system 1 includes: at least one STA 10 and a WTP 20.
  • the STA 10 can adopt the structure shown in any of the STAs 10 of FIG. 6 to FIG. 9, and the WTP 20 can adopt the structure shown by the WTP 20 of any of FIGS. 10 to 13.
  • the system includes:
  • At least one STA 30 and WTP 40 At least one STA 30 and WTP 40.
  • the STA 30 can adopt the structure shown in STA 30 of FIG. 14 or FIG. 15, and the WTP 40 can adopt the figure.
  • the system of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 to FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the station STA after the first CAPWAP tunnel between the WTP and the AC is established, the station STA establishes a second CAPWAP tunnel with the WTP; the STA receives the tunnel status notification message sent by the WTP; if the tunnel status notification message is a tunnel change
  • the STA determines that the first CAPWAP tunnel is abnormal, so that the STA does not interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel.
  • the AC can control the STA through the first CAPWAP tunnel and the second CAPWAP tunnel, so that the STA performs operation processing according to different scenarios according to different scenarios.
  • the processing power of the STA improves the network processing capability of the WLAN.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

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 state processing method, device and system
技术领域 Technical field
本发明实施例涉及通信技术领域, 尤其涉及一种隧道状态处理方法、 装 置及系统。  The embodiments of the present invention relate to the field of communications technologies, and in particular, to a tunnel state processing method, apparatus, and system.
背景技术 Background technique
随着互联网的快速发展, 集中式无线局域网 (Wireless Local Area Network , WLAN) 架构应运而生。 它通过接入控制点 (Access Controller, AC )来管理多个无线终端站点 (Wireless Termination Points, WTP) , WTP 和 AC 间可以采用 802.11 协议和控制无线接入点协议 (Control And Provisioning of Wireless Access Point, CAPWAP )进行通讯, 其中, WTP为 允许无线设备通过 802.11或相关标准接入有线网络的设备。 通常 WTP作为 一个独立设备通过连接路由器接入到有线网络, 或者 WTP 也可以整合路由 器功能。 AC通过网络管理员或网络运营中心管理大量 WTP的实体, 完成对 WTP 设备的配置, 鉴权, 安全等管理。 在这种架构下, WTP 主要是用来接 收和发送无线网络数据, AC收到 WTP发送的无线数据并完成相应的处理之 后, 会将处理后的数据再发送到局域网或因特网中。  With the rapid development of the Internet, a centralized wireless local area network (WLAN) architecture emerged. It manages multiple Wireless Termination Points (WTP) through an Access Controller (AC). 802.11 Protocol and Control Access Point of Wireless Access Point can be used between WTP and AC. , CAPWAP), where WTP is a device that allows wireless devices to access the wired network through 802.11 or related standards. Usually WTP is connected to the wired network as a standalone device through a connection router, or WTP can also integrate router functions. The AC manages a large number of WTP entities through the network administrator or the network operation center to complete the configuration, authentication, and security management of the WTP devices. Under this architecture, WTP is mainly used to receive and send wireless network data. After the AC receives the wireless data sent by the WTP and completes the corresponding processing, it will send the processed data to the local area network or the Internet.
当前各运营商的无线保真(Wireless Fidelity, WiFi)设备在 WLAN架构 中作为站点 (Station, STA) 部署的越来越密集, 各个运营商之间的 STA会 产生非常多的交叠, 其中, STA为包含 IEEE802.i l 协议接入无线媒介的设 备, STA需要通过 WTP接入采用 802.11协议进行通讯网络中。但是 WTP或 AC在 802.11协议下无法对大量的 STA进行有效管理, STA的无管理状态会 造成信号干扰、 资源调度等问题。 而且, STA的能力有限, 对于网络架构中 其它的部分,如 WTP或 AC出现异常时缺乏感知和应对机制,在异常时 STA 依旧对外发送信息, 造成资源浪费。 发明内容 本发明的实施例提供一种隧道状态处理方法、 装置及系统, STA能够在 获知隧道异常时不再与 AC交互, 减少不必要的信息交互, 减少资源浪费。 Currently, wireless Fidelity (WiFi) devices of various operators are deployed more and more densely as stations (STAs) in the WLAN architecture, and STAs between operators are very overlapped. The STA is a device that includes the IEEE 802.il protocol to access the wireless medium. The STA needs to access the 802.11 protocol through the WTP access in the communication network. However, WTP or AC cannot effectively manage a large number of STAs under the 802.11 protocol. The unmanaged state of the STA may cause signal interference and resource scheduling. Moreover, the STA has limited capabilities. For other parts of the network architecture, such as WTP or AC, when there is an abnormality, there is a lack of sensing and coping mechanism. When an abnormality occurs, the STA still sends information to the outside, resulting in waste of resources. Summary of the invention The embodiment of the present invention provides a tunnel state processing method, device, and system. The STA can no longer interact with the AC when the tunnel abnormality is learned, reducing unnecessary information interaction and reducing resource waste.
本发明的第一方面, 提供一种隧道状态处理方法, 包括:  A first aspect of the present invention provides a tunnel state processing method, including:
站点 STA与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP 隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP 隧道和所述第二 CAPWAP隧道与所述 STA进行交互;  The STA and the wireless terminal station WTP establish a second control wireless access point protocol CAPWAP tunnel, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC. The STA interacts;
所述 STA 若接收所述 WTP 发送的隧道变更消息, 则确定所述第一 CAPWAP隧道异常;  If the STA receives the tunnel change message sent by the WTP, determining that the first CAPWAP tunnel is abnormal;
所述 STA不再通过所述第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行交互,所述第一 CAPWAP隧道为所述第一 WTP 与所述 AC之间原有的 CAPWAP隧道。  The STA does not interact with the AC by sending a CAPWAP message through the first CAPWAP tunnel and the second CAPWAP tunnel, where the first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC. .
在第一种可能的实现方式中, 根据第一方面, 所述确定所述第一 CAPWAP隧道异常之后, 还包括:  In a first possible implementation manner, after determining the first CAPWAP tunnel abnormality, according to the first aspect, the method further includes:
所述 STA在第一预设时间段后, 向所述 WTP发送询问消息, 所述询问 消息用于询问所述第一 CAPWAP隧道是否恢复正常。  After the first preset time period, the STA sends an inquiry message to the WTP, where the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
在第二种可能的实现方式中, 结合第一方面和第一种可能的实现方式, 所述隧道变更消息中包含所述第一 CAPWAP隧道异常的原因;  In a second possible implementation manner, in combination with the first aspect and the first possible implementation manner, the tunnel change message includes a cause of the first CAPWAP tunnel abnormality;
所述 STA在所述第一预设时间段后, 向所述 WTP发送询问消息之前, 还包括:  After the STA sends the inquiry message to the WTP after the first preset time period, the STA further includes:
所述 STA根据所述第一 CAPWAP隧道异常的原因, 设定所述第一预设 时间段。  The STA sets the first preset time period according to the reason of the first CAPWAP tunnel abnormality.
在第三种可能的实现方式中, 结合第一方面、 第一种可能的实现方式和 第二种可能的实现方式, 所述 STA在一预设时间段后, 所述向所述 WTP发 送询问消息之后, 还包括:  In a third possible implementation manner, in combination with the first aspect, the first possible implementation manner, and the second possible implementation manner, the STA sends the query to the WTP after a preset time period. After the message, it also includes:
所述 STA接收所述 WTP发送的询问消息响应, 根据所述查询响应消息 确定所述第一 CAPWAP隧道恢复正常。  The STA receives the inquiry message response sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the query response message.
在第四种可能的实现方式中, 根据第一方面, 所述确定所述第一 CAPWAP隧道异常之后, 还包括:  In a fourth possible implementation manner, after determining the first CAPWAP tunnel abnormality, according to the first aspect, the method further includes:
所述 STA接收所述 WTP发送的站点隧道就绪消息, 根据所述站点隧道 就绪消息确定所述第一 CAPWAP隧道恢复正常。 在第五种可能的实现方式中, 结合第一方面、 第一种可能的实现方式、 第二种可能的实现方式、 第三种可能的实现方式和第四种可能的实现方式, 所述站点 STA与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP 隧道之后, 还包括: The STA receives the site tunnel ready message sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the site tunnel ready message. In a fifth possible implementation, in combination with the first aspect, the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, and the fourth possible implementation manner, the site After the STA establishes the second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, the method further includes:
所述 STA将隧道状态机的状态切换到运行状态;  The STA switches the state of the tunnel state machine to an operating state;
所述 STA确定所述第一 CAPWAP隧道异常, 或, 所述 STA确定所述第 二 CAPWAP隧道异常之后, 还包括:  After the STA determines that the first CAPWAP tunnel is abnormal, or after the STA determines the second CAPWAP tunnel abnormality, the STA further includes:
所述 STA将所述隧道状态机的状态从所述运行状态切换至非运行状态; 若所述 STA确定所述第一 CAPWAP隧道异常的时长超过所述第一预设 时间段, 则将所述隧道状态机的状态从所述非运行状态切换至闲置状态; 其中, 所述隧道状态机为所述运行状态时, 所述 STA 发送或接收所述 WTP转发的所述 CAPWAP消息; 所述隧道状态机为所述非运行状态时, 所 述 STA确定所述第一 CAPWAP隧道异常或所述第二 CAPWAP隧道异常, 不发送所述 CAPWAP消息与所述 AC进行交互;所述隧道状态机为所述闲置 状态时,所述 STA确定需建立所述第一 CAPWAP隧道或所述第二 CAPWAP 隧道, 不发送所述 CAPWAP消息与所述 AC进行交互。  The STA switches the state of the tunnel state machine from the running state to the non-operation state; if the STA determines that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, The state of the tunnel state machine is switched from the non-operational state to the idle state; wherein, when the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP; When the device is in the non-operational state, the STA determines that the first CAPWAP tunnel abnormality or the second CAPWAP tunnel abnormality does not send the CAPWAP message to interact with the AC; the tunnel state machine is the In the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send the CAPWAP message to interact with the AC.
在第六种可能的实现方式中, 根据第五种可能的实现方式, 所述 STA确 定所述第一 CAPWAP隧道恢复正常之后, 还包括:  In a sixth possible implementation manner, after determining that the first CAPWAP tunnel is normal, the STA further includes:
所述 STA将所述隧道状态机的状态从所述非运行状态切换至所述运行状 态。  The STA switches the state of the tunnel state machine from the non-operational state to the operational state.
在第七种可能的实现方式中, 结合第五种可能的实现方式和第六种可能 的实现方式, 还包括:  In a seventh possible implementation manner, combining the fifth possible implementation manner and the sixth possible implementation manner, the method further includes:
若所述第二 CAPWAP隧道删除, 则所述 STA将所述隧道状态机的状态 从所述非运行状态或所述运行状态切换至所述闲置状态。 本发明的第二方面, 提供了一种隧道状态维护方法, 包括:  And if the second CAPWAP tunnel is deleted, the STA switches the state of the tunnel state machine from the non-operation state or the running state to the idle state. A second aspect of the present invention provides a tunnel state maintenance method, including:
无线终端站点 WTP与站点 STA建立第二控制无线接入点协议 CAPWAP 隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP 隧道和所述第二 CAPWAP隧道与所述 STA进行交互;  The wireless terminal station WTP establishes a second control wireless access point protocol CAPWAP tunnel with the station STA, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC. The STA interacts;
所述 WTP若确定所述第一 CAPWAP隧道异常, 则向所述 STA发送隧道 变更消息, 使得所述 STA不再通过所述第一 CAPWAP隧道和第二 CAPWAP 隧道发送 CAPWAP消息与所述 AC进行交互, 所述第一 CAPWAP隧道为所 述第一 WTP与所述 AC之间原有的 CAPWAP隧道。 If the WTP determines that the first CAPWAP tunnel is abnormal, sending a tunnel to the STA Transmitting the message, so that the STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel, where the first CAPWAP tunnel is between the first WTP and the AC. There are CAPWAP tunnels.
在第一种可能的实现方式中, 根据第二方面, 所述 WTP 若确定所述第 一 CAPWAP隧道异常, 则向所述 STA发送隧道变更消息包括:  In a first possible implementation, according to the second aspect, if the WTP determines that the first CAPWAP tunnel is abnormal, sending a tunnel change message to the STA includes:
所述 WTP若接收所述 AC发送的重置请求消息, 则向所述 STA发送所 述隧道变更消息, 所述隧道变更消息中包含所述第一 CAPWAP 隧道异常的 原因; 或者,  If the WTP receives the reset request message sent by the AC, the WTP sends the tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality; or
所述 WTP若获知数据报文传输层安全协议 DTLS协议栈异常, 则向所述 STA 发送所述隧道变更消息, 所述隧道变更消息中包含所述第一 CAPWAP 隧道异常的原因。  And the WTP sends the tunnel change message to the STA if the data packet transport layer security protocol DTLS protocol stack is abnormal, and the tunnel change message includes the first CAPWAP tunnel abnormality.
在第二种可能的实现方式中, 结合第二方面和第一种可能的实现方式, 所述 WTP若确定所述第一 CAPWAP隧道异常,则向所述 STA发送隧道变更 消息之后, 还包括:  In a second possible implementation, in combination with the second aspect and the first possible implementation manner, after the determining, by the WTP, that the first CAPWAP tunnel is abnormal, sending the tunnel change message to the STA, the method further includes:
所述 WTP接收所述 STA发送的询问消息, 所述询问消息用于询问所述 第一 CAPWAP隧道是否恢复正常。  The WTP receives an inquiry message sent by the STA, and the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
所述 WTP若确定所述第一 CAPWAP隧道正常, 则向所述 STA返回询问 消息响应;  If the WTP determines that the first CAPWAP tunnel is normal, the WTP returns an inquiry message response to the STA;
所述 WTP若确定所述第一 CAPWAP隧道异常, 则不向所述 STA返回询 问消息响应。  If the WTP determines that the first CAPWAP tunnel is abnormal, the WTP does not return an inquiry message response to the STA.
在第三种可能的实现方式中, 结合第二方面和第一种可能的实现方式, 所述 WTP若确定所述第一 CAPWAP隧道异常, 则向所述 STA发送隧道变更 消息之后, 还包括:  In a third possible implementation, in combination with the second aspect and the first possible implementation manner, after the determining, by the WTP, that the first CAPWAP tunnel is abnormal, sending the tunnel change message to the STA, the method further includes:
所述 WTP若确定所述第一 CAPWAP隧道恢复正常, 则向所述 STA发送 站点隧道就绪消息。  And if the WTP determines that the first CAPWAP tunnel is normal, sending a site tunnel ready message to the STA.
在第四种可能的实现方式中, 结合第二方面、 第一种可能的实现方式、 第二种可能的实现方式和第三种可能的实现方式,  In a fourth possible implementation manner, combining the second aspect, the first possible implementation manner, the second possible implementation manner, and the third possible implementation manner,
所述无线终端站点 WTP 与站点 STA 建立第二控制无线接入点协议 CAPWAP隧道之后, 还包括:  After the wireless terminal station WTP establishes a second control wireless access point protocol CAPWAP tunnel with the station STA, the method further includes:
所述 WTP的隧道状态机的状态若从运行 RUN状态切换到重置 RESET 状态或数据报文传输层安全协议链接切断 DTLS TD状态, 则向所述 STA发 送隧道变更消息, 其中, 所述隧道状态机为 RUN状态时, 所述 WTP转发或 接收所述 AC或所述 STA发送的所述 CAPWAP消息; 所述隧道状态机为所 述 RESET状态和所述 DTLS TD状态时, 所述 WTP确定所述第一 CAPWAP 隧道异常, 不再转发所述 AC或所述 STA发送的所述 CAPWAP消息。 本发明的第三方面, 提供了一种站点 STA, 包括: The state of the WTP tunnel state machine is switched from running the RUN state to resetting the RESET. The state or data packet transport layer security protocol link disconnects the DTLS TD state, and then sends a tunnel change message to the STA, where the WTP forwards or receives the AC or the STA when the tunnel state machine is in the RUN state. The CAPWAP message is sent; when the tunnel state machine is in the RESET state and the DTLS TD state, the WTP determines that the first CAPWAP tunnel is abnormal, and does not forward the AC or the STA to send. Said CAPWAP message. According to a third aspect of the present invention, a station STA is provided, including:
STA隧道建立单元, 用于与无线终端站点 WTP建立第二控制无线接入 点协议 CAPWAP隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间 的第一 CAPWAP隧道和所述第二 CAPWAP隧道与所述 STA进行交互; a STA tunnel establishing unit, configured to establish a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC passes the first CAPWAP tunnel between the WTP and the AC, and the first The CAPWAP tunnel interacts with the STA;
STA处理单元, 用于若 STA接收单元接收所述 WTP发送的隧道变更消 息, 则确定所述第一 CAPWAP隧道异常; 使得 STA发送单元不再通过所述 第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进 行交互, 所述第一 CAPWAP隧道为所述第一 WTP与所述 AC之间原有的 CAPWAP隧道。 a STA processing unit, configured to: if the STA receiving unit receives the tunnel change message sent by the WTP, determine that the first CAPWAP tunnel is abnormal; that the STA sending unit does not send the CAPWAP through the first CAPWAP tunnel and the second CAPWAP tunnel The message is exchanged with the AC, and the first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC.
在第一种可能的实现方式中, 根据第三方面,  In a first possible implementation manner, according to the third aspect,
所述 STA发送单元, 用于在第一预设时间段后, 向所述 WTP发送询问 消息, 所述询问消息用于询问所述第一 CAPWAP隧道是否恢复正常。  The STA sending unit is configured to send an inquiry message to the WTP after the first preset time period, where the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
在第二种可能的实现方式中, 根据第一种可能的实现方式, 还包括: 时间设定单元, 用于根据所述 STA接收单元接收所述隧道变更消息中包 含的所述第一 CAPWAP隧道异常的原因, 设定所述第一预设时间段。  In a second possible implementation, according to the first possible implementation, the method further includes: a time setting unit, configured to receive, according to the STA receiving unit, the first CAPWAP tunnel included in the tunnel change message For the cause of the abnormality, the first preset time period is set.
在第三种可能的实现方式中, 结合第一种可能的实现方式和第二种可能 的实现方式,  In a third possible implementation manner, combining the first possible implementation manner and the second possible implementation manner,
所述 STA接收单元, 还用于接收所述 WTP发送的询问消息响应, 根据 所述查询响应消息确定所述第一 CAPWAP隧道恢复正常。  The STA receiving unit is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel returns to normal.
在第四种可能的实现方式中, 根据第三方面,  In a fourth possible implementation manner, according to the third aspect,
所述 STA接收单元, 还用于接收所述 WTP发送的站点隧道就绪消息; 所述 STA 处理单元, 还用于根据所述站点隧道就绪消息确定所述第一 CAPWAP隧道恢复正常。  The STA receiving unit is further configured to receive a site tunnel ready message sent by the WTP, where the STA processing unit is further configured to determine that the first CAPWAP tunnel is normal according to the site tunnel ready message.
在第五种可能的实现方式中, 结合第三方面、 第一种可能的实现方式、 第二种可能的实现方式、 第三种可能实现方式和第四种可能的实现方式, 还 包括: In a fifth possible implementation, the third aspect, the first possible implementation, The second possible implementation manner, the third possible implementation manner, and the fourth possible implementation manner also include:
隧道状态机, 用于若处于与所述 WTP建立第二 CAPWAP隧道的状态, 则切换到运行状态;  a tunnel state machine, configured to switch to an operating state if a state of establishing a second CAPWAP tunnel with the WTP is performed;
若确定所述第一 CAPWAP隧道或所述第二 CAPWAP隧道异常之后, 则 从所述运行状态切换至非运行状态;  If it is determined that the first CAPWAP tunnel or the second CAPWAP tunnel is abnormal, then switching from the running state to the non-running state;
若确定所述第一 CAPWAP 隧道异常的时长超过所述第一预设时间段, 则从所述非运行状态状态切换至闲置状态;  And if it is determined that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, switching from the non-operation state state to the idle state;
其中, 所述隧道状态机为所述运行状态时, 所述 STA 发送或接收所述 WTP转发的所述 CAPWAP消息; 所述隧道状态机为所述非运行状态时, 所 述 STA确定所述第一 CAPWAP隧道异常或所述第二 CAPWAP隧道异常, 不发送所述 CAPWAP消息与所述 AC进行交互; 所述隧道状态机为所述闲置 状态时, 所述 STA确定需建立所述第一 CAPWAP隧道或所述第二 CAPWAP 隧道, 不发送所述 CAPWAP消息与所述 AC进行交互。  When the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP; when the tunnel state machine is in the non-operation state, the STA determines the first The CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and the CAPWAP message is not sent to interact with the AC; when the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel needs to be established. Or the second CAPWAP tunnel does not send the CAPWAP message to interact with the AC.
在第六种可能的实现方式中, 根据第五种可能的实现方式,  In a sixth possible implementation manner, according to the fifth possible implementation manner,
所述隧道状态机,还用于确定所述第一 CAPWAP隧道恢复正常之后,从 所述非运行态切换至所述运行状态。  The tunnel state machine is further configured to switch from the non-operating state to the running state after determining that the first CAPWAP tunnel returns to normal.
在第七种可能的实现方式中, 结合第五种可能的实现方式和第六种可能 的实现方式,  In a seventh possible implementation manner, in combination with the fifth possible implementation manner and the sixth possible implementation manner,
所述隧道状态机, 还用于若所述第二 CAPWAP 隧道删除, 则从所述非 运行状态或所述运行状态切换至闲置状态。 本发明的第四方面, 提供了一种无线终端站点 WTP, 包括:  The tunnel state machine is further configured to switch from the non-operation state or the operation state to the idle state if the second CAPWAP tunnel is deleted. According to a fourth aspect of the present invention, a wireless terminal station WTP is provided, including:
WTP 隧道建立单元, 用于与站点 STA 建立第二控制无线接入点协议 CAPWAP隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP隧道和所述第二 CAPWAP隧道与所述 STA进行交互;  a WTP tunnel establishing unit, configured to establish a second control radio access point protocol CAPWAP tunnel with the station STA, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP between the WTP and the AC The tunnel interacts with the STA;
WTP处理单元, 用于若确定所述第一 CAPWAP隧道异常, 则使 WTP 发送单元向所述 STA发送隧道变更消息, 使得所述 STA不再通过所述第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行交 互, 所述第一 CAPWAP 隧道为所述第一 WTP 与所述 AC 之间原有的 CAPWAP隧道。 a WTP processing unit, configured to: if the first CAPWAP tunnel is abnormal, send a tunnel change message to the STA, so that the STA does not send the CAPWAP through the first CAPWAP tunnel and the second CAPWAP tunnel The message interacts with the AC, where the first CAPWAP tunnel is original between the first WTP and the AC CAPWAP tunnel.
在第一种可能的实现方式中, 根据第四方面, 还包括:  In a first possible implementation manner, according to the fourth aspect, the method further includes:
WTP接收单元, 用于若接收所述 AC发生的重置请求消息, 则使得所述 WTP发送单元向所述 STA发送隧道变更消息, 所述隧道变更消息中包含所 述第一 CAPWAP隧道异常的原因; 或者,  a WTP receiving unit, configured to: when receiving the reset request message generated by the AC, causing the WTP sending unit to send a tunnel change message to the STA, where the tunnel change message includes a cause of the first CAPWAP tunnel abnormality Or,
所述 WTP处理单元,还用于若获知数据报文传输层安全协议 DTLS协议 栈异常, 则使得所述 WTP发送单元向所述 STA发送所述隧道变更消息, 所 述隧道变更消息中包含所述第一 CAPWAP隧道异常的原因。  The WTP processing unit is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP sending unit sends the tunnel change message to the STA, where the tunnel change message includes the The cause of the first CAPWAP tunnel exception.
在第二种可能的实现方式中, 结合第四方面和第一种可能的实现方式, 所述 WTP接收单元, 还用于接收所述 STA发送的询问消息, 所述询问消息 用于询问所述第一 CAPWAP隧道是否恢复正常;  In a second possible implementation, in combination with the fourth aspect and the first possible implementation, the WTP receiving unit is further configured to receive an inquiry message sent by the STA, where the inquiry message is used to query the Whether the first CAPWAP tunnel is restored to normal;
所述 WTP处理单元, 还用于若确定所述第一 CAPWAP隧道正常, 则使 得所述 WTP发送单元向所述 STA返回询问消息响应;  The WTP processing unit is further configured to: if it is determined that the first CAPWAP tunnel is normal, enable the WTP sending unit to return an inquiry message response to the STA;
所述 WTP处理单元, 还用于若确定所述第一 CAPWAP隧道异常, 则使 得所述 WTP发送单元不向所述 STA返回询问消息响应。  And the WTP processing unit is further configured to: if the first CAPWAP tunnel is abnormal, the WTP sending unit does not return an inquiry message response to the STA.
在第三种可能的实现方式中, 结合第四方面和第一种可能的实现方式, 所述 WTP处理单元, 还用于若确定所述第一 CAPWAP隧道恢复正常, 则使得所述 WTP发送单元向所述 STA发送站点隧道就绪消息。  In a third possible implementation, in combination with the fourth aspect and the first possible implementation manner, the WTP processing unit is further configured to: if the first CAPWAP tunnel is determined to be normal, to enable the WTP sending unit A site tunnel ready message is sent to the STA.
在第四种可能的实现方式中, 结合第四方面、 第一种可能的实现方式、 第二种可能的实现方式、 第三种可能实现方式和第四种可能的实现方式, 还 包括:  In a fourth possible implementation, in combination with the fourth aspect, the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, and the fourth possible implementation manner, the method further includes:
隧道状态机, 用于若从运行 RUN状态切换到重置 RESET状态或数据报 文传输层安全协议链接切断 DTLS TD状态, 则使得所述 WTP发送单元向所 述 STA 发送隧道变更消息, 其中, 所述隧道状态机为 RUN状态时, 所述 WTP转发或接收所述 AC或所述 STA发送的所述 CAPWAP消息; 所述隧道 状态机为所述 RESET状态和所述 DTLS TD状态时, 所述 WTP确定所述第 一 CAPWAP隧道异常, 不再转发所述 AC或所述 STA发送的所述 CAPWAP 消息。  a tunnel state machine, configured to: if the switch from the running RUN state to the reset RESET state or the data packet transport layer security protocol link cuts off the DTLS TD state, causing the WTP sending unit to send a tunnel change message to the STA, where When the tunnel state machine is in the RUN state, the WTP forwards or receives the CAPWAP message sent by the AC or the STA; when the tunnel state machine is the RESET state and the DTLS TD state, the WTP Determining the first CAPWAP tunnel abnormality, and not forwarding the CAPWAP message sent by the AC or the STA.
本发明的第五方面, 提供了一种站点 STA, 包括: STA处理器, 用于与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP隧道和所述第二 CAPWAP隧道与所述 STA进行交互; According to a fifth aspect of the present invention, a station STA is provided, including: a STA processor, configured to establish a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC passes the first CAPWAP tunnel and the second between the WTP and the AC The CAPWAP tunnel interacts with the STA;
所述 STA处理器, 还用于若 STA接收器接收所述 WTP发送的隧道变更 消息, 则确定所述第一 CAPWAP隧道异常; 使得 STA发送器不再通过所述 第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进 行交互, 所述第一 CAPWAP隧道为所述第一 WTP与所述 AC之间原有的 CAPWAP隧道。  The STA processor is further configured to: if the STA receiver receives the tunnel change message sent by the WTP, determine that the first CAPWAP tunnel is abnormal; so that the STA transmitter does not pass the first CAPWAP tunnel and the second CAPWAP The tunnel sends a CAPWAP message to interact with the AC. The first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC.
在第一种可能的实现方式中, 根据第五方面,  In a first possible implementation manner, according to the fifth aspect,
所述 STA发送器, 用于在第一预设时间段后, 向所述 WTP发送询问消 息, 所述询问消息用于询问所述第一 CAPWAP隧道是否恢复正常。  The STA transmitter is configured to send an inquiry message to the WTP after the first preset time period, where the inquiry message is used to query whether the first CAPWAP tunnel is back to normal.
在第二种可能的实现方式中, 根据第一种可能的实现方式, 还包括: 定时器, 用于根据所述 STA接收器接收所述隧道变更消息中包含的所述 第一 CAPWAP隧道异常的原因, 设定所述第一预设时间段。  In a second possible implementation, according to the first possible implementation, the method further includes: a timer, configured to receive, according to the STA receiver, the first CAPWAP tunnel abnormality included in the tunnel change message The reason is that the first preset time period is set.
在第三种可能的实现方式中, 结合第一种可能的实现方式和第二种可能 的实现方式,  In a third possible implementation manner, combining the first possible implementation manner and the second possible implementation manner,
所述 STA接收器, 还用于接收所述 WTP发送的询问消息响应, 根据所 述查询响应消息确定所述第一 CAPWAP隧道恢复正常。  The STA receiver is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel is back to normal.
在第四种可能的实现方式中, 根据第五方面,  In a fourth possible implementation manner, according to the fifth aspect,
所述 STA接收器, 还用于接收所述 WTP发送的站点隧道就绪消息; 所述 STA 处理器, 还用于根据所述站点隧道就绪消息确定所述第一 CAPWAP隧道恢复正常。  The STA receiver is further configured to receive the site tunnel ready message sent by the WTP, where the STA processor is further configured to determine that the first CAPWAP tunnel is normal according to the site tunnel ready message.
在第五种可能的实现方式中, 结合第五方面、 第一种可能的实现方式、 第二种可能的实现方式、 第三种可能实现方式和第四种可能的实现方式, 还 包括:  In a fifth possible implementation, in combination with the fifth aspect, the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, and the fourth possible implementation manner, the method further includes:
所述 STA处理器, 还用于若与所述 WTP建立第二 CAPWAP隧道的状 态, 则切换到运行状态;  The STA processor is further configured to switch to an operating state if a state of establishing a second CAPWAP tunnel with the WTP is performed;
若确定所述第一 CAPWAP隧道或所述第二 CAPWAP隧道异常之后, 则 从所述运行状态切换至非运行状态;  If it is determined that the first CAPWAP tunnel or the second CAPWAP tunnel is abnormal, then switching from the running state to the non-running state;
若确定所述第一 CAPWAP隧道异常的时长超过所述第一预设时间段,则 从所述非运行状态状态切换至闲置状态,其中,为所述运行状态时,所述 STA 发送或接收所述 WTP转发的所述 CAPWAP消息; 为所述非运行状态时, 所 述 STA确定所述第一 CAPWAP隧道异常或所述第二 CAPWAP隧道异常, 不发送所述 CAPWAP消息与所述 AC进行交互; 为所述闲置状态时, 所述 STA确定需建立所述第一 CAPWAP隧道或所述第二 CAPWAP隧道,不发送 所述 CAPWAP消息与所述 AC进行交互。 If it is determined that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, Switching from the non-operational state to the idle state, wherein, in the operating state, the STA sends or receives the CAPWAP message forwarded by the WTP; when in the non-operation state, the STA determines The first CAPWAP tunnel abnormality or the second CAPWAP tunnel abnormality does not send the CAPWAP message to interact with the AC; when the idle state is, the STA determines that the first CAPWAP tunnel needs to be established or The second CAPWAP tunnel does not send the CAPWAP message to interact with the AC.
在第六种可能的实现方式中, 根据第五种可能的实现方式,  In a sixth possible implementation manner, according to the fifth possible implementation manner,
所述 STA处理器, 还用于确定所述第一 CAPWAP隧道恢复正常之后, 从所述非运行态切换至所述运行状态。  The STA processor is further configured to: after determining that the first CAPWAP tunnel returns to normal, switch from the non-operation state to the running state.
在第七种可能的实现方式中, 结合第五种可能的实现方式和第六种可能 的实现方式,  In a seventh possible implementation manner, in combination with the fifth possible implementation manner and the sixth possible implementation manner,
所述 STA处理器, 还用于若所述第二 CAPWAP隧道删除, 则从所述非 运行状态或所述运行状态切换至闲置状态。 本发明的第六方面, 提供了一种无线终端站点 WTP, 包括:  And the STA processor is further configured to switch from the non-operation state or the running state to the idle state if the second CAPWAP tunnel is deleted. According to a sixth aspect of the present invention, a wireless terminal station WTP is provided, including:
WTP处理器, 用于与站点 STA建立第二控制无线接入点协议 CAPWAP 隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP 隧道和所述第二 CAPWAP隧道与所述 STA进行交互;  a WTP processor, configured to establish, by the STA STA, a second control radio access point protocol CAPWAP tunnel, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC Interacting with the STA;
所述 WTP 处理器, 还用于若确定所述第一 CAPWAP 隧道异常, 则使 WTP发送器向所述 STA发送隧道变更消息, 使得所述 STA不再通过所述第 一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行 交互, 所述第一 CAPWAP 隧道为所述第一 WTP 与所述 AC 之间原有的 CAPWAP隧道。  The WTP processor is further configured to: if the first CAPWAP tunnel is abnormal, send a WTP sender to send a tunnel change message to the STA, so that the STA does not pass the first CAPWAP tunnel and the second CAPWAP The tunnel sends a CAPWAP message to interact with the AC. The first CAPWAP tunnel is an original CAPWAP tunnel between the first WTP and the AC.
在第一种可能的实现方式中, 根据第六方面, 还包括:  In a first possible implementation manner, according to the sixth aspect, the method further includes:
WTP接收器, 用于若接收所述 AC 发生的重置请求消息, 则使得所述 a WTP receiver, configured to: if receiving a reset request message generated by the AC,
WTP发送器向所述 STA发送隧道变更消息, 所述隧道变更消息中包含所述 第一 CAPWAP隧道异常的原因; 或者, The WTP sender sends a tunnel change message to the STA, where the tunnel change message includes the cause of the first CAPWAP tunnel abnormality; or
所述 WTP处理器, 还用于若获知数据报文传输层安全协议 DTLS协议栈 异常, 则使得所述 WTP发送器向所述 STA发送所述隧道变更消息, 所述隧 道变更消息中包含所述第一 CAPWAP隧道异常的原因。 在第二种可能的实现方式中, 结合第六方面和第一种可能的实现方式, 所述 WTP接收器, 还用于接收所述 STA发送的询问消息, 所述询问消 息用于询问所述第一 CAPWAP隧道是否恢复正常; The WTP processor is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP sender sends the tunnel change message to the STA, where the tunnel change message includes the The cause of the first CAPWAP tunnel exception. In a second possible implementation, in combination with the sixth aspect and the first possible implementation, the WTP receiver is further configured to receive an inquiry message sent by the STA, where the inquiry message is used to query the Whether the first CAPWAP tunnel is restored to normal;
所述 WTP处理器, 还用于若确定所述第一 CAPWAP隧道正常, 则使得 所述 WTP发送器向所述 STA返回询问消息响应;  The WTP processor is further configured to: if the first CAPWAP tunnel is determined to be normal, causing the WTP sender to return an inquiry message response to the STA;
所述 WTP处理器, 还用于若确定所述第一 CAPWAP隧道异常, 则使得 所述 WTP发送器不向所述 STA返回询问消息响应。  The WTP processor is further configured to: if the first CAPWAP tunnel is abnormal, cause the WTP sender not to return an inquiry message response to the STA.
在第三种可能的实现方式中, 结合第六方面和第一种可能的实现方式, 所述 WTP处理器, 还用于若确定所述第一 CAPWAP隧道恢复正常, 则 使得所述 WTP发送器向所述 STA发送站点隧道就绪消息。  In a third possible implementation, in combination with the sixth aspect and the first possible implementation manner, the WTP processor is further configured to: if the first CAPWAP tunnel is determined to be normal, to enable the WTP transmitter A site tunnel ready message is sent to the STA.
在第四种可能的实现方式中, 结合第六方面、 第一种可能的实现方式、 第二种可能的实现方式、 第三种可能实现方式和第四种可能的实现方式, 所述 WTP处理器, 还用于隧道状态机的状态若从运行 RUN状态切换到 重置 RESET状态或数据报文传输层安全协议链接切断 DTLS TD状态, 则使 得所述 WTP发送器向所述 STA发送隧道变更消息, 其中, 所述隧道状态机 为 RUN状态时, 所述 WTP转发或接收所述 AC或所述 STA发送的所述 CAPWAP消息; 所述隧道状态机为所述 RESET状态和所述 DTLS TD状态 时, 所述 WTP确定所述第一 CAPWAP隧道异常, 不再转发所述 AC或所述 STA发送的所述 CAPWAP消息。  In a fourth possible implementation, in combination with the sixth aspect, the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, and the fourth possible implementation manner, the WTP processing And if the state of the tunnel state machine is switched from the running RUN state to the reset RESET state or the data packet transport layer security protocol link cuts off the DTLS TD state, causing the WTP sender to send a tunnel change message to the STA When the tunnel state machine is in the RUN state, the WTP forwards or receives the CAPWAP message sent by the AC or the STA; when the tunnel state machine is in the RESET state and the DTLS TD state The WTP determines that the first CAPWAP tunnel is abnormal, and does not forward the CAPWAP message sent by the AC or the STA.
第七方面, 提供了一种系统, 包括: In a seventh aspect, a system is provided, comprising:
上述第三方面及其各实现方式中任一的站点 STA和上述第四方面及其各 实现方式中任一的无线终端站点 WTP。 第八方面, 提供了一种系统, 包括:  The station STA of any of the above third aspects and its implementations, and the wireless terminal station WTP of any of the above fourth aspects and implementations thereof. In an eighth aspect, a system is provided, comprising:
上述第五方面及其各实现方式中任一的站点 STA和上述第六方面及其各 实现方式中任一的无线终端站点 WTP。 本发明实施例提供的隧道状态处理方法、 装置及系统, STA与 WTP建 立第二 CAPWAP隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧 道和第二 CAPWAP隧道与 STA进行交互; STA若接收 WTP发送的隧道变 更消息, 则确定第一 CAPWAP隧道异常; STA不再通过第一 CAPWAP隧道 和第二 CAPWAP隧道发送 CAPWAP消息与 AC进行交互, 第一 CAPWAP 隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。这样一来, 通过在 WTP 与 STA之间建立第二 CAPWAP隧道, 使得 STA能够获知隧道异常, 且获知 隧道异常时不再与 AC交互, 减少不必要的信息交互, 减少资源浪费。 The station STA of any of the above fifth aspects and its implementations, and the wireless terminal station WTP of any of the above sixth aspects and implementations thereof. The tunnel state processing method, device, and system provided by the embodiment of the present invention, the STA establishes a second CAPWAP tunnel with the WTP, so that the AC passes the first CAPWAP tunnel between the WTP and the AC. The channel and the second CAPWAP tunnel interact with the STA. If the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal. The STA does not send the CAPWAP message to interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality and no longer interact with the AC when the tunnel is abnormal, reducing unnecessary information interaction and reducing resource waste.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明隧道状态维护方法实施例的流程图;  1 is a flowchart of an embodiment of a tunnel state maintenance method according to the present invention;
图 2为本发明隧道状态维护方法另一实施例的流程图;  2 is a flowchart of another embodiment of a tunnel state maintenance method according to the present invention;
图 3为本发明隧道状态维护方法再一实施例的流程图;  3 is a flowchart of still another embodiment of a tunnel state maintenance method according to the present invention;
图 4为本发明提供的隧道建立方法实施例的流程图;  4 is a flowchart of an embodiment of a tunnel establishment method provided by the present invention;
图 5为本发明提供的隧道建立方法另一实施例的流程图;  FIG. 5 is a flowchart of another embodiment of a tunnel establishment method according to the present invention;
图 6为本发明站点 STA实施例的结构示意图;  6 is a schematic structural diagram of an embodiment of a station STA according to the present invention;
图 7为本发明站点 STA的另一实施例的结构示意图;  7 is a schematic structural diagram of another embodiment of a station STA according to the present invention;
图 8为本发明站点 STA的再一实施例的结构示意图;  8 is a schematic structural diagram of still another embodiment of a station STA according to the present invention;
图 9为本发明站点 STA的又一实施例的结构示意图;  9 is a schematic structural diagram of still another embodiment of a station STA according to the present invention;
图 10为本发明无线终端站点 WTP实施例的结构示意图;  10 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention;
图 11为本发明 WTP的另一实施例的结构示意图;  11 is a schematic structural diagram of another embodiment of a WTP according to the present invention;
图 12为本发明 WTP的再一实施例的结构示意图;  12 is a schematic structural diagram of still another embodiment of a WTP according to the present invention;
图 13为本发明 WTP的又一实施例的结构示意图;  13 is a schematic structural diagram of still another embodiment of WTP according to the present invention;
图 14为本发明站点 STA实施例的结构示意图;  14 is a schematic structural diagram of an embodiment of a station STA according to the present invention;
图 15为本发明站点 STA的另一实施例的结构示意图;  15 is a schematic structural diagram of another embodiment of a station STA according to the present invention;
图 16为本发明无线终端站点 WTP实施例的结构示意图;  16 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention;
图 17为本发明 WTP的另一实施例的结构示意图;  17 is a schematic structural diagram of another embodiment of a WTP according to the present invention;
图 18为本发明隧道建立系统实施例的结构示意图。 具体实施方式 FIG. 18 is a schematic structural diagram of an embodiment of a tunnel establishment system according to the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
需要说明的是,本发明可以应用在如下场景中,在 WTP的无线传输范围 内有至少一个 STA, STA可以且 WTP和 AC建立有第一控制无线接入点协 议 ( Control And Provisioning of Wireless Access Point, CAPWAP ) 隧道, WTP和 AC可以通过该第一 CAPWAP隧道进行交互, 且, 各 STA与 WTP 可以通过 802.11协议通信。  It should be noted that the present invention can be applied to a scenario in which there is at least one STA in the wireless transmission range of the WTP, and the STA can establish a first control wireless access point protocol (Wand and the AC and the AC). , CAPWAP) tunnel, WTP and AC can interact through the first CAPWAP tunnel, and each STA and WTP can communicate through the 802.11 protocol.
图 1为本发明隧道状态维护方法实施例的流程图, 如图 1所示, 本实施 例的方法可以包括:  1 is a flowchart of an embodiment of a tunnel state maintenance method according to the present invention. As shown in FIG. 1, the method in this embodiment may include:
5101、 STA与 WTP建立第二 CAPWAP隧道, 以使 AC通过 WTP与 AC 之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA进行交互。  5101. The STA establishes a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
需要说明的是, WTP与 AC之间通常采用的通信协议为控制无线接入点 协议, 该协议是建立在用户数据包协议 (User Datagram Protocol, UDP) 之 上的应用层协议, 它的核心思想是在 AC和 WTP之间建立一条隧道, 将控制 报文和用户数据报文承载在隧道内,便于集中管理和保护用户数据。 CAPWAP 隧道分为控制隧道和数据隧道,控制隧道传送 CAPWAP控制报文,而数据隧 道传送数据报文。  It should be noted that the communication protocol commonly used between WTP and AC is to control the wireless access point protocol, which is an application layer protocol built on the User Datagram Protocol (UDP). A tunnel is set up between the AC and the WTP to carry control packets and user data packets in the tunnel to facilitate centralized management and protection of user data. The CAPWAP tunnel is divided into a control tunnel and a data tunnel. The control tunnel transmits CAPWAP control packets, and the data tunnel transmits data packets.
进一步地, WTP与 STA之间的第二 CAPWAP隧道可以由 WTP建立, 也可以由 AC 建立; 第二 CAPWAP 隧道建立之后, AC 就可以通过第一 CAPWAP隧道向 WTP发送控制 STA的 CAPWAP报文,再由 WTP通过第二 CAPWAP隧道向 STA转发, 这样 AC就可以将用于控制 STA的报文发送至 STA, 且可以通过 WTP转发 STA的响应或报文来确定对 STA的控制效果, 如对 STA的资源调度是否合理、 有效等。  Further, the second CAPWAP tunnel between the WTP and the STA may be established by the WTP or by the AC. After the second CAPWAP tunnel is established, the AC may send a CAPWAP packet for controlling the STA to the WTP through the first CAPWAP tunnel, and then The WTP is forwarded to the STA through the second CAPWAP tunnel, so that the AC can send the packet for controlling the STA to the STA, and the WTP can forward the response or the packet of the STA to determine the control effect on the STA, such as the STA. Whether the resource scheduling is reasonable and effective.
5102、 STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧 道异常。  S102: If the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal.
需要说明的是, STA若接收隧道变更消息, 则可以确定第一 CAPWAP 隧道异常, 如可以确定 WTP由运行 RUN状态切换到重置 RESET状态或数 据报文传输层安全协议链接切断 (DTLS TD , Datagram Transport Layer Security Tear Down ) 状态等。 It should be noted that if the STA receives the tunnel change message, the STA may determine the first CAPWAP. The tunnel is abnormal. For example, it can be determined that the WTP is switched from the running RUN state to the reset RESET state or the data packet transport layer security Tear Down state (DTLS TD, Datagram Transport Layer Security Tear Down).
S103、 STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 CAPWAP消息与 AC进行交互,第一 CAPWAP隧道为第一 WTP与 AC之间 原有的 CAPWAP隧道。  S103: The STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
进一步地, WTP可以维护一个比较复杂的 CAPWAP隧道状态机, 定义 多种复杂的状态对应第一 CAPWAP隧道的不同状态; 而由于 STA的资源受 限, 因此可以在 STA建立一个简单的 CAPWAP隧道状态机, 只维护简单状 态机。这里可以为 STA的隧道状态机定义三个状态: 闲置 IDLE、运行 RUN、 非运行 UNRUN。  Further, the WTP can maintain a relatively complex CAPWAP tunnel state machine, and define multiple complex states corresponding to different states of the first CAPWAP tunnel; and because the STA resources are limited, a simple CAPWAP tunnel state machine can be established in the STA. , only maintain a simple state machine. Here, three states can be defined for the STA's tunnel state machine: idle IDLE, run RUN, non-run UNRUN.
其中, STA维护的隧道状态机与 WTP维护的隧道状态机之间的关系是, RUN状态完全对应, WTP的非 RUN状态对应 STA的 UNRUN状态。  The relationship between the tunnel state machine maintained by the STA and the tunnel state machine maintained by the WTP is that the RUN state corresponds completely, and the non-RUN state of the WTP corresponds to the UNRUN state of the STA.
举例来说, STA 隧道状态通知消息为隧道变更消息, 则 STA确定第一 CAPWAP隧道异常,此时 WTP维护的状态机应该由 RUN状态跳转到非 RUN 状态, 如 DTLS TD, 与此同时, STA也应该由 RUN状态跳转到 UNRUN状 态,在 STA维护 UNRUN状态时, STA不再向 WTP或通过 WTP向 AC发送 CAPWAP报文, g卩 STA不再通过第一 CAPWAP隧道和第二 CAPWAP隧道 与 AC进行交互。  For example, if the STA tunnel status notification message is a tunnel change message, the STA determines that the first CAPWAP tunnel is abnormal. At this time, the state machine maintained by the WTP should be changed from the RUN state to the non-RUN state, such as DTLS TD, and at the same time, the STA The RUN state should be redirected to the UNRUN state. When the STA maintains the UNRUN state, the STA does not send CAPWAP packets to the AC through the WTP or through the WTP. The g卩STA no longer passes the first CAPWAP tunnel and the second CAPWAP tunnel and the AC. Interact.
本发明实施例提供的隧道状态处理方法, STA与 WTP建立第二 CAPWAP 隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP 隧道与 STA进行交互; STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧道异常; STA不再通过第一 CAPWAP隧道和第二 CAPWAP隧 道发送 CAPWAP消息与 AC进行交互, 第一 CAPWAP隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。 这样一来, 通过在 WTP与 STA之间建立第 二 CAPWAP隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减少不必要的信息交互, 减少资源浪费。 图 2 为本发明隧道状态维护方法另一实施例的流程图, 本实施应用于 WTP与 AC之间已经建立了第一 CAPWAP隧道的场景下, 如图 2所示, 本 实施例的方法可以包括: In the tunnel state processing method provided by the embodiment of the present invention, the STA establishes a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; The tunnel change message is used to determine that the first CAPWAP tunnel is abnormal. The STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. . In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality, and no longer interact with the AC when the tunnel abnormality is obtained, thereby reducing unnecessary information interaction and reducing resource waste. 2 is a flowchart of another embodiment of a tunnel state maintenance method according to the present invention. The present application is applied to a scenario in which a first CAPWAP tunnel is established between a WTP and an AC, as shown in FIG. 2, The method of an embodiment may include:
5201、 WTP与 STA建立第二 CAPWAP隧道。  5201. The WTP establishes a second CAPWAP tunnel with the STA.
以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP 隧道与 STA进行交互。  The AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
需要说明的是, WTP与站点 STA建立第二 CAPWAP隧道可以是 WTP 控制建立的, 也可以 AC控制建立的。  It should be noted that the WTP and the STA of the station establish a second CAPWAP tunnel, which may be established by WTP control or by AC control.
5202、 WTP若确定第一 CAPWAP隧道异常, 则向 STA发送隧道变更消 息, 使得 STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 CAPWAP消息与 AC进行交互。  If the first CAPWAP tunnel is abnormal, the WTP sends a tunnel change message to the STA, so that the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC.
需要说明的是, WTP与 AC的第一 CAPWAP隧道的隧道状况可以是根 据 AC发送的消息确定, 如 WTP收到 AC发送的 RESET请求消息时, 会由 RUN状态切换到 RESET状态。 当 WTP完成第一 CAPWAP重启操作、 结束 DTLS会话之后, 可以向 AC发送 RESET应答消息, 然后 WTP会由 RESET 状态切换到 DTLS TD状态,且切换到 DTLS TD状态后可以启动一个定时器, 以使得定时器到时时继续切换状态。  It should be noted that the tunnel status of the first CAPWAP tunnel of the WTP and the AC may be determined according to the message sent by the AC. If the WTP receives the RESET request message sent by the AC, the WTP will switch from the RUN state to the RESET state. After the WTP completes the first CAPWAP restart operation and ends the DTLS session, it may send a RESET response message to the AC, and then the WTP will switch from the RESET state to the DTLS TD state, and after switching to the DTLS TD state, a timer may be started to enable timing. The device continues to switch states when it is timed.
WTP与 AC的第一 CAPWAP隧道的隧道状况也以是 WTP根据接收到的 其他消息或自行检测确定的, 如, WTP的 RUN状态切换到 DTLS TD状态: 该状态切换发生在 DTLS协议栈出现错误的情况, 导致 DTLS会话中断的情 况下。对于 WTP来说, 当它接收到 DTLS通知消息: DTLS Aborted (中止), DTLS Reassembly Failure (重组失败 ) , 或 DTLS Peer Disconnect (拆卸解除 ) 时都会进行该状态切换。 其中, DTLS Aborted是用于指示建立的会话中止; DTLS Reassembly Failure是用于指示 DTLS分片数据重组失败; DTLS Peer Disconnect用于指示 DTLS会话已经拆卸解除。另外当 WTP频繁接收到 DTLS Decap Failure通知也可能切断 DTLS会话进入 DTLS TD状态, 其中, DTLS Decap Failure用于指示解析数据包失败, 加密验证失败。 当记录可靠传输的 重传计数值已经达到重传最大值时, WTP也会从 RUN状态切换到 DTLS TD 状态。 并且 WTP切换到 DTLS TD状态后会启动上述定时器。  The tunnel condition of the first CAPWAP tunnel of the WTP and the AC is also determined by the WTP according to other messages received or self-detection. For example, the RUN state of the WTP is switched to the DTLS TD state: the state switch occurs in the DTLS protocol stack. Situation, causing a DTLS session to be interrupted. For WTP, this state switch occurs when it receives a DTLS notification message: DTLS Aborted, DTLS Reassembly Failure, or DTLS Peer Disconnect. The DTLS Aborted is used to indicate the establishment of the session suspension; the DTLS Reassembly Failure is used to indicate that the DTLS fragment data reorganization fails; and the DTLS Peer Disconnect is used to indicate that the DTLS session has been disassembled. In addition, when the WTP receives the DTLS Decap Failure notification frequently, it may also cut off the DTLS session and enter the DTLS TD state. The DTLS Decap Failure is used to indicate that the parsing packet fails, and the encryption verification fails. When the retransmission count value of the reliable transmission has reached the retransmission maximum value, WTP also switches from the RUN state to the DTLS TD state. And the above timer will be started after the WTP switches to the DTLS TD state.
进一步地, 上述两种情况下, WTP都可以向 STA发送隧道状态通知消 息, 该隧道状态通知消息为隧道变更消息, 即指示第一 CAPWAP隧道异常。  Further, in the above two cases, the WTP may send a tunnel status notification message to the STA, where the tunnel status notification message is a tunnel change message, that is, the first CAPWAP tunnel is abnormal.
本发明实施例提供的隧道状态处理方法, STA与 WTP建立第二 CAPWAP 隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP 隧道与 STA进行交互; STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧道异常; STA不再通过第一 CAPWAP隧道和第二 CAPWAP隧 道发送 CAPWAP消息与 AC进行交互, 第一 CAPWAP隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。 这样一来, 通过在 WTP与 STA之间建立第 二 CAPWAP隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减少不必要的信息交互, 减少资源浪费。 图 3 为本发明隧道状态维护方法再一实施例的流程图, 本实施应用于 WTP与 AC之间已经建立了第一 CAPWAP隧道的场景下, 如图 3所示, 本 实施例的方法可以包括: The tunnel state processing method provided by the embodiment of the present invention, the STA and the WTP establish a second CAPWAP a tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal; the STA does not pass the first The CAPWAP tunnel and the second CAPWAP tunnel send a CAPWAP message to interact with the AC. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality, and no longer interact with the AC when the tunnel abnormality is obtained, thereby reducing unnecessary information interaction and reducing resource waste. FIG. 3 is a flowchart of still another embodiment of a tunnel state maintenance method according to the present invention. The present embodiment is applied to a scenario in which a first CAPWAP tunnel is established between a WTP and an AC. As shown in FIG. 3, the method in this embodiment may include :
5301、 WTP与 STA建立第二 CAPWAP隧道。  5301. The WTP establishes a second CAPWAP tunnel with the STA.
需要说明的是, WTP的隧道状态机可以维护多种状态, WTP与 AC建立 第一 CAPWAP隧道后便进入运行 RUN状态, WTP与 STA建立第二 CAPWAP 隧道后仍维持该 RUN状态。  It should be noted that the WTP tunnel state machine can maintain multiple states. After the WTP and the AC establish the first CAPWAP tunnel, the WTP enters the running RUN state. After the WTP and the STA establish the second CAPWAP tunnel, the RUN state is maintained.
5302、 STA与 WTP建立第二 CAPWAP隧道。  5302. The STA establishes a second CAPWAP tunnel with the WTP.
需要说明的是, STA的隧道状态机可以维护三种状态, 分别定义为闲置 IDLE状态、 运行 RUN状态和非运行 UNRUN。  It should be noted that the STA tunnel state machine can maintain three states, which are defined as idle IDLE state, running RUN state, and non-running UNRUN.
其中,当请求建立第二 CAPWAP隧道的隧道建立请求消息命令未得到成 功响应之前, 以及删除了第二 CAPWAP隧道之后都进入 IDLE状态, 即该状 态表示 WTP没有维护 STA的 CAPWAP隧道的状态。  If the command to establish a second CAPWAP tunnel is not successfully received, and the second CAPWAP tunnel is deleted, the IDLE state is entered. That is, the state indicates that the WTP does not maintain the state of the STA's CAPWAP tunnel.
进一步地, 第二 CAPWAP隧道可以是 WTP控制建立的, 也可以是 AC 控制建立的。  Further, the second CAPWAP tunnel may be established by WTP control or may be established by AC control.
举例来说, 图 4为本发明提供的隧道建立方法实施例的流程图, 如图 4 所示, 第二 CAPWAP隧道可以是 WTP控制建立的。  For example, FIG. 4 is a flowchart of an embodiment of a tunnel establishment method provided by the present invention. As shown in FIG. 4, a second CAPWAP tunnel may be established by WTP control.
5401、 STA向 WTP发送 CAPWAP隧道建立请求。  5401. The STA sends a CAPWAP tunnel establishment request to the WTP.
5402、 WTP 若接收到 STA 发送的 CAPWAP 隧道建立请求, 则根据 CAPWAP隧道建立请求内容和 WTP的最大接入能力中的至少一个确定是否 建立 WTP与 STA之间的第二 CAPWAP隧道, 是则执行步骤 S403; 否, 则 执行 S409。 举例来说, 根据 CAPWAP隧道建立请求内容和 WTP的最大接入能力中 的至少一个确定是否建立 WTP与 STA之间的第二 CAPWAP隧道可以是: WTP 根据隧道建立请求的请求条件是否正确确定、 或者根据隧道建立请求 的格式是否正确确定; 或者根据 WTP 的能力确定是否准许建立第二 CAPWAP隧道确定是否准许建立第二 CAPWAP隧道; 或者, 当 CAPWAP 隧道建立请求内容和 WTP 的最大接入能力都满足条件时确定建立第二 CAPWAP隧道。 If the CAPWAP tunnel establishment request sent by the STA is received, the WTP determines whether to establish a second CAPWAP tunnel between the WTP and the STA according to at least one of the CAPWAP tunnel establishment request content and the maximum access capability of the WTP. S403; No, then S409 is performed. For example, determining whether to establish a second CAPWAP tunnel between the WTP and the STA according to at least one of the CAPWAP tunnel establishment request content and the maximum access capability of the WTP may be: whether the WTP is correctly determined according to the request condition of the tunnel establishment request, or Whether the format of the tunnel establishment request is correctly determined; or determining whether to permit the establishment of the second CAPWAP tunnel to determine whether to permit the establishment of the second CAPWAP tunnel according to the capability of the WTP; or, when the CAPWAP tunnel establishment request content and the maximum access capability of the WTP satisfy the condition It is determined to establish a second CAPWAP tunnel.
如, WTP 根据隧道建立请求的请求条件是否正确确实是否建立 CAPWAP隧道可以是确定该 CAPWAP隧道建立请求的源 STA是否预存在可 建立隧道列表中, 该可建立隧道列表可以预存在 WTP中。 如果源 STA为预 存在可建立隧道列表中的 STA则确定准许建立第二 CAPWAP隧道。  For example, whether the WTP is based on the request condition of the tunnel establishment request, whether the CAPWAP tunnel is established or not, may be determined whether the source STA of the CAPWAP tunnel establishment request is pre-existing in the configurable tunnel list, and the configurable tunnel list may be pre-stored in the WTP. If the source STA is pre-existing, the STA in the tunnel list can be established to determine to permit the establishment of the second CAPWAP tunnel.
如, WTP 还可以根据隧道建立请求的格式确定是否准许建立第二 CAPWAP 隧道。 该请求可以如上述报文一样预设有特殊的格式, WTP如果 确定接收到的隧道建立请求符合预设的格式, 则确定准许建立第二 CAPWAP隧道。  For example, the WTP may also determine whether to permit the establishment of the second CAPWAP tunnel according to the format of the tunnel establishment request. The request may be pre-configured in a special format as in the above message. If the WTP determines that the received tunnel establishment request conforms to the preset format, it determines to permit the establishment of the second CAPWAP tunnel.
或者, WTP还可以根据 WTP 的能力确定是否准许建立第二 CAPWAP 隧道。 如, WTP 最大承载建立第二 CAPWAP 隧道的能力为建立五条第二 CAPWAP隧道, 该 STA的隧道建立请求在该 WTP只建立了 1至 3条第二 CAPWAP 隧道后发送至 WTP, WTP 确定 WTP还可以承载多一条的第二 CAPWAP隧道, 则准许建立; 该 STA的隧道建立请求在该 WTP建立了 5条 第二 CAPWAP隧道后发送至 WTP, 则 WTP能力受限, WTP不准许建立 WTP与该 STA之间的第二 CAPWAP隧道。  Alternatively, WTP can also determine whether to permit the establishment of a second CAPWAP tunnel based on the capabilities of the WTP. For example, the capability of the WTP maximum bearer to establish the second CAPWAP tunnel is to establish five second CAPWAP tunnels. The tunnel establishment request of the STA is sent to the WTP after the WTP only establishes one to three second CAPWAP tunnels, and the WTP determines that the WTP can also be The second CAPWAP tunnel carrying one more is allowed to be established; the tunnel establishment request of the STA is sent to the WTP after the WTP establishes 5 second CAPWAP tunnels, and the WTP capability is limited, and the WTP does not permit the establishment of the WTP and the STA. The second CAPWAP tunnel between.
需要说明的是, 若准许建立, 可以向 STA 返回建立成功应答, 且执行 S403; 若不准许建立, 可以向 STA返回隧道建立失败通知, 且执行 S412。  It should be noted that, if the establishment is permitted, the establishment success response may be returned to the STA, and S403 is performed; if the establishment is not permitted, the tunnel establishment failure notification may be returned to the STA, and S412 is performed.
S403、 WTP建立与 STA之间的第二 CAPWAP隧道。  S403. The WTP establishes a second CAPWAP tunnel with the STA.
需要说明的是, WTP建立与 STA之间的第二 CAPWAP隧道后可以向 AC发送通知第二 CAPWAP隧道建立的通知消息。 该通知消息也可以携带在 符合上述 CAPWAP报文格式的 CAPWAP消息中。  It should be noted that after the WTP establishes a second CAPWAP tunnel with the STA, the notification message for notifying the establishment of the second CAPWAP tunnel may be sent to the AC. The notification message may also be carried in a CAPWAP message conforming to the above CAPWAP message format.
S404、 AC向 WTP发送 CAPWAP消息。  S404. The AC sends a CAPWAP message to the WTP.
进一步地, CAPWAP消息中包含 AC发送的 CAPWAP控制报文或数据 报文, 以对 STA进行资源调度, CAPWAP消息中还包含标识信息, 标示信 息为第一 CAPWAP隧道或第二 CAPWAP隧道建立时根据 WTP或 STA生 成。 Further, the CAPWAP message includes the CAPWAP control packet or data sent by the AC. The packet is configured to perform resource scheduling on the STA. The CAPWAP message further includes the identifier information. The identifier information is generated by the WTP or the STA when the first CAPWAP tunnel or the second CAPWAP tunnel is established.
该标识信息可以为地址信息, 也可以为一预设标识位。 该标识信息用于 使得 WTP确定 CAPWAP消息是发送给 STA的消息, 还是发送给 WTP的消 白s、。  The identifier information may be address information or a preset identifier. The identification information is used to cause the WTP to determine whether the CAPWAP message is a message sent to the STA or a whitespace s sent to the WTP.
进一步地, AC也可以接收 WTP发送的 CAPWAP消息, 或者, WTP转 发的 STA发送的 CAPWAP消息, CAPWAP消息均可以包含标识信息, 以使 得该 AC确定 CAPWAP消息的来源, 此处不再展开说明。  Further, the AC may also receive the CAPWAP message sent by the WTP, or the CAPWAP message sent by the WTP-transferred STA, and the CAPWAP message may include the identification information, so that the AC determines the source of the CAPWAP message, and the description is not extended here.
需要说明的是, CAPWAP 消息中包含上述实施例中所述描述的 It should be noted that the CAPWAP message includes the description described in the foregoing embodiment.
CAPWAP报文, 如控制报文和数据报文, 该 CAPWAP报文的格式和携带内 容可遵照上述实施例中的描述, 在此不再赘述。 For the CAPWAP packet, such as the control packet and the data packet, the format and the content of the CAPWAP packet can be described in the foregoing embodiment, and details are not described herein.
5405、 WTP接收 AC发送的 CAPWAP消息。  5405. The WTP receives the CAPWAP message sent by the AC.
5406、 WTP根据 CAPWAP消息中标识信息确定 CAPWAP消息是否为 发送给 STA的。  5406. The WTP determines, according to the identifier information in the CAPWAP message, whether the CAPWAP message is sent to the STA.
进一步地, WTP 根据 CAPWAP 消息中所包含的标识信息, 确定 CAPWAP消息是否为发送给 STA的消息。 如标识信息为地址信息, 且该地 址信息为有效地址如对应一个 STA的 MAC地址时, 确定该消息为发送给该 MAC地址对应的 STA的消息; 当该地址信息为无效地址, 即对应不到任何 STA的 MAC地址时, 确定该消息为发送给 WTP的消息, 比如该消息地址为 38位 F为有效地址, 不满 38位的 F为无效地址等。 其中, STA的 MAC地 址可以预存在预设列表中, 以查表确定地址信息是否为有效地址, 如在预设 列表中找到相同的 MAC地址则确定为有效地址, 否则为无效地址。  Further, the WTP determines, according to the identifier information included in the CAPWAP message, whether the CAPWAP message is a message sent to the STA. If the identifier information is the address information, and the address information is a valid address, such as a MAC address corresponding to one STA, the message is determined to be a message sent to the STA corresponding to the MAC address; when the address information is an invalid address, When any STA's MAC address is determined, the message is sent to the WTP. For example, the message address is 38 bits F is a valid address, and 38 bits F is an invalid address. The MAC address of the STA may be pre-stored in the preset list to check whether the address information is a valid address. If the same MAC address is found in the preset list, it is determined to be a valid address, otherwise it is an invalid address.
或者, 标识信息为一预设标识位, 若 CAPWAP 消息中所包含的预设标 识位为第一数值, 每个第一数值对应一个 STA, 则 WTP向第一数值对应的 STA转发 CAPWAP消息; 若 CAPWAP消息中所包含的预设标识位为第二数 值, 第二数值对应 WTP, 则 WTP处理 CAPWAP消息。 如, 第一数值为 1, 第二数值为 0时, 若该预设标识位为 1, 该 CAPWAP消息为发送给 WTP的; 若该预设标识位为 0, 该 CAPWAP消息为发送给 STA的; 或者, 第一数值 为 0, 第二数值为 1时, 若预设标识位为 0, 该 CAPWAP消息为发送给 WTP 的; 若预设标识位为 1, 该 CAPWAP消息为发送给 STA的。 进一步地, 当 WTP预存有多个 STA的对应第一数值时, 第一数值分别 按照 STA接入的顺序对应设置为 01、 10、 11或 1、 2、 3等, 这样可以便于 WTP与多个 STA建立有第二 CAPWAP隧道时, 能够确定该 CAPWAP消息 是发送给哪一个 STA的。 Or, the identifier information is a preset identifier, and if the preset identifier included in the CAPWAP message is the first value, and each first value corresponds to one STA, the WTP forwards the CAPWAP message to the STA corresponding to the first value; The preset identifier bit included in the CAPWAP message is the second value, and the second value corresponds to the WTP, and the WTP processes the CAPWAP message. For example, if the first value is 1, and the second value is 0, if the preset flag is 1, the CAPWAP message is sent to the WTP; if the preset flag is 0, the CAPWAP message is sent to the STA. Or, the first value is 0, and when the second value is 1, if the preset flag is 0, the CAPWAP message is sent to WTP. If the preset flag is 1, the CAPWAP message is sent to the STA. Further, when the WTP pre-stores the corresponding first value of the multiple STAs, the first value is respectively set to 01, 10, 11 or 1, 2, 3, etc. according to the order of STA access, which can facilitate WTP and multiple When the STA establishes a second CAPWAP tunnel, it can determine which STA the CAPWAP message is sent to.
WTP根据 CAPWAP消息中标识信息确定 CAPWAP消息是发送给 STA 的, 则执行步骤 S407, 若不是则 WTP解析该 CAPWAP消息, 并根据其内容 或策略执行相应的操作。  The WTP determines that the CAPWAP message is sent to the STA according to the identifier information in the CAPWAP message, and then performs step S407. If not, the WTP parses the CAPWAP message and performs a corresponding operation according to the content or policy.
5407、 WTP向 CAPWAP消息中标识信息对应的 STA转发 CAPWAP消 息。  5407. The WTP forwards the CAPWAP message to the STA corresponding to the identifier information in the CAPWAP message.
5408、 STA接收 WTP转发的 CAPWAP消息。  S408: The STA receives the CAPWAP message forwarded by the WTP.
进一步地, STA也可以通过 WTP向 AC发送 CAPWAP消息, 即通过第 二 CAPWAP隧道和第一 CAPWAP隧道发送 CAPWAP消息, 这样一来, STA 可以通过 CAPWAP消息与 AC进行交互。  Further, the STA may also send a CAPWAP message to the AC through the WTP, that is, the CAPWAP message is sent through the second CAPWAP tunnel and the first CAPWAP tunnel, so that the STA can interact with the AC through the CAPWAP message.
S409、 WTP向 STA发送隧道建立失败通知, 隧道建立失败通知包含失 败原因。  S409: The WTP sends a tunnel establishment failure notification to the STA, and the tunnel establishment failure notification includes the failure reason.
S410、 STA接收 WTP发送的隧道建立失败通知, 根据失败原因确定重 新发送 CAPWAP隧道建立请求的时间。  S410. The STA receives a tunnel establishment failure notification sent by the WTP, and determines, according to the failure reason, a time for resending the CAPWAP tunnel establishment request.
举例来说, STA可以预存一个列表, 该列表中存有数字与失败原因的对 应关系, 该数字可以是编码或序列号, 隧道建立失败通知包含的失败原因可 以是一个编码或序列号, 这样, STA可以通过查询该列表确定隧道建立失败 的原因。  For example, the STA may pre-store a list with a correspondence between the number and the reason for the failure, the number may be an encoding or a serial number, and the tunnel establishment failure notification may include a coding or serial number, so that The STA can query the list to determine the reason for the tunnel establishment failure.
进一步地, 该列表还可以预存该失败原因对应的一个定时器, 以使得 STA在定时器超时后再重新请求建立第二 CAPWAP隧道。 如失败原因为第 一 CAPWAP隧道异常, 则 5秒后重新发送 CAPWAP隧道建立请求等。  Further, the list may further pre-store a timer corresponding to the failure reason, so that the STA re-requests to establish a second CAPWAP tunnel after the timer expires. If the failure occurs because the first CAPWAP tunnel is abnormal, the CAPWAP tunnel establishment request is resent after 5 seconds.
或者, 图 5为本发明提供的隧道建立方法另一实施例的流程图, 如图 5 所示, 第二 CAPWAP隧道可以是 AC控制建立的。  Alternatively, FIG. 5 is a flowchart of another embodiment of a tunnel establishment method provided by the present invention. As shown in FIG. 5, the second CAPWAP tunnel may be established by AC control.
S501、 STA通过 WTP向 AC发送 CAPWAP隧道建立请求。  S501: The STA sends a CAPWAP tunnel establishment request to the AC through the WTP.
进一步地, STA可以向 WTP发送 CAPWAP 隧道建立请求, WTP将 CAPWAP隧道建立请求转发给 AC。 5502、 AC 若接收到 STA 发送的 CAPWAP 隧道建立请求, 则根据 CAPWAP隧道建立请求内容和 WTP的最大接入能力中的至少一个确定是否 建立 WTP与 STA之间的第二 CAPWAP隧道, 是则执行步骤 S503; 否, 则 执行 S512。 Further, the STA may send a CAPWAP tunnel establishment request to the WTP, and the WTP forwards the CAPWAP tunnel establishment request to the AC. If the CAPWAP tunnel establishment request sent by the STA is received, the AC determines whether to establish a second CAPWAP tunnel between the WTP and the STA according to at least one of the CAPWAP tunnel establishment request content and the maximum access capability of the WTP. S503; No, execute S512.
举例来说, AC可以根据隧道建立请求的请求条件是否正确、还可以根据 隧道建立请求的格式是否正确、或者根据 WTP的最大接入能力等的一种或几 种确定是否准许建立第二 CAPWAP隧道确定是否准许建立第二 CAPWAP隧 道。 其确定的方法在上述实施例中已经展开, 在此不再赘述。  For example, the AC may determine whether to permit the establishment of the second CAPWAP tunnel according to whether the request condition of the tunnel establishment request is correct, whether the format of the tunnel establishment request is correct, or according to one or more of the maximum access capabilities of the WTP. Determine if a second CAPWAP tunnel is allowed to be established. The method for determining the same has been developed in the above embodiment, and details are not described herein again.
5503、 AC向 WTP发送通知第二 CAPWAP隧道建立的通知消息。  5503. The AC sends a notification message to the WTP to notify the second CAPWAP tunnel establishment.
S504、 WTP接收通知第二 CAPWAP隧道建立的通知消息。  S504. The WTP receives a notification message that notifies the establishment of the second CAPWAP tunnel.
这样一来, WTP获知已经与 STA建立了第二 CAPWAP隧道。 可以为后 续的转发 STA与 AC之间的 CAPWAP消息做准备。  In this way, the WTP learns that a second CAPWAP tunnel has been established with the STA. The CAPWAP message between the STA and the AC can be prepared for subsequent forwarding.
S505、 WTP建立与 STA之间的第二 CAPWAP隧道, 且向 STA发送通 知第二 CAPWAP隧道建立的通知消息。  S505. The WTP establishes a second CAPWAP tunnel with the STA, and sends a notification message to the STA to notify the establishment of the second CAPWAP tunnel.
S506、 STA接收该通知消息。  S506. The STA receives the notification message.
需要说明的是, STA 接收到该通知后可以通过 WTP 向 AC 发送 CAPWAP消息了, 该 CAPWAP消息中的数据报文或控制报文可以根据上述 实施例给出的报文形式生成, 在此不再赘述。  It should be noted that, after receiving the notification, the STA may send a CAPWAP message to the AC through the WTP. The data packet or the control packet in the CAPWAP message may be generated according to the packet format given in the foregoing embodiment, and is no longer Narration.
S507、 AC向 WTP发送 CAPWAP消息。  S507. The AC sends a CAPWAP message to the WTP.
需要说明的是, AC 也可以接收 WTP 发送的 CAPWAP 消息, 或者, It should be noted that the AC can also receive the CAPWAP message sent by the WTP, or
WTP转发的 STA发送的 CAPWAP消息, AC也可以向 WTP发送 CAPWAP 消息或者通过 WTP向 STA转发 CAPWAP消息。 本实施例以 AC通过 WTP 向 STA转发 CAPWAP消息为例进行说明, 但不以此做任何限定。 The CAPWAP message sent by the STA forwarded by the WTP, the AC can also send a CAPWAP message to the WTP or forward the CAPWAP message to the STA through the WTP. This example uses the AC to forward the CAPWAP message to the STA through the WTP as an example, but does not limit it.
进一步地, CAPWAP消息中包含 AC发送的 CAPWAP控制报文或数据 报文, 以对 STA进行资源调度, CAPWAP消息中还包含标识信息, 标示信 息为第一 CAPWAP隧道或第二 CAPWAP隧道建立时根据 WTP或 STA生 成。  Further, the CAPWAP message includes a CAPWAP control packet or a data packet sent by the AC to perform resource scheduling on the STA, and the CAPWAP message further includes the identifier information, where the identifier information is the first CAPWAP tunnel or the second CAPWAP tunnel is established according to the WTP. Or STA generated.
该标识信息可以为地址信息, 也可以为一预设标识位。 该标识信息用于 使得 WTP确定 CAPWAP消息是发送给 STA的消息, 还是发送给 WTP的消 息。 如, 标识信息为地址信息: 若地址信息为有效地址, 则 AC向 WTP发送 CAPWAP消息, 使得 WTP向有效地址对应的 STA转发 CAPWAP消息; 若 标识信息为无效地址, 则 AC向 WTP发送 CAPWAP消息, 使得 WTP处理 CAPWAP消息。 The identifier information may be address information or a preset identifier. The identification information is used to cause the WTP to determine whether the CAPWAP message is a message sent to the STA or a message sent to the WTP. For example, the identifier information is the address information: If the address information is a valid address, the AC sends a CAPWAP message to the WTP, so that the WTP forwards the CAPWAP message to the STA corresponding to the effective address. If the identifier information is an invalid address, the AC sends a CAPWAP message to the WTP. Enable WTP to process CAPWAP messages.
标识信息为一预设标识位: 若 CAPWAP 消息中所包含的预设标识位为 第一数值, 每个第一数值对应一个 STA, 则 AC向 WTP发送 CAPWAP消 息, 使得 WTP向第一数值对应的 STA转发 CAPWAP消息; 若 CAPWAP消 息中所包含的预设标识位为第二数值, 第二数值对应 WTP, 则 AC 向 WTP 发送 CAPWAP消息, 使得 WTP处理 CAPWAP消息。  The identifier information is a preset identifier bit: if the preset identifier bit included in the CAPWAP message is the first value, and each first value corresponds to one STA, the AC sends a CAPWAP message to the WTP, so that the WTP corresponds to the first value. The STA forwards the CAPWAP message. If the preset identifier bit included in the CAPWAP message is the second value and the second value corresponds to the WTP, the AC sends a CAPWAP message to the WTP, so that the WTP processes the CAPWAP message.
S508、 WTP接收 AC发送的 CAPWAP消息。  S508. The WTP receives the CAPWAP message sent by the AC.
5509、 WTP根据 CAPWAP消息中标识信息确定 CAPWAP消息是否为 发送给 STA的。  5509. The WTP determines, according to the identifier information in the CAPWAP message, whether the CAPWAP message is sent to the STA.
举例来说。 CAPWAP 消息可以是上述实施例中所述的控制报文和数据 报文, 报文的格式和携带内容可遵照上述实施例中的描述, 在此不再赘述。  for example. The CAPWAP message may be the control packet and the data packet in the foregoing embodiment. The format and the content of the packet may be as described in the foregoing embodiment, and details are not described herein.
若是, 则执行步骤 S510, 若不是则 WTP解析该 CAPWAP消息, 并根据 其内容或策略执行相应的操作。  If yes, step S510 is performed. If not, the WTP parses the CAPWAP message and performs a corresponding operation according to its content or policy.
5510、 WTP 向 CAPWAP 消息中包含的标识信息对应的 STA 转发 CAPWAP消息。  5510. The WTP forwards the CAPWAP message to the STA corresponding to the identifier information included in the CAPWAP message.
5511、 STA接收 WTP转发的 CAPWAP消息。  5511. The STA receives the CAPWAP message forwarded by the WTP.
进一步地, STA也可以通过 WTP向 AC发送 CAPWAP消息, 即通过第 二 CAPWAP隧道和第一 CAPWAP隧道发送 CAPWAP消息, 这样一来, STA 可以通过 CAPWAP消息与 AC进行交互。  Further, the STA may also send a CAPWAP message to the AC through the WTP, that is, the CAPWAP message is sent through the second CAPWAP tunnel and the first CAPWAP tunnel, so that the STA can interact with the AC through the CAPWAP message.
5512、 AC向 WTP发送隧道建立失败通知, WTP向 STA发送隧道建立 失败通知, 隧道建立失败通知包含失败原因。  5512. The AC sends a tunnel establishment failure notification to the WTP, and the WTP sends a tunnel establishment failure notification to the STA, and the tunnel establishment failure notification includes the failure reason.
S513、 STA接收 WTP发送的隧道建立失败通知, 根据失败原因确定重 新发送 CAPWAP隧道建立请求的时间。  S513. The STA receives a tunnel establishment failure notification sent by the WTP, and determines, according to the failure reason, a time for resending the CAPWAP tunnel establishment request.
当第二 CAPWAP隧道的隧道建立请求消息命令得到成功响应,即建立了 第二 CAPWAP隧道之后, 则进入 RUN状态。  When the tunnel establishment request message command of the second CAPWAP tunnel is successfully responded, that is, after the second CAPWAP tunnel is established, the RUN state is entered.
当 STA获知 WTP与 AC建立的第一 CAPWAP隧道跳出 RUN状态时, 即 WTP的状态机处于非 RUN状态时, STA进入 UNRUN状态。通常由 WTP 发送隧道状态变更消息使得 STA从 RUN状态跳到 UNRUN状态。在 UNRUN 状态中, WTP会将建立第一 CAPWAP隧道的信息下发给 STA, 比如镜像数 据 (image data), 配置数据 (config data)等信息。 在该状态中, STA还可以向 WTP发送 (站点隧道请求) Station tunnel inquire消息, 以从 WTP的反馈消 息中获取 WTP当前建立第一 CAPWAP隧道的进度情况, 该站点隧道请求消 息可以携带 WTP 当前隧道状态机的状态和 WTP根据异常原因设定的定时 器, STA可以根据反馈消息中的定时器确定多久第二 CAPWAP隧道能够建 立成功, 进一步确定本端能够接入的时间。 When the STA learns that the first CAPWAP tunnel established by the WTP and the AC is in the RUN state, that is, when the state machine of the WTP is in the non-RUN state, the STA enters the UNRUN state. Usually by WTP Sending a tunnel status change message causes the STA to jump from the RUN state to the UNRUN state. In the UNRUN state, the WTP sends the information about the first CAPWAP tunnel to the STA, such as image data and config data. In this state, the STA may also send a (Site Tunnel Request) Station tunnel inquire message to the WTP to obtain the progress of the WTP currently establishing the first CAPWAP tunnel from the WTP feedback message, where the site tunnel request message may carry the WTP current tunnel. The state of the state machine and the timer set by the WTP according to the abnormality cause, the STA can determine, according to the timer in the feedback message, how long the second CAPWAP tunnel can be successfully established, and further determine the time that the local end can access.
在第二 CAPWAP隧道建立成功后, STA和 WTP均处于 RUN状态。 STA 确定第一 CAPWAP隧道异常, 或, STA确定第二 CAPWAP隧道异常之后, STA将隧道状态机的状态从 RUN状态切换至非运行 UNRUN状态  After the second CAPWAP tunnel is successfully established, both STA and WTP are in the RUN state. The STA determines that the first CAPWAP tunnel is abnormal, or after the STA determines that the second CAPWAP tunnel is abnormal, the STA switches the state of the tunnel state machine from the RUN state to the non-running UNRUN state.
其中, 第二 STA与 WTP可以维护心跳包传输, 若在一预设时间段如 3S 内未接收到 WTP发送的心跳包, 即 WTP心跳包无法送达 STA, 心跳包发送 失败。 STA则确定第二 CAPWAP隧道异常, 并由 RUN状态跳转至 UNRUN 状态。  The second STA and the WTP can maintain the heartbeat packet transmission. If the heartbeat packet sent by the WTP is not received within a preset time period, such as 3S, that is, the WTP heartbeat packet cannot be delivered to the STA, the heartbeat packet fails to be sent. The STA determines the second CAPWAP tunnel exception and transitions from the RUN state to the UNRUN state.
本实施以 WTP通知 STA第一 CAPWAP 隧道异常举例说明, 若第一 CAPWAP隧道出现异常, 则可以由 WTP通知 STA, 以使得 STA由 RUN状 态跳转至 UNRUN状态, 具体方法可以如下:  This example uses the WTP to notify the STA of the first CAPWAP tunnel exception. If the first CAPWAP tunnel is abnormal, the STA can be notified by the WTP to make the STA transition from the RUN state to the UNRUN state. The specific method can be as follows:
S303、 WTP若确定第一 CAPWAP隧道异常, 则向 STA发送隧道变更消 息。  S303. If the WTP determines that the first CAPWAP tunnel is abnormal, the WTP sends a tunnel change message to the STA.
进一步地, WTP接收 AC发生的重置请求消息, 则向 STA发送隧道变更 消息, 隧道变更消息中包含第一 CAPWAP隧道异常的原因; 或者, WTP获 知数据报文传输层安全协议 DTLS协议栈异常,则向 STA发送隧道变更消息, 隧道变更消息中包含第一 CAPWAP隧道异常的原因。  Further, the WTP receives the reset request message generated by the AC, and sends a tunnel change message to the STA, where the tunnel change message includes the cause of the first CAPWAP tunnel abnormality; or, the WTP learns that the data packet transport layer security protocol DTLS protocol stack is abnormal. The tunnel change message is sent to the STA, and the tunnel change message includes the cause of the first CAPWAP tunnel abnormality.
举例来说, 隧道状态通知消息可以是隧道变更消息, 该隧道变更消息是 由 WTP跳转出 RUN状态时向 STA发送的, 如, WTP将隧道状态机的状态 从 RUN状态切换到 RESET状态或 DTLS TD状态, 则向 STA发送隧道变更 消息, 以表示表示第一 CAPWAP隧道异常; 除此之外, 隧道状态通知消息可 以第一 CAPWAP隧道删除消息, 这时, STA可以跳转到 UNRUN状态继续 等待第一 CAPWAP隧道重建,也可以跳转到 IDLE状态,等待第一 CAPWAP 隧道重建,本发明实施例以隧道状态通知消息是隧道变更消息为例进行说明, 但不以此做任何限定。 For example, the tunnel state notification message may be a tunnel change message, and the tunnel change message is sent to the STA when the WTP jumps out of the RUN state. For example, the WTP switches the state of the tunnel state machine from the RUN state to the RESET state or DTLS. In the TD state, the tunnel change message is sent to the STA to indicate that the first CAPWAP tunnel is abnormal. In addition, the tunnel state notification message may delete the message by using the first CAPWAP tunnel. In this case, the STA may jump to the UNRUN state and continue to wait for the first CAPWAP tunnel. A CAPWAP tunnel can also be redirected to the IDLE state, waiting for the first CAPWAP In the embodiment of the present invention, the tunnel state notification message is a tunnel change message as an example, but is not limited thereto.
S304、 STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧 道异常。  S304. If the STA receives the tunnel change message sent by the WTP, the STA determines that the first CAPWAP tunnel is abnormal.
S305、 STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 S305. The STA is no longer sent through the first CAPWAP tunnel and the second CAPWAP tunnel.
CAPWAP消息与 AC进行交互。 The CAPWAP message interacts with the AC.
需要说明的是, 隧道变更消息中包含第一 CAPWAP隧道异常的原因。 进一步地, 若确定第一 CAPWAP隧道异常, STA将隧道状态机的状态 从 RUN状态切换至 UNRUN状态。  It should be noted that the tunnel change message includes the cause of the first CAPWAP tunnel exception. Further, if it is determined that the first CAPWAP tunnel is abnormal, the STA switches the state of the tunnel state machine from the RUN state to the UNRUN state.
举例来说, STA和 WTP都可以预存有各个第一 CAPWAP隧道异常的原 因对应的编码或序列号, WTP发送隧道变更消息时, 可以在该隧道变更消息 中包含该第一 CAPWAP隧道异常的原因对应的编码或序列号, STA接收到 该隧道变更消息, 可以通过解析该编码或序列号, 并查询相应的异常的原因, 这样可以避免因为消息过大对无线网络的过多占用。  For example, both the STA and the WTP may pre-store the coding or sequence number corresponding to the cause of the first CAPWAP tunnel abnormality. When the WTP sends the tunnel change message, the tunnel change message may include the cause of the first CAPWAP tunnel abnormality. The encoding or sequence number, the STA receives the tunnel change message, and can resolve the reason of the corresponding abnormality by parsing the code or serial number, so as to avoid excessive occupation of the wireless network because the message is too large.
S306、 STA根据第一 CAPWAP隧道异常的原因, 设定预设时间段。 举例来说, STA根据第一 CAPWAP隧道异常的原因, 设定预设时间段, 并将该时间段预存在列表中, 不同的异常原因对应着不同的时间段。 如第一 CAPWAP隧道需要重启 DTLS会话, 则设定预设时间段为 lOmin等。  S306. The STA sets a preset time period according to the first CAPWAP tunnel abnormality. For example, the STA sets a preset time period according to the reason of the first CAPWAP tunnel abnormality, and pre-stores the time period in the list, and different abnormal causes correspond to different time segments. If the first CAPWAP tunnel needs to restart the DTLS session, set the preset time period to lOmin.
5307、 STA在一预设时间段后, 向 WTP发送询问消息, 询问消息用于 询问第一 CAPWAP隧道是否恢复正常。  5307. After a preset period of time, the STA sends an inquiry message to the WTP, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
举例来说,如第一 CAPWAP隧道需要重启 DTLS会话,则设定预设时间 段为 lOmin, 在接到隧道变更消息之后, lOmin到时时, 向 WTP发送询问消 息, 询问消息用于询问第一 CAPWAP隧道是否恢复正常。  For example, if the first CAPWAP tunnel needs to restart the DTLS session, the preset time period is set to 10 min. After receiving the tunnel change message, lOmin arrives at the time, and sends an inquiry message to the WTP, and the inquiry message is used to query the first CAPWAP. Whether the tunnel is back to normal.
进一步地,若 STA确定第一 CAPWAP隧道异常的时长超过预设时间段, 则将隧道状态机的状态从 UNRUN状态切换至闲置 IDLE状态。  Further, if the STA determines that the duration of the first CAPWAP tunnel abnormality exceeds the preset time period, the state of the tunnel state machine is switched from the UNRUN state to the idle IDLE state.
5308、 WTP接收 STA发送的询问消息,询问消息用于询问第一 CAPWAP 隧道是否恢复正常。  5308. The WTP receives an inquiry message sent by the STA, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
5309、 WTP确定第一 CAPWAP隧道是否正常,若正常则执行步骤 S310; 若异常则执行步骤 S311。  5309. The WTP determines whether the first CAPWAP tunnel is normal. If yes, step S310 is performed. If the fault is abnormal, step S311 is performed.
S310、 WTP向 STA返回询问消息响应。 S311、 WTP不向 STA返回询问消息响应。 S310. The WTP returns an inquiry message response to the STA. S311. The WTP does not return an inquiry message response to the STA.
需要说明的是, WTP可以在第一 CAPWAP隧道异常问题解决, 如 WTP 重建第一 CAPWAP隧道完成后, 发送通知消息, 通知 STA, 以使得 STA将 隧道状态机从 UNRUN状态跳转回到 RUN状态。 其中, 隧道状态机为运行状 态时, STA发送或接收 WTP转发的 CAPWAP消息; 隧道状态机为非运行状 态时, STA确定第一 CAPWAP隧道异常或第二 CAPWAP隧道异常, 不发送 CAPWAP消息与 AC进行交互; 隧道状态机为闲置状态时, STA确定需建立 第一 CAPWAP隧道或第二 CAPWAP隧道, 不发送 CAPWAP消息与 AC进 行交互。  It should be noted that the WTP can be solved in the first CAPWAP tunnel abnormality problem. For example, after the WTP reestablishes the first CAPWAP tunnel, the notification message is sent to notify the STA, so that the STA will jump from the UNRUN state to the RUN state. When the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP. When the tunnel state machine is in the non-operation state, the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send the CAPWAP message to the AC. Interaction: When the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send a CAPWAP message to interact with the AC.
S312、 STA接收 WTP发送的询问消息响应, 根据查询响应消息确定第 一 CAPWAP隧道恢复正常。  S312. The STA receives the inquiry message response sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the query response message.
本实施例以步骤 S309之后, 还可以执行步骤 S313举例进行说明, 也可 以不执行后续的 S313步骤, 不以本实施为限定:  After the step S309, the embodiment may further perform step S313 for example, or may not perform the subsequent step S313, and is not limited by the implementation:
5313、 WTP若确定第一 CAPWAP隧道恢复正常, 向 STA发送站点隧道 就绪消息。  5313. If the WTP determines that the first CAPWAP tunnel is normal, the WTP sends a site tunnel ready message to the STA.
5314、 STA接收 WTP发送的站点隧道就绪消息, 根据站点隧道就绪消 息确定第一 CAPWAP隧道恢复正常。  5314. The STA receives the site tunnel ready message sent by the WTP, and determines that the first CAPWAP tunnel is normal according to the site tunnel ready message.
进一步地, S301或 S302之后,还包括:删除第二 CAPWAP隧道的步骤, 本实施例以该步骤在 S314之后执行为例进行说明, 但不以此做任何限定。  Further, after S301 or S302, the method further includes: deleting the second CAPWAP tunnel, and the step is performed after the step S314 in this embodiment, but is not limited thereto.
需要说明的是, 在执行步骤 S315之前, 如果 WTP收到 AC下发的版本 更新信息, WTP有版本更新,可以通过 STA图像数据请求(Image data for STA request) 消息, 将给 STA需要更新的部分发给 STA, 该消息中可以携带有更 改命令或者新增协议内容等。 如果 WTP收到 AC下发的配置 (config) 更新 消息后, 会将和 STA 相关的部分下发给 STA , 包括无线管理 (radio adminstrative) 等信息, 以使得 STA根据该消息进行参数信息的更新。  It should be noted that, before the step S315 is performed, if the WTP receives the version update information sent by the AC, and the WTP has the version update, the STA data request (Image data for STA request) message may be used to send the STA the updated part. Send to the STA, the message can carry the change command or the content of the new protocol. If the WTP receives the configuration (config) update message from the AC, the STA sends the STA-related part to the STA, including radio management (radio adminstrative), so that the STA updates the parameter information according to the message.
5315、 STA若确定删除第二 CAPWAP隧道, 则向 WTP发送隧道删除请 求。  5315. If the STA determines to delete the second CAPWAP tunnel, the STA sends a tunnel deletion request to the WTP.
5316、 WTP接收 STA发送的隧道删除请求, 删除第二 CAPWAP隧道, 并向 AC通知第二 CAPWAP隧道删除。  5316. The WTP receives the tunnel deletion request sent by the STA, deletes the second CAPWAP tunnel, and notifies the AC to the second CAPWAP tunnel to delete.
需要说明的是,删除第二 CAPWAP隧道也可以是又 AC发起的,如 AC 若 确定删除第二 CAPWAP隧道, 则向 WTP发送隧道删除请求; WTP接收 AC 发送的隧道删除请求后, 删除第二 CAPWAP 隧道, 并向 STA 通知第二 CAPWAP隧道删除。 其中隧道删除请求中可以包含 STA的 MAC地址信息, 以便于 WTP 根据该 MAC 地址信息确定需要删除哪一个已经建立的第二 CAPWAP隧道删除。 最后, STA接收 WTP发送的第二 CAPWAP隧道删除 的通知, 确定第二 CAPWAP隧道已删除。 It should be noted that deleting the second CAPWAP tunnel may also be initiated by the AC, such as AC. After the second CAPWAP tunnel is deleted, the tunnel deletion request is sent to the WTP. After receiving the tunnel deletion request sent by the AC, the WTP deletes the second CAPWAP tunnel and notifies the STA of the second CAPWAP tunnel deletion. The tunnel deletion request may include the MAC address information of the STA, so that the WTP determines, according to the MAC address information, which of the established second CAPWAP tunnels needs to be deleted. Finally, the STA receives the notification of the second CAPWAP tunnel deletion sent by the WTP, and determines that the second CAPWAP tunnel has been deleted.
进一步地, 若第二 CAPWAP隧道删除, 则 STA将隧道状态机的状态从 UNRUN状态或 RUN状态切换至 IDLE状态。  Further, if the second CAPWAP tunnel is deleted, the STA switches the state of the tunnel state machine from the UNRUN state or the RUN state to the IDLE state.
本发明实施例提供的隧道状态处理方法, STA与 WTP建立第二 CAPWAP 隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP 隧道与 STA进行交互; STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧道异常; STA不再通过第一 CAPWAP隧道和第二 CAPWAP隧 道发送 CAPWAP消息与 AC进行交互, 第一 CAPWAP隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。 这样一来, 通过在 WTP与 STA之间建立第 二 CAPWAP隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减少不必要的信息交互, 减少资源浪费。 图 6为本发明站点 STA实施例的结构示意图, 如图 6所示, 本实施例的 STA 10可以包括: STA隧道建立单元 101、 STA处理单元 102和 STA接收 单元 103。  In the tunnel state processing method provided by the embodiment of the present invention, the STA establishes a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; The tunnel change message is used to determine that the first CAPWAP tunnel is abnormal. The STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. . In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality, and no longer interact with the AC when the tunnel is abnormal, thereby reducing unnecessary information interaction and reducing resource waste. FIG. 6 is a schematic structural diagram of an embodiment of a station STA according to the present invention. As shown in FIG. 6, the STA 10 of this embodiment may include: a STA tunnel establishing unit 101, a STA processing unit 102, and a STA receiving unit 103.
STA隧道建立单元 101, 用于与点 WTP建立第二 CAPWAP隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA 进行交互。  The STA tunnel establishing unit 101 is configured to establish a second CAPWAP tunnel with the point WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
STA处理单元 102, 用于若 STA接收单元 103接收 WTP发送的隧道变 更消息, 则确定第一 CAPWAP隧道异常; 使得 STA发送单元不再通过第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与 AC进行交互, 第 一 CAPWAP隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。  The STA processing unit 102 is configured to determine, if the STA receiving unit 103 receives the tunnel change message sent by the WTP, the first CAPWAP tunnel abnormality, so that the STA sending unit does not send the CAPWAP message and the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
进一步地, STA接收单元 103, 还用于接收 WTP发送的询问消息响应, 根据查询响应消息确定第一 CAPWAP隧道恢复正常。  Further, the STA receiving unit 103 is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel is restored to normal.
进一步地, STA接收单元 103, 还用于接收 WTP发送的站点隧道就绪消 STA处理单元 102,还用于根据站点隧道就绪消息确定第一 CAPWAP隧 道恢复正常。 图 7为本发明站点 STA的另一实施例的结构示意图, 如图 7所示, 本实 施例的 WTP在图 6所示装置结构的基础上, 进一步地, 还可以包括: Further, the STA receiving unit 103 is further configured to receive a site tunnel ready for WTP transmission. The STA processing unit 102 is further configured to determine that the first CAPWAP tunnel is normal according to the site tunnel ready message. FIG. 7 is a schematic structural diagram of another embodiment of a station STA according to the present invention. As shown in FIG. 7, the WTP of the present embodiment may further include:
STA发送单元 104, 用于在第一预设时间段后, 向 WTP发送询问消息, 询问消息用于询问第一 CAPWAP隧道是否恢复正常。  The STA sending unit 104 is configured to send an inquiry message to the WTP after the first preset time period, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
时间设定单元 105, 用于根据 STA接收单元 102接收隧道变更消息中包 含的第一 CAPWAP隧道异常的原因, 设定第一预设时间段。 图 8为本发明站点 STA的再一实施例的结构示意图, 如图 8所示, 本实 施例的 WTP在图 7所示装置结构的基础上, 进一步地, 还可以包括:  The time setting unit 105 is configured to set a first preset time period according to the reason that the STA receiving unit 102 receives the first CAPWAP tunnel abnormality included in the tunnel change message. FIG. 8 is a schematic structural diagram of still another embodiment of a station STA according to the present invention. As shown in FIG. 8, the WTP of the present embodiment may further include:
STA心跳包传输单元 106, 用于与 WTP维护心跳包传输, 若在一预设时 间段内未接收到 WTP发送的心跳包, 则使得 STA处理单元 102确定第二 CAPWAP隧道异常。 图 9为本发明站点 STA的又一实施例的结构示意图, 如图 9所示, 本实 施例的 WTP在图 8所示装置结构的基础上, 进一步地, 还可以包括:  The STA heartbeat packet transmission unit 106 is configured to maintain a heartbeat packet transmission with the WTP. If the heartbeat packet sent by the WTP is not received within a preset time period, the STA processing unit 102 determines that the second CAPWAP tunnel is abnormal. FIG. 9 is a schematic structural diagram of another embodiment of a station STA according to the present invention. As shown in FIG. 9, the WTP of the present embodiment may further include:
隧道状态机 107, 用于若处于与 WTP建立第二 CAPWAP隧道的状态, 则切换到运行状态; 若确定第一 CAPWAP隧道或第二 CAPWAP隧道异常之 后, 则从运行状态切换至非运行状态; 若确定第一 CAPWAP 隧道异常的时 长超过第一预设时间段, 则从非运行状态状态切换至闲置状态。  The tunnel state machine 107 is configured to switch to the running state if the second CAPWAP tunnel is established with the WTP, and to switch from the running state to the non-running state if the first CAPWAP tunnel or the second CAPWAP tunnel is determined to be abnormal; When it is determined that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, the non-operating state state is switched to the idle state.
其中, 隧道状态机为运行状态时, STA 发送或接收 WTP 转发的 CAPWAP消息; 隧道状态机为非运行状态时, STA确定第一 CAPWAP隧道 异常或第二 CAPWAP隧道异常, 不发送 CAPWAP消息与 AC进行交互; 隧 道状态机为闲置状态时, STA 确定需建立第一 CAPWAP 隧道或第二 CAPWAP隧道, 不发送 CAPWAP消息与 AC进行交互。  When the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP. When the tunnel state machine is in the non-operation state, the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send the CAPWAP message to the AC. Interaction: When the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send a CAPWAP message to interact with the AC.
进一步地, 隧道状态机 107, 还用于确定第一 CAPWAP隧道恢复正常之 后, 从非运行态切换至运行状态。 再进一步地, 隧道状态机 107, 还用于若第二 CAPWAP隧道删除, 则从 非运行状态或运行状态切换至闲置状态。 Further, the tunnel state machine 107 is further configured to switch from the non-operation state to the running state after the first CAPWAP tunnel returns to normal. Further, the tunnel state machine 107 is further configured to switch from the non-operation state or the running state to the idle state if the second CAPWAP tunnel is deleted.
本发明实施例提供的 STA, STA与 WTP建立第二 CAPWAP隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA 进行交互; STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧 道异常; STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 CAPWAP消息与 AC进行交互,第一 CAPWAP隧道为第一 WTP与 AC之间 原有的 CAPWAP隧道。这样一来,通过在 WTP与 STA之间建立第二 CAPWAP 隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减 少不必要的信息交互, 减少资源浪费。 图 10为本发明无线终端站点 WTP实施例的结构示意图, 如图 10所示, 本实施例的 WTP 20可以包括: WTP隧道建立单元 201、 WTP处理单元 202 和 WTP发送单元 203。  The STA, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP Then, the first CAPWAP tunnel is determined to be abnormal. The STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality and no longer interact with the AC when the tunnel is abnormal, thereby reducing unnecessary information interaction and reducing resource waste. FIG. 10 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention. As shown in FIG. 10, the WTP 20 of this embodiment may include: a WTP tunnel establishing unit 201, a WTP processing unit 202, and a WTP sending unit 203.
WTP隧道建立单元 201, 用于与站点 STA建立第二 CAPWAP隧道, 以 使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA进行交互。  The WTP tunnel establishing unit 201 is configured to establish a second CAPWAP tunnel with the STA, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
WTP发送单元 202, 用于若确定第一 CAPWAP隧道异常, 则使 WTP发 送单元 203向 STA发送隧道变更消息, 使得 STA不再通过第一 CAPWAP隧 道和第二 CAPWAP隧道发送 CAPWAP消息与 AC进行交互, 第一 CAPWAP 隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。 图 11为本发明 WTP的另一实施例的结构示意图, 如图 11所示, 本实 施例的 WTP在图 10所示装置结构的基础上, 进一步地, 还可以包括:  The WTP sending unit 202 is configured to: if the first CAPWAP tunnel is abnormal, the WTP sending unit 203 sends a tunnel change message to the STA, so that the STA does not use the first CAPWAP tunnel and the second CAPWAP tunnel to send a CAPWAP message to interact with the AC. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. FIG. 11 is a schematic structural diagram of another embodiment of the WTP of the present invention. As shown in FIG. 11, the WTP of the present embodiment may further include:
WTP接收单元 204, 用于若接收 AC发生的重置请求消息, 则使得 WTP 发送单元 203向 STA发送隧道变更消息, 隧道变更消息中包含第一 CAPWAP 隧道异常的原因; 或者,  The WTP receiving unit 204 is configured to: when receiving the reset request message generated by the AC, cause the WTP sending unit 203 to send a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality; or
WTP处理单元 202, 还用于若获知数据报文传输层安全协议 DTLS协议 栈异常, 则使得 WTP发送单元 203向 STA发送隧道变更消息, 隧道变更消 息中包含第一 CAPWAP隧道异常的原因。 进一步地, WTP接收单元 203, 还用于接收 STA发送的询问消息, 询问 消息用于询问第一 CAPWAP隧道是否恢复正常。 The WTP processing unit 202 is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP sending unit 203 sends a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality. Further, the WTP receiving unit 203 is further configured to receive an inquiry message sent by the STA, where the inquiry message is used to query whether the first CAPWAP tunnel is restored.
再进一步地, WTP处理单元 202, 还用于若确定第一 CAPWAP隧道正 常,则使得 WTP发送单元 203向 STA返回询问消息响应; WTP处理单元 202, 还用于若确定第一 CAPWAP隧道异常, 则使得 WTP发送单元 203不向 STA 返回询问消息响应。  Further, the WTP processing unit 202 is further configured to: if it is determined that the first CAPWAP tunnel is normal, the WTP sending unit 203 returns an inquiry message response to the STA; the WTP processing unit 202 is further configured to: if it is determined that the first CAPWAP tunnel is abnormal, The WTP transmitting unit 203 is caused not to return an inquiry message response to the STA.
进一步地, WTP处理单元 202, 还用于若确定第一 CAPWAP隧道恢复 正常, 则使得 WTP发送单元 203向 STA发送站点隧道就绪消息。 图 12为本发明 WTP的再一实施例的结构示意图, 如图 12所示, 本实 施例的 WTP在图 11所示装置结构的基础上, 进一步地, 还可以包括:  Further, the WTP processing unit 202 is further configured to: if it is determined that the first CAPWAP tunnel is restored, the WTP sending unit 203 sends a site tunnel ready message to the STA. FIG. 12 is a schematic structural diagram of still another embodiment of the WTP of the present invention. As shown in FIG. 12, the WTP of the present embodiment may further include:
WTP 心跳包传输单元 205, 用于与 STA 维护心跳包传输, 若第二 CAPWAP隧道异常, 则心跳包发送失败。 图 13为本发明 WTP的又一实施例的结构示意图, 如图 13所示, 本实 施例的 WTP在图 12所示装置结构的基础上, 进一步地, 还可以包括:  The WTP heartbeat packet transmission unit 205 is configured to maintain heartbeat packet transmission with the STA. If the second CAPWAP tunnel is abnormal, the heartbeat packet transmission fails. FIG. 13 is a schematic structural diagram of another embodiment of the WTP of the present invention. As shown in FIG. 13, the WTP of the present embodiment may further include:
隧道状态机 206, 用于若从运行 RUN状态切换到重置 RESET状态或数 据报文传输层安全协议链接切断 DTLS TD状态, 则使得 WTP发送单元 202 向 STA发送隧道变更消息。 其中, 隧道状态机为 RUN状态时, WTP转发或 接收 AC或 STA发送的 CAPWAP消息; 隧道状态机为 RESET状态和 DTLS TD状态时, WTP确定第一 CAPWAP隧道异常, 不再转发 AC或 STA发送 的 CAPWAP消息。  The tunnel state machine 206 is configured to enable the WTP sending unit 202 to send a tunnel change message to the STA if the switch from the running RUN state to the reset RESET state or the data packet transport layer security protocol link disconnects the DTLS TD state. When the tunnel state machine is in the RUN state, the WTP forwards or receives the CAPWAP message sent by the AC or the STA. When the tunnel state machine is in the RESET state and the DTLS TD state, the WTP determines that the first CAPWAP tunnel is abnormal, and is not forwarded by the AC or the STA. CAPWAP message.
本发明实施例提供的 WTP, STA与 WTP建立第二 CAPWAP隧道, 以 使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA进行交互; STA若接收 WTP发送的隧道变更消息,则确定第一 CAPWAP 隧道异常; STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 CAPWAP消息与 AC进行交互,第一 CAPWAP隧道为第一 WTP与 AC之间 原有的 CAPWAP隧道。这样一来,通过在 WTP与 STA之间建立第二 CAPWAP 隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减 少不必要的信息交互, 减少资源浪费。 图 14为本发明站点 STA实施例的结构示意图, 如图 14所示, 本实施例 的 STA 30可以包括: STA处理器 301、 STA接收器 302和发送器 303。 The WTP, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP The first CAPWAP tunnel is determined to be abnormal. The STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality and no longer interact with the AC when the tunnel is abnormal, reducing unnecessary information interaction and reducing resource waste. FIG. 14 is a schematic structural diagram of an embodiment of a station STA according to the present invention. As shown in FIG. 14, the STA 30 of this embodiment may include: a STA processor 301, a STA receiver 302, and a transmitter 303.
STA处理器 301, 用于与 WTP建立第二 CAPWAP隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA进行交 互。  The STA processor 301 is configured to establish a second CAPWAP tunnel with the WTP, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
STA处理器 301, 还用于若 STA接收器 302接收 WTP发送的隧道变更 消息, 则确定第一 CAPWAP隧道异常; 使得 STA发送器 303不再通过第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与 AC进行交互, 第 一 CAPWAP隧道为第一 WTP与 AC之间原有的 CAPWAP隧道。  The STA processor 301 is further configured to: if the STA receiver 302 receives the tunnel change message sent by the WTP, determine the first CAPWAP tunnel abnormality; so that the STA transmitter 303 does not send the CAPWAP message through the first CAPWAP tunnel and the second CAPWAP tunnel. The AC interacts. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
进一步地, STA发送器 303, 用于在第一预设时间段后, 向 WTP发送询 问消息, 询问消息用于询问第一 CAPWAP隧道是否恢复正常。 图 15为本发明站点 STA的另一实施例的结构示意图, 如图 15所示, 本 实施例的 WTP在图 14所示装置结构的基础上, 进一步地, 还可以包括: 定时器 304, 用于根据 STA接收器 302接收的隧道变更消息中包含的第 一 CAPWAP隧道异常的原因, 设定预设时间段。  Further, the STA transmitter 303 is configured to send a query message to the WTP after the first preset time period, where the query message is used to query whether the first CAPWAP tunnel is back to normal. FIG. 15 is a schematic structural diagram of another embodiment of a station STA according to the present invention. As shown in FIG. 15, the WTP of this embodiment may further include: a timer 304, based on the apparatus structure shown in FIG. The preset time period is set according to the reason of the first CAPWAP tunnel abnormality included in the tunnel change message received by the STA receiver 302.
进一步地, STA接收器 302, 还用于接收 WTP发送的询问消息响应, 根 据查询响应消息确定第一 CAPWAP隧道恢复正常。  Further, the STA receiver 302 is further configured to receive an inquiry message response sent by the WTP, and determine, according to the query response message, that the first CAPWAP tunnel is restored to normal.
进一步地, STA接收器 302,还用于接收 WTP发送的站点隧道就绪消息; Further, the STA receiver 302 is further configured to receive a site tunnel ready message sent by the WTP.
STA处理器 301,还用于根据站点隧道就绪消息确定第一 CAPWAP隧道恢复 正常。 The STA processor 301 is further configured to determine that the first CAPWAP tunnel is restored according to the site tunnel ready message.
进一步地, STA处理器 301, 还用于与 WTP维护心跳包传输, 若在第二 预设时间段内未接收到 WTP发送的心跳包, 确定第二 CAPWAP隧道异常。  Further, the STA processor 301 is further configured to maintain a heartbeat packet transmission with the WTP, and if the heartbeat packet sent by the WTP is not received within the second preset time period, determine that the second CAPWAP tunnel is abnormal.
再进一步地, STA 处理器 301, 还用于若处于与 WTP 建立第二 Further, the STA processor 301 is further configured to establish a second with the WTP.
CAPWAP隧道的状态, 则切换到运行状态; The status of the CAPWAP tunnel is switched to the running state.
若确定第一 CAPWAP隧道或第二 CAPWAP隧道异常之后, 则从运行状 态切换至非运行状态;  If it is determined that the first CAPWAP tunnel or the second CAPWAP tunnel is abnormal, the operation state is switched to the non-operation state;
若确定第一 CAPWAP 隧道异常的时长超过第一预设时间段, 则从非运 行状态状态切换至闲置状态, 其中, 为运行状态时, STA 发送或接收 WTP 转发的 CAPWAP消息; 为非运行状态时, STA确定第一 CAPWAP隧道异常 或第二 CAPWAP隧道异常, 不发送 CAPWAP消息与 AC进行交互; 为闲置 状态时, STA确定需建立第一 CAPWAP隧道或第二 CAPWAP隧道, 不发送 CAPWAP消息与 AC进行交互。 If it is determined that the duration of the first CAPWAP tunnel abnormality exceeds the first preset time period, the state is switched from the non-operation state state to the idle state, where, when the operation state is performed, the STA sends or receives the WTP. When the CAPWAP message is forwarded, the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send a CAPWAP message to interact with the AC; when idle, the STA determines that the first CAPWAP tunnel or the second needs to be established. A CAPWAP tunnel does not send a CAPWAP message to interact with the AC.
或者, 该 STA处理器 301, 还用于确定第一 CAPWAP隧道恢复正常之 后, 从非运行态切换至运行状态。  Alternatively, the STA processor 301 is further configured to switch from the non-operational state to the running state after the first CAPWAP tunnel is restored to normal.
再或者, STA处理器 301, 还用于若第二 CAPWAP隧道删除, 则从非运 行状态或运行状态切换至闲置状态。  Or, the STA processor 301 is further configured to switch from the non-running state or the running state to the idle state if the second CAPWAP tunnel is deleted.
本发明实施例提供的 STA, STA与 WTP建立第二 CAPWAP隧道, 以使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA 进行交互; STA若接收 WTP发送的隧道变更消息, 则确定第一 CAPWAP隧 道异常; STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 CAPWAP消息与 AC进行交互,第一 CAPWAP隧道为第一 WTP与 AC之间 原有的 CAPWAP隧道。这样一来,通过在 WTP与 STA之间建立第二 CAPWAP 隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减 少不必要的信息交互, 减少资源浪费。 图 16为本发明无线终端站点 WTP实施例的结构示意图, 如图 17所示, 本实施例的 WTP 40可以包括: WTP处理器 401和 WTP发送器 402。  The STA, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP Then, the first CAPWAP tunnel is determined to be abnormal. The STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality and no longer interact with the AC when the tunnel is abnormal, thereby reducing unnecessary information interaction and reducing resource waste. FIG. 16 is a schematic structural diagram of a WTP embodiment of a wireless terminal station according to the present invention. As shown in FIG. 17, the WTP 40 of this embodiment may include: a WTP processor 401 and a WTP transmitter 402.
WTP处理器 401, 用于与 STA建立第二 CAPWAP隧道, 以使 AC通过 所述 WTP与所述 AC之间的第一 CAPWAP隧道和所述第二 CAPWAP隧道 与所述 STA进行交互。  The WTP processor 401 is configured to establish a second CAPWAP tunnel with the STA, so that the AC interacts with the STA by using the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC.
WTP处理器 401,还用于若确定所述第一 CAPWAP隧道异常, 则使 WTP 发送器 402向所述 STA发送隧道变更消息, 使得所述 STA不再通过所述第 一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行 交互, 所述第一 CAPWAP 隧道为所述第一 WTP 与所述 AC 之间原有的 The WTP processor 401 is further configured to: if the first CAPWAP tunnel is abnormal, send the WTP sender 402 to send a tunnel change message to the STA, so that the STA does not pass the first CAPWAP tunnel and the second CAPWAP The tunnel sends a CAPWAP message to interact with the AC, where the first CAPWAP tunnel is the original between the first WTP and the AC.
CAPWAP隧道。 图 17为本发明 WTP的另一实施例的结构示意图, 如图 17所示, 本 施例的 WTP在图 16所示装置结构的基础上, 进一步地, 还可以包括: WTP接收器 403, 用于若接收 AC发生的重置请求消息, 则使得 WTP发 送器 402向 STA发送隧道变更消息, 隧道变更消息中包含第一 CAPWAP隧 道异常的原因; 或者, CAPWAP tunnel. FIG. 17 is a schematic structural diagram of another embodiment of the WTP according to the present invention. As shown in FIG. 17, the WTP of the present embodiment may further include: The WTP receiver 403 is configured to: when receiving the AC reset request message, the WTP transmitter 402 sends a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality; or
WTP处理器 401, 还用于若获知数据报文传输层安全协议 DTLS协议栈 异常, 则使得 WTP发送器 402向 STA发送隧道变更消息, 隧道变更消息中 包含第一 CAPWAP隧道异常的原因。  The WTP processor 401 is further configured to: if the data packet transport layer security protocol DTLS protocol stack is abnormal, the WTP transmitter 402 sends a tunnel change message to the STA, where the tunnel change message includes the first CAPWAP tunnel abnormality.
进一步地, WTP接收器 403, 还用于接收 STA发送的询问消息, 询问消 息用于询问第一 CAPWAP隧道是否恢复正常。  Further, the WTP receiver 403 is further configured to receive an inquiry message sent by the STA, and the inquiry message is used to query whether the first CAPWAP tunnel is restored.
WTP处理器 401, 还用于若确定第一 CAPWAP隧道正常, 则使得 WTP 发送器 402向 STA返回询问消息响应;  The WTP processor 401 is further configured to: if the first CAPWAP tunnel is determined to be normal, cause the WTP transmitter 402 to return an inquiry message response to the STA;
WTP处理器 401, 还用于若确定第一 CAPWAP隧道异常, 则使得 WTP 发送器 402不向 STA返回询问消息响应。  The WTP processor 401 is further configured to: if the first CAPWAP tunnel is abnormal, cause the WTP sender 402 not to return an inquiry message response to the STA.
进一步地, WTP处理器 401, 还用于若确定第一 CAPWAP隧道恢复正 常, 则使得 WTP发送器 402向 STA发送站点隧道就绪消息。  Further, the WTP processor 401 is further configured to: if it is determined that the first CAPWAP tunnel is restored, the WTP transmitter 402 is configured to send a site tunnel ready message to the STA.
进一步地, WTP处理器 401, 还用于与 STA维护心跳包传输, 若第二 Further, the WTP processor 401 is further configured to maintain heartbeat packet transmission with the STA, if the second
CAPWAP隧道异常, 则心跳包发送失败。 If the CAPWAP tunnel is abnormal, the heartbeat packet fails to be sent.
再进一步地, WTP处理器 401, 还用于隧道状态机的状态若从运行 RUN 状态切换到重置 RESET状态或数据报文传输层安全协议链接切断 DTLS TD 状态, 则使得所述 WTP发送器向所述 STA发送隧道变更消息, 其中, 所述 隧道状态机为 RUN状态时, 所述 WTP转发或接收所述 AC或所述 STA发送 的所述 CAPWAP消息; 所述隧道状态机为所述 RESET状态和所述 DTLS TD 状态时, 所述 WTP确定所述第一 CAPWAP隧道异常, 不再转发所述 AC或 所述 STA发送的所述 CAPWAP消息。 本发明实施例提供的 WTP, STA与 WTP建立第二 CAPWAP隧道, 以 使 AC通过 WTP与 AC之间的第一 CAPWAP隧道和第二 CAPWAP隧道与 STA进行交互; STA若接收 WTP发送的隧道变更消息,则确定第一 CAPWAP 隧道异常; STA 不再通过第一 CAPWAP 隧道和第二 CAPWAP 隧道发送 CAPWAP消息与 AC进行交互,第一 CAPWAP隧道为第一 WTP与 AC之间 原有的 CAPWAP隧道。这样一来,通过在 WTP与 STA之间建立第二 CAPWAP 隧道, 使得 STA能够获知隧道异常, 且获知隧道异常时不再与 AC交互, 减 少不必要的信息交互, 减少资源浪费。 图 18为本发明隧道建立系统实施例的结构示意图, 该系统 1包括: 至少一个 STA 10和 WTP 20。 Further, the WTP processor 401 is further configured to: if the state of the tunnel state machine is switched from the running RUN state to the reset RESET state or the data packet transport layer security protocol link cuts off the DTLS TD state, the WTP transmitter is caused to The STA sends a tunnel change message, where the WTP forwards or receives the CAPWAP message sent by the AC or the STA when the tunnel state machine is in a RUN state; the tunnel state machine is the RESET state. And the DTP TD state, the WTP determines that the first CAPWAP tunnel is abnormal, and does not forward the AC or the CAPWAP message sent by the STA. The WTP, the STA and the WTP provided by the embodiment of the present invention establish a second CAPWAP tunnel, so that the AC interacts with the STA through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC; if the STA receives the tunnel change message sent by the WTP The first CAPWAP tunnel is determined to be abnormal. The STA does not send a CAPWAP message to the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the STA can learn the tunnel abnormality, and no longer interacts with the AC when the tunnel is abnormal. Less unnecessary information interaction and less waste of resources. FIG. 18 is a schematic structural diagram of an embodiment of a tunnel establishment system according to the present invention. The system 1 includes: at least one STA 10 and a WTP 20.
在系统中, STA 10可以采用图 6至图 9任一 STA 10所示结构, WTP 20 可以采用图 10至图 13任一的 WTP 20所示结构。 或者, 该系统包括:  In the system, the STA 10 can adopt the structure shown in any of the STAs 10 of FIG. 6 to FIG. 9, and the WTP 20 can adopt the structure shown by the WTP 20 of any of FIGS. 10 to 13. Alternatively, the system includes:
至少一个 STA 30和 WTP 40。  At least one STA 30 and WTP 40.
STA 30可以采用图 14或图 15的 STA 30所示结构, WTP 40可以采用图 The STA 30 can adopt the structure shown in STA 30 of FIG. 14 or FIG. 15, and the WTP 40 can adopt the figure.
16或图 17的 WTP 40所示结构。 16 or the structure shown by WTP 40 of FIG.
本实施例的系统, 均可以用于执行图 1至图 5所示方法实施例的技术方 案, 其实现原理和技术效果类似, 此处不再赘述。  The system of the present embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 1 to FIG. 5, and the implementation principle and technical effects are similar, and details are not described herein again.
本发明实施例提供的系统, 在 WTP与 AC之间的第一 CAPWAP隧道建 立之后, 站点 STA与 WTP建立第二 CAPWAP隧道; STA接收 WTP发送的 隧道状态通知消息; 若隧道状态通知消息为隧道变更消息, 则 STA确定第一 CAPWAP隧道异常,以使 STA不再通过第一 CAPWAP隧道和第二 CAPWAP 隧道与 AC进行交互。这样一来,通过在 WTP与 STA之间建立第二 CAPWAP 隧道,使得 AC能够通过第一 CAPWAP隧道和第二 CAPWAP隧道控制 STA, 使得 STA根据不同场景, 以对应该场景的方式进行操作处理, 提高了 STA 的处理能力, 进而提高了 WLAN的网络处理的能力。  The system provided by the embodiment of the present invention, after the first CAPWAP tunnel between the WTP and the AC is established, the station STA establishes a second CAPWAP tunnel with the WTP; the STA receives the tunnel status notification message sent by the WTP; if the tunnel status notification message is a tunnel change The STA determines that the first CAPWAP tunnel is abnormal, so that the STA does not interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. In this way, by establishing a second CAPWAP tunnel between the WTP and the STA, the AC can control the STA through the first CAPWAP tunnel and the second CAPWAP tunnel, so that the STA performs operation processing according to different scenarios according to different scenarios. The processing power of the STA improves the network processing capability of the WLAN.
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可 读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步骤; 而 前述的存储介质包括: ROM、 RAM,磁碟或者光盘等各种可以存储程序代码 的介质。  One of ordinary skill in the art will appreciate that all or a portion of the steps to implement the various method embodiments described above can be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围 Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and these modifications or replacements, and The essence of the corresponding technical solution is not deviated from the scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 书 claims
1、 一种隧道状态处理方法, 其特征在于, 包括: 1. A tunnel status processing method, characterized by including:
站点 STA与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP 隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP 隧道和所述第二 CAPWAP隧道与所述 STA进行交互; The station STA establishes a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC communicates with the access control point AC through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC. interact with the STA;
所述 STA 若接收所述 WTP 发送的隧道变更消息, 则确定所述第一 CAPWAP隧道异常; If the STA receives the tunnel change message sent by the WTP, it determines that the first CAPWAP tunnel is abnormal;
所述 STA不再通过所述第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行交互,所述第一 CAPWAP隧道为所述第一 WTP 与所述 AC之间原有的 CAPWAP隧道。 The STA no longer sends CAPWAP messages to interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC. .
2、根据权利要求 1所述的方法,其特征在于,所述确定所述第一 CAPWAP 隧道异常之后, 还包括: 2. The method according to claim 1, characterized in that after determining that the first CAPWAP tunnel is abnormal, further comprising:
所述 STA在第一预设时间段后, 向所述 WTP发送询问消息, 所述询问 消息用于询问所述第一 CAPWAP隧道是否恢复正常。 The STA sends a query message to the WTP after the first preset time period, and the query message is used to query whether the first CAPWAP tunnel returns to normal.
3、 根据权利要求 2所述的方法, 其特征在于, 所述隧道变更消息中包含 所述第一 CAPWAP隧道异常的原因; 3. The method according to claim 2, wherein the tunnel change message contains the cause of the abnormality of the first CAPWAP tunnel;
所述 STA在所述第一预设时间段后, 向所述 WTP发送询问消息之前, 还包括: After the first preset time period and before sending a query message to the WTP, the STA further includes:
所述 STA根据所述第一 CAPWAP隧道异常的原因, 设定所述第一预设 时间段。 The STA sets the first preset time period based on the cause of the first CAPWAP tunnel exception.
4、 根据权利要求 2或 3所述的方法, 其特征在于, 所述向所述 WTP发 送询问消息之后, 还包括: 4. The method according to claim 2 or 3, characterized in that, after sending the query message to the WTP, it further includes:
所述 STA接收所述 WTP发送的询问消息响应, 根据所述查询响应消息 确定所述第一 CAPWAP隧道恢复正常。 The STA receives the query message response sent by the WTP, and determines that the first CAPWAP tunnel returns to normal according to the query response message.
5、根据权利要求 1所述的方法,其特征在于,所述确定所述第一 CAPWAP 隧道异常之后, 还包括: 5. The method according to claim 1, characterized in that after determining that the first CAPWAP tunnel is abnormal, further comprising:
所述 STA接收所述 WTP发送的站点隧道就绪消息, 根据所述站点隧道 就绪消息确定所述第一 CAPWAP隧道恢复正常。 The STA receives the site tunnel ready message sent by the WTP, and determines that the first CAPWAP tunnel returns to normal according to the site tunnel ready message.
6、根据权利要求 1~5中任一项所述的方法, 其特征在于, 所述站点 STA 与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP隧道之后, 还 包括: 6. The method according to any one of claims 1 to 5, characterized in that, after the station STA establishes a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, include:
所述 STA与所述 WTP维护心跳包传输, 若在第二预设时间段内未接收 到所述 WTP发送的心跳包, 则确定所述第二 CAPWAP隧道异常。 The STA maintains heartbeat packet transmission with the WTP. If the heartbeat packet sent by the WTP is not received within the second preset time period, it is determined that the second CAPWAP tunnel is abnormal.
7、根据权利要求 1~6中任一项所述的方法, 其特征在于, 所述站点 STA 与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP隧道之后, 还 包括: 7. The method according to any one of claims 1 to 6, characterized in that, after the station STA establishes a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, it further includes:
所述 STA将隧道状态机的状态切换到运行状态; The STA switches the state of the tunnel state machine to the running state;
所述 STA确定所述第一 CAPWAP隧道异常, 或, 所述 STA确定所述第 二 CAPWAP隧道异常之后, 还包括: The STA determines that the first CAPWAP tunnel is abnormal, or, after the STA determines that the second CAPWAP tunnel is abnormal, the method further includes:
所述 STA将所述隧道状态机的状态从所述运行状态切换至非运行状态; 若所述 STA确定所述第一 CAPWAP隧道异常的时长超过所述第一预设 时间段, 则将所述隧道状态机的状态从所述非运行状态切换至闲置状态; 其中, 所述隧道状态机为所述运行状态时, 所述 STA 发送或接收所述 WTP转发的所述 CAPWAP消息; 所述隧道状态机为所述非运行状态时, 所 述 STA确定所述第一 CAPWAP隧道异常或所述第二 CAPWAP隧道异常, 不发送所述 CAPWAP消息与所述 AC进行交互;所述隧道状态机为所述闲置 状态时,所述 STA确定需建立所述第一 CAPWAP隧道或所述第二 CAPWAP 隧道, 不发送所述 CAPWAP消息与所述 AC进行交互。 The STA switches the state of the tunnel state machine from the running state to the non-running state; if the STA determines that the first CAPWAP tunnel is abnormal for longer than the first preset time period, then the STA The state of the tunnel state machine switches from the non-running state to the idle state; wherein, when the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP; the tunnel state When the machine is in the non-running state, the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send the CAPWAP message to interact with the AC; the tunnel state machine is the When in the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send the CAPWAP message to interact with the AC.
8、 根据权利要求 7所述的方法, 其特征在于, 所述 STA确定所述第一 CAPWAP隧道恢复正常之后, 还包括: 8. The method according to claim 7, characterized in that, after the STA determines that the first CAPWAP tunnel has returned to normal, it further includes:
所述 STA将所述隧道状态机的状态从所述非运行状态切换至所述运行状 态。 The STA switches the state of the tunnel state machine from the non-running state to the running state.
9、 根据权利要求 7或 8所述的方法, 其特征在于, 还包括: 9. The method according to claim 7 or 8, further comprising:
若所述第二 CAPWAP隧道删除, 则所述 STA将所述隧道状态机的状态 从所述非运行状态或所述运行状态切换至所述闲置状态。 If the second CAPWAP tunnel is deleted, the STA switches the state of the tunnel state machine from the non-running state or the running state to the idle state.
10、 一种隧道状态维护方法, 其特征在于, 包括: 10. A tunnel status maintenance method, characterized by including:
无线终端站点 WTP与站点 STA建立第二控制无线接入点协议 CAPWAP 隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP 隧道和所述第二 CAPWAP隧道与所述 STA进行交互; The wireless terminal site WTP establishes a second control wireless access point protocol CAPWAP tunnel with the site STA, so that the access control point AC communicates with the access control point AC through the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC. interact with the STA;
所述 WTP若确定所述第一 CAPWAP隧道异常,则向所述 STA发送隧道 变更消息,使得所述 STA不再通过所述第一 CAPWAP隧道和第二 CAPWAP 隧道发送 CAPWAP消息与所述 AC进行交互, 所述第一 CAPWAP隧道为所 述第一 WTP与所述 AC之间原有的 CAPWAP隧道。 If the WTP determines that the first CAPWAP tunnel is abnormal, it sends a tunnel message to the STA. Change the message so that the STA no longer sends CAPWAP messages to interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel. The first CAPWAP tunnel is the original link between the first WTP and the AC. There are CAPWAP tunnels.
11、 根据权利要求 10所述的方法, 其特征在于, 所述 WTP若确定所述 第一 CAPWAP隧道异常, 则向所述 STA发送隧道变更消息包括: 11. The method according to claim 10, wherein if the WTP determines that the first CAPWAP tunnel is abnormal, sending a tunnel change message to the STA includes:
所述 WTP若接收所述 AC发送的重置请求消息, 则向所述 STA发送所 述隧道变更消息,所述隧道变更消息中包含所述第一 CAPWAP隧道异常的原 因; 或者, If the WTP receives the reset request message sent by the AC, it sends the tunnel change message to the STA, and the tunnel change message contains the reason for the abnormality of the first CAPWAP tunnel; or,
所述 WTP若获知数据报文传输层安全协议 DTLS协议栈异常,则向所述 STA 发送所述隧道变更消息, 所述隧道变更消息中包含所述第一 CAPWAP 隧道异常的原因。 If the WTP learns that the data packet transport layer security protocol DTLS protocol stack is abnormal, it sends the tunnel change message to the STA, and the tunnel change message contains the reason for the abnormality of the first CAPWAP tunnel.
12、 根据权利要求 10或 11所述的方法, 其特征在于, 所述 WTP若确定 所述第一 CAPWAP隧道异常, 则向所述 STA发送隧道变更消息之后, 还包 括: 12. The method according to claim 10 or 11, wherein if the WTP determines that the first CAPWAP tunnel is abnormal, after sending a tunnel change message to the STA, the method further includes:
所述 WTP接收所述 STA发送的询问消息, 所述询问消息用于询问所述 第一 CAPWAP隧道是否恢复正常。 The WTP receives the inquiry message sent by the STA, and the inquiry message is used to inquire whether the first CAPWAP tunnel is restored to normal.
所述 WTP若确定所述第一 CAPWAP隧道正常,则向所述 STA返回询问 消息响应; If the WTP determines that the first CAPWAP tunnel is normal, it returns a query message response to the STA;
所述 WTP若确定所述第一 CAPWAP隧道异常,则不向所述 STA返回询 问消息响应。 If the WTP determines that the first CAPWAP tunnel is abnormal, it does not return a query message response to the STA.
13、 根据权利要求 10或 11所述的方法, 其特征在于, 所述 WTP若确定 所述第一 CAPWAP隧道异常, 则向所述 STA发送隧道变更消息之后, 还包 括: 13. The method according to claim 10 or 11, wherein if the WTP determines that the first CAPWAP tunnel is abnormal, after sending a tunnel change message to the STA, the method further includes:
所述 WTP若确定所述第一 CAPWAP隧道恢复正常,则向所述 STA发送 站点隧道就绪消息。 If the WTP determines that the first CAPWAP tunnel has returned to normal, it sends a site tunnel ready message to the STA.
14、 根据权利要求 10~13中任一项所述的方法, 其特征在于, 所述无线 终端站点 WTP与站点 STA建立第二控制无线接入点协议 CAPWAP隧道之 后, 还包括: 14. The method according to any one of claims 10 to 13, characterized in that, after the wireless terminal station WTP and the station STA establish a second control wireless access point protocol CAPWAP tunnel, it also includes:
所述 WTP与所述 STA维护心跳包传输,若所述第二 CAPWAP隧道异常, 则心跳包发送失败。 The WTP and the STA maintain heartbeat packet transmission. If the second CAPWAP tunnel is abnormal, the heartbeat packet transmission fails.
15、 根据权利要求 10~14中任一项所述的方法, 其特征在于, 所述无线 终端站点 WTP与站点 STA建立第二控制无线接入点协议 CAPWAP隧道之 后, 还包括: 15. The method according to any one of claims 10 to 14, characterized in that, after the wireless terminal station WTP and the station STA establish a second control wireless access point protocol CAPWAP tunnel, it further includes:
所述 WTP的隧道状态机的状态若从运行 RUN状态切换到重置 RESET 状态或数据报文传输层安全协议链接切断 DTLS TD状态, 则向所述 STA发 送隧道变更消息, 其中, 所述隧道状态机为 RUN状态时, 所述 WTP转发或 接收所述 AC或所述 STA发送的所述 CAPWAP消息; 所述隧道状态机为所 述 RESET状态和所述 DTLS TD状态时, 所述 WTP确定所述第一 CAPWAP 隧道异常, 不再转发所述 AC或所述 STA发送的所述 CAPWAP消息。 If the status of the tunnel state machine of the WTP is switched from the running RUN state to the RESET state or the data packet transport layer security protocol link is cut off from the DTLS TD state, a tunnel change message is sent to the STA, where, the tunnel status When the machine is in the RUN state, the WTP forwards or receives the CAPWAP message sent by the AC or the STA; when the tunnel state machine is in the RESET state and the DTLS TD state, the WTP determines the The first CAPWAP tunnel is abnormal and the CAPWAP message sent by the AC or the STA is no longer forwarded.
16、 一种站点 STA, 其特征在于, 包括: 16. A site STA, which is characterized by including:
STA隧道建立单元, 用于与无线终端站点 WTP建立第二控制无线接入 点协议 CAPWAP隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间 的第一 CAPWAP隧道和所述第二 CAPWAP隧道与所述 STA进行交互; The STA tunnel establishment unit is configured to establish a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC passes the first CAPWAP tunnel between the WTP and the AC and the third Two CAPWAP tunnels interact with the STA;
STA处理单元, 用于若 STA接收单元接收所述 WTP发送的隧道变更消 息, 则确定所述第一 CAPWAP隧道异常; 使得 STA发送单元不再通过所述 第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进 行交互, 所述第一 CAPWAP隧道为所述第一 WTP与所述 AC之间原有的 CAPWAP隧道。 The STA processing unit is configured to determine that the first CAPWAP tunnel is abnormal if the STA receiving unit receives the tunnel change message sent by the WTP; so that the STA sending unit no longer sends CAPWAP through the first CAPWAP tunnel and the second CAPWAP tunnel. Messages are interacted with the AC, and the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
17、 根据权利要求 16所述的 STA, 其特征在于, 17. The STA according to claim 16, characterized in that,
所述 STA发送单元, 用于在第一预设时间段后, 向所述 WTP发送询问 消息, 所述询问消息用于询问所述第一 CAPWAP隧道是否恢复正常。 The STA sending unit is configured to send a query message to the WTP after a first preset time period. The query message is used to query whether the first CAPWAP tunnel returns to normal.
18、 根据权利要求 17所述的 STA, 其特征在于, 还包括: 18. The STA according to claim 17, further comprising:
时间设定单元, 用于根据所述 STA接收单元接收所述隧道变更消息中包 含的所述第一 CAPWAP隧道异常的原因, 设定所述第一预设时间段。 A time setting unit, configured to set the first preset time period according to the reason why the first CAPWAP tunnel is abnormal contained in the tunnel change message received by the STA receiving unit.
19、 根据权利要求 17或 18所述的 STA, 其特征在于, 19. The STA according to claim 17 or 18, characterized in that,
所述 STA接收单元, 还用于接收所述 WTP发送的询问消息响应, 根据 所述查询响应消息确定所述第一 CAPWAP隧道恢复正常。 The STA receiving unit is also configured to receive a query message response sent by the WTP, and determine that the first CAPWAP tunnel returns to normal according to the query response message.
20、 根据权利要求 16所述的 STA, 其特征在于, 20. The STA according to claim 16, characterized in that,
所述 STA接收单元, 还用于接收所述 WTP发送的站点隧道就绪消息; 所述 STA 处理单元, 还用于根据所述站点隧道就绪消息确定所述第一 CAPWAP隧道恢复正常。 The STA receiving unit is also configured to receive the site tunnel ready message sent by the WTP; the STA processing unit is also configured to determine the first site tunnel ready message according to the site tunnel ready message. The CAPWAP tunnel returns to normal.
21、 根据权利要求 16~20中任一项所述的 STA, 其特征在于, 还包括: STA心跳包传输单元, 用于与所述 WTP维护心跳包传输, 若在第二预 设时间段内未接收到所述 WTP发送的心跳包, 则所述 STA处理单元确定所 述第二 CAPWAP隧道异常。 21. The STA according to any one of claims 16 to 20, further comprising: an STA heartbeat packet transmission unit, used for maintaining heartbeat packet transmission with the WTP, if within the second preset time period If the heartbeat packet sent by the WTP is not received, the STA processing unit determines that the second CAPWAP tunnel is abnormal.
22、 根据权利要求 16~21中任一项所述的 STA, 其特征在于, 还包括: 隧道状态机, 用于若处于与所述 WTP建立第二 CAPWAP隧道的状态, 则切换到运行状态; 22. The STA according to any one of claims 16 to 21, further comprising: a tunnel state machine, configured to switch to a running state if it is in a state of establishing a second CAPWAP tunnel with the WTP;
若确定所述第一 CAPWAP隧道或所述第二 CAPWAP隧道异常之后, 则 从所述运行状态切换至非运行状态; If it is determined that the first CAPWAP tunnel or the second CAPWAP tunnel is abnormal, then switch from the running state to the non-running state;
若确定所述第一 CAPWAP隧道异常的时长超过所述第一预设时间段,则 从所述非运行状态状态切换至闲置状态; If it is determined that the abnormal duration of the first CAPWAP tunnel exceeds the first preset time period, switch from the non-running state to an idle state;
其中, 所述隧道状态机为所述运行状态时, 所述 STA 发送或接收所述 WTP转发的所述 CAPWAP消息; 所述隧道状态机为所述非运行状态时, 所 述 STA确定所述第一 CAPWAP隧道异常或所述第二 CAPWAP隧道异常, 不发送所述 CAPWAP消息与所述 AC进行交互;所述隧道状态机为所述闲置 状态时,所述 STA确定需建立所述第一 CAPWAP隧道或所述第二 CAPWAP 隧道, 不发送所述 CAPWAP消息与所述 AC进行交互。 Wherein, when the tunnel state machine is in the running state, the STA sends or receives the CAPWAP message forwarded by the WTP; when the tunnel state machine is in the non-running state, the STA determines the first If a CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, the CAPWAP message is not sent to interact with the AC; when the tunnel state machine is in the idle state, the STA determines that the first CAPWAP tunnel needs to be established Or the second CAPWAP tunnel does not send the CAPWAP message to interact with the AC.
23、 根据权利要求 22所述的 STA, 其特征在于, 23. The STA according to claim 22, characterized in that,
所述隧道状态机,还用于确定所述第一 CAPWAP隧道恢复正常之后,从 所述非运行态切换至所述运行状态。 The tunnel state machine is also used to switch from the non-operational state to the operating state after determining that the first CAPWAP tunnel returns to normal.
24、 根据权利要求 22或 23所述的 STA, 其特征在于, 24. The STA according to claim 22 or 23, characterized in that,
所述隧道状态机,还用于若所述第二 CAPWAP隧道删除,则从所述非运 行状态或所述运行状态切换至闲置状态。 The tunnel state machine is also used to switch from the non-running state or the running state to an idle state if the second CAPWAP tunnel is deleted.
25、 一种无线终端站点 WTP, 其特征在于, 包括: 25. A wireless terminal site WTP, characterized by including:
WTP 隧道建立单元, 用于与站点 STA 建立第二控制无线接入点协议 CAPWAP隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP隧道和所述第二 CAPWAP隧道与所述 STA进行交互; WTP tunnel establishment unit, used to establish a second control wireless access point protocol CAPWAP tunnel with the site STA, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP between the WTP and the AC The tunnel interacts with the STA;
WTP处理单元, 用于若确定所述第一 CAPWAP隧道异常, 则使 WTP 发送单元向所述 STA发送隧道变更消息, 使得所述 STA不再通过所述第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行交 互,所述第一 CAPWAP隧道为所述第一 WTP与所述 AC之间原有的 CAPWAP 隧道。 The WTP processing unit is configured to, if it is determined that the first CAPWAP tunnel is abnormal, cause the WTP sending unit to send a tunnel change message to the STA, so that the STA no longer passes the first CAPWAP tunnel. The CAPWAP tunnel and the second CAPWAP tunnel send CAPWAP messages to interact with the AC. The first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
26、 根据权利要求 25所述的 WTP, 其特征在于, 还包括: 26. The WTP according to claim 25, further comprising:
WTP接收单元, 用于若接收所述 AC发生的重置请求消息, 则使得所述 The WTP receiving unit is configured to, if receiving the reset request message generated by the AC, cause the
WTP发送单元向所述 STA发送隧道变更消息, 所述隧道变更消息中包含所 述第一 CAPWAP隧道异常的原因; 或者, The WTP sending unit sends a tunnel change message to the STA, and the tunnel change message contains the reason why the first CAPWAP tunnel is abnormal; or,
所述 WTP处理单元,还用于若获知数据报文传输层安全协议 DTLS协议 栈异常, 则使得所述 WTP发送单元向所述 STA发送所述隧道变更消息, 所 述隧道变更消息中包含所述第一 CAPWAP隧道异常的原因。 The WTP processing unit is also configured to cause the WTP sending unit to send the tunnel change message to the STA if it is informed that the data packet transport layer security protocol DTLS protocol stack is abnormal, and the tunnel change message contains the The reason for the abnormality of the first CAPWAP tunnel.
27、 根据权利要求 25或 26所述的 WTP, 其特征在于, 27. The WTP according to claim 25 or 26, characterized in that,
所述 WTP接收单元, 还用于接收所述 STA发送的询问消息, 所述询问 消息用于询问所述第一 CAPWAP隧道是否恢复正常; The WTP receiving unit is also used to receive an inquiry message sent by the STA. The inquiry message is used to inquire whether the first CAPWAP tunnel has returned to normal;
所述 WTP处理单元, 还用于若确定所述第一 CAPWAP隧道正常, 则使 得所述 WTP发送单元向所述 STA返回询问消息响应; The WTP processing unit is also configured to cause the WTP sending unit to return a query message response to the STA if it is determined that the first CAPWAP tunnel is normal;
所述 WTP处理单元, 还用于若确定所述第一 CAPWAP隧道异常, 则使 得所述 WTP发送单元不向所述 STA返回询问消息响应。 The WTP processing unit is also configured to cause the WTP sending unit not to return a query message response to the STA if it is determined that the first CAPWAP tunnel is abnormal.
28、 根据权利要求 25或 26所述的 WTP, 其特征在于, 28. The WTP according to claim 25 or 26, characterized in that,
所述 WTP处理单元, 还用于若确定所述第一 CAPWAP隧道恢复正常, 则使得所述 WTP发送单元向所述 STA发送站点隧道就绪消息。 The WTP processing unit is also configured to cause the WTP sending unit to send a site tunnel ready message to the STA if it is determined that the first CAPWAP tunnel returns to normal.
29、 根据权利要求 25~28中任一项所述的 WTP, 其特征在于, 还包括: WTP心跳包传输单元, 用于与所述 STA维护心跳包传输, 若所述第二 29. The WTP according to any one of claims 25 to 28, further comprising: a WTP heartbeat packet transmission unit for maintaining heartbeat packet transmission with the STA. If the second
CAPWAP隧道异常, 则心跳包发送失败。 If the CAPWAP tunnel is abnormal, the heartbeat packet fails to be sent.
30、 根据权利要求 25~29中任一项所述的 WTP, 其特征在于, 还包括: 隧道状态机, 用于若从运行 RUN状态切换到重置 RESET状态或数据报 文传输层安全协议链接切断 DTLS TD状态, 则使得所述 WTP发送单元向所 述 STA发送隧道变更消息,其中,所述隧道状态机为 RUN状态时,所述 WTP 转发或接收所述 AC或所述 STA发送的所述 CAPWAP消息; 所述隧道状态 机为所述 RESET状态和所述 DTLS TD状态时, 所述 WTP确定所述第一 CAPWAP隧道异常, 不再转发所述 AC或所述 STA发送的所述 CAPWAP消 30. The WTP according to any one of claims 25 to 29, further comprising: a tunnel state machine, used to switch from the running RUN state to the reset RESET state or the data message transport layer security protocol link Cutting off the DTLS TD state causes the WTP sending unit to send a tunnel change message to the STA. When the tunnel state machine is in the RUN state, the WTP forwards or receives the AC or the STA. CAPWAP message; When the tunnel state machine is in the RESET state and the DTLS TD state, the WTP determines that the first CAPWAP tunnel is abnormal and no longer forwards the CAPWAP message sent by the AC or the STA.
31、 一种站点 STA, 其特征在于, 包括: 31. A site STA, which is characterized by including:
STA处理器, 用于与无线终端站点 WTP建立第二控制无线接入点协议 CAPWAP隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP隧道和所述第二 CAPWAP隧道与所述 STA进行交互; The STA processor is configured to establish a second control wireless access point protocol CAPWAP tunnel with the wireless terminal station WTP, so that the access control point AC passes the first CAPWAP tunnel between the WTP and the AC and the second The CAPWAP tunnel interacts with the STA;
所述 STA处理器, 还用于若 STA接收器接收所述 WTP发送的隧道变更 消息, 则确定所述第一 CAPWAP隧道异常; 使得 STA发送器不再通过所述 第一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进 行交互, 所述第一 CAPWAP隧道为所述第一 WTP与所述 AC之间原有的 CAPWAP隧道。 The STA processor is also configured to determine that the first CAPWAP tunnel is abnormal if the STA receiver receives the tunnel change message sent by the WTP; so that the STA sender no longer passes the first CAPWAP tunnel and the second CAPWAP The tunnel sends CAPWAP messages to interact with the AC, and the first CAPWAP tunnel is the original CAPWAP tunnel between the first WTP and the AC.
32、 根据权利要求 31所述的 STA, 其特征在于, 32. The STA according to claim 31, characterized in that,
所述 STA发送器, 用于在第一预设时间段后, 向所述 WTP发送询问消 息, 所述询问消息用于询问所述第一 CAPWAP隧道是否恢复正常。 The STA transmitter is configured to send an inquiry message to the WTP after a first preset time period, and the inquiry message is used to inquire whether the first CAPWAP tunnel returns to normal.
33、 根据权利要求 32所述的 STA, 其特征在于, 还包括: 33. The STA according to claim 32, further comprising:
定时器, 用于根据所述 STA接收器接收所述隧道变更消息中包含的所述 第一 CAPWAP隧道异常的原因, 设定所述第一预设时间段。 A timer, configured to set the first preset time period according to the reason why the first CAPWAP tunnel is abnormal when the STA receiver receives the tunnel change message.
34、 根据权利要求 32或 33所述的 STA, 其特征在于, 34. The STA according to claim 32 or 33, characterized in that,
所述 STA接收器, 还用于接收所述 WTP发送的询问消息响应, 根据所 述查询响应消息确定所述第一 CAPWAP隧道恢复正常。 The STA receiver is also configured to receive a query message response sent by the WTP, and determine according to the query response message that the first CAPWAP tunnel returns to normal.
35、 根据权利要求 31所述的 STA, 其特征在于, 35. The STA according to claim 31, characterized in that,
所述 STA接收器, 还用于接收所述 WTP发送的站点隧道就绪消息; 所述 STA 处理器, 还用于根据所述站点隧道就绪消息确定所述第一 The STA receiver is also configured to receive the site tunnel ready message sent by the WTP; the STA processor is also configured to determine the first site tunnel ready message according to the site tunnel ready message.
CAPWAP隧道恢复正常。 The CAPWAP tunnel returns to normal.
36、 根据权利要求 31~35中任一项所述的 STA, 其特征在于, 所述 STA处理器, 还用于与所述 WTP维护心跳包传输, 若在第二预设 时间段内未接收到所述 WTP发送的心跳包, 确定所述第二 CAPWAP隧道异 常。 36. The STA according to any one of claims 31 to 35, characterized in that the STA processor is also used to maintain heartbeat packet transmission with the WTP. If it is not received within the second preset time period, Upon receiving the heartbeat packet sent by the WTP, it is determined that the second CAPWAP tunnel is abnormal.
37、 根据权利要求 31~36中任一项所述的 STA, 其特征在于, 所述 STA处理器,还用于若处于与所述 WTP建立第二 CAPWAP隧道的 状态, 则切换到运行状态; 若确定所述第一 CAPWAP隧道或所述第二 CAPWAP隧道异常之后, 则 从所述运行状态切换至非运行状态; 37. The STA according to any one of claims 31 to 36, wherein the STA processor is further configured to switch to a running state if it is in a state of establishing a second CAPWAP tunnel with the WTP; If it is determined that the first CAPWAP tunnel or the second CAPWAP tunnel is abnormal, switch from the running state to the non-running state;
若确定所述第一 CAPWAP隧道异常的时长超过所述第一预设时间段,则 从所述非运行状态状态切换至闲置状态,其中,为所述运行状态时,所述 STA 发送或接收所述 WTP转发的所述 CAPWAP消息; 为所述非运行状态时, 所 述 STA确定所述第一 CAPWAP隧道异常或所述第二 CAPWAP隧道异常, 不发送所述 CAPWAP消息与所述 AC进行交互; 为所述闲置状态时, 所述 STA确定需建立所述第一 CAPWAP隧道或所述第二 CAPWAP隧道,不发送 所述 CAPWAP消息与所述 AC进行交互。 If it is determined that the abnormal duration of the first CAPWAP tunnel exceeds the first preset time period, the state is switched from the non-running state to the idle state, wherein in the running state, the STA sends or receives all The CAPWAP message forwarded by the WTP; When in the non-running state, the STA determines that the first CAPWAP tunnel is abnormal or the second CAPWAP tunnel is abnormal, and does not send the CAPWAP message to interact with the AC; When in the idle state, the STA determines that the first CAPWAP tunnel or the second CAPWAP tunnel needs to be established, and does not send the CAPWAP message to interact with the AC.
38、 根据权利要求 37所述的 STA, 其特征在于, 38. The STA according to claim 37, characterized in that,
所述 STA处理器, 还用于确定所述第一 CAPWAP隧道恢复正常之后, 从所述非运行态切换至所述运行状态。 The STA processor is also configured to switch from the non-running state to the running state after determining that the first CAPWAP tunnel returns to normal.
39、 根据权利要求 37或 38所述的 STA, 其特征在于, 39. The STA according to claim 37 or 38, characterized in that,
所述 STA处理器, 还用于若所述第二 CAPWAP隧道删除, 则从所述非 运行状态或所述运行状态切换至闲置状态。 The STA processor is also configured to switch from the non-running state or the running state to an idle state if the second CAPWAP tunnel is deleted.
40、 一种无线终端站点 WTP, 其特征在于, 包括: 40. A wireless terminal site WTP, characterized by including:
WTP处理器, 用于与站点 STA建立第二控制无线接入点协议 CAPWAP 隧道, 以使接入控制点 AC通过所述 WTP与所述 AC之间的第一 CAPWAP 隧道和所述第二 CAPWAP隧道与所述 STA进行交互; WTP processor, configured to establish a second control wireless access point protocol CAPWAP tunnel with the site STA, so that the access control point AC passes the first CAPWAP tunnel and the second CAPWAP tunnel between the WTP and the AC Interact with the STA;
所述 WTP 处理器, 还用于若确定所述第一 CAPWAP 隧道异常, 则使 The WTP processor is also configured to: if it is determined that the first CAPWAP tunnel is abnormal,
WTP发送器向所述 STA发送隧道变更消息, 使得所述 STA不再通过所述第 一 CAPWAP隧道和第二 CAPWAP隧道发送 CAPWAP消息与所述 AC进行 交互, 所述第一 CAPWAP 隧道为所述第一 WTP 与所述 AC 之间原有的 CAPWAP隧道。 The WTP sender sends a tunnel change message to the STA, so that the STA no longer sends CAPWAP messages to interact with the AC through the first CAPWAP tunnel and the second CAPWAP tunnel, and the first CAPWAP tunnel is the third CAPWAP tunnel. An existing CAPWAP tunnel between the WTP and the AC.
41、 根据权利要求 40所述的 WTP, 其特征在于, 还包括: 41. The WTP according to claim 40, further comprising:
WTP接收器, 用于若接收所述 AC 发生的重置请求消息, 则使得所述 WTP发送器向所述 STA发送隧道变更消息, 所述隧道变更消息中包含所述 第一 CAPWAP隧道异常的原因; 或者, The WTP receiver is configured to, upon receiving the reset request message generated by the AC, cause the WTP sender to send a tunnel change message to the STA, where the tunnel change message contains the reason for the abnormality of the first CAPWAP tunnel. ; or,
所述 WTP处理器,还用于若获知数据报文传输层安全协议 DTLS协议栈 异常, 则使得所述 WTP发送器向所述 STA发送所述隧道变更消息, 所述隧 道变更消息中包含所述第一 CAPWAP隧道异常的原因。 The WTP processor is also configured to cause the WTP sender to send the tunnel change message to the STA if it is informed that the data packet transport layer security protocol DTLS protocol stack is abnormal. The channel change message contains the reason why the first CAPWAP tunnel is abnormal.
42、 根据权利要求 40或 41所述的 WTP, 其特征在于, 42. The WTP according to claim 40 or 41, characterized in that,
所述 WTP接收器, 还用于接收所述 STA发送的询问消息, 所述询问消 息用于询问所述第一 CAPWAP隧道是否恢复正常; The WTP receiver is also used to receive an inquiry message sent by the STA. The inquiry message is used to inquire whether the first CAPWAP tunnel has returned to normal;
所述 WTP处理器, 还用于若确定所述第一 CAPWAP隧道正常, 则使得 所述 WTP发送器向所述 STA返回询问消息响应; The WTP processor is also configured to cause the WTP sender to return a query message response to the STA if it is determined that the first CAPWAP tunnel is normal;
所述 WTP处理器, 还用于若确定所述第一 CAPWAP隧道异常, 则使得 所述 WTP发送器不向所述 STA返回询问消息响应。 The WTP processor is also configured to cause the WTP sender not to return a query message response to the STA if it is determined that the first CAPWAP tunnel is abnormal.
43、 根据权利要求 40或 41所述的 WTP, 其特征在于, 43. The WTP according to claim 40 or 41, characterized in that,
所述 WTP处理器, 还用于若确定所述第一 CAPWAP隧道恢复正常, 则 使得所述 WTP发送器向所述 STA发送站点隧道就绪消息。 The WTP processor is also configured to cause the WTP sender to send a site tunnel ready message to the STA if it is determined that the first CAPWAP tunnel returns to normal.
44、 根据权利要求 40~43中任一项所述的 WTP, 其特征在于, 44. The WTP according to any one of claims 40 to 43, characterized in that,
所述 WTP 处理器, 还用于与所述 STA 维护心跳包传输, 若所述第二 CAPWAP隧道异常, 则心跳包发送失败。 The WTP processor is also used to maintain heartbeat packet transmission with the STA. If the second CAPWAP tunnel is abnormal, the heartbeat packet transmission fails.
45、 根据权利要求 40~44中任一项所述的 WTP, 其特征在于, 45. The WTP according to any one of claims 40 to 44, characterized in that,
所述 WTP处理器, 还用于隧道状态机的状态若从运行 RUN状态切换到 重置 RESET状态或数据报文传输层安全协议链接切断 DTLS TD状态, 则使 得所述 WTP发送器向所述 STA发送隧道变更消息, 其中, 所述隧道状态机 为 RUN状态时, 所述 WTP转发或接收所述 AC或所述 STA发送的所述 CAPWAP消息;所述隧道状态机为所述 RESET状态和所述 DTLS TD状态时, 所述 WTP确定所述第一 CAPWAP隧道异常, 不再转发所述 AC或所述 STA 发送的所述 CAPWAP消息。 The WTP processor is also used to cause the WTP sender to send a message to the STA if the status of the tunnel state machine is switched from the RUN state to the RESET state or the data packet transport layer security protocol link is cut off from the DTLS TD state. Send a tunnel change message, wherein when the tunnel state machine is in the RUN state, the WTP forwards or receives the CAPWAP message sent by the AC or the STA; the tunnel state machine is in the RESET state and the When the DTLS TD state is reached, the WTP determines that the first CAPWAP tunnel is abnormal and no longer forwards the CAPWAP message sent by the AC or the STA.
46、 一种系统, 其特征在于, 包括: 46. A system characterized by including:
权利要求 16~24中任一项所述的站点 STA; The site STA described in any one of claims 16 to 24;
权利要求 25~30中任一项所述的无线终端站点 WTP。 The wireless terminal station WTP according to any one of claims 25 to 30.
47、 一种系统, 其特征在于, 包括: 47. A system characterized by including:
权利要求 31~39中任一项所述的站点 STA; The site STA described in any one of claims 31 to 39;
权利要求 40~45中任一项所述的无线终端站点 WTP。 The wireless terminal station WTP according to any one of claims 40 to 45.
PCT/CN2013/085145 2013-10-12 2013-10-12 Tunnel status processing method, device and system WO2015051552A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380076339.3A CN105191485B (en) 2013-10-12 2013-10-12 Tunnel state processing method, apparatus and system
PCT/CN2013/085145 WO2015051552A1 (en) 2013-10-12 2013-10-12 Tunnel status processing method, device and system

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 (1)

Publication Number Publication Date
WO2015051552A1 true WO2015051552A1 (en) 2015-04-16

Family

ID=52812471

Family Applications (1)

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

Country Status (2)

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

Citations (3)

* 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
CN102869059A (en) * 2011-07-05 2013-01-09 中兴通讯股份有限公司 Method for switching wireless access controllers (ACs) and wireless access point (AP)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101801002B (en) * 2010-02-05 2012-07-18 北京傲天动联技术有限公司 Control and service separated WLAN framework and configuration method thereof

Patent Citations (3)

* 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
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
CN105191485A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
JP6700475B2 (en) Terminal state switching method and device
CN104662814B (en) Method and apparatus for the autonomous cluster head selection for machine type communication (MTC)
KR101958859B1 (en) Mobile communication system and method for processing information to improve user experience thereof
US7623863B2 (en) System and method for adjusting connection parameters in a wireless network
KR102442932B1 (en) Link interrupt handling method and device
KR102293232B1 (en) Connection re-activation methods, access and mobility management functional entities, and user equipment
JP4980151B2 (en) MOBILE COMMUNICATION SYSTEM, PDIF, AND MONITORING MONITORING METHOD FOR MOBILE TERMINAL
JP2022553256A (en) DATA TRANSMISSION METHOD, COMMUNICATION DEVICE, AND COMMUNICATION SYSTEM
CN110636562A (en) Data processing method and equipment for wireless backhaul path
CN103857004A (en) Wireless network user access processing method, device and system
WO2010130133A1 (en) Method and system for station switching when wpi is implemented by access controller in convergent wlan
US11140597B2 (en) Method and apparatus for processing link establishment failure, and computer storage medium
JP5351333B2 (en) Station switching method and system when performing WPI with wireless terminal point in centralized WLAN
CN105407544B (en) Quick networking method based on WiFi module
CN111955050A (en) User device, control device, and communication control method
EP2432262B1 (en) Method and system for switching station in centralized wlan when wpi is performed by access controller
CN111937481A (en) User device, control device, and communication control method
WO2015018038A1 (en) Tunnel establishment method and device
KR101590018B1 (en) method for coupling femtocell with WiFi AP in SDN
WO2015051552A1 (en) Tunnel status processing method, device and system
US11252566B2 (en) Method and device for determining security algorithm, and computer storage medium
WO2018201752A1 (en) Network connection method and device
JPH11317747A (en) Radio lan system
WO2014087669A1 (en) Communication system, communication device, and method for controlling line selection
WO2015051554A1 (en) Tunnel establishment method, device and system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201380076339.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13895130

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13895130

Country of ref document: EP

Kind code of ref document: A1