A highly reliable collaborative storage method for unmanned clusters
By electing cluster head nodes and intra-cluster nodes in the unmanned cluster, and using erasure coding technology to encode and decode data, the reliability problem of data storage and recovery in the unmanned cluster is solved, and efficient and reliable data storage and recovery are achieved. Recovery, reducing communication and storage pressure.
Patent Information
- Application Number
- CN202410467501.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-04-18
AI Technical Summary
In unmanned clusters, existing technologies are difficult to achieve highly reliable data storage and data recovery, leading to increased mission risks and costs.
By electing cluster head nodes and intra-cluster nodes in an unmanned cluster, erasure coding technology is used to encode and decode data to achieve efficient and reliable storage and recovery of data. Specific steps include electing cluster head nodes and intra-cluster nodes in an unmanned cluster. The cluster head node encodes the data and distributes it to intra-cluster nodes for storage. When data is lost, the lost data is restored through erasure coding technology.
It achieves efficient and reliable data storage and data recovery, reduces communication overhead and storage pressure, and improves the data reliability of unmanned clusters.
Smart Images

Figure CN118536174B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of unmanned cluster storage, and in particular, relates to a high-reliability collaborative storage method for unmanned clusters. Background Art
[0002] In recent years, with the rapid development of science and technology, unmanned swarm technology has emerged in the fields of military, environmental monitoring, search and rescue, etc. This technology connects multiple drones or robots to achieve high degree of collaboration and jointly complete complex tasks. At present, in the field of unmanned swarm networks, research is mainly focused on mission planning, formation control, routing protocols, communication strategies, etc., and there is less research in the direction of collaborative storage. However, in actual large-scale search and rescue missions, drone failures or data loss often occur, increasing mission risks and costs. The current conventional method is that each drone in the unmanned swarm stores a copy of the data of other drones, which increases the storage pressure of the drones, and the storage space of each drone is limited. When the unmanned swarm is large, high-reliability data storage cannot be achieved. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a highly reliable collaborative storage method for unmanned clusters to achieve efficient and reliable data storage and data recovery.
[0004] To solve the above technical problems, the embodiments of the present invention adopt the following technical solutions:
[0005] An embodiment of the present invention provides a highly reliable collaborative storage method for an unmanned cluster, comprising the following steps:
[0006] Step 10: elect a drone as the cluster head node in the unmanned cluster, and the remaining drones are cluster nodes;
[0007] Step 20: The cluster head node encodes the data using erasure coding technology and randomly sends it to the nodes in the cluster for storage; if a node in the cluster fails and causes some data to be lost, the cluster head node uses erasure coding technology to decode and recover the lost data;
[0008] Step 30: The cluster head node randomly sends the lost data to the remaining nodes in the cluster for storage.
[0009] As a further improvement of the embodiment of the present invention, in step 10, an improved HEED algorithm is used to elect a cluster head node and intra-cluster nodes in the unmanned cluster.
[0010] As a further improvement of the embodiment of the present invention, the step 10 specifically includes:
[0011] Step 101, set the communication limit distance, find the neighbor nodes of each node according to the communication limit distance; set the initial value for the probability of each node becoming a cluster head node, and use formula (1) to calculate the average reachable energy level value of each node:
[0012] Formula (1)
[0013] In the formula, represents the average achievable energy level value, Represents the total number of neighbor nodes, It represents the minimum value of the radio frequency power that the qth neighbor node can use to communicate with the cluster head node;
[0014] Step 102, multiple rounds of iterative elections are performed, each iterative election updates the average reachable energy level value of all nodes, and a judgment is made for each node:
[0015] If the node is a temporary cluster head node, there is a temporary cluster head node among its neighboring nodes, and the average reachable energy level of the node is the smallest, then the probability of the node becoming a cluster head node is updated to 1, and the node becomes a cluster head node; if there is no temporary cluster head node among its neighboring nodes, then the probability of the node becoming a cluster head node is increased, and the node becomes a temporary cluster head node; if the node is a temporary cluster head node, there is a temporary cluster head node among its neighboring nodes, and the average reachable energy level of the node is greater than the average reachable energy level of neighboring nodes that are also temporary nodes, then the probability of the node becoming a cluster head node is updated to 0, and the node becomes a node within the cluster;
[0016] After multiple rounds of iterative elections, if there is no temporary cluster head node among the neighboring nodes of the temporary cluster head node, or the average reachable energy level of the temporary cluster head node among the neighboring nodes is greater than the average reachable energy level of the node, the probability of the node becoming a cluster head node is updated to 1, and the node becomes the cluster head node, otherwise the node becomes a node within the cluster;
[0017] Step 103: The independent node becomes a node in the cluster.
[0018] As a further improvement of the embodiment of the present invention, the step 20 specifically includes:
[0019] Step 201: The nodes in the cluster send the collected data to the cluster head node, which divides the data into Data blocks , ; and Data blocks are randomly sent to Nodes in the cluster For storage, ; represents the total number of nodes in the cluster, and Greater than or equal to 2; Represents an integer greater than or equal to 1 and less than ;
[0020] Step 202: The cluster head node The data blocks are encoded to obtain Redundant Blocks , , and Redundant blocks are randomly sent to Nodes in the cluster For storage, ; data blocks and Redundant blocks information blocks;
[0021] Step 203, when lost When there are information blocks, the cluster head node uses the remaining The information blocks are decoded to obtain the lost data blocks; Represents an integer greater than or equal to 1, and less than or equal to .
[0022] As a further improvement of the embodiment of the present invention, in step 202, the erasure code is encoded using the Cauchy matrix to obtain redundant blocks; the encoding process is as follows:
[0023] Formula (2)
[0024] In the formula, represents the encoding matrix, , is the Cauchy matrix.
[0025] As a further improvement of the embodiment of the present invention, in step 203, the cluster head node performs decoding specifically including:
[0026] The remaining Information blocks constitute the decoded column vector;
[0027] Extract the rows corresponding to the decoding column vectors in the encoding matrix to form a decoding matrix;
[0028] Using formula (3), we can calculate the lost Information blocks:
[0029] Formula (3)
[0030] In the formula, represents the decoding matrix, Represents the decoded column vector.
[0031] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0032] The present invention provides a highly reliable collaborative storage method for unmanned clusters. First, an unmanned aerial vehicle is elected as a cluster head node in the unmanned cluster, and the remaining unmanned aerial vehicles are cluster nodes, so as to form an unmanned cluster collaborative storage topology structure. The unmanned aerial vehicle that becomes the cluster head node encodes the data collected by the remaining unmanned aerial vehicles and distributes it to the unmanned aerial vehicles that are cluster nodes for storage. In the event of data loss, the lost data can be decoded and restored through the remaining data. Efficient and reliable data storage and data recovery are achieved, with low communication overhead and low storage pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0034] Figure 1 It is a flow chart of a high-reliability collaborative storage method for unmanned clusters provided by the present invention. DETAILED DESCRIPTION
[0035] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings.
[0036] The embodiment of the present invention provides a highly reliable collaborative storage method for unmanned clusters. Figure 1 As shown, the following steps are included:
[0037] Step 10: In the unmanned cluster, one unmanned aerial vehicle is elected as the cluster head node, and the remaining unmanned aerial vehicles are cluster nodes. The nodes in the cluster communicate with each other and with the cluster head node to form an unmanned cluster collaborative storage topology. The cluster head node is responsible for data recovery, and the nodes in the cluster collaboratively store data under the overall allocation of the cluster head node.
[0038] Step 20: The cluster head node encodes the data using erasure coding technology and randomly sends it to the nodes in the cluster for storage. If a node in the cluster fails and causes some data to be lost, the cluster head node uses erasure coding technology to decode and recover the lost data to obtain the recovered data.
[0039] Step 30: The cluster head node randomly sends the recovered lost data to the remaining nodes in the cluster for storage.
[0040] The method of the embodiment of the present invention first elects a drone as a cluster head node in the unmanned cluster, and the remaining drones are cluster nodes, forming an unmanned cluster collaborative storage topology. The drone that becomes the cluster head node encodes the data collected by the remaining drones and distributes it to the drones that are cluster nodes for storage. In the case of data loss, the remaining data can be decoded and restored to restore the lost data. Efficient and reliable data storage and data recovery are achieved, with low communication overhead and low storage pressure.
[0041] As a preferred example, in step 10, the improved HEED algorithm is used to elect a cluster head node and cluster nodes in the unmanned cluster. The cluster head node is mainly used to distribute and record information blocks in the subsequent information recovery process.
[0042] Preferably, step 10 specifically includes:
[0043] Step 101: All drones in the unmanned cluster serve as nodes of a collaborative storage topology structure, and find neighbor nodes of each node according to a communication limit distance, wherein the communication limit distance is preset according to an actual application scenario.
[0044] Set the initial probability of becoming a cluster head node for each node. Specifically, considering the important position of cluster head nodes in collaborative storage, only by setting drones with low loss rate as cluster head nodes can the reliability of data storage be guaranteed. Generally, the initial value of the probability of becoming a cluster head node for nodes located at the edge is set to be smaller, and the initial value of the probability of becoming a cluster head node for nodes located at the center is set to be larger.
[0045] Step 102, multiple rounds of iterative elections are performed. In each iterative election, the average reachable energy level value of all nodes is updated. Specifically, the average reachable energy level value of the node is calculated using formula (1):
[0046] Formula (1)
[0047] In the formula, represents the average achievable energy level value, Represents the total number of neighbor nodes, It represents the minimum value of the radio frequency power that the qth neighbor node can use to communicate with the cluster head node.
[0048] In each iteration of the election, for each node, it is necessary to determine:
[0049] If the node is a temporary cluster head node, there is a temporary cluster head node among its neighboring nodes, and the average reachable energy level of the node is the smallest, then the probability of the node becoming a cluster head node is updated to 1, and the node becomes a cluster head node and broadcasts to all neighboring nodes. If there is no temporary cluster head node among its neighboring nodes, then the probability of the node becoming a cluster head node is increased, and the node becomes a temporary cluster head node. If the node is a temporary cluster head node, there is a temporary cluster head node among its neighboring nodes, and the average reachable energy level of the node is greater than the average reachable energy level of neighboring nodes that are also temporary nodes, then the probability of the node becoming a cluster head node is updated to 0, and the node becomes a node in the cluster.
[0050] After multiple rounds of iterative elections, if there is no temporary cluster head node among the neighboring nodes of the temporary cluster head node, or the average reachable energy level value of the temporary cluster head node among the neighboring nodes is greater than the average reachable energy level value of the node, the probability of the node becoming a cluster head node is updated to 1, and the node becomes the cluster head node, otherwise it becomes a node within the cluster.
[0051] Step 103: After multiple rounds of iterative elections, the node that has neither become a cluster head node nor a cluster node becomes a cluster node.
[0052] The above-mentioned embodiment of the invention adopts the improved HEED algorithm to elect the cluster head node. Compared with the random selection of cluster head nodes, it has the following two advantages: first, the probability of each drone becoming a cluster head node can be preliminarily set according to the actual situation; second, the average achievable energy level value of the entire system can be minimized, that is, the overhead of information communication within the system is reduced.
[0053] As a preferred example, step 20 specifically includes:
[0054] Step 201: The nodes in the cluster send the collected data to the cluster head node, which divides the data into Data blocks , . And will Data blocks are randomly sent to Nodes in the cluster For storage, A node in a cluster may be assigned to store one or more data blocks, or no data blocks. represents the total number of nodes in the cluster, and Greater than or equal to 2; Represents an integer greater than or equal to 1 and less than Randomly allocating data blocks can reduce the difficulty of work and ensure the arbitrariness of data block allocation.
[0055] Step 202: The cluster head node The data blocks are encoded to obtain Redundant Blocks , , and Redundant blocks are randomly sent to Nodes in the cluster For storage, . data blocks and Redundant blocks Information blocks are stored by nodes in the cluster.
[0056] Step 203, when lost When there are information blocks, the cluster head node uses the remaining data blocks and redundant blocks, that is, The information blocks are decoded to obtain the lost data blocks. Represents an integer greater than or equal to 1, and less than or equal to .in, The information blocks may include both data blocks and redundant blocks; they may be all data blocks; or they may be all redundant blocks. If the lost information blocks are all redundant blocks, there is no need to recover them.
[0057] In step 202, the erasure code is encoded using the Cauchy matrix to obtain redundant blocks; the encoding process is as follows:
[0058] Formula (2)
[0059] In the formula, represents the encoding matrix, , is the Cauchy matrix.
[0060] In step 203, the cluster head node performs decoding specifically including:
[0061] The remaining The information blocks constitute the decoded column vector.
[0062] The rows corresponding to the decoding column vectors in the encoding matrix are extracted to form a decoding matrix.
[0063] Using formula (3), we can calculate the lost Information blocks:
[0064] Formula (3)
[0065] In the formula, represents the decoding matrix, Represents the decoded column vector.
[0066] The recovered F information blocks include the lost data blocks, thereby obtaining the recovered lost data.
[0067] The embodiment of the present invention applies the erasure code technology based on the Cauchy matrix to unmanned cluster collaborative storage to ensure the highest possible success rate of recovery.
[0068] A specific example is provided below.
[0069] The unmanned swarm model and application scenario are constructed by using Matlab and PyCharm. The unmanned swarm consists of five drones, all of which are randomly distributed in a fixed space. The communication capabilities (initial energy, sending / receiving energy consumption, and communication distance) of each drone are similar, and the same length of communication data is used in the communication, and the control field length is the same.
[0070] After three rounds of iterative elections, the drone in the middle is the cluster head node, and the remaining drones are cluster nodes.
[0071] The nodes in the cluster send the collected data to the cluster head node, which divides the data into 4 data blocks. , , and , and randomly assigned to nodes in the cluster , , and For storage, the nodes in the cluster Storage data blocks , , nodes in the cluster No data blocks are stored, nodes in the cluster Storage data blocks , nodes in the cluster Storage data blocks .
[0072] The cluster head node encodes the data, and the encoding process is as follows:
[0073]
[0074] Get 3 redundant blocks , and , and randomly assigned to nodes in the cluster , and For storage, nodes in the cluster Storing redundant blocks , nodes in the cluster Storing redundant blocks , nodes in the cluster Storing redundant blocks .
[0075] In one experiment, the nodes in the cluster Failure, resulting in data block and If the data block is lost, the remaining data block and the redundant block form a decoding column vector , extract the rows corresponding to the decoding column vectors in the encoding matrix to form the decoding matrix .
[0076] The cluster head node performs decoding, and the decoding process is as follows:
[0077]
[0078] So as to get the lost data block and .
[0079] The cluster head node sends the data block and Randomly assigned to nodes in the cluster , and for storage.
[0080] In order to verify the performance of the method of the present invention, the node loss rate is preset, that is, the average probability of node loss when working in the current working environment. Then, according to the node loss rate, the probability of each node loss is calculated using formula (4):
[0081] Formula (4)
[0082] In the formula, represents the node loss rate, P represents the probability of node loss, and k represents the number of times the node is lost during the working phase. When k=0, the calculation is that the node has no loss during the working phase.
[0083] According to the probability of node loss, the possibility of losing h nodes among g nodes is calculated using formula (5):
[0084] Formula (5)
[0085] Where q represents the possibility of losing h nodes out of g nodes, P represents the probability of node loss, g represents the total number of nodes, and h represents the number of lost nodes.
[0086] Calculate the probability of different information blocks contained in the lost node, so as to calculate the probability of different information blocks being lost respectively. , , calculate the system failure probability S. The obtained probability that the system will not fail, that is, the value of the data success recovery rate is , the sum of the data success recovery rate and the system failure probability is 1.
[0087] The basic principles, main features and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the above specific embodiments, and the descriptions in the above specific embodiments and the specification are only for further illustrating the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention claimed for protection.
Claims
1. A highly reliable collaborative storage method for unmanned clusters, It is characterized in that The following steps are involved: Step 10: elect a drone as the cluster head node in the unmanned cluster, and the remaining drones are cluster nodes; Step 20: The cluster head node encodes the data using erasure coding technology and randomly sends it to the nodes in the cluster for storage; if a node in the cluster fails and causes some data to be lost, the cluster head node uses erasure coding technology to decode and recover the lost data; Step 30, the cluster head node randomly sends the lost data to the remaining nodes in the cluster for storage; The step 20 specifically includes: Step 201: The nodes in the cluster send the collected data to the cluster head node, which divides the data into Data blocks , ; and Data blocks are randomly sent to Nodes in the cluster For storage, ; represents the total number of nodes in the cluster, and Greater than or equal to 2; Represents an integer greater than or equal to 1 and less than ; Step 202: The cluster head node The data blocks are encoded to obtain Redundant Blocks , , and Redundant blocks are randomly sent to Nodes in the cluster For storage, ; data blocks and Redundant blocks information blocks; Step 203, when lost When there are information blocks, the cluster head node uses the remaining The information blocks are decoded to obtain the lost data blocks; Represents an integer greater than or equal to 1, and less than or equal to .
2. The highly reliable collaborative storage method according to claim 1, It is characterized in that In step 10, the improved HEED algorithm is used to elect a cluster head node and intra-cluster nodes in the unmanned cluster.
3. The highly reliable collaborative storage method according to claim 2, It is characterized in that The step 10 specifically includes: Step 101, set the communication limit distance, find the neighbor nodes of each node according to the communication limit distance; set the initial value for the probability of each node becoming a cluster head node, and use formula (1) to calculate the average reachable energy level value of each node: Formula (1) In the formula, represents the average achievable energy level value, Represents the total number of neighbor nodes, It represents the minimum value of the radio frequency power that the qth neighbor node can use to communicate with the cluster head node; Step 102, multiple rounds of iterative elections are performed, each iterative election updates the average reachable energy level value of all nodes, and a judgment is made for each node: If the node is a temporary cluster head node, there is a temporary cluster head node among its neighboring nodes, and the average reachable energy level of the node is the smallest, then the probability of the node becoming a cluster head node is updated to 1, and the node becomes a cluster head node; if there is no temporary cluster head node among its neighboring nodes, then the probability of the node becoming a cluster head node is increased, and the node becomes a temporary cluster head node; if the node is a temporary cluster head node, there is a temporary cluster head node among its neighboring nodes, and the average reachable energy level of the node is greater than the average reachable energy level of neighboring nodes that are also temporary nodes, then the probability of the node becoming a cluster head node is updated to 0, and the node becomes a node within the cluster; After multiple rounds of iterative elections, if there is no temporary cluster head node among the neighboring nodes of the temporary cluster head node, or the average reachable energy level of the temporary cluster head node among the neighboring nodes is greater than the average reachable energy level of the node, the probability of the node becoming a cluster head node is updated to 1, and the node becomes the cluster head node, otherwise the node becomes a node within the cluster; Step 103: The independent node becomes a node in the cluster.
4. The highly reliable collaborative storage method according to claim 1, It is characterized in that In step 202, the erasure code is encoded using the Cauchy matrix, and the redundant blocks; the encoding process is as follows: Formula (2) In the formula, represents the encoding matrix, , is the Cauchy matrix.
5. The highly reliable collaborative storage method according to claim 4, It is characterized in that In step 203, the cluster head node performs decoding specifically including: The remaining Information blocks constitute the decoded column vector; Extract the rows corresponding to the decoding column vectors in the encoding matrix to form a decoding matrix; Using formula (3), we can calculate the lost Information blocks: Formula (3) In the formula, represents the decoding matrix, Represents the decoded column vector.
Citation Information
Patent Citations
Communication and data return method for unmanned aerial vehicles in a cluster range
CN109905164A
Channel binding and access model and method for Mesh network of dynamic unmanned aerial vehicle group
CN111565394A
Erasure code data processing system and method, computer equipment and medium
CN115113816A
Unmanned aerial vehicle ad hoc network data reliable sharing method based on lightweight block chain
CN116319998A
Distributed reliable transmission guarantee method for unmanned cluster networking
CN117042083A
