A method for authenticating messages in Internet of Vehicles

By adopting the Internet of Vehicles message authentication method of blockchain and trust evaluation model in VANETs, ​​the security risks caused by messages in VANETs not being authenticated in a timely manner are solved, and the message utilization rate and system security are improved.

CN118368628BActive Publication Date: 2024-08-23EAST CHINA JIAOTONG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410781204.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-23
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

The open wireless transmission environment of VANETs has hidden dangers of security attacks. Failure to authenticate messages in time will lead to the failure of security messages between systems. The message utilization rate is low, which can easily lead to security accidents.

Method used

Using the Internet of Vehicles message authentication method based on blockchain and trust evaluation model, through initialization to generate system parameters and terminal registration, the vehicle collects environmental information signatures in real time, and the roadside unit performs message authentication and trust value calculation, updates and stores them in the blockchain to ensure the security and validity of messages.

Benefits of technology

It improves message utilization, reduces message delay, prevents external attacks, ensures message security and system stability, and enhances the service rate of roadside units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118368628B
    Figure CN118368628B
Patent Text Reader

Abstract

The present invention provides a method for authenticating vehicle network messages, including: initializing a vehicle network system; the vehicle collects environmental information in real time, and sends the collected environmental information to a road side unit after signing the message; the road side unit receives the message sent by the vehicle, authenticates the message based on a trust evaluation model, and broadcasts the authenticated message to other vehicles; the road side unit collects feedback messages based on the broadcast message, and calculates a first trust value of the vehicle collecting environmental information; obtains a second trust value of the vehicle collecting environmental information from a blockchain, and calculates a comprehensive trust value of the vehicle collecting environmental information based on the first trust value and the second trust value; the comprehensive trust value of the vehicle collecting environmental information is updated by the road side unit, and the updated trust value is added to the blockchain. The vehicle network message authentication method provided by the present invention improves the utilization rate of messages and the verification efficiency of the road side unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to vehicle networking communication information security technology, and in particular to a vehicle networking message authentication method. Background Art

[0002] With the rapid growth of the number of vehicles and the rapid development of communication technology, Intelligent Transportation Systems (ITS) are considered to be a valuable and potential solution to traffic safety issues. Vehicular Ad Hoc Networks (VANETs) are the key technologies of ITS and have been widely studied. The propagation and communication of messages are the basis for supporting various applications of ITS, so the security of messages transmitted in the network is crucial.

[0003] At present, the open wireless transmission environment of VANETs has various hidden dangers of security attacks. For example, simulation attacks, replay attacks, message tampering attacks, etc. It is of great significance to verify the messages in VANETs to ensure the security of VANETs applications; in addition, due to the large speed differences between VANETs terminal systems, the network topology of VANETs will change significantly in a short period of time. If the message cannot be authenticated in time, the security messages exchanged between the systems will become invalid and discarded, and failure to verify the message may cause other terminals in VANETs to miss important messages, resulting in low message utilization and low road-side unit verification efficiency, which can easily lead to safety accidents. Summary of the invention

[0004] Based on this, the purpose of the present invention is to provide a method for authenticating vehicle network messages to solve the technical problems existing in the prior art.

[0005] The present invention proposes a vehicle networking message authentication method, which is used for message authentication between a vehicle and a road side unit in a vehicle networking system. The vehicle networking system includes an on-board self-organizing network, and the on-board self-organizing network includes at least a trusted institution, a road side unit and a vehicle.

[0006] The message authentication method comprises:

[0007] Step 1: Initialize the Internet of Vehicles system, including generating system parameters and registering a roadside unit and a vehicle;

[0008] Step 2: The vehicle collects environmental information in real time, signs the collected environmental information, and sends the signed message to the roadside unit;

[0009] Step 3: The roadside unit receives the message sent by the vehicle, authenticates the message based on the trust evaluation model, and broadcasts the authenticated message to other vehicles;

[0010] Step 4: The roadside unit collects first feedback messages from other vehicles after receiving the broadcast message and second feedback messages from preset reliable vehicles, and calculates a first trust value of the vehicle collecting environmental information based on the first feedback message and the second feedback message;

[0011] Step 5, obtaining a second trust value of the vehicle collecting environmental information, and calculating a comprehensive trust value of the vehicle collecting environmental information based on the first trust value and the second trust value;

[0012] Step six: Based on the comprehensive trust value, the road side unit will update the trust value of the vehicle that collects environmental information and add the updated trust value to the blockchain.

[0013] Preferably, in step 1, generating system parameters includes:

[0014] Randomly select prime numbers from a finite field through a trusted authority and two elliptic curve coefficients and , generate elliptic curve ;

[0015] From the elliptic curve Select a point on ,by Generate the elliptic curve cyclic additive group for order , and satisfy ,in, Respectively and The bit size of is the security level of the Internet of Vehicles system. is the bit size of the transmitted message;

[0016] By selecting the system master key , multiple one-way hash functions , hash chain , according to the master key Compute the system's public key ,in, For the A one-way hash function;

[0017] Generate system parameters: .

[0018] Preferably, the registering of the roadside unit and the vehicle comprises:

[0019] Pass the roadside unit identity information through the secure channel Sent to a trusted authority, which calculates the roadside unit private key and sending it to the road side unit through the security channel to complete the registration of the road side unit;

[0020] Pass the user's identity through a secure channel , Vehicle identity and the corresponding password Sent to a trusted institution, which calculates the first vehicle verification key corresponding to the vehicle and the second vehicle authentication key ;

[0021] Get verification public key parameters , according to the verification public key parameters Calculate vehicle verification public key , the anonymous identity of the vehicle And part of the private key , third vehicle verification key , get the vehicle registration parameters and send the vehicle's registration parameters through a secure channel Issued to the vehicle and stored in a non-tamperable device in the vehicle Complete the vehicle registration.

[0022] Preferably, the roadside unit private key The expression is:

[0023]

[0024] The first vehicle authentication key The expression is:

[0025]

[0026] The second vehicle authentication key The expression is:

[0027]

[0028] The vehicle verification public key The expression is:

[0029]

[0030] The anonymous identity of the vehicle The expression is:

[0031]

[0032] The third vehicle authentication key The expression is:

[0033]

[0034] Partial private key of said vehicle The expression is:

[0035] .

[0036] Preferably, the step 2 specifically includes:

[0037] Get the User-entered identity information and password , in The corresponding user Car In the input identity information and password Calculate the first vehicle authentication key and the second vehicle authentication key ;

[0038] The second vehicle authentication key will be calculated Stored in the current vehicle when registered Second vehicle authentication key in For comparison, if , then the authentication fails and the service is denied;

[0039] like , the authentication is passed and the user logs in successfully;

[0040] After the user successfully logs in, obtain the vehicle public key parameters , and calculate the vehicle public key , according to the vehicle public key Calculate vehicle private key parameters ;

[0041] According to the vehicle private key parameters and the partial private key of the current vehicle Calculate the private key of the current vehicle , and generate a message signature ;

[0042] The signed message Sent to the roadside unit, For the The vehicle's authentication public key, For the Environmental information collected by the vehicle.

[0043] Preferably, the vehicle public key The expression is:

[0044]

[0045] The vehicle private key parameters The expression is:

[0046]

[0047] The private key The expression is:

[0048] .

[0049] Preferably, the step three specifically includes:

[0050] After receiving the message sent by the vehicle, the roadside unit queries the trust value of the vehicle in the blockchain according to the anonymous information of the vehicle in the message. , and the preset vehicle trust threshold Make comparisons;

[0051] like , then discard the message;

[0052] like , then calculate as well as ;

[0053] Judge the first equation: whether it is established;

[0054] If the first equation does not hold, the message is discarded. If the first equation holds, the message of the current vehicle received by the roadside unit is authenticated.

[0055] Preferably, the message authentication method further includes authenticating messages of batch vehicles, and the authenticating messages of batch vehicles specifically includes:

[0056] The roadside unit receives messages sent by multiple vehicles, queries the trust value of each vehicle based on the anonymous information in the message, and compares it with the preset vehicle trust threshold. Compare and discard vehicles whose trust value is lower than the preset trust threshold Messages sent by vehicles;

[0057] Calculate the average trust value of all vehicles corresponding to the retained messages , average trust value The expression is:

[0058]

[0059] In the formula, is the vehicle trust value corresponding to all retained messages, The number of vehicles corresponding to all the retained messages;

[0060] Based on whether the vehicle trust value is greater than the average trust value , the retained vehicle messages are divided into two message verification batches for verification;

[0061] Judge the second equation: whether it is established;

[0062] In the formula, is the number of vehicles in the current verification batch, The validation random factor selected for roadside unit validation, is an integer, and ,in, is a safety parameter;

[0063] If the second equation is true, the message authentication in the current message verification batch is passed. If the second equation is not true, there are invalid messages in the current message verification batch.

[0064] Preferably, the expression of the first trust value is:

[0065]

[0066] In the formula, is the number of vehicles in the first feedback information, The first feedback information The trust value of the car, For the Car to The first feedback information of the environmental information collected by the vehicle, , Indicates that the first feedback information is useful, Indicates that the first feedback information is useless. For the The trust value of the preset reliable vehicle, For the Preset reliable vehicle for the first The second feedback information of the environmental information collected by the vehicle, , Indicates that the second feedback information is useful, Indicates that the second feedback information is useless;

[0067]

[0068] In the formula,

[0069] , For the Car to The number of useful reviews a car has received. for Moment Car to The number of useful reviews a car has received. For the Car to The number of useless reviews accumulated by the vehicle;

[0070]

[0071] In the formula,

[0072] For the Preset reliable vehicle for the first The number of useful reviews a car has received. for Moment Preset reliable vehicle for the first The number of useful reviews a car has received. For the Preset reliable vehicle for the first The number of useless reviews accumulated by the vehicle;

[0073] The expression of the second trust value is:

[0074]

[0075] In the formula, and is the trust function parameter, , and are the number of times the road-side unit successfully and unsuccessfully verified messages sent to vehicles in history, is the penalty factor;

[0076] The expression of the comprehensive trust value is:

[0077]

[0078] In the formula, and are the weight coefficients of the first trust value and the second trust value respectively.

[0079] Preferably, the step six specifically includes:

[0080] Selecting a miner node in the roadside unit based on the PoS algorithm, and generating a block through the miner node, wherein the block contains the anonymous identity and comprehensive trust value of the environment collection vehicle;

[0081] The PBFT consensus algorithm is used to enable the road-side unit of the miner node and the road-side unit of the consensus node to reach a consensus, and the block is stored in the blockchain, so that the road-side unit can share the updated comprehensive trust value.

[0082] Compared with the prior art, the beneficial effects of the present invention are as follows: the vehicle network message authentication method provided by the present application is based on blockchain and a trust evaluation model, and is used for message authentication between vehicles and road side units in a vehicle network system; first, the system is initialized, and the initialization generates vehicle network system parameters on the one hand, and completes the registration of vehicles and RSUs; through registration, each terminal needs to be authorized before entering the network to prevent VANETs from being attacked externally and ensure the security of messages; after registration is completed, environmental information is collected in real time through the vehicle, and the collected environmental information is signed and sent to the road side unit, a trust evaluation model is introduced, and messages sent by the vehicle to the road side unit are authenticated, false messages are screened out in advance, the RSU service rate is improved, and message delays are reduced; authenticated messages are sent to other vehicles by broadcasting; the trust value of the environment collection vehicle is updated according to the feedback information of other vehicles, and shared and maintained through blockchain. The blockchain is deployed on the road side unit to maintain key data such as the vehicle trust value, so as to achieve the purpose of distributed storage and anti-tampering; and the utilization rate of messages is improved.

[0083] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] Figure 1 Provide a vehicle networking system model diagram for an embodiment of the present invention;

[0085] Figure 2 A flowchart of a method for authenticating a message in an Internet of Vehicles provided by an embodiment of the present invention;

[0086] Figure 3 A graph showing changes in the trust value within a preset time period for Internet of Vehicles message authentication provided by an embodiment of the present invention.

[0087] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0088] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0089] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0090] An embodiment of the present invention provides a vehicle networking message authentication method for message authentication between a vehicle and a road side unit in a vehicle networking system, such as Figure 1 As shown in the figure, there are mainly three types of participants, namely, trusted authority (TA), roadside unit (RSU), and vehicle; the vehicle is equipped with an on-board unit (OBU) to provide wireless communication capabilities. As a fully trusted evaluation center, TA is responsible for initializing system parameters and registering vehicles and RSUs. RSU is installed along the road and communicates with TA through a wired network. As a bridge between vehicles and TA, it is responsible for verifying information from vehicles, broadcasting collected environmental information to vehicles within the coverage area, and providing services to vehicles. It is also responsible for maintaining the blockchain that stores vehicle trust values, including miner election, block generation, distributed consensus, and chaining. The two types of communication in VANETs include vehicle-to-vehicle (V2V) communication and vehicle-to-infrastructure (V2I) communication, which is the core of ITS. In safety-related V2V communication, vehicles need to share traffic safety information (including speed, location, etc.) with nearby vehicles. In safety-related V2I communications, network infrastructure such as RSU is required to provide traffic-related services to nearby vehicles; vehicles are equipped with TPD (tamper-proof device), OBU (on-board unit), GPS (global positioning system) and various sensors, and communicate wirelessly with RSU through OBU.

[0091] See also Figure 2 , Optionally, in this embodiment, the message authentication method includes steps one to six.

[0092] Step 1: Initialize the Internet of Vehicles system, including generating system parameters and registering a roadside unit and a vehicle;

[0093] Step 2: The vehicle collects environmental information in real time, signs the collected environmental information, and sends the signed message to the roadside unit;

[0094] Step 3: The roadside unit receives the message sent by the vehicle, authenticates the message based on the trust evaluation model, and broadcasts the authenticated message to other vehicles;

[0095] Step 4: The roadside unit collects first feedback messages from other vehicles after receiving the broadcast message and second feedback messages from preset reliable vehicles, and calculates a first trust value of the vehicle collecting environmental information based on the first feedback message and the second feedback message;

[0096] Step 5, obtaining a second trust value of the vehicle collecting environmental information, and calculating a comprehensive trust value of the vehicle collecting environmental information based on the first trust value and the second trust value;

[0097] Step six: Based on the comprehensive trust value, the road side unit will update the trust value of the vehicle that collects environmental information and add the updated trust value to the blockchain.

[0098] The vehicle network message authentication method provided in this embodiment is based on blockchain and a trust evaluation model, and is used for message authentication between vehicles and road side units in a vehicle network system; first, the system is initialized, and the initialization generates vehicle network system parameters and completes the registration of vehicles and RSUs; through registration, each terminal needs to be authorized before entering the network to prevent VANETs from external attacks and ensure the security of messages; after registration is completed, environmental information is collected in real time through the vehicle, and the collected environmental information is signed and sent to the road side unit, a trust evaluation model is introduced, and messages sent by the vehicle to the road side unit are authenticated, false messages are screened out in advance, the RSU service rate is improved, and message delays are reduced; authenticated messages are sent to other vehicles by broadcasting; the trust value of the environment collection vehicle is updated according to the feedback information of other vehicles, and shared and maintained through blockchain. The blockchain is deployed on the road side unit to maintain key data such as the vehicle trust value, so as to achieve the purpose of distributed storage and tamper-proofing.

[0099] Optionally, in step 1, generating system parameters includes:

[0100] Randomly select prime numbers from a finite field through a trusted authority and two elliptic curve coefficients and , generate elliptic curve ;

[0101] From the elliptic curve Select a point on ,by Generate the elliptic curve cyclic additive group for order , and satisfy ,in, Respectively and The bit size of is the security level of the Internet of Vehicles system. is the bit size of the transmitted message;

[0102] By selecting the system master key , multiple one-way hash functions , , hash chain , according to the master key Compute the system's public key ,in, For the A one-way hash function;

[0103] Generate system parameters: .

[0104] In specific implementation, prime numbers Can be a large prime number greater than 200 bits, elliptic curve cyclic addition group is a discrete set of points; the master key , A preset set of integers.

[0105] Furthermore, the roadside unit registration includes:

[0106] Pass the roadside unit identity information through the secure channel Sent to a trusted authority, which calculates the roadside unit private key and sending it to the road side unit through the security channel to complete the registration of the road side unit;

[0107] Furthermore, vehicle registration includes:

[0108] Pass the user's identity through a secure channel , Vehicle identity and the corresponding password Sent to a trusted institution, which calculates the first vehicle verification key corresponding to the vehicle and the second vehicle authentication key ;

[0109] Get verification public key parameters , according to the verification public key parameters Calculate vehicle verification public key , the anonymous identity of the vehicle And part of the private key , third vehicle verification key , get the vehicle registration parameters and send the vehicle's registration parameters through a secure channel Issued to the vehicle and stored in a non-tamperable device in the vehicle Complete the vehicle registration.

[0110] It can be understood that in this embodiment, the user, vehicle, etc. may include multiple users and vehicles, and the user and the vehicle are corresponding; that is, the user identity , vehicle identity ; , the first vehicle authentication key Similarly, each vehicle at the time of registration , , Other parameters correspond to vehicles, and there are multiple corresponding parameters, which will not be repeated here.

[0111] Furthermore, in this embodiment,

[0112] The roadside unit private key The expression is:

[0113]

[0114] The first vehicle authentication key The expression is:

[0115]

[0116] The second vehicle authentication key The expression is:

[0117]

[0118] The vehicle verification public key The expression is:

[0119]

[0120] The anonymous identity of the vehicle The expression is:

[0121]

[0122] The third vehicle authentication key The expression is:

[0123]

[0124] Partial private key of said vehicle The expression is:

[0125] .

[0126] Furthermore, step 2 specifically includes:

[0127] Get the User-entered identity information and password , in The corresponding user Car In the input identity information and password Calculate the first vehicle authentication key and the second vehicle authentication key ;

[0128] The second vehicle authentication key will be calculated Stored in the current vehicle when registered Second vehicle authentication key in For comparison, if , then the authentication fails and the service is denied;

[0129] like , the authentication is passed and the user logs in successfully;

[0130] After the user successfully logs in, obtain the vehicle public key parameters , and calculate the vehicle public key , according to the vehicle public key Calculate vehicle private key parameters ;

[0131] According to the vehicle private key parameters and the partial private key of the current vehicle Calculate the private key of the current vehicle , and generate a message signature ;

[0132] The signed message Sent to the roadside unit, For the The car's verification public key, For the Environmental information collected by the vehicle.

[0133] Furthermore, the vehicle public key The expression is:

[0134]

[0135] In the formula, For elliptic curve The point selected on

[0136] The vehicle private key parameters The expression is:

[0137]

[0138] The private key The expression is:

[0139] .

[0140] In the specific implementation, the environmental information is collected through the vehicle. First, the user logs in to the vehicle. In this embodiment, it is assumed that Users Login vehicle, user In step 1, the user has registered. for one of the, is the number of registered users; similarly, users The corresponding vehicle identity information is , the password is , other corresponding parameters are similar; when the vehicle is registered A second vehicle authentication key is stored in , based on the user's logged-in identity information and password Calculate the corresponding second vehicle verification key , if the calculated second vehicle verification key If they are equal to those stored in the vehicle, the authentication is successful. If they are not equal, the authentication fails and the service is denied. After the verification is successful, the message is signed and the vehicle sends the signed message to the road side unit. This application adopts a signature scheme based on elliptic curve cryptography. The designed message authentication scheme has low computational overhead and communication overhead, and has a high service rate.

[0141] Furthermore, step three specifically includes:

[0142] After receiving the message sent by the vehicle, the roadside unit queries the trust value of the vehicle in the blockchain according to the anonymous information of the vehicle in the message. , and with the preset vehicle trust threshold Make comparisons;

[0143] like , then discard the message;

[0144] like , then calculate as well as ;

[0145] Judge the first equation: whether it is established;

[0146] If the first equation does not hold, the message is discarded. If the first equation holds, the message of the current vehicle received by the roadside unit is authenticated.

[0147] In specific implementation, vehicles on the road periodically send messages to the roadside unit. , Based on the blockchain deployed on it, query the vehicle trust value stored in the blockchain through the smart contract; According to the trust value of the vehicle, determine whether the message is false and filter out false messages in advance; if the vehicle meets the trust value, further calculation is performed to determine the equation Is it true? If the first equation is true, the message authentication of the current vehicle received by the road side unit is successful.

[0148] Furthermore, the message authentication method further includes authenticating messages of batch vehicles, and the authentication of messages of batch vehicles specifically includes:

[0149] The roadside unit receives messages sent by multiple vehicles, queries the trust value of each vehicle based on the anonymous information in the message, and compares it with the preset vehicle trust threshold. Compare and discard vehicles whose trust value is lower than the preset trust threshold Messages sent by vehicles;

[0150] Calculate the average trust value of all vehicles corresponding to the retained messages , average trust value The expression is:

[0151]

[0152] In the formula, is the vehicle trust value corresponding to all retained messages, The number of vehicles corresponding to all the retained messages;

[0153] Based on whether the vehicle trust value is greater than the average trust value , the retained vehicle messages are divided into two message verification batches for verification;

[0154] Judge the second equation: whether it is established;

[0155] In the formula, is the number of vehicles in the current verification batch, The validation random factor selected for roadside unit validation, is an integer, and ,in, is a safety parameter;

[0156] If the second equation is true, the message authentication in the current message verification batch is passed. If the second equation is not true, there are invalid messages in the current message verification batch.

[0157] In specific implementation, the message authentication method provided by the present application also includes authenticating messages of batch vehicles. Receive multiple vehicles After sending the message, according to the vehicle anonymous information Query the trust value of the vehicle in the blockchain and discard vehicles below the threshold Message; The retained messages are divided into batches, and the vehicle trust value is greater than The vehicle set is ,in, Calculate the average trust value of the vehicle in all retained messages ; Based on whether it is greater than the average trust value The retained vehicle messages are divided into two message verification batches and verified simultaneously. To improve the authentication efficiency, a batch authentication method is introduced. Authenticate multiple messages at the same time, thereby reducing authentication time and further improving The service efficiency is shown as follows: ,in, ; The corresponding message set is ; The random factors chosen are ; ,in, is a safety parameter, It can be taken as 80; similarly, the set of vehicles whose trust value is not greater than the average trust value is , the corresponding message set is ; The random factors chosen are ;After passing the certification, Broadcast the authenticated message to other vehicles; this application adopts a trust evaluation mechanism to pre-screen malicious messages sent by malicious vehicles to reduce the waste of computing resources.

[0158] Furthermore, step four specifically includes:

[0159] Collect feedback messages of broadcast messages. In order to prevent collusion attacks, preset reliable vehicles (reliable nodes) are introduced to evaluate the messages.

[0160] Optional, Receive the first feedback message after other vehicles receive the broadcast message and the second feedback message of the preset reliable vehicle, calculate the first The first trust value of the car, that is, the indirect trust value.

[0161] The expression of the first trust value is:

[0162]

[0163] In the formula, is the number of vehicles in the first feedback information, The first feedback information The trust value of the car, For the Car to The first feedback information of the environmental information collected by the vehicle, , Indicates that the first feedback information is useful, Indicates that the first feedback information is useless. For the The trust value of the preset reliable vehicle, For the Preset reliable vehicle for the first The second feedback information of the environmental information collected by the vehicle, , Indicates that the second feedback information is useful, Indicates that the second feedback information is useless;

[0164]

[0165] In the formula,

[0166] , For the Car to The number of useful reviews a car has received. for Moment Car to The number of useful reviews a car has received. For the Car to The number of useless reviews accumulated by the vehicle;

[0167]

[0168] In the formula,

[0169] For the Preset reliable vehicle for the first The number of useful reviews a car has received. for Moment Preset reliable vehicle for the first The number of useful reviews a car has received. For the Preset reliable vehicle for the first The number of useless reviews accumulated by the vehicle;

[0170] The expression of the second trust value is:

[0171]

[0172] In the formula, and is the trust function parameter, , and are the number of times the road-side unit successfully and unsuccessfully verified messages sent to vehicles in history, is the penalty factor;

[0173] The expression of the comprehensive trust value is:

[0174]

[0175] In the formula, and are the weight coefficients of the first trust value and the second trust value respectively.

[0176] Optionally, in this embodiment, the preset reliable vehicles may also be multiple vehicles; the vehicle trust threshold value preset by the vehicle Set to 0.5, the trust value of the vehicle in the 0-12 time period changes as follows Figure 3 As shown, the vehicle's behavior in time periods 1-5 was normal, and the trust value increased normally. In time periods 6-8, the vehicle exhibited malicious behavior, and the vehicle's trust value dropped sharply and fell below the threshold of 0.5. The present invention takes into account the change in trust value caused by the increase in the number of historical malicious behaviors of the vehicle. During periods 9-12, the vehicle's behavior was normal, but due to the vehicle's past malicious behavior, the vehicle's trust value recovered slowly. In summary, the trust value calculation method proposed in the present invention can update the trust value according to the vehicle behavior, and has sensitive detection capabilities for malicious behavior of the vehicle.

[0177] Furthermore, step six specifically includes:

[0178] Based on the PoS algorithm, a miner node is selected in the roadside unit, and a block is generated through the miner node, wherein the block contains the anonymous identity and comprehensive trust value of the environment collection vehicle; that is, the block contains ;

[0179] In specific implementation, due to the distributed network structure, there is no fixed central node to evaluate the blockchain. Therefore, in order to generate a new block, a miner node is periodically selected from all RSUs. The present invention uses a PoS algorithm with different hash thresholds for different nodes to select miner nodes, thereby generating different blocks. The sum of the absolute values ​​of the relative trust values ​​(the sum of the absolute values ​​of the difference between the updated trust value and the historical trust value) is used as proof of equity to elect miner nodes, and the difficulty of becoming a miner node depends on the proof of equity. The RSU with greater equity can more easily find the next block and win the election (i.e., publish its own block faster), thereby ensuring the instant update of the data stored in the blockchain.

[0180] The expression of the proposed miner selection method is:

[0181]

[0182] In the formula, for The hash threshold of Indicates indivual ,all Constantly changing , calculate the hash value according to the above formula, and get the one that satisfies the above conditions Selected as a mining node.

[0183] The PBFT consensus algorithm is used to make the road-side unit of the miner node and the road-side unit of the consensus node reach a consensus, and the block is stored in the blockchain, so that the road-side unit can share the updated comprehensive trust value;

[0184] In the specific implementation, the miner node Broadcast the timestamped block data (remembered as NewBlock), signature and proof of stake to the consensus To verify;

[0185] At the consensus node Confirmation from miner node After the message is valid, these consensus nodes will broadcast their audit results to each other using their signatures;

[0186] Consensus Node Collect audit results from other nodes and compare with other nodes. If the number of matching audit results is greater than ( f is the number of Byzantine nodes), then all Send confirmation message;

[0187] If any one Collected more than If no consensus is reached, the miner node The audit results will be analyzed and, if necessary, another round of consensus will be conducted.

[0188] The present invention uses blockchain to store vehicle trust values, which can prevent the trust values ​​from being tampered with and facilitate RSU to update and query vehicle trust values.

[0189] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0190] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A method for authenticating messages in an Internet of Vehicles (IoV) system, used for authenticating messages between a vehicle and a roadside unit in an IoV system, wherein the IoV system includes an on-board self-organizing network, wherein the on-board self-organizing network includes at least a trusted institution, a roadside unit, and a vehicle, and wherein: The message authentication method comprises: Step 1: Initialize the Internet of Vehicles system, including generating system parameters and registering a roadside unit and a vehicle; Step 2: The vehicle collects environmental information in real time, signs the collected environmental information, and sends the signed message to the roadside unit; Step 3: The roadside unit receives the message sent by the vehicle, authenticates the message based on the trust evaluation model, and broadcasts the authenticated message to other vehicles; Step 4: The roadside unit collects first feedback messages from other vehicles after receiving the broadcast message and second feedback messages from preset reliable vehicles, and calculates a first trust value of the vehicle collecting environmental information based on the first feedback message and the second feedback message; Step 5, obtaining a second trust value of the vehicle collecting environmental information, and calculating a comprehensive trust value of the vehicle collecting environmental information based on the first trust value and the second trust value; Step 6: Based on the comprehensive trust value, the roadside unit updates the trust value of the vehicle that collects environmental information, and adds the updated trust value to the blockchain; The expression of the first trust value is: In the formula, is the number of vehicles in the first feedback information, The first feedback information The trust value of the car, For the Car to The first feedback information of the environmental information collected by the vehicle, , Indicates that the first feedback information is useful, Indicates that the first feedback information is useless. For the The trust value of the preset reliable vehicle, For the Preset reliable vehicle for the first The second feedback information of the environmental information collected by the vehicle, , Indicates that the second feedback information is useful, Indicates that the second feedback information is useless; In the formula, , For the Car to The number of useful reviews a car has received. for Moment Car to The number of useful reviews a car has received. For the Car to The number of useless reviews accumulated by the vehicle; In the formula, For the Preset reliable vehicle for the first The number of useful reviews a car has received. for Moment Preset reliable vehicle for the first The number of useful reviews a car has received. For the Preset reliable vehicle for the first The number of useless reviews accumulated by the vehicle; The expression of the second trust value is: In the formula, and is the trust function parameter, , and are the number of times the road-side unit successfully and unsuccessfully verified messages sent to vehicles in history, is the penalty factor; The expression of the comprehensive trust value is: In the formula, and are the weight coefficients of the first trust value and the second trust value respectively.

2. The vehicle networking message authentication method according to claim 1, characterized in that: In step 1, the generating system parameters includes: Randomly select prime numbers from a finite field through a trusted authority and two elliptic curve coefficients and , generate elliptic curve ; From the elliptic curve Select a point on ,by Generate the elliptic curve cyclic additive group for order , and satisfy ,in, Respectively and The bit size, is the security level of the Internet of Vehicles system. is the bit size of the transmitted message; By selecting the system master key , multiple one-way hash functions , hash chain , according to the master key Compute the system's public key ,in, For the A one-way hash function; Generate system parameters: .

3. The vehicle networking message authentication method according to claim 2, characterized in that: The registration of the roadside unit and the vehicle includes: Pass the roadside unit identity information through the safe channel Sent to a trusted authority, which calculates the roadside unit private key and sending it to the road side unit through the security channel to complete the registration of the road side unit; Pass the user's identity through a secure channel , Vehicle identity and the corresponding password Sent to a trusted institution, which calculates the first vehicle verification key corresponding to the vehicle and the second vehicle authentication key ; Get verification public key parameters , according to the verification public key parameters Calculate vehicle verification public key , the anonymous identity of the vehicle And part of the private key , third vehicle verification key , get the vehicle registration parameters and send the vehicle's registration parameters through a secure channel Issued to the vehicle and stored in a non-tamperable device in the vehicle Complete the vehicle registration.

4. The vehicle networking message authentication method according to claim 3, characterized in that: The roadside unit private key The expression is: The first vehicle authentication key The expression is: The second vehicle authentication key The expression is: The vehicle verification public key The expression is: The anonymous identity of the vehicle The expression is: The third vehicle authentication key The expression is: Partial private key of said vehicle The expression is: 。 5. The vehicle networking message authentication method according to claim 4, characterized in that: The step 2 specifically includes: Get the User-entered identity information and password , in The corresponding user Car In the input identity information and password Calculate the first vehicle authentication key and the second vehicle authentication key ; The second vehicle authentication key will be calculated Stored in the current vehicle when registered Second vehicle authentication key in For comparison, if , then the authentication fails and the service is denied; like , the authentication is passed and the user logs in successfully; After the user successfully logs in, obtain the vehicle public key parameters , and calculate the vehicle public key , according to the vehicle public key Calculate vehicle private key parameters ; According to the vehicle private key parameters and the partial private key of the current vehicle Calculate the private key of the current vehicle , and generate a message signature ; The signed message Sent to the roadside unit, For the The vehicle's authentication public key, For the Environmental information collected by the vehicle.

6. The vehicle networking message authentication method according to claim 5, characterized in that: The vehicle public key The expression is: The vehicle private key parameters The expression is: The private key The expression is: 。 7. The vehicle networking message authentication method according to claim 6, characterized in that: The step three specifically includes: After receiving the message sent by the vehicle, the roadside unit queries the trust value of the vehicle in the blockchain according to the anonymous information of the vehicle in the message. , and the preset vehicle trust threshold Make comparisons; like , then discard the message; like , then calculate as well as ; Judge the first equation: whether it is established; If the first equation does not hold, the message is discarded. If the first equation holds, the message of the current vehicle received by the roadside unit is authenticated.

8. The vehicle networking message authentication method according to claim 7, characterized in that: The message authentication method further includes authenticating messages of batch vehicles, wherein the authenticating messages of batch vehicles specifically includes: The roadside unit receives messages sent by multiple vehicles, queries the trust value of each vehicle based on the anonymous information in the message, and compares it with the preset vehicle trust threshold. Compare and discard vehicles whose trust value is lower than the preset trust threshold Messages sent by vehicles; Calculate the average trust value of all vehicles corresponding to the retained messages , average trust value The expression is: In the formula, is the vehicle trust value corresponding to all retained messages, The number of vehicles corresponding to all the retained messages; Based on whether the vehicle trust value is greater than the average trust value , the retained vehicle messages are divided into two message verification batches for verification; Judge the second equation: whether it is established; In the formula, is the number of vehicles in the current verification batch, The validation random factor selected for roadside unit validation, is an integer, and ,in, is a safety parameter; If the second equation is true, the message authentication in the current message verification batch is passed. If the second equation is not true, there are invalid messages in the current message verification batch.

9. The vehicle networking message authentication method according to claim 1, characterized in that: The step six specifically includes: Selecting a miner node in the roadside unit based on the PoS algorithm, and generating a block through the miner node, wherein the block contains the anonymous identity and comprehensive trust value of the environment collection vehicle; The PBFT consensus algorithm is used to enable the road-side unit of the miner node and the road-side unit of the consensus node to reach a consensus, and the block is stored in the blockchain, so that the road-side unit can share the updated comprehensive trust value.