Flight operation data classified access control and access method

By using IPFS and consortium blockchain architecture in the civil aviation system, combined with smart contracts for classified and hierarchical access control of flight operation data, the problem of low efficiency in data access control in the civil aviation field has been solved, and fine-grained permission management and data security have been achieved.

CN116800541BActive Publication Date: 2026-11-20CIVIL AVIATION UNIV OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310985741.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-07
Publication Date
2026-11-20
Estimated Expiration
2043-08-07

AI Technical Summary

Technical Problem

In the civil aviation sector, access control for flight operation data is inefficient, making it difficult to meet the access and control needs of multiple stakeholders with different data classification and grading requirements. Furthermore, existing access control models are difficult to maintain and have security challenges when dealing with large numbers of users and resources.

Method used

By adopting a dedicated IPFS network and consortium blockchain architecture, data is classified and hierarchically accessed through smart contracts. Flight operation data is divided into different categories, and access permissions are determined based on the type of the client server. Data permission management, access policy determination, and access control contracts are deployed to achieve fine-grained permission management.

Benefits of technology

It improves the efficiency of accessing flight operation data, meets the different access control needs of various stakeholders for data classification and grading, and ensures data security and transparent access.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116800541B_ABST
    Figure CN116800541B_ABST
Patent Text Reader

Abstract

The application discloses a kind of flight operation data classification hierarchical access control and access method, it is related to computer technology field.First, IPFS special network for storing flight operation data is built, and alliance chain for data access interaction is built, then according to the object server of data source determines data category, and respectively determines the access permission of different object servers to each category data, then according to the above deployment smart contract, when receiving the data upload message carrying object server attribute, according to data upload message, upload data and object server are recorded by smart contract, when receiving data access request, it is judged whether object server is legal by smart contract, if legal, then access is authorized by smart contract.The flight operation data is classified and graded, and the access permission of different object servers to each category data is refined, so that the access control requirements of different classification of flight operation data of multiple interest-related subjects in civil aviation field are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a classification and hierarchical access control and access method for flight operation data. Background Technology

[0002] Currently, my country's civil aviation system is mainly divided into multiple enterprises and departments, including the Civil Aviation Administration of China (CAAC), air traffic control, airports, airlines, and ground support agencies. Each enterprise, as a data source, continuously generates massive amounts of heterogeneous data during flight operations. Data, as a fundamental resource for enhancing information technology support capabilities, is undeniably crucial. The numerous enterprises and departments involved in the civil aviation system, with both cooperative and competitive relationships among them, present challenges to data access and sharing among various stakeholders. Furthermore, differences in the system architecture, operating systems, and database platforms of each enterprise hinder interoperability, and data access and sharing security is difficult to guarantee. This results in severe data silos and monopolies among stakeholders, low data resource utilization, and the formation of "data islands," thus restricting the development of informatization in the civil aviation sector. How to ensure transparent access and sharing of publicly needed data among multiple stakeholders in the civil aviation sector while simultaneously protecting the privacy of core data within each enterprise is a pressing issue that needs to be addressed in the process of flight operation data access and sharing.

[0003] Access control is an indispensable part of the data sharing process. Existing access control mechanisms include discretionary access control (DAC), role-based access control (RBAC), and attribute-based access control (ABAC). With a significant increase in the number of users and resources, the number of policies in traditional access control models such as DAC and RBAC will grow exponentially, greatly increasing the difficulty and overhead of system maintenance, making it difficult to achieve dynamic, fine-grained access control. The ABAC model, based on entity attributes, determines whether to allow or deny a user's access control request to a resource, improving the expressiveness of access control policy semantics and the flexibility of the model. However, the centralized management of the ABAC model by a third-party institution may have security vulnerabilities, hindering the traceability and verification of data access sharing records.

[0004] Nakamoto proposed blockchain, a distributed ledger technology born from the field of digital cryptocurrencies. Blockchain deeply integrates various technologies such as P2P networks, cryptography, consensus algorithms, and smart contracts to build a decentralized, transparent, traceable, and tamper-proof trust-establishing mechanism. With full network participation and distributed storage, even if malicious nodes exist in the blockchain, the consensus algorithm can still maintain data integrity and security, ensuring that normal nodes reach consensus on each transaction. Currently, consensus algorithms mainly include PoW, PoS, DPoS, Paxos, Raft, Kafka, and PBFT, among which the Byzantine Fault Tolerance (PBFT) algorithm is a commonly used consensus mechanism algorithm in consortium blockchains. The real-time, programmable, verifiable, and decentralized characteristics of smart contracts perfectly match the distributed and dynamic access control requirements in big data environments. However, storing large amounts of data on the blockchain requires significant costs and resources. Introducing the InterPlanetary File System (IPFS) to the blockchain can effectively reduce storage costs, achieving distributed data storage while ensuring data traceability and immutability.

[0005] In recent years, Omar et al. proposed a blockchain and IPFS-based CT data management framework, improving the transparency and traceability of data sharing among stakeholders. Han et al. proposed an attribute-based auditable access control model to manage access control policies for private data. Li et al. proposed an access control model for the Internet of Things (IoT) based on a two-layer blockchain architecture of Ethereum and FiscoBcos, employing a linear secret sharing scheme to establish attribute-based access policies for resource objects, ensuring fine-grained access control. Yuan et al. proposed a blockchain-based trusted vehicle-to-everything (V2V) data sharing mechanism to alleviate traffic congestion. Cui et al. proposed a consortium blockchain technology to achieve traceable and anonymous vehicle-to-vehicle (V2V) data sharing, effectively preventing the secondary sharing of data. Rahman et al. proposed a blockchain-based cross-domain data sharing platform and used multi-layer signature technology for identity authentication. Qi et al. proposed a blockchain-based industrial IoT data sharing scheme, and performed reverse compression on private data to achieve fine-grained data access. Wei et al. proposed a blockchain-based data access control method and used obfuscation strategies and attribute-based encryption methods to ensure data security. Wang et al. proposed a blockchain-based secret sharing scheme and an ultra-lightweight secret sharing method. Su et al. proposed a drone-assisted, blockchain-based lightweight vehicle-to-everything (V2X) data sharing scheme. Hu et al. proposed a blockchain-based customer IoT data sharing scheme, using attribute and searchable encryption to protect customer privacy. Zhang et al. proposed a blockchain-based hierarchical access control method for sharing e-health data.

[0006] In summary, existing access control methods are inefficient and fail to meet the access and control needs of various stakeholders in the civil aviation sector who have different classifications and levels of flight operation data. Summary of the Invention

[0007] Therefore, it is necessary to provide a classification and hierarchical access control and access method for flight operation data to address the aforementioned technical issues.

[0008] The following technical solution is adopted in this specification:

[0009] This specification provides a method for classifying and hierarchically controlling access to flight operation data. This method is applied to the main server of a civil aviation system and includes:

[0010] Establish a dedicated IPFS network for storing flight operation data, and a consortium blockchain for data access and interaction;

[0011] Based on the type of the guest server from which the flight operation data originates, the flight operation data is divided into different categories, and the access permissions of different guest servers to each category of flight operation data are determined accordingly.

[0012] Based on the access permissions of different object servers to various types of flight operation data, deploy smart contracts including data permission management contracts, access policy determination contracts, and access control implementation contracts;

[0013] When a data upload message carrying the object server identifier is received within the consortium blockchain, the data upload data and the object server are recorded through the data permission management contract according to the data upload message;

[0014] When a data access request is received within the consortium blockchain, the access policy judgment contract determines whether the accessed object server is legitimate. If legitimate, the access control contract authorizes the access.

[0015] Optionally, the step of classifying flight operation data into different categories based on the type of passenger server from which the flight operation data originates specifically includes:

[0016] Flight operation data sourced from airlines will be defined as flight plan data;

[0017] Flight operation data whose data source is air traffic control unit is identified as flight tag data;

[0018] Flight operation data sourced from airports is defined as flight dynamic data;

[0019] Flight operation data whose source is ground support units are defined as flight ground support data.

[0020] Optionally, determining the access permissions of different customer servers to various categories of flight operation data specifically includes:

[0021] The airline's permissions for flight schedule data include read, write, and delete, while its permissions for flight tag data, flight status data, and flight ground support data are limited to read.

[0022] The air traffic control unit's permissions for flight tag data include reading, writing, and deleting; permissions for flight dynamic data include reading and writing; and permissions for flight plan data and flight ground support data are limited to reading.

[0023] The airport's permissions for flight dynamic data include read, write, and delete; permissions for flight tag data and flight ground support data include read and write; and permissions for flight plan data are limited to read.

[0024] The permissions of ground support units for flight ground support data include reading, writing, and deleting; permissions for flight tag data and flight dynamic data include reading and writing; and permissions for flight plan data are limited to reading.

[0025] Optionally, the step of managing the data access rights of the contract record upload data and the object server specifically includes:

[0026] The data access control contract calls the function to establish data information, inputting the file name, type, environment attributes, and IPFS hash address of the uploaded data.

[0027] The name and IP address of the object server for uploading data are recorded by calling the server information creation function through the data permission management contract.

[0028] Optionally, the step of determining whether the accessed object server is legitimate by judging the contract through the access policy specifically includes:

[0029] The access policy determines whether the accessed object server is legitimate by using the blacklist function to resolve the address of the contract call.

[0030] If so, return "Prevention failed";

[0031] If not, the illegal object server will be blacklisted by determining the contract call to the blacklist function through the access policy, and a success message will be returned indicating that the block was successful.

[0032] Optionally, the method further includes:

[0033] By calling the data access permission management contract to obtain the data information function and inputting the environment attributes of the accessed data, the IPFS hash address corresponding to the accessed data is obtained from the consortium blockchain.

[0034] The obtained IPFS hash address is returned to the guest server.

[0035] Optionally, the method further includes:

[0036] The data permission management contract calls the permission query function to input the environment information of the subject server and the object server.

[0037] Obtain access permissions from the object server for each category of data.

[0038] This specification provides a method for classifying and hierarchically accessing flight operation data. This method is applied to the passenger server of a civil aviation system and includes:

[0039] Join a pre-built consortium blockchain for data access and interaction;

[0040] When uploading data, flight operation data is uploaded to the IPFS dedicated network, and a data upload message carrying the object server identifier is sent to the main server within the consortium blockchain. At the same time, consensus is reached on the upload operation request within the consortium blockchain, so that the main server records the object server and the uploaded data through the data permission management contract based on the data upload message.

[0041] When data access is requested, a data access request is sent to the main server according to the category of flight operation data to be accessed and the access permissions for the flight operation data of the category. At the same time, consensus is reached on the access operation request within the consortium blockchain, so that the main server can determine whether the object server is legitimate through the access policy judgment contract. If it is legitimate, the access is authorized through access control.

[0042] Optionally, consensus on operation requests can be achieved within the consortium blockchain, specifically including:

[0043] Initialize the comprehensive score, credibility and node score of the server nodes included in the consortium blockchain, randomly divide each server node into a consensus node set and a candidate node set, and select the master node from the consensus node set through the master node selection strategy.

[0044] When the master node receives an operation request from the object server, it determines whether the master node responds correctly. If it does, the master node's credibility and node score are increased; otherwise, the master node's credibility and node score are decreased, and a new master node is selected through the master node selection strategy.

[0045] The consensus process is executed by each consensus node, and it is determined whether a consensus has been reached. If so, the credibility and node score of the consensus node are increased; if not, the credibility and node score of the consensus node are decreased.

[0046] Based on the credibility and node score of the consensus nodes, the overall score of the consensus nodes is updated, and the consensus node set and candidate node set are re-divided according to the overall score of each node.

[0047] Alternatively, the master node can be selected according to the following formula:

[0048] p = v mod cn;

[0049] Where p represents the master node, v represents the view number, and cn represents the number of consensus nodes.

[0050] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:

[0051] First, a dedicated IPFS network for storing flight operation data and a consortium blockchain for data access and interaction are built. Then, based on the type of the object server from which the flight operation data originates, the flight operation data is divided into different categories, and the access permissions of different object servers for each category of data are determined. Then, according to the above deployment of smart contracts, when a data upload message carrying object server attributes is received, the uploaded data and object server are recorded through the smart contract based on the data upload message. When a data access request is received, the access request is used to determine whether the accessed object server is legitimate through the smart contract. If legitimate, the access is authorized through the smart contract.

[0052] By classifying flight operation data and further refining the access permissions of different client servers to each category of flight operation data, more granular permission management is achieved, access efficiency is improved, and the different access control needs of various stakeholders in the civil aviation field for flight operation data classification and grading are met. Attached Figure Description

[0053] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0054] Figure 1 This document provides a schematic diagram of a practical Byzantine fault-tolerant algorithm process.

[0055] Figure 2 This document provides a flowchart illustrating a method for classifying and hierarchically accessing flight operation data applied to a main server.

[0056] Figure 3 This specification provides a schematic diagram of a civil aviation system.

[0057] Figure 4 This specification provides a sequence diagram of function calls and events between a civil aviation authority and an airport;

[0058] Figure 5 This document provides a flowchart illustrating a method for classifying and hierarchically accessing flight operation data applied to a guest server.

[0059] Figure 6 This document provides a schematic diagram of a consensus algorithm process.

[0060] Figure 7 This document provides a schematic diagram illustrating the consensus process executed by each consensus node.

[0061] Figure 8This specification provides a schematic diagram of a multi-principal access control sequence for civil aviation.

[0062] Figure 9 This document provides a schematic diagram illustrating the average consensus time delay of three consensus algorithms.

[0063] Figure 10 This document provides a diagram illustrating the consensus latency comparison of three consensus algorithms.

[0064] Figure 11 This diagram illustrates a comparison of average flow using three consensus algorithms provided in this specification.

[0065] Figure 12 This is a schematic diagram of an Ethereum Gas price query interface provided in this manual;

[0066] Figure 13 This document provides a schematic diagram illustrating the gas consumption of deploying a smart contract.

[0067] Figure 14 This specification provides the gas consumption for the first invocation of a smart contract function.

[0068] Figure 15 This manual provides a schematic diagram illustrating the process of uploading and retrieving information from the Civil Aviation Administration.

[0069] Figure 16 This is a schematic diagram illustrating flight data uploading and retrieval provided in this manual;

[0070] Figure 17 This specification provides an example of access permission definition and authorization diagram;

[0071] Figure 18 This document provides a schematic diagram illustrating the permission granted and the return of access results.

[0072] Figure 19 This is a schematic diagram illustrating the reading of transaction details provided in this specification;

[0073] Figure 20 This is a schematic diagram illustrating how to prevent unauthorized operations, as provided in this manual.

[0074] Figure 21 This is a schematic diagram illustrating the reading of unauthorized operation information provided in this manual;

[0075] Figure 22 This is a schematic diagram illustrating the interception of unauthorized users, provided in this manual. Detailed Implementation

[0076] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments in this specification without creative effort are within the scope of protection of this application.

[0077] In 1994, Szabo first proposed the concept of smart contracts, defining them as transaction protocols that execute contract terms through computers, i.e., automatically executing contracts through code programs without third-party supervision. Because smart contracts are automatically activated and run, a secure and undisturbed operating environment is needed to ensure the correctness of their functionality. Blockchain provides just such an environment, enabling the concept of smart contracts to transition from the theoretical stage to the application stage.

[0078] In 1999, Castro and Liskov proposed the Practical Byzantine Fault Tolerance (PBFT) algorithm, reducing the complexity of the original PBFT algorithm from exponential to polynomial, making it applicable to practical applications. The PBFT algorithm is a state machine replication algorithm where each copy of the state machine stores the service state and implements all legitimate client requests. The traditional PBFT consensus algorithm requires 2^n (n-1) communications in a single consensus process. This algorithm can guarantee that the system can still correctly achieve distributed consensus even if (n-1) / 3 nodes fail or engage in malicious operations.

[0079] PBFT is mainly divided into three phases: the pre-preparation phase, the preparation phase, and the commit phase. All nodes operate during the view rotation process, where views are consecutively numbered integers. Under the same view number, node roles are divided into client, master node, and replica node. When the master node fails, the view change process needs to be initiated. For ease of description, the consensus process of this algorithm is as follows: Figure 1 As shown.

[0080] Figure 1 This document provides a schematic diagram of a practical Byzantine fault-tolerant algorithm. Figure 1 In the diagram, C represents a client node, and 0 to 3 nodes represent consensus nodes. 0 is the master node, 1 and 2 are replica nodes, and 3 is the faulty node.

[0081] The primary node is calculated using the following formula:

[0082] P = v mod |R|

[0083] Where P is the view number, v is the replica number, and |R| is the number of replica node sets.

[0084] The ABAC model determines whether to allow or deny a user's access control request to a resource based on entity attributes rather than user identity. The core elements of the ABAC model include subjects, resources, operations, and environmental constraints. These elements are uniformly represented using attributes and attribute values. The relationships between attributes can be flexibly set according to access control requirements, improving the expressive power of access control policy semantics and the flexibility of the model. Furthermore, it can uniformly describe concepts such as permissions, security labels, and roles from other access control models using attributes, making it suitable for solving access control problems of dynamic big data in distributed environments.

[0085] The InterPlanetary File System (IPFS) uses distributed hash tables to solve the problems of data transmission and location, transforming point-to-point transmission into peer-to-peer network transmission. Unlike HTTP's method of finding file locations, IPFS uses content addressing. It doesn't need to consider the location of a central server, nor the file name and path; it only focuses on the encrypted hash address calculated from the file content. The hash address directly corresponds to the file content; changes in the file content result in changes to the hash address, enhancing the file's tamper resistance. As a fundamental internet protocol, IPFS can be applied to various scenarios such as encrypted communication platforms, distributed databases, and file-sharing systems.

[0086] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.

[0087] Figure 2 This is a flowchart illustrating a method for classifying and hierarchically accessing flight operation data on the main server of a civil aviation system, as described in this specification. The method specifically includes the following steps:

[0088] S101: Establish a dedicated IPFS network for storing flight operation data, and a consortium blockchain for data access and interaction.

[0089] Generally, the main entities involved in flight operations within the civil aviation system include the Civil Aviation Administration of China (CAAC), airlines, air traffic control units, airports, and ground support units. Flight operation data access control schemes typically involve five roles, such as... Figure 3 As shown.

[0090] Figure 3 This is a schematic diagram of a civil aviation system provided in this specification. A detailed description follows. Figure 3 Five roles in the game.

[0091] The Civil Aviation Administration of China (CAAC), as the core entity for the supervision of the civil aviation system, is the main server of the civil aviation system. The CAAC is responsible for deploying smart contracts, managing flight operation data on the blockchain, generating and adjusting access control policies, and making permission judgments on other data requesters, granting or denying access to the corresponding level of access.

[0092] Airlines, as the owners of flight schedule data and requesters of other data, are the object servers of the civil aviation system. Airlines have the highest level of complete control over flight schedule data.

[0093] Air traffic control, as the owner of flight tag data and the requester of other data, is the object server of the civil aviation system. Air traffic control has the highest level of complete control over flight tag data.

[0094] Airports, as the owners of flight dynamic data and requesters of other data, are the object servers of the civil aviation system, and have the highest level of complete control over flight dynamic data.

[0095] Ground support units, as the owners of flight ground support data and requesters of other data, are the object servers of the civil aviation system. Ground support units have the highest and most complete control over flight ground support data.

[0096] Therefore, the Civil Aviation Administration, as the main server, can first establish a dedicated IPFS network between the main server and each guest server when implementing the flight operation data classification and hierarchical access control method provided in this manual. This network will be used to store flight operation data and establish a consortium blockchain for data access and interaction. This will enable subsequent interaction on the consortium blockchain and storage on the consortium blockchain, reducing the storage pressure on blockchain server nodes and improving data security.

[0097] The main server mentioned in this manual can be a server set up on a business platform, or a device such as a desktop computer or laptop computer capable of executing the solution described in this manual. For ease of explanation, the following description will only use the main server as the executing entity.

[0098] S102: Based on the type of the guest server from which the flight operation data originates, classify the flight operation data into different categories, and determine the access permissions of different guest servers for each category of flight operation data.

[0099] This solution introduces the concept of data classification and grading based on the ABAC model, classifying and grading flight operation data according to the needs of the civil aviation data sharing chain scenario. In the classification and grading access control model, attributes and permissions have a many-to-many mapping relationship. For ease of description, the following definitions are given:

[0100] Definition 1: An attribute item is the basic unit for representing an attribute. For convenience, 'x' represents the attribute type. SA represents the subject attribute, including user, role, and affiliated company. RA represents the object attribute, including data uploader address, data name, data category, IPFS address, etc. AA represents the action attribute, including access operations such as read (R), write (W), and delete (D). EA represents the environment attribute, such as access time and visitor IP address.

[0101] Definition 2: An attribute tuple is a set of attribute items of the same type, denoted as x∈{SA,RA,AA,EA}.

[0102] Definition 3: Access control policies embody the authorization behavior of resource owners and specify the set of attributes required to access protected resources. P = {SA, RA, AA, EA} represents the access policy composed of a set of attribute quadruples. J represents the judgment of the access policy, and result = {true, false} represents the judgment result; true is returned if the resource request is allowed, and false is returned if it is denied.

[0103] In summary, the classification and hierarchical access control model is represented as follows:

[0104] Result←J(P={SA,RA,AA,EA})

[0105] SA = {user, role, company}

[0106] RA={address,name,type,IPFS address}

[0107] AA = {read, write, delete}

[0108] EA = {access time, IP}

[0109] The main server can categorize flight operation data based on the business entity status attributes, classifying data originating from airlines into four main types: Flight Plan Data (FP), Flight Label Data (FL), Flight Status Data (FS), and Flight Ground Support Data (FGS). Data originating from air traffic control units is classified as such. According to the Civil Aviation Network and Information System's recommendations on the privacy level of flight operation data, it is categorized into 1 (Public), 2 (Restricted), and 3 (Privacy). The Civil Aviation System's data management system and other enterprises jointly determine the corresponding relationships between roles and data classifications, as well as their access permissions, based on the needs of flight operation scenarios, as shown in Table 1. Then, they jointly formulate access policies for each type of data.

[0110] Table 1. Access Relationships Between Civil Aviation Participants and Flight Operation Data Classification and Grading

[0111]

[0112] As shown in Table 1, the subject server can determine that the airline's permissions for flight plan data include read, write, and delete, and its permissions for flight tag data, flight dynamic data, and flight ground support data are read.

[0113] The air traffic control unit's permissions for flight tag data include reading, writing, and deleting; permissions for flight dynamic data include reading and writing; and permissions for flight schedule data and flight ground support data are limited to reading.

[0114] The airport's permissions for flight dynamic data include read, write, and delete; permissions for flight tag data and flight ground support data include read and write; and permissions for flight schedule data are limited to read.

[0115] The permissions of ground support units for flight ground support data include reading, writing, and deleting; permissions for flight tag data and flight dynamic data include reading and writing; and permissions for flight plan data are limited to reading.

[0116] S103: Deploy smart contracts, including data access management contracts, access policy determination contracts, and access control implementation contracts, based on the access permissions of different object servers to various types of flight operation data.

[0117] As the manager and main server for flight operation data, the Civil Aviation Administration of China (CAAC) can implement categorized and hierarchical access control for this data by deploying smart contracts. These smart contracts include data access management contracts, access policy determination contracts, and access control implementation contracts.

[0118] Specifically, for the data access control contract, massive amounts of flight operation data files are uploaded to the IPFS dedicated network for storage, and a corresponding hash address is generated for each file. The smart contract predefines various attributes of the data, such as data category and data permissions, and then the consortium blockchain nodes record the access control data of civil aviation stakeholders and the hash addresses of the required flight operation data in the form of transaction logs.

[0119] For the access policy determination contract, the access policy determination contract will reject unauthorized Ethereum account addresses by setting a blacklist. If there are cases such as invalid IP addresses, lack of authoritative certification, or excessively frequent access requests, the account address will be blacklisted and the system will automatically block the user from accessing the network.

[0120] For access control implementation contracts, access control is implemented in a predefined manner through smart contracts. Smart contracts define different levels of access permissions that stakeholders in the civil aviation system have for various types of flight operation data; the higher the permission number, the higher the level of access granted. Before accessing data, the smart contract verifies the Ethereum account address to determine whether the data requester has access rights and returns the judgment result.

[0121] Remix IDE provides a random list of Ethereum account addresses, which can be registered as different entities through smart contracts. Each participant in the Civil Aviation Data Sharing and Exchange Platform network has an Ethereum address (EA), as shown in Table 2, enabling them to dynamically interact by calling smart contract functions.

[0122] Table 2. Ethereum Address List of Network Participants in the Civil Aviation Data Sharing and Exchange Platform

[0123]

[0124] The design of smart contracts is key to the classification and hierarchical access control of flight operation data. Data management, setting access control policies and authorizing access are all executed in the form of transactions through data management contracts.

[0125] S104: When a data upload message carrying the object server identifier is received within the consortium blockchain, the data upload data and the object server are recorded through the data permission management contract according to the data upload message.

[0126] S105: When a data access request is received within the consortium blockchain, the access policy judgment contract determines whether the accessed object server is legitimate. If legitimate, the access control implementation contract authorizes the access.

[0127] When the principal server receives a data upload message carrying the identifier of the guest server within the consortium blockchain, the principal server, acting as the data manager, can record the uploaded data's file name, type, environment attributes, and IPFS hash address by calling the data information creation function through the data permission management contract. It can also record the guest server's name and IP address by calling the server information creation function through the data permission management contract.

[0128] When the principal server receives a data access request, as the data manager, it can use the access policy to determine the legitimacy of the accessing server by calling the address resolution blacklist function `getBLUByAddr()`. If the server is illegitimate, it adds it to the blacklist using the access policy determination contract call blacklist setting function `setBlackList()` and returns "_blockedtrue" if successful. If the server is legitimate, it returns "_blockedfalse" if the request fails. Furthermore, if the request is legitimate, the principal server can authorize access using the access control implementation contract call permission acquisition function `accessControl()`. Then, it can use the data permission management contract call data information retrieval function `getDatasetInfo()` to input the data's environment attributes, obtain the corresponding IPFS hash address from the consortium blockchain, and return the obtained IPFS hash address to the accessing server.

[0129] Of course, the main server can also use access control to implement the contract call to getCurTime() to get the timestamp of the current block, and use the daysToDate() time conversion function to convert the block timestamp into the specific date of the local time zone.

[0130] Table 3 shows the functions called by the smart contract when triggering various events during flight operation data access.

[0131] Table 3. Function Descriptions of Functions Called in Smart Contracts

[0132]

[0133] The following example illustrates the functions called and events triggered in a smart contract during flight operations, using the airport's request for access to flight schedule data from the Civil Aviation Administration of China as an example. Figure 4 As shown.

[0134] Figure 4This specification provides a sequence diagram of function calls and events between a civil aviation authority and an airport. The sequence diagram illustrates the interactions between different stakeholders and the various events triggered in the sequence of functions called within the smart contract.

[0135] First, the airline uploads a flight schedule file to IPFS for storage. Then, the airline sends a data upload message to the Civil Aviation Administration of China (CAAC). The CAAC, acting as the data manager, deploys ManagementSC, JudgeSC, and AccessControlSC. In ManagementSC, the CAAC uploads attribute information such as the airline and its IP address using the function `setSubjInfo()`, and uploads attribute information such as the flight schedule file's name, type, EA (Airline Operator), and IPFS hash address using the function `setDatasetInfo()`.

[0136] All stakeholders must register the corresponding access control permissions through the function registerRight(). The Civil Aviation Administration grants the airport the right to read flight schedule data. The airport's EA is determined by the system to be allowed access through the function unblockUser(). The access results and time of the airport can be obtained through the functions accessControl() and daysToDate().

[0137] based on Figure 2 The flight operation data classification and hierarchical access control method shown first establishes a dedicated IPFS network for storing flight operation data and a consortium blockchain for data access interaction. Then, based on the type of the object server from which the flight operation data originates, the flight operation data is divided into different categories, and the access permissions of different object servers for each category of data are determined. Then, according to the above-mentioned deployment of smart contracts, when a data upload message carrying object server attributes is received, the uploaded data and object server are recorded through the smart contract based on the data upload message. When a data access request is received, the access request is used to determine whether the accessed object server is legitimate through the smart contract. If legitimate, the access is authorized through the smart contract.

[0138] By classifying flight operation data and further refining the access permissions of different client servers to each category of flight operation data, more granular permission management is achieved, meeting the different access control needs of various stakeholders in the civil aviation field for flight operation data classification and grading.

[0139] When applying the flight operation data classification and hierarchical access control method provided in this manual, it is not necessary to follow the rules. Figure 2 The steps shown are executed in sequence. The specific execution order of each step can be determined as needed, and this manual does not impose any restrictions on it.

[0140] Corresponding to Figure 2 The flowchart shown illustrates a method for classifying and hierarchically accessing flight operation data for the main server of a civil aviation system. This specification also provides a flowchart illustrating a method for classifying and hierarchically accessing flight operation data for the passenger server of a civil aviation system. Figure 5 As shown.

[0141] Figure 5 This is a flowchart illustrating a method for classifying and hierarchically accessing flight operation data on a passenger server in a civil aviation system, as described in this specification. The method specifically includes the following steps:

[0142] S301: Join a pre-built consortium blockchain for data access and interaction.

[0143] S302: When uploading data, the flight operation data is uploaded to the IPFS dedicated network, and a data upload message carrying the object server identifier is sent to the main server within the consortium blockchain. At the same time, consensus is reached on the upload operation request within the consortium blockchain, so that the main server records the object server and the uploaded data through the data permission management contract based on the data upload message.

[0144] S303: When data access is performed, a data access request is sent to the main server according to the category of flight operation data to be accessed and the access permissions for the flight operation data of the category. At the same time, consensus is reached on the access operation request within the consortium blockchain, so that the main server can determine whether the object server is legitimate through the access policy judgment contract. If it is legitimate, the access control is implemented to authorize the access through the contract.

[0145] Specifically, when uploading data, the object server can upload the corresponding IPFS hash address to the IPFS dedicated network. Then, it sends a data upload message carrying the object server's attributes to the subject server. Simultaneously, consensus is reached within the consortium blockchain regarding the upload request. If the consensus passes, the data upload message sent to the subject server is successfully delivered. This allows the subject server to record the object server and the uploaded data through the data access management contract based on the data upload message.

[0146] When a guest server accesses data, it sends a data access request to the principal server, specifying the type of data to be accessed and the access permissions for that type of data. Simultaneously, consensus is reached within the consortium blockchain regarding the access request. If consensus is achieved, the data access request is successfully sent to the principal server, and the server waits for a response, receiving the IPFS hash address returned by the principal server. For details regarding the principal server, please refer to the aforementioned explanations; they will not be repeated here.

[0147] The classification and hierarchical access control of flight operation data is implemented in a decentralized sharing model based on a consortium blockchain. Given the inherent characteristics of consortium blockchains, a secure and efficient consensus algorithm is required to ensure the stable operation of the system. Generally, the consensus algorithm for consortium blockchains is the Practical Byzantine Fault-Tolerant Algorithm (PBFT). However, the original PBFT algorithm suffers from high consensus latency, high communication overhead, and system crashes due to malicious nodes being elected as master nodes under large-scale network conditions. Therefore, this specification improves the original PBFT algorithm by adopting a grouping scoring system. By grouping, the size of the consensus nodes is reduced, improving their performance and ensuring secure and stable system operation with minimal computing power.

[0148] Specifically, in one or more embodiments of this specification, the server may, according to Figure 6 The process shown achieves consensus.

[0149] Figure 6 This is a flowchart illustrating one consensus algorithm in this specification. The Group Percentage (PBFT) algorithm specifically includes the following steps:

[0150] S201: Initialize the comprehensive score, credibility and node score of the server nodes included in the consortium chain, randomly divide each server node into a consensus node set and a candidate node set, and select the master node from the consensus node set through the master node selection strategy.

[0151] Traditional PBFT suffers from high consensus latency and high communication overhead under large-scale network node conditions. To reduce consensus latency, decrease communication overhead, and minimize the probability of malicious nodes being elected as master nodes, this specification adopts a group scoring system to reduce the size of consensus nodes and improve their performance. Assuming there are n nodes in the civil aviation consortium blockchain system, this node group is divided into two groups: a consensus node set with 2n / 5 consensus nodes and a candidate node set with 3n / 5 candidate nodes. The number of consensus nodes is denoted as cn, which must satisfy cn ≥ 3f + 1, where f is the maximum number of Byzantine nodes, to ensure that the system can reach a consensus under any circumstances.

[0152] For example, the overall score of each server node can be initialized to 100, and the credibility and node score can be initialized to 0.

[0153] The main node can be selected according to the following formula:

[0154] p = v mod cn

[0155] Where p represents the master node, v represents the view number, and cn represents the number of consensus nodes.

[0156] S202: The object server node sends an operation request to the master node, and the master node server receives the object server operation request.

[0157] S203: Determine whether the master node server is responding correctly. If yes, proceed to step S204; otherwise, proceed to step S205.

[0158] S204: Increase the credibility and node score of the master node, and proceed to step S206.

[0159] For example, it can increase the master node's credibility by 1 and the node's score by 2.

[0160] S205: Reduce the credibility and node score of the master node and reselect the master node through the master node selection strategy, and execute step S203 again.

[0161] For example, you can reduce the master node's credibility by 1 and its node rating by 6. You can also enable view changes by replacing the master node using the following formula:

[0162] p = v mod cn

[0163] S206: Execute the consensus process based on each consensus node.

[0164] S207: Determine whether the consensus nodes have reached a consensus. If yes, proceed to step S208; otherwise, proceed to step S209.

[0165] S208: Increase the credibility and node score of consensus nodes, and execute step S210.

[0166] S209: Reduce the credibility and node score of consensus nodes, and proceed to step S210.

[0167] S210: Update the overall score of consensus nodes based on their credibility and node scores, and re-divide the consensus node set and candidate node set based on the overall scores of each node.

[0168] Figure 7 This is a schematic diagram illustrating the consensus process executed by each consensus node in this specification. Figure 7 In this diagram, C represents the client's own identifier, and 0-3 represent consensus node groups, where 0 is the master node, 1, 2, and 3 are replica nodes, and 4, 5, and the remaining nodes are candidate nodes. Figure 7 As can be seen, it mainly includes the following processes:

[0169] First, initialize all server nodes, and the client node (i.e., the object server node) sends a request message to the master node.

[0170] Then, upon receiving the request from the client node, the master node enters the pre-preparation phase, broadcasting the message to all replica nodes. Each replica node receives and verifies the message; if verification succeeds, the node enters the preparation phase; otherwise, no action is taken.

[0171] Secondly, when a replica node enters the preparation phase and broadcasts its preparation message, it will also receive preparation messages from other nodes and verify them. If the verification passes, the node will enter the response phase.

[0172] Next, the replica node enters the response phase, verifies the message, and returns the result to the master node.

[0173] When the master node receives more than 3f+1 identical confirmation messages, it considers consensus to have been reached. The master node then provides the confirmation results to all nodes (including candidate nodes) and simultaneously updates the overall score of all nodes.

[0174] Finally, the consensus node set and candidate node set update the numbering group every 10 requests. At this point, a consensus process has ended.

[0175] The communication cost of the GSPBFT consensus mechanism provided in this specification is shown in Table 4.

[0176] Table 4 Communication Costs of the GSPBFT Consensus Mechanism

[0177]

[0178] Therefore, the total number of communications in the GSPBFT consensus mechanism can be obtained as follows:

[0179]

[0180] In the consensus process, this paper assumes that the consensus node responds promptly to the first request initiated by the client, with no delay, and thereafter there is a response delay, denoted as t. d The overall score correction for a node can then be calculated using the following formula:

[0181]

[0182] Among them, G i S is the adjustment amount for the overall score. i Rate the node, C i Let t be the credibility of node i. d To address the delay, the node's overall score can be added to the overall score correction amount to update the consensus node's overall score.

[0183] based on Figure 2 and Figure 5The document illustrates the process of classifying and hierarchically accessing flight operation data, including access control and methods. It also provides an interaction process between the subject server and the object server, such as... Figure 8 As shown.

[0184] Figure 8 This specification provides a schematic diagram of a multi-entity access control sequence in civil aviation. The dynamic interaction process among multiple stakeholders in civil aviation during flight operations is as follows: Figure 8 As shown, firstly, each civil aviation stakeholder uploads their respective flight operation data files to IPFS storage. Then, the Civil Aviation Administration of China (CAAC), as the manager of the flight operation data, deploys smart contracts to establish a classified and hierarchical access control model for the flight operation data. Subsequently, during the flight's journey from takeoff to landing, airlines, air traffic control, airports, and ground services sequentially exercise access control over the required flight operation data. Finally, the CAAC analyzes the access and sharing status of each stakeholder based on the smart contracts.

[0185] In addition, this specification also provides an embodiment of the application of the classification and hierarchical access control method for flight operation data. In this embodiment, the Civil Aviation Administration, airlines, air traffic control units, airports and ground support units are regarded as nodes in the blockchain, and the process of flight operation data sharing in the consortium blockchain is simulated. The data used is mainly the flight plan data of domestic airports from March 16 to 22, 2023 [dataset]. The operating system used in the experiment is Windows 10. The performance of PBFT, SGPBFT

[29] and GSPBFT consensus algorithms was simulated and tested based on the Python language script. The consensus latency and communication overhead of the algorithms were mainly tested and analyzed. Remix IDE is an open source Solidity smart contract development environment that provides basic functions such as compilation, deployment to local or test network, and execution of contracts. Therefore, the Solidity language is used to implement the writing and verification of smart contracts based on Remix IDE.

[0186] For the GSPBFT consensus latency test, consensus latency refers to the time taken from when a client node sends a transaction request to the master node in the system to when the client receives the transaction confirmation message. Ten consecutive measurements were performed, and the results are recorded in Table 5. Figure 9 and Figure 10 As shown.

[0187] Table 5. Comparison of Consistency Delay for Three Algorithms

[0188]

[0189] Table 5 is a comparison table of consistency delay for the three algorithms described in this specification. Figure 9 This diagram illustrates the average consensus time delay of one of the three consensus algorithms described in this specification. Figure 10 This is a diagram comparing the consensus latency of three consensus algorithms used in this specification. (See Table 5.) Figure 9 and Figure 10 It can be seen that when the number of nodes in the system is 5 and 50, compared with PBFT and SGPBFT, GSPBFT has the smallest maximum, minimum, and standard deviation of consensus latency, indicating that GSPBFT has higher consensus efficiency and stronger robustness. Specifically, when the number of nodes is 5, the average consensus latency of GSPBFT is 0.00905 seconds, which is about 52% less than PBFT's 0.0189 seconds and about 6% less than SGPBFT's 0.00961 seconds. When the number of nodes is 50, the average consensus latency of GSPBFT is 0.114 seconds, which is about 95% less than PBFT's 2.43 seconds and about 36% less than SGPBFT's 0.178 seconds.

[0190] For the GSPBFT communication overhead test, the PBFT algorithm requires pairwise communication between nodes. Communication overhead refers to the amount of communication generated when nodes in the system execute the consensus algorithm. This experiment tested the average number of communications required to execute the consensus algorithm once for the three consensus algorithms under varying numbers of nodes in the system, as shown in Table 6. Figure 11 As shown.

[0191] Table 6. Average traffic of the three consensus algorithms

[0192]

[0193] Table 6 shows the average flow rate of one of the three consensus algorithms used in this specification. Figure 11 This is a schematic diagram comparing the average flow rate using one of the three consensus algorithms described in this specification. (See Table 6 and...) Figure 11 It can be seen that as the number of nodes in the system increases sequentially from 5 to 50, GSPBFT has the lowest average communication volume compared to PBFT and SGPBFT, indicating that GSPBFT has higher consensus efficiency and lower communication overhead. In particular, when the number of nodes is 50, the average communication volume of GSPBFT is 354, which is about 90% lower than PBFT's 3519 and about 35% lower than SGPBFT's 548.

[0194] For smart contract gas consumption testing, gas is crucial for the secure operation of the Ethereum network, which supports complex computations, and reflects the level of computation and storage consumption. Every operation executed through a transaction or contract on the Ethereum platform consumes a certain amount of gas, typically ranging from 0 to 3 million. When executing a smart contract, the gas consumption amount must be specified beforehand, and execution terminates when the transaction is completed or the gas is exhausted. Therefore, smart contracts do not execute indefinitely. The gas consumed is only related to the computational resources required to execute the operation and is independent of market prices. Generally, gas consumption primarily stems from code costs (C). execution Transaction costs C transaction and initialization cost C init Code cost is related to the complexity of the code executing the transaction. Transaction costs mainly come from operations such as reading (R), writing (W), and deleting (D) on-chain data, while initialization costs are the gas consumed when deploying the contract for the first time and executing certain functions. Therefore, gas consumption can be expressed by the formula:

[0195] Gas used = C execution +C transaction +C init

[0196] Each time a smart contract is executed, a fee must be paid to the Ethereum Virtual Machine (EVM). This fee is paid to the nodes that help store, compute, execute, and verify the smart contract. The execution fee for each smart contract transaction can be expressed by a formula:

[0197] Gas cost = Gas used x Gas price

[0198] Gas Price refers to the amount of Gwei a user is willing to pay per Gas unit. Gas price affects transaction speed; a higher gas price results in higher transaction priority and faster transaction processing. Because the price of Ethereum fluctuates with the market, the gas price fluctuates in real time, meaning transactions occurring only minutes apart will incur different fees. As of the time of writing, the gas price will undoubtedly continue to fluctuate. This article references Ethereum Gas prices on the blockchain explorer OKLink (https: / / www.oklink.com / cn) on March 10, 2023. Figure 12 As shown, the real-time exchange rate of Ethereum to US dollar on that day (1 ether = 1426.7 USD) was studied to facilitate the cost analysis of this embodiment. Figure 12 This is a schematic diagram of an Ethereum Gas price query interface as described in this manual.

[0199] Table 7. Gas Consumption and Costs for Smart Contract Deployment and Calling Different Functions

[0200]

[0201] When considering smart contract deployment costs, the average gas price is primarily used for calculation. The results are shown in Table 7, which illustrates the gas consumption for smart contract deployment and calling different functionalities. Figure 13 and Figure 14 As shown.

[0202] Table 7 shows the gas consumption and cost for deploying a smart contract and calling different functionalities in this specification. Figure 13 This diagram illustrates the gas consumption of deploying a smart contract as described in this specification. Figure 14 This refers to the gas consumption of the first call to a smart contract function in this specification. Figure 14 The bars in the chart, from left to right, are setDatasetInfo, setSubjInfo, registerRight, getDatasetInfo, getRight, getSubjInfo, setBlackList, unBlackUser, getBLUByAddr, init, accessControl, isLegalAction, getCurTime, and daysToData.

[0203] From Table 7, Figure 13 and Figure 14 Therefore, for slow and normal trading, the deployment cost per contract does not exceed $86.6, and the execution cost of any function does not exceed $9.3. For high-speed trading, the deployment cost per contract does not exceed $89.1, and the execution cost of any function does not exceed $9.5.

[0204] The successfully compiled smart contract is tested in stages across various scenarios to ensure smooth access and sharing of flight operation data. The terminal interface displays the results of running the smart contract; a green checkmark indicates that the contract was executed correctly. Each transaction generates a log in the Remix IDE, from which details such as the addresses of both parties, inputs and outputs, triggered events, gas costs, and thrown exceptions can be read.

[0205] First, the Civil Aviation Administration of China (CAAC), as the manager of flight operation data, is responsible for deploying smart contracts, uploading attribute information such as name and IP address through the `setSubjInfo()` function of `ManagementSC`. To query the CAAC's IP address, one can call the `SubjInfoMap()` function and input the CAAC's EA (Autonomous Airline) address. Figure 15 As shown.

[0206] Figure 15 This diagram illustrates one method of uploading and retrieving Civil Aviation Administration (CAA) information as described in this manual. Part (a) shows the uploading of CAA information, and part (b) shows the retrieval of CAA information from the Aviation Administration of China (EA).

[0207] Since the access process for flight operation data by stakeholders in civil aviation is largely the same, this embodiment uses airport access to flight schedule data as an example to verify the validity of the smart contract. The Civil Aviation Administration calls the `setDatasetInfo()` function to upload the name, type, IPFS address, and EA (Airline Entity) attributes of a flight schedule data file. Furthermore, by calling the `getDatasetInfo()` function and inputting the dataset EA, complete data attribute information can be obtained, such as... Figure 16 As shown.

[0208] Figure 16 This is a schematic diagram illustrating one method of uploading and retrieving flight data in this specification. Part (c) shows the uploading of the flight plan data file, and part (d) shows the retrieval of data based on the flight plan data address.

[0209] As shown in Table 1, in the flight operation scenario, the Civil Aviation Administration of China (CAAC), as the data manager, has full control over reading, writing, and deleting all types of flight operation data. Airports, however, only have read access to flight schedule data files. Therefore, airports need to request read access from the CAAC, which is achieved through the `registerRight()` function. Then, the `getRight()` function can be used to check if the airport has obtained read access. Figure 17 As shown.

[0210] Figure 17 This is a diagram illustrating the definition and authorization of access permissions in this specification. Part (e) defines the access permissions for the Civil Aviation Administration and the airport, and part (f) shows the read permissions granted by the Civil Aviation Administration to the airport.

[0211] In the ManagementSC contract, the airport has already been granted read access by the Civil Aviation Administration. Therefore, the JudgeSC contract determines that the airport's EA (Airport Authority) allows access, and the AccessControlSC contract returns an access control result of "true". Figure 18 As shown.

[0212] Figure 18 This is a schematic diagram illustrating the permission granted and the return of access results in this specification. Part (g) shows the airport being determined by the system to be accessible, and part (h) shows the system returning the airport access result.

[0213] The logs provide details such as the addresses of both parties in the transaction, the triggered event, and the access time. Each transaction is recorded in a specific order within the blockchain, and this order cannot be modified in any way. The logs are timestamps. To query the specific access date, the `daysToDate()` function is called. Figure 19 As shown.

[0214] Figure 19 This is a schematic diagram illustrating one method of reading transaction details in this specification. Part (i) shows reading transaction details from the log, and part (j) shows obtaining the specific date from the block timestamp.

[0215] Because airports only have read access to flight schedule data, any attempts by the airport to write or delete data will be blocked by the system. Figure 20 As shown.

[0216] Figure 20 This is a schematic diagram illustrating one method of preventing unauthorized operations as described in this specification. Part (k) represents the airport being determined to have access to the system, and part (l) represents the airport being blocked from deleting flight schedule data by the system.

[0217] The logs provide details of how the system blocked the deletion of flight schedule data at the airport. Converting the block timestamps to specific dates yields the rejection time. Figure 21 As shown.

[0218] Figure 21 This is a schematic diagram illustrating one method of reading unauthorized operation information in this specification. Part (m) represents the system's denial of the airport's permission to delete flight schedule data, and part (n) represents the time period during which access was denied.

[0219] If the system wants to block a user's access, it can add the user's Expert Advisor (EA) to the blacklist using the `setBlackList()` function. Then, the user's access to the system will be automatically blocked, and the blocking time will be returned. Figure 22 As shown.

[0220] Figure 22 This is a schematic diagram illustrating the interception of unauthorized users in this specification. Part (o) represents user EA being blacklisted, and part (p) represents the time when access by the blacklisted user was blocked.

[0221] In summary, regarding security in civil aviation data access control, security and privacy protection are paramount in the civil aviation data sharing and exchange platform network to ensure secure access and sharing of data among multiple stakeholders. First, the consensus algorithm of the consortium blockchain has been improved from PBFT to GSPBFT, using a scoring mechanism to dynamically select master nodes. The master node's identifier will not be publicly disclosed until the consensus is complete. After each round of consensus, all nodes are renumbered and grouped based on their overall scores, ensuring the master node's identity is hidden and preventing adversaries from obtaining its information. Therefore, adversaries cannot send large amounts of invalid information to the master node, thus consuming system resources and effectively resisting DDoS attacks, guaranteeing system security. Second, flight operation data files are stored on the consortium blockchain in the form of transactions using encrypted hash addresses generated by IPFS. All participating entities are designated as EAs, achieving anonymity and privacy protection for data and users. Finally, the access processes of multiple entities are stored in the transaction log by the distributed ledger of the consortium blockchain nodes, ensuring immutability. In the event of an error, all participating entities can easily identify and trace the source of the error, finding the user who entered incorrect information or initiated an illegal transaction. Therefore, the data stored on the consortium blockchain is highly reliable.

[0222] On the other hand, regarding the scalability of the access control system, in the consortium blockchain-based flight operation data classification and hierarchical access control scheme, access control policies are published to the consortium blockchain by the data manager, the Civil Aviation Administration of China, and different access levels are assigned according to user identity and needs. In a consortium blockchain involving multiple large enterprise organizations such as airlines, air traffic control, airports, and ground services, this access control scheme simplifies management and achieves more efficient system authorization through classification and hierarchical management. Furthermore, because the system is distributed, even if individual nodes fail, the entire system can still operate normally. Therefore, even under heavy load conditions, this scheme still provides excellent performance and scalability.

[0223] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0224] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

Claims

1. A method for classifying and hierarchically controlling access to flight operation data, the method being applied to the main server of a civil aviation system, characterized in that... include: Establish a dedicated IPFS network for storing flight operation data, and a consortium blockchain for data access and interaction; Based on the type of the guest server from which the flight operation data originates, the flight operation data is divided into different categories, and the access permissions of different guest servers to each category of flight operation data are determined accordingly. Based on the access permissions of different object servers to various types of flight operation data, deploy smart contracts including data permission management contracts, access policy determination contracts, and access control implementation contracts; When a data upload message carrying the object server identifier is received within the consortium blockchain, the data upload data and the object server are recorded through the data permission management contract according to the data upload message; When a data access request is received within the consortium blockchain, the access policy judgment contract determines whether the accessed object server is legitimate. If legitimate, the access control contract authorizes the access. The classification of flight operation data into different categories based on the type of passenger server from which the data originates includes: Flight operation data sourced from airlines will be defined as flight plan data; Flight operation data whose data source is air traffic control unit is identified as flight tag data; Flight operation data sourced from airports is defined as flight dynamic data; Flight operation data whose data source is ground support units are defined as flight ground support data; The specific steps of determining the access permissions of different customer servers to various categories of flight operation data include: The airline's permissions for flight schedule data include read, write, and delete, while its permissions for flight tag data, flight status data, and flight ground support data are limited to read. The air traffic control unit's permissions for flight tag data include reading, writing, and deleting; permissions for flight dynamic data include reading and writing; and permissions for flight plan data and flight ground support data are limited to reading. The airport's permissions for flight dynamic data include read, write, and delete; permissions for flight tag data and flight ground support data include read and write; and permissions for flight plan data are limited to read. The permissions of ground support units for flight ground support data include reading, writing, and deleting; permissions for flight tag data and flight dynamic data include reading and writing; and permissions for flight plan data are limited to reading. The method of determining the legitimacy of the accessed object server through the access policy contract specifically includes: The access policy determines whether the accessed object server is legitimate by using the blacklist function to resolve the address of the contract call. If so, return "Prevention failed"; If not, the illegal object server will be blacklisted by determining the contract call to the blacklist function through the access policy, and a success message will be returned indicating that the block was successful.

2. The flight operation data classification and hierarchical access control method as described in claim 1, characterized in that, The process of managing data permissions through contract records for uploading data and the object server specifically includes: The data access control contract calls the function to establish data information, inputting the file name, type, environment attributes, and IPFS hash address of the uploaded data. The name and IP address of the object server for uploading data are recorded by calling the server information creation function through the data permission management contract.

3. The flight operation data classification and hierarchical access control method as described in claim 1, characterized in that, The method further includes: By calling the data information function through the data permission management contract and inputting the environmental attributes of the data, the IPFS hash address corresponding to the data is obtained from the consortium blockchain. The obtained IPFS hash address is returned to the guest server.

4. The flight operation data classification and hierarchical access control method as described in claim 1, characterized in that, The method further includes: The data permission management contract calls the permission query function to input the environment information of the subject server and the object server. Obtain access permissions from the object server for each category of data.

5. A method for classifying and hierarchically accessing flight operation data based on the flight operation data classification and hierarchical access control method according to any one of claims 1 to 4, wherein the method is applied to the passenger server of a civil aviation system, characterized in that, include: Join a pre-built consortium blockchain for data access and interaction; When uploading data, flight operation data is uploaded to the IPFS dedicated network, and a data upload message carrying the object server identifier is sent to the main server within the consortium blockchain. At the same time, consensus is reached on the upload operation request within the consortium blockchain, so that the main server records the object server and the uploaded data through the data permission management contract based on the data upload message. When data access is requested, a data access request is sent to the main server according to the category of flight operation data to be accessed and the access permissions for the flight operation data of the category. At the same time, consensus is reached on the access operation request within the consortium blockchain, so that the main server can determine whether the object server is legitimate through the access policy judgment contract. If it is legitimate, the access is authorized through access control.

6. The method for classifying and hierarchically accessing flight operation data as described in claim 5, characterized in that, Consensus on operation requests within the consortium blockchain specifically includes: Initialize the comprehensive score, credibility and node score of the server nodes included in the consortium blockchain, randomly divide each server node into a consensus node set and a candidate node set, and select the master node from the consensus node set through the master node selection strategy. When the master node receives an operation request from the object server, it determines whether the master node responds correctly. If it does, the master node's credibility and node score are increased; otherwise, the master node's credibility and node score are decreased, and a new master node is selected through the master node selection strategy. Each consensus node executes the consensus process and determines whether a consensus has been reached. If so, the credibility and node score of the consensus node are increased; otherwise, the credibility and node score of the consensus node are decreased. Based on the credibility and node score of the consensus nodes, the overall score of the consensus nodes is updated, and the consensus node set and candidate node set are re-divided according to the overall score of each node.

7. The method for classifying and hierarchically accessing flight operation data as described in claim 6, characterized in that, Select the master node according to the following formula: ; in, Indicates the master node. Indicates the view number. This indicates the number of consensus nodes.