Internet of vehicles trust management method based on block chain
By using the blockchain and CRF model to calculate the trust value in the Internet of Vehicles, and using the Raft consensus algorithm to update the trust value among distributed RSUs, the problem of low security of trust management in the Internet of Vehicles is solved and the anonymity of vehicle data is achieved. and non-tamperability, improving the security of trust management.
Patent Information
- Application Number
- CN202410801493.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing trust management methods for Internet of Vehicles have low security issues. The centralized architecture makes decisions with extremely short delays that affect service quality. When the centralized server is attacked, trust information will be leaked, causing unpredictable losses.
Adopting a blockchain-based IoV trust management method, by assigning registration certificates to vehicles and uploading them to the blockchain, using the CRF model to calculate the trust value, and updating the trust value between distributed RSUs through the Raft consensus algorithm to ensure data security Anonymity and non-tamperability improve security.
A safe and trustworthy trust environment is created in the Internet of Vehicles network, which reduces the generation of malicious vehicles, ensures the non-tamperability and anonymity of vehicle data, improves the security of trust management, and avoids the security of a centralized architecture. question.
Smart Images

Figure CN118574113A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Vehicles, and in particular to an Internet of Vehicles trust management method based on blockchain. Background Art
[0002] As the infrastructure of intelligent transportation systems, the Internet of Vehicles has attracted widespread attention from industry and academia. Due to the high mobility and variability of vehicles, adjacent vehicles are unfamiliar with each other and do not trust each other. Once a malicious vehicle leaks the location of other vehicles or reports false information to disrupt the normal driving of other vehicles, it will cause unpredictable losses. Therefore, evaluating the credibility of vehicles has become an important research topic in vehicle networks.
[0003] Many studies have proposed that trust management is an effective way to solve the trust problem in the Internet of Vehicles. It can realize the credibility calculation of Internet of Vehicles information, thereby improving the accuracy of identifying false information. It can also calculate and update the trust value of the vehicle, effectively solving the problem of false information and malicious vehicles in the Internet of Vehicles. Therefore, the credibility of vehicles in the Internet of Vehicles can become the basis for service operators to punish malicious behaviors of vehicles. Existing trust management mainly adopts a centralized architecture, which records all ratings and results calculated by the trust model on a centralized server. However, the vehicle makes a decision within a very short time delay, which affects the service quality of the vehicle. In addition, if the centralized server is attacked by an attacker, the trust information of the vehicle will be leaked, causing unpredictable losses. Therefore, the current Internet of Vehicles trust management method based on a centralized architecture still has the problem of low security. Summary of the invention
[0004] The purpose of the present invention is to solve the problem of low security in the existing Internet of Vehicles trust management method, and proposes a blockchain-based Internet of Vehicles trust management method.
[0005] A blockchain-based Internet of Vehicles trust management method, comprising:
[0006] Step 1: Assign registration certificates to vehicles in the Internet of Vehicles network and upload the registration certificates to the blockchain;
[0007] Step 2: Vehicle Vi in the IoV network uses the registration certificate as a pseudonym. Vehicle Vi uses the pseudonym to broadcast traffic event information in the IoV network. The RSU closest to vehicle Vi obtains the trust value of vehicle Vi based on the evaluation of the broadcasted traffic event information by other vehicles. The RSU closest to vehicle Vi updates the trust threshold of vehicle Vi using the trust value of vehicle Vi.
[0008] Step 3: Use the Raft consensus algorithm to select an RSU as the leader. Determine whether the RSU closest to the vehicle Vi is the leader. If the RSU closest to the vehicle Vi is not the leader, no operation is performed. If the RSU closest to the vehicle Vi is the leader, the leader packages the trust value sent by the vehicle into a block and broadcasts the block to all RSUs. The RSU verifies the integrity of the fields in the block. If the verification passes, the RSUs pass the audit results to each other. If the RSU audit results received by the leader are greater than the quantity threshold A, the block is submitted to the blockchain, thereby updating the vehicle trust value on the blockchain. If the number of RSU audit results received by the leader is less than the quantity threshold A, the leader is re-elected.
[0009] Furthermore, the step 1 of allocating a registration certificate to a vehicle in the Internet of Vehicles network and uploading the registration certificate to the blockchain is specifically as follows:
[0010] Step 1: After the vehicle enters the Internet of Vehicles network, the trusted third party TA assigns a registration certificate to the vehicle;
[0011] Step 1 and 2: Upload the vehicle registration certificate to the blockchain:
[0012] The vehicle assigned to the registration certificate generates a public-private key pair and sends a message containing real identity information to the TA. The TA determines whether the current vehicle identity is legal. If the current vehicle identity is illegal, the registration certificate of the current vehicle is revoked; if the current vehicle identity is legal, the current vehicle uses the registration certificate as a pseudonym and uploads the pseudonym to the certificate blockchain;
[0013] If the difference between the expiration time of the current vehicle registration certificate and the current time is less than or equal to the preset time interval, the vehicle regenerates a new public-private key pair and resends the real identity information to TA. TA updates the registration certificate for the current vehicle and uploads the updated registration certificate to the certificate blockchain.
[0014] Furthermore, the TA determines whether the current vehicle identity is legal, specifically: determines whether the current vehicle registration certificate is expired, if not expired, it indicates legal, otherwise it indicates illegal.
[0015] Furthermore, the vehicle Vi in step 2 uses a pseudonym to broadcast traffic event information in the Internet of Vehicles network, and the RSU closest to the vehicle Vi obtains the trust value of the vehicle Vi based on the evaluation of the broadcast traffic event information by other vehicles. The RSU closest to the vehicle Vi updates the trust threshold of the vehicle Vi using the trust value of the vehicle Vi, specifically:
[0016] Step 21: Vehicle Vi broadcasts traffic event information to other vehicles in the Internet of Vehicles network. Other vehicles use the type number of the broadcast traffic event information as an observation value, thereby obtaining an observation sequence;
[0017] The types of traffic event information broadcast include: 1. accident information; 2. road abnormality information; 3. traffic information;
[0018] Step 2: The RSU closest to vehicle Vi uses the historical hidden sequence and historical observation sequence of the vehicle to train the CRF until the recall rate, precision rate, and F1 score of the trained CRF model reach the preset threshold, and the optimal parameters of the CRF model are obtained:
[0019] The hidden sequence is the evaluation sequence of other vehicles on the broadcast traffic event information;
[0020] The hidden sequence is true and false, true means that the vehicle recognizes the broadcasted traffic event information, and false means that the vehicle does not recognize the broadcasted traffic event information;
[0021] Step 23: Input the optimal parameters of the CRF model and the observation sequence of vehicle Vi into the CRF model to obtain the hidden sequence of other vehicles' broadcast traffic event information, and use the hidden sequence to obtain the trust value of vehicle Vi; Step 24: The RSU closest to vehicle Vi uses the trust value of vehicle Vi to update the trust threshold of vehicle Vi.
[0022] Furthermore, the CRF model is specifically:
[0023]
[0024] Among them, x is the observation sequence, y is the hidden sequence, Z(x) is the intermediate variable, i is the time label, k is the edge label, t k is the eigenvalue defined on the edge, s l is the eigenvalue defined at the node, l is the node number, λ k is the edge weight, μ l is the node weight, y i is the hidden value at the i-th moment, y i-1 is the hidden value at the i-1th moment.
[0025] Furthermore, the use of hidden sequences in steps 2 and 3 to obtain the trust value of vehicle Vi is specifically as follows:
[0026] f(y)=1 / (1+e -wy )
[0027] Among them, y is the hidden sequence, w is the trust value weight, and f(y) is the trust value of vehicle Vi.
[0028] Furthermore, the RSU closest to the vehicle Vi in step 24 updates the trust threshold of the vehicle Vi using the trust value of the vehicle Vi, specifically:
[0029] First, set the vehicle trust threshold group (δ1,δ2,..δ j ...δ n );
[0030] Among them, (δ1,δ2,..δ j .,δ n ) is an increasing arithmetic sequence, δ j is the jth trust threshold, n is the total number of trust thresholds;
[0031] Then, the RSU closest to vehicle Vi compares the trust value of vehicle Vi with the current trust threshold. If the trust value of vehicle Vi is greater than or equal to the current trust threshold δ j , it means that the time information sent by the current vehicle is true information, and the current trust threshold is saved; if the vehicle trust value is less than the current trust threshold δ j , then judge the current trust threshold δ j Is it equal to δ n , if δ j =δ n Then the current vehicle is removed from the Internet of Vehicles network. If the current trust threshold δ j Not equal to δ n , update the current trust threshold to δ j+1 ;
[0032] Among them, the initial trust threshold of the vehicle is δ1.
[0033] Furthermore, the quantity threshold in step 3
[0034] The beneficial effects of the present invention are:
[0035] The present invention ensures the existence of a safe and reliable trust environment in the Internet of Vehicles network by calculating the trust value of the vehicle, uploads the calculated trust data of the vehicle to the blockchain for data management, and uses blockchain technology to ensure the anonymity and non-tamperability of the vehicle data, thereby improving the security of the Internet of Vehicles trust management method. The present invention proposes a method for calculating the trust value of a vehicle based on the training and prediction of the CRF model, predicts the hidden sequence of the vehicle according to the observation sequence of the vehicle, thereby obtaining the trust value of the vehicle, and determines whether the current vehicle is trustworthy according to the trust threshold of the vehicle, and ensures the security of vehicle information through the blockchain, greatly reducing the generation of malicious vehicles, ensuring the non-tamperability and anonymity of vehicle data, and improving the privacy security of vehicle data. The present invention can judge whether the behavior of a vehicle is trustworthy in an untrusted Internet of Vehicles environment, thereby improving the security of Internet of Vehicles trust management. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a system framework diagram of the present invention;
[0037] Figure 2 It is the CRF model diagram. DETAILED DESCRIPTION
[0038] In the field of blockchain, the emergence of blockchain provides a new direction for the distributed storage and management of Internet of Vehicles data. Blockchain is a decentralized account book that integrates technologies such as smart contracts, consensus algorithms, cryptography, etc., and has the characteristics of being tamper-proof and anonymous. Every transaction stored in the blockchain is not easy to be tampered with, and the trust value of the vehicle is recorded on the blockchain with good anonymity and traceability. And due to the decentralized characteristics of blockchain, the present invention performs trust management between distributed RSUs, effectively avoiding the problems of centralized servers. In addition, blockchain benefits from the distributed consensus algorithm, enabling RSUs to work together and maintain a consistent database to ensure the synchronization of trust value messages. In the present invention, first, vehicles use pseudonyms to communicate with each other to protect their true identities. Secondly, RSUs verify whether the identity of the vehicle is legal. If it is legal, the trust value of the vehicle is calculated by the designed CRF-based trust evaluation algorithm, and malicious vehicles are identified through the trust threshold to constrain and regulate the behavior of the vehicle. Finally, RSUs package the trust value into blocks and run the consensus mechanism to reach a consensus agreement, and run the smart contract to update the trust value of the vehicle. Next, the present invention is explained in conjunction with a specific implementation method.
[0039] Specific implementation method 1: Figure 1 As shown, the specific process of a blockchain-based Internet of Vehicles trust management method in this embodiment is as follows:
[0040] Step 1: Assign registration certificates to vehicles in the Internet of Vehicles network and upload the registration certificates to the blockchain;
[0041] Step 1: After the vehicle enters the Internet of Vehicles network, the trusted third party TA assigns a registration certificate to the vehicle;
[0042] Step 1 and 2: The vehicle assigned to the registration certificate generates a public-private key pair and sends a message containing real identity information to the TA. The TA determines whether the current vehicle identity is legal. If the current vehicle identity is illegal, the registration certificate of the current vehicle is revoked; if the current vehicle identity is legal, the current vehicle uses the registration certificate as a pseudonym and uploads the pseudonym to the certificate blockchain;
[0043] If the difference between the expiration time of the current vehicle registration certificate and the current time is less than or equal to the preset time interval, the vehicle regenerates a new public-private key pair and resends the real identity information to TA. TA updates the registration certificate for the current vehicle and uploads the updated registration certificate to the certificate blockchain;
[0044] The determination of whether the current vehicle identity is legal is specifically as follows: determining whether the current vehicle registration certificate is expired, if not, it indicates legal, otherwise, it indicates illegal;
[0045] The real information includes: location and behavior.
[0046] Step 2: Vehicle Vi in the IoV network uses the registration certificate as a pseudonym. Vehicle Vi uses the pseudonym to broadcast traffic event information in the IoV network. The RSU closest to vehicle Vi obtains the trust value of vehicle Vi based on the evaluation of the broadcast traffic event information by other vehicles. The RSU closest to vehicle Vi uses the trust value of vehicle Vi to update the trust threshold of vehicle Vi, which is specifically:
[0047] Step 21: Vehicle Vi broadcasts traffic event information to other vehicles in the Internet of Vehicles network. Other vehicles use the type number of the broadcast traffic event information as an observation value, thereby obtaining an observation sequence;
[0048] The types of traffic event information include: 1) accident information: such as emergency situations such as vehicle accidents. 2) road abnormality information: such as road icing, water accumulation, etc., to avoid accidents caused by road abnormalities. 3) traffic information: such as normal conditions such as road congestion;
[0049] Step 2: The RSU closest to vehicle Vi uses the vehicle's historical hidden sequence and historical observation sequence to train the CRF model until the recall rate, precision rate, and F1 score of the trained CRF model reach the preset thresholds, and the optimal parameters of the CRF model are obtained:
[0050] like Figure 2 As shown in the figure, the conditional random field (CRF) combines the characteristics of the maximum entropy model and the hidden Markov model. It is an undirected graph model. The CRF model obtains the conditional probability distribution of the hidden sequence under the condition of a given observation sequence:
[0051]
[0052] Among them, x is the observation sequence, y is the hidden sequence, Z(x) is the intermediate variable, i is the time label, k is the edge label, t k is the eigenvalue defined on the edge, s l is the eigenvalue defined at the node, l is the node number, λ k is the edge weight, μ l is the weight of the node, y i is the hidden value at the i-th moment, y i-1 is the hidden value at the i-1th moment;
[0053] Train the CRF model until the recall rate, precision rate, and F1 score all reach the preset thresholds, and use the currently trained CRF parameters as the optimal parameters;
[0054] Step 2: Input the optimal parameters of the CRF model and the observation sequence of vehicle Vi into the CRF model, obtain the hidden sequence of other vehicles for the broadcast information, and use the hidden sequence to obtain the trust value of vehicle Vi, and send the vehicle trust value to RSU:
[0055] The hidden sequence is used to obtain the trust value of vehicle Vi, specifically:
[0056] f(y)=1 / (1+e -wy )
[0057] Among them, y is the hidden sequence, w is the trust value weight;
[0058] The hidden sequence consists of true and false, true represents that the vehicle recognizes the broadcast information, and false represents that the vehicle does not recognize the broadcast information.
[0059] Step 24: The RSU closest to the vehicle Vi uses the vehicle trust value to obtain the trust threshold for updating the vehicle Vi, specifically:
[0060] First, set the vehicle trust threshold group (δ1,δ2,..δ j ...δ n );
[0061] Among them, (δ1,δ2,..δ j ...δ n ) is an increasing arithmetic progression;
[0062] Then, the RSU compares the vehicle trust value with the current trust threshold. If the vehicle trust value is greater than or equal to the current trust threshold δ j , it means that the time information sent by the current vehicle is true information, save the current trust threshold, if the vehicle trust value is less than the current trust threshold δ j , then judge the current trust threshold δ j Is it equal to δ n , if δ j =δ n Then the current vehicle is removed from the Internet of Vehicles network. If the current trust threshold δ j Not equal to δ n , update the current trust threshold to δ j+1 ;
[0063] Among them, the initial trust threshold of the vehicle is δ1.
[0064] Step 3: Use the Raft consensus algorithm to select an RSU as the leader. Determine whether the RSU closest to the vehicle Vi is the leader. If the RSU closest to the vehicle Vi is not the leader, no operation is performed. If the RSU closest to the vehicle Vi is the leader, the leader packages the trust value sent by the vehicle into a block and broadcasts the block to all authorized RSUs. The authorized RSU verifies the integrity of the fields in the block. If the verification is successful, the authorized RSUs pass the audit results to each other. The number of audit results received by the leader from the RSU is greater than the quantity threshold. The block is submitted to the blockchain, thereby updating the vehicle trust value on the blockchain. If the number of RSU audit results received by the leader is less than the quantity threshold A, the leader is re-elected.
[0065] The Raft consensus algorithm includes three roles: leader, candidate, and follower. It uses a heartbeat mechanism to trigger leader election. The leader periodically sends heartbeat packets to all followers to maintain its authority.
Claims
1. A blockchain-based Internet of Vehicles trust management method, characterized in that The specific process of the method is: Step 1: Assign registration certificates to vehicles in the Internet of Vehicles network and upload the registration certificates to the blockchain; Step 2: Vehicle Vi in the IoV network uses the registration certificate as a pseudonym. Vehicle Vi uses the pseudonym to broadcast traffic event information in the IoV network. The RSU closest to vehicle Vi obtains the trust value of vehicle Vi based on the evaluation of the broadcasted traffic event information by other vehicles. The RSU closest to vehicle Vi updates the trust threshold of vehicle Vi using the trust value of vehicle Vi. Step 3: Use the Raft consensus algorithm to select an RSU as the leader. Determine whether the RSU closest to the vehicle Vi is the leader. If the RSU closest to the vehicle Vi is not the leader, no operation is performed. If the RSU closest to the vehicle Vi is the leader, the leader packages the trust value sent by the vehicle into a block and broadcasts the block to all RSUs. The RSU verifies the integrity of the fields in the block. If the verification passes, the RSUs pass the audit results to each other. If the RSU audit results received by the leader are greater than the quantity threshold A, the block is submitted to the blockchain, thereby updating the vehicle trust value on the blockchain. If the number of RSU audit results received by the leader is less than the quantity threshold A, the leader is re-elected.
2. According to claim 1, a blockchain-based Internet of Vehicles trust management method is characterized by: The step 1 of allocating a registration certificate to a vehicle in the Internet of Vehicles network and uploading the registration certificate to the blockchain is specifically as follows: Step 1: After the vehicle enters the Internet of Vehicles network, the trusted third party TA assigns a registration certificate to the vehicle; Step 1 and 2: Upload the vehicle registration certificate to the blockchain: The vehicle assigned to the registration certificate generates a public-private key pair and sends a message containing real identity information to the TA. The TA determines whether the current vehicle identity is legal. If the current vehicle identity is not legal, the registration certificate of the current vehicle is revoked. If the current vehicle identity is legal, the current vehicle will use the registration certificate as a pseudonym and upload the pseudonym to the certificate blockchain; If the difference between the expiration time of the current vehicle registration certificate and the current time is less than or equal to the preset time interval, the vehicle regenerates a new public-private key pair and resends the real identity information to TA. TA updates the registration certificate for the current vehicle and uploads the updated registration certificate to the certificate blockchain.
3. According to claim 2, a blockchain-based Internet of Vehicles trust management method is characterized by: The TA determines whether the current vehicle identity is legal, specifically: determines whether the current vehicle registration certificate is expired. If it is not expired, it means it is legal, otherwise it means it is illegal.
4. A blockchain-based Internet of Vehicles trust management method according to claim 3 or 2, characterized in that: In the step 2, the vehicle Vi uses a pseudonym to broadcast traffic event information in the Internet of Vehicles network. The RSU closest to the vehicle Vi obtains the trust value of the vehicle Vi based on the evaluation of the broadcast traffic event information by other vehicles. The RSU closest to the vehicle Vi updates the trust threshold of the vehicle Vi using the trust value of the vehicle Vi, specifically: Step 21: Vehicle Vi broadcasts traffic event information to other vehicles in the Internet of Vehicles network. Other vehicles use the type number of the broadcast traffic event information as an observation value, thereby obtaining an observation sequence; The types of traffic event information broadcast include:
1. accident information; 2. road abnormality information; 3. traffic information; Step 22: The RSU closest to the vehicle Vi uses the historical hidden sequence and historical observation sequence of the vehicle to train the CRF until the recall rate, precision rate, and F1 score of the trained CRF model reach the preset threshold, and the optimal parameters of the CRF model are obtained; The hidden sequence is the evaluation sequence of other vehicles on the broadcast traffic event information; The hidden sequence is true and false, true means that the vehicle recognizes the broadcasted traffic event information, and false means that the vehicle does not recognize the broadcasted traffic event information; Step 23: Input the optimal parameters of the CRF model and the observation sequence of vehicle Vi into the CRF model to obtain the hidden sequence of other vehicles' broadcast traffic event information, and use the hidden sequence to obtain the trust value of vehicle Vi; Step 24: The RSU closest to vehicle Vi uses the trust value of vehicle Vi to update the trust threshold of vehicle Vi.
5. The method for trust management of Internet of Vehicles based on blockchain according to claim 4 is characterized in that: CRF model, specifically: Among them, x is the observation sequence, y is the hidden sequence, Z(x) is the intermediate variable, i is the time label, k is the edge label, t k is the eigenvalue defined on the edge, s l is the eigenvalue defined at the node, l is the node number, λ k is the edge weight, μ l is the weight of the node, y i is the hidden value at the i-th moment, y i-1 is the hidden value at the i-1th moment.
6. The method for trust management of Internet of Vehicles based on blockchain according to claim 5 is characterized in that: The use of hidden sequences in the steps 2 and 3 to obtain the trust value of vehicle Vi is specifically as follows: f(y)=1 / (1+e -wy ) Among them, y is the hidden sequence, w is the trust value weight, and f(y) is the trust value of vehicle Vi.
7. The method for trust management of Internet of Vehicles based on blockchain according to claim 6 is characterized in that: The RSU closest to the vehicle Vi in step 24 updates the trust threshold of the vehicle Vi using the trust value of the vehicle Vi, specifically: First, set the vehicle trust threshold group (δ1,δ2,..δ j ...δ n ); Among them, (δ1,δ2,..δ j .,δ n ) is an increasing arithmetic sequence, δ j is the jth trust threshold, n is the total number of trust thresholds; Then, the RSU closest to vehicle Vi compares the trust value of vehicle Vi with the current trust threshold. If the trust value of vehicle Vi is greater than or equal to the current trust threshold δ j , it means that the time information sent by the current vehicle is true information, and the current trust threshold is saved; if the vehicle trust value is less than the current trust threshold δ j , then judge the current trust threshold δ j Is it equal to δ n , if δ j =δ n Then the current vehicle is removed from the Internet of Vehicles network. If the current trust threshold δ j Not equal to δ n , update the current trust threshold to δ j+1 ; Among them, the initial trust threshold of the vehicle is δ1.
8. The method for trust management of Internet of Vehicles based on blockchain according to claim 7 is characterized in that: The quantity threshold in step 3
Citation Information
Patent Citations
Vehicle fog data light-weight anonymous access authentication method based on blockchain assistance
CN109194610A
Block chain-based node credibility authentication method in Internet of Vehicles environment
CN114745127A
Internet of vehicles trust management method for resisting collusion attack based on block chain
CN115022883A
Systems and methods for achieving road action consensus, for example among autonomous vehicles, in a network of moving things
US20180122234A1
Method and apparatus for blockchain-aware mobile vehicle communication
US20230246853A1
Cited By
Internet of vehicles trust management system and method
CN120358499A
