CN108093441B - Switching method and device of access controller - Google Patents

Switching method and device of access controller Download PDF

Info

Publication number
CN108093441B
CN108093441B CN201711400120.0A CN201711400120A CN108093441B CN 108093441 B CN108093441 B CN 108093441B CN 201711400120 A CN201711400120 A CN 201711400120A CN 108093441 B CN108093441 B CN 108093441B
Authority
CN
China
Prior art keywords
local
target local
central
target
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711400120.0A
Other languages
Chinese (zh)
Other versions
CN108093441A (en
Inventor
曲翠芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711400120.0A priority Critical patent/CN108093441B/en
Publication of CN108093441A publication Critical patent/CN108093441A/en
Application granted granted Critical
Publication of CN108093441B publication Critical patent/CN108093441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/10Reselecting an access point controller

Abstract

The embodiment of the application provides a switching method and a switching device of an access controller, which are applied to a central AC, and the method comprises the following steps: when a connection request sent by the AP is received, connection with the AP is established, a target local AC capable of establishing connection with the AP is determined, address information of the target local AC is sent to the AP, when the target local AC is detected to be in a normal state, a notification message is sent to the AP, so that the AP sends a detection message to the target local AC at regular time according to the address information of the target local AC, and after a detection response message fed back by the target local AC is received, connection with a central AC is disconnected and connection with the target local AC is established. By applying the embodiment of the application, under the condition that the AP is switched to be connected with the local AC, the influence on the performance of the AP is reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided.

Description

Switching method and device of access controller
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for switching an access controller.
Background
Aiming at a Wireless Local Area Network (WLAN) which is composed of an Access Controller (AC for short) and an Access Point (AP for short), a layered AC architecture is provided for solving the high-speed link requirement between the AC and the AP. That is, the AC is divided into a central AC and a local AC. The central AC is responsible for the management of the entire WLAN, connecting with multiple local ACs. The local AC is responsible for the access of the AP and forwarding data traffic, and is connected with a plurality of APs.
In a hierarchical AC WLAN, the AP is connected to a local AC. When the local AC is abnormal, the connection between the AP and the local AC is interrupted. In order to ensure that the AP continues to provide wireless service to the outside, the AP establishes a connection with the central AC. And in order to reduce the pressure of the central AC, the central AC issues the address of the local AC to the AP in the process of establishing the connection between the AP and the central AC. And the AP sends a detection message to the local AC at regular time according to the acquired address of the local AC.
And when the local AC returns to normal, the detection message is received, and then a detection response message is sent to the AP according to the detection message. And the AP receives the detection response message, determines that the local AC is recovered to be normal, establishes connection with the local AC, cuts off the connection with the central AC, and further releases the pressure of the central AC.
And in the process of switching the AP to be connected with the local AC, the AP continuously sends a detection message to the local AC. Not only the performance of the AP is influenced, but also the AP occupies too much network resources; in addition, in the process of restoring the local AC to normal, a large number of detection messages also cause certain impact on the local AC.
Disclosure of Invention
The application aims to provide a switching method and a switching device of an access controller, so that the influence on the performance of an AP is reduced and network resources occupied by the AP are reduced under the condition that the AP is switched to be connected with a local AC; and, avoid the impact to the local AC of the detection message that AP sends in the course that the local AC resumes to be normal. The specific technical scheme is as follows:
in a first aspect, the present application discloses a method for switching an AC, applied to a central AC, the method including:
when a connection request sent by an AP is received, connection is established with the AP;
determining a target local AC capable of establishing connection with the AP, and acquiring address information of the target local AC;
transmitting address information of the target local AC to the AP;
and when detecting that the target local AC is in a normal state, sending a notification message to the AP so that the AP sends a detection message to the target local AC at regular time according to the address information of the target local AC, and after receiving a detection response message fed back by the target local AC, disconnecting the central AC and establishing connection with the target local AC.
With reference to the first aspect, in a first possible implementation manner, the detecting whether the local AC returns to normal specifically includes:
the determining a target local AC connectable to the AP specifically includes:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, determining a preset local AC corresponding to the AP as a target local AC connectable to the AP.
With reference to the first aspect, in a second possible implementation manner, the sending a notification packet to the AP when it is detected that the target local AC is in a normal state specifically includes:
detecting whether the state of the target local AC is a Run state, wherein the Run state is a state used for indicating that the target local AC is connected with the central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the method further includes:
after the target local AC is connected with the central AC, sending a keep-alive message to the target local AC;
if the keep-alive response message fed back by the target local AC according to the keep-alive message is not received after the preset keep-alive duration is overtime, the connection with the target local AC is cut off;
setting the state of the target local AC to an Idle Idle state; the Idle state is used to indicate a state in which the target local AC is not connected to the central AC.
With reference to the first aspect And the first, second, And third possible implementation manners of the first aspect, in a fourth possible implementation manner, connections are established between the AP And the target local AC, between the AP And the central AC, And between the target local AC And the central AC through a Control And Provisioning of Wireless Access Point (CAPWAP) tunnel.
In a second aspect, the present application discloses a switching device for an AC, applied to a central AC, the device comprising:
the device comprises an establishing unit, a sending unit and a receiving unit, wherein the establishing unit is used for establishing connection with an AP when receiving a connection request sent by the AP;
a determining unit, configured to determine a target local AC that may establish a connection with the AP, and acquire address information of the target local AC;
a first transmitting unit configured to transmit address information of the target local AC to the AP;
and the second sending unit is used for sending a notification message to the AP when the target local AC is detected to be in a normal state, so that the AP sends a detection message to the target local AC at regular time according to the address information of the target local AC, and after receiving a detection response message fed back by the target local AC, the AP disconnects the connection with the central AC and establishes the connection with the target local AC.
With reference to the second aspect, in a first possible implementation manner, the determining unit is specifically configured to:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or, determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, determining a preset local AC corresponding to the AP as a target local AC connectable to the AP.
With reference to the second aspect, in a second possible implementation manner, the second sending unit is specifically configured to:
detecting whether the state of the target local AC is a Run state, wherein the Run state is a state used for indicating that the target local AC is connected with the central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the apparatus further includes:
a third sending unit, configured to send a keep-alive packet to the target local AC after the target local AC establishes a connection with the central AC;
a receiving unit, configured to cut off a connection with the target local AC if a keep-alive response packet fed back by the target local AC according to the keep-alive packet is not received after a predetermined keep-alive duration is overtime;
a setting unit configured to set a state of the target local AC to an Idle state; the Idle state is used to indicate a state in which the target local AC is not connected to the central AC.
With reference to the second aspect, and the first, second, and third possible implementation manners of the second aspect, in a fourth possible implementation manner, connections are established between the AP and the target local AC, between the AP and the central AC, and between the target local AC and the central AC through a CAPWAP tunnel.
In a third aspect, the present application discloses an AC comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to cause a method of switching the AC described above to be implemented by the machine-executable instructions.
In a fourth aspect, the present application discloses a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of switching an AC described above.
In the method and the device for switching the AC, after the AP receives the address information of the local AC sent by the central AC, the AP does not send the detection message. And after the AP receives the notification message sent by the central AC, the AP sends a detection message at regular time. And the notification message is sent when the central AC detects that the local AC which can be connected with the AP is in a normal state.
Therefore, the probe message is sent by the AP when the local AC has recovered to normal. Because the local AC is recovered to normal, the local AC can immediately respond to the detection message and send the detection response message to the AP. This allows the AP to disconnect from the central AC and thereby establish a connection with the local AC.
Therefore, under the condition that the AP is ensured to be switched to be connected with the local AC, the number of detection messages sent by the AP is reduced, the influence on the performance of the AP is further reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided. Of course, it is not necessary for any product or method of the present application to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an AC switching method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a networking provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an AC switching device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an AC provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In a hierarchical AC network, a central AC, at least one local AC, and at least one AP are included. In the case where the local AC is normal, the central AC is connected to the local AC, and the local AC is connected to the AP.
After the central AC is connected with the local AC, the central AC sends keep-alive messages to the local AC at regular time and starts a keep-alive timer. If the local AC is normal, the local AC feeds back a keep-alive response message aiming at the keep-alive message to the central AC. And if the local AC is abnormal, the local AC does not feed back the keep-alive response message aiming at the keep-alive message to the central AC. Under the condition that the local AC is abnormal, the local AC cannot feed back the keep-alive response message to the central AC, and the central AC still cannot receive the keep-alive response message sent by the local AC after the keep-alive timer is overtime. For the central AC, if the keep-alive response message sent by the local AC is still not received after the keep-alive timer is overtime, the local AC is determined to be abnormal, and the connection with the local AC is cut off.
After the local AC is connected with the AP, the AP sends a keep-alive message to the local AC at regular time and starts a keep-alive timer. And if the local AC is normal, the local AC feeds back a keep-alive response message aiming at the keep-alive message to the AP. And if the local AC is abnormal, the local AC does not feed back the keep-alive response message aiming at the keep-alive message to the AP. Under the condition that the local AC is abnormal, the local AC cannot feed back the keep-alive response message to the AP, and the AP still cannot receive the keep-alive response message sent by the local AC after the keep-alive timer is overtime. For the AP, if the keep-alive response message sent by the local AC is still not received after the keep-alive timer is overtime, the fact that the local AC is abnormal is determined, and connection between the AP and the local AC is cut off.
And when the central AC receives the connection request sent by the AP, determining a local AC capable of establishing connection with the AP, and sending the address information of the local AC to the AP.
And the AP sends a detection message to the local AC at regular time according to the address information of the local AC. If the local AC is abnormal, the local AC does not send a detection response message to the AP according to the detection message. And sending a detection response message to the AP after the local AC returns to normal. And the AP receives the detection response message, establishes connection with the local AC and cuts off the connection with the central AC.
And in the process that the AP is switched back to be connected with the local AC again, the AP continuously sends detection messages to the local AC. Not only the performance of the AP is influenced, but also the AP occupies too much network resources; in addition, in the process of restoring the local AC to normal, a large number of detection messages also cause certain impact on the local AC.
In order to reduce the influence on the AP performance and the network resources occupied by the AP under the condition of ensuring that the AP is switched back to be connected with the local AC; in addition, the impact of a detection message sent by the AP on the local AC in the process of recovering the local AC to normal is avoided.
In the method, after receiving the address information of the local AC sent by the central AC, the AP does not send the detection message. And after receiving the notification message sent by the central AC, the AP sends a detection message at regular time so as to establish connection with the local AC. The notification message is sent when the central AC detects that the local AC is in a normal state. Under the condition of ensuring that the AP is switched to be connected with the local AC, the number of detection messages sent by the AP is reduced, the influence on the performance of the AP is further reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided.
Referring to fig. 1, fig. 1 is a schematic flowchart of an AC switching method provided in an embodiment of the present application, and the method is applied to a central AC, and the method includes:
step 101: and when receiving a connection request sent by the AP, establishing connection with the AP.
When the AP does not establish a connection with any AC, for example, after the connection between the AP and the local AC is disconnected, or when the AP first accesses the wlan, in order to ensure that the AP provides a wireless service to the outside, the AP acquires address information of the central AC from a Dynamic Host Configuration Protocol (DHCP) server.
And the AP sends a connection request to the central AC according to the address information of the central AC. And the central AC establishes connection with the AP according to the connection request.
Step 102: a target local AC which can establish connection with the AP is determined, and address information of the target local AC is acquired.
And the central AC determines a target local AC capable of establishing connection with the AP in the process of establishing connection with the AP according to the received connection request.
In one embodiment, the central AC determines a target local AC connectable with the AP from among the local ACs connected to the central AC according to a load balancing policy.
In another embodiment, the central AC determines a local AC that last established a connection with the AP, and determines the determined local AC as a target local AC that can be connected with the AP.
For example, the AP1 establishes a connection with the local AC1, and the central AC1 records the corresponding connection of the AP1 with the local AC 1. When the connection between the AP1 and the local AC1 is cut, the AP1 sends a connection request 1 to the central AC 1. After receiving the connection request 1, the central AC1 determines that the local AC1 is the local AC that has established the connection with the AP1 last time according to the recorded corresponding connection relationship between the AP1 and the local AC1, and takes the local AC1 as the target local AC that can be connected with the AP 1.
In another embodiment, the central AC randomly selects one local AC from the local ACs to which it is connected, and determines the selected AC as a target local AC connectable to the AP.
In another embodiment, the user may also set a local AC corresponding to the AP in the central AC in advance. After the central AC receives the connection request sent by the AP, the central AC determines a preset local AC corresponding to the AP as a target local AC which can be connected with the AP.
After determining the target local AC, the central AC acquires address information of the target local AC.
Step 103: address information of the target local AC is transmitted to the AP.
After receiving the address information of the local AC, the AP may temporarily store only the address information of the local AC without sending the probe packet to the local AC.
Step 104: and when detecting that the target local AC is in a normal state, sending a notification message to the AP.
The notification message may be a Wireless Transmission Protocol (WTP) EVENT (EVENT) message. The notification message is used for notifying the AP that the target local AC is in a normal state.
In one embodiment of the present application, to facilitate determining whether the target local AC is in a normal state, a state machine may be provided in the central AC. Before the connection between the central AC and the target local AC is established, or after the connection between the central AC and the target local AC is interrupted due to the abnormality of the target local AC, the central AC sets the state of the target local AC to an Idle (Idle) state. The Idle status is used to indicate a status in which the target local AC has not established a connection with the central AC.
After the central AC is connected with the local AC, or the target local AC is restored to be normal, the central AC sets the state of the target local AC to be a running (Run) state after the central AC is connected with the local AC again. The Run state is a state indicating that the target local AC has established a connection with the central AC.
In this embodiment of the present application, in order to facilitate management of the state machine of the local AC, the central AC may determine the state of the target local AC by sending the keep-alive packet to the target local AC.
Specifically, the central AC sends a keep-alive message to the target local AC. And if the center AC does not receive the keep-alive response message which is fed back by the target local AC and aims at the keep-alive message after the preset keep-alive duration is overtime, determining that the target local AC is abnormal. The center AC cuts off the connection with the target local AC and sets the target local AC to an Idle state. And when the target local AC is reestablished to be connected with the central AC, the central AC determines that the target local AC is recovered to be normal, and sets the target local AC to be in a Run state. Here, the predetermined keep-alive time period is a time period of the keep-alive timer.
According to the state machine, after the central AC sends the address information of the target local AC to the AP, whether the state of the target local AC is a Run state or not is detected in real time. And if the central AC detects that the state of the target local AC is a Run state, determining that the target local AC is a normal state, and sending a notification message to the AP. And if the central AC detects that the state of the target local AC is the Idle state, determining that the target local AC is the abnormal state, and continuously detecting whether the state of the target local AC is the Run state.
And after receiving the notification message, the AP determines that the target local AC is in a normal state. And the AP sends a detection message to the target local AC at regular time according to the address information of the target local AC. At this time, the target local AC is in a normal state, and the target local AC may immediately respond to the probe message and send the probe response message to the AP. And after receiving the detection response message fed back by the target local AC, the AP disconnects the connection with the central AC and establishes the connection with the target local AC.
In an embodiment of the present application, the AP disconnects from the central AC and establishes a connection with the target local AC, which may specifically be:
the AP establishes connection with the target local AC, the connection between the AP and the target local AC is used as standby connection, and the connection between the central AC and the AP is used as main connection. After that, the AP disconnects the connection with the central AC and changes the connection with the target local AC to the master connection. In this way, disconnection from the central AC and establishment of a connection with the target local AC is achieved.
In the embodiment of the application, after receiving the address information of the local AC sent by the central AC, the AP does not send the detection message first. And after the AP receives the notification message sent by the central AC, the AP sends a detection message at regular time. And the notification message is sent when the central AC detects that the local AC which can be connected with the AP is in a normal state.
Therefore, the probe message is sent by the AP when the local AC has recovered to normal. Because the local AC is recovered to normal, the local AC can immediately respond to the detection message and send the detection response message to the AP. This allows the AP to disconnect from the central AC and establish a connection with the local AC.
Therefore, under the condition that the AP is ensured to be switched to be connected with the local AC, the number of detection messages sent by the AP is reduced, the influence on the performance of the AP is further reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided.
The following describes a switching method of the AC provided in the embodiment of the present application with reference to a networking diagram shown in fig. 2. In the networking shown in fig. 2, the method includes: central AC200, local AC201, local AC202, and AP 203. The central AC200 is provided with a state machine for the local AC.
1. The local AC201 acquires the address information of the center AC200 from the DHCP server, and transmits a connection request 1 to the center AC200 according to the acquired address information of the center AC 200. The local AC202 acquires the address information of the center AC200 from the DHCP server, and transmits a connection request 2 to the center AC200 according to the acquired address information of the center AC 200.
2. The central AC receives the connection request 1, establishes a connection with the local AC201 according to the connection request 1, and sets the local AC201 to Run state. The central AC receives the connection request 2, establishes a connection with the local AC202 according to the connection request 2, and sets the local AC202 to Run state.
The connection between the local AC201 and the central AC200, and the connection between the local AC202 and the central AC200 may be realized by multiplexing a CAPWAP tunnel. That is, a connection is established between the local AC and the central AC through the CAPWAP tunnel.
3. The central AC200 sends keep-alive messages 1 to the local AC201 at regular times. The central AC200 periodically sends keep-alive messages 2 to the local AC 202.
If the keep-alive response message 1 aiming at the keep-alive message 1 fed back by the local AC201 is received within the preset keep-alive time length, the central AC200 keeps the state of the local AC201 to be a Run state. If the keep-alive response message 1 aiming at the keep-alive message 1 fed back by the local AC201 is not received after the preset keep-alive duration is overtime, the central AC200 cuts off the connection with the local AC201, the local AC201 and the AP connected with the local AC201 are all kicked off, and the state of the local AC201 is in an Idle state.
If the keep-alive response message 2 for the keep-alive message 2 fed back by the local AC202 is received within the predetermined keep-alive duration, the central AC200 keeps the state of the local AC202 in a Run state. If the keep-alive response message 2 for the keep-alive message 1 fed back by the local AC202 is not received after the preset keep-alive duration is over time, the central AC200 cuts off the connection with the local AC202, the local AC202 and the AP connected with the local AC202 are all kicked off, and the state of the local AC202 is in an Idle state.
4. The AP203 acquires the address information of the center AC200 from the DHCP server, and transmits a connection request 3 to the center AC200 according to the acquired address information of the center AC 200.
It is understood that when the AP203 does not establish a connection with any AC, or when the AP203 first accesses the wlan, in order to ensure that the AP203 provides a wireless service to the outside, the AP203 acquires address information of the central AC200 from the DHCP server.
5. The center AC200 receives the connection request 3, and establishes connection with the AP203 according to the connection request 3.
The AP203 has its connection with the central AC200 as the main connection.
Wherein, the connection is established between the central AC200 and the AP203 through a CAPWAP tunnel.
6. After the central AC200 receives the connection request 3, a target local AC that can establish a connection with the AP203 is determined. For example, the central AC200 determines the target local AC to be the local AC 201. The center AC200 acquires the address information of the local AC201, and transmits the address information of the local AC201 to the AP 203.
The central AC200 may send the address information of the local AC201 to the AP203 during the process of establishing a connection with the AP203, for example, during the process of configuring a connection.
The AP203 receives the address information of the local AC201, stores the address information of the local AC201, and does not perform any other processing.
7. The center AC200 detects in real time whether the state of the local AC201 is Run state. When detecting that the state of the AC is a Run state, a notification message 1 is sent to the AP 203.
The notification message 1 is used to notify the AP203 that the local AC201 is in a normal state.
8. After receiving the notification message 1, the AP203 regularly transmits a probe message 1 to the local AC 201.
9. At this time, the local AC201 is in a normal state, and the local AC201 receives the probe message 1 and immediately replies a probe response message 1 for the probe message 1 to the AP 203.
10. After receiving the probe response message 1, the AP203 establishes a connection with the local AC 201. The AP203 takes the connection as a backup connection. After that, the AP203 disconnects the connection with the center AC200, and the connection with the local AC201 is raised to the master connection, thereby switching the AP203 from the connection center AC200 to the connection local AC 201.
Wherein, the local AC201 and the AP203 establish connection through a CAPWAP tunnel.
11. The AP203 periodically sends keep-alive messages 2 to the local AC 201.
If the keep-alive response message 3 for the keep-alive message 3 fed back by the local AC201 is received within the predetermined keep-alive duration, the AP203 does not perform other processing. If the keep-alive response message 3 for the keep-alive message 3 fed back by the local AC201 is not received after the predetermined keep-alive duration is over time, the AP203 cuts off the connection with the local AC201, and re-executes the step 4-11.
Correspondingly, the embodiment of the application also provides an AC switching device corresponding to the AC switching method embodiment. Referring to fig. 3, fig. 3 is a schematic structural diagram of an AC switching apparatus according to an embodiment of the present application, applied to a central AC, the apparatus including:
an establishing unit 301, configured to establish a connection with an AP when receiving a connection request sent by the AP;
a determining unit 302, configured to determine a target local AC that can establish a connection with an AP, and acquire address information of the target local AC;
a first transmitting unit 303, configured to transmit address information of the target local AC to the AP;
a second sending unit 304, configured to send a notification message to the AP when it is detected that the target local AC is in a normal state, so that the AP sends a probe message to the target local AC at regular time according to the address information of the target local AC, and after receiving a probe response message fed back by the target local AC, disconnects the connection with the central AC, and establishes a connection with the target local AC.
In an embodiment of the present application, the determining unit 302 may specifically be configured to:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or, determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, a local AC corresponding to a preset AP is determined as a target local AC connectable to the AP.
In an embodiment of the present application, the second sending unit 304 may specifically be configured to:
detecting whether the state of the target local AC is a Run state, wherein the Run state is used for indicating that the target local AC is connected with the central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
In an embodiment of the present application, the AC switching device may further include:
a third sending unit (not shown in the figure), configured to send a keep-alive packet to the target local AC after the target local AC establishes a connection with the central AC;
a receiving unit (not shown in the figure), configured to cut off a connection with the target local AC if a keep-alive response message fed back by the target local AC according to the keep-alive message is not received after a predetermined keep-alive duration is overtime;
a setting unit (not shown in the figure) for setting the state of the target local AC to the Idle state; the Idle status is used to indicate a status in which the target local AC has not established a connection with the central AC.
In an embodiment of the present application, connections are established between the AP and the target local AC, between the AP and the central AC, and between the target local AC and the central AC through the CAPWAP tunnel.
In the embodiment of the application, after receiving the address information of the local AC sent by the central AC, the AP does not send the detection message. And after the AP receives the notification message sent by the central AC, the AP sends a detection message at regular time. And the notification message is sent when the central AC detects that the local AC which can be connected with the AP is in a normal state.
Therefore, the probe message is sent by the AP when the local AC has recovered to normal. Because the local AC is recovered to normal, the local AC can immediately respond to the detection message and send the detection response message to the AP. This allows the AP to disconnect from the central AC and establish a connection with the local AC.
Therefore, under the condition that the AP is ensured to be switched to be connected with the local AC, the number of detection messages sent by the AP is reduced, the influence on the performance of the AP is further reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided.
Correspondingly, corresponding to the switching method embodiment of the AC, the present application embodiment further provides an AC, as shown in fig. 4, including a processor 401 and a machine-readable storage medium 402, where the machine-readable storage medium 402 stores machine-executable instructions capable of being executed by the processor 401, and the processor 401 is caused by the machine-executable instructions to implement the switching method of the AC.
In addition, as shown in fig. 4, the AC may further include: a communication interface 403 and a communication bus 404; the processor 401, the machine-readable storage medium 402, and the communication interface 403 complete communication with each other through the communication bus 404, and the communication interface 403 is used for communication between the AC and other devices.
The processor 401 is caused by machine executable instructions to implement the switching method of AC described above. The AC switching method comprises the following steps:
when receiving a connection request sent by an AP, establishing connection with the AP;
determining a target local AC capable of establishing connection with the AP, and acquiring address information of the target local AC;
sending address information of a target local AC to the AP;
and when detecting that the target local AC is in a normal state, sending a notification message to the AP so that the AP sends a detection message to the target local AC at regular time according to the address information of the target local AC, and after receiving a detection response message fed back by the target local AC, disconnecting the central AC and establishing connection with the target local AC.
In an embodiment of the present application, determining a target local AC connectable to an AP may specifically include:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or, determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, a local AC corresponding to a preset AP is determined as a target local AC connectable to the AP.
In an embodiment of the present application, when it is detected that the target local AC is in a normal state, sending a notification message to the AP may specifically include:
detecting whether the state of a target local AC is a Run state, wherein the Run state is a state used for indicating that the target local AC is connected with a central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
In an embodiment of the present application, the AC switching method may further include:
after the target local AC is connected with the central AC, sending a keep-alive message to the target local AC;
if the keep-alive response message fed back by the target local AC according to the keep-alive message is not received after the preset keep-alive duration is overtime, the connection with the target local AC is cut off;
setting the state of the target local AC to an Idle Idle state; the Idle status is used to indicate a status in which the target local AC has not established a connection with the central AC.
In an embodiment of the present application, connections are established between the AP and the target local AC, between the AP and the central AC, and between the target local AC and the central AC through the CAPWAP tunnel.
In the embodiment of the application, after receiving the address information of the local AC sent by the central AC, the AP does not send the detection message. And after the AP receives the notification message sent by the central AC, the AP sends a detection message at regular time. And the notification message is sent when the central AC detects that the local AC which can be connected with the AP is in a normal state.
Therefore, the probe message is sent by the AP when the local AC has recovered to normal. Because the local AC is recovered to normal, the local AC can immediately respond to the detection message and send the detection response message to the AP. This allows the AP to disconnect from the central AC and establish a connection with the local AC.
Therefore, under the condition that the AP is ensured to be switched to be connected with the local AC, the number of detection messages sent by the AP is reduced, the influence on the performance of the AP is further reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided.
The communication bus 404 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 404 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The machine-readable storage medium 402 may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Additionally, the machine-readable storage medium 402 may also be at least one storage device located remotely from the aforementioned processor.
The Processor 401 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
Correspondingly, in correspondence with the switching method embodiment of the AC, the present application also provides a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the switching method of the AC. The AC switching method comprises the following steps:
when receiving a connection request sent by an AP, establishing connection with the AP;
determining a target local AC capable of establishing connection with the AP, and acquiring address information of the target local AC;
sending address information of a target local AC to the AP;
and when detecting that the target local AC is in a normal state, sending a notification message to the AP so that the AP sends a detection message to the target local AC at regular time according to the address information of the target local AC, and after receiving a detection response message fed back by the target local AC, disconnecting the central AC and establishing connection with the target local AC.
In an embodiment of the present application, determining a target local AC connectable to an AP may specifically include:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or, determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, a local AC corresponding to a preset AP is determined as a target local AC connectable to the AP.
In an embodiment of the present application, when it is detected that the target local AC is in a normal state, sending a notification message to the AP may specifically include:
detecting whether the state of a target local AC is a Run state, wherein the Run state is a state used for indicating that the target local AC is connected with a central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
In an embodiment of the present application, the AC switching method may further include:
after the target local AC is connected with the central AC, sending a keep-alive message to the target local AC;
if the keep-alive response message fed back by the target local AC according to the keep-alive message is not received after the preset keep-alive duration is overtime, the connection with the target local AC is cut off;
setting the state of the target local AC to an Idle Idle state; the Idle status is used to indicate a status in which the target local AC has not established a connection with the central AC.
In an embodiment of the present application, connections are established between the AP and the target local AC, between the AP and the central AC, and between the target local AC and the central AC through the CAPWAP tunnel.
In the embodiment of the application, after receiving the address information of the local AC sent by the central AC, the AP does not send the detection message. And after the AP receives the notification message sent by the central AC, the AP sends a detection message at regular time. And the notification message is sent when the central AC detects that the local AC which can be connected with the AP is in a normal state.
Therefore, the probe message is sent by the AP when the local AC has recovered to normal. Because the local AC is recovered to normal, the local AC can immediately respond to the detection message and send the detection response message to the AP. This allows the AP to disconnect from the central AC and establish a connection with the local AC.
Therefore, under the condition that the AP is ensured to be switched to be connected with the local AC, the number of detection messages sent by the AP is reduced, the influence on the performance of the AP is further reduced, and network resources occupied by the AP are reduced; and the impact of the detection message sent by the AP on the local AC in the process of restoring the local AC to normal is avoided.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the switching device of the AC, and the machine-readable storage medium, since they are substantially similar to the embodiments of the switching method of the AC, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the switching method of the AC.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. A switching method of an Access Controller (AC) is applied to a central AC, and comprises the following steps:
when a connection request sent by an Access Point (AP) is received, connection is established with the AP;
determining a target local AC capable of establishing connection with the AP, and acquiring address information of the target local AC;
sending address information of the target local AC to the AP, so that the AP stores the address information of the target local AC and does not send a detection message to the target local AC;
when detecting that the target local AC is in a normal state, sending a notification message to the AP so as to ensure that the AP determines that the target local AC is in the normal state when receiving the notification message, sending a detection message to the target local AC at regular time according to the stored address information of the target local AC, and disconnecting the target local AC from the central AC and establishing connection with the target local AC after receiving a detection response message fed back by the target local AC after receiving the detection message.
2. The method according to claim 1, wherein the determining a target local AC connectable to the AP specifically comprises:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or, determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, determining a preset local AC corresponding to the AP as a target local AC connectable to the AP.
3. The method according to claim 1, wherein the sending a notification packet to the AP when detecting that the target local AC is in a normal state specifically includes:
detecting whether the state of the target local AC is a Run state, wherein the Run state is a state used for indicating that the target local AC is connected with the central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
4. The method of claim 3, further comprising:
after the target local AC is connected with the central AC, sending a keep-alive message to the target local AC;
if the keep-alive response message fed back by the target local AC according to the keep-alive message is not received after the preset keep-alive duration is overtime, the connection with the target local AC is cut off;
setting the state of the target local AC to an Idle Idle state; the Idle state is used to indicate a state in which the target local AC is not connected to the central AC.
5. The method of any of claims 1-4, wherein the connection between the AP and the target local AC, between the AP and the central AC, and between the target local AC and the central AC is established via a wireless access point control and provisioning CAPWAP tunnel.
6. Switching device for an access controller, AC, applied to a central AC, the device comprising:
the device comprises an establishing unit, a sending unit and a receiving unit, wherein the establishing unit is used for establishing connection with an Access Point (AP) when receiving a connection request sent by the AP;
a determining unit, configured to determine a target local AC that may establish a connection with the AP, and acquire address information of the target local AC;
a first sending unit, configured to send address information of the target local AC to the AP, so that the AP stores the address information of the target local AC and does not send a probe packet to the target local AC;
a second sending unit, configured to send a notification message to the AP when detecting that the target local AC is in a normal state, so that the AP determines that the target local AC is in the normal state when receiving the notification message, and sends a probe message to the target local AC at a fixed time according to the stored address information of the target local AC, and after receiving a probe response message fed back by the target local AC after receiving the probe message, disconnects the connection with the central AC, and establishes a connection with the target local AC.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to:
determining a target local AC which can be connected with the AP from local ACs connected with the central AC according to a load balancing strategy;
or, determining a local AC which is connected with the AP last time, and determining the determined local AC as a target local AC which can be connected with the AP;
or randomly selecting a local AC from local ACs connected with the central AC, and determining the selected AC as a target local AC which can be connected with the AP;
or, determining a preset local AC corresponding to the AP as a target local AC connectable to the AP.
8. The apparatus of claim 6, wherein the second sending unit is specifically configured to:
detecting whether the state of the target local AC is a Run state, wherein the Run state is a state used for indicating that the target local AC is connected with the central AC;
if so, determining that the target local AC is in a normal state;
and sending a notification message to the AP.
9. The apparatus of claim 8, further comprising:
a third sending unit, configured to send a keep-alive packet to the target local AC after the target local AC establishes a connection with the central AC;
a receiving unit, configured to cut off a connection with the target local AC if a keep-alive response packet fed back by the target local AC according to the keep-alive packet is not received after a predetermined keep-alive duration is overtime;
a setting unit configured to set a state of the target local AC to an Idle state; the Idle state is used to indicate a state in which the target local AC is not connected to the central AC.
10. The apparatus of any of claims 6-9, wherein connections between the AP and the target local AC, between the AP and the central AC, and between the target local AC and the central AC are established via wireless access point control and provisioning CAPWAP tunnels.
CN201711400120.0A 2017-12-22 2017-12-22 Switching method and device of access controller Active CN108093441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711400120.0A CN108093441B (en) 2017-12-22 2017-12-22 Switching method and device of access controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711400120.0A CN108093441B (en) 2017-12-22 2017-12-22 Switching method and device of access controller

Publications (2)

Publication Number Publication Date
CN108093441A CN108093441A (en) 2018-05-29
CN108093441B true CN108093441B (en) 2021-03-02

Family

ID=62178369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711400120.0A Active CN108093441B (en) 2017-12-22 2017-12-22 Switching method and device of access controller

Country Status (1)

Country Link
CN (1) CN108093441B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108901082B (en) * 2018-06-20 2020-11-20 新华三技术有限公司 Access method and device
CN109348517B (en) * 2018-11-19 2021-03-12 新华三技术有限公司 Roaming tunnel configuration method and device
CN110087333B (en) * 2019-04-26 2020-12-04 新华三技术有限公司 Method, device, equipment and storage medium for preventing service interruption
CN111277959B (en) * 2020-01-16 2021-11-26 新华三技术有限公司成都分公司 Message forwarding method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252498A (en) * 2008-04-03 2008-08-27 杭州华三通信技术有限公司 Access point, access controller and communication method thereof
CN101951616A (en) * 2010-07-06 2011-01-19 北京星网锐捷网络技术有限公司 Switching method, system and device for wireless controller
CN102752172A (en) * 2012-07-13 2012-10-24 杭州华三通信技术有限公司 Control method and control device for switching AP (Access Point) between hot standby ACs (Access Controllers)
CN103533560A (en) * 2013-10-24 2014-01-22 迈普通信技术股份有限公司 Control method and system for switching between master access controller (AC) and standby AC
EP2124495B1 (en) * 2008-05-21 2015-01-28 Hangzhou H3C Technologies Co., Ltd. Method of balancing wireless load and access controller
CN105577444A (en) * 2015-12-30 2016-05-11 迈普通信技术股份有限公司 Wireless controller management method and wireless controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252498A (en) * 2008-04-03 2008-08-27 杭州华三通信技术有限公司 Access point, access controller and communication method thereof
EP2124495B1 (en) * 2008-05-21 2015-01-28 Hangzhou H3C Technologies Co., Ltd. Method of balancing wireless load and access controller
CN101951616A (en) * 2010-07-06 2011-01-19 北京星网锐捷网络技术有限公司 Switching method, system and device for wireless controller
CN102752172A (en) * 2012-07-13 2012-10-24 杭州华三通信技术有限公司 Control method and control device for switching AP (Access Point) between hot standby ACs (Access Controllers)
CN103533560A (en) * 2013-10-24 2014-01-22 迈普通信技术股份有限公司 Control method and system for switching between master access controller (AC) and standby AC
CN105577444A (en) * 2015-12-30 2016-05-11 迈普通信技术股份有限公司 Wireless controller management method and wireless controller

Also Published As

Publication number Publication date
CN108093441A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN108093441B (en) Switching method and device of access controller
US9560108B2 (en) Providing a mobile access point
US11337217B2 (en) Method, device and system for controlling air interface resource
CN100553213C (en) A kind of method and apparatus of WLAN abnormal quick restoring
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN111372272B (en) Abnormality recovery method and device for wireless bridging network
CN101815365B (en) Discovery, correlation and configuration method of wireless access controller
CN109040295B (en) Method and device for determining abnormal disconnection, terminal and storage medium
EP3761694B1 (en) Data transmission method and device
CN112367182B (en) Configuration method and device of disaster recovery main and standby equipment
CN107547301B (en) Method and device for switching main and standby equipment
WO2017000625A1 (en) Dynamic host configuration protocol (dhcp) server management method and apparatus
EP2345278B1 (en) Reestablishment of the interface between mme and node b using a backoff time
CN102905343A (en) Wireless access method and wireless access controller
CN113194494A (en) Air interface resource control method, device, network side equipment and terminal
CN104994173A (en) Message processing method and system
KR101675734B1 (en) Method for determining link quality in wireless network system
CN109450692B (en) Network networking method, system and terminal equipment
CN113098709B (en) Network recovery method and device based on distributed networking system and computer equipment
US9554290B2 (en) Wireless communication system and method for automatically switching device identifications
CN110087333B (en) Method, device, equipment and storage medium for preventing service interruption
CN104038955A (en) Fault detection and processing method in mobile communication system, and base station
CN107360574A (en) A kind of terminal equipment managing method, a kind of cloud controller and a kind of WAP
CN114173151B (en) Live broadcast stream pushing system, method and device and electronic equipment
JP7082819B2 (en) Wireless access points, wireless communication terminals, wireless communication methods, and programs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant