Access control algorithm for Internet of Vehicles based on blockchain

Through the blockchain-based Internet of Vehicles access control algorithm, through data classification and chain storage, combined with blockchain consensus and attribute access control, the problems of data security and access efficiency in the Internet of Vehicles are solved, and fine-grained access control and Efficient data protection adapts to the dynamic needs of the growing number of vehicles.

CN116707868BActive Publication Date: 2024-09-27SHANDONG EXPRESSWAY XINLIAN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310530390.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2024-09-27
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

Existing Internet of Vehicles access control technology has security issues, cannot effectively protect private data, and has deficiencies in data access efficiency and scalability. Especially when the number of vehicles increases, it is difficult to meet dynamic needs.

Method used

Adopt a blockchain-based Internet of Vehicles access control algorithm, distinguish private data from non-private data through data classification and chain storage, and adopt different access strategies according to different data types, using the consensus mechanism and attribute access of the blockchain network Control to ensure data security and access efficiency.

Benefits of technology

It achieves fine-grained access control of Internet of Vehicles data, improves system security and access efficiency, reduces storage pressure on the blockchain network, improves data access performance, and adapts to the dynamic needs of the growing number of vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116707868B
    Figure CN116707868B
Patent Text Reader

Abstract

The present invention discloses a hierarchical access control method for Internet of Vehicles data based on blockchain. First, an attribute-based access control framework is established, and the information that needs to be protected by the vehicle and the access control strategy of the vehicle are recorded in the blockchain network. At the same time, the access records of certain private information of the vehicle are stored in the blockchain account book in the form of hash, which not only ensures the security of the data, but also reduces the storage pressure of the blockchain node. The visitor determines whether he has the right to access resources by calling a smart contract combined with an attribute-based access control method. In terms of access right control, in order to improve the flexibility and timeliness of access control, a permission transfer model is proposed. When accessing non-privacy data, permission transfer is used to avoid the consensus of the blockchain network, reduce the impact of the blockchain on the performance of the access control model, and thus improve data access efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent transportation technology and relates to a vehicle network access control algorithm based on blockchain. Background Art

[0002] With the continuous development of economy, the total number of vehicles in my country is also increasing. Intelligent Transport System (ITS) is the mainstream direction of future transportation system development. It combines traditional sensing technology, information technology, communication technology, etc. to establish a comprehensive transportation management system with full access. Internet of Vehicles is an important part of intelligent transportation system. It realizes information sharing and interconnection through efficient processing of real-time data, so as to achieve the purpose of saving resources and improving traffic efficiency.

[0003] Due to the openness of the Internet of Vehicles, there are many threats and challenges in data security. The main ones may be the following: denial of service attacks, spoofing attacks, false information injection, etc. Due to the continuous growth of the number of vehicles, the number of vehicle nodes joining the Internet of Vehicles may become larger and larger. At the same time, due to the openness of the network, the authentication and control methods of the Internet of Vehicles should be scalable to adapt to the dynamic needs of the Internet of Vehicles. Therefore, the security services of the Internet of Vehicles should meet the requirements of information integrity and real-time, message certainty, real-time, and scalability.

[0004] Access control is an important means to ensure the secure transmission of information in the Internet of Vehicles. Existing Internet of Vehicles access control technologies mainly rely on the large storage space and strong scalability of cloud computing, and use cloud computing to achieve data storage. This storage method requires complete trust in third parties and cannot fully guarantee the security of stored data, which may cause privacy data leakage. In the face of data access problems in the Internet of Vehicles, existing solutions mostly use a fine-grained access control method based on attribute encryption. The above solutions all have certain security issues, so it is of great significance to study related topics on access control in the Internet of Vehicles. Summary of the invention

[0005] The purpose of the present invention is to provide a blockchain-based Internet of Vehicles access control algorithm, which solves the security problems existing in existing access strategies, while ensuring the security of the Internet of Vehicles system, can achieve fine-grained access control and improve the access efficiency of the system under relatively safe conditions.

[0006] The technical solution adopted by the present invention is a vehicle networking access control algorithm based on blockchain, which is implemented in the following steps:

[0007] Step 1: The vehicle node classifies the information to be transmitted. The information that the node can transmit includes entity information such as its own location, as well as access data such as access records;

[0008] Step 2: Use the classification results obtained in step 1 to store some data owned by the vehicle itself, such as location information, access records, etc., on a chain according to whether it is private data;

[0009] Step 3, when the vehicle accesses information, determining whether the accessed data is private data;

[0010] Step 4: adopt the corresponding access strategy according to the judgment result of step 3;

[0011] Step 5: after accessing, the access data record is uploaded to the chain;

[0012] Step 6: Update the accessed data.

[0013] The present invention is also characterized in that:

[0014] The classification in step 1 is as follows: the data owner classifies the data into two categories: privacy data and non-privacy data according to the privacy degree of the data to himself;

[0015] The specific split-chain storage method in step 2 is as follows: based on data classification, private data is stored in the blockchain ledger by the system, while non-private data is stored in IPFS. At the same time, in order to ensure the security of this part of data, the access records of this part of data are stored in the blockchain ledger in the form of hash;

[0016] In step 4, different access strategies are adopted for private data and non-private data after the judgment in step 3. Combined with the attribute-based access control strategy, the information visitor needs to meet certain attributes before accessing a certain information, as follows:

[0017] 4.1. For private data, all data is stored in the nodes of the blockchain network, so access must be subject to the consensus of the blockchain network, and the attributes of the visitor must meet the attributes required to access this resource;

[0018] 4.2, for non-privacy data, a permission transfer method is adopted;

[0019] Step 4.1 is specifically implemented as follows:

[0020] Step 4.1.1, determine whether the accessed data is private data;

[0021] Step 4.1.2: When the accessed data is private data, determine whether the visitor has a token;

[0022] Step 4.1.3, assuming that the visitor has a token, wait for the blockchain network consensus and use the token to access the data. If the visitor does not have a token, re-authenticate the identity and grant the token after successful authentication;

[0023] Step 4.1.4, after checking the visitor's token, compare the visitor's attributes with the attributes required to access the data;

[0024] Step 4.1.5, when the visitor attributes meet the attributes required for access, the blockchain server will return the accessed data;

[0025] Step 4.2 is specifically implemented as follows:

[0026] Step 4.2.1, determine whether the accessed data is non-privacy data;

[0027] Step 4.2.2, determine whether the RSU communicating with the vehicle has a token;

[0028] Step 4.2.3, assuming that the node has a token, the vehicle node can directly access the data through the RSU without going through the blockchain network consensus. If the node does not have a token, access to the data needs to wait for the blockchain network consensus;

[0029] Step 4.2.4: When a vehicle node accesses non-privacy data, the access data is recorded locally in the RSU that communicates with it;

[0030] In step 4.2.5, when the blockchain network reaches consensus, the access record is stored in the transaction in the form of a hash and synchronized to the blockchain network.

[0031] The beneficial effects of the present invention are:

[0032] Compared with the traditional Internet of Vehicles access control method, the Internet of Vehicles data hierarchical access control method based on blockchain of the present invention adopts blockchain to ensure the security of the entire system. At the same time, in order to meet the requirement of large amount of Internet of Vehicles data, a data hierarchical method is adopted to reduce the storage pressure of the blockchain network, and accurate protection of data can be achieved. In terms of access control, an attribute-based access control method is adopted to implement a fine-grained access control strategy, and a permission transfer method is proposed to reduce the impact of blockchain on access performance during data access, thereby improving the efficiency of Internet of Vehicles data access. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is an algorithm flow chart of the blockchain-based vehicle networking data hierarchical access control method of the present invention;

[0034] Figure 2 It is a flowchart for accessing private data in the vehicle networking data hierarchical access control method based on blockchain of the present invention;

[0035] Figure 3 It is a flowchart for accessing non-privacy data in the vehicle networking data hierarchical access control method based on blockchain of the present invention;

[0036] Figure 4 is the access latency of the vehicle using PBFT under the traditional scheme;

[0037] Figure 5 It is the latency comparison between the proposed solution and the traditional solution;

[0038] Figure 6 It is a comparison of access delays under different proportions of privacy data. DETAILED DESCRIPTION

[0039] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0040] The present invention adopts alliance chain as the blockchain platform to deploy the access control algorithm. After the blockchain network is built, the smart contract needs to be written; Golang and Casbin framework are used to implement the attribute-based access control method; the nodes in the blockchain network are RSU and vehicles, and RSU is responsible for communicating with the vehicle and judging the attributes of the vehicle; after the vehicle accesses the data, the RSU records the historical data of the access; the alliance blockchain adopts Hyperledger Fabric and completes the verification of the transaction through the PBFT consensus mechanism; it can improve the security of information sharing in the Internet of Vehicles and improve access efficiency.

[0041] The present invention provides a method for hierarchical access control of Internet of Vehicles data based on blockchain, such as Figure 1 As shown, the specific implementation steps are as follows:

[0042] Step 1: The vehicle node classifies the information to be transmitted. The data owner can classify the data according to the privacy level of the data, which can be divided into two categories: privacy data and non-privacy data.

[0043] Step 2: According to the classification results of step 1, the data is stored in different chains. The private data is stored in the blockchain ledger by the system, while the non-private data is stored in IPFS. At the same time, in order to ensure the security of this part of data, the access records of this part of data will be stored in the blockchain ledger in the form of hash;

[0044] Step 3, when the vehicle accesses information, determining whether the accessed data is private data;

[0045] Step 4: Use different access strategies for private data and non-private data. For private data, the process is as follows: Figure 2 As shown, all data is stored in the nodes of the blockchain network, so access must be subject to the consensus of the blockchain network, and the attributes of the visitor must meet the attributes required to access this resource; the specific implementation should be carried out according to the following steps:

[0046] Follow the steps below to implement it:

[0047] Step 4.1: When the data is determined to be private data in step 3, the details are as follows:

[0048] Step 4.1.1, determine whether it is private data;

[0049] Step 4.1.2: When the accessed data is private data, determine whether the visitor has a token;

[0050] Step 4.1.3, assuming that the visitor has a token, then it is necessary to wait for the blockchain network consensus and use the token to access the data. If the visitor does not have a token, it is necessary to authenticate the identity again. After successful authentication, the token will be granted, and the token has a certain time limit;

[0051] Step 4.1.4, after checking the visitor's token, you need to compare the visitor's attributes with the attributes required to access the data;

[0052] Step 4.1.5, when the visitor attributes meet the attributes required for access, the blockchain server will return the accessed data;

[0053] Step 4.2: For non-privacy data, the access process is as follows: Figure 3 As shown, a permission transfer method is adopted, and the specific steps are as follows:

[0054] Step 4.2.1 determines whether the access data of a vehicle is non-privacy data;

[0055] Step 4.2.2 determines whether the RSU communicating with the vehicle has a token;

[0056] Step 4.2.3, assuming that the node has a token, the vehicle node can access the data directly through the RSU without going through the blockchain network consensus. If the node does not have a token, access to the data needs to wait for the blockchain network consensus;

[0057] Step 4.2.4: When a vehicle node accesses non-privacy data, it will record the access data locally in the RSU that communicates with it;

[0058] In step 4.2.5, when the blockchain network reaches consensus, the access record will be stored in the transaction in the form of a hash and synchronized to the blockchain network.

[0059] Step 5: after accessing, the access data record is uploaded to the chain;

[0060] Step 6: Update the accessed data.

[0061] like Figure 1 As shown in Figure 1, according to the flowchart of the privacy data access control algorithm in this paper, the Go language is used to simulate the relevant environment, the proposed hierarchical access control algorithm is simulated, and finally the simulation results are analyzed. The environment configuration is shown in Table 1.

[0062] Table 1 Simulation environment configuration

[0063]

[0064] Based on the above environment, the following simulation is performed to evaluate the performance of the access control method using access delay under different numbers of blockchain nodes and different proportions of privacy data.

[0065] Example 1

[0066] like Figure 4 As shown in the figure, the horizontal axis is the number of test rounds, and the vertical axis is the delay for the blockchain network to reach consensus when accessing data. It can be seen from the figure that when the number of blockchain network nodes, that is, the number of vehicle nodes in the network, is small, the overall performance of the entire system is high; as the number of network nodes continues to increase, the time required for vehicles to access data continues to increase. The reason is that as the number of nodes increases, the number of data transmissions required to reach a consensus also increases, resulting in an increase in the overall delay.

[0067] Example 2

[0068] like Figure 5 As shown in the figure, the horizontal axis is the number of nodes, and the vertical axis is the blockchain consensus delay when accessing data. From the figure, we can see that when the number of nodes is only 10, the access delay of this solution is almost the same as the access delay of the classic PBFT consensus. However, as the number of network nodes increases, when the number of nodes in the network reaches 60, this solution has been significantly optimized in terms of access delay compared with the traditional solution; as the number of nodes continues to increase, the access delay of this solution is gradually more obvious than the latency of the classic PBFT solution. Overall, the access delay of this solution has been optimized to a certain extent compared with the traditional solution.

[0069] Example 3

[0070] like Figure 6 As shown in the figure, the horizontal axis is the number of nodes participating in the consensus in the network. It can be seen from the figure that when the number of network nodes is the same, as the proportion of private data decreases, the average latency of accessing data will also decrease. This is because when the proportion of private data decreases, the probability of accessing private data will also decrease, and access to non-private data can be done without going through the consensus of the blockchain network, so the response speed will be faster. Overall, the access latency of this solution has a certain performance improvement over the classic solution.

Claims

1. Internet of Vehicles access control algorithm based on blockchain, It is characterized in that Please follow the steps below to implement: Step 1: The vehicle node classifies the information to be transmitted. Specifically, the data owner classifies the data into two categories: private data and non-private data according to the degree of privacy of the data. Step 2: Use the classification results obtained in step 1 to store some data owned by the vehicle itself in a chain according to whether it is private data; The specific split-chain storage method is as follows: based on data classification, private data is stored in the blockchain ledger by the system, while non-private data is stored in IPFS. At the same time, in order to ensure the security of non-private data, the access records of this part of data are stored in the blockchain ledger in the form of hash; Step 3, when the vehicle accesses information, determining whether the accessed data is private data; Step 4: adopt the corresponding access strategy according to the judgment result of step 3; Step 5: after accessing, the access data record is uploaded to the chain; Step 6: Update the accessed data.

2. According to the blockchain-based Internet of Vehicles access control algorithm of claim 1, It is characterized in that In step 4, different access strategies are adopted for private data and non-private data after the judgment in step 3. In combination with the attribute-based access control strategy, the information visitor needs to meet certain attributes before accessing a certain information, as follows: 4.

1. For private data, all data is stored in the nodes of the blockchain network, so access must be subject to the consensus of the blockchain network, and the attributes of the visitor must meet the attributes required to access this resource; 4.2, for non-privacy data, a permission transfer method is adopted.

3. According to the blockchain-based Internet of Vehicles access control algorithm of claim 2, It is characterized in that The step 4.1 is specifically implemented according to the following steps: Step 4.1.1: When the accessed data is private data, determine whether the visitor has a token; Step 4.1.2: Assume that the visitor has a token, wait for the blockchain network consensus and use the token to access the data. If the visitor does not have a token, re-authenticate the identity and grant the token after successful authentication; Step 4.1.3, after checking the visitor's token, compare the visitor's attributes with the attributes required to access the data; Step 4.1.4, when the visitor attributes meet the attributes required for access, the blockchain server will return the accessed data.

4. According to the blockchain-based Internet of Vehicles access control algorithm of claim 3, It is characterized in that The step 4.2 is specifically implemented according to the following steps: Step 4.2.1, when the accessed data is non-privacy data, determine whether the roadside unit RSU node communicating with the vehicle has a token; Step 4.2.2, assuming that the RSU node has a token, the vehicle node can access the data directly through the RSU node without going through the blockchain network consensus. If the RSU node does not have a token, access to the data needs to wait for the blockchain network consensus; Step 4.2.3: When a vehicle node accesses non-privacy data, the access data is recorded locally in the RSU node that communicates with it; In step 4.2.4, when the blockchain network reaches consensus, the access record is stored in the transaction in the form of a hash and synchronized to the blockchain network.

Citation Information

Patent Citations

  • Internet of Vehicles data sharing fine-grained access control method based on blockchain

    CN111245837A

  • Privacy information management method and system based on block chain and IPFS technology

    CN112954000A

  • Internet of vehicles privacy data protection method based on block chain and differential privacy

    CN113609523A

  • Data processing method and device based on block chain, server and storage medium

    CN114978645A

  • KR20220104552A