Disaster recovery backup method and device, computer storage medium, and electronic equipment

The optimal backup link is determined through the random network topology map and particle swarm optimization algorithm, which solves the problem in the existing technology that the optimal backup method cannot be globally comprehensively selected, and improves the efficiency and reliability of disaster recovery backup.

CN115412485BActive Publication Date: 2024-09-03CHINA TELECOM CORP LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202211009058.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-22
Publication Date
2024-09-03
Estimated Expiration
2042-08-22

AI Technical Summary

Technical Problem

Existing disaster recovery and backup technology cannot comprehensively select the optimal method for backup, resulting in low efficiency and reliability.

Method used

Using random network topology and particle swarm optimization algorithm, by generating initial data of the random optimization algorithm, iteratively updates the objective function to determine the optimal backup link, and combines the link data transmission time and constraints to achieve the global optimal backup link. choose.

Benefits of technology

It improves the efficiency and reliability of disaster recovery and backup, ensures the optimal selection of backup links, and meets link transmission time and constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115412485B
    Figure CN115412485B
Patent Text Reader

Abstract

The present disclosure belongs to the field of network security technology, and relates to a disaster recovery backup method and device, storage medium, and electronic device. The method includes: generating a random network topology map, and based on the random network topology map, randomly selecting a data source node and a backup node corresponding to the data source node; using the backup link between the data source node and the backup node as the initial data of the random optimization algorithm; using the objective function corresponding to the random optimization algorithm to iteratively update the initial data until the optimal backup link is determined in the backup link, so as to realize disaster recovery backup using the optimal backup link; the objective function includes the calculation relationship between the link data transmission time and the target link constraint condition. In the present disclosure, the objective function is the calculation relationship between the link transmission time and the target link constraint condition, and then using the random optimization algorithm to obtain the optimal backup link, which can balance the backup load and improve the backup speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of network security, and in particular to a disaster recovery backup method and device, a computer-readable storage medium, and an electronic device. Background Art

[0002] Disaster recovery backup technology means that when a disaster occurs to local data or the entire application system, the system stores at least one available copy of key business data in a different location, and the entire application system can be switched to another location so that the system functions can continue to work normally.

[0003] In the related technologies, traditional disaster recovery and backup technologies, such as remote mirroring technology, SAN (Storage Area Network) interconnection technology based on IP (Internet Protocol, a protocol for interconnecting networks), snapshot technology, etc., consume a lot of link bandwidth, rarely consider the situation of carrying resources, and cannot select the optimal method for disaster recovery and backup from a global perspective, which reduces the efficiency and reliability of disaster recovery and backup.

[0004] In view of this, there is an urgent need in the art to develop a new disaster recovery backup method and device.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide a disaster recovery backup method, a disaster recovery backup device, a computer-readable storage medium and an electronic device, thereby at least to a certain extent overcoming the problem of being unable to comprehensively select the optimal method for disaster recovery backup due to related technologies.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to a first aspect of an embodiment of the present invention, a disaster recovery backup method is provided, the method comprising: generating a random network topology graph, and based on the random network topology graph, randomly selecting a data source node and a backup node corresponding to the data source node; using a backup link between the data source node and the backup node as initial data of a random optimization algorithm; iteratively updating the initial data using an objective function corresponding to the random optimization algorithm until an optimal backup link is determined in the backup link, so as to implement disaster recovery backup using the optimal backup link; the objective function comprises a calculation relationship between a link data transmission time and a target link constraint.

[0009] In an exemplary embodiment of the present invention, the random network topology map includes network nodes and transmission links between network nodes; the data source node and the backup node corresponding to the data source node are randomly selected based on the random network topology map, including: randomly determining a data source node set and a backup node set among the network nodes; obtaining a preset number of backup nodes, and for any data source node in the data source node set, randomly determining a backup node that has a data transmission relationship with the any data source node in the backup node set; the number of backup nodes is the preset number of backup nodes.

[0010] In an exemplary embodiment of the present invention, the random optimization algorithm includes a particle swarm optimization algorithm; the iterative updating of the initial data using the objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link includes: initializing particle swarm parameters and constructing an objective function; calculating the initial data using the objective function to obtain a first calculation result, and determining a local optimal solution and a global optimal solution based on the first calculation result; determining a particle speed update calculation relationship between the local optimal solution, the global optimal solution, the initial particle swarm parameters and the initial data, and using the particle speed update calculation relationship to update the speed of the initial data to obtain a speed update result; determining the initial data and the speed The particle position update calculation relationship between the update results is determined, and the position of the initial data is updated using the particle position update calculation relationship to obtain a position update result; the position update result is calculated using the objective function to obtain a second calculation result, and the local optimal solution and the global optimal solution are updated according to the second calculation result; the velocity update result is continuously updated using the particle velocity update calculation relationship, and the position update result is continuously updated using the particle position update calculation relationship until an iterative update end condition is met; a target global optimal solution corresponding to the last iteration is determined, and the backup link corresponding to the target global optimal solution is determined as an optimal backup link; the last iteration is an iteration that meets the iterative update end condition.

[0011] In an exemplary embodiment of the present invention, the constructing of the objective function includes: determining the link data transmission time between the first parameter, the second parameter and the third parameter; the first parameter corresponds to the total amount of link transmission data, the second parameter corresponds to the total link transmission flow, and the third parameter corresponds to the link delay; determining the target link constraint condition according to the first link constraint condition and the second link constraint condition; the first link constraint condition is used to constrain the relationship between the data reception amount of the backup node and the capacity threshold of the backup node; the second link constraint condition is used to constrain the relationship between the number of the backup nodes and the preset number of backup nodes; constructing the objective function according to the link data transmission time and the target link constraint condition.

[0012] In an exemplary embodiment of the present invention, determining the target link constraint condition based on the first link constraint condition and the second link constraint condition includes: obtaining a first penalty factor corresponding to the first link constraint condition, and obtaining a second penalty factor corresponding to the second link constraint condition; and constructing the target link constraint condition based on the first penalty factor, the first link constraint condition, the second penalty factor, and the second link constraint condition.

[0013] In an exemplary embodiment of the present invention, the method of using the backup link between the data source node and the backup node as the initial data of the random optimization algorithm includes: determining the transmission link between any one of the data source nodes and the preset number of backup nodes; having the data transmission relationship between the backup node and any one of the data source nodes; determining the transmission link as a backup link, so as to use the backup link as the initial data of the random optimization algorithm.

[0014] In an exemplary embodiment of the present invention, the transmission link is determined as a backup link so as to use the backup link as the initial data of the random optimization algorithm, including: determining a third link constraint, a fourth link constraint, a fifth link constraint and a sixth link constraint; the third link constraint is used to limit the transmission flow of each link in the transmission link to a non-negative value, and the fourth link constraint is used to constrain the relationship between the link flow and the link transmission bandwidth of each link in the transmission link; the fifth link constraint is used to constrain the relationship between the ratio of the link flow to the total flow and the ratio of the link transmission data volume to the total transmission data volume; the sixth link constraint is used to constrain the relationship between the input flow of a node in the link and the output flow of the node in the link; if the transmission link satisfies the third link constraint, the fourth link constraint, the fifth link constraint and the sixth link constraint, the transmission link is determined as a target link so as to use the target link as the initial data of the random optimization algorithm.

[0015] According to a second aspect of an embodiment of the present invention, a disaster recovery backup device is provided, the device comprising: a generation module, configured to generate a random network topology map, and based on the random network topology map, randomly select a data source node and a backup node corresponding to the data source node; an initial module, configured to use the backup link between the data source node and the backup node as initial data of a random optimization algorithm; an update module, configured to iteratively update the initial data using an objective function corresponding to the random optimization algorithm until an optimal backup link is determined in the backup link, so as to implement disaster recovery backup using the optimal backup link; the objective function includes a calculation relationship between a link data transmission time and a link constraint condition.

[0016] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the disaster recovery backup method of any of the above exemplary embodiments is implemented.

[0017] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the disaster recovery backup method in any of the above exemplary embodiments is implemented.

[0018] It can be seen from the above technical solutions that the disaster recovery backup method, disaster recovery backup device, computer storage medium and electronic device in the exemplary embodiments of the present invention have at least the following advantages and positive effects:

[0019] In the method and device provided by the exemplary embodiments of the present disclosure, the initial data is iteratively updated using an objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link, and the objective function includes a calculation relationship between the link data transmission time and the target link constraint condition. The objective function is a calculation relationship between the link data transmission time and the target link constraint condition. Then, based on the objective function, the optimal backup link obtained using the random optimization algorithm is the optimal backup link selected from the global comprehensive selection, which improves the efficiency and reliability of disaster recovery backup.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0022] Figure 1 A schematic diagram of the process flow of the disaster recovery backup method in the embodiment of the present disclosure is shown;

[0023] Figure 2 The random network topology diagram generated by using the Waxman-Salama model in the disaster recovery and backup method of the embodiment of the present disclosure is schematically shown;

[0024] Figure 3 A schematic diagram schematically shows a process of randomly selecting a data source node and a backup node corresponding to the data source node in the disaster recovery backup method of an embodiment of the present disclosure;

[0025] Figure 4 A schematic diagram of a process of using a backup link between a data source node and a backup node as initial data of a random optimization algorithm in a disaster recovery backup method according to an embodiment of the present disclosure is schematically shown;

[0026] Figure 5 A schematic diagram of a process of using a backup link as initial data of a random optimization algorithm in a disaster recovery backup method according to an embodiment of the present disclosure is schematically shown;

[0027] Figure 6 A schematic diagram of a process of iteratively updating initial data using an objective function corresponding to a random optimization algorithm in a disaster recovery backup method according to an embodiment of the present disclosure is schematically shown;

[0028] Figure 7 A schematic diagram of a process for constructing an objective function in the disaster recovery and backup method according to an embodiment of the present disclosure is shown;

[0029] Figure 8 A schematic diagram of a process of determining a target link constraint condition according to a first link constraint condition and a second link constraint condition in a disaster recovery and backup method according to an embodiment of the present disclosure is schematically shown;

[0030] Fig. 9 A schematic diagram of the structure of a disaster recovery backup device in an embodiment of the present disclosure is shown;

[0031] Fig.10 An electronic device for a disaster recovery backup method in an embodiment of the present disclosure is schematically shown;

[0032] Fig.11 A computer-readable storage medium for a disaster recovery backup method in an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0034] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0035] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.

[0036] In view of the problems existing in the related technologies, the present invention proposes a disaster recovery backup method. Figure 1 A schematic diagram of the process of disaster recovery backup method is shown in FIG. Figure 1 As shown, the disaster recovery backup method at least includes the following steps:

[0037] Step S110: Generate a random network topology map, and randomly select a data source node and a backup node corresponding to the data source node based on the random network topology map.

[0038] Step S120: Use the backup link between the data source node and the backup node as initial data of the random optimization algorithm.

[0039] Step S130. Iteratively update the initial data using the objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link, so as to realize disaster recovery backup using the optimal backup link; the objective function includes the calculation relationship between the link data transmission time and the target link constraint condition.

[0040] In the method and device provided by the exemplary embodiments of the present disclosure, the initial data is iteratively updated using an objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link, and the objective function includes a calculation relationship between the link data transmission time and the target link constraint condition. The objective function is a calculation relationship between the link transmission time and the target link constraint condition. Then, based on the objective function, the optimal backup link obtained using the random optimization algorithm is the optimal backup link selected from the global comprehensive selection, which improves the efficiency and reliability of disaster recovery backup.

[0041] In step S110, a random network topology graph is generated, and based on the random network topology graph, a data source node and a backup node corresponding to the data source node are randomly selected.

[0042] In an exemplary embodiment of the present disclosure, a random network topology graph may be generated with the help of a model. For example, a random network topology generation model (Waxman-Salama model) proposed by Waxman may be used to generate a random network topology graph.

[0043] For example, Figure 2 The random network topology diagram generated by the Waxman-Salama model is schematically shown as follows: Figure 2 As shown, there are 10 network nodes in the random network topology diagram, namely network node 0, network node 1, network node 2, network node 3, network node 4, network node 5, network node 6, network node 7, network node 8 and network node 9.

[0044] Based on this, a data source node can be randomly selected from the above 10 network nodes. For example, network node 9, network node 4, network node 5 and network node 6 can be selected as data source nodes. Similarly, backup nodes corresponding to the data source nodes can be randomly selected from the above 10 network nodes. For example, network node 3, network node 8 and network node 2 can be selected as backup nodes for data source node 9. Network node 6, network node 0 and network node 1 can also be selected as backup nodes for data source node 4. Network node 4, network node 8 and network node 9 can also be selected as backup nodes for data source node 5.

[0045] In addition, you can Figure 2The source data volume, storage capacity and transmission bandwidth between network nodes of each network node are initialized, wherein the bandwidth value range can be 1000Gbps to 3000Gbps.

[0046] In an alternative embodiment, Figure 3 The schematic diagram of the process of randomly selecting a data source node and a backup node corresponding to the data source node in the disaster recovery backup method is shown. The random network topology diagram includes network nodes and transmission links between network nodes, such as Figure 3 As shown, the method at least includes the following steps: In step S310, a data source node set and a backup node set are randomly determined in the network nodes.

[0047] The random network topology graph consists of network nodes and transmission links between network nodes. Figure 2 As shown, there are 10 network nodes, namely network node 0, network node 1, network node 2, network node 3, network node 4, network node 5, network node 6, network node 7, network node 8 and network node 9. The link between network node 2 and network node 8 is the link between network nodes. Similarly, the link between any two network nodes is called a transmission link.

[0048] The data source node set refers to a set consisting of data source nodes, and these data source nodes are randomly selected from network nodes. Correspondingly, the backup node set refers to a set consisting of backup nodes, and the backup nodes are randomly selected from network nodes.

[0049] For example, Figure 2 As shown, the randomly selected data source nodes include network node 9, network node 4, network node 5, network node 6, network node 7, network node 8, network node 0 and network node 1. The randomly selected backup nodes include network node 3, network node 8, network node 2, network node 7, network node 4, network node 9, network node 0 and network node 1. Based on this, the data source node set can be expressed as A = {9, 4, 5, 6, 7, 8, 0, 1}, and the backup node set can be expressed as B = {3, 8, 2, 7, 4, 9, 0, 1}.

[0050] In step S320, the preset number of backup nodes is obtained, and for any data source node in the data source node set, a backup node having a data transmission relationship with any data source node is randomly determined in the backup node set; the number of backup nodes is the preset number of backup nodes.

[0051] The preset number of backup nodes refers to the preset number of backup nodes that need to be set during the disaster recovery backup process.

[0052] For example, the preset number of backup nodes is 3, the data source node set can be expressed as A = {9, 4, 5, 6, 7, 8, 0, 1}, and the backup node set can be expressed as B = {3, 8, 2, 7, 4, 9, 0, 1}.

[0053] Based on this, for data source node 9, three backup nodes need to be determined in backup node set B. For data source node 4, three backup nodes need to be determined in backup node set B. For data source node 5, three backup nodes need to be determined in backup node set B, until three backup nodes are determined in backup node set B for the last data source node 1 in data source node set A.

[0054] At this time, each data source node in the data source node set has a backup node having a data transmission relationship with it.

[0055] In this exemplary embodiment, for any data source node in the data source node set, a backup node that has a data transmission relationship with any data source node is randomly determined in the backup node set, which lays the foundation for subsequently using the backup link between the data source node and the backup node as the initial data of the random optimization algorithm.

[0056] In step S120, the backup link between the data source node and the backup node is used as initial data of the random optimization algorithm.

[0057] In the exemplary embodiments of the present disclosure, the backup link refers to the link between the data source node and the backup node. A random optimization algorithm is a type of algorithm that generates an initial solution within a domain, observes the performance of the initial solution, generates a new solution through certain mathematical rules and calculations, and searches for the optimal solution in an iterative process.

[0058] Specifically, the random optimization algorithm may be a particle swarm optimization algorithm, an artificial fish swarm algorithm, a simulated annealing algorithm, or other random optimization algorithms, which are not particularly limited in this exemplary embodiment.

[0059] For example, the data source node set can be expressed as A={9, 4, 5, 6, 7, 8, 0, 1}, and the backup node set can be expressed as B={3, 8, 2, 7, 4, 9, 0, 1}.

[0060] Based on this, it can be determined that the data source node is 9, the backup node is 3, the data source node is 9, the backup node is 7, the data source node is 9, and the backup node is 0; the data source node is 4, the backup node is 2, the data source node is 4, the backup node is 9, the data source node is 4, and the backup node is 1; until it is determined that the data source node is 1, the backup node is 0, the data source node is 1, the backup node is 4, the data source node is 1, and the backup node is 7.

[0061] Based on this, for data source node 9, backup node 3, there are paths L1, L2 and L3. For data source node 9, backup node 7, there are paths L4 and L5. For data source node 9, backup node 0, there are paths L6 and L7, until for data source node 1, backup node 7, there are paths L95, L97, L98, L99 and L100.

[0062] A path L2 is randomly determined from paths L1, L2, and L3 corresponding to data source node 9 and backup node 3, a path L4 is randomly determined from paths L4 and L5 corresponding to data source node 9 and backup node 7, a path L7 is randomly determined from paths L6 and L7 corresponding to data source node 9 and backup node 0, until a path L100 is randomly determined from paths L96, L97, L98, L99, and L100 corresponding to data source node 1 and backup node 7. Based on this, these randomly determined paths constitute the first row of data in the initial data, and similarly, other rows of data in the initial data can be determined.

[0063] In an alternative embodiment, Figure 4 The schematic diagram of the process of using the backup link between the data source node and the backup node as the initial data of the random optimization algorithm in the disaster recovery backup method is shown as follows: Figure 4 As shown, the method at least includes the following steps: in step S410, a transmission link between any data source node and a preset number of backup nodes is determined; a data transmission relationship exists between the backup node and any data source node.

[0064] Among them, it is necessary to determine the transmission link between any data source node and the backup node.

[0065] For example, the data source node set can be expressed as A={9, 4, 5, 6, 7, 8, 0, 1}, and the backup node set can be expressed as B={3, 8, 2, 7, 4, 9, 0, 1}.

[0066] Based on this, it can be determined that the data source node is 9, the backup node is 3, the data source node is 9, the backup node is 7, the data source node is 9, and the backup node is 0; the data source node is 4, the backup node is 2, the data source node is 4, the backup node is 9, the data source node is 4, and the backup node is 1; until it is determined that the data source node is 1, the backup node is 0, the data source node is 1, the backup node is 4, the data source node is 1, and the backup node is 7.

[0067] Based on this, for the data source node being 9 and the backup node being 3, there are transmission links L1, L2, and L3. For the data source node being 9 and the backup node being 7, there are transmission links L4 and L5. For the data source node being 9 and the backup node being 0, there are transmission links L6 and L7, until for the data source node being 1 and the backup node being 7, there are transmission links L96, L97, L98, L99, and L100.

[0068] In step S420, the transmission link is determined as a backup link, so that the backup link is used as initial data of the random optimization algorithm.

[0069] The determined transmission link is the backup link. At this time, the backup link is used as initial data of the random optimization algorithm.

[0070] For example, for a data source node of 9 and a backup node of 3, there are paths L1, L2, and L3. For a data source node of 9 and a backup node of 7, there are paths L4 and L5. For a data source node of 9 and a backup node of 0, there are paths L6 and L7, and so on, for a data source node of 1 and a backup node of 7, there are paths L95, L97, L98, L99, and L100.

[0071] A path L2 is randomly determined from paths L1, L2, and L3 corresponding to data source node 9 and backup node 3, a path L4 is randomly determined from paths L4 and L5 corresponding to data source node 9 and backup node 7, a path L7 is randomly determined from paths L6 and L7 corresponding to data source node 9 and backup node 0, until a path L100 is randomly determined from paths L96, L97, L98, L99, and L100 corresponding to data source node 1 and backup node 7. Based on this, these randomly determined paths constitute the first row of data in the initial data, and similarly, other rows of data in the initial data can be determined.

[0072] In this exemplary embodiment, the initial data of the random optimization algorithm is the backup link. Based on this, the optimal backup link can be determined later through the objective function in the random optimization algorithm to implement disaster recovery backup using the optimal backup link.

[0073] In an alternative embodiment, Figure 5 FIG. 4 shows a flow chart of using the backup link as the initial data of the random optimization algorithm in the disaster recovery backup method. Figure 5 As shown, the method includes at least the following steps: in step S510, determine the third link constraint condition, the fourth link constraint condition, the fifth link constraint condition and the sixth link constraint condition; the third link constraint condition is used to limit the transmission flow of each link in the transmission link to a non-negative value, the fourth link constraint condition is used to constrain the relationship between the link flow of each link in the transmission link and the link transmission bandwidth; the fifth link constraint condition is used to constrain the relationship between the ratio of the link flow to the total flow and the ratio of the link transmission data volume to the total transmission data volume; the sixth link constraint condition is used to constrain the relationship between the input flow of the node in the link and the output flow of the node in the link.

[0074] Among them, the third link constraint condition, the fourth link constraint condition, the fifth link constraint condition and the sixth link constraint condition are all conditions for limiting the transmission link, and the above four link constraint conditions are the most basic conditions that a transmission link should meet.

[0075] Specifically, each transmission link is composed of one or more links, for example Figure 2 As shown, the transmission links from the data source node 9 to the backup node 6 include transmission links 9-6, 9-5-7-3-6 and 9-5-3-6.

[0076] The third link constraint condition is used to limit the transmission flow of each link in the transmission link to a non-negative value, and the transmission flow rate refers to the amount of data transmitted in each link. For example, the third link constraint condition can be shown as formula (1).

[0077] f n ≥0 (1)

[0078] Wherein, fn represents the amount of transmission data of each link in the transmission link.

[0079] The fourth link constraint condition is used to constrain the relationship between the link flow of each link in the transmission link and the link transmission bandwidth. The link transmission bandwidth refers to the amount of data that can be transmitted in the link within a fixed time. Based on this, the fourth link constraint condition is used to constrain the relationship between the amount of data transmitted in the link and the amount of data that can be transmitted in the link within a fixed time. For example, the fourth link constraint condition is shown in formula (2).

[0080] f n ≤E(u,v) (2)

[0081] Among them, fn represents the traffic transmitted on each link in the transmission link, E(u, v) represents the amount of data that can be transmitted on each link in the transmission link within a fixed time, and (u, v) represents the link set on the transmission link.

[0082] The fifth link constraint condition is used to constrain the relationship between the first ratio and the second ratio, wherein the first ratio refers to the ratio between the link flow and the total flow, and the second ratio refers to the ratio between the link transmission data volume and the total transmission data volume of the network. For example, the fifth link constraint condition is shown in formula (3).

[0083]

[0084] Among them, f n represents the traffic transmitted by a certain link on the transmission link, and F represents the traffic used by a certain transmission link in the transmission link. Based on this, ∑ f∈F f n It represents the total flow of the transmission link, d ka It represents the amount of data transmitted by a certain link on the transmission link, ∑ k ∑ a∈A d ka It represents the total amount of data transmitted by the transmission link, and ω represents the limiting threshold.

[0085] The sixth link constraint condition refers to the relationship between the input flow of each node in the transmission link and the output flow of each node in the transmission link. For example, the sixth link constraint condition is shown in formula (4).

[0086]

[0087] Among them, A refers to the set of data source nodes in the network, and B refers to the set of backup nodes in the network. a refers to the data source node, b refers to the backup node, and f represents the traffic on the link between the two nodes. Based on this, formula (4) means that when u belongs to the data source node, the difference between the traffic from the data source node u to any network node v and any network node v to the data source node u is close to the traffic of the data source node u; when u belongs to the backup node, the difference between the traffic from the backup node u to any network node v and any network node v to the backup node u is close to the traffic of the backup node u; when u does not belong to the data source node or the backup node, the difference between the traffic from node u to any network node v and any network node v to node u is 0.

[0088] In step S520, if the transmission link satisfies the third link constraint condition, the fourth link constraint condition, the fifth link constraint condition and the sixth link constraint condition, the transmission link is determined as the target link, so as to use the target link as initial data of the random optimization algorithm.

[0089] Among them, after all transmission links are determined, it is necessary to judge whether the transmission link satisfies the third link constraint condition, the fourth link constraint condition, the fifth link constraint condition and the sixth link constraint condition; if the transmission link satisfies the third link constraint condition, the fourth link constraint condition, the fifth link constraint condition and the sixth link constraint condition, it is proved that the transmission link is a link that meets the basic link constraint condition, and then the transmission link can be used as the target transmission link as the initial data of the subsequent random optimization algorithm.

[0090] For example, there are 10 transmission links, among which transmission link Lx-1, transmission link Lx-4, transmission link Lx-7, and transmission link Lx-10 meet the third link constraint, the fourth link constraint, the fifth link constraint, and the sixth link constraint. Then, transmission link Lx-1, transmission link Lx-4, transmission link Lx-7, and transmission link Lx-10 are determined as target links, so that the target links are used as initial data of the random optimization algorithm.

[0091] In this exemplary embodiment, if the transmission link satisfies the third link constraint, the fourth link constraint, the fifth link constraint and the sixth link constraint, the transmission link is determined as the target link as the initial data of the random optimization algorithm, thereby avoiding the situation where the optimal backup link subsequently determined according to the random optimization algorithm does not satisfy the most basic link constraint, and improving the logic of determining the optimal backup link.

[0092] In step S130, the initial data is iteratively updated using an objective function corresponding to the random optimization algorithm until an optimal backup link is determined in the backup links, so as to implement disaster recovery backup using the optimal backup link; the objective function includes a calculation relationship between link data transmission time and target link constraint conditions.

[0093] In the exemplary embodiment of the present disclosure, the objective function refers to the basis for updating the initial data in the random optimization algorithm. Specifically, the objective function includes the calculation relationship between the link data transmission time and the target link constraint condition, the link data transmission time refers to the time required for data transmission in the backup link, and the target link constraint condition refers to the condition for improving the transmission efficiency. Specifically, the target link constraint condition can be a condition for balancing the backup load or a condition for determining the number of backup nodes, and this exemplary embodiment does not make any special restrictions on this.

[0094] The optimal backup link refers to the transmission link that best meets the objective function among the backup links. When the optimal backup link is determined, the optimal backup link can be used to implement disaster recovery backup.

[0095] For example, the objective function is the calculation relationship between the link transmission time and the target link constraint condition. Based on this, the optimal backup link determined can not only reduce the data transmission time (ie, the backup time), but also satisfy the backup link of the target link constraint condition.

[0096] In an alternative embodiment, Figure 6 The schematic diagram of the process of iteratively updating the initial data using the objective function corresponding to the random optimization algorithm in the disaster recovery backup method is shown. The random optimization algorithm includes a particle swarm optimization algorithm, such as Figure 6 As shown, the method includes at least the following steps: In step S610, the particle swarm parameters are initialized and the objective function is constructed.

[0097] The random optimization algorithm may specifically be a particle swarm optimization algorithm, which is a random optimization algorithm based on group collaboration and is developed by simulating the foraging behavior of bird flocks.

[0098] The particle swarm parameters refer to the parameters needed to execute the particle swarm optimization algorithm. Specifically, the particle swarm optimization parameters can be the particle swarm population size parameters, the value range of the particle velocity, the value range of the particle position, the number of iterations of the particle swarm optimization algorithm, the individual learning factor, and the social learning factor. This exemplary embodiment does not make special restrictions on this. The objective function refers to the basis for optimizing the particles in the particle swarm.

[0099] For example, the number of iterations of the particle swarm optimization algorithm, the size of the particle swarm population, the individual learning factor, and the social learning factor are initialized, and the objective function Object is constructed.

[0100] In step S620, the initial data is calculated using the objective function to obtain a first calculation result, and a local optimal solution and a global optimal solution are determined based on the first calculation result.

[0101] The first calculation result refers to the result obtained by calculating the initial data using the objective function, that is, the calculation result obtained by calculating each particle using the objective function, and each particle refers to the backup link between the data source node and the backup node.

[0102] For example, assuming there are 50 particles, the first calculation results corresponding to these 50 particles will be calculated in the first iteration. Based on this, these 50 first calculation results are the initial local optimal solutions pbest corresponding to these 50 particles, and the global optimal solution refers to the largest first calculation result gbest among these 50 first calculation results.

[0103] In step S630, the particle speed update calculation relationship among the local optimal solution, the global optimal solution, the initial particle swarm parameters and the initial data is determined, and the particle speed update calculation relationship is used to update the speed of the initial data to obtain a speed update result.

[0104] The particle speed update calculation formula refers to a formula for updating the particle speed. For example, the particle speed update calculation formula is shown in formula (5).

[0105]

[0106] Among them, d represents the iteration number, i represents the particle number, v represents the particle velocity, c1 represents the individual learning factor, c2 represents the social learning factor, x represents the particle position, pbest represents the local optimal solution, and gbest represents the global optimal solution.

[0107] According to the speed update calculation formula (5), the particle speed can be updated to obtain the speed update result, that is,

[0108] In step S640, a particle position update calculation relationship between the initial data and the speed update result is determined, and the particle position update calculation relationship is used to update the position of the initial data to obtain a position update result.

[0109] The particle position update calculation relationship refers to the calculation relationship for updating the particle position.

[0110] For example, the particle position update calculation relationship is shown in formula (6).

[0111]

[0112] Where i represents the number of particles, d represents the number of iterations, v represents the particle velocity, and x represents the particle position. Based on this, the position in the initial data can be updated using formula (6) to obtain the position update result.

[0113] In step S650, the position update result is calculated using the objective function to obtain a second calculation result, and the local optimal solution and the global optimal solution are updated according to the second calculation result.

[0114] After obtaining the speed update result and the position update result, the position update result may be calculated using the objective function to obtain a second calculation result, and at this time, the global optimal solution and the local optimal solution may be updated according to the second calculation result.

[0115] For example, by calculating the position update result using the objective function Object, a second calculation result corresponding to the position update result of each particle can be obtained.

[0116] According to the second calculation result, the local optimal solution can be obtained And the global optimal solution gbest d The local optimal solution obtained from the first calculation result And all the best solutions gbest d Compare and select the local optimal solution With local optimal solution The maximum value in is taken as the updated local optimal solution. Similarly, the global optimal solution gbest d And all the best solutions gbest d-1 Compare and take the global optimal solution gbest d All best solutions gbest d-1 The maximum value among them is taken as the updated global optimal solution.

[0117] In step S660, the particle velocity update result is continuously updated using the particle velocity update calculation relationship, and the particle position update result is continuously updated using the particle position update calculation formula until the iterative update end condition is met.

[0118] Among them, after updating the local optimal solution and the global optimal solution, it is necessary to continue to use the particle velocity update calculation relationship to update the particle velocity update result, and it is also necessary to continue to use the particle position update calculation formula to update the particle position update result until the iteration end condition is met.

[0119] The iteration end condition refers to the condition that ends the iterative update process. Specifically, the iteration end condition may be that the number of iterations reaches a preset number. The iteration end condition may also be that the global optimal solution obtained meets a preset accuracy. This exemplary embodiment does not make any special limitations on this.

[0120] In step S670, the target global optimal solution corresponding to the last iteration is determined, and the backup link corresponding to the target global optimal solution is determined as the optimal backup link; the last iteration is an iteration that meets the iterative update end condition.

[0121] The iterative process when the iterative update end condition is satisfied is the last iteration, the global optimal solution corresponding to the last iteration is the target global optimal solution, and further, the backup link corresponding to the target global optimal solution is the optimal backup link.

[0122] For example, the determined target global optimal solution corresponding to the last iteration, and then the backup link corresponding to the global optimal solution, is the optimal backup link.

[0123] In this exemplary embodiment, based on the particle swarm optimization algorithm, the optimal backup link is obtained in combination with the objective function to limit the optimization direction to the optimization direction corresponding to the objective function, thereby determining the optimal backup link that requires less backup time and meets the constraint conditions of the objective link.

[0124] In an alternative embodiment, Figure 7 The schematic diagram of the process of constructing the objective function in the disaster recovery backup method is shown as follows: Figure 7 As shown, the method includes at least the following steps: in step S710, determine the link data transmission time between the first parameter, the second parameter and the third parameter; the first parameter corresponds to the total amount of link transmission data, the second parameter corresponds to the total link transmission flow, and the third parameter corresponds to the link delay.

[0125] The link data transmission time is composed of the first parameter, the second parameter and the third parameter. The first parameter is used to describe the total amount of data transmitted on the transmission link, and the second parameter is used to describe the total transmission bandwidth on the transmission link, that is, to describe the total transmission flow on the transmission link. The third parameter specifically corresponds to the link delay, so the third parameter includes the processing delay of each node on the transmission link, the transmission delay between the nodes of the transmission link, and the transit delay at the nodes on the transmission link.

[0126] For example, the link data transmission time can be expressed as follows:

[0127]

[0128] Among them, l1,l2,…,l n is all transmission links, G is the link data transmission time corresponding to the transmission link, the total amount of data transmitted is the sum of the amount of data of each node on the transmission link, that is, the first parameter, and the total transmission flow is the sum of the flow of each link on the transmission link, that is, the second parameter. T is the third parameter, and MinG represents the minimum value of the link data transmission time of all backup links.

[0129] In step S720, the target link constraint is determined based on the first link constraint and the second link constraint; the first link constraint is used to constrain the relationship between the data reception amount of the backup node and the capacity threshold of the backup node; the second link constraint is used to constrain the relationship between the number of backup nodes and the preset number of backup nodes.

[0130] The first link constraint condition refers to the condition between the amount of data received by the constraint backup node and the capacity threshold of the backup node. Specifically, the second link constraint condition may be a relationship that the amount of data received by the constraint backup node is less than or equal to the capacity threshold of the backup node. The second link constraint condition refers to the condition that constrains the number of backup nodes. Specifically, it may be a condition that the number of constraint backup nodes is consistent with the number of preset nodes. The target link constraint condition refers to the constraint condition for constraining the backup link determined based on the first link constraint condition and the second link constraint condition.

[0131] For example, the first link constraint condition is shown in formula (8), the second link constraint condition is shown in formula (9), and the target link constraint condition is shown in formula (10).

[0132] ∑ v∈l v i ≤s i (8)

[0133] count(v n )=k,v n ∈I (9)

[0134]

[0135] Where v refers to each link in the backup link, l refers to the link set corresponding to the transmission link, and S refers to the capacity threshold for each link on the transmission link. n Refers to the backup links starting from the same data source node, so count(v n )=k means that the number of backup links starting from the same data source node is k. M is a penalty factor, which is used to determine the influence of the first link constraint condition and the second link constraint condition on the target link constraint condition. i =s i -∑ v∈l v i ,h=count(v n )-k.

[0136] In step S730, an objective function is constructed according to the link data transmission time and the target link constraint condition.

[0137] The objective function may be constructed based on link transmission time and target link constraint conditions.

[0138] For example, the objective function Object=P+MinG, where P is the target link constraint and MinG is the link data transmission time.

[0139] In this exemplary embodiment, the objective function is constructed based on the link data transmission time and the target link constraint condition. Among them, since the target link constraint condition is determined by the first link constraint condition and the second link constraint condition, this lays a foundation for subsequently determining the optimal backup link that can reduce the time required for backup, balance the backup load, and fully utilize the transmission bandwidth.

[0140] In an alternative embodiment, Figure 8 The schematic diagram of the process of determining the target link constraint condition according to the first link constraint condition and the second link constraint condition in the disaster recovery backup method is shown as follows: Figure 8 As shown, the method at least includes the following steps: In step S810, a first penalty factor corresponding to the first link constraint condition is obtained, and a second penalty factor corresponding to the second link constraint condition is obtained.

[0141] The first penalty factor corresponds to the first link constraint and is used to indicate the influence of the first link constraint on the target link constraint. The second penalty factor corresponds to the second link constraint and is used to indicate the influence of the second link constraint on the target link constraint.

[0142] For example, a first penalty factor corresponding to the first link constraint condition is obtained as M1, and a second penalty factor corresponding to the second link constraint condition is obtained as M2.

[0143] In step S820, a target link constraint condition is constructed according to the first penalty factor, the first link constraint condition, the second penalty factor and the second link constraint condition.

[0144] The first penalty factor may be the same as the second penalty factor, or may be different from the second penalty factor, which is not particularly limited in this exemplary embodiment.

[0145] For example, the target link constraint condition constructed is shown in formula (11).

[0146]

[0147] Among them, M1 is the first penalty factor, M2 is the second penalty factor, and the meanings of other variables are consistent with formula (10).

[0148] In this exemplary embodiment, the target link constraint condition is constructed based on the first penalty factor, the first link constraint condition, the second penalty factor and the second link constraint condition. Therefore, the influence of the first link constraint condition and the second link constraint condition in the target link constraint condition can be flexibly adjusted according to the first penalty factor and the second penalty factor, thereby obtaining the optimal backup link under different optimization directions.

[0149] In the method and device provided by the exemplary embodiments of the present disclosure, the initial data is iteratively updated using an objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link, and the objective function includes a calculation relationship between the link data transmission time and the target link constraint condition. The objective function is a calculation relationship between the link transmission time and the target link constraint condition. Then, based on the objective function, the optimal backup link obtained using the random optimization algorithm is the optimal backup link selected from the global comprehensive selection, which improves the efficiency and reliability of disaster recovery backup.

[0150] The following is a detailed description of the disaster recovery backup method in the embodiment of the present disclosure in conjunction with an application scenario.

[0151] Randomly generate Figure 2 The random network topology shown in the figure, and according to Figure 2 , randomly determine the data source node and the corresponding backup node. The backup link between the data source node and the backup node is used as the initial data of the particle swarm optimization algorithm.

[0152] An objective function corresponding to the particle swarm optimization algorithm is determined, and the initial data is updated using the objective function until the optimal backup link is determined. Based on this, the determined optimal backup link is used to implement disaster recovery backup.

[0153] In this application scenario, the initial data is iteratively updated using the objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link. In addition, the objective function includes the calculation relationship between the link data transmission time and the target link constraint condition. The objective function is the calculation relationship between the link transmission time and the target link constraint condition. Then, according to the objective function, the optimal backup link obtained by the random optimization algorithm is the optimal backup link selected from the global comprehensive, which improves the efficiency and reliability of disaster recovery backup.

[0154] In addition, in an exemplary embodiment of the present disclosure, a disaster recovery backup device is also provided. Fig. 9 The structure diagram of the disaster recovery backup device is shown in FIG. Fig. 9 As shown, the disaster recovery backup device 900 may include: a generation module 910, an initial module 920 and an update module 930. Among them:

[0155] The generation module 910 is configured to generate a random network topology map, and based on the random network topology map, randomly select a data source node and a backup node corresponding to the data source node; the initial module 920 is configured to use the backup link between the data source node and the backup node as the initial data of the random optimization algorithm; the update module 930 is configured to iteratively update the initial data using the objective function corresponding to the random optimization algorithm until the optimal backup link is determined in the backup link, so as to realize disaster recovery backup using the optimal backup link; the objective function includes the calculation relationship between the link data transmission time and the target link constraint condition.

[0156] The specific details of the above-mentioned disaster recovery backup device 900 have been described in detail in the corresponding disaster recovery backup method, so they are not repeated here.

[0157] It should be noted that although several modules or units of the disaster recovery backup device 900 are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0158] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0159] Refer to the following Fig.10 The electronic device 1000 according to such an embodiment of the present invention will be described. Fig.10 The electronic device 1000 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0160] like Fig.10 As shown, the electronic device 1000 is in the form of a general computing device. The components of the electronic device 1000 may include but are not limited to: the at least one processing unit 1010, the at least one storage unit 1020, a bus 1030 connecting different system components (including the storage unit 1020 and the processing unit 1010), and a display unit 1040.

[0161] The storage unit stores program codes, which can be executed by the processing unit 1010, so that the processing unit 1010 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0162] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 1021 and / or a cache memory unit 1022 , and may further include a read-only memory unit (ROM) 1023 .

[0163] The storage unit 1020 may also include a program / utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include the reality of a network environment.

[0164] Bus 1030 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0165] The electronic device 1000 may also communicate with one or more external devices 1070 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1000, and / or communicate with any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1050. Furthermore, the electronic device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the electronic device 1000 via a bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0166] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.

[0167] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0168] refer to Fig.11 As shown, a program product 1100 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0169] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0170] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0171] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0172] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0173] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A disaster recovery backup method, characterized in that: The method comprises: Generate a random network topology graph, and based on the random network topology graph, randomly select a data source node and a backup node corresponding to the data source node; Using the backup link between the data source node and the backup node as initial data of the random optimization algorithm; Initialize the particle swarm parameters and construct an objective function; the objective function includes a calculation relationship between link data transmission time and target link constraint conditions; Calculating the initial data using the objective function to obtain a first calculation result, and determining a local optimal solution and a global optimal solution according to the first calculation result; Determine a particle velocity update calculation relationship among the local optimal solution, the global optimal solution, the initialized particle swarm parameters, and the initial data, and determine a particle position update calculation relationship according to the particle velocity update calculation relationship; Obtaining a second calculation result by using the initial data and the particle position update calculation relationship, and updating the local optimal solution and the global optimal solution according to the second calculation result until an iterative update end condition is met; Determine a target global optimal solution corresponding to the last iteration, and determine the backup link corresponding to the target global optimal solution as the optimal backup link; the last iteration is an iteration that satisfies the iterative update end condition; The optimal backup link is used to implement disaster recovery backup.

2. The disaster recovery backup method according to claim 1, characterized in that: The random network topology graph includes network nodes and transmission links between network nodes; The randomly selecting a data source node and a backup node corresponding to the data source node based on the random network topology graph includes: Randomly determine a data source node set and a backup node set among the network nodes; Obtain the preset number of backup nodes, and for any one of the data source nodes in the data source node set, randomly determine a backup node in the backup node set that has a data transmission relationship with the any one of the data source nodes; the number of the backup nodes is the preset number of backup nodes.

3. The disaster recovery backup method according to claim 2, characterized in that: The method further comprises: Using the particle speed update calculation relationship, the speed of the initial data is updated to obtain a speed update result; Determine a particle position update calculation relationship between the initial data and the speed update result, and use the particle position update calculation relationship to update the position of the initial data to obtain a position update result; Calculating the position update result using the objective function to obtain a second calculation result, and updating the local optimal solution and the global optimal solution according to the second calculation result; The velocity update result is continuously updated using the particle velocity update calculation relationship, and the position update result is continuously updated using the particle position update calculation relationship until an iterative update end condition is met.

4. The disaster recovery backup method according to claim 3, characterized in that: The constructing of the objective function comprises: Determine a link data transmission time between a first parameter, a second parameter, and a third parameter; the first parameter corresponds to a total link transmission data volume, the second parameter corresponds to a total link transmission flow, and the third parameter corresponds to a link delay; Determine the target link constraint condition according to the first link constraint condition and the second link constraint condition; the first link constraint condition is used to constrain the relationship between the data receiving amount of the backup node and the capacity threshold of the backup node; the second link constraint condition is used to constrain the relationship between the number of the backup nodes and the preset number of backup nodes; An objective function is constructed according to the link data transmission time and the target link constraint condition.

5. The disaster recovery backup method according to claim 4, characterized in that: Determining the target link constraint condition according to the first link constraint condition and the second link constraint condition includes: Obtaining a first penalty factor corresponding to the first link constraint condition, and obtaining a second penalty factor corresponding to the second link constraint condition; A target link constraint condition is constructed according to the first penalty factor, the first link constraint condition, the second penalty factor, and the second link constraint condition.

6. The disaster recovery backup method according to claim 2, characterized in that: The step of using the backup link between the data source node and the backup node as initial data of a random optimization algorithm includes: Determine a transmission link between any one of the data source nodes and the preset number of backup nodes; the backup node and any one of the data source nodes have the data transmission relationship; The transmission link is determined as a backup link, so as to use the backup link as initial data of a random optimization algorithm.

7. The disaster recovery backup method according to claim 6, characterized in that: The step of determining the transmission link as a backup link so as to use the backup link as initial data of a random optimization algorithm includes: Determine a third link constraint condition, a fourth link constraint condition, a fifth link constraint condition and a sixth link constraint condition; the third link constraint condition is used to limit the transmission flow of each link in the transmission link to a non-negative value, the fourth link constraint condition is used to constrain the relationship between the link flow of each link in the transmission link and the link transmission bandwidth; the fifth link constraint condition is used to constrain the relationship between the ratio of the link flow to the total flow and the ratio of the link transmission data volume to the total transmission data volume; the sixth link constraint condition is used to constrain the relationship between the input flow of a node in the link and the output flow of the node in the link; If the transmission link satisfies the third link constraint condition, the fourth link constraint condition, the fifth link constraint condition and the sixth link constraint condition, the transmission link is determined as a target link, so as to use the target link as initial data of a random optimization algorithm.

8. A disaster recovery backup device, characterized in that: include: A generating module is configured to generate a random network topology map, and based on the random network topology map, randomly select a data source node and a backup node corresponding to the data source node; An initial module, configured to use the backup link between the data source node and the backup node as initial data of a random optimization algorithm; An updating module is configured to initialize particle swarm parameters and construct an objective function; the objective function includes a calculation relationship between link data transmission time and target link constraint conditions; The objective function is used to calculate the initial data to obtain a first calculation result, and a local optimal solution and a global optimal solution are determined according to the first calculation result; a particle velocity update calculation relationship among the local optimal solution, the global optimal solution, the initialized particle swarm parameters and the initial data is determined, and a particle position update calculation relationship is determined according to the particle velocity update calculation relationship; a second calculation result is obtained by using the initial data and the particle position update calculation relationship, and the local optimal solution and the global optimal solution are updated according to the second calculation result until an iterative update end condition is met; Determine a target global optimal solution corresponding to the last iteration, and determine the backup link corresponding to the target global optimal solution as the optimal backup link; the last iteration is an iteration that satisfies the iterative update end condition; The optimal backup link is used to implement disaster recovery backup.

9. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the disaster recovery backup method according to any one of claims 1 to 7 by executing the executable instructions.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the disaster recovery backup method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Clustering routing algorithm for ring wireless sensor network based on particle swarm optimization and lion's algorithm

    CN113453305A

  • Energy storage and information system double-layer collaborative planning method, device and medium

    CN113723807A

  • Communication network optimization simulation system, method and device based on OPNET

    CN114285758A

  • Topological design of survivable mesh-based transport networks

    US20020187770A1

  • Route selection device and route selection program

    WO2016129078A1