Cooperative Internet of Vehicles trust management method based on block chain

By building a hierarchical trust evaluation and improving consensus algorithm in the Internet of Vehicles system, the problems of high false positive recognition rate and diversified service needs of malicious vehicles are solved, and more efficient trust management and consensus processing are achieved.

CN119012158AActive Publication Date: 2024-11-22CHONGQING UNIV OF POSTS & TELECOMM

Patent Information

Application Number
CN202411105247.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-11-22
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

The existing blockchain-based Internet of Vehicle Trust Management Solution has the problem that malicious vehicle identification false positives are high, cannot meet the needs of diversified service, and traditional consensus algorithms are not suitable for the Internet of Vehicles environment.

Method used

Adopt a collaborative trust management method based on blockchain to build system models through vehicles, roadside units, registration agencies and blockchain, hierarchical trust evaluation of vehicle behavior, reduce the rate of false positive identification of malicious vehicles, and improve the use of improved consensus algorithms. Consensus efficiency.

Benefits of technology

Effectively reduce the false positive rate of malicious vehicles, improve the success rate of service collaboration, improve consensus efficiency, and be suitable for the Internet of Vehicles environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119012158A_ABST
    Figure CN119012158A_ABST
Patent Text Reader

Abstract

The invention relates to the field of trust management in the Internet of Vehicles, in particular to a block chain-based collaborative Internet of Vehicles trust management method, which comprises the following steps of: constructing an Internet of Vehicles system which comprises a vehicle, a roadside unit, a registration mechanism and a block chain; the initiating vehicle initiates a cooperative service request, and the surrounding vehicles receive the cooperative service request and select whether to respond or not; the initiating vehicle calculates a local trust value of the responding vehicle, and selects the responding vehicle to participate in cooperation according to the local trust value; after the initiating vehicle completes cooperation with the cooperative vehicle, the initiating vehicle performs trust rating on the cooperative vehicle and uploads the trust rating to the roadside unit; the roadside unit uploads the block after reaching a consensus through a consensus algorithm, and completes the updating of the trust information of the cooperative vehicle; the method can effectively reduce the false positive rate of malicious vehicle identification, and improves the success rate of service cooperation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of trust management in Internet of Vehicles, and in particular to a collaborative Internet of Vehicles trust management method based on blockchain. Background Art

[0002] The Internet of Vehicles (IoV) is a new self-organizing wireless network derived from the Internet of Things, which mainly realizes multi-faceted network communications such as vehicle-to-vehicle, vehicle-to-road, and vehicle-to-people. Nowadays, with the intelligence of vehicles, people have established a safe and efficient intelligent transportation system with the help of the IoV, which has played a huge role in providing users with diversified services and reducing the occurrence of traffic accidents. However, with the deployment of a large number of sensors in vehicles and the increase in demand for in-vehicle services, information exchange between vehicles has become frequent. At this time, vehicles are vulnerable to attacks from malicious nodes within the IoV during the collaboration process, which reduces the efficiency of the IoV operation and even threatens the life safety of the driver.

[0003] At present, trust management schemes and blockchain technology are applied to the Internet of Vehicles system. The trust management scheme evaluates vehicle behavior and assigns trust values ​​to vehicles, so that only vehicles with a trust value greater than the trust threshold can participate in the Internet of Vehicles collaboration, thereby resisting attacks from malicious nodes within the Internet of Vehicles. However, most trust management schemes currently use a binary trust evaluation method, which divides vehicle behavior into only two levels: good and bad. At this time, the diversity of services in the Internet of Vehicles is not taken into account, that is, different collaborative services have different requirements for the capabilities of collaborative vehicles. Due to the neglect of this feature of the Internet of Vehicles, some vehicles with low computing and storage capabilities are selected as collaborative vehicles to perform more difficult tasks. When they cannot complete the collaborative services, they are marked as malicious vehicles. That is, the above scheme will produce a high false positive rate of malicious vehicle identification. In addition, managing the physical information and trust information of vehicles through blockchain can reduce the storage pressure of the central server, ensure data consistency and realize secure data storage. However, the traditional proof-of-work algorithm requires nodes to calculate complex mathematical problems to compete for the right to produce blocks, which will generate a large amount of consensus delay and high resource consumption, and is not suitable for direct application to the Internet of Vehicles system.

[0004] In summary, the existing various blockchain-based Internet of Vehicles trust management solutions have problems such as high false positive rate for malicious vehicle identification, inability to meet diversified services, and the consensus algorithm adopted is not suitable for the current Internet of Vehicles environment. There is still a lack of a trust management solution for vehicle collaboration scenarios. Summary of the invention

[0005] To solve the above problems, the present invention provides a blockchain-based collaborative Internet of Vehicles trust management method, comprising the following steps:

[0006] S1. Build a connected vehicle system, which includes vehicles, roadside units, registration agencies and blockchain; each vehicle joining the connected vehicle system registers its identity with the registration agency and obtains an initial trust level;

[0007] S2. The initiating vehicle initiates a collaborative service request, and the surrounding vehicles receive the collaborative service request and choose whether to respond;

[0008] S3. The initiating vehicle calculates the local trust value of the responding vehicle and selects the responding vehicle to participate in the collaboration based on the local trust value;

[0009] S4. After the initiating vehicle and the cooperating vehicle complete the collaboration, the initiating vehicle performs a trust rating on the cooperating vehicle and uploads it to the roadside unit;

[0010] S5. After reaching a consensus through the consensus algorithm, the roadside unit uploads the block and completes the update of the trust information of the cooperative vehicle.

[0011] Beneficial effects of the present invention:

[0012] The present invention considers building a system model with four parts: vehicle, RSU, RA, and blockchain; in view of the problems that traditional trust management schemes have a high false positive rate in identifying malicious vehicles, cannot meet the diversified Internet of Vehicles services, and the consensus algorithm used is not suitable for the current Internet of Vehicles environment, a collaborative Internet of Vehicles trust management scheme based on blockchain is proposed.

[0013] Compared with the existing binary trust management scheme, the collaborative Internet of Vehicles trust management scheme based on blockchain in the present invention can effectively reduce the false positive rate of malicious vehicle identification and improve the success rate of service collaboration. Compared with the traditional proof-of-work algorithm, it effectively improves the consensus efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a flow chart of the blockchain-based collaborative Internet of Vehicles trust management solution of the present invention;

[0015] Figure 2 This is a system model diagram of a blockchain-based collaborative Internet of Vehicles trust management solution in an embodiment of the present invention. DETAILED DESCRIPTION

[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0017] The present invention provides a blockchain-based collaborative Internet of Vehicles trust management method, such as Figure 1 As shown, the following steps are included:

[0018] S1. Build a connected vehicle system, which includes vehicles, roadside units, registration agencies and blockchain; each vehicle joining the connected vehicle system registers its identity with the registration agency and obtains an initial trust level.

[0019] Specifically, the vehicle networking system constructed by the present invention is as follows Figure 2 As shown in the figure, it includes four parts: vehicle, road side unit (RSU), registration authority (RA) and blockchain. Among them:

[0020] Vehicles are the main operating entities of the Internet of Vehicles system; there are multiple vehicles in the Internet of Vehicles system, and each vehicle is equipped with an on-board unit (OBU) with certain computing and storage capabilities. It can initiate collaborative service requests or provide collaborative services to surrounding vehicles. However, due to differences in software and hardware performance of different vehicles, the comprehensive computing capabilities of different vehicles vary.

[0021] RSU has strong computing and storage capabilities and plays three roles in the Internet of Vehicles system: 1) managing and coordinating road traffic within the jurisdiction; 2) as a consensus node in the blockchain, RSU is responsible for the maintenance of the blockchain, including uploading and verifying blocks, and querying and updating trust information; 3) responsible for forwarding the certificate verification request sent by the vehicle to the RA, and returning the verification result to the vehicle.

[0022] Blockchain is used as a distributed database to store the trust information of vehicles and stores each collaborative service in the form of a transaction bill in a block.

[0023] As a trusted authority in the Internet of Vehicles, RA will first generate public and private keys used in the Internet of Vehicles communication process when the vehicle enters the Internet of Vehicles system, and then the vehicle will apply for registration with RA. After completing the identity authentication, RA will act as a certificate authority (CA) to create a public key certificate for the vehicle, which proves that the vehicle has a legal identity in the Internet of Vehicles system, and then send the public key certificate to the vehicle. In addition, as a trusted third party in the Internet of Vehicles, RA is responsible for assigning an initial trust level to the vehicle, and passing it to the RSU in the form of a transaction bill, which is then recorded on the blockchain.

[0024] Specifically, in order to distinguish vehicles with different performance and behaviors, the present invention sets n levels in the vehicle networking system based on Dirichlet distribution to evaluate the trustworthiness of vehicle behaviors; the trust information of vehicle va up to the current qth collaboration is recorded. in It indicates the number of times vehicle va has obtained the i=1, 2, …, nth level evaluation up to the current qth collaboration; the trust value of vehicle va at a specified level can be calculated based on the trust information, and this trust value is used as the probability that the behavior of vehicle va is at the specified level. The calculation formula of the trust value of vehicle va at a specified level is:

[0025]

[0026] Indicates that the vehicle va is within the specified trust level range The trust value under specifies the trust level interval Specifically, it refers to the trust level interval required for the collaborative service that the vehicle va wants to participate in; I r Indicates the set of level labels corresponding to the specified trust level interval. For example, if the current collaborative service belongs to the third-level collaborative service, and vehicles with trust levels of {n-1,n} are required to participate in the collaboration, then the trust level interval is specified. l n-1 Indicates the specified level n-1, at this time I r ={n-1,n}. Indicates and specifies the trust level interval The union of the associated probabilities, p va (l i ) indicates that the trust level of vehicle va is l i The probability of , it indicates that vehicle va is eligible to participate in this collaborative service, where Thre is the set trust threshold.

[0027] In order to distinguish different service types, the present invention divides the vehicle's cooperative services into three categories according to the importance of the data:

[0028] (1) Level 1 services are those related to information and entertainment, such as multimedia resource sharing.

[0029] (2) Secondary services are services related to traffic efficiency, such as road condition sharing.

[0030] (3) Level 3 services are services related to traffic safety and user privacy, such as danger warnings and services based on user location privacy.

[0031] The trust level thresholds for the cooperative vehicles specified in each of the three types of services are different. Usually, different levels of services require the participation of vehicles in the specified trust level range. The trust level threshold here refers to the lower limit of the level. For example, level n = 10, the first-level service must be participated in by vehicles with a level greater than 3. At this time, the trust level threshold corresponding to the first-level service is 3, that is, considering the proportion of the number of times the cooperative vehicle obtains levels 4 to 10 to all levels, this proportion must be greater than the set trust threshold Thre to be a trusted vehicle.

[0032] Specifically, in step S1, the process of each vehicle joining the Internet of Vehicles system registering its identity with a registration agency and obtaining an initial trust level includes:

[0033] S11. Vehicle vi generates a public key and a private key used in the vehicle networking communication process, and then sends an identity registration request message to the registration agency, the identity registration request message includes the public key and identity information ID of vehicle vi vi ;

[0034] S12. The registration agency receives the identity registration request information and then Check identity information ID vi Whether it is revoked, if so, it means that vehicle vi has been kicked out of the Internet of Vehicles system due to malicious behavior in previous Internet of Vehicles activities, and the registration agency refuses to provide a public key certificate for vehicle vi to join the Internet of Vehicles system; if not, execute step S13;

[0035] Among them, the vehicle identity revocation list is used to store malicious vehicles that have been kicked out of the Internet of Vehicles system due to multiple malicious behaviors. Since the physical identity of the vehicle cannot usually be forged, such malicious vehicles cannot join the Internet of Vehicles by re-registering their identities.

[0036] S13. The registration authority saves the identity information of vehicle vi and issues a public key certificate for vehicle vi, and forwards the initial trust level of vehicle vi to the roadside unit in the form of a transaction bill, which is recorded on the blockchain by the roadside unit. ; It indicates the number of times vehicle vi obtains the i=1, 2, …, n-th level trust evaluation before the first collaboration. Theoretically, when vehicle vi first joins the Internet of Vehicles system, it has not participated in the collaboration, and the number of collaborations q=0, but the trust value of the vehicle will always be 0, and it cannot participate in the collaboration. To ensure that vehicle vi is eligible to participate in the collaboration when it first joins the Internet of Vehicles, the registration agency assigns n represents the highest level number.

[0037] S2. The initiating vehicle initiates a collaborative service request, and the surrounding vehicles receive the collaborative service request and choose whether to respond.

[0038] Specifically, define the vehicle group v corresponding to the initiating vehicle va = {v1, v2, ..., v M}, M represents the number of vehicles; the vehicle group v is composed of the initiating vehicle va and all vehicles within the communication range of the initiating vehicle va; in step S2, the initiating vehicle va initiates a collaborative service request, and the surrounding vehicles receive the collaborative service request and choose whether to respond. The specific process includes:

[0039] S21. The initiating vehicle va broadcasts its own collaborative service request to surrounding vehicles, wherein the collaborative service request includes the type of collaborative service to be performed and its own public key certificate;

[0040] S22. After receiving the collaborative service request, vehicle vb∈v decides whether to participate in the collaboration based on its own conditions and the collaborative service type of the initiating vehicle va. If it decides to participate in the collaboration, it executes step S23. Specifically, when surrounding vehicles receive a collaborative service request, they have the right to refuse to cooperate. Normally, surrounding vehicles will consider whether to collaborate based on the type of collaborative service initiated by the initiating vehicle. For example, when surrounding vehicles find that the computing power or trust level required for this collaborative service is high and their own hardware does not meet the requirements, they can directly refuse to participate in the collaboration.

[0041] S23. The vehicle vb sends a certificate authenticity verification request to the roadside unit, wherein the certificate authenticity verification request includes the public key certificate of the initiating vehicle va; the roadside unit receives the certificate authenticity verification request and forwards it to the registration authority for verification;

[0042] S24. The registration authority receives the certificate authenticity verification request and checks the public key certificate of the initiating vehicle va to verify the identity information ID corresponding to the public key certificate of the initiating vehicle va va Whether it is revoked, if so, execute step S25, if not, execute step S26;

[0043] S25. Return verification failure information to vehicle vb through the roadside unit; vehicle vb refuses to participate in the collaboration and does not respond to the initiating vehicle va;

[0044] S26. The roadside unit returns the verification success information to the vehicle vb; the vehicle vb responds to the initiating vehicle va and sends a response message to the initiating vehicle, the response message includes the communication distance D between the vehicle vb and the initiating vehicle va a,b , the public key certificate of vehicle vb, and the transaction bill information after vehicle vb last participated in the collaboration.

[0045] S3. The initiating vehicle calculates the local trust value of the responding vehicle and selects the responding vehicle to participate in the collaboration based on the local trust value.

[0046] Specifically, if vehicle vb responds to the initiating vehicle va, the initiating vehicle va calculates the local trust value of vehicle vb according to the response information sent by vehicle vb, including:

[0047] S31. The initiating vehicle va sends a verification request to the roadside unit, which includes the public key certificate of the vehicle vb and the transaction bill information after the vehicle vb last participated in the collaboration;

[0048] S32. The roadside unit forwards the verification request to the registration agency, which checks the public key certificate of the vehicle vb and verifies the identity information ID corresponding to the public key certificate of the vehicle vb vb Whether it is revoked, if so, return the verification failure information to the initiating vehicle va through the roadside unit; if not, execute step S33;

[0049] S33. The registration agency returns the verification success information and the vehicle vb computing capacity C to the roadside unit vb The roadside unit queries the trust information of the vehicle vb after the last collaboration in the blockchain based on the transaction bill information of the vehicle vb after the last collaboration. The roadside unit will verify the success information, the vehicle vb computing capacity C vb and query the trust information of the vehicle vb after the last collaboration Forwarded to the initiating vehicle va;

[0050] S34. Initiate vehicle va to calculate capacity C based on vehicle vb vb and trust information after the last collaboration Calculate the local trust value of vehicle vb; determine whether the local trust value of vehicle vb is greater than or equal to the trust threshold Thre1. If so, agree to allow vehicle vb to participate in the collaboration and initiate vehicle va to interact with vehicle vb; if not, refuse to allow vehicle vb to participate in the collaboration.

[0051] Specifically, step S34 initiates the vehicle va to calculate the capacity C according to the vehicle vb vb and trust information after the last collaboration Calculate the local trust of vehicle vb, including:

[0052] S341. Calculate the current behavior evaluation value E of vehicle vb a,b , expressed as:

[0053] E a,b =α1·C vb +α2·(1-P loss )+α3·F a,b

[0054]

[0055] Among them, α1, α2, α3 represent weight factors; vehicle vb computing capacity C vb When the vehicle vb is registered with RA, RA evaluates the comprehensive performance of the vehicle vb by identifying the software and hardware performance of the vehicle OBU. <C vb <1;P loss Denotes the propagation delay, D a,b represents the communication distance between vehicle vb and the initiating vehicle va, D max Denotes the maximum communication distance to ensure normal communication between vehicles, then D a,b ≤D max And 0<P loss ≤1; F a,b represents the familiarity, m represents the number of common neighbors of vehicle vb and initiating vehicle va, and j represents the number of all neighbors of initiating vehicle va; the neighbors of initiating vehicle va refer to the surrounding vehicles that have cooperated with vehicle va, and the neighbors of vehicle vb refer to the surrounding vehicles that have cooperated with vehicle vb. It should be noted that the surrounding vehicles here are all within the communication range of the initiating vehicle va, and the familiarity satisfies 0≤F a,b ≤1.

[0056] S342. Use the common neighbors of the initiating vehicle va and the cooperative vehicle vb (ie, the surrounding vehicles that have had information exchange with both the initiating vehicle va and the cooperative vehicle vb) to calculate the neighbor recommendation value E of the vehicle vb k,b , expressed as:

[0057] k≠a and k≠b

[0058] k≠a and k≠b

[0059]

[0060] Among them, θ a,k represents the confidence factor, i.e., the trust of the initiating vehicle va in its neighbor vk; Indicates that the neighbor vk is in the specified trust level range The trust value under Represents the sum of the trust values ​​of all neighbors in the specified trust level range; NDT k,b represents the recommended value of the neighbor vk for the vehicle vb; s k,b represents the number of successful interactions between neighbor vk and vehicle vb, u k,b Represents the number of failed interactions between neighbor vk and vehicle vb; the higher the success rate of interaction between neighbors and cooperative vehicles, the higher the recommendation for the cooperative vehicle.

[0061] S343. Calculate the local trust of vehicle vb It is expressed as:

[0062] E La,b =β1E a,b +β2E k,b

[0063]

[0064] β1+β2=1

[0065] Wherein, β1 and β2 are weight factors, and β1+β2=1. The present invention introduces weight parameters for adjustment here, and dynamically adjusts the weight ratio of the recommended trust according to the number of common neighbors. r represents the adjustment factor, and m represents the number of common neighbors of vehicle va and vehicle vb.

[0066] S344. The local trust rating obtained through local trust is Indicates rounding up, combined with the trust information of the vehicle vb after the last collaboration Get the local trust value. Specifically, q∈{1,2,…,n}, then vehicle va temporarily increases the number of times vehicle vb obtains the rth level locally by one, and then calculates the trust value of vehicle va at the level specified by the collaborative service published by vehicle va As the local trust value. S4. After the initiating vehicle and the cooperating vehicle complete the cooperation, the initiating vehicle performs a trust rating on the cooperating vehicle and uploads it to the roadside unit.

[0067] Specifically, step S4 initiates the vehicle va to perform a trust rating on the vehicle vb participating in the collaboration, including:

[0068] S41. Calculate the packet delivery rate PDR of the collaborative process a,b , expressed as:

[0069]

[0070] Among them, s a,b Indicates the number of successful interactions between the initiating vehicle va and the vehicle vb, u a,b Indicates the number of failed interactions between the initiating vehicle va and the vehicle vb. The data packet delivery rate can be regarded as the most intuitive evaluation of the interaction quality.

[0071] S42. Calculate the time delay of the collaborative process l g , expressed as:

[0072]

[0073] Among them, t q Indicates the start time of collaborative service, t r Indicates the end time of collaborative service, trans(△t r) represents the expected propagation delay of vehicle va based on experience, (t r -t q )-trans(Δt r ) can be regarded as the hesitation time, △t m represents the maximum hesitation time; the time delay represents the immediacy of the cooperative vehicle’s response during the entire process of vehicle interaction.

[0074] S43. Calculate the interaction quality of the collaborative process It is expressed as:

[0075]

[0076] The interaction quality represents the overall performance of the collaborative vehicle in the collaborative process. The higher the collaborative vehicle data packet delivery rate and the lower the time delay, the better the interaction quality provided and the higher the evaluation level obtained. When the data packet delivery rate meets the PDR a,b ≥Thre2 and time delay satisfaction (t r -t q )-trans(Δt r )≤Δt m , it indicates that the collaboration is successful, where Thre2 is the threshold for determining whether the data is successfully transmitted.

[0077] S44. Calculate trust evaluation results It is expressed as:

[0078]

[0079] Among them, W a,b represents a weight parameter; after the vehicle cooperative interaction, the behavior of the vehicle in the entire cooperative process is finally evaluated. Due to the diversity of vehicle cooperative service types, different evaluation criteria are required for different services. Therefore, the present invention designs a weight parameter W a,b , used to measure the weight of the two evaluations, specifically:

[0080]

[0081] S45. Obtain the final trust rating of the initiating vehicle va to the vehicle vb based on the trust evaluation result Specifically, the initiating vehicle va uploads the trust rating i of the cooperative vehicle vb in this cooperative service to the RSU, and the RSU updates the trust information of the cooperative vehicle vb, including:

[0082] Update the number of times vehicle vb has obtained the i-th level trust evaluation in the current q-th collaboration for:

[0083]

[0084] ε i =λ(n+1-i)

[0085] Among them, ε i represents the adjustment parameter, λ represents the adjustment factor, and n represents the highest level number;

[0086] Update the trust information of the vehicle vb

[0087] In each trust information update, only the level times obtained by the cooperative vehicle are updated, and the remaining level times remain the results of the last cooperation update, that is, wait.

[0088] S6. After reaching a consensus through the consensus algorithm, the roadside unit uploads the block and completes the update of the trust information of the cooperative vehicle.

[0089] Specifically, step S6 includes:

[0090] S61. Calculate the hash value of each roadside unit, the calculation formula is:

[0091] RSU hash =Hash(ID rsu ||prehash||timestamp||nonce)

[0092] Among them, RSU hash Represents the hash value of the roadside unit, Hash() represents the hash function, ID rsu Represents the roadside unit number, prehash represents the hash value of the last block in the current blockchain, timestamp represents the timestamp, and nonce represents the random number. Before no node calculates a hash value that meets the conditions, all nodes need to continue calculating the hash value and compete for the right to generate blocks.

[0093] S62. In order to make the result meet the set hash threshold, each roadside unit continuously adjusts the random number used to update the hash value until the hash value of one roadside unit is less than the hash threshold value T j When , the roadside unit is used as a verification node; the hash threshold value T J The calculation formula is:

[0094]

[0095] N J =N m -param-Dap

[0096] Among them, N J Represents the hash threshold adjustment index, N mThe number of bits representing the hash value is determined by the selected hash algorithm. The present invention uses the SHA-256 algorithm, so N m =256; param represents the adjustment factor for controlling the hash threshold value, and Dap represents the difficulty adjustment parameter, which is used to adjust the overall difficulty level of the system and control the speed of accounting and block generation. The hash threshold value is adjusted according to the number of collaborative services and service levels in the current area, specifically:

[0097] param=e -ωδ+θ

[0098]

[0099] ω represents the control factor of the hash threshold value, δ is the task priority index, θ is the hash threshold control parameter, num J is the total number of services with service level J in the current area. Due to the existence of the task priority index, the difficulty of RSU with more collaborative services and higher service levels in the current area is reduced, and the nodes with block generation power can be decided more quickly, ensuring the rapid upload and update of the vehicle trust level. At the same time, it also avoids other blocks from consuming a lot of computing resources in order to compete for block generation power, thereby improving the operation efficiency of the blockchain.

[0100] S63. The verification node generates a transaction bill based on the updated trust information received, assembles the transaction bill into a new block for broadcasting, and the other roadside units verify the validity of the new block and return confirmation information. After receiving the confirmation information from all other roadside units, the verification node adds the new block to the blockchain, and then sends the transaction bill to the cooperative vehicle through the roadside unit.

[0101] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "rotation" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.

[0102] Although 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 appended claims and their equivalents.

Claims

1. A blockchain-based collaborative Internet of Vehicles trust management method, characterized in that: The following steps are involved: S1. Build a connected vehicle system, which includes vehicles, roadside units, registration agencies and blockchain; each vehicle joining the connected vehicle system registers its identity with the registration agency and obtains an initial trust level; S2. The initiating vehicle initiates a collaborative service request, and the surrounding vehicles receive the collaborative service request and choose whether to respond; S3. The initiating vehicle calculates the local trust value of the responding vehicle and selects the responding vehicle to participate in the collaboration based on the local trust value; S4. After the initiating vehicle and the cooperating vehicle complete the collaboration, the initiating vehicle performs a trust rating on the cooperating vehicle and uploads it to the roadside unit; S5. After reaching a consensus through the consensus algorithm, the roadside unit uploads the block and completes the update of the trust information of the cooperative vehicle.

2. According to the blockchain-based collaborative Internet of Vehicles trust management method of claim 1, it is characterized in that: In the Internet of Vehicles system, each vehicle is equipped with an on-board unit for initiating collaborative service requests or providing collaborative services. Among them, collaborative services are divided into three categories: primary services, secondary services, and tertiary services according to the importance of data. At the same time, there are n levels in the Internet of Vehicles system to evaluate the credibility of vehicle behavior.

3. The blockchain-based collaborative Internet of Vehicles trust management method according to claim 1, characterized in that: In step S1, the process of each vehicle joining the Internet of Vehicles system registering its identity with a registration agency and obtaining an initial trust level includes: S11. Vehicle vi generates a public key and a private key used in the vehicle networking communication process, and then sends an identity registration request message to the registration agency, the identity registration request message includes the public key and identity information ID of vehicle vi vi ; S12. The registration agency receives the identity registration request information and then Check identity information ID vi Whether it is revoked, if so, deny vehicle vi from joining the Internet of Vehicles system; if not, execute step S13; S13. The registration authority saves the identity information of vehicle vi and issues a public key certificate to vehicle vi, and allocates initial trust information to vehicle vi The initial trust information of vehicle vi is forwarded to the roadside unit in the form of a transaction bill, and the roadside unit records it on the blockchain; Indicates the number of times vehicle vi obtains the i=1, 2, …, n-th level trust evaluation before the initial collaboration. To ensure that vehicle vi is eligible to participate in the collaboration when it first joins the Internet of Vehicles, the registration agency assigns n represents the highest level number.

4. The blockchain-based collaborative Internet of Vehicles trust management method according to claim 1, characterized in that: Define the vehicle group v corresponding to the initiating vehicle va = {v1,v2,...,v M }, M represents the number of vehicles; the vehicle group v is composed of the initiating vehicle va and all vehicles within the communication range of the initiating vehicle va; in step S2, the initiating vehicle va initiates a collaborative service request, and the surrounding vehicles receive the collaborative service request and choose whether to respond. The specific process includes: S21. The initiating vehicle va broadcasts its own collaborative service request to surrounding vehicles, wherein the collaborative service request includes the collaborative service type and the public key certificate; S22. After receiving the collaborative service request, vehicle vb∈v decides whether to participate in the collaboration based on its own conditions and the collaborative service type of the initiating vehicle va. If it decides to participate in the collaboration, step S23 is executed; S23. The vehicle vb sends a certificate authenticity verification request to the roadside unit, wherein the certificate authenticity verification request includes the public key certificate of the initiating vehicle va; the roadside unit receives the certificate authenticity verification request and forwards it to the registration authority; S24. The registration authority receives the certificate authenticity verification request and checks the public key certificate of the initiating vehicle va to verify the identity information ID corresponding to the public key certificate of the initiating vehicle va va Whether it is revoked, if so, execute step S25, if not, execute step S26; S25. Return verification failure information to vehicle vb through the roadside unit; vehicle vb refuses to participate in the collaboration and does not respond to the initiating vehicle va; S26. The roadside unit returns the verification success information to the vehicle vb; the vehicle vb responds to the initiating vehicle va and sends a response message to the initiating vehicle, the response message includes the communication distance D between the vehicle vb and the initiating vehicle va a,b , the public key certificate of vehicle vb, and the transaction bill information after vehicle vb last participated in the collaboration.

5. The blockchain-based collaborative Internet of Vehicles trust management method according to claim 1, characterized in that: If vehicle vb responds to the initiating vehicle va, the initiating vehicle va calculates the local trust value of vehicle vb based on the response information sent by vehicle vb, including: S31. The initiating vehicle va sends a verification request to the roadside unit, which includes the public key certificate of the vehicle vb and the transaction bill information after the vehicle vb last participated in the collaboration; S32. The roadside unit forwards the verification request to the registration agency, which checks the public key certificate of the vehicle vb and verifies the identity information ID corresponding to the public key certificate of the vehicle vb vb Whether it is revoked, if so, return the verification failure information to the initiating vehicle va through the roadside unit; if not, execute step S33; S33. The registration agency returns the verification success information and the vehicle vb computing capacity C to the roadside unit vb The roadside unit queries the trust information of the vehicle vb after the last collaboration in the blockchain based on the transaction bill information of the vehicle vb after the last collaboration. The roadside unit will verify the success information, the vehicle vb computing capacity C vb and query the trust information of the vehicle vb after the last collaboration Forwarded to the initiating vehicle va; S34. Initiate vehicle va to calculate capacity C based on vehicle vb vb and trust information after the last collaboration Calculate the local trust value of vehicle vb; determine whether the local trust value of vehicle vb is greater than or equal to the trust threshold Thre1. If so, agree to allow vehicle vb to participate in the collaboration and initiate vehicle va to interact with vehicle vb; if not, refuse to allow vehicle vb to participate in the collaboration.

6. A blockchain-based collaborative Internet of Vehicles trust management method according to claim 5, characterized in that: Step S34 initiates the vehicle va to calculate the capacity C according to the vehicle vb vb and trust information after the last collaboration Calculate the local trust of vehicle vb, including: S341. Calculate the current behavior evaluation value E of vehicle vb a,b , expressed as: E a,b =α1·C vb +α2·(1-P loss )+α3·F a,b Among them, α1, α2, α3 represent weight factors; P loss Denotes the propagation delay, D a,b represents the communication distance between vehicle vb and the initiating vehicle va, D max Indicates the maximum communication distance to ensure normal communication between vehicles; F a,b represents the familiarity, m represents the number of common neighbors of vehicle va and vehicle vb, and j represents the number of neighbors of vehicle va; S342. Calculate the neighbor recommendation value E of vehicle vb k,b , expressed as: Among them, θ a,k represents the confidence factor, Indicates that the neighbor vk is in the specified trust level range Trust value under NDT k,b represents the recommended value of the neighbor vk for the vehicle vb; s k,b represents the number of successful interactions between neighbor vk and vehicle vb, u k,b Indicates the number of failed interactions between neighbor vk and vehicle vb; S343. Calculate the local trust of vehicle vb It is expressed as: β1+β2=1 Among them, β1 and β2 are weight factors, and r represents the adjustment factor; S344. The local trust rating obtained through local trust is Combined with the trust information of the vehicle vb after the last collaboration Get the local trust value.

7. The blockchain-based collaborative Internet of Vehicles trust management method according to claim 1, characterized in that: Step S4 initiates the trust rating of the vehicle va for the participating vehicle vb, including: S41. Calculate the packet delivery rate PDR of the collaborative process a,b , expressed as: Among them, s a,b Indicates the number of successful interactions between the initiating vehicle va and the vehicle vb, u a,b Indicates the number of failed interactions between the initiating vehicle va and the vehicle vb; S42. Calculate the time delay of the collaborative process l g , expressed as: Among them, t q Indicates the start time of collaborative service, t r Indicates the end time of collaborative service, trans(△t r ) represents the expected propagation delay, △t m represents the maximum hesitation time; S43. Calculate the interaction quality of the collaborative process It is expressed as: S44. Calculate trust evaluation results It is expressed as: Among them, W a,b represents the weight parameter; S45. Obtain the final trust rating of the initiating vehicle va to the vehicle vb based on the trust evaluation result 8. The blockchain-based collaborative Internet of Vehicles trust management method according to claim 1, characterized in that: After the initiating vehicle va uploads the trust rating i of the cooperative vehicle vb in this cooperative service to the roadside unit, the roadside unit updates the trust information of the cooperative vehicle vb, including: Update the number of times vehicle vb has obtained the i-th level trust evaluation in the current q-th collaboration for: e i =λ(n+1-i) Among them, ε i represents the adjustment parameter, λ represents the adjustment factor, and n represents the highest level number; Update the trust information of the vehicle vb 9. The blockchain-based collaborative Internet of Vehicles trust management method according to claim 1, characterized in that: Step S5 specifically includes: S61. Calculate the hash value of each roadside unit, the calculation formula is: RSU hash =Hash(ID rsu ||prehash||timestamp||nonce) Among them, RSU hash Represents the hash value of the roadside unit, Hash() represents the hash function, ID rsu It indicates the roadside unit number, prehash indicates the hash value of the previous block in the blockchain, timestamp indicates the timestamp, and nonce indicates a random number; S62. Each roadside unit continuously adjusts the random number to update the hash value until the hash value of a roadside unit is less than the hash threshold value T J When , the roadside unit is used as a verification node; the hash threshold value T J The calculation formula is: N J N m -param-Dap param=e -ωδ+θ Among them, N J Represents the hash threshold adjustment index, N m Indicates the number of bits of the hash value, param indicates the adjustment factor for controlling the hash threshold value, Dap indicates the difficulty adjustment parameter; ω indicates the adjustment factor for the hash threshold value, δ is the task priority index, θ is the hash threshold adjustment parameter, num J is the total number of services with service level J in the current area; S63. The verification node generates a transaction bill based on the updated trust information received, assembles the transaction bill into a new block for broadcasting, and the other roadside units verify the validity of the new block and return confirmation information. After receiving the confirmation information from all other roadside units, the verification node adds the new block to the blockchain, and then sends the transaction bill to the cooperative vehicle through the roadside unit.

Citation Information

Patent Citations

  • Inter-vehicle data safety sharing method and system based on block chain

    CN111967051A

  • Internet of vehicles trust management method for resisting collusion attack based on block chain

    CN115022883A

  • Internet of vehicles distributed trust management method based on block chain

    CN115866564A

  • Decentralized trust management method based on block chain

    CN117676591A

  • Internet-of-vehicles authentication method and apparatus based on blockchain network, and device and medium

    WO2022105176A1

Cited By

  • Internet of vehicles trust management system and method

    CN120358499A