A low-altitude economic flight data management method and system based on blockchain technology
By using blockchain technology and distributed computing in low-altitude economic flight data management, the data storage method is optimized, the problems of data duplication and storage occupation are solved, and data security and storage efficiency are improved.
Patent Information
- Application Number
- CN202411142490.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-20
AI Technical Summary
In the existing technology, blockchain has the problems of large data duplication and waste of storage space in low-altitude economic flight data management, making it difficult to effectively guarantee data security and storage costs.
Adopt a low-altitude economical flight data management method based on blockchain technology, process sensitive data through encryption, and combine with distributed computing technology to prioritize the storage of key data categories, only store search information in other partitions, and reduce the storage of non-critical data in each node , reduce storage costs and improve processing efficiency.
It improves the security and storage efficiency of low-altitude flight data, reduces storage costs, and ensures data privacy and system performance.
Smart Images

Figure CN118656872B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of low-altitude economical flight data, and in particular, to a low-altitude economical flight data management method and system based on blockchain technology. Background Art
[0002] Low-altitude economy refers to a series of economic activities carried out in low-altitude airspace below 3,000 meters. These activities are mainly carried out using manned and unmanned aircraft (such as drones, small aircraft, helicopters, etc.), and cover multiple industries and application scenarios. The development of low-altitude economy is of great significance in promoting economic growth, improving social service efficiency, and strengthening security. For example, it can improve the speed and flexibility of logistics distribution, support precise management of agriculture, enhance response capabilities in emergencies, and provide new tourism experiences.
[0003] Flight data management for the low-altitude economy is an emerging and rapidly developing field that is critical to ensuring flight safety, improving airspace utilization efficiency, and supporting the sustainable development of the low-altitude economy. In related technologies, flight data is collected through various sensors equipped on aircraft (such as GPS, radar, and cameras), transmitted through 4G / 5G mobile networks, and then stored in a data storage system in the cloud for cross-regional access and management. To improve the problem that the data storage system that low-altitude flight data management usually relies on is too centralized, which is vulnerable to hacker attacks and data security cannot be fully guaranteed, it will rely on blockchain technology for storage, and use the decentralized and tamper-proof characteristics of blockchain technology to improve the security of low-altitude flight data, and use encryption algorithms to protect the privacy of sensitive data.
[0004] The following problems exist in the existing technology: blockchain has certain limitations, that is, all block nodes will store corresponding data, resulting in high data duplication. A simple piece of data will occupy a lot of storage space due to occupying many nodes, wasting a lot of storage space, and there is still room for improvement. Summary of the invention
[0005] In order to improve the problem that data duplication is high and a simple data occupies a lot of storage space due to occupying many nodes, thus wasting a lot of storage space, the present application provides a low-altitude economic flight data management method and system based on blockchain technology.
[0006] In the first aspect, the present application provides a low-altitude economic flight data management method based on blockchain technology, which adopts the following technical solutions:
[0007] A low-altitude economic flight data management method based on blockchain technology, comprising:
[0008] Collect flight data;
[0009] Get the previous timestamp and hash value of the blockchain;
[0010] Analyze the flight data to obtain data disclosure categories, where the data disclosure categories include sensitive data and public data;
[0011] When the data disclosure category is sensitive data, the flight data is encrypted to obtain encrypted data;
[0012] forming a data packet based on the encrypted data, the pre-timestamp, and the pre-hash value;
[0013] When the data category is public data, directly form a data packet based on the flight data, the previous timestamp and the previous hash value;
[0014] Preprocessing the data packet to form a complete data packet, wherein the preprocessing includes data cleaning, data integration, data conversion, data reduction and data grouping;
[0015] Determining data content categories based on complete data packets;
[0016] Find the corresponding independent partition number from a preset storage database based on the data content category;
[0017] forming a search data packet based on the data content category and the independent partition number of the complete data packet;
[0018] compressing the complete data packet to obtain a compressed data packet;
[0019] Determine the number of categories for data content categories;
[0020] When the number of categories is equal to 1, the compressed data packet is uploaded to the independent partition corresponding to the independent partition number;
[0021] When the number of categories is greater than 1, the complete data packet is disassembled based on the data content category to obtain a classified data packet;
[0022] Sorting the data according to a preset priority order based on the data content category to obtain a data content category order;
[0023] Screening out the first data content category in the data content category sequence, defining the data content category as a priority data content category, and defining the corresponding classification data packet as a priority classification data packet;
[0024] Find the corresponding priority independent partition number from the storage database based on the priority data content category;
[0025] forming a priority search data packet based on the classified data packets other than the priority classified data packet, the priority data content category, and the priority partition number;
[0026] The compressed data packet is uploaded to the independent partition corresponding to the priority independent partition number, and the priority search data packet is uploaded to the independent partition corresponding to the independent partition number other than the priority independent partition number, and finally the search data packet is uploaded to the independent partition corresponding to the other partition numbers other than the independent partition number.
[0027] By adopting the above technical solution, on the one hand, the flight data of low-altitude economy is stored through blockchain, and the decentralized and tamper-proof characteristics of blockchain technology are used to improve the security of low-altitude flight data, and encryption algorithms are used to protect the privacy of sensitive data; on the other hand, combined with distributed computing technology, it avoids the situation where each node needs to store all data. When a data packet contains many types of data, all information is stored in the partition of the most critical type first. The remaining partitions only store their own data and information on the partition numbers that can find all other information, which greatly reduces the data occupancy rate in the remaining partitions, reduces storage costs, improves data processing efficiency, and reduces storage costs.
[0028] Optionally, methods for uploading data packages to the blockchain include:
[0029] Preprocessing the data packet to form a complete data packet, wherein the preprocessing includes data cleaning, data integration, data conversion, data reduction and data grouping;
[0030] compressing the complete data packet to obtain a compressed data packet;
[0031] Upload the compressed data package to the blockchain.
[0032] By adopting the above technical solution, the collected flight data is preprocessed and compressed, and then stored in the blockchain. This can reduce storage costs and improve the overall performance of the system while ensuring data security.
[0033] Optionally, a method for determining whether to compress a complete data packet to obtain a compressed data packet is also included, the method comprising:
[0034] Analyze the complete data packet to obtain incompressible data and compressible data;
[0035] Perform analysis based on compressible data to obtain data importance;
[0036] Based on the importance of the data, the corresponding compression algorithm is found from the preset algorithm database;
[0037] Performing compression drills on compressible data based on a compression algorithm to obtain estimated compressed data;
[0038] determining a capacity difference based on the expected compressed data and the compressible data;
[0039] When the capacity difference is greater than a preset significant capacity change value, the complete data packet is compressed to obtain a compressed data packet;
[0040] When the capacity difference is smaller than the obvious capacity change value, the corresponding complete data packet is directly output without compression.
[0041] By adopting the above technical solution, when the size of the data packet after compression is not much different from the size of the data packet before compression, compression can be completely omitted, thereby reducing a large number of compression and decompression processes and improving the efficiency of data reading and storage.
[0042] Optionally, the method of uploading the compressed data packet to the independent partition corresponding to the independent partition number includes:
[0043] Determine the number of categories for data content categories;
[0044] When the number of categories is equal to 1, the compressed data packet is uploaded to the independent partition corresponding to the independent partition number;
[0045] When the number of categories is greater than 1, the complete data packet is disassembled based on the data content category to obtain a classified data packet;
[0046] Sorting the data according to a preset priority order based on the data content category to obtain a data content category order;
[0047] Screening out the first data content category in the data content category sequence, defining the data content category as a priority data content category, and defining the corresponding classification data packet as a priority classification data packet;
[0048] Find the corresponding priority independent partition number from the storage database based on the priority data content category;
[0049] forming a priority search data packet based on the classified data packets other than the priority classified data packet, the priority data content category, and the priority partition number;
[0050] The compressed data packet is uploaded to the independent partition corresponding to the priority independent partition number, and the priority search data packet is uploaded to the independent partition corresponding to the independent partition number other than the priority independent partition number, and finally the search data packet is uploaded to the independent partition corresponding to the other partition numbers other than the independent partition number.
[0051] Optionally, the method of uploading the priority search data packet to the independent partition corresponding to the independent partition number other than the priority independent partition number includes:
[0052] defining the data content categories corresponding to the independent partition numbers other than the priority independent partition numbers as other data content categories;
[0053] Finding the corresponding degree of association from a preset association database based on the priority data content category and other data content categories;
[0054] When the correlation degree is less than a preset completely irrelevant critical degree, the corresponding independent partition number is defined as an irrelevant partition number, and the corresponding classified data packet is defined as an irrelevant classified data packet;
[0055] The irrelevant classification data packet is uploaded to the independent partition corresponding to the irrelevant partition number, and then the priority search data packet that does not contain the irrelevant classification data packet is uploaded to the independent partition corresponding to the independent partition number except the priority independent partition number and the irrelevant partition number.
[0056] By adopting the above technical solution, when a data category is completely unrelated to other data categories, the connection between it and other partitions can be cut off, so that even the search data packet occupying the smallest storage space is not stored, further reducing the storage cost.
[0057] Optionally, a method for adding an independent partition corresponding to the independent partition number is also included, and the method includes:
[0058] Get the remaining storage capacity corresponding to the independent partition number;
[0059] When the remaining storage capacity is less than the preset critical near-saturation capacity, an independent partition is added and the number of the newly added independent partition and the type of newly added data are determined based on the current independent partition number;
[0060] When generating a complete data packet corresponding to the newly added data category, a newly added search data packet is formed based on the data content category of the complete data packet and the newly added independent partition number;
[0061] The compressed data packet is uploaded to the independent partition corresponding to the newly added independent partition number, and the newly added search data packet is uploaded to the independent partition corresponding to the independent partition number.
[0062] Optionally, the method of adding an independent partition when the remaining storage capacity is less than the critical near-saturation capacity includes:
[0063] Determine the free partition number based on the remaining storage capacity;
[0064] If a free partition number exists, define the free partition number as a new independent partition number;
[0065] When the free partition number does not exist, the partition number of the same type is determined based on the newly added data category, and the remaining storage capacity corresponding to the partition number of the same type is defined as the remaining storage capacity of the same type;
[0066] When the remaining storage capacity of the same type is less than the preset critical near-free capacity, the partition number of the same type is defined as a newly added independent partition number;
[0067] When the remaining storage capacity of the same type is greater than the critical free capacity, a preset partition adding signal is output until a free partition number appears.
[0068] Optionally, when the remaining storage capacity of the same type is greater than the critical free capacity, the method of outputting a preset partition adding signal until a free partition number appears includes:
[0069] Determine the remaining partition numbers and the remaining partition numbers of the same type based on the partition numbers of the same type, define the remaining storage capacity corresponding to the remaining partition numbers as the remaining remaining storage capacity, and define the remaining storage capacity corresponding to the remaining partition numbers of the same type as the remaining remaining storage capacity of the same type;
[0070] Calculate the sum of any two of the remaining remaining storage capacity and the remaining similar remaining storage capacity based on the remaining remaining storage capacity, and define the sum as the remaining remaining storage capacity sum;
[0071] When there is a remaining remaining storage capacity less than the critical near-saturation capacity, the corresponding remaining partition numbers and / or the remaining similar partition numbers are defined as a vacated partition number group;
[0072] Move all data packets corresponding to any independent partition number in the vacated partition number group to another independent partition number, and define the moved independent partition number as an idle partition number;
[0073] When there is no remaining storage capacity less than the critical near-saturation capacity, a partition increase signal is output.
[0074] By adopting the above technical solution, when there is no new partition, the data of partitions of other categories can be integrated, and then the entire partition can be vacated for use by this partition, thereby improving the resource integration rate of the partition.
[0075] In the second aspect, the present application provides a low-altitude economic flight data management system based on blockchain technology, which adopts the following technical solutions:
[0076] A low-altitude economic flight data management system based on blockchain technology, including:
[0077] An acquisition module, used to obtain flight data, previous timestamp, previous hash value and remaining storage capacity;
[0078] A memory, used to store a program of any one of the control methods of the low-altitude economic flight data management method based on blockchain technology;
[0079] The program in the processor and the memory can be loaded and executed by the processor to implement any of the above-mentioned control methods of the low-altitude economic flight data management method based on blockchain technology.
[0080] By adopting the above technical solution, the flight data of low-altitude economy can be stored through blockchain, the decentralized and tamper-proof characteristics of blockchain technology can be used to improve the security of low-altitude flight data, and encryption algorithms can be used to protect the privacy of sensitive data.
[0081] In summary, the present application includes at least the following beneficial technical effects:
[0082] The decentralized and tamper-proof characteristics of blockchain technology are used to improve the security of low-altitude flight data, and encryption algorithms are used to protect the privacy of sensitive data;
[0083] Preprocess and compress the collected flight data before storing it in the blockchain, which can reduce storage costs and improve the overall performance of the system while ensuring data security;
[0084] Combined with distributed computing technology, it avoids the situation where each node needs to store all data, improves data processing efficiency and reduces storage costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 This is a flowchart of a low-altitude economic flight data management method based on blockchain technology in an embodiment of the present application.
[0086] Figure 2 It is a flowchart of a method for uploading a data packet to a blockchain in an embodiment of the present application.
[0087] Figure 3 It is a flowchart of a method for determining whether to compress a complete data packet to obtain a compressed data packet in an embodiment of the present application.
[0088] Figure 4 It is a flowchart of a method for uploading a compressed data packet to a blockchain in an embodiment of the present application.
[0089] Figure 5 It is a flowchart of a method for uploading a compressed data packet to an independent partition corresponding to an independent partition number in an embodiment of the present application.
[0090] Figure 6 It is a flowchart of a method for uploading a priority search data packet to an independent partition corresponding to an independent partition number other than a priority independent partition number in an embodiment of the present application.
[0091] Figure 7 It is a flowchart of a method for adding independent partitions corresponding to independent partition numbers in an embodiment of the present application.
[0092] Figure 8 It is a flow chart of a method for adding an independent partition when the remaining storage capacity is less than the critical near-saturation capacity in an embodiment of the present application.
[0093] Fig. 9 It is a flowchart of a method for outputting a preset partition adding signal until a free partition number appears when the remaining storage capacity of the same type is greater than the critical free capacity in an embodiment of the present application.
[0094] Fig.10 It is a system module diagram of a low-altitude economic flight data management method based on blockchain technology in an embodiment of the present application. DETAILED DESCRIPTION
[0095] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 10 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0096] The present application embodiment discloses a low-altitude economic flight data management method based on blockchain technology. Figure 1 , a low-altitude economic flight data management method based on blockchain technology includes:
[0097] Step 100: Collect flight data.
[0098] Low-altitude economic flight data refers to various flight-related data generated during low-altitude economic activities. These data can be used to describe and analyze various characteristics of low-altitude flight activities, including but not limited to information on aircraft status, flight paths, traffic flow, safety records, service quality, etc. They are obtained through monitoring by corresponding monitoring software, such as GPS navigation, temperature sensors, etc.
[0099] Step 101: Get the previous timestamp and previous hash value of the blockchain.
[0100] Blockchain is a distributed ledger technology that uses a series of encryption techniques to ensure data security and immutability. The previous timestamp is the time node when the transaction was generated. In order to solve the problem of data tracing, this technical solution can also use a chain data structure based on timestamps to store flight data. Therefore, each storage will be accompanied by a timestamp. Each block contains a hash value, which is calculated based on the block content.
[0101] Step 102: Analyze the flight data to obtain data disclosure categories.
[0102] The data disclosure category is the disclosure category of the data in the flight data. The data disclosure category includes sensitive data and public data. Sensitive data is data that cannot be familiar to the general public or special people or things, and public data is flight data that can be seen by special people or even the general public.
[0103] Step 103: When the data disclosure category is sensitive data, the flight data is encrypted to obtain encrypted data.
[0104] Encrypted data is the data generated after the flight data is encrypted. The encryption method is the smart contract method. The smart contract can be designed to only disclose necessary information and encapsulate sensitive data, allowing only specific people or entities to access this data.
[0105] Since the data disclosure category is sensitive data, it means that the data is private and cannot be seen by everyone, so it is encrypted to ensure the security of the data.
[0106] Step 104: forming a data packet based on the encrypted data, the previous timestamp and the previous hash value.
[0107] The data packet is a data packet of the current time and can be stored. The inclusion of the previous timestamp and the previous hash value is a feature of the blockchain itself, in order to ensure the integrity of the entire blockchain. By linking the timestamp and hash value of the previous data block, the new data block can ensure the integrity of the entire blockchain. This makes the blockchain a very secure data storage system, because any attempt to change historical data will be immediately discovered and rejected.
[0108] Step 105: When the data category is public data, a data packet is directly formed based on the flight data, the previous timestamp and the previous hash value.
[0109] When the data category is public data, it means that the data can be viewed by anyone, so you can directly generate the data packet.
[0110] Step 106: Upload the data packet to the blockchain.
[0111] Reference Figure 2 , the methods for uploading data packets to the blockchain include:
[0112] Step 200: Preprocess the data packet to form a complete data packet.
[0113] The complete data packet is a data packet formed by finally suitable data with higher quality.
[0114] Data preprocessing is an important step in the data analysis and machine learning process. It involves cleaning, transforming and normalizing raw data for better subsequent analysis and modeling. The purpose of data preprocessing is to improve the quality of data, reduce noise, fill missing values, unify data formats, and convert data into a form suitable for analysis. Preprocessing includes data cleaning, data integration, data transformation, data reduction and data grouping.
[0115] Step 201: compress the complete data packet to obtain a compressed data packet.
[0116] The compressed data packet is a data packet obtained by compressing the complete data packet. The compression method here is explained in the subsequent process and will not be repeated here.
[0117] Step 202: Upload the compressed data package to the blockchain.
[0118] Reference Figure 3 , and also includes a method for determining whether to compress the complete data packet to obtain a compressed data packet, the method comprising:
[0119] Step 300: Analyze the complete data packet to obtain incompressible data and compressible data.
[0120] Incompressible data is data that is important and may be damaged after compression, so it is not compressed. Compressible data is data that can be compressed.
[0121] Step 301: Analyze the compressible data to obtain the importance of the data.
[0122] The data importance is the importance of the data.
[0123] Step 302: Find the corresponding compression algorithm from a preset algorithm database based on the importance of the data.
[0124] The compression algorithm is an algorithm for compressing data packets. The database stores the mapping relationship between the importance of data and the compression algorithm. It is determined by the staff in this field according to the importance of the data and the characteristics of the compression algorithm. For example, the lossless compression algorithm ensures that the decompressed data is exactly the same as the original data, and is suitable for scenarios where data loss is not allowed, such as text, source code, configuration files, etc. When the system receives the corresponding data importance, it automatically finds the corresponding compression algorithm from the database for output.
[0125] Step 303: Perform compression drills on the compressible data based on the compression algorithm to obtain expected compressed data.
[0126] The estimated compressed data is the final state of the data if it is compressed. Compression drills only simulate compression without actually compressing it.
[0127] Step 304: Determine the capacity difference based on the expected compressed data and the compressible data.
[0128] The capacity difference is the difference between the data size of the expected compressed data and the data that can be compressed, and is calculated by subtracting the two.
[0129] Step 305: When the capacity difference is greater than a preset significant capacity change value, compress the complete data packet to obtain a compressed data packet.
[0130] The obvious capacity change value is the value of the relatively obvious capacity change. This value is set manually. If the capacity difference is greater than the obvious capacity change value, it means that the change before and after compression is obvious, so compression can be performed.
[0131] Step 306: When the capacity difference is smaller than the significant capacity change value, the corresponding complete data packet is directly output without compression.
[0132] When the capacity difference is smaller than the obvious capacity change value, it means that the change before and after compression is not obvious, so compression can be omitted to reduce the workload of compression and decompression.
[0133] Reference Figure 4 , the method of uploading the compressed data package to the blockchain includes:
[0134] Step 400: Determine the data content category based on the complete data packet before compression.
[0135] The data content category is the category of the data content, for example: logistics data, drone flight data, geographic information, meteorological information, etc.
[0136] Step 401: Find the corresponding independent partition number from a preset storage database based on the data content category.
[0137] The independent partition number is the number of the independent partition of the blockchain defined as the data content category, that is, the independent partition stores data packets of the data content category or at least has data packets of the data content category. The database stores the mapping relationship between the data content category and the independent partition number, which is obtained by manually classifying and defining the corresponding independent partitions, and then recording the mapping relationship between the data content category and the independent partition number after numbering. When the system receives the corresponding data content category, it automatically finds the corresponding independent partition number from the database for output.
[0138] Step 402: forming a search data packet based on the data content category and the independent partition number of the complete data packet.
[0139] The search data packet is a data packet that contains only data corresponding to the data content category that can be found and stored in the partition corresponding to the independent partition number. The data content category and the independent partition number can be directly reflected in the form of text.
[0140] Step 403: Upload the compressed data packet to the independent partition corresponding to the independent partition number, and upload the search data packet to the independent partition corresponding to other partition numbers except the independent partition number.
[0141] The search data packet is uploaded to the independent partitions corresponding to the partition numbers other than the independent partition number instead of the compressed data packet being uploaded to these partitions, so that the internal storage capacity of the non-corresponding partitions is greatly reduced, thereby reducing the storage cost.
[0142] Reference Figure 5 , the method of uploading the compressed data packet to the independent partition corresponding to the independent partition number includes:
[0143] Step 500: Determine the number of categories of data content categories.
[0144] The number of categories is the number of data content categories, which can be determined by directly counting.
[0145] Step 501: When the number of categories is equal to 1, the compressed data packet is uploaded to the independent partition corresponding to the independent partition number.
[0146] When the number of categories is equal to 1, it means that optimization cannot be continued, and the compressed data packet is directly uploaded to the independent partition corresponding to the independent partition number.
[0147] Step 502: When the number of categories is greater than 1, the complete data packet is decomposed based on the data content category to obtain a classified data packet.
[0148] The classified data packet is a data packet after the complete data packet is disassembled, and each data packet only contains data of the corresponding data content category. The disassembly method is text reading and recognition, and all related contents are classified into one data packet.
[0149] When it is greater than 1, it means that the data packets are stored in independent partitions corresponding to each data content category because there are many types of data content categories.
[0150] Step 503: Sort the data content categories according to a preset priority order to obtain a data content category sequence.
[0151] The priority order is an order of data priority and importance that is set manually. The data content category order is the order of the current data content category. The sorting method here is to remove all data that is not in the data content category in the priority order.
[0152] Step 504: Filter out the data content category that comes first in the data content category sequence, define the data content category as a priority data content category, and define the corresponding classification data packet as a priority classification data packet.
[0153] The priority data content category is a data content category with data priority and the highest importance.
[0154] Step 505: Find the corresponding priority independent partition number from the storage database based on the priority data content category.
[0155] The priority independent partition number is the number of the independent partition storing the data of the priority data content category. The establishment of the database is introduced in step 401 and will not be repeated here. When the system receives the corresponding priority data content, it automatically finds the corresponding priority independent partition number from the database for output.
[0156] Step 506: Form a priority search data packet based on the classification data packets other than the priority classification data packet, the priority data content category and the priority partition number.
[0157] The priority search data packet is a data packet that can search for the independent partition number corresponding to the priority data content category. Here, since the corresponding independent partition number and the data content category are consistent, the corresponding classification data packet is also stored.
[0158] Step 507: upload the compressed data packet to the independent partition corresponding to the priority independent partition number, and upload the priority search data packet to the independent partition corresponding to the independent partition number other than the priority independent partition number, and finally upload the search data packet to the independent partition corresponding to the other partition numbers other than the independent partition number.
[0159] When a data packet contains many types of data, all information is stored in the partition of the most critical type first. The remaining partitions only store their own data and information on the partition numbers that can be used to find all other data, greatly reducing the data occupancy rate of the remaining partitions and reducing storage costs.
[0160] Reference Figure 6 , a method for uploading a priority search data packet to an independent partition corresponding to an independent partition number other than the priority independent partition number includes:
[0161] Step 600: define the data content categories corresponding to the independent partition numbers other than the priority independent partition number as other data content categories.
[0162] Step 601: Find the corresponding association degree from a preset association database based on the priority data content category and other data content categories.
[0163] The degree of association is the degree of association between the content of the priority data content category and the content of other data content categories. The mapping relationship between the priority data content category, other data content categories and the degree of association is stored in the association database. It is obtained by the staff in this field based on their own experience and common sense. When the system receives the corresponding priority data content category and other data content category, it automatically finds the corresponding degree of association from the database and outputs it.
[0164] Step 602: When the correlation degree is less than a preset completely irrelevant critical degree, define the corresponding independent partition number as an irrelevant partition number, and define the corresponding classification data packet as an irrelevant classification data packet.
[0165] The critical degree of complete non-association is that there is no association between the two, that is, when searching or accessing one of the categories, the other category will not be thought of or there is no motivation to find the association of the other category. This degree is set by those skilled in the art according to the actual situation, or it can be determined by combining each association degree in the association database and then determining the dividing line based on their own experience to determine the critical degree of complete non-association. When the association degree is less than the critical degree of complete non-association, it means that the priority data content category and other data content categories are completely unrelated.
[0166] Step 603: upload the irrelevant classification data packet to the independent partition corresponding to the irrelevant partition number, and then upload the priority search data packet that does not contain the irrelevant classification data packet to the independent partition corresponding to the independent partition number except the priority independent partition number and the irrelevant partition number.
[0167] When a data category is completely unrelated to other data categories, the connection between it and other partitions can be cut off, so that even the search data packets that occupy the smallest storage space are not stored, further reducing storage costs.
[0168] Reference Figure 7 , and also includes a method for adding an independent partition corresponding to the independent partition number, the method comprising:
[0169] Step 700: Obtain the remaining storage capacity corresponding to the independent partition number.
[0170] The remaining storage capacity is the remaining storage capacity of the independent partition number. Here, the nodes in the same independent partition number have the same remaining storage capacity, so any node has the remaining storage capacity. If they have different remaining storage capacities, the one with the smallest remaining storage capacity is taken as the remaining storage capacity.
[0171] Step 701: When the remaining storage capacity is less than a preset critical near-saturation capacity, an independent partition is added and a newly added independent partition number and a newly added data category are determined based on the current independent partition number.
[0172] The critical near-saturation capacity is the remaining capacity when it is about to be saturated. This value is set manually, that is, for safety reasons, the size of the average-sized data packet is used as the critical near-saturation capacity, so that it will be full when the next average-sized data packet is stored. The method of adding independent partitions will be introduced in the subsequent process and will not be repeated here. The number of the newly added independent partition is the number of the added independent partition, and here this number is the number of the newly added independent partition. The newly added data category is the data content category of the newly added independent partition number. The determination method is consistent with the independent partition number.
[0173] Step 702: When generating a complete data packet corresponding to the newly added data category, a newly added search data packet is formed based on the data content category of the complete data packet and the newly added independent partition number.
[0174] The newly added search data packet is a data packet that can search for the complete data packet content from the newly added independent partition number.
[0175] Step 703: Upload the compressed data packet to the independent partition corresponding to the newly added independent partition number, and upload the newly added search data packet to the independent partition corresponding to the independent partition number.
[0176] Reference Figure 8 , the method of adding an independent partition when the remaining storage capacity is less than the critical near-saturation capacity includes:
[0177] Step 800: Determine the free partition number based on the remaining storage capacity.
[0178] The free partition number is the number of the independent partition with the largest remaining storage capacity. The method of determining is to directly look at the size of the remaining storage capacity.
[0179] Step 801: When a free partition number exists, define the free partition number as a newly added independent partition number.
[0180] If it exists, it means that it can be fully utilized, and it is directly used as a new independent partition number, and the corresponding data content category is changed to a new data content category.
[0181] Step 802: When a free partition number does not exist, determine a partition number of the same type based on the newly added data category, and define the remaining storage capacity corresponding to the partition number of the same type as the remaining storage capacity of the same type.
[0182] The same type of partition number is an independent partition number with the same data content category, which is determined by the data content category.
[0183] Step 803: When the remaining storage capacity of the same type is less than the preset critical near-free capacity, define the partition number of the same type as a newly added independent partition number.
[0184] The critical near free capacity is almost equal to the free capacity. This value is set manually, or it can be obtained by subtracting the critical near saturation capacity from the total maximum capacity. When the remaining storage capacity of the same type is less than the critical near free capacity, it means that there is no difference with the free partition number, and it can be used as the free partition number.
[0185] Step 804: When the remaining storage capacity of the same type is greater than the critical near-free capacity, a preset signal for adding a partition is output until a free partition number appears.
[0186] The signal for adding a partition is a signal for adding an additional partition to this blockchain. The output can be in the form of text output. When the remaining storage capacity of the same type is greater than the critical near-free capacity, it means that there is no independent partition number that can be used as a replacement, and it can only wait for manual operation to add or other areas to change.
[0187] Reference Fig. 9 The method of outputting a preset partition adding signal until a free partition number appears when the remaining storage capacity of the same type is greater than the critical free capacity includes:
[0188] Step 900: Determine the remaining partition numbers and the remaining partition numbers of the same type based on the partition numbers of the same type, define the remaining storage capacity corresponding to the remaining partition numbers as the remaining remaining storage capacity, and define the remaining storage capacity corresponding to the remaining partition numbers of the same type as the remaining remaining storage capacity of the same type.
[0189] The remaining partition numbers are independent partition numbers with different data content categories from the same type of partition numbers. The remaining partition numbers of the same type are independent partition numbers with the same data content categories as the remaining partition numbers.
[0190] Step 901: Calculate the sum of any two of the remaining remaining storage capacity and the remaining similar remaining storage capacity, and define the sum as the remaining remaining storage capacity sum.
[0191] Step 902: When there is a remaining remaining storage capacity less than the critical near-saturation capacity, define the corresponding remaining partition numbers and / or remaining similar partition numbers as a vacated partition number group.
[0192] When there is a remaining storage capacity less than the critical near-saturation capacity, it means that the two data can be stored in one partition and will not exceed the critical near-saturation capacity.
[0193] Step 903: Move all data packets corresponding to any independent partition number in the vacated partition number group to another independent partition number, and define the moved independent partition number as an idle partition number.
[0194] When there is no new partition, the data of partitions of other categories can be integrated, and then the entire partition can be vacated for use by this partition, thereby improving the resource integration rate of the partition.
[0195] Step 904: Output a partition adding signal when there is no remaining storage capacity less than the critical near-saturation capacity.
[0196] If it still does not exist, it means that the data integration of other types of partitions cannot meet the requirements at this time, and the only option is to continue to output the signal to add a partition.
[0197] Based on the same inventive concept, an embodiment of the present invention provides a low-altitude economic flight data management system based on blockchain technology.
[0198] Reference Fig.10 , a low-altitude economic flight data management system based on blockchain technology, including:
[0199] An acquisition module, used to obtain flight data, previous timestamp, previous hash value and remaining storage capacity;
[0200] A memory for storing a program of a control method for a low-altitude economic flight data management method based on blockchain technology;
[0201] The program in the processor and the memory can be loaded and executed by the processor to realize a control method of a low-altitude economic flight data management method based on blockchain technology.
[0202] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0203] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A low-altitude economic flight data management method based on blockchain technology, characterized in that: include: Collect flight data; Get the previous timestamp and hash value of the blockchain; Analyze the flight data to obtain data disclosure categories, where the data disclosure categories include sensitive data and public data; When the data disclosure category is sensitive data, the flight data is encrypted to obtain encrypted data; forming a data packet based on the encrypted data, the pre-timestamp, and the pre-hash value; When the data category is public data, directly form a data packet based on the flight data, the previous timestamp and the previous hash value; Preprocessing the data packet to form a complete data packet, wherein the preprocessing includes data cleaning, data integration, data conversion, data reduction and data grouping; Determining data content categories based on complete data packets; Find the corresponding independent partition number from a preset storage database based on the data content category; forming a search data packet based on the data content category and the independent partition number of the complete data packet; compressing the complete data packet to obtain a compressed data packet; Determine the number of categories for data content categories; When the number of categories is equal to 1, the compressed data packet is uploaded to the independent partition corresponding to the independent partition number; When the number of categories is greater than 1, the complete data packet is disassembled based on the data content category to obtain a classified data packet; Sorting the data according to a preset priority order based on the data content category to obtain a data content category order; Screening out the data content category that comes first in the data content category sequence, defining the data content category as a priority data content category, and defining the corresponding classification data packet as a priority classification data packet; Find the corresponding priority independent partition number from the storage database based on the priority data content category; forming a priority search data packet based on the classified data packets other than the priority classified data packet, the priority data content category, and the priority partition number; The compressed data packet is uploaded to the independent partition corresponding to the priority independent partition number, and the priority search data packet is uploaded to the independent partition corresponding to the independent partition number other than the priority independent partition number, and finally the search data packet is uploaded to the independent partition corresponding to the other partition numbers other than the independent partition number.
2. According to a method for managing low-altitude economic flight data based on blockchain technology according to claim 1, it is characterized in that: Also included is a method for determining whether to compress a complete data packet to obtain a compressed data packet, the method comprising: Analyze the complete data packet to obtain incompressible data and compressible data; Perform analysis based on compressible data to obtain data importance; Based on the importance of the data, the corresponding compression algorithm is found from the preset algorithm database; Performing compression drills on compressible data based on a compression algorithm to obtain estimated compressed data; determining a capacity difference based on the expected compressed data and the compressible data; When the capacity difference is greater than a preset significant capacity change value, the complete data packet is compressed to obtain a compressed data packet; When the capacity difference is smaller than the obvious capacity change value, the corresponding complete data packet is directly output without compression.
3. According to a method for managing low-altitude economic flight data based on blockchain technology as described in claim 1, it is characterized in that: The method of uploading the priority search data packet to the independent partition corresponding to the independent partition number other than the priority independent partition number includes: defining the data content categories corresponding to the independent partition numbers other than the priority independent partition numbers as other data content categories; Finding the corresponding degree of association from a preset association database based on the priority data content category and other data content categories; When the correlation degree is less than a preset completely irrelevant critical degree, the corresponding independent partition number is defined as an irrelevant partition number, and the corresponding classified data packet is defined as an irrelevant classified data packet; The irrelevant classification data packet is uploaded to the independent partition corresponding to the irrelevant partition number, and then the priority search data packet that does not contain the irrelevant classification data packet is uploaded to the independent partition corresponding to the independent partition number except the priority independent partition number and the irrelevant partition number.
4. According to a low-altitude economic flight data management method based on blockchain technology according to claim 3, it is characterized in that: Also included is a new method for an independent partition corresponding to the independent partition number, the method comprising: Get the remaining storage capacity corresponding to the independent partition number; When the remaining storage capacity is less than the preset critical near-saturation capacity, an independent partition is added and a newly added independent partition number and a newly added data category are determined based on the current independent partition number; When generating a complete data packet corresponding to the newly added data category, a newly added search data packet is formed based on the data content category of the complete data packet and the newly added independent partition number; The compressed data packet is uploaded to the independent partition corresponding to the newly added independent partition number, and the newly added search data packet is uploaded to the independent partition corresponding to the independent partition number.
5. According to claim 4, a low-altitude economic flight data management method based on blockchain technology is characterized in that: The method of adding an independent partition when the remaining storage capacity is less than the critical near-saturation capacity includes: Determine the free partition number based on the remaining storage capacity; If a free partition number exists, define the free partition number as a new independent partition number; When the free partition number does not exist, the partition number of the same type is determined based on the newly added data category, and the remaining storage capacity corresponding to the partition number of the same type is defined as the remaining storage capacity of the same type; When the remaining storage capacity of the same type is less than the preset critical near-free capacity, the partition number of the same type is defined as a newly added independent partition number; When the remaining storage capacity of the same type is greater than the critical free capacity, a preset partition adding signal is output until a free partition number appears.
6. A low-altitude economic flight data management method based on blockchain technology according to claim 5, characterized in that: The method of outputting a preset partition adding signal until a free partition number appears when the remaining storage capacity of the same type is greater than the critical free capacity includes: Determine the remaining partition numbers and the remaining partition numbers of the same type based on the partition numbers of the same type, define the remaining storage capacity corresponding to the remaining partition numbers as the remaining remaining storage capacity, and define the remaining storage capacity corresponding to the remaining partition numbers of the same type as the remaining remaining storage capacity of the same type; Calculate the sum of any two based on the remaining remaining storage capacity and the remaining similar remaining storage capacity, and define the sum as the remaining remaining storage capacity sum; When there is a remaining remaining storage capacity less than the critical near-saturation capacity, the corresponding remaining partition numbers and / or the remaining similar partition numbers are defined as a vacated partition number group; Move all data packets corresponding to any independent partition number in the vacated partition number group to another independent partition number, and define the moved independent partition number as an idle partition number; When there is no remaining storage capacity less than the critical near-saturation capacity, a partition increase signal is output.
7. A low-altitude economic flight data management system based on blockchain technology, characterized in that: include: An acquisition module, used to obtain flight data, previous timestamp, previous hash value and remaining storage capacity; A memory, used to store a program of a control method for a low-altitude economic flight data management method based on blockchain technology according to any one of claims 1 to 6; The program in the processor and the memory can be loaded and executed by the processor to implement a control method for a low-altitude economic flight data management method based on blockchain technology as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Flight data sharing method based on block chain, computer device and computer readable storage medium
CN108769133A
Data processing method and device, terminal and medium
CN110555001A
Communication network optimization method and system based on block chain and edge computing
CN113037534A
Data query method, block chain system, sharing device and query device
CN114519044A
Transaction processing method and device, node equipment and storage medium
CN115098229A
