An efficient Internet of Vehicles trust query and evaluation system and method

By adopting blockchain technology and smart contracts in the Internet of Vehicles system and combining caching strategies, the problems of low trust value query efficiency and delay in message trust evaluation are solved, low latency and accurate emergency message evaluation are achieved, and the system is improved safety and accuracy of evaluation.

CN116321069BActive Publication Date: 2024-11-15JINAN UNIVERSITY +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310117829.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-15
Publication Date
2024-11-15
Estimated Expiration
2043-02-15

AI Technical Summary

Technical Problem

The existing Internet of Vehicle Trust Management System has shortcomings in the efficiency of trust value query and the delay in message trust assessment, especially malicious vehicles may spread false emergency messages, which will threaten the safety and reliability of road traffic.

Method used

An efficient Internet of Vehicles trust query and evaluation system is designed, using blockchain technology and smart contracts, combining pre-cache strategy and post-query cache strategy to reduce the latency of vehicle trust value query, and through vehicle trust value, vehicle location and Emergency message trust evaluation algorithm is established through factors such as message freshness.

Benefits of technology

It realizes low-latency and accurate emergency message evaluation, improves detection accuracy of malicious vehicles and system security, reduces trust value query delay, and improves the accuracy of message trust evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116321069B_ABST
    Figure CN116321069B_ABST
Patent Text Reader

Abstract

The present invention discloses an efficient Internet of Vehicles trust query and evaluation method and system. In the system, the present invention first uses blockchain technology to distribute and store vehicle trust data, thereby realizing trusted data storage; then proposes two cache strategies and combines them with smart contracts to design trust value query algorithms respectively, thereby realizing low-latency query of trust values; finally, based on the proposed query algorithm, the vehicle's historical trust value, vehicle location, and message freshness are used as reference factors to design an emergency message trust evaluation algorithm, thereby realizing low-latency and highly accurate trust evaluation. Compared with the existing Internet of Vehicles trust query and evaluation system, the system proposed by the present invention achieves a better balance between message trust evaluation latency and message trust evaluation accuracy, and is more suitable for actual scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Vehicles, and in particular to an efficient Internet of Vehicles trust query and evaluation system and method. Background Art

[0002] Vehicular Ad-hoc NETworks (VANET) has become a research area of ​​great interest due to its great potential in improving road safety and traffic efficiency. The main idea of ​​VANET is that vehicles and road side units (RSUs) use advanced wireless communication technology to achieve vehicle-to-vehicle (V2V) and vehicle-to-RSU (V2R) communications in a single-hop or multi-hop manner, forming a highly dynamic self-organizing network. However, due to its large-scale, open, distributed, sparse and highly dynamic characteristics, VANET is vulnerable to malicious behavior and attacks. For example, malicious vehicles may spread a large number of false emergency messages to deceive other vehicles, thereby posing a great threat to the safety and reliability of road traffic. Therefore, it is very necessary to study how to enable vehicles to complete emergency message evaluation with low latency and accuracy.

[0003] LIU et al. [LIU H, HAN D, LI D. Behavior Analysis and Blockchain based Trust Management in VANET [J]. Journal of Parallel and Distributed Computing, 2021, 151: 61-69.] proposed a blockchain-based VANET trust management system, which uses smart contracts to query vehicle trust values, thereby improving the efficiency of trust value query, and uses hidden Markov models to evaluate the trust of messages, thereby improving the accuracy of false message detection. However, during trust evaluation, since the model needs to be trained and analyzed on historical messages broadcast by recent vehicles, it brings a high message trust evaluation delay. YANG et al. [YANG Z, YANG K, LEIL, et al. Blockchain-Based Decentralized Trust Management in Vehicular Networks [J]. IEEE Internet of Things Journal, 2019, 6 (2): 1495–1505.] proposed a blockchain-based distributed vehicle network trust management system, in which vehicles use Bayesian inference models to verify messages received from neighboring vehicles and upload message ratings to RSUs. The system is effective and feasible in collecting, calculating and storing trust values ​​in the Internet of Vehicles, but it does not optimize the trust value query process and is inefficient in trust value query. In addition, it only uses the vehicle location as a reference factor for message trust evaluation, and the accuracy of message trust evaluation is low. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art and to provide an efficient Internet of Vehicles trust query and evaluation system and method, so as to enable vehicles to complete emergency message evaluation with low latency and accuracy.

[0005] To achieve the above object, the technical solution of the present invention is:

[0006] In a first aspect, the present invention provides an efficient Internet of Vehicles trust query and evaluation system, comprising:

[0007] The blockchain network includes communication nodes such as client nodes, peer nodes and sorting nodes; the client node is the access point for users to interact with the blockchain network, and sends transaction proposals to the designated peer node to obtain endorsement; the peer node is the main node of the blockchain network, responsible for maintaining the ledger and smart contracts, responding to the client's transaction proposals and verifying the block content. All peer nodes maintain a common ledger; the sorting node is responsible for sorting the endorsed transaction proposals, generating blocks and sending them to the peer node, and the peer node writes the blocks into the ledger;

[0008] The Vehicle Registration Center (VRC) is used to distribute identity tags, keys, and cryptographic algorithms to vehicles. It is a client node on the blockchain network and can interact with the blockchain network.

[0009] Roadside Unit RSU is used to process requests from vehicles and acts as a client node of the blockchain network, capable of interacting with the blockchain network.

[0010] Furthermore, the client node interacts with the blockchain network including:

[0011] When a client node needs to query or change the ledger, it will create a transaction proposal, which is a request to call a smart contract method with certain input parameters. The purpose of the request is to query or update the ledger. The proposal content includes the smart contract identifier to be called, the contract method, related parameters and endorsement policy. The endorsement policy is declared when the smart contract is deployed, declaring which peer nodes need to endorse the transaction. The client sends the transaction proposal to the peer node that needs to endorse the transaction proposal according to the endorsement policy.

[0012] Furthermore, after the client creates the transaction proposal, it interacts with the blockchain network. The interaction process includes:

[0013] The client node connects to the designated Peer node through the software development kit provided by the Fabric blockchain;

[0014] The client node submits a transaction proposal to the Peer node;

[0015] The Peer node that has deployed the smart contract has an additional endorsement role. When the client initiates a transaction proposal to update the ledger, it needs to send the transaction proposal to the specified Peer node according to the endorsement policy to request endorsement; when the endorsement is completed, the Peer node returns the signature and execution result as a proposal response to the client node; the client node verifies the signatures of each endorsement node based on the collected proposal responses, and compares whether the execution results are consistent; if the client node initiates a query operation, after checking the proposal response, the transaction proposal and proposal response will not be sent to the sorting node;

[0016] If the client node initiates an update operation, after determining that the collected proposal responses meet the endorsement policy, the client node sends the transaction proposal and proposal response to the sorting node together; the sorting node sorts the transaction proposals sent by all clients by time; after meeting the block conditions, the sorting node packages the transaction into a block and sends it to each Peer node; the Peer node will first verify whether the signature in each proposal response is valid, and then verify whether the transaction proposal is valid based on its own account book status; if the verification is successful, the new block will be added to the local blockchain and the world status will be updated;

[0017] After the Peer node updates the ledger, it sends a ledger update notification to the client node.

[0018] Furthermore, the roadside unit RSU is provided with a pre-caching strategy, that is, the roadside unit RSU will pre-cache the trust values ​​of all vehicles within its signal coverage.

[0019] Furthermore, the roadside unit RSU will pre-cache the trust values ​​of all vehicles within its signal coverage area including:

[0020] Whenever a new vehicle V j (j=1,...,n) enters the range of the roadside unit RSU, and the roadside unit RSU will j Send an inquiry message Query vehicle ID j , as shown in (1):

[0021]

[0022] The ID field indicates that this is a request for the vehicle ID. RSU Represents the public key of the roadside unit RSU, Obtained from the built-in clock of the roadside unit RSU; is a roadside unit RSU's signature with a timestamp for this message; vehicle V j After receiving the request, verify the signature first After verification, the query request response message is returned As shown in (2):

[0023]

[0024] in By vehicle V j From TPM, is the vehicle V j Signature of this message with timestamp; received by the roadside unit RSU Verify the signature first Then call the cache trust value algorithm under the pre-caching strategy to query and cache the ID j The corresponding trust value T j ; When an accident e occurs, vehicle V j Witness the accident and broadcast the accident message. After receiving the message, the subsequent vehicles initiate a V j In response to a trust value query request, the roadside unit RSU calls the trust value query algorithm in the cache to perform a query.

[0025] Furthermore, the cache trust value algorithm under the pre-caching strategy includes:

[0026] Input: Vehicles {ID1,...,ID n}

[0027] Output: Cache results

[0028] 1:for ID j ∈{ID1,...,ID n}do

[0029] 2:if isnotinCache(ID j )then

[0030] 3: / / Call the smart contract to query

[0031] 4:T j =Chaincode.get(ID j );

[0032] 5: / / Write the vehicle trust value into the cache

[0033] 6:Cache.write=(ID j ,T j ,Exp time );

[0034] 7:end if

[0035] 8:end for.

[0036] Furthermore, the roadside unit RSU is provided with a post-query cache strategy, that is, the roadside unit RSU waits for the vehicle to initiate a query and caches its query content and query records, including:

[0037] When a vehicle sends a trust value query request message to the roadside unit RSU To query vehicle V j The trust value T j ; Roadside unit RSU receives After that, the signature is verified first, and then the trust value query algorithm under the query cache strategy is called to query the ID j The corresponding trust value T j , that is, RSU first queries the local cache. If the local cache does not hit T j , then the vehicle roadside unit RSU will interact with the blockchain and call the smart contract to query the vehicle V j The trust value T j ; Finally, the roadside unit RSU stores the query results in Return to vehicle V i , and cache the query content and query records locally; when the subsequent vehicle queries the roadside unit RSU for vehicle V j When the trust value is reached, the road side unit RSU will call the cache query trust value algorithm to query the cache.

[0038] Furthermore, the cache query trust value algorithm includes:

[0039] Input: Vehicle ID j

[0040] Output: Vehicle trust value T j

[0041] 1:if isempty(ID j )then

[0042] 2:return empty;

[0043] 3:else

[0044] 4: / / Directly read cache content

[0045] 5:T j =Cache.get(ID j );

[0046] 6:return T j ;

[0047] 7:end if.

[0048] Furthermore, the trust value query algorithm under the post-query cache strategy includes:

[0049] Input: Vehicle ID j

[0050] Output: Vehicle trust value T j

[0051] 1:if isempty(ID j )then

[0052] 2:return empty;

[0053] 3:else if isinCache(ID j )then

[0054] 4: / / Read cache content and record query

[0055] 5:T j =Cache.get(ID j );

[0056] 6:Cache.write(ID i , Exp time );

[0057] 7:return T j ;

[0058] 8:else if isinBlockchain(ID j )then

[0059] 9: / / Call smart contract for query

[0060] 10:T j =Chaincode.get(ID j );

[0061] 11: / / Write query results and records into Cache

[0062] 12:Cache.write(ID j ,T j ,Exp time );

[0063] 13:Cache.write(ID i , Exp time );

[0064] 14:return T j ;

[0065] 15:else

[0066] 16:return empty;

[0067] 17:end if.

[0068] In a second aspect, the present invention provides an efficient Internet of Vehicles trust query and evaluation method, based on the above system, comprising:

[0069] S1. System initialization

[0070] The vehicle registration center VRC and the roadside unit RSU node initialize the clock and a secure digital signature scheme DS; when the vehicle is registered, the vehicle registration center VRC executes step S2 to interact with the blockchain;

[0071] S2. Save data to blockchain and complete registration

[0072] The Vehicle Registration Center (VRC) will register the vehicle ID i , initial trust value T i , public key Pk vi , Description Dp a After string concatenation Save to the Fabric blockchain, end the vehicle registration process, and return a successful result;

[0073] S3. Emergency message dissemination

[0074] If an emergency occurs within the coverage area of ​​a roadside unit RSU, it is recorded as e. Nearby vehicles perceive the emergency through OBU and convert the accident into a fixed-format message. Finally, the vehicle V j Generate an emergency message and broadcast it to the rest of the vehicles;

[0075] S4. Receive a trust value query initiated by the vehicle

[0076] When receiving vehicle V i From the broadcast vehicle V j Get the message When the TPM built-in Verify and Verify the signature If the verification is successful, the vehicle V i Local storage As a basis for subsequent feedback; then, the vehicle V i Send message to roadside unit RSU To query vehicle V j Trust value; Finally, the roadside unit RSU stores the query result in Return to vehicle V i ;

[0077] S5. The receiving vehicle performs emergency message trust assessment

[0078] When receiving vehicle V i Query the broadcast vehicle V j The trust value T j After that, the broadcast vehicle V will be calculated j Broadcast Message Credibility of the message

[0079] S6. Receive feedback from the vehicle and update the trust value

[0080] When receiving vehicle V i Passing the area where the emergency accident occurred, feedback will be submitted to the roadside unit RSU to determine whether the accident actually occurred.

[0081]

[0082] in, is the vehicle V j Broadcast emergency message, vehicle V i After receiving, save it locally; in the feedback After submission, the vehicle V i Will be deleted locally is the vehicle V i The current time obtained from the TPM; Indicates vehicle V i The timestamped signature of this message, fb i (i∈1,2...,n) is the vehicle V i For urgent messages Two-dimensional evaluation;

[0083]

[0084] The subsequent roadside unit RSU updates the vehicle's trust value based on the feedback.

[0085] Compared with the prior art, the present invention has the following beneficial effects:

[0086] 1) Based on blockchain technology, the present invention can achieve secure distributed storage of vehicle trust values. At the same time, the present invention rationally plans the positioning and authority allocation of various roles in the system, further improving the security of the entire system.

[0087] 2) The present invention designs two caching strategies, combines them with smart contracts, and designs a corresponding trust value query algorithm, which can effectively reduce the vehicle trust value query delay.

[0088] 3) The present invention queries the vehicle trust value with low latency based on the trust value query algorithm, and then establishes an emergency message trust evaluation algorithm based on factors such as vehicle trust value, vehicle location, and message freshness. The system proposed by the present invention can complete trust evaluation with low latency and accuracy in environments with different proportions of malicious vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] Figure 1 It is a schematic diagram of a vehicle networking trust query and evaluation method and system provided by Embodiment 1 of the present invention;

[0090] Figure 2 This is a schematic diagram of the interaction between the client node and the blockchain network in Example 1 of the present invention;

[0091] Figure 3 is an implementation flow chart of the Internet of Vehicles trust query and evaluation method and system provided by Embodiment 2 of the present invention;

[0092] Figure 4 3 is a schematic diagram of the trust value query delay comparison proposed in Example 3 of the present invention;

[0093] Figure 5 1 is a schematic diagram showing the comparison of the accuracy of message trust evaluation under various malicious vehicle proportions in Example 3 of the present invention;

[0094] Figure 6 It is a schematic diagram of message trust evaluation delay comparison of each evaluation system in Example 3 of the present invention. DETAILED DESCRIPTION

[0095] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0096] Embodiment 1:

[0097] See also Figure 1 As shown, it is a schematic diagram of the Internet of Vehicles trust query and evaluation system provided by this embodiment. The system mainly includes four elements, namely, blockchain network, vehicle registration center (VRC), roadside unit (RSU) and vehicle.

[0098] The main communication nodes of the blockchain network are client nodes, peer nodes, and sorting nodes. The client node is the access point for users to interact with the blockchain network, and sends transaction proposals to the designated peer node to obtain endorsement. The peer node is the main node of the blockchain network, responsible for maintaining the ledger (including a blockchain that records all transactions and a key-value database that records the current values ​​of all variables in the transaction, which is also called the world state) and smart contracts, responding to the client's transaction proposals (the peer node will sign the transaction proposal during the response process, and the signature is also called endorsement) and verifying the block content. All peer nodes maintain a common ledger. The sorting node is responsible for sorting the endorsed transaction proposals and generating blocks to send to the peer node. The peer node writes the block into the ledger.

[0099] The Vehicle Registration Center (VRC) is an organization that provides network registration services for vehicles and is responsible for distributing identity tags, keys, and cryptographic algorithms to vehicles. It is also a client node on the blockchain network and can interact with the blockchain network (query, update the ledger).

[0100] The roadside unit RSU has certain computing resources and storage resources, and is responsible for processing requests from vehicles. At the same time, as a client node of the blockchain network, it can interact with the blockchain network.

[0101] The vehicle is equipped with an On Board Unit (OBU) with sensing, computing and storage functions. The vehicle communicates with other vehicles and RSUs through V2V and V2R respectively. At the same time, a Trusted Platform Module (TPM) is installed in the OBU, which can provide trusted signatures and trusted timestamps for the vehicle.

[0102] The definitions involved in the present invention are further explained below:

[0103] Definition 1: Client nodes interact with the blockchain network

[0104] When a client node needs to query or change the ledger, a transaction proposal will be created. A proposal is a request to call a smart contract method with certain input parameters. The purpose of this request is to query or update the ledger. The proposal content includes (the smart contract identifier to be called, the contract method, related parameters, and endorsement policy). The endorsement policy is declared when the smart contract is deployed, declaring which peer nodes need to endorse this transaction. The client sends the transaction proposal to the peer node that needs to endorse this transaction proposal based on the endorsement policy.

[0105] After the client creates a transaction proposal, it interacts with the blockchain network. The interaction process is as follows: Figure 2 shown.

[0106] 1) The client node connects to the designated Peer node through the Software Development Kit (SDK) provided by the Fabric blockchain.

[0107] 2) The client node submits a transaction proposal to the Peer node. Smart contracts and ledgers are deployed on the Peer node. The corresponding smart contract is called according to the client's transaction proposal to perform query or update operations on the ledger. This operation will not change the state of the ledger. The ledger of the Peer node consists of a blockchain and a key-value database, where the blockchain records all historical transactions and the key-value database records the latest status of all data on the blockchain (world state). Each piece of data in the world state is a set of key-value pairs. In this system, the key of the world state is the vehicle's identity ID, and the value is the vehicle's trust value T. Through the world state, the smart contract can directly query the current value of a variable in the ledger without traversing the entire blockchain transaction log.

[0108] 3) The Peer node that has deployed the smart contract has an additional role of endorsement. When the client initiates a transaction proposal to update the ledger, it needs to send the transaction proposal to the specified Peer node according to the endorsement policy to request endorsement. When the endorsement is completed, the Peer node returns the signature and execution result to the client node as a proposal response. The client node verifies the signatures of each endorsement node based on the collected proposal responses and compares whether the execution results are consistent. If the client node initiates a query operation, after checking the proposal response, the transaction proposal and proposal response will not be sent to the sorting node.

[0109] 4) If the client node initiates an update operation, after determining that the collected proposal responses meet the endorsement policy, the client node sends the transaction proposal and proposal response to the sorting node. The sorting node sorts all transaction proposals sent by the client by time. After meeting the block conditions, the sorting node packages the transaction into a block and sends it to each Peer node. The Peer node will first verify whether the signature in each proposal response is valid, and then verify whether the transaction proposal is valid based on its own ledger status. If the verification is successful, the new block will be added to the local blockchain and the world state will be updated.

[0110] 5) After the Peer node updates the ledger, it sends a ledger update notification to the client node.

[0111] Definition 2: Cache and query mechanism

[0112] In this system, in order to reduce the query delay of vehicle trust value, the present invention designs two cache strategies for RSU.

[0113] 1) Pre-caching strategy, that is, RSU will pre-cache the trust values ​​of all vehicles within its signal coverage. For example, whenever a new vehicle V j (j=1,...,n) enters the range of RSU, RSU will send V j Send an inquiry message Query vehicle ID j , as shown in (1):

[0114]

[0115] The ID field indicates that this is a request for the vehicle ID. RSU Represents the public key of RSU, Obtained from the RSU built-in clock. is a RSU's signature with a timestamp for this message. j After receiving the request, verify the signature first After verification, return As shown in (2).

[0116]

[0117] in By vehicle V j From TPM, is the vehicle V j The timestamped signature of this message. Verify the signature first Then call Algorithm 1 to query and cache the ID j The corresponding trust value T j When an accident occurs, vehicle V j Witness the accident and broadcast the accident message. After receiving the message, the subsequent vehicles initiate a V attack on the RSU. j In response to a trust value query request, RSU calls Algorithm 2 to perform the query.

[0118]

[0119] 2) Post-query cache strategy, that is, the RSU waits for the vehicle to initiate a query and caches its query content and query records. For example, when a vehicle sends a To query vehicle V j The trust value T j . RSU received After that, verify the signature first, then call algorithm 3 to query the ID j The corresponding trust value T j , that is, RSU first queries the local cache. If the local cache does not hit T j, then the RSU will interact with the blockchain and call the smart contract to query the vehicle V j The trust value T j Finally, RSU stores the query results in Return to vehicle V i , and cache the query content and query records locally. When the subsequent vehicle queries the RSU for vehicle V again j When the trust value is reached, RSU will call Algorithm 2 to query the cache.

[0120]

[0121] Embodiment 2:

[0122] The specific implementation steps of the efficient Internet of Vehicles trust query and evaluation method proposed in the present invention will be combined with Figure 3 For detailed explanation:

[0123] S1. System initialization

[0124] First, VRC and RSU nodes initialize the clock and a secure digital signature scheme DS, as shown in (3):

[0125] DS=(KeyGen,Sign,Verify) (3)

[0126] KeyGen, Sign and Verify represent the key generation algorithm, digital signature algorithm and verification algorithm respectively. When a new vehicle applies to join the Internet of Vehicles, it will register with VRC. VRC will first distribute an ID to it. i , and the vehicle is denoted as V i Then, the KeyGen algorithm is used to generate the vehicle V i Generate public key Pk vi and private key Sk vi The trusted platform module TPM is installed in the vehicle OBU in an offline manner. The TPM secretly embeds the vehicle V i Private key Trusted clock, coordinate extraction algorithm, digital signature algorithm Sign, verification algorithm Verify and various cryptographic algorithms (such as hash algorithm H). When the vehicle is registered, VRC executes S2 to interact with the blockchain.

[0127] S2. Save the data to the blockchain and complete the registration.

[0128] VRC will use the vehicle ID i , initial trust value T i , public key Pk vi , Description Dp a ID obtained after string concatenation i ||Ti ||Pk vi ||Dp a Save to the Fabric blockchain, end the vehicle registration process, and return a successful result.

[0129] S3. Emergency message dissemination

[0130] If an emergency occurs within the coverage area of ​​a RSU (denoted as e), nearby vehicles, such as V j (j=1,...,n), sense emergency incidents through OBU and convert them into messages with fixed format As shown in (4):

[0131]

[0132] in Indicates the time when the accident occurred (obtained from the TPM built-in clock), Indicates the location where the accident occurred (obtained by TPM calling the coordinate extraction algorithm), Indicates vehicle V j A detailed description of the accident e. Then the hash algorithm is used to calculate Hash value Get the current time from the TPM and current location coordinates Generate a signature with timestamp and location stamp As shown in (5):

[0133]

[0134] Finally, the vehicle V j Generate an emergency message And broadcast it to other vehicles, such as V i (i=1,...,m), as shown in (6):

[0135]

[0136] S4. Receive a trust value query initiated by the vehicle

[0137] When receiving vehicle V i From the broadcast vehicle V j Get the message When the TPM built-in Verify and (Included in Verify the signature If the verification is successful, the vehicle V i Local storage As a basis for subsequent feedback. Then, the vehicle V i Send a message to RSU To query vehicle V j The trust value of is shown in (7):

[0138]

[0139] in Yes V i The current time obtained from the TPM clock, is the vehicle V i Signature of RSU received After that, check Recheck (Included in If any of the above checks fails, the RSU will be discarded. If the check passes, the RSU will select the corresponding trust value query algorithm query ID according to the cache strategy j (Included in The corresponding trust value T j Finally, RSU stores the query results in Return to vehicle V i , as shown in (8):

[0140]

[0141] Among them, Pk RSU Represents the public key of RSU, Represents the signature of RSU. i send At the same time, RS U will send the query results to (ID j ,T j ,Exp time ), query records Cache locally. Exp time Indicates the effective storage time. Once the effective storage time is exceeded, the RSU immediately deletes the information in the cache.

[0142] S5. The receiving vehicle performs emergency message trust assessment

[0143] When receiving vehicle V i Query the broadcast vehicle V j The trust value T j After that, the broadcast vehicle V will be calculated j Broadcast Message Credibility of the message This system calculates When considering the impact of two factors on the credibility of this communication message: the trust value of the broadcasting vehicle T j and environmental trust value T env , as shown in (9):

[0144]

[0145] Among them, the parameters λ and θ are the weights of the broadcast vehicle trust value and the environment trust value in the credibility of this message, λ+θ=1. Environment trust value T env It reflects the real situation of the message broadcast by the broadcasting vehicle in this communication. Considering that the environmental trust value is affected by the freshness of the message and the geographical location where the message is generated, that is, the longer the time when the message is generated is from the time when the accident occurs, the lower the environmental trust value; the farther the geographical location where the message is generated is from the geographical location where the accident occurs, the lower the environmental trust value. env It is expressed as shown in (10):

[0146] T env =T t / 2+T d / 2 (10)

[0147] Among them, T t and T d They respectively represent the impact of message freshness and message generation location on the environmental trust value. Definition t Thr and d Thr V is the message effective time threshold and message effective distance threshold. i Can from Get the time of the accident Location of the accident Message generation time And the location where the message is generated make T t and T d The calculations of are shown in (11) and (12) respectively:

[0148]

[0149]

[0150] Where exp represents an exponential function with the natural constant e as the base, and γ is a preset parameter that controls T t and T d The rate of change of Δt-t Thr Indicates the difference between the message freshness and the message validity time threshold, Δd-d Thr Indicates the difference between the distance between the message generation location and the accident location and the message effective distance threshold.

[0151] Assume V i Received n emergency messages about accident e, then V i The number of these n messages will be calculated To obtain the message credibility set about accident e Finally, based on the message credibility set C e , the aggregate credibility of the occurrence of accident e is calculated through the Bayesian inference formula. The calculation process is shown in (13):

[0152]

[0153] Where P(e) is the prior probability of event e occurring, The present invention pre-sets a trust threshold T Thr , if P(e / C e )≥T Thr , the message is considered credible. Otherwise, the message is considered unreliable

[0154] S6. Receive feedback from the vehicle and update the trust value

[0155] When receiving vehicle V i Through the area where the emergency incident e occurs, feedback will be submitted to the RSU As shown in (14).

[0156]

[0157] in, is the vehicle V j Broadcast emergency message, vehicle V i After receiving, save it locally. After submission, the vehicle V i Will be deleted locally is the vehicle V i The current time obtained from the TPM. Indicates vehicle V i The timestamped signature of this message, fb i (i∈1,2...,n) is the vehicle V i For urgent messages ’s evaluation, as shown in (15).

[0158]

[0159] RSU Received After that, check Check if it exists in the local cache Because of the design of this system, only vehicles that have received the accident broadcast message and initiated a trust value query can submit feedback. If the check fails, it will be discarded. RSU checks and aggregates all received Statistics of fb i The number of 1s is recorded as a. Statistics fbi The number of 0s is recorded as b. According to the number of feedback 1s a, increase V j The trust value T j , T j =T j +tanh(2a / (a+b))(where tanh() is a hyperbolic tangent function, and its function value changes are consistent with the trust value update of this system); according to the number of feedback 0s b, reduce V j The trust value T j , T j =T j -tanh(2b / (a+b)). Finally, RSU interacts with the blockchain network and submits the updated trust value T in the ledger. j transaction proposal.

[0160] Embodiment 3:

[0161] Figure 4 This is a comparison chart of the average trust value query delay under the two cache strategies involved in Example 1 of the present invention and the existing system (taking the blockchain-based VANET trust management system proposed by LIU et al. and the blockchain-based distributed vehicle network trust management system proposed by YANG et al. as examples), respectively, in the case of 10 groups of broadcast messages, and the number of vehicles at this time is 100.

[0162] Figure 5 It is a comparison chart of the changes in the accuracy of message trust evaluation in Example 2 of the present invention and the existing system under environments where the proportion of malicious vehicles is 0%, 10%, 20%, 30%, and 40%, respectively.

[0163] Figure 6 This is a comparison diagram of the average message trust evaluation delay of the trust value query algorithm under the two cache strategies involved in Example 1 of the present invention and the existing system, respectively, in the case of 10 groups of broadcast messages, and the number of vehicles at this time is 100.

[0164] Now define the message trust evaluation accuracy as shown in (16).

[0165]

[0166] Among them, TP and TN represent trust in real accident news and distrust in false accident news respectively; FP represents trust in false accident news, and FN represents distrust in real accident news. Figure 5 As shown, in an environment where malicious vehicles account for 20%, the message trust evaluation accuracy of the system proposed in the present invention is better than the distributed Internet of Vehicles trust management system based on blockchain proposed by YANG et al., and is on par with the VANET trust management system based on blockchain proposed by LIU et al.

[0167] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable ordinary technicians in the field to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made based on the essence of the content of the present invention should be included in the protection scope of the present invention.

Claims

1. An efficient Internet of Vehicles trust query and evaluation system, It is characterized in that include: The blockchain network includes communication nodes such as client nodes, peer nodes, and sorting nodes; The client node is the access point for users to interact with the blockchain network, and sends transaction proposals to the designated peer node to obtain endorsement; the peer node is the main node of the blockchain network, responsible for maintaining the ledger and smart contracts, responding to the client's transaction proposals, and verifying the block content. All peer nodes maintain a common ledger; the sorting node is responsible for sorting the endorsed transaction proposals, generating blocks and sending them to the peer node, which writes the blocks into the ledger; The Vehicle Registration Center (VRC) is used to distribute identity tags, keys, and cryptographic algorithms to vehicles. It is a client node on the blockchain network and can interact with the blockchain network. Roadside Unit RSU, used to process requests from vehicles, as a client node of the blockchain network, capable of interacting with the blockchain network; The roadside unit RSU is provided with a pre-caching strategy, including: Whenever a new vehicle V j Entering the range of the roadside unit RSU, the roadside unit RSU will j Send an inquiry message Query vehicle ID j , as shown in (1): The ID field indicates that this is a request for the vehicle ID. RSU Represents the public key of the roadside unit RSU, Obtained from the built-in clock of the roadside unit RSU; is a roadside unit RSU's signature with a timestamp for this message; vehicle V j After receiving the request, verify the signature first After verification, the query request response message is returned As shown in (2): in By vehicle V j From TPM, is the vehicle V j Signature of this message with timestamp; received by the roadside unit RSU Verify the signature first Then call the cache trust value algorithm under the pre-caching strategy to query and cache the ID j The corresponding trust value T j ; When an accident e occurs, vehicle V j Witness the accident and broadcast the accident message. After receiving the message, the subsequent vehicles initiate a V j The trust value query request, the road side unit RSU calls the trust value query algorithm in the cache to query; j = 1, ..., n; The roadside unit RSU is provided with a post-query cache strategy, including: When a vehicle V i Send a trust value query request message to the roadside unit RSU To query vehicle V j The trust value T j ; Roadside unit RSU receives After that, the signature is verified first, and then the trust value query algorithm under the query cache strategy is called to query the ID j The corresponding trust value T j , that is, RSU first queries the local cache. If the local cache does not hit T j , then the vehicle roadside unit RSU will interact with the blockchain and call the smart contract to query the vehicle V j The trust value T j ; Finally, the roadside unit RSU stores the query results in Return to vehicle V i , and cache the query content and query records locally; when the subsequent vehicle queries the roadside unit RSU for vehicle V j When the trust value is reached, the road side unit RSU will call the cache query trust value algorithm to query the cache.

2. The efficient Internet of Vehicles trust query and evaluation system as claimed in claim 1, It is characterized in that The client node interacts with the blockchain network including: When a client node needs to query or change the ledger, it will create a transaction proposal, which is a request to call a smart contract method with certain input parameters. The purpose of the request is to query or update the ledger. The proposal content includes the smart contract identifier to be called, the contract method, related parameters and endorsement policy. The endorsement policy is declared when the smart contract is deployed, declaring which peer nodes need to endorse the transaction. The client sends the transaction proposal to the peer node that needs to endorse the transaction proposal according to the endorsement policy.

3. The efficient Internet of Vehicles trust query and evaluation system as claimed in claim 2, It is characterized in that After the client creates a transaction proposal, it interacts with the blockchain network. The interaction process includes: The client node connects to the designated Peer node through the software development kit provided by the Fabric blockchain; The client node submits a transaction proposal to the Peer node; The Peer node that has deployed the smart contract has an additional endorsement role. When the client initiates a transaction proposal to update the ledger, it needs to send the transaction proposal to the specified Peer node according to the endorsement policy to request endorsement; when the endorsement is completed, the Peer node returns the signature and execution result as a proposal response to the client node; the client node verifies the signatures of each endorsement node based on the collected proposal responses, and compares whether the execution results are consistent; if the client node initiates a query operation, after checking the proposal response, the transaction proposal and proposal response will not be sent to the sorting node; If the client node initiates an update operation, after determining that the collected proposal responses meet the endorsement policy, the client node sends the transaction proposal and proposal response to the sorting node together; the sorting node sorts the transaction proposals sent by all clients by time; after meeting the block conditions, the sorting node packages the transaction into a block and sends it to each Peer node; the Peer node will first verify whether the signature in each proposal response is valid, and then verify whether the transaction proposal is valid based on its own account book status; if the verification is successful, the new block will be added to the local blockchain and the world status will be updated; After the Peer node updates the ledger, it sends a ledger update notification to the client node.

4. An efficient Internet of Vehicles trust query and evaluation method, based on the system described in claim 1, It is characterized in that include: S1. System initialization Vehicle Registration Center VRC, Roadside Unit RSU node initialization clock and a secure digital signature scheme DS; When the vehicle is registered, the vehicle registration center VRC executes step S2 to interact with the blockchain; S2. Save data to blockchain and complete registration The Vehicle Registration Center (VRC) will register the vehicle ID i , initial trust value T i , public key DescriptionDp a After string concatenation Save to the Fabric blockchain, end the vehicle registration process, and return a successful result; S3. Emergency message dissemination If an emergency occurs within the coverage area of ​​a roadside unit RSU, it is recorded as e. Nearby vehicles perceive the emergency through OBU and convert the accident into a fixed-format message. Calculate using hash algorithm Hash value Get the current time from the Trusted Platform Module (TPM) and current location coordinates Generate a signature with timestamp and location stamp Finally, the vehicle V j Generate an emergency message and broadcast it to the rest of the vehicles; S4. Receive a trust value query initiated by the vehicle When receiving vehicle V i From the broadcast vehicle V j Get the message When the trusted platform module TPM built-in verification algorithm Verify and Verify the signature If the verification is successful, the vehicle V i Local storage As a basis for subsequent feedback; then, the vehicle V i Send message to roadside unit RSU To query vehicle V j Trust value; Finally, the roadside unit RSU stores the query result in Return to vehicle V i ; S5. Receiving vehicle performs emergency message trust assessment When receiving vehicle V i Query the broadcast vehicle V j The trust value T j After that, the broadcast vehicle V will be calculated j Broadcast Message Credibility of the message S6. Receive feedback from the vehicle and update the trust value When receiving vehicle V i Passing the area where the emergency accident occurred, feedback will be submitted to the roadside unit RSU to determine whether the accident actually occurred. in, is the vehicle V j Broadcast emergency message, vehicle V i After receiving, save it locally; in the feedback After submission, the vehicle V i Will be deleted locally is the vehicle V i The current time obtained from the TPM; Indicates vehicle V i The timestamped signature of this message, fb i (i∈1,2...,n) is the vehicle V i For urgent messages Two-dimensional evaluation; The subsequent roadside unit RSU updates the vehicle's trust value based on the feedback.

Citation Information

Patent Citations

  • Internet of Vehicles system based on block chain and working method

    CN110446183A

  • Anti-quantum calculation Internet of Vehicles method and system based on identity secret sharing and alliance chain

    CN110830244A

  • Internet of Vehicles system and method based on secret sharing and alliance chain

    CN111277978A

  • Internet of vehicles access control method based on zero trust mechanism

    CN114567473A

  • Method and system for distribution of computational and storage capacity using a plurality of moving nodes in different localities: a new decentralized edge architecture

    US20210117860A1