A method for securely storing control chip data in the aerospace field
By obtaining the location and network status information of the backup nodes in the aerospace control chip, clustering and determining the primary and secondary nodes, and data backup is performed according to the distance and priority order, the problem of multi-node backup write conflict is solved, and backup efficiency and reliability are improved.
Patent Information
- Application Number
- CN202411815410.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-11
AI Technical Summary
When aerospace control chips perform data backup, multi-node backups are prone to write conflicts, resulting in data errors or loss.
By obtaining the location information and network status information of multiple backup nodes, clustering is performed to determine the primary node and the secondary node, and data backup is performed according to the distance between the primary node and the sending node and the priority order of the backup node.
It effectively reduces write conflicts during data backup, improves backup efficiency, and provides more reliable backups for aerospace control chip data.
Smart Images

Figure CN119271153B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method for securely storing control chip data in the aerospace field. Background Art
[0002] As the core of the spacecraft electronic system, the stability and security of aerospace control chips are directly related to the success of the entire space mission. Secure storage can ensure that the data in the control chip will not be lost or damaged even under extreme conditions, thereby ensuring the normal operation of the spacecraft and the smooth completion of the mission. When aerospace control chips need to synchronize data, they generally need to back up the data on multiple nodes. However, write conflicts are prone to occur during multi-node backup, which can lead to data errors or loss.
[0003] It can be seen that how to avoid write conflicts in multi-node backup when performing data backup in aerospace control chips has become an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above technical problems, the object of the present invention is to provide a method for securely storing data of a control chip in the aerospace field, comprising:
[0005] Obtain location information and network status information of multiple backup nodes;
[0006] Clustering the plurality of backup nodes according to the network status information of the plurality of backup nodes to obtain a plurality of clusters, wherein each cluster includes at least one backup node;
[0007] For each cluster, according to the distance between each backup node in the cluster and the sending node, and the network status information of each backup node, determine the primary node and the secondary node in the cluster;
[0008] According to the distance between each master node and the sending node, and the primary and secondary status of the backup nodes in each cluster, data backup is performed in the multiple backup nodes in sequence, wherein the master node that is closer to the sending node has an earlier backup order, and the backup order of the master node in the same cluster is prior to the secondary node.
[0009] Optionally, the step of performing data backup on the plurality of backup nodes in sequence according to the distance between each master node and the sending node and the primary and secondary status of the backup nodes in each cluster includes:
[0010] According to the distance between each master node and the sending node, the data to be backed up and the cluster information of the cluster where the master node is located are sent to each master node in turn, wherein the cluster information at least includes the secondary node identification information in the cluster. After receiving the data to be backed up and the cluster information of the cluster where the data is located, the master node sends the data to be backed up to the backup node corresponding to the secondary node identification information.
[0011] Optionally, the cluster information also includes the priority of each node in the cluster. After receiving the data to be backed up and the cluster information of the cluster to which it belongs, each master node sends the data to be backed up to the backup node corresponding to the secondary node identification information in turn according to the priority of each node in the cluster.
[0012] Optionally, for each cluster class, determining the primary node and the secondary node in the class according to the distance between each backup node and the sending node in the cluster class and the network status information of each backup node includes:
[0013] For each cluster, the priority of each backup node is calculated based on the distance between each backup node and the sending node in the cluster and the network status information of each backup node;
[0014] The backup node with the highest priority in the cluster is determined as the primary node of the cluster, and the remaining backup nodes are secondary nodes in the cluster.
[0015] Optionally, for each cluster, calculating the priority of each backup node according to the distance between each backup node and the sending node in the cluster and the network status information of each backup node includes:
[0016] Calculate the network stability of each backup node based on the network status information of each backup node;
[0017] For each cluster, the priority of each backup node is calculated according to the distance between each backup node and the sending node in the cluster and the network stability of each backup node.
[0018] Optionally, the network status information includes communication parameter information and communication relationship information with other backup nodes; and calculating the network stability of each backup node according to the network status information of each backup node includes:
[0019] For each backup node, the network stability of the backup node is calculated according to the communication parameter information of the backup node;
[0020] Calculate the split stability of the backup node based on the communication relationship information between the backup node and other backup nodes;
[0021] The network stability of the backup node is calculated based on the network stability and split stability of the backup node.
[0022] Optionally, for each backup node, calculating the network stability of the backup node according to the communication parameter information of the backup node includes:
[0023] Calculate the network transmission stability of each backup node based on the communication parameter information of each backup node;
[0024] For each backup node, the network stability of the backup node is calculated according to the change of the network transmission stability of the backup node within a first preset time period.
[0025] Optionally, the communication relationship information includes the number of communications and the duration of the communications, and the calculating the split stability of the backup node according to the communication relationship information between the backup node and other backup nodes includes:
[0026] Calculating the split stability of the backup node according to the number of times the backup node is divided into the same cluster within the second preset time period and the number of communications between the backup node and other backup nodes;
[0027] The cluster is a cluster obtained by clustering all backup nodes according to the communication relationship information between the backup nodes.
[0028] Optionally, the communication parameter information includes historical success rate, packet loss rate and trouble-free time.
[0029] Optionally, the network status information includes communication relationship information with other backup nodes, and clustering the multiple backup nodes according to the network status information of the backup nodes to obtain multiple clusters includes:
[0030] For every two backup nodes, the weight of the edge between the two backup nodes is calculated according to the communication relationship information between the two backup nodes;
[0031] Constructing a graph structure between the plurality of backup nodes according to the weights of the edges between all backup nodes;
[0032] The graph structure is split and clustered using a clustering algorithm CABDDCG based on dynamic splitting of connected graphs to obtain multiple clusters.
[0033] The present invention has the following beneficial effects: the method clusters multiple backup nodes according to the communication relationship between the multiple backup nodes, determines the priority of the backup nodes according to the network status information of each backup node, and determines the primary and secondary nodes in each cluster according to the priority of each backup node, and then backs up data for multiple backup nodes in sequence according to the distance between all the primary nodes and the sending node and the priority order of the backup nodes in each cluster, wherein the primary node with a closer distance to the sending node has a higher priority in the backup order, and the backup order of the primary node in the same cluster is higher than that of the secondary node. In this way, the write conflict during data backup can be effectively reduced, the backup efficiency can be improved, and a more reliable backup can be provided for aerospace control chip data. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A first schematic diagram of a method for securely storing data of a control chip in the aerospace field provided by an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of a graph structure between multiple backup nodes provided by an embodiment of the present invention;
[0037] Figure 3 for Figure 2 The schematic diagram of the classification connectivity graph after the graph structure is split is shown;
[0038] Figure 4 A second schematic diagram of the method for securely storing control chip data in the aerospace field provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a control chip data security storage method in the aerospace field proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0040] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0041] The present invention provides a method for securely storing data of a control chip in the aerospace field. The scheme of the present invention is described in detail below in conjunction with the accompanying drawings.
[0042] See also Figure 1 , which shows a first schematic diagram of a method for securely storing data of a control chip in the aerospace field provided by an embodiment of the present invention. The method for securely storing data of a control chip in the aerospace field (hereinafter referred to as “the method”) comprises the following steps:
[0043] Step 101: Obtain location information and network status information of multiple backup nodes.
[0044] In this step, the method obtains the location information and network status information of multiple backup nodes. The network status information may include the communication relationship information between the backup node and other backup nodes and the communication parameter information of the communication node itself. The method also needs to obtain the location information of the sending node to facilitate the subsequent calculation of the distance between the backup node and the sending node. The method described in the present invention can be applied to the sending node or to other devices in the network. It can be understood that when the method described in the present invention is applied to the sending node, the method directly obtains the location information of the sending node itself as the location information of the sending node. When the method described in the present invention is applied to other devices in the network, the sending node will send its own location information to the device when data backup is required.
[0045] The network status information may be network status information within a historical period. For example, the method may obtain network status information of the backup node in a month. In the case where the backup node is a physical server or a virtual server in a monitoring data center, the method may use SNMP (Simple Network Management Protocol), WMI (Windows Management Instrumentation) protocol and / or CLI (Command Line Interface) protocol to obtain the network status information of the backup node.
[0046] Step 102: Cluster the multiple backup nodes according to the network status information of the multiple backup nodes to obtain multiple clusters, wherein each cluster includes at least one backup node.
[0047] In this step, the method clusters the multiple backup nodes according to the network status information of the multiple backup nodes to obtain multiple clusters, wherein each cluster includes at least one backup node. Specifically, the method can construct a graph structure between the multiple backup nodes according to the communication relationship between all backup nodes, and then use CABDDCG (Clustering Algorithm Based on Dynamic Division of Connected Graph) to split and cluster the graph structure to obtain multiple clusters. For example, assuming that the graph structure constructed by the communication relationship is as follows Figure 2 As shown, when using CABDDCG Figure 2 After classifying and clustering the graph structure shown in Figure 3 The connected graph shown in FIG. 1 can divide the backup nodes in the same connected graph into a cluster. The CABDDCG belongs to the prior art and will not be described in detail here. In some embodiments, the method can calculate the weight of the edge between the two backup nodes according to the communication relationship information between the two backup nodes, and then construct the graph structure between the multiple backup nodes according to the weights of the edges between all the backup nodes.
[0048] Step 103: For each cluster, according to the distance between each backup node in the cluster and the sending node, and the network status information of each backup node, determine the primary node and the secondary node in the cluster.
[0049] In this step, for each cluster class, the method determines the primary node and the secondary node in the cluster class according to the distance between each backup node and the sending node in the cluster class, and the network status information of each backup node. Specifically, for each cluster class, the method can calculate the priority of each backup node according to the distance between each backup node and the sending node in the cluster class, and the network status information of each backup node, and then determine the backup node with the highest priority in the cluster class as the primary node of the cluster class, and the remaining backup nodes as the secondary nodes in the cluster class.
[0050] Step 104: perform data backup in the multiple backup nodes in sequence according to the distance between each master node and the sending node, and the primary and secondary status of the backup nodes in each cluster. The master node that is closer to the sending node has an earlier backup order, and the backup order of the master node in the same cluster is higher than that of the secondary node.
[0051] In this step, the method backs up data in the multiple backup nodes in sequence according to the distance between each master node and the sending node, and the primary and secondary status of the backup nodes in each cluster class, wherein the master node that is closer to the sending node has an upper backup order, and the backup order of the master node in the same cluster class is higher than that of the secondary node. Specifically, for the master nodes in all cluster classes, the method can back up data in the master nodes in each cluster class in sequence according to the distance between each master node and the sending node, giving priority to the master nodes that are closer to the sending node. After completing the backup of the master node in a certain cluster class, the method further backs up data in the secondary nodes in the cluster class. The method can directly send the data to be backed up to the secondary nodes in the cluster class for data backup after the master node in the cluster class completes the data backup, or it can notify the master node in the cluster class to send the data to be backed up to the secondary nodes in its cluster class for data backup after completing the data backup.
[0052] When the method is applied to a sending node, the method directly controls the sending node to send the data to be backed up directly to the master node in each cluster class; when the method is applied to other devices, the method can send a notification message to the sending node to notify the sending node to send the data to be backed up to the master node in each cluster class in turn, or the method can receive the data to be backed up sent by the sending node and send the data to be backed up to the master node in each cluster class.
[0053] In an embodiment of the present invention, the method clusters multiple backup nodes according to the communication relationship between the multiple backup nodes, determines the priority of the backup node according to the network status information of each backup node, and determines the primary and secondary nodes in each cluster according to the priority of each backup node, and then backs up data for multiple backup nodes in sequence according to the distance between all the primary nodes and the sending node and the priority order of the backup nodes in each cluster, wherein the primary node with a closer distance to the sending node has a higher priority in the backup order, and the backup order of the primary node in the same cluster is higher than that of the secondary node. In this way, the write conflict during data backup can be effectively reduced, the backup efficiency can be improved, and a more reliable backup can be provided for aerospace control chip data.
[0054] Optionally, for each cluster class, the primary node and the secondary node in the class are determined according to the distance between each backup node and the sending node in the cluster class, and the network status information of each backup node, including: for each cluster class, the priority of each backup node is calculated according to the distance between each backup node and the sending node in the cluster class, and the network status information of each backup node; the backup node with the highest priority in the cluster class is determined as the primary node of the cluster class, and the remaining backup nodes are secondary nodes in the cluster class.
[0055] In this embodiment, for each cluster, the method calculates the priority of each backup node according to the distance between each backup node and the sending node in the cluster, and the network status information of each backup node; the backup node with the highest priority in the cluster is determined as the primary node of the cluster, and the remaining backup nodes are secondary nodes in the cluster. For the calculation of the priority, the method can calculate the network stability of each backup node according to the network status information of each backup node, and then calculate the priority of each backup node according to the distance between each backup node and the sending node, and the network stability of each backup node.
[0056] Optionally, for each cluster class, the priority of each backup node is calculated according to the distance between each backup node and the sending node in the cluster class, and the network status information of each backup node, including: calculating the network stability of each backup node according to the network status information of each backup node; for each cluster class, the priority of each backup node is calculated according to the distance between each backup node and the sending node in the cluster class, and the network stability of each backup node.
[0057] Since the transmission distance in the aerospace field is generally long, network clock synchronization is the basis for each node in the aerospace network to achieve real-time data communication, so the priority of each backup node can be calculated in combination with the distance between the backup node and the sending node. In this embodiment, the method calculates the network stability of each backup node based on the network status information of each backup node; for each cluster, the priority of each backup node is calculated based on the distance between each backup node and the sending node in the cluster, and the network stability of each backup node.
[0058] Specifically, for the The method can use the following formula to calculate the number of backup nodes. The priority of the backup nodes :
[0059]
[0060] in, Indicates The priority of the backup nodes. Indicates The distance between the backup node and the sending node, Indicates The network stability of the backup nodes.
[0061] Optionally, the network status information includes communication parameter information and communication relationship information with other backup nodes; the method of calculating the network stability of each backup node based on the network status information of each backup node includes: for each backup node, calculating the network stability of the backup node based on the communication parameter information of the backup node; calculating the split stability of the backup node based on the communication relationship information between the backup node and other backup nodes; and calculating the network stability of the backup node based on the network stability and split stability of the backup node.
[0062] Since aerospace control chips generally have relatively high requirements for network stability, it is necessary to pay attention not only to the network stability of the backup node itself, but also to the stability of the communication relationship between it and other backup nodes (that is, the number of times the backup node is divided into the same cluster in multiple clustering, that is, the split stability of the backup node). In this embodiment, the network status information includes communication parameter information and communication relationship information with other backup nodes. For each backup node, the method can calculate the network stability of the backup node based on the communication parameter information of the backup node; calculate the split stability of the backup node based on the communication relationship information between the backup node and other backup nodes; calculate the network stability of the backup node based on the network stability and split stability of the backup node.
[0063] Specifically, for the The method can use the following formula to calculate the number of backup nodes. Network stability of backup nodes :
[0064]
[0065] in, Indicates The network stability of the backup nodes Indicates The network stability of the backup nodes, Indicates The split stability of backup nodes, represents the normalized exponential function.
[0066] Optionally, for each backup node, the network stability of the backup node is calculated according to the communication parameter information of the backup node, including: calculating the network transmission stability of each backup node according to the communication parameter information of each backup node; for each backup node, calculating the network stability of the backup node according to the change of the network transmission stability of the backup node within a first preset time period.
[0067] When performing data backup, aerospace control chips need to prioritize storing data in network nodes where the network remains stable, so that sudden changes in the network will not cause improper data storage. However, the network status of each backup node is actually constantly changing, and the method can calculate the network stability of the backup node in combination with the changes in the network transmission stability within the first preset time period. In this embodiment, the method calculates the network transmission stability of each backup node based on the communication parameter information of each backup node; then, for each backup node, the network stability of the backup node is calculated based on the changes in the network transmission stability of the backup node within the first preset time period.
[0068] Specifically, for the The method can use the following formula to calculate the number of backup nodes. Network stability of backup nodes :
[0069]
[0070] in, Indicates The network stability of the backup nodes, Indicates The average value of network transmission stability of backup nodes within the first preset time period, represents the number of time units included in the first preset duration, Indicates the first preset duration. time unit, Indicates The backup node is the first one within the first preset time. The network transmission stability of a time unit.
[0071] In the above formula, Indicates The fluctuation of the network transmission stability of the backup node within the first preset time. The larger the value, the Network stability of backup nodes The smaller.
[0072] In the embodiment of the present invention, the first preset time length can be set according to specific circumstances. For example, the first preset time length can be the most recent month in the past, and the time unit is one day.
[0073] Optionally, the communication relationship information includes the number of communications and the duration of communications, and the calculating of the split stability of the backup node based on the communication relationship information between the backup node and other backup nodes includes: calculating the split stability of the backup node based on the number of times the backup node is divided into the same cluster within a second preset time period and the number of communications between the backup node and other backup nodes; wherein the cluster is a cluster obtained by clustering all backup nodes based on the communication relationship information between the backup nodes.
[0074] Since the data interaction between backup nodes in the network varies, clustering can be performed based on the weights between backup nodes in each time unit to determine the clusters to which backup nodes belong in different time units. If a backup node belongs to different clusters in each time unit within the second preset time period, it means that the stability of the backup node is relatively poor. If the backup node always exists in the same cluster, it means that the stability of the backup node is relatively strong.
[0075] In this embodiment, the communication relationship information may include the number of communications within a time unit and the duration of the communication. For each backup node, the method calculates the split stability of the backup node based on the number of times the backup node is divided into the same cluster class in each time unit within a second preset time unit, and the number of communications between the backup node and other backup nodes in each time unit within the second preset time unit; wherein the cluster class is a cluster class obtained by clustering all backup nodes according to the communication relationship information between the backup nodes.
[0076] Specifically, for the The method can use the following formula to calculate the number of backup nodes. Split stability of backup nodes :
[0077]
[0078] in, Indicates The split stability of backup nodes, Indicates The maximum number of times a backup node is split to the same cluster within the second preset time period. represents the number of time units included in the second preset duration, Indicates The average number of communications between a backup node and other backup nodes in each time unit within the second preset time length.
[0079] The second preset duration may be the same as the first preset duration, or may be a different duration, which is not specifically limited in the present invention.
[0080] Optionally, the communication parameter information includes historical success rate, packet loss rate and trouble-free time.
[0081] When data is transmitted in the network, it will be lost or delayed during the transmission process, resulting in a lower success rate of network transmission of the backup node and an increase in the packet loss rate. In addition, if the network of the backup node is unstable, the average time between failures of the backup node network transmission will also be reduced. Therefore, the stability of the network transmission of the backup node can be calculated by combining the historical success rate, packet loss rate and time between failures.
[0082] In this embodiment, the communication parameter information includes historical success rate, packet loss rate and trouble-free time, and the method calculates the network transmission stability of each backup node according to the historical success rate, packet loss rate and trouble-free time.
[0083] Specifically, for the The method can use the following formula to calculate the number of backup nodes. Network transmission stability of backup nodes :
[0084]
[0085] in, Indicates The network transmission stability of the backup nodes, Indicates The historical success rate of backup nodes, Indicates The packet loss rate of the backup nodes, Indicates The mean time between failures of backup nodes.
[0086] In the above formula, Indicates The ratio of the historical success rate to the packet loss rate of the backup node. The larger the value, the better. The more stable the network transmission of the backup node is, the smaller the probability of abnormal situations occurring; Indicates The average time between failures of backup nodes is higher. The more backup nodes the more stable the network transmission is.
[0087] Optionally, the network status information includes communication relationship information with other backup nodes, and the clustering of the multiple backup nodes according to the network status information of the backup nodes to obtain multiple clusters includes: for every two backup nodes, calculating the weight of the edge between the two backup nodes according to the communication relationship information between the two backup nodes; constructing a graph structure between the multiple backup nodes according to the weights of the edges between all backup nodes; and using a clustering algorithm CABDDCG based on dynamic splitting of connected graphs to split and cluster the graph structure to obtain multiple clusters.
[0088] In this embodiment, the method calculates the weight of the edge between the two backup nodes based on the communication relationship information between the two backup nodes; constructs a graph structure between the multiple backup nodes based on the weights of the edges between all backup nodes; and uses a clustering algorithm CABDDCG based on dynamic splitting of connected graphs to split and cluster the graph structure to obtain multiple clusters.
[0089] In some embodiments, each backup node can be used as a vertex in a graph structure. If there is a communication relationship between two backup nodes, it is determined that there is a communication relationship between the two backup nodes, and it can be determined that there is an edge between the two backup nodes. The method can calculate the weight of the edge between the two backup nodes based on the communication relationship information between the two backup nodes; and then construct the graph structure between the multiple backup nodes based on the edge weights.
[0090] Specifically, for the The backup nodes and The method can use the following formula to calculate the number of backup nodes. The backup node and The weight of the edge between backup nodes :
[0091]
[0092] in, Indicates The backup node and The weight of the edge between backup nodes, Indicates The backup node and The number of communications between backup nodes. Indicates The backup node and The first communications, Indicates The backup node and The first The duration of the communication.
[0093] Please read further Figure 4 , Figure 4 is a second schematic diagram of a method for securely storing data of a control chip in the aerospace field provided by an embodiment of the present invention, such as Figure 4 As shown, the method comprises the following steps:
[0094] Step 401: Obtain location information and network status information of multiple backup nodes.
[0095] Step 402: Cluster the multiple backup nodes according to the network status information of the multiple backup nodes to obtain multiple clusters, where each cluster includes at least one backup node.
[0096] Step 403: For each cluster, determine the primary node and the secondary node in the cluster according to the distance between each backup node in the cluster and the sending node, and the network status information of each backup node.
[0097] The steps 401-403 are Figure 1 Steps 101-103 in the illustrated embodiment are the same and will not be described in detail herein.
[0098] Step 404: according to the distance between each master node and the sending node, the data to be backed up and the cluster information of the cluster class where the master node is located are sent to each master node in turn, wherein the cluster information at least includes the secondary node identification information in the cluster class. After receiving the data to be backed up and the cluster information of the cluster class where the master node is located, the master node sends the data to be backed up to the backup node corresponding to the secondary node identification information. The closer the distance between the master node and the sending node, the higher the backup order of the master node, and the backup order of the master node in the same cluster class is before the secondary node.
[0099] In this step, the method sends the data to be backed up and the cluster information of the cluster class where the master node is located to each master node in turn according to the distance between each master node and the sending node, wherein the cluster information at least includes the identification information of the secondary nodes in the cluster class. After receiving the data to be backed up and the cluster information of the cluster class where the master node is located, the master node sends the data to be backed up to the backup node corresponding to the identification information of the secondary node. The master node can send the data to be backed up to multiple secondary nodes in the cluster class where it is located at the same time, and can also send the data to be backed up to multiple secondary nodes in the cluster class where it is located in a certain order. In some embodiments, the cluster information also includes the priority of each node in the cluster class, and the master node can directly send the data to be backed up to the secondary nodes in turn according to the priority of each node, wherein the data to be backed up is preferentially sent to the secondary nodes with higher priorities.
[0100] In this embodiment, the method clusters multiple backup nodes according to the communication relationship between the multiple backup nodes, determines the priority of the backup node according to the network status information of each backup node, and determines the primary and secondary nodes in each cluster according to the priority of each backup node, and then sends the data to be backed up to the master node in each cluster in turn according to the distance between all the master nodes and the sending node, wherein the master node that is closer to the sending node has an upper backup order, and the master node in each cluster further backs up the data in the secondary nodes in its cluster in turn after receiving the data to be backed up. In this way, the write conflict when backing up data in the master node can be effectively reduced, and the backup efficiency is improved, providing a more reliable backup for aerospace control chip data.
[0101] Optionally, the cluster information also includes the priority of each node in the cluster. After receiving the data to be backed up and the cluster information of the cluster to which it belongs, each master node sends the data to be backed up to the backup node corresponding to the secondary node identification information in turn according to the priority of each node in the cluster.
[0102] In this embodiment, the cluster information also includes the priority of each node in the cluster. After receiving the data to be backed up and the cluster information of the cluster to which it belongs, each master node sends the data to be backed up to the backup node corresponding to the secondary node identification information in turn according to the priority of each node in the cluster. In this way, all backup nodes are backed up in a certain order, which can effectively avoid write conflicts during multi-node backup.
[0103] It should be noted that the sequence of the above embodiments of the present invention is for description only and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0104] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for securely storing data of a control chip in the field of aerospace, characterized in that: The method comprises: Obtain location information and network status information of multiple backup nodes; Clustering the plurality of backup nodes according to the network status information of the plurality of backup nodes to obtain a plurality of clusters, wherein each cluster includes at least one backup node; The network status information includes communication parameter information and communication relationship information with other backup nodes. For each backup node, the network stability of the backup node is calculated according to the communication parameter information of the backup node. Calculate the split stability of the backup node based on the communication relationship information between the backup node and other backup nodes; Calculate the network stability of the backup node based on the network stability and split stability of the backup node; For each cluster, the priority of each backup node is calculated based on the distance between each backup node and the sending node in the cluster, as well as the network stability of each backup node; Determine the backup node with the highest priority in the cluster as the primary node of the cluster, and the remaining backup nodes as secondary nodes in the cluster; According to the distance between each master node and the sending node, the data to be backed up and the cluster information of the cluster class where the master node is located are sent to each master node in turn, wherein the cluster information at least includes the secondary node identification information in the cluster class and the priority of each node in the cluster class. After receiving the data to be backed up and the cluster information of the cluster class where the master node is located, the master node sends the data to be backed up to the backup node corresponding to the secondary node identification information, and sends the data to be backed up to the backup node corresponding to the secondary node identification information in turn according to the priority of each node in the cluster class, wherein the closer the distance between the master node and the sending node is, the higher the backup order is, and the backup order of the master node in the same cluster class is higher than that of the secondary node; The communication relationship information includes the number of communications and the duration of the communications. The calculating the split stability of the backup node according to the communication relationship information between the backup node and other backup nodes includes: Calculating the split stability of the backup node according to the number of times the backup node is divided into the same cluster within the second preset time period and the number of communications between the backup node and other backup nodes; The cluster is a cluster obtained by clustering all backup nodes according to the communication relationship information between the backup nodes.
2. The method for securely storing control chip data in the aerospace field according to claim 1, characterized in that: The step of calculating the network stability of each backup node according to the communication parameter information of the backup node includes: Calculate the network transmission stability of each backup node based on the communication parameter information of each backup node; For each backup node, the network stability of the backup node is calculated according to the change of the network transmission stability of the backup node within a first preset time period.
3. The method for securely storing control chip data in the aerospace field according to claim 1, characterized in that: The communication parameter information includes historical success rate, packet loss rate and trouble-free time.
4. The method for securely storing control chip data in the aerospace field according to claim 1, characterized in that: The network status information includes communication relationship information between other backup nodes, and the plurality of backup nodes are clustered according to the network status information of the backup nodes to obtain a plurality of clusters, including: For every two backup nodes, the weight of the edge between the two backup nodes is calculated according to the communication relationship information between the two backup nodes; Constructing a graph structure between the plurality of backup nodes according to the weights of the edges between all backup nodes; The graph structure is split and clustered using a clustering algorithm CABDDCG based on dynamic splitting of connected graphs to obtain multiple clusters.
Citation Information
Patent Citations
Resource backup method under 5G network slice
CN112312444A
Network scheduling method, system and equipment
CN115996189A