Backup method and device, electronic equipment and storage medium

By detecting the AP access specification value when AC accesses the cluster, dynamically adjusting the AC role to form an appropriate hot backup group, it solves the problem that the AC cluster network backup solution is difficult to flexibly adjust when the device changes, and improves the networking Reliability and flexibility.

CN119172045AActive Publication Date: 2024-12-20NEW H3C TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411239009.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-05
Publication Date
2024-12-20
Estimated Expiration
2044-09-05

AI Technical Summary

Technical Problem

The existing AC cluster network backup solution is difficult to flexibly adjust when the cluster changes equipment, resulting in low reliability and cannot meet the current network usage needs.

Method used

By detecting the AC access cluster, the AP access specification value of the new AC is obtained, the AC role is dynamically adjusted, and a 1:1 hot backup group or 2:1 hot backup group is formed to realize dynamic adaptation of the network. Specific steps include: If there is a single AC in the cluster, match it to a 1:1 hot backup group; if there is a 2:1 hot backup group in the cluster, unbind and adjust it to a 1:1 hot backup group; if there is no single AC and 2:1 hot backup group, adjust the AC role according to the AP access specification value and load value.

Benefits of technology

It realizes flexible adjustments of AC cluster networking when equipment changes, improves network reliability and flexibility, reduces the need for manual intervention, and meets the needs of high reliability and dynamic expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172045A_ABST
    Figure CN119172045A_ABST
Patent Text Reader

Abstract

The invention provides a backup method and device, electronic equipment and a storage medium. The method is applied to AC cluster networking, and when it is detected that an AC accesses a cluster, the method can perform different processing under different conditions to finally enable the newly accessed AC to form a hot backup group aiming at three situations that a single AC exists in the cluster, a single AC does not exist in the cluster but a 2: 1 hot backup group exists in the cluster, and neither a single AC nor a 2: 1 hot backup group exists in the cluster. And dynamic self-adaption of networking reliability is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a backup method, apparatus, electronic device, and storage medium. Background Art

[0002] With the wide application of wireless networks and the increasing scale of network deployment, network users now have higher requirements for various aspects of wireless networking, such as high-reliability hot standby, dynamic and flexible backup, seamless fault transfer, in-service software upgrade (ISSU), service load sharing, network elastic expansion, and hierarchical and decentralized management configuration. The traditional single access controller (AC) networking solution is increasingly unable to meet the wireless network deployment requirements of users. Therefore, the AC cluster networking solution has emerged accordingly.

[0003] Currently, a backup solution for AC cluster networking is that every two ACs implement backup networking in a tightly coupled manner (such as virtualization), and after the devices are powered on, they only access the cloud management as a unified network element node. The disadvantage of this backup solution is that the dual-machine backup group itself requires special and complex networking configurations, and additional physical connections still need to be manually deployed before or after accessing the network, and corresponding software configurations need to be coordinated. After the deployment is completed, the backup relationship between ACs is solidified, and without manual intervention, it is impossible to flexibly expand or change the networking.

[0004] Another backup solution for AC cluster networking is that multiple ACs form a loosely coupled backup networking, such as the multi-link mode of access points (APs). Usually, it is in the N+1 fixed role (1 <= N <= 4). After the ACs access the network, the backup relationship can be formed through software configuration. The disadvantage of this backup solution is that in such a networking, the ACs are either in the primary role or the standby role and cannot be changed. Once the faulty AC happens to be the standby AC, or the number of working ACs exceeds 4 after expansion, manual participation is still required for networking deployment changes.

[0005] In summary, the current AC cluster networking backup solutions have the disadvantages of fixed backup methods and difficulty in flexible adjustment when device changes occur in the cluster, and are difficult to meet the current network usage requirements. Summary of the Invention

[0006] In view of this, this application provides a backup method, apparatus, electronic device, and storage medium to solve the problems that the current AC cluster networking backup solutions are difficult to flexibly adjust and have low reliability when device changes occur in the cluster.

[0007] According to a first aspect of an embodiment of the present application, a backup method is provided. When detecting that an AC is connected to a cluster, the method performs an access processing operation, and the access processing operation includes:

[0008] Get the AP access specification values ​​of the newly connected AC;

[0009] If there is a single AC in the cluster, the newly connected AC is matched with the single AC as a 1:1 hot standby group, and when the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly connected AC;

[0010] If there is no single AC in the cluster but there is a 2:1 hot standby group in the cluster, unbind the active AC with a smaller AP access specification value in the 2:1 hot standby group, form a 1:1 hot standby group with the newly accessed AC and the active AC, and switch the AP load of the active 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 active AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the active AC;

[0011] If there is no single AC in the cluster and there is no 2:1 hot standby group in the cluster, when the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as the main AC to form a 2:1 hot standby group, and when the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected to the standby AC of the first target hot standby group as the main AC to form a 2:1 hot standby group, wherein the first target hot standby group is a 1:1 hot standby group having the largest difference between the AP load value of the main AC and the AP access specification value of the standby AC in all hot standby groups in the cluster.

[0012] According to a second aspect of an embodiment of the present application, a backup device is provided, the device comprising an access module, the access module being configured to perform an access processing operation when detecting that an AC accesses a cluster, the access processing operation comprising:

[0013] Get the AP access specification values ​​of the newly connected AC;

[0014] If there is a single AC in the cluster, the newly connected AC is matched with the single AC as a 1:1 hot standby group, and when the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly connected AC;

[0015] If there is no single AC in the cluster but there is a 2:1 hot standby group in the cluster, unbind the active AC with a smaller AP access specification value in the 2:1 hot standby group, form a 1:1 hot standby group with the newly accessed AC and the active AC, and switch the AP load of the active 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 active AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the active AC;

[0016] If there is no single AC in the cluster and there is no 2:1 hot standby group in the cluster, when the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as the main AC to form a 2:1 hot standby group, and when the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected to the standby AC of the first target hot standby group as the main AC to form a 2:1 hot standby group, wherein the first target hot standby group is a 1:1 hot standby group having the largest difference between the AP load value of the main AC and the AP access specification value of the standby AC in all hot standby groups in the cluster.

[0017] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that 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 an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the backup method described above are implemented.

[0019] In summary, the present application provides a backup method, which can perform an access processing operation when detecting that an AC is connected to a cluster. The access processing operation includes: obtaining an access specification value of an AP newly connected to the AC, and then performing corresponding processing for the following three situations respectively:

[0020] When there is a single AC in the cluster, the newly added AC is matched with the single AC to form a 1:1 hot standby group, and when the AP access specification value of the newly added AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly added AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly added AC;

[0021] When there is no single AC in the cluster but there is a 2:1 hot standby group, unbind the active AC with a smaller AP access specification value in the 2:1 hot standby group, and form a 1:1 hot standby group with the newly-connected AC and the active AC. When the AP access specification value of the newly-connected AC is smaller than that of the active AC and the AP access specification value of the newly-connected AC is larger than the AP load value of the active AC, switch the AP load of the active AC to the newly-connected AC.

[0022] When there is no single AC in the cluster and there is no 2:1 hot standby group, if the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as the main AC to form a 2:1 hot standby group; if the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected as the main AC to the standby AC of the first target hot standby group to form a 2:1 hot standby group, wherein the first target hot standby group is the 1:1 hot standby group having the largest difference between the AP load value of the main AC and the AP access specification value of the standby AC in all hot standby groups in the cluster.

[0023] It can be seen that this method is applied to AC cluster networking. When it is detected that an AC is connected to a cluster, the method can promptly obtain the AP access specification value of the newly connected AC, and for three situations: there is a single AC in the cluster, there is no single AC in the cluster but there is a 2:1 hot backup group, and there is neither a single AC nor a 2:1 hot backup group in the cluster, different processing is performed in different situations to finally form the newly connected AC into a hot backup group, thereby realizing dynamic adaptation of networking reliability.

[0024] Correspondingly, the present application also provides a backup device, an electronic device and a storage medium, the technical effects of which correspond to the technical effects of the above-mentioned method and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A first flow chart of a backup method provided by this application;

[0026] Figure 2 The AC cluster networking diagram provided for this application;

[0027] Figure 3A second flow chart of a backup method provided by this application;

[0028] Figure 4 A third flow chart of a backup method provided by this application;

[0029] Figure 5 A fourth flow chart of a backup method provided by this application;

[0030] Figure 6 A fifth flow chart of a backup method provided by this application;

[0031] Figure 7 A schematic diagram of the structure of a backup device provided in this application;

[0032] Figure 8 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0034] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more corresponding listed items.

[0035] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0036] Next, the embodiments of the present application are described in detail.

[0037] The embodiment of the present application provides a backup method. When the backup method detects that an AC is connected to a cluster, the access processing operation is performed. The access processing operation includes: Figure 1 Steps shown:

[0038] Step 110: Obtain the access specification value of the AP newly connected to the AC;

[0039] Step 120, determine whether there is a single AC in the cluster, if the determination result is yes, execute step 130, otherwise execute step 140;

[0040] Step 130: Match the newly connected AC and the single AC to form a 1:1 hot standby group, and when the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, switch the AP load of the single AC to the newly connected AC;

[0041] Step 140, determine whether there is a 2:1 hot standby group in the cluster, if the determination result is yes, execute step 150, otherwise execute step 160;

[0042] Step 150: unbind the active AC with the smaller AP access specification value in the 2:1 hot standby group, form a 1:1 hot standby group with the newly-accessed AC and the active AC, and switch the AP load of the active 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 active AC and the AP access specification value of the newly-accessed AC is larger than the AP load value of the active AC;

[0043] Step 160: When the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as master ACs to form a 2:1 hot standby group; when the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected to the standby AC of the first target hot standby group as the master AC to form a 2:1 hot standby group.

[0044] The first target hot standby group is a 1:1 hot standby group having the largest difference between the AP load value of the active AC and the AP access specification value of the standby AC among all the hot standby groups in the cluster.

[0045] Specifically, Figure 2As shown in the figure, this solution implements backup based on centralized management equipment with centralized management and unified configuration, thereby providing users with a large-scale networking solution with better maturity, stability, reliability, ease of use, and user experience. The so-called backup refers to the deployment of n (n is greater than or equal to 2) ACs for an AP, of which n-1 ACs act as the main AC, responsible for managing the AP and providing business services for the AP, and the remaining AC acts as the backup AC for the previous n-1 ACs. When the main AC fails, the backup AC performs business transfer to replace its work, so as to achieve the purpose of improving network reliability.

[0046] The purpose of this solution is to use the centralized management device to promptly discover the ACs in the cluster that are not in a hot standby group and form them into a hot standby group, so as to achieve dynamic self-adaptation of network changes. Specifically, when the AC is connected to the centralized management device, it will report basic AC information, including but not limited to AP access specification values ​​and AP load values ​​(such as the number of online APs).

[0047] Specifically, the embodiment of the present application organizes the ACs in the cluster into several hot standby groups, each AC plays the role of a primary AC or a backup AC in the hot standby group, and each hot standby group includes a backup AC and at least one primary AC. For example, a 1:1 hot standby group includes a primary AC and a backup AC, and a 2:1 hot standby group includes two primary ACs and one backup AC. The hot standby group generally needs to meet the following conditions: the AP access specification value of the primary AC is less than the AP access specification value of the backup AC.

[0048] The method provided in the embodiment of the present application can perform a leaving processing operation when it is detected that the AC leaves the cluster, such as Figure 3 As shown, the leaving process operation includes the following steps:

[0049] Step 310: determine whether the role of the AC leaving the hot standby group is the active AC. If the determination result is yes, execute step 320; otherwise, execute step 330.

[0050] Step 320: Perform a failover on the AC that has left, switch the AP load on the AC that has left to the remaining AC in the original hot standby group, and continue to step 330;

[0051] Step 330: determine the type of the original hot standby group, and obtain the AP load value and AP access specification value of the remaining ACs in the original hot standby group;

[0052] Step 340, determining whether the type of the original hot standby group is a 2:1 hot standby group, if the determination result is yes, executing step 350, otherwise executing step 380;

[0053] Step 350, determine whether the first preset condition is met, if the determination result is yes, execute step 360, otherwise execute step 370;

[0054] Step 360: reorganize the two remaining ACs in the original hot standby group into a 1:1 hot standby group;

[0055] Step 370: for each remaining AC in the original hot standby group, add the remaining AC to the second target hot standby group to form a 2:1 hot standby group;

[0056] Among them, the above-mentioned 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 above-mentioned second target hot backup group is a 1:1 hot backup group in which the difference between the AP access specification value of the backup AC and the AP load value of the active AC is greater than the AP load value of the remaining AC.

[0057] Step 380, determine whether the second preset condition is met, if the determination result is yes, execute step 390, otherwise execute step 300;

[0058] Step 390: re-match the remaining ACs in the original hot standby group with the third target hot standby group into two 1:1 hot standby groups;

[0059] Step 300: Add the remaining ACs in the original hot standby group to the fourth target hot standby group to form a 2:1 hot standby group.

[0060] Among them, the above-mentioned third target hot backup group is a 2:1 hot backup group, and the above-mentioned second preset condition is that the sum of the AP load values ​​of the remaining ACs in the original hot backup group and the third target hot backup group, a total of four ACs, 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 above-mentioned fourth target hot backup group is a 1:1 hot backup group in which the difference between the AP access specification value of the backup AC and the AP load value of the main AC is greater than the AP load value of the remaining ACs in the original hot backup group.

[0061] like Figure 4 As shown, the above step 370 specifically includes the following sub-steps:

[0062] Step 410: for each remaining AC in the original hot standby group, determine whether there is a second target hot standby group in the cluster; if the determination result is yes, execute step 420; otherwise, execute step 430;

[0063] Step 420: Add the remaining AC to the second target hot standby group to form a 2:1 hot standby group;

[0064] Step 430: The remaining AC maintains the status of a single AC.

[0065] To avoid frequent triggering of the backup process, as a preferred implementation, a preset duration can be pre-set, and the backup process is started only when and only when no new AC joins or leaves the cluster within the preset duration. Figure 5 As shown, the embodiment of the present application performs the access processing operation or the leave processing operation in the following manner:

[0066] Step 510: determine whether the time period during which no new AC joins or leaves the cluster exceeds a preset time period. If the determination result is yes, execute step 520;

[0067] Step 520: Determine the previous cluster change event;

[0068] Step 530: If the cluster change event includes both an access event and a leave event, a mixed processing operation is performed;

[0069] The above-mentioned mixed processing operation includes: matching the newly accessed AC corresponding to the access event with the remaining ACs in the 1:1 hot standby group corresponding to the leave event into a 1:1 hot standby group.

[0070] Step 540: If the cluster change event only includes an access event or only an access event remains after performing the hybrid processing operation, perform an access processing operation;

[0071] Step 550: If the cluster change event only includes a leave event or only a leave event remains after the hybrid processing operation is performed, a leave processing operation is performed.

[0072] In addition, in the early stage of cluster deployment, the AP has not yet been connected to the AC. At this time, the AP load value of the AC is 0. When the AC is formed into a hot standby group, it is only necessary to ensure that the AP access specification value of the active AC is less than the access specification value of the standby AC. The backup method provided in the embodiment of the present application can perform deployment processing operations in the cluster deployment stage, such as Figure 6 As shown, the deployment processing operation includes the following steps:

[0073] Step 610: Obtain the AP access specification value of the AC to be matched;

[0074] Step 620: APs are connected to the to-be-matched ACs with the same specification values ​​and matched in pairs to form a 1:1 hot standby group.

[0075] Step 630: If there are remaining ACs to be matched with different AP access specification values, all remaining ACs to be matched are matched in pairs in ascending order of AP access specification values ​​to form a 1:1 hot standby group.

[0076] Step 640: If there is only one AC to be matched left, add the AC to be matched to the fifth target hot standby group to form a 2:1 hot standby group.

[0077] That is to say, in the cluster deployment stage, when the embodiments of the present application organize ACs into hot standby groups, they are preferentially matched in pairs to form 1:1 hot standby groups with the same AP access specification values. If there are remaining ACs to be matched with different AP access specification values, all remaining ACs to be matched are matched in pairs to form 1:1 hot standby groups in the order of AP access specification values ​​from small to large. If there is only one AC to be matched, the AC to be matched is added to the fifth target hot standby group to form a 2:1 hot standby group. The fifth target hot standby group can be the 1:1 hot standby group with the largest difference between the AP access specification value of the active AC and the AP access specification value of the standby AC among all the hot standby groups of the cluster, or it can be the 1:1 hot standby group with the largest AP access specification value of the standby AC among all the hot standby groups of the cluster.

[0078] It can be seen that the embodiment of the present application allows a 1:1 hot standby group and a 2:1 hot standby group to exist in a cluster at the same time, and allows APs to access ACs with different specification values ​​to form a hot standby group.

[0079] The following is a summary of the backup process in different scenarios, mainly including the early cluster deployment scene and the later scene of AC joining or leaving the cluster during operation.

[0080] Scenario 1: Initial cluster networking deployment phase

[0081] In the early stage of network deployment, the centralized management device can automatically match all ACs managed by the cluster into 1:1 hot standby groups according to the AP access specification values ​​reported by the ACs (i.e., the same AP access specification values). It can also generate matching hot standby software configurations based on the service IPs reported by the ACs and send them to the ACs.

[0082] After performing the above operations, if there are still ACs in the cluster that cannot be matched as hot standby groups according to equivalent AP access specification values, the embodiment of the present application also allows heterogeneous matching. At this time, all remaining ACs are arranged in order from large to small according to the AP access specification values, and matched in pairs into 1:1 hot standby groups, among which the AC with a larger AP access specification value serves as the backup AC.

[0083] After the preceding operations are completed, if only one AC remains, select the 1:1 hot standby group with the largest AP access specification value of the standby AC in the hot standby group, and match the single AC and the hot standby group to form a 2:1 hot standby group.

[0084] During the later AP online process, the centralized management device assigns wireless services connected to the main AC load according to the AP load reported by all active ACs, and backs up the service data to the matching standby AC, realizing cluster load sharing and real-time hot backup, thereby improving cluster reliability.

[0085] Scenario 2: Detecting that the AC is connected to the cluster

[0086] When a new AC is added to the cluster, for example, a faulty AC is restored, the centralized management device will sense the cluster device changes and make adaptive adjustments. The following three situations are handled:

[0087] In case 1, if there is a single AC in the cluster, the newly connected AC is matched with the single AC as a 1:1 hot standby group. When the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly connected AC and the current response ends.

[0088] In case 2, if there is no single AC in the cluster but there is a 2:1 hot standby group, the 2:1 hot standby group is removed, and the active AC with the smaller AP access specification value among the two active ACs and the newly connected AC form a new 1:1 hot standby group. In the newly formed 1:1 hot standby group, the AC with the larger AP access specification value is used as the backup AC. At the same time, the original 2:1 hot standby group is restored to a normal 1:1 hot standby group, and the service is not interrupted during this period. It should be noted that if the newly connected AC is designated as the active AC, a load switching needs to be performed after the hot standby group is established.

[0089] In case 3, if there is no single AC in the cluster and there is no 2:1 hot standby group, select the 1:1 hot standby group with the largest difference between the AP load value of the active AC and the AP access specification value of the standby AC, and reorganize it into a 2:1 hot standby group by sharing the standby AC with the newly connected AC, and reselect the AC with a larger AP access specification value as the new standby AC. Perform local configuration reorganization based on the calculation results: If the newly connected AC is selected as the standby AC, the original active AC is first unbound from the original standby AC, and bound to the new AC for backup, and the service is not interrupted during this period, otherwise skip this step; bind the new AC to the original standby AC according to the recalculated backup role.

[0090] Scenario 3: Detecting that the AC has left the cluster

[0091] When an AC leaves the cluster, such as an AC failure, the centralized management device will sense the cluster device change and make adaptive adjustments. If the AC that leaves is the active AC, the backup AC bound to it will first complete the failover to ensure that the wireless service of the original load is not interrupted. Otherwise, skip this step and continue processing in the following two situations:

[0092] In case 1, if the leaving AC belongs to a 2:1 hot standby group and the AP load values ​​of the remaining two ACs are less than the smaller AP access specification value of the two, it is adjusted to a 1:1 hot standby group. Otherwise, try to query all 1:1 hot standby groups in the cluster to determine whether there is a difference between the AP load value of the active 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, the remaining two ACs or one of the ACs are reorganized into a 2:1 hot standby group. Otherwise, the two ACs remain in single AC status.

[0093] In case 2, if the AC that left belongs to a 1:1 hot standby group and there is a 2:1 hot standby group in the cluster, try to sort the remaining single AC and the four ACs in the 2:1 hot standby group according to the AP access specifications: AC1>AC2>AC3>AC4. If the sum of the AP load values ​​of the remaining single AC and the original two active ACs is less than the sum of the AP access specification values ​​of AC2 and AC4, then AC2 is bound to AC1 as active and standby, and AC4 is bound to AC3 as active and standby, and they are reorganized into two 1:1 hot standby groups.

[0094] Scenario 4: Mixed scenarios of joining and leaving

[0095] To ensure efficiency, if a cluster has continuous AC access or leave events within a short period of time, it should respond to the overall change. The platform sets a preset duration for AC access and AC leave events within the cluster, which is sufficient to complete a local hot standby group adjustment. Set a timer. If there is a new leave event or access event before the preset duration is exceeded, the timer is refreshed. After the preset duration is exceeded, the cluster is adjusted according to the final state change, and the mixed processing operation is performed as follows: the newly accessed AC corresponding to the access event is matched with the remaining AC in the 1:1 hot standby group corresponding to the leave event to form a 1:1 hot standby group.

[0096] The embodiment of the present application provides a backup method, which performs unified scheduling, intelligent matching, and dynamic adjustment of AC reported resources based on the cluster unified management cloud platform, dynamically matches all ACs in the cluster into a high-reliability hot backup group, responds to AC changes within the cluster in real time, and recalculates networking resources to achieve dynamic self-adaptation of networking reliability through local adjustments while maintaining business stability. With high business stability and continuous high reliability, it can flexibly respond to cluster topology changes such as dynamic shrinking and expansion of the cluster, fault switching, etc., effectively reduce manual maintenance costs, simplify network management, and improve network elasticity.

[0097] The following is an introduction to a backup device provided in an embodiment of the present application. The backup device described below and the backup method described above can be referred to in correspondence with each other. Figure 7As shown, the device includes an access module 710, and the access module 710 is used to perform an access processing operation when it is detected that the AC accesses the cluster, and the access processing operation includes:

[0098] Get the AP access specification values ​​of the newly connected AC;

[0099] If there is a single AC in the cluster, the newly connected AC is matched with the single AC as a 1:1 hot standby group, and when the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly connected AC;

[0100] If there is no single AC in the cluster but there is a 2:1 hot standby group in the cluster, unbind the active AC with a smaller AP access specification value in the 2:1 hot standby group, form a 1:1 hot standby group with the newly accessed AC and the active AC, and switch the AP load of the active 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 active AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the active AC;

[0101] If there is no single AC in the cluster and there is no 2:1 hot standby group in the cluster, when the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as the main AC to form a 2:1 hot standby group, and when the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected to the standby AC of the first target hot standby group as the main AC to form a 2:1 hot standby group, wherein the first target hot standby group is a 1:1 hot standby group having the largest difference between the AP load value of the main AC and the AP access specification value of the standby AC in all hot standby groups in the cluster.

[0102] As a specific implementation manner, the device further includes a leaving module 720, and the leaving module 720 is configured to perform a leaving processing operation when it is detected that the AC leaves the cluster, and the leaving processing operation includes:

[0103] If the AC that left is the active AC in the original hot standby group, failover is performed on the AC that left, the type of the original hot standby group is determined, and the AP load values ​​and AP access specification values ​​of the remaining ACs in the original hot standby group are obtained;

[0104] If the type of the original hot standby group is a 2:1 hot standby group, when the first preset condition is met, the two remaining ACs in the original hot standby group are reorganized into a 1:1 hot standby group, and when the first preset condition is not met, for each remaining AC in the original hot standby group, the remaining AC is added to the second target hot standby group to form a 2:1 hot standby group, wherein the first preset condition is that the sum of the AP load values ​​of the two remaining ACs in the original hot standby group is less than the smaller value of the AP access specification values ​​of the two remaining ACs in the original hot standby group, and the second target hot standby group is a 1:1 hot standby group in which the difference between the AP access specification value of the standby AC and the AP load value of the active AC is greater than the AP load value of the remaining AC;

[0105] If the type of 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 re-matched 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, wherein the third target hot backup group is a 2:1 hot backup group, and 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 third target hot backup group, a total of four ACs, 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 backup AC and the AP load value of the active AC is greater than the AP load value of the remaining ACs in the original hot backup group.

[0106] As a specific implementation manner, the leaving module 720 specifically adds the remaining AC to the second target hot standby group to form a 2:1 hot standby group in the following manner:

[0107] For each remaining AC in the original hot standby group, determine whether there is a second target hot standby group in the cluster;

[0108] If the judgment result is yes, the remaining AC is added to the second target hot standby group to form a 2:1 hot standby group;

[0109] If the judgment result is no, the remaining AC maintains the status of a single AC.

[0110] As a specific implementation, the device further includes:

[0111] A monitoring module 730 is used to determine a previous cluster change event if no new AC joins or leaves the cluster for more than a preset period of time;

[0112] A 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, wherein the mixing processing operation includes: matching a newly accessed AC corresponding to the access event with a remaining AC in the 1:1 hot standby group corresponding to the leave event into a 1:1 hot standby 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 performing the hybrid processing operation;

[0114] The leaving module 720 is specifically configured to execute a leaving processing operation if the cluster change event only includes a leaving event or only a leaving event remains after executing the mixing processing operation.

[0115] As a specific implementation, the device further includes a deployment module 750, and the deployment module 750 is used to perform a deployment processing operation in the cluster deployment stage, and the deployment processing operation includes:

[0116] Get the AP access specification value of the AC to be matched;

[0117] APs are connected to ACs with the same specification values ​​and are matched in pairs to form a 1:1 hot standby group.

[0118] If the remaining APs have different access specification values, all remaining ACs are matched in pairs in ascending order of AP access specification values ​​to form a 1:1 hot standby group.

[0119] If there is a single AC to be matched left, the AC to be matched is added to the fifth target hot backup group to form a 2:1 hot backup group, wherein the fifth target hot backup group is the 1:1 hot backup group in which the difference between the AP access specification value of the active AC and the AP access specification value of the backup AC is the largest among all hot backup groups in the cluster, or the 1:1 hot backup group in which the AP access specification value of the backup AC is the largest among all hot backup groups in the cluster.

[0120] The present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 810 and a machine-readable storage medium 820, wherein the machine-readable storage medium 820 stores machine-executable instructions that can be executed by the processor 810, and the processor 810 is prompted by the machine-executable instructions to implement the steps of any of the above backup methods.

[0121] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.

[0122] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0123] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above backup methods are implemented.

[0124] The above is a detailed introduction to the scheme provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A backup method, It is characterized in that The method performs an access processing operation when detecting that the AC accesses the cluster, and the access processing operation includes: Get the AP access specification values ​​of the newly connected AC; If there is a single AC in the cluster, the newly connected AC is matched with the single AC as a 1:1 hot standby group, and when the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly connected AC; If there is no single AC in the cluster but there is a 2:1 hot standby group in the cluster, unbind the active AC with a smaller AP access specification value in the 2:1 hot standby group, form a 1:1 hot standby group with the newly accessed AC and the active AC, and switch the AP load of the active 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 active AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the active AC; If there is no single AC in the cluster and there is no 2:1 hot standby group in the cluster, when the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as the main AC to form a 2:1 hot standby group, and when the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected to the standby AC of the first target hot standby group as the main AC to form a 2:1 hot standby group, wherein the first target hot standby group is a 1:1 hot standby group having the largest difference between the AP load value of the main AC and the AP access specification value of the standby AC in all hot standby groups in the cluster.

2. The method according to claim 1, It is characterized in that The method performs a leaving process operation when detecting that the AC leaves the cluster, and the leaving process operation includes: If the AC that left is the active AC in the original hot standby group, failover is performed on the AC that left, the type of the original hot standby group is determined, and the AP load values ​​and AP access specification values ​​of the remaining ACs in the original hot standby group are obtained; If the type of the original hot standby group is a 2:1 hot standby group, when the first preset condition is met, the two remaining ACs in the original hot standby group are reorganized into a 1:1 hot standby group, and when the first preset condition is not met, for each remaining AC in the original hot standby group, the remaining AC is added to the second target hot standby group to form a 2:1 hot standby group, wherein the first preset condition is that the sum of the AP load values ​​of the two remaining ACs in the original hot standby group is less than the smaller value of the AP access specification values ​​of the two remaining ACs in the original hot standby group, and the second target hot standby group is a 1:1 hot standby group in which the difference between the AP access specification value of the standby AC and the AP load value of the active AC is greater than the AP load value of the remaining AC; If the type of 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 re-matched 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, wherein the third target hot backup group is a 2:1 hot backup group, and 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 third target hot backup group, a total of four ACs, 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 backup AC and the AP load value of the active 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, It is characterized in that Adding the remaining AC to the second target hot standby group to form a 2:1 hot standby group specifically includes: For each remaining AC in the original hot standby group, determine whether there is a second target hot standby group in the cluster; If the judgment result is yes, the remaining AC is added to the second target hot standby group to form a 2:1 hot standby group; If the judgment result is no, the remaining AC maintains the status of a single AC.

4. The method according to claim 2, It is characterized in that The method specifically performs the access processing operation or the leave processing operation in the following manner: If no new AC joins or leaves the cluster within the preset time, the previous cluster change event is determined; If the cluster change event includes both an access event and a leave event, a mixed processing operation is performed, wherein the mixed processing operation includes: matching the newly accessed AC corresponding to the access event with the remaining ACs in the 1:1 hot standby group corresponding to the leave event into a 1:1 hot standby group; If the cluster change event only includes an access event or only an access event remains after performing the hybrid processing operation, perform the access processing operation; If the cluster change event only includes a leave event or only a leave event remains after the hybrid processing operation is performed, a leave processing operation is performed.

5. The method according to claim 1, It is characterized in that The method performs a deployment processing operation in the cluster deployment stage, and the deployment processing operation includes: Get the AP access specification value of the AC to be matched; APs are connected to ACs with the same specification values ​​and are matched in pairs to form a 1:1 hot standby group. If the remaining APs have different access specification values, all remaining ACs are matched in pairs in ascending order of AP access specification values ​​to form a 1:1 hot standby group. If there is a single AC to be matched left, the AC to be matched is added to the fifth target hot backup group to form a 2:1 hot backup group, wherein the fifth target hot backup group is the 1:1 hot backup group in which the difference between the AP access specification value of the active AC and the AP access specification value of the backup AC is the largest among all hot backup groups in the cluster, or the 1:1 hot backup group in which the AP access specification value of the backup AC is the largest among all hot backup groups in the cluster.

6. A backup device, It is characterized in that The device includes an access module, and the access module is used to perform an access processing operation when detecting that an AC accesses a cluster, and the access processing operation includes: Get the AP access specification values ​​of the newly connected AC; If there is a single AC in the cluster, the newly connected AC is matched with the single AC as a 1:1 hot standby group, and when the AP access specification value of the newly connected AC is smaller than the AP access specification value of the single AC and the AP access specification value of the newly connected AC is larger than the AP load value of the single AC, the AP load of the single AC is switched to the newly connected AC; If there is no single AC in the cluster but there is a 2:1 hot standby group in the cluster, unbind the active AC with a smaller AP access specification value in the 2:1 hot standby group, form a 1:1 hot standby group with the newly accessed AC and the active AC, and switch the AP load of the active 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 active AC and the AP access specification value of the newly accessed AC is larger than the AP load value of the active AC; If there is no single AC in the cluster and there is no 2:1 hot standby group in the cluster, when the AP access specification value of the newly connected AC is greater than the AP access specification value of each AC in the first target hot standby group, the two ACs in the first target hot standby group are unbound and the two ACs are connected to the newly connected AC as the main AC to form a 2:1 hot standby group, and when the AP access specification value of the newly connected AC is less than or equal to the AP access specification value of the standby AC in the first target hot standby group, the newly connected AC is connected to the standby AC of the first target hot standby group as the main AC to form a 2:1 hot standby group, wherein the first target hot standby group is a 1:1 hot standby group having the largest difference between the AP load value of the main AC and the AP access specification value of the standby AC in all hot standby groups in the cluster.

7. The device according to claim 6, It is characterized in that The device further includes a leaving module, wherein the leaving module is configured to perform a leaving processing operation when detecting that the AC leaves the cluster, wherein the leaving processing operation includes: If the AC that left is the active AC in the original hot standby group, failover is performed on the AC that left, the type of the original hot standby group is determined, and the AP load values ​​and AP access specification values ​​of the remaining ACs in the original hot standby group are obtained; If the type of the original hot standby group is a 2:1 hot standby group, when the first preset condition is met, the two remaining ACs in the original hot standby group are reorganized into a 1:1 hot standby group, and when the first preset condition is not met, for each remaining AC in the original hot standby group, the remaining AC is added to the second target hot standby group to form a 2:1 hot standby group, wherein the first preset condition is that the sum of the AP load values ​​of the two remaining ACs in the original hot standby group is less than the smaller value of the AP access specification values ​​of the two remaining ACs in the original hot standby group, and the second target hot standby group is a 1:1 hot standby group in which the difference between the AP access specification value of the standby AC and the AP load value of the active AC is greater than the AP load value of the remaining AC; If the type of 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 re-matched 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, wherein the third target hot backup group is a 2:1 hot backup group, and 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 third target hot backup group, a total of four ACs, 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 backup AC and the AP load value of the active AC is greater than the AP load value of the remaining ACs in the original hot backup group.

8. The device according to claim 7, It is characterized in that The leaving module specifically adds the remaining AC to the second target hot standby group to form a 2:1 hot standby group in the following manner: For each remaining AC in the original hot standby group, determine whether there is a second target hot standby group in the cluster; If the judgment result is yes, the remaining AC is added to the second target hot standby group to form a 2:1 hot standby group; If the judgment result is no, the remaining AC maintains the status of a single AC.

9. The device according to claim 7, It is characterized in that The device also includes: A 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 mixing module, configured to perform a mixing processing operation if the cluster change event includes both an access event and a leave event, wherein the mixing processing operation includes: matching a new access AC corresponding to the access event with a remaining AC in a 1:1 hot standby group corresponding to the leave event into a 1:1 hot standby group; The access module is specifically configured to execute an access processing operation if the cluster change event only includes an access event or only an access event remains after executing the hybrid processing operation; The leaving module is specifically configured to execute a leaving processing operation if the cluster change event only includes a leaving event or only a leaving event remains after executing the mixing processing operation.

10. The device according to claim 6, It is characterized in that The device further includes a deployment module, which is used to perform deployment processing operations during the cluster deployment phase, and the deployment processing operations include: Get the AP access specification value of the AC to be matched; APs are connected to ACs with the same specification values ​​and are matched in pairs to form a 1:1 hot standby group. If the remaining APs have different access specification values, all remaining ACs are matched in pairs in ascending order of AP access specification values ​​to form a 1:1 hot standby group. If there is a single AC to be matched left, the AC to be matched is added to the fifth target hot backup group to form a 2:1 hot backup group, wherein the fifth target hot backup group is the 1:1 hot backup group in which the difference between the AP access specification value of the active AC and the AP access specification value of the backup AC is the largest among all hot backup groups in the cluster, or the 1:1 hot backup group in which the AP access specification value of the backup AC is the largest among all hot backup groups in the cluster.

11. An electronic device, It is characterized in that The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 5.

12. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 5 are implemented.

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

  • Main / standby switching hot backup method and device based on routing protocol

    CN112615751A

  • Backup recovery method, device and equipment and computer storage medium

    CN116795588A

  • Dual-computer hot backup method, system and device, computer equipment and storage medium

    CN116795601A