CN108174417B - Main/standby switching method and device, related electronic equipment and readable storage medium - Google Patents
Main/standby switching method and device, related electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN108174417B CN108174417B CN201711377234.8A CN201711377234A CN108174417B CN 108174417 B CN108174417 B CN 108174417B CN 201711377234 A CN201711377234 A CN 201711377234A CN 108174417 B CN108174417 B CN 108174417B
- Authority
- CN
- China
- Prior art keywords
- main
- standby
- address information
- switching
- address table
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0055—Transmission or use of information for re-establishing the radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/10—Reselecting an access point controller
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides a main/standby switching method, a device, related electronic equipment and a readable storage medium, which are applied to the technical field of wireless communication, wherein the method comprises the following steps: receiving address information of a main Access Controller (AC) associated with the AP, which is sent by an Access Point (AP), wherein the address information of the main AC is sent by the AP after establishing communication tunnels with the main AC and a standby AC respectively; and if the AP is detected to be switched from the main AC to the standby AC to be on line, sending the address information of the main AC to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and reestablishing a communication tunnel with the main AC when detecting that the main AC recovers normal operation, and switching from the standby AC to the main AC to be on line. According to the embodiment of the application, the AP can be switched back to the original main AC when the main and standby switching-back occurs, so that the AP associated with the main AC is consistent with that before the switching-back, and the problem that the load of the individual AC is too high after the switching-back is avoided.
Description
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a method and an apparatus for switching between a master device and a slave device, a related electronic device, and a readable storage medium.
Background
With the gradual upgrade of the wireless hotspot construction, the Access Point (AP) Access quantity is larger and larger, and how to ensure the reliability of the wireless Access becomes important. In the centralized forwarding mode, an AC (Access Controller) undertakes the state maintenance and data forwarding work of a large number of APs. The failure of the AC will cause service interruption of the wireless network, And two links corresponding to the main AC And the standby AC respectively may be provided for the AP in the N +1 backup networking (where N refers to N main ACs And 1 refers to 1 standby AC), that is, the AP establishes a wap (wireless Access point Control And Provisioning protocol) tunnel with the main AC And the standby AC respectively, And the main AC And the standby AC are not aware of each other, And the operating state of the AC is perceived by the AP. The main and standby switching process in the N +1 backup networking is as follows: when the main AC fails, the main-standby switching is triggered, and all APs on the failed main AC are switched to the standby AC to continue to forward data traffic; and when the main AC with the fault recovers to be normal, triggering the main/standby switching-back, and re-associating the AP to the main AC to forward the data traffic.
In order to implement the above main/standby switching process, the AC needs to be configured to associate the AP with the AC, and the method for configuring the AC may specifically be that priorities are set on the main AC and the standby AC respectively, and the priority of the main AC is higher than that of the standby AC. Because there are a plurality of main ACs and only one standby AC, the address information of the standby AC can be configured on the main AC, and if the main AC fails, the AP associated with the failed main AC can be switched to the standby AC. Meanwhile, the address information of the main AC associated with each AP can be configured on the standby AC, so that the AP can be accurately switched back to the original main AC. However, the method is complex in configuration process and low in configuration efficiency. If the APs of the same model are associated with the same main AC, that is, if the models of the APs associated with different main ACs are not overlapped, the AP groups may be set for the APs of different models, and the same AP group is associated with the same main AC, then the APs may accurately find the main AC according to the address information of the main AC configured for the AP group on the main AC during the main-standby switch-back. Thus, the configuration process can be simplified, and the configuration efficiency can be improved. However, when the AP models associated with different main ACs overlap, there may be multiple main ACs associated with an AP of the same model, and an AP group cannot be set for APs of different models, so that the standby AC cannot accurately designate a back-cut main AC, which may cause a problem that the AP distribution associated with the main AC after the main AC is back-cut is inconsistent with that before the back-cut.
Disclosure of Invention
An object of the present invention is to provide a method and an apparatus for switching between a master and a slave, a related electronic device, and a readable storage medium, so that after the master and slave are switched back, an AP can be switched back to an original master AC, and AP distribution associated with the master AC is consistent with that before the switch back. The specific technical scheme is as follows:
the embodiment of the application provides a main/standby switching method, which is applied to a standby AC and comprises the following steps:
receiving address information of a main AC (access controller) associated with the AP, which is sent by the AP after the AP establishes communication tunnels with the main AC and the standby AC respectively;
and if the AP is detected to be switched from the main AC to the standby AC, sending the address information of the main AC to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and when the AP detects that the main AC recovers normal operation, reestablishing a communication tunnel with the main AC and switching from the standby AC to the main AC.
The embodiment of the application provides a main/standby switching method, which is applied to an AP (access point), and the method comprises the following steps:
after communication tunnels are respectively established with a main AC and a standby AC, address information of the main AC is sent to the standby AC;
if the main AC is detected to be in fault, switching from the main AC to the standby AC to be on-line;
and detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC on line.
An embodiment of the present application provides a main/standby switching device, which is applied to a standby AC, and the device includes:
an address information receiving module, configured to receive address information of a main AC associated with an AP, where the address information of the main AC is sent by the AP after establishing a communication tunnel with the main AC and the standby AC respectively;
and the address information sending module is used for sending the address information of the main AC to the AP if the AP is detected to be switched from the main AC to the standby AC to be on line, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, reestablishes a communication tunnel with the main AC when detecting that the main AC recovers normal operation, and switches from the standby AC to the main AC to be on line.
The embodiment of the application provides a main/standby switching device, which is applied to an AP, and the device comprises:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending address information of a main AC to a standby AC after establishing communication tunnels with the main AC and the standby AC respectively;
the switching module is used for switching the main AC to the standby AC to be on-line if the main AC is detected to have a fault;
and the back-cut module is used for detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC on line.
An embodiment of the present application provides a standby AC, including: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: and implementing any step of the main/standby switching method applied to the standby AC.
An embodiment of the present application provides an AP, including: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: and implementing any step of the main/standby switching method applied to the AP.
Embodiments of the present application provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: and implementing any step of the main/standby switching method applied to the standby AC.
Embodiments of the present application provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: and implementing any step of the main/standby switching method applied to the AP.
According to the method, the device, the related electronic equipment and the readable storage medium for switching between the main and standby equipment, address information of a main AC associated with an AP is sent by the AP, and the address information of the main AC is sent by the AP after communication tunnels are respectively established between the AP and the main AC and between the AP and the standby AC; and if the AP is detected to be switched from the main AC to the standby AC to be on line, sending the address information of the main AC to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and reestablishing a communication tunnel with the main AC when detecting that the main AC recovers normal operation, and switching from the standby AC to the main AC to be on line. According to the method and the device, the address information of the main AC associated with each AP does not need to be configured on the main AC, the AP can be switched back to the original main AC according to the address information of the main AC, the AP distribution associated with the main AC is consistent with that before switching back after the main AC and the standby AC are switched back, and the problem that the load of the individual AC after switching back is overhigh is solved. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
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 flowchart of a main/standby switching method according to an embodiment of the present application;
fig. 2 is another flowchart of a main/standby switching method according to an embodiment of the present application;
fig. 3 is another flowchart of a main/standby switching method according to an embodiment of the present application;
fig. 4 is a structural diagram of a main/standby switching device according to an embodiment of the present application;
fig. 5 is another structural diagram of the main/standby switching device according to the embodiment of the present application;
FIG. 6 is a block diagram of an AC according to an embodiment of the present application;
fig. 7 is a structural diagram of an AP according to an 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 the centralized forwarding mode, in order to improve the efficiency of configuring the AC, the address information of the main AC associated with each AP may not be configured on the standby AC, but this will cause that after the main/standby switch-back, the AP cannot switch back to the original main AC. In order to solve the problem, embodiments of the present application provide a method and an apparatus for switching between a master and a slave, a related electronic device, and a readable storage medium, so that after the master and slave are switched back, an AP may be switched back to an original master AC, and AP distribution associated with the master AC is consistent with that before the switch back.
First, a detailed description is given of a main/standby switching method provided in an embodiment of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a main/standby switching method according to an embodiment of the present application, and the method is applied to a standby AC, and includes the following steps:
s101, receiving address information of a main AC associated with the AP, wherein the address information of the main AC is sent by the AP after establishing a communication tunnel with the main AC and a standby AC respectively.
S102, if the AP is detected to be switched from the main AC to the standby AC to be on line, the address information of the main AC is sent to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and when the AP detects that the main AC recovers normal operation, a communication tunnel is established with the main AC again, and the AP is switched from the standby AC to the main AC to be on line.
The method shown in fig. 1 has the beneficial effects that the address information of the main AC associated with each AP may not be configured on the standby AC, and according to the address information of the main AC sent by the AP, when the main AC fails, the address information of the main AC is sent to the AP, so that the AP switches back to the original main AC. Therefore, after the main AC and the standby AC are switched back, the AP distribution related to the main AC is consistent with that before the switching back, and the problem that the load of the individual AC after the switching back is overhigh is avoided.
Referring to fig. 2, fig. 2 is another flowchart of the active/standby switching method according to the embodiment of the present application, which is applied to an AP, and includes the following steps:
s201, after the communication tunnels are respectively established with the main AC and the standby AC, the address information of the main AC is sent to the standby AC.
And S202, if the main AC is detected to be in fault, switching from the main AC to the standby AC to be on-line.
S203, detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC to be on-line.
The method shown in fig. 2 has the beneficial effects that the AP sends the address information of the main AC associated with the AP to the standby AC, and when the main AC fails, the standby AC sends the address information of the main AC to the AP, so that the AP can switch back to the original main AC according to the address information of the main AC. Therefore, according to the embodiment of the application, the address information of the main AC associated with each AP does not need to be configured on the standby AC, the efficiency of configuring the AC is improved, and when the standby and standby switching occurs, the AP can switch back to the original main AC according to the address information of the main AC sent by the standby AC.
Referring to fig. 3, fig. 3 is another flowchart of a main/standby switching method according to an embodiment of the present application, including the following steps:
s301, after the AP establishes communication tunnels with the main AC and the standby AC respectively, the AP sends the address information of the main AC to the standby AC.
In the embodiment of the present application, how the AP determines the primary AC and the secondary AC is the prior art, and is not described in detail herein. And a main tunnel is established between the AP and the main AC, and a standby tunnel is established between the AP and the standby AC. The AP performs data interaction with the main AC using only the main tunnel. Only when the link between the AP and the main AC is not communicated, namely the main AC fails, the AP is switched from the main AC to the standby AC, the standby tunnel between the AP and the standby AC is changed into the main tunnel, and at the moment, the AP only utilizes the standby tunnel to carry out data interaction with the standby AC.
For an N +1 backup network, there are N primary ACs, and there may be many APs associated with each primary AC, and only 1 backup AC. Therefore, address information of the standby AC can be specified on each main AC, so that when the main AC fails, the AP associated with the main AC can be accurately switched to the standby AC. If the address information of the main AC associated with the AP is not configured for each AP on the standby AC, the address information of the main AC associated with the AP cannot be accurately specified on the standby AC. Therefore, in the embodiment of the present application, the AP may send the address information of the main AC associated with the AP to the standby AC, and the standby AC may store the address information of the main AC to the local.
S302, the standby AC establishes an associated address table entry corresponding to the AP, and the associated address table entry comprises address information of the main AC.
In this embodiment of the present application, after the standby AC receives address information of the main AC sent by the AP, an associated address table entry corresponding to the AP may be established, where the associated address table entry includes: the address information of the main AC may be, specifically, a Media Access Control (MAC) address of the AP, and the address information of the main AC may be an Internet Protocol (IP) address of the main AC. Therefore, the address information of the main AC corresponding to each AP is stored in the standby AC, so that the main AC switched back to the AP can be accurately specified when the main AC and the standby AC are switched back to each other.
And S303, if the AP detects that the main AC has a fault, switching from the main AC to the standby AC to be on-line.
And S304, if the standby AC detects that the AP is switched from the main AC to the standby AC, the address information of the main AC is sent to the AP.
In the embodiment of the present application, since the address information of the main AC is not stored in the AP, after a link between the AP and the main AC is interrupted, the AP cannot determine the address information of the associated main AC. Therefore, after the AP switches to the standby AC, the standby AC transmits the address information of the main AC to the AP, so that the AP can determine the address information of the associated main AC. Optionally, the associated address table entry may further include a running state of the main AC; after detecting that the AP is switched from the main AC to the standby AC, the operating status of the main AC in the associated address table entry may be updated from normal operation of the main AC to a failure of the main AC. In this way, the operational state of the primary AC may be determined intuitively from the associated address table entries.
In an implementation manner of the present invention, sending address information of a main AC to an AP specifically includes:
searching the associated address table entry corresponding to the AP in all the associated address table entries established locally;
and sending the address information of the main AC in the associated address table entry corresponding to the AP.
Specifically, since the associated address table entries established in the standby AC include associated address table entries corresponding to a plurality of APs, and the associated address table entries corresponding to different APs are different, when the address information of the main AC is sent to an AP, the associated address table entry corresponding to the AP is first searched in all the associated address table entries, and then the address information of the main AC in the associated address table entry corresponding to the AP is sent to the AP.
S305, detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC to be on-line.
In this embodiment of the application, after receiving address information of a main AC sent by a standby AC, an AP may periodically initiate link detection to the main AC according to the address information of the main AC until detecting that a link with the main AC recovers. Switching back from the standby AC to the main AC after detecting the link restoration with the main AC. At this time, the main tunnel is reestablished between the AP and the main AC, and the link between the AP and the main AC is restored, that is, the AP performs data interaction only with the main AC by using the reestablished main tunnel, and at the same time, the main tunnel between the AP and the standby AC is changed into the standby tunnel. After the standby AC detects that the AP is switched to the main AC from the standby AC and is on line, the standby AC updates the running state of the main AC in the associated address table entry from the fault of the main AC to the normal running of the main AC.
In the active-standby switching method according to the embodiment of the application, the AP sends the address information of the associated main AC to the standby AC, so that the standby AC establishes an associated address table entry containing the address information of the main AC according to the address information of the main AC. Therefore, when the main AC fails and the AC is switched from the main AC to the standby AC, the standby AC sends the address information of the main AC to the AP, so that the AP initiates link detection to the main AC according to the address information of the main AC, and the AP is switched back to the original main AC. It can be seen that in the embodiment of the present application, address information of a main AC associated with each AP does not need to be configured on a standby AC, and while the efficiency of configuring an AC is improved, address information of a main AC that is switched back to an AP is accurately specified according to address information of the main AC in an associated address table entry established on the standby AC, so that after the main AC is switched back to the standby AC, the distribution of APs associated with each main AC is consistent with that before the main AC is switched back to the standby AC, and the problem of too high load of individual main AC is avoided.
Corresponding to the foregoing method embodiment, an embodiment of the present application further provides a main/standby switching device, which is applied to a standby AC, and referring to fig. 4, fig. 4 is a structural diagram of the main/standby switching device according to the embodiment of the present application, and includes:
an address information receiving module 401, configured to receive address information of a main AC associated with an AP, where the address information of the main AC is sent by the AP after establishing a communication tunnel with the main AC and a standby AC respectively;
an address information sending module 402, configured to send address information of the main AC to the AP if it is detected that the AP is switched from the main AC to the standby AC and goes on line, so that the AP detects whether the main AC recovers normal operation according to the address information of the main AC, and when it is detected that the main AC recovers normal operation, re-establishes a communication tunnel with the main AC, and switches from the standby AC to the main AC and goes on line.
According to the main/standby switching device in the embodiment of the application, address information of a main AC associated with each AP is not configured on a standby AC, and the address information of the main AC is sent to the AP after the main AC fails so that the AP is switched back to the original main AC. Therefore, after the main AC and the standby AC are switched back, the AP distribution related to the main AC is consistent with that before the switching back, and the problem that the load of the individual AC after the switching back is overhigh is avoided.
In an implementation manner of the present application, the active/standby switching device shown in fig. 4 further includes:
the address table item establishing module is used for establishing an associated address table item corresponding to the AP after receiving the address information of the main AC sent by the AP, wherein the associated address table item comprises the address information of the main AC;
the address information sending module is specifically configured to search for an associated address table entry corresponding to the AP from all associated address table entries established locally, and send address information of the main AC in the associated address table entry corresponding to the AP.
In an implementation manner of the present application, the associated address table entry in the active/standby switching device shown in fig. 4 further includes an operation state of the main AC;
the main/standby switching apparatus shown in fig. 4 further includes:
the first state updating module is used for updating the running state of the main AC in the associated address table entry from the normal running of the main AC to the fault of the main AC after detecting that the AP is switched from the main AC to the standby AC;
and the second state updating module is used for updating the running state of the main AC in the associated address table entry from the fault of the main AC to the normal running of the main AC after detecting that the AP is switched from the standby AC to the main AC and goes on line.
Referring to fig. 5, fig. 5 is another structural diagram of a main/standby switching device according to an embodiment of the present application, which is applied to an AP, and includes:
a sending module 501, configured to send address information of a main AC to a standby AC after establishing a communication tunnel with the main AC and the standby AC respectively;
a switching module 502, configured to switch from a main AC to a standby AC online if a failure of the main AC is detected;
the back-cut module 503 is configured to detect whether the main AC recovers normal operation according to the received address information of the main AC sent by the standby AC, and when it is detected that the AC recovers normal operation, re-establish a communication tunnel with the main AC, and switch from the standby AC to the main AC to be on-line.
In the active/standby switching device according to the embodiment of the present application, the AP sends the address information of the main AC associated with the AP to the standby AC, and the standby AC may establish an associated address table entry including the address information of the main AC according to the address information of the main AC. When the main AC fails, the standby AC sends the address information of the main AC to the AP, and the AP can switch back to the original main AC according to the address information of the main AC. Therefore, according to the embodiment of the application, the address information of the main AC associated with each AP does not need to be configured on the standby AC, the efficiency of configuring the AC is improved, and when the standby and standby switching occurs, the AP can switch back to the original main AC according to the address information of the main AC sent by the standby AC.
An embodiment of the present application further provides a standby AC, see fig. 6, where fig. 6 is a structural diagram of the standby AC in the embodiment of the present application, including: a processor 601 and a machine-readable storage medium 602, the machine-readable storage medium 602 storing machine-executable instructions executable by the processor, the processor 601 caused by the machine-executable instructions to: and implementing any step of the main/standby switching method applied to the standby AC.
An embodiment of the present application further provides an AP, see fig. 7, where fig. 7 is a structural diagram of the AP in the embodiment of the present application, including: a processor 701 and a machine-readable storage medium 702, the machine-readable storage medium 702 storing machine-executable instructions executable by the processor, the processor 701 causing by the machine-executable instructions to: and implementing any step of the main/standby switching method applied to the AP.
The processor 601 and the processor 701 may be general processors, and include: a CPU (central processing Unit), an NP (Network Processor), and the like; but also DSPs (Digital Signal Processing), ASICs (Application specific integrated circuits), FPGAs (Field Programmable Gate arrays) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The machine-readable storage medium 602 and the machine-readable storage medium 702 may include RAM (Random access memory) and may also include non-volatile memory (e.g., at least one disk memory), and the machine-readable storage medium 602 and the machine-readable storage medium 702 may also be at least one storage device located remotely from the processor 601 and the processor 701.
In the standby AC of the embodiment of the present application, the processor receives, by executing a machine executable instruction stored on a machine readable storage medium, address information of a main AC associated with an AP, which is sent by the AP, where the address information of the main AC is sent by the AP after establishing a communication tunnel with the main AC and the standby AC, respectively; and if the AP is detected to be switched from the main AC to the standby AC to be on line, sending the address information of the main AC to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and reestablishing a communication tunnel with the main AC when detecting that the main AC recovers normal operation, and switching from the standby AC to the main AC to be on line. According to the method and the device, the address information of the main AC associated with each AP is not configured on the standby AC, and the address information of the main AC is sent to the AP according to the address information of the main AC sent by the AP, so that the AP is switched back to the original main AC. Therefore, after the main AC and the standby AC are switched back, the AP distribution related to the main AC is consistent with that before the switching back, and the problem that the load of the individual AC after the switching back is overhigh is avoided.
In the AP of the embodiment of the present application, the processor, by executing the machine executable instruction stored in the machine readable storage medium, sends the address information of the main AC to the standby AC after establishing the communication tunnels with the main AC and the standby AC, respectively; if the main AC is detected to be out of order, switching from the main AC to the standby AC; and detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC to be on-line. Therefore, according to the embodiment of the application, the address information of the main AC associated with each AP does not need to be configured on the standby AC, the efficiency of configuring the AC is improved, and when the standby and standby switching occurs, the AP can switch back to the original main AC according to the address information of the main AC sent by the standby AC.
Embodiments of the present application also provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: and implementing any step of the main/standby switching method applied to the standby AC.
When a processor executes machine executable instructions stored in a machine readable storage medium of the embodiment of the application, address information of a main AC associated with an AP sent by the AP is received, wherein the address information of the main AC is sent by the AP after establishing a communication tunnel with the main AC and a standby AC respectively; and if the AP is detected to be switched from the main AC to the standby AC to be on line, sending the address information of the main AC to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and reestablishing a communication tunnel with the main AC when detecting that the main AC recovers normal operation, and switching from the standby AC to the main AC to be on line. According to the method and the device, the address information of the main AC associated with each AP is not configured on the standby AC, and the address information of the main AC is sent to the AP according to the address information of the main AC sent by the AP, so that the AP is switched back to the original main AC. Therefore, after the main AC and the standby AC are switched back, the AP distribution related to the main AC is consistent with that before the switching back, and the problem that the load of the individual AC after the switching back is overhigh is avoided.
Embodiments of the present application also provide a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: and implementing any step of the main/standby switching method applied to the AP.
When a processor executes machine executable instructions stored in a machine readable storage medium of the embodiment of the application, after communication tunnels are respectively established with a main AC and a standby AC, address information of the main AC is sent to the standby AC; if the main AC is detected to be out of order, switching from the main AC to the standby AC; and detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC to be on-line. Therefore, according to the embodiment of the application, the address information of the main AC associated with each AP does not need to be configured on the standby AC, the efficiency of configuring the AC is improved, and when the standby and standby switching occurs, the AP can switch back to the original main AC according to the address information of the main AC sent by the standby AC.
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 active/standby switching device, the related electronic device and the readable storage medium, since they are basically similar to the embodiments of the method, the description is relatively simple, and the relevant points can be referred to the partial description of the embodiments of the method.
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 (12)
1. A method for switching between a main access controller and a standby access controller is characterized by being applied to the AC, and the method comprises the following steps:
receiving address information of a main AC (access point) associated with the AP, which is sent by an AP, wherein the address information of the main AC is sent after the AP establishes communication tunnels with the main AC and the standby AC respectively;
and if the AP is detected to be switched from the main AC to the standby AC, sending the address information of the main AC to the AP, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, and when the AP detects that the main AC recovers normal operation, reestablishing a communication tunnel with the main AC and switching from the standby AC to the main AC.
2. The active-standby switching method according to claim 1, further comprising:
after receiving the address information of the main AC sent by the AP, establishing an associated address table entry corresponding to the AP, wherein the associated address table entry comprises the address information of the main AC;
the sending the address information of the main AC to the AP specifically includes:
searching the associated address table entry corresponding to the AP in all associated address table entries established locally;
and sending the address information of the main AC in the associated address table entry corresponding to the AP.
3. The method according to claim 2, wherein the associated address table entry further includes an operating status of the main AC;
after the AP is detected to be switched from the main AC to the standby AC to be on-line, updating the running state of the main AC in the associated address table entry from the normal running of the main AC to the fault of the main AC;
and after the AP is detected to be switched from the standby AC to the main AC on line, updating the running state of the main AC in the associated address table entry from the failure of the main AC to the normal running of the main AC.
4. A method for switching between a main standby mode and a standby mode is applied to an Access Point (AP), and the method comprises the following steps:
after communication tunnels are respectively established with a main Access Controller (AC) and a standby AC, address information of the main AC is sent to the standby AC;
if the main AC is detected to be in fault, switching from the main AC to the standby AC to be on-line;
and detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC on line.
5. A primary/standby switching apparatus, applied to a standby access controller AC, the apparatus comprising:
an address information receiving module, configured to receive address information of a main AC associated with an AP, where the address information of the main AC is sent by the AP after establishing a communication tunnel with the main AC and the standby AC respectively;
and the address information sending module is used for sending the address information of the main AC to the AP if the AP is detected to be switched from the main AC to the standby AC to be on line, so that the AP detects whether the main AC recovers normal operation or not according to the address information of the main AC, reestablishes a communication tunnel with the main AC when detecting that the main AC recovers normal operation, and switches from the standby AC to the main AC to be on line.
6. The active-standby switching device according to claim 5, further comprising:
an address table item establishing module, configured to establish an associated address table item corresponding to the AP after receiving address information of the main AC sent by the AP, where the associated address table item includes the address information of the main AC;
the address information sending module is specifically configured to search for an associated address table entry corresponding to the AP from all associated address table entries established locally, and send the address information of the main AC in the associated address table entry corresponding to the AP.
7. The device according to claim 6, wherein the associated address table entry further includes an operating status of the main AC;
the device further comprises:
a first state updating module, configured to update the operating state of the main AC in the associated address table entry from normal operation of the main AC to failure of the main AC after detecting that the AP is switched from the main AC to the standby AC;
and a second state updating module, configured to update the running state of the main AC in the associated address table entry from a failure of the main AC to a normal running state of the main AC after detecting that the AP is switched from the standby AC to the main AC.
8. A master/slave switching device, applied to an Access Point (AP), the device comprising:
the device comprises a sending module, a standby AC and a main access controller, wherein the sending module is used for sending address information of the main AC to the standby AC after establishing communication tunnels with the main AC and the standby AC respectively;
the switching module is used for switching the main AC to the standby AC to be on-line if the main AC is detected to have a fault;
and the back-cut module is used for detecting whether the main AC recovers normal operation or not according to the received address information of the main AC sent by the standby AC, reestablishing a communication tunnel with the main AC when the AC recovers normal operation, and switching from the standby AC to the main AC on line.
9. A standby Access Controller (AC), comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the steps of implementing the active/standby switching method according to any one of claims 1 to 3.
10. An access point, AP, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the steps of implementing the active/standby switching method of claim 4.
11. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the steps of implementing the active/standby switching method according to any one of claims 1 to 3.
12. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the steps of implementing the active/standby switching method of claim 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711377234.8A CN108174417B (en) | 2017-12-19 | 2017-12-19 | Main/standby switching method and device, related electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711377234.8A CN108174417B (en) | 2017-12-19 | 2017-12-19 | Main/standby switching method and device, related electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108174417A CN108174417A (en) | 2018-06-15 |
CN108174417B true CN108174417B (en) | 2020-05-08 |
Family
ID=62522456
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711377234.8A Active CN108174417B (en) | 2017-12-19 | 2017-12-19 | Main/standby switching method and device, related electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108174417B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087333B (en) * | 2019-04-26 | 2020-12-04 | 新华三技术有限公司 | Method, device, equipment and storage medium for preventing service interruption |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103648109A (en) * | 2013-12-09 | 2014-03-19 | 成都飞鱼星科技开发有限公司 | Wireless distributed forwarding system and method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8825011B2 (en) * | 2008-12-19 | 2014-09-02 | Tecore, Inc. | Intelligent network access control |
-
2017
- 2017-12-19 CN CN201711377234.8A patent/CN108174417B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103648109A (en) * | 2013-12-09 | 2014-03-19 | 成都飞鱼星科技开发有限公司 | Wireless distributed forwarding system and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN108174417A (en) | 2018-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2004306913B2 (en) | Redundant routing capabilities for a network node cluster | |
CN102137017B (en) | Working method and device used for virtual network unit | |
CN102624635B (en) | Method and device for realizing graceful restart | |
US20150365320A1 (en) | Method and device for dynamically switching gateway of distributed resilient network interconnect | |
CN104205748A (en) | Inter-chassis redundancy with coordinated traffic direction | |
CN101841462B (en) | Method, device and system for informing VRRP state information | |
WO2012000234A1 (en) | Method, apparatus and system for fast switching between links | |
CN101729426B (en) | Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP) | |
CN102780615B (en) | Link backup method and routing forwarding device | |
CN103095571A (en) | Method and system achieving network redundancy and data flow seamless switching | |
CN104869057A (en) | OpeFlow switch graceful restart processing method, device and OpeFlow controller | |
CN102025562A (en) | Path detection method and device | |
CN103607293A (en) | Flow protection method and equipment thereof | |
WO2016095344A1 (en) | Link switching method and device, and line card | |
CN104080132A (en) | Data processing method and equipment | |
CN105577444A (en) | Wireless controller management method and wireless controller | |
CN102136965A (en) | Method for detecting tunnel faults and traffic engineering (TE) node | |
CN103281720A (en) | Method and device for switching wireless controller hot standbys, wireless controller and access system | |
CN100461764C (en) | Method and system for implementing consistency of message forwarding routes | |
CN102932249B (en) | A kind of transmission method of VRRP message and device | |
CN108174417B (en) | Main/standby switching method and device, related electronic equipment and readable storage medium | |
WO2016070530A1 (en) | Method and system for processing operation of primary and standby device | |
CN102769571A (en) | Graceful restart realization method and equipment | |
WO2023169133A1 (en) | Traffic disaster recovery backup method, traffic disaster recovery backup system and tof node | |
CN102316029A (en) | Fast rerouting method and routing equipment |
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 |