A backup method, device, electronic equipment and storage medium
By dynamically adjusting the AC group to form a hot backup group, the flexibility issue of AC cluster networking when changing equipment is solved, realizing a highly reliable and easy-to-use networking solution, and improving the stability and reliability of the network.
Patent Information
- Application Number
- CN202411239009.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-09-05
AI Technical Summary
Existing AC cluster networking backup solutions are difficult to adjust flexibly when equipment changes occur in the cluster, resulting in a rigid backup method that cannot meet the high reliability and flexibility requirements of current wireless network deployments.
A backup method is provided, which obtains the AP access specification value when the AC accesses the cluster, dynamically adjusts the AC to form a hot backup group, including 1:1 and 2:1 hot backup groups, and performs matching and switching according to the AP access specification value and load value to achieve adaptive adjustment of the network.
It enables flexible adjustments to AC cluster networking when devices are changed, improves network reliability and ease of use, reduces manual intervention, and enhances network stability and reliability.
Smart Images

Figure CN119172045B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a backup method and device, electronic equipment and storage medium. BACKGROUND
[0002] With the wide application of wireless networks and the growing size of networking, users of the network now have higher requirements for various aspects of wireless networking, such as high reliability hot standby, dynamic and flexible backup, seamless failover, in-service software upgrade (ISSU), service load sharing, network elastic expansion, and hierarchical and decentralized management and configuration. The traditional single access controller (AC) networking solution has become increasingly unable to meet the needs of users' wireless network deployment, and therefore the AC cluster networking solution has emerged.
[0003] At present, one backup solution for AC cluster networking is to implement backup networking in a tightly coupled manner (such as virtualization) between every two ACs, and the device only accesses the cloud for management as a unified network element node after power-on. The disadvantage of this backup solution is that the dual-machine backup group itself requires special and complex networking configuration, and additional deployment of physical connections is still required manually before or after accessing the network, and the corresponding software configuration is also required. After deployment, the backup relationship between ACs is fixed, and in the absence of manual intervention, the networking cannot be flexibly expanded or changed.
[0004] Another backup solution for AC cluster networking is to form a loosely coupled backup network among multiple ACs, such as an access point (AP) multi-link manner, which is usually N+1 fixed roles (1 = < N = < 4). After accessing the network, the ACs can form a backup relationship through software configuration. The disadvantage of this backup solution is that the ACs in this type of networking are either primary or standby, and cannot be changed. If the faulty AC happens to be a standby AC, or the working AC is expanded to more than 4, the networking deployment change still requires manual intervention.
[0005] In summary, the current backup solution for AC cluster networking has the disadvantage that the backup mode is fixed and difficult to adjust flexibly when the cluster has device changes, which cannot meet the current networking needs. SUMMARY
[0006] Therefore, the present application provides a backup method and device, electronic equipment and storage medium to solve the problem that the current backup solution for AC cluster networking is difficult to adjust flexibly when the cluster has device changes, and has low reliability.
[0007] According to a first aspect of the embodiments of the present application, a backup method is provided. When an AC accesses a cluster, the method performs an access processing operation, which includes:
[0008] obtaining an AP access specification value of a newly accessed AC;
[0009] if there is only one AC in the cluster, matching the newly accessed AC with the single AC as a 1:1 hot backup group, and switching AP load of the single AC to the newly accessed AC when the AP access specification value of the newly accessed AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the single AC;
[0010] if there is no single AC in the cluster but there is a 2:1 hot backup group in the cluster, unbinding a master AC with a smaller AP access specification value in the 2:1 hot backup group, matching the newly accessed AC with the master AC as a 1:1 hot backup group, and switching AP load of the master AC to the newly accessed AC when the AP access specification value of the newly accessed AC is smaller than the AP access specification value of the master AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the master AC;
[0011] if there is no single AC in the cluster and there is no 2:1 hot backup group in the cluster, when the AP access specification value of the newly accessed AC is larger than the AP access specification value of each AC in a first target hot backup group, unbinding two ACs in the first target hot backup group and accessing the two ACs as master ACs to the newly accessed AC to form a 2:1 hot backup group, and when the AP access specification value of the newly accessed AC is smaller than or equal to the AP access specification value of a backup AC in the first target hot backup group, accessing the newly accessed AC as a master AC to the backup AC in the first target hot backup group to form a 2:1 hot backup group, wherein the first target hot backup group is a 1:1 hot backup group with the largest difference between the AP load value of a master AC and the AP access specification value of a backup AC in all hot backup groups of the cluster.
[0012] According to a second aspect of the embodiments of the present application, a backup device is provided. The device includes an access module, which is configured to perform an access processing operation when an AC accesses a cluster, and the access processing operation includes:
[0013] obtaining an AP access specification value of a newly accessed AC;
[0014] If there is a single AC in the cluster, the new access AC is matched with the single AC as a 1:1 hot backup group, and the AP load of the single AC is switched to the new access AC when the AP access specification value of the new access AC is less than the AP access specification value of the single AC and the AP access specification value of the new access AC is greater than the AP load value of the single AC;
[0015] If there is no single AC in the cluster but there is a 2:1 hot backup group in the cluster, the standby AC with a smaller AP access specification value in the 2:1 hot backup group is unbound, the new access AC is matched with the primary AC to form a 1:1 hot backup group, and the AP load of the primary AC is switched to the new access AC when the AP access specification value of the new access AC is less than the AP access specification value of the primary AC and the AP access specification value of the new access AC is greater than the AP load value of the primary AC;
[0016] If there is no single AC in the cluster and there is no 2:1 hot backup group in the cluster, when the AP access specification value of the new access AC is greater than the AP access specification value of each AC in a first target hot backup group, the two ACs in the first target hot backup group are unbound and accessed to the new access AC as a primary AC to form a 2:1 hot backup group, and when the AP access specification value of the new access AC is less than or equal to the AP access specification value of a standby AC in the first target hot backup group, the new access AC is accessed to the standby AC in the first target hot backup group as a primary AC to form a 2:1 hot backup group, wherein the first target hot backup group is a 1:1 hot backup group with the largest difference between the AP load value of the primary AC and the AP access specification value of the standby AC among all hot backup groups in the cluster.
[0017] According to a third aspect of the embodiments of the present application, an electronic device is provided, comprising a processor and a machine readable storage medium, the machine readable storage medium stores machine executable instructions which can be executed by the processor, and the processor is prompted by the machine executable instructions to implement the steps of the backup method as described above.
[0018] According to a fourth aspect of the embodiments of the present application, a computer readable storage medium is provided, the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the backup method as described above.
[0019] In summary, the present application provides a backup method, which can perform access processing operations when detecting that an AC accesses a cluster, and the access processing operations include: obtaining the AP access specification value of a new access AC, and then performing corresponding processing for the following three cases:
[0020] When there is a single AC in the cluster, the newly accessed AC is matched with the single AC as a 1:1 hot backup group, and the AP load of the single AC is switched to the newly accessed AC when the AP access specification value of the newly accessed AC is less than the AP access specification value of the single AC and the AP access specification value of the newly accessed AC is greater than the AP load value of the single AC;
[0021] When there is no single AC in the cluster but there is a 2:1 hot backup group, the standby AC with a smaller AP access specification value in the 2:1 hot backup group is unbound, the newly accessed AC is matched with the standby AC as a 1:1 hot backup group, and the AP load of the standby AC is switched to the newly accessed AC when the AP access specification value of the newly accessed AC is less than the AP access specification value of the standby AC and the AP access specification value of the newly accessed AC is greater than the AP load value of the standby AC;
[0022] When there is no single AC in the cluster and there is no 2:1 hot backup group, if the AP access specification value of the newly accessed AC is greater than the AP access specification value of each AC in a first target hot backup group, the two ACs in the first target hot backup group are unbound and accessed to the newly accessed AC as a master AC to form a 2:1 hot backup group, and if the AP access specification value of the newly accessed AC is less than or equal to the AP access specification value of a standby AC in the first target hot backup group, the newly accessed AC is accessed to the standby AC in the first target hot backup group as a master AC to form a 2:1 hot backup group, wherein the first target hot backup group is a 1:1 hot backup group with the largest difference between the AP load value of the master AC and the AP access specification value of the standby AC among all hot backup groups in the cluster.
[0023] It can be seen that the method is applied to AC cluster networking, when an AC is accessed to the cluster, the AP access specification value of the newly accessed AC can be acquired in time, and different processing is performed under different situations of existence of a single AC in the cluster, non-existence of a single AC in the cluster but existence of a 2:1 hot backup group, and non-existence of a single AC and a 2:1 hot backup group in the cluster, so as to finally form a hot backup group with the newly accessed AC, and realize dynamic self-adaptation of networking reliability.
[0024] Correspondingly, the application also provides a backup device, an electronic device and a storage medium, and the technical effects thereof correspond to those of the above method, which will not be described herein. BRIEF DESCRIPTION OF DRAWINGS
[0025] Figure 1 A first flowchart of a backup method provided by the application;
[0026] Figure 2 An AC cluster networking schematic diagram provided by the application;
[0027] Figure 3A second flow chart of a backup method provided in the present application;
[0028] Figure 4 A third flow chart of a backup method provided in the present application;
[0029] Figure 5 A fourth flow chart of a backup method provided in the present application;
[0030] Figure 6 A fifth flow chart of a backup method provided in the present application;
[0031] Figure 7 A structure schematic diagram of a backup device provided in the present application;
[0032] Figure 8 A structure schematic diagram of an electronic device provided in the present application. DETAILED DESCRIPTION
[0033] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, the same numbers are used to indicate the same or similar components. The following exemplary embodiments described in the following description do not represent all of the aspects of the present application. Instead, they merely represent different implementations of aspects of the present application. As such, figures can not illustrate every aspect of the present application, and that the figures can not be comprehensive.
[0034] The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the description of the present application and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It also will be understood that the term “and / or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0035] It is to be understood that the singular forms “a,” “an,” and “the” include plural referents unless the context clearly dictates otherwise. It is to be further understood that the term “and / or” as used herein refers to and encompasses any and all possible combinations of one or more of the associated items, even if the items are listed using terminology such as “one or more” or “at least one,” or similar referents.
[0036] Next, the embodiments of the present application will be described in detail.
[0037] The embodiments of the present application provide a backup method, which performs an access processing operation when an AC access cluster is detected, the access processing operation including, for example,Figure 1 The steps shown are:
[0038] Step 110, obtaining the AP access specification value of the newly accessed AC;
[0039] Step 120, judging whether there is a single AC in the cluster, if the result of the judgment is yes, executing step 130, otherwise executing step 140;
[0040] Step 130, matching the newly accessed AC with the single AC as a 1:1 hot backup group, and when the AP access specification value of the newly accessed AC is less than the AP access specification value of the single AC and the AP access specification value of the newly accessed AC is greater than the AP load value of the single AC, switching the AP load of the single AC to the newly accessed AC;
[0041] Step 140, judging whether there is a 2:1 hot backup group in the cluster, if the result of the judgment is yes, executing step 150, otherwise executing step 160;
[0042] Step 150, unbinding the AC with smaller AP access specification value in the 2:1 hot backup group, and matching the newly accessed AC with the AC to form a 1:1 hot backup group, and when the AP access specification value of the newly accessed AC is less than the AP access specification value of the AC and the AP access specification value of the newly accessed AC is greater than the AP load value of the AC, switching the AP load of the AC to the newly accessed AC;
[0043] Step 160, when the AP access specification value of the newly accessed AC is greater than the AP access specification value of each AC in the first target hot backup group, unbinding the two ACs in the first target hot backup group and accessing the two ACs as master ACs to the newly accessed AC to form a 2:1 hot backup group, and when the AP access specification value of the newly accessed AC is less than or equal to the AP access specification value of the standby AC in the first target hot backup group, accessing the newly accessed AC as a master AC to the standby AC in the first target hot backup group to form a 2:1 hot backup group.
[0044] Among them, the first target hot backup group is the 1:1 hot backup group with the largest difference between the AP load value of the master AC and the AP access specification value of the standby AC in all hot backup groups of the cluster.
[0045] Specifically, as Figure 2As shown, the present solution realizes backup based on the centralized management device of centralized management and unified configuration, thereby providing a large-scale networking solution with better maturity, stability, reliability, ease of use and user experience for users. The backup refers to deploying n (n is greater than or equal to 2) ACs for an AP, wherein n-1 ACs act as the role of master AC, responsible for managing the AP and providing service for the AP, and the remaining one AC acts as the standby AC of the previous n-1 ACs. When the master AC fails, the standby AC performs service transfer to replace its work, so as to improve the network reliability.
[0046] The purpose of the present solution is to use the centralized management device to discover the AC not forming a hot backup group in the cluster and form the hot backup group, so as to realize dynamic adaptation of networking change. Specifically, the AC reports the basic information of the AC when accessing the centralized management device, including but not limited to the AP access specification value and the AP load value (such as the number of online APs).
[0047] Specifically, the AC in the cluster is formed into several hot backup groups, each AC in the hot backup group assumes the role of master AC or standby AC, and each hot backup group contains one standby AC and at least one master AC. For example, a 1:1 hot backup group contains one master AC and one standby AC, and a 2:1 hot backup group contains two master ACs and one standby AC. The hot backup group generally needs to meet the following conditions: the AP access specification value of the master AC is less than the AP access specification value of the standby AC.
[0048] The method provided by the embodiment of the present application can perform the leaving processing operation when detecting that the AC leaves the cluster, such as Figure 3 As shown, the leaving processing operation includes the following steps:
[0049] Step 310, judging whether the role of the leaving AC in the original hot backup group is the master AC, if the result of the judgment is yes, executing step 320, otherwise executing step 330;
[0050] Step 320, performing failover for the leaving AC, switching the AP load on the leaving AC to the remaining AC of the original hot backup group, and continuing to execute step 330;
[0051] Step 330, determining the type of the original hot backup group, and obtaining the AP load value and the AP access specification value of the remaining AC in the original hot backup group;
[0052] Step 340, judging whether the type of the original hot backup group is a 2:1 hot backup group, if the result of the judgment is yes, executing step 350, otherwise executing step 380;
[0053] Step 350, judging whether a first preset condition is met, if the result of the judgment is yes, executing step 360, otherwise executing step 370;
[0054] Step 360, recombining two remaining ACs in the original hot backup group into a 1:1 hot backup group;
[0055] Step 370, for each remaining AC in the original hot backup group, adding the remaining AC to a second target hot backup group to form a 2:1 hot backup group;
[0056] Wherein, the first preset condition is that the sum of the AP load values of the two remaining ACs in the original hot backup group is less than the smaller value of the AP access specification values of the two remaining ACs in the original hot backup group; the second target hot backup group is a 1:1 hot backup group whose difference between the AP access specification value of the standby AC and the AP load value of the primary AC is greater than the AP load value of the remaining AC.
[0057] Step 380, judging whether a second preset condition is met, if the result of the judgment is yes, executing step 390, otherwise executing step 300;
[0058] Step 390, re-matching the remaining AC in the original hot backup group with a third target hot backup group into two 1:1 hot backup groups;
[0059] Step 300, adding the remaining AC in the original hot backup group to a fourth target hot backup group to form a 2:1 hot backup group.
[0060] Wherein, the third target hot backup group is a 2:1 hot backup group, the second preset condition is that the sum of the AP load values of the four ACs in the original hot backup group and the third target hot backup group is less than the sum of the second largest AP access specification value and the smallest AP access specification value of the four ACs; the fourth target hot backup group is a 1:1 hot backup group whose difference between the AP access specification value of the standby AC and the AP load value of the primary AC is greater than the AP load value of the remaining AC in the original hot backup group.
[0061] As shown in Figure 4 , the step 370 specifically includes the following sub-steps:
[0062] Step 410, for each remaining AC in the original hot backup group, judging whether a second target hot backup group exists in the cluster; if the result of the judgment is yes, executing step 420, otherwise executing step 430;
[0063] Step 420, adding the remaining AC to the second target hot backup group to form a 2:1 hot backup group;
[0064] Step 430, the remaining AC remains in the state of a single AC.
[0065] To avoid frequent triggering of the backup process, as a preferred embodiment, a preset time length can be set, and the backup process is started only when there is no new AC access or leaving the cluster within the preset time length. Specifically, as shown in Figure 5 The access processing operation or the leaving processing operation is performed by the following manner.
[0066] Step 510, determining whether the time length without new AC access or leaving the cluster exceeds the preset time length, and if the result is yes, executing step 520;
[0067] Step 520, determining the previous cluster change event.
[0068] Step 530, if the cluster change event includes both the access event and the leaving event, executing the mixed processing operation.
[0069] The mixed processing operation includes matching the new access AC corresponding to the access event and the remaining AC in the 1:1 hot backup group corresponding to the leaving event as a 1:1 hot backup group.
[0070] Step 540, if the cluster change event only includes the access event or only the access event remains after executing the mixed processing operation, executing the access processing operation.
[0071] Step 550, if the cluster change event only includes the leaving event or only the leaving event remains after executing the mixed processing operation, executing the leaving processing operation.
[0072] In addition, in the early cluster deployment stage, the AP has not accessed the AC, and the AP load value of the AC is 0. When the AC is formed into a hot backup group, it is only necessary to ensure that the AP access specification value of the primary AC is less than that of the standby AC. The backup method provided by the embodiment of the application can perform a deployment processing operation in the cluster deployment stage, as shown in Figure 6 The deployment processing operation includes the following steps.
[0073] Step 610, obtaining the AP access specification value of the AC to be matched.
[0074] Step 620, matching the AC to be matched with the same AP access specification value into a 1:1 hot backup group.
[0075] Step 630, if the remaining AC to be matched with different AP access specification values, matching all the remaining AC to be matched into a 1:1 hot backup group in the order of AP access specification value from small to large.
[0076] Step 640, if there is only one AC to be matched, adding the AC to be matched to the fifth target hot backup group to form a 2:1 hot backup group.
[0077] That is, in the cluster deployment phase, the embodiment of the application gives priority to matching the AP access specification values of the same to-be-matched ACs into 1:1 hot backup groups when the ACs are matched into hot backup groups, and if the remaining to-be-matched ACs have different AP access specification values, all the remaining to-be-matched ACs are matched into 1:1 hot backup groups in the order of the AP access specification values from small to large, and if there is only one remaining to-be-matched AC, the to-be-matched AC is added to the fifth target hot backup group to form a 2:1 hot backup group. The fifth target hot backup group can be a 1:1 hot backup group with the maximum difference between the AP access specification values of the master AC and the standby AC in all the hot backup groups of the cluster, or a 1:1 hot backup group with the maximum AP access specification value of the standby AC in all the hot backup groups of the cluster.
[0078] It can be seen that the embodiment of the application allows the existence of 1:1 hot backup groups and 2:1 hot backup groups in the cluster, and allows the ACs with different AP access specification values to form hot backup groups.
[0079] The backup processes in different scenarios are summarized and introduced below, mainly including the cluster deployment stage in the early stage and the scenarios of AC joining or leaving in the cluster running stage.
[0080] Scenario one, initial networking deployment stage of the cluster
[0081] In the early networking deployment stage, the centralized management device can automatically match all the ACs managed by the cluster into 1:1 hot backup groups according to the AP access specification values reported by the ACs, and generate and issue the matching hot backup software configuration to the ACs according to the business IP reported by the ACs.
[0082] After the above operation is performed, if there are still ACs in the cluster that cannot be matched into hot backup groups according to the peer AP access specification values, the embodiment of the application also allows heterogeneous matching, at this time, all the remaining ACs are arranged in the order of the AP access specification values from large to small, and are matched into 1:1 hot backup groups in turn, wherein the AC with a larger AP access specification value is used as a standby AC.
[0083] After the above operation is performed, if there is only one AC left, the 1:1 hot backup group with the maximum AP access specification value of the standby AC in the hot backup group is selected, and the single AC and the hot backup group are matched into a 2:1 hot backup group.
[0084] In the later AP online process, the centralized management device assigns wireless services accessing the master AC load according to the AP load reported by all the master ACs, and backs up the business data to the standby AC matched therewith, so as to realize load sharing and real-time hot backup of the cluster and improve the reliability of the cluster.
[0085] Scenario two, detecting AC access cluster
[0086] When a new AC access in the cluster, such as a failed AC recovery online, the centralized management device will perceive the cluster device change and adaptively adjust. Specifically, the following three cases are handled:
[0087] Case 1, if there is a single AC in the cluster, the new access AC is matched with the single AC as a 1:1 hot backup group. When the AP access specification value of the new access AC is less than the AP access specification value of the single AC and the AP access specification value of the new access AC is greater than the AP load value of the single AC, the AP load of the single AC is switched to the new access AC, and the current response is ended.
[0088] Case 2, if there is no single AC in the cluster but there is a 2:1 hot backup group, the 2:1 hot backup group is removed, and the AP access specification value of one of the two master ACs is smaller than the new access AC. A new 1:1 hot backup group is formed, and the AP access specification value of the larger one of the two master ACs in the new 1:1 hot backup group is used as the standby AC. At the same time, the original 2:1 hot backup group is restored to a normal 1:1 hot backup group, and the service is not interrupted. It should be noted that if the new access AC is designated as the master AC, the load switching needs to be performed once after the hot backup group is established.
[0089] Case 3, if there is no single AC in the cluster and there is no 2:1 hot backup group, the 1:1 hot backup group with the largest difference between the AP load value of the master AC and the AP access specification value of the standby AC is selected, and the standby AC is reorganized into a 2:1 hot backup group with the new access AC, and the AC with a larger AP access specification value is selected as the new standby AC. According to the calculation result, perform local configuration reorganization: if the new access AC is selected as the standby AC, the original master AC is first unbonded with the original standby AC, and then bonded with the new access AC in a backup relationship, during which the service is not interrupted, otherwise skip this step; the new access AC and the original standby AC are bonded according to the re-calculated backup role.
[0090] Scenario three, detecting AC leaving the cluster
[0091] When an AC leaves the cluster, such as a failed AC going offline, the centralized management device will perceive the cluster device change and adaptively adjust. If the leaving AC is a master AC, first complete the failover with its bonded standby AC to ensure that the existing wireless service is not interrupted, otherwise skip this step, and continue processing in the following two cases:
[0092] Case 1, if the leaving AC belongs to a 2:1 hot backup group, and the AP load values of the remaining two ACs are less than the smaller AP access specification value of the two, then adjust to a 1:1 hot backup group, otherwise try to query all 1:1 hot backup groups in the cluster to determine whether there is a difference between the AP load value of the primary AC and the AP access specification value of the standby AC that is greater than the AP load value of any of the remaining two ACs, if so, reorganize the remaining two ACs or one of them into a 2:1 hot backup group, otherwise the two ACs remain in a single AC state.
[0093] Case 2, if the leaving AC belongs to a 1:1 hot backup group, and there is a 2:1 hot backup group in the cluster, try to sort the remaining single AC and the four ACs in the 2:1 hot backup group according to the AP access specification: AC1>AC2>AC3>AC4, if the sum of the AP load values of the remaining single AC and the original two primary ACs is less than the sum of the AP access specification values of AC2 and AC4, then reorganize them into two 1:1 hot backup groups according to the binding of AC2 and AC1 as primary and standby, and the binding of AC4 and AC3 as primary and standby.
[0094] Scenario four, mixed scenario of access and departure
[0095] To ensure efficiency, the cluster should respond to the overall changes in the event of continuous AC access or departure in a short period of time. The platform sets a preset time for AC access and AC departure events within the cluster, which is long enough to complete a local hot backup group adjustment. Set a timer, and if there is a new departure event or access event within the preset time, refresh the timer, and after the preset time is exceeded, adjust the cluster according to the final state change and perform a mixed processing operation as follows: match the new access AC corresponding to the access event with the remaining AC in the 1:1 hot backup group corresponding to the departure event into a 1:1 hot backup group.
[0096] The embodiment of the application provides a backup method, which is based on the unified management of the cluster by the cloud platform to report resources on the AC, and dynamically adjusts the resources on the AC to match all ACs in the cluster into a high-reliability hot backup group, and responds to the changes of the ACs in the cluster in real time, and under the premise of maintaining business stability, recalculates the networking resources to realize dynamic self-adaptation of networking reliability through local adjustment. With high business stability and continuous high reliability, it can flexibly cope with dynamic capacity reduction and expansion, fault switching and other cluster topology changes, effectively reduce the cost of manual maintenance, simplify network management and improve network flexibility.
[0097] A backup device provided by an embodiment of the application is described below, and the backup device described below can be referred to in correspondence with the backup method described above. As shown in FIG. 1, the backup device includes an AC access module 101, an AC departure module 102, a cluster topology adjustment module 103, and a cluster topology adjustment module 104. Figure 7As shown, the apparatus comprises an access module 710, configured to perform an access processing operation when detecting an AC access cluster, the access processing operation comprising:
[0098] obtaining an AP access specification value of a new access AC;
[0099] if there is a single AC in the cluster, matching the new access AC with the single AC as a 1:1 hot backup group, and switching AP load of the single AC to the new access AC if the AP access specification value of the new access AC is less than the AP access specification value of the single AC and the AP access specification value of the new access AC is greater than the AP load value of the single AC;
[0100] if there is no single AC in the cluster but there is a 2:1 hot backup group in the cluster, unbinding a master AC with a smaller AP access specification value in the 2:1 hot backup group, matching the new access AC with the master AC as a 1:1 hot backup group, and switching AP load of the master AC to the new access AC if the AP access specification value of the new access AC is less than the AP access specification value of the master AC and the AP access specification value of the new access AC is greater than the AP load value of the master AC;
[0101] if there is no single AC in the cluster and there is no 2:1 hot backup group in the cluster, if the AP access specification value of the new access AC is greater than the AP access specification value of each AC in a first target hot backup group, unbinding two ACs in the first target hot backup group and accessing the two ACs as master ACs to the new access AC to form a 2:1 hot backup group, and if the AP access specification value of the new access AC is less than or equal to the AP access specification value of a standby AC in the first target hot backup group, accessing the new access AC as a master AC to the standby AC in the first target hot backup group to form a 2:1 hot backup group, wherein the first target hot backup group is a 1:1 hot backup group with the largest difference between the AP load value of a master AC and the AP access specification value of a standby AC among all hot backup groups of the cluster.
[0102] As a specific implementation, the apparatus further comprises a departure module 720, configured to perform a departure processing operation when detecting an AC departure from the cluster, the departure processing operation comprising:
[0103] if the departure AC is a master AC in an original hot backup group, performing failover on the departure AC, determining a type of the original hot backup group, and obtaining an AP load value and an AP access specification value of a remaining AC in the original hot backup group;
[0104] If the type of the original hot backup group is 2:1 hot backup group, when the first preset condition is met, the two remaining ACs in the original hot backup group are recombined into a 1:1 hot backup group, and when the first preset condition is not met, for each remaining AC in the original hot backup group, the remaining AC is added to a second target hot backup group to form a 2:1 hot backup group, wherein the first preset condition is that the sum of the AP load values of the two remaining ACs in the original hot backup group is less than the smaller value of the AP access specification values of the two remaining ACs in the original hot backup group, and the second target hot backup group is a 1:1 hot backup group in which the difference between the AP access specification value of the standby AC and the AP load value of the master AC is greater than the AP load value of the remaining AC;
[0105] If the type of the original hot backup group is 1:1 hot backup group, when the second preset condition is met, the remaining AC in the original hot backup group is re-matched with a third target hot backup group into two 1:1 hot backup groups, and when the second preset condition is not met, the remaining AC in the original hot backup group is added to a fourth target hot backup group to form a 2:1 hot backup group, wherein the third target hot backup group is a 2:1 hot backup group, the second preset condition is that the sum of the AP load values of the four ACs in the original hot backup group and the third target hot backup group is less than the sum of the second largest AP access specification value and the smallest AP access specification value among the four ACs, and the fourth target hot backup group is a 1:1 hot backup group in which the difference between the AP access specification value of the standby AC and the AP load value of the master AC is greater than the AP load value of the remaining AC in the original hot backup group.
[0106] As a specific implementation, the leaving module 720 specifically adds the remaining AC to the second target hot backup group to form a 2:1 hot backup group by the following way:
[0107] For each remaining AC in the original hot backup group, it is judged whether there is a second target hot backup group in the cluster;
[0108] If the judgment result is yes, the remaining AC is added to the second target hot backup group to form a 2:1 hot backup group;
[0109] If the judgment result is no, the remaining AC remains in the state of a single AC.
[0110] As a specific implementation, the device further comprises:
[0111] The monitoring module 730 is configured to determine a previous cluster change event if no new AC accesses or leaves the cluster for more than a preset time length;
[0112] The mixing module 740 is configured to perform a mixing processing operation if the cluster change event includes both an access event and a leave event, where the mixing processing operation includes matching a new access AC corresponding to the access event with a remaining AC in a 1:1 hot backup group corresponding to the leave event as a 1:1 hot backup group.
[0113] The access module 710 is specifically configured to perform an access processing operation if the cluster change event only includes an access event or only an access event remains after the mixing processing operation is performed.
[0114] The leave module 720 is specifically configured to perform a leave processing operation if the cluster change event only includes a leave event or only a leave event remains after the mixing processing operation is performed.
[0115] As a specific implementation, the apparatus further includes a deployment module 750, which is configured to perform a deployment processing operation in a cluster deployment phase, where the deployment processing operation includes:
[0116] obtaining AP access specification values of the to-be-matched ACs;
[0117] matching the to-be-matched ACs with the same AP access specification values as 1:1 hot backup groups in pairs;
[0118] if the remaining to-be-matched ACs have different AP access specification values, matching all the remaining to-be-matched ACs as 1:1 hot backup groups in pairs according to the AP access specification values in ascending order;
[0119] if there is only one to-be-matched AC left, adding the to-be-matched AC to a fifth target hot backup group to form a 2:1 hot backup group, where the fifth target hot backup group is a 1:1 hot backup group with the largest difference between the AP access specification value of the primary AC and the AP access specification value of the backup AC, or a 1:1 hot backup group with the largest AP access specification value of the backup AC, among all the hot backup groups of the cluster.
[0120] The embodiments of the present application also provide an electronic device, as shown in the accompanying drawings, which includes a processor 810 and a machine readable storage medium 820 storing machine executable instructions executable by the processor 810, where the processor 810 is prompted by the machine executable instructions to implement the steps of any of the backup methods. Figure 8
[0121] The machine readable storage medium described above can include a random access memory (RAM), and can also include a non-volatile memory (NVM), such as at least one disk memory. Optionally, the machine readable storage medium can also be at least one storage device located away from the aforementioned processor.
[0122] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can 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, a discrete hardware component.
[0123] In yet another embodiment provided in the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of any of the backup methods described above are implemented.
[0124] The above provides a detailed description of the scheme provided in the present application. The principle and implementation mode of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea; at the same time, for those skilled in the art, according to the idea of the present application, the specific implementation mode and application range will be changed; in view of the above, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A backup method, characterized in that, When the method detects an AC access cluster, it performs an access processing operation, which includes: Obtain the AP access specification value for the newly connected AC; If there is a single AC in the cluster, the new access AC will be matched with the single AC as a 1:1 hot backup group, and the AP load of the single AC will be switched to the new access AC when the AP access specification value of the new access AC is less than the AP access specification value of the single AC and the AP access specification value of the new access AC is greater than the AP load value of the single AC. If there is no single AC in the cluster but there is a 2:1 hot backup group in the cluster, then unbind the primary AC with the smaller AP access specification value in the 2:1 hot backup group, form a 1:1 hot backup group with the new access AC and the primary AC, and when the AP access specification value of the new access AC is less than the AP access specification value of the primary AC and the AP access specification value of the new access AC is greater than the AP load value of the primary AC, switch the AP load of the primary AC to the new access AC. If there is no single AC in the cluster and there is no 2:1 hot backup group in the cluster, when the AP access specification value of the newly accessed AC is greater than the AP access specification value of each AC in the first target hot backup group, the two ACs in the first target hot backup group are unbound and connected to the newly accessed AC as the primary AC to form a 2:1 hot backup group. When the AP access specification value of the newly accessed AC is less than or equal to the AP access specification value of the standby AC in the first target hot backup group, the newly accessed AC is connected to the standby AC of the first target hot backup group as the primary AC to form a 2:1 hot backup group. The first target hot backup group is the 1:1 hot backup group with the largest difference between the AP load value of the primary AC and the AP access specification value of the standby AC among all the hot backup groups in the cluster.
2. The method according to claim 1, characterized in that, When the method detects that an AC has left the cluster, it performs a departure processing operation, which includes: If the departing AC is used as the primary AC in the original hot backup group, then failover is performed on the departing AC, the type of the original hot backup group is determined, and the AP load value and AP access specification value of the remaining ACs in the original hot backup group are obtained. If the original hot backup group is a 2:1 hot backup group, when the first preset condition is met, the two remaining ACs in the original hot backup group are reorganized into a 1:1 hot backup group. When the first preset condition is not met, for each remaining AC in the original hot backup group, the remaining AC is added to the second target hot backup group to form a 2:1 hot backup group. The first preset condition is that the sum of the AP load values of the two remaining ACs in the original hot backup group is less than the smaller value of the AP access specification values of the two remaining ACs in the original hot backup group. The second target hot backup group is a 1:1 hot backup group where the difference between the AP access specification value of the standby AC and the AP load value of the primary AC is greater than the AP load value of the remaining AC. If the original hot backup group is a 1:1 hot backup group, when the second preset condition is met, the remaining ACs in the original hot backup group are rematched with the third target hot backup group to form two 1:1 hot backup groups. When the second preset condition is not met, the remaining ACs in the original hot backup group are added to the fourth target hot backup group to form a 2:1 hot backup group. The third target hot backup group is a 2:1 hot backup group. The second preset condition is that the sum of the AP load values of the remaining ACs in the original hot backup group and the four ACs in the third target hot backup group is less than the sum of the second largest AP access specification value and the smallest AP access specification value among the four ACs. The fourth target hot backup group is a 1:1 hot backup group where the difference between the AP access specification value of the standby AC and the AP load value of the primary AC is greater than the AP load value of the remaining ACs in the original hot backup group.
3. The method according to claim 2, characterized in that, The remaining AC will be added to the second target hot standby group to form a 2:1 hot standby group, specifically including: For each remaining AC in the original hot backup group, determine whether there is a second target hot backup group in the cluster; If the judgment result is yes, then the remaining AC is added to the second target hot backup group to form a 2:1 hot backup group; If the judgment result is negative, the remaining AC will remain in the state of a single AC.
4. The method according to claim 2, characterized in that, The method specifically performs access processing or departure processing operations in the following ways: If no new AC joins or leaves the cluster within a preset time period, then the previous cluster change event is identified. If a cluster change event includes both an access event and a departure event, a mixed processing operation is performed, wherein the mixed processing operation includes: matching the new access AC corresponding to the access event with the remaining ACs in the 1:1 hot backup group corresponding to the departure event to form a 1:1 hot backup group; If the cluster change event only includes access events or only access events remain after performing the hybrid processing operation, perform the access processing operation. If the cluster change event only includes the departure event or only the departure event remains after performing the mixed processing operation, perform the departure processing operation.
5. The method according to claim 1, characterized in that, During the cluster deployment phase, the method performs deployment processing operations, which include: Obtain the AP access specification value of the AC to be matched; The APs with the same access specification values are paired up to form a 1:1 hot backup group; If the remaining AP access specification values of the ACs to be matched are all different, then all the remaining ACs to be matched will be matched in pairs according to the order of AP access specification values from smallest to largest to form a 1:1 hot backup group. If there is a single AC to be matched, the AC to be matched is added to the fifth target hot backup group to form a 2:1 hot backup group. The fifth target hot backup group is the 1:1 hot backup group with the largest difference between the AP access specification value of the primary AC and the AP access specification value of the standby AC among all the hot backup groups of the cluster, or the 1:1 hot backup group with the largest AP access specification value of the standby AC among all the hot backup groups of the cluster.
6. A backup device, characterized in that, The device includes an access module, which is used to perform an access processing operation when an AC access cluster is detected. The access processing operation includes: Obtain the AP access specification value for the newly connected AC; If there is a single AC in the cluster, the new access AC will be matched with the single AC as a 1:1 hot backup group, and the AP load of the single AC will be switched to the new access AC when the AP access specification value of the new access AC is less than the AP access specification value of the single AC and the AP access specification value of the new access AC is greater than the AP load value of the single AC. If there is no single AC in the cluster but there is a 2:1 hot backup group in the cluster, then unbind the primary AC with the smaller AP access specification value in the 2:1 hot backup group, form a 1:1 hot backup group with the new access AC and the primary AC, and when the AP access specification value of the new access AC is less than the AP access specification value of the primary AC and the AP access specification value of the new access AC is greater than the AP load value of the primary AC, switch the AP load of the primary AC to the new access AC. If there is no single AC in the cluster and there is no 2:1 hot backup group in the cluster, when the AP access specification value of the newly accessed AC is greater than the AP access specification value of each AC in the first target hot backup group, the two ACs in the first target hot backup group are unbound and connected to the newly accessed AC as the primary AC to form a 2:1 hot backup group. When the AP access specification value of the newly accessed AC is less than or equal to the AP access specification value of the standby AC in the first target hot backup group, the newly accessed AC is connected to the standby AC of the first target hot backup group as the primary AC to form a 2:1 hot backup group. The first target hot backup group is the 1:1 hot backup group with the largest difference between the AP load value of the primary AC and the AP access specification value of the standby AC among all the hot backup groups in the cluster.
7. The apparatus according to claim 6, characterized in that, The device further includes a departure module, which is used to perform a departure processing operation when an AC is detected leaving the cluster. The departure processing operation includes: If the departing AC is used as the primary AC in the original hot backup group, then failover is performed on the departing AC, the type of the original hot backup group is determined, and the AP load value and AP access specification value of the remaining ACs in the original hot backup group are obtained. If the original hot backup group is a 2:1 hot backup group, when the first preset condition is met, the two remaining ACs in the original hot backup group are reorganized into a 1:1 hot backup group. When the first preset condition is not met, for each remaining AC in the original hot backup group, the remaining AC is added to the second target hot backup group to form a 2:1 hot backup group. The first preset condition is that the sum of the AP load values of the two remaining ACs in the original hot backup group is less than the smaller value of the AP access specification values of the two remaining ACs in the original hot backup group. The second target hot backup group is a 1:1 hot backup group where the difference between the AP access specification value of the standby AC and the AP load value of the primary AC is greater than the AP load value of the remaining AC. If the original hot backup group is a 1:1 hot backup group, when the second preset condition is met, the remaining ACs in the original hot backup group are rematched with the third target hot backup group to form two 1:1 hot backup groups. When the second preset condition is not met, the remaining ACs in the original hot backup group are added to the fourth target hot backup group to form a 2:1 hot backup group. The third target hot backup group is a 2:1 hot backup group. The second preset condition is that the sum of the AP load values of the remaining ACs in the original hot backup group and the four ACs in the third target hot backup group is less than the sum of the second largest AP access specification value and the smallest AP access specification value among the four ACs. The fourth target hot backup group is a 1:1 hot backup group where the difference between the AP access specification value of the standby AC and the AP load value of the primary AC is greater than the AP load value of the remaining ACs in the original hot backup group.
8. The apparatus according to claim 7, characterized in that, The departure module adds the remaining AC to the second target hot backup group to form a 2:1 hot backup group in the following manner: For each remaining AC in the original hot backup group, determine whether there is a second target hot backup group in the cluster; If the judgment result is yes, then the remaining AC is added to the second target hot backup group to form a 2:1 hot backup group; If the judgment result is negative, the remaining AC will remain in the state of a single AC.
9. The apparatus according to claim 7, characterized in that, The device further includes: The monitoring module is used to determine the previous cluster change event if no new AC joins or leaves the cluster for a preset period of time. A hybrid module is used to perform a hybrid processing operation if a cluster change event includes both an access event and a departure event. The hybrid processing operation includes: matching the new access AC corresponding to the access event with the remaining ACs in the 1:1 hot backup group corresponding to the departure event to form a 1:1 hot backup group. The access module is specifically used to perform an access processing operation if the cluster change event only includes access events or if only access events remain after the mixed processing operation is performed. The departure module is specifically used to perform a departure processing operation if the cluster change event only includes a departure event or if only a departure event remains after the mixed processing operation is performed.
10. The apparatus according to claim 6, characterized in that, The apparatus further includes a deployment module, which performs deployment processing operations during the cluster deployment phase, the deployment processing operations including: Obtain the AP access specification value of the AC to be matched; The APs with the same access specification values are paired up to form a 1:1 hot backup group; If the remaining AP access specification values of the ACs to be matched are all different, then all the remaining ACs to be matched will be matched in pairs according to the order of AP access specification values from smallest to largest to form a 1:1 hot backup group. If there is a single AC to be matched, the AC to be matched is added to the fifth target hot backup group to form a 2:1 hot backup group. The fifth target hot backup group is the 1:1 hot backup group with the largest difference between the AP access specification value of the primary AC and the AP access specification value of the standby AC among all the hot backup groups of the cluster, or the 1:1 hot backup group with the largest AP access specification value of the standby AC among all the hot backup groups of the cluster.
11. An electronic device, characterized in that, The method includes a processor and a machine-readable storage medium storing machine-executable instructions that can be executed by the processor, which are prompted by the machine-executable instructions to perform the method steps of any one of claims 1-5.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method steps of any one of claims 1-5.
Citation Information
Patent Citations
Server hot backup system and method
CN103530200A
HSB (Hot Standby) system and AC dual-computer hot standby method based on two-layer networking VRRP protocol
CN107888491A