A blockchain-based conditional trajectory privacy protection method in the Internet of Vehicles

By using blockchain technology for privacy processing of beacon messages in the Internet of Vehicles, the problem of vehicle trajectory privacy leakage is solved, a combination of high privacy and high availability is achieved, and it is suitable for trajectory privacy protection and malicious behavior in the Internet of Vehicles environment. Reveal.

CN117835185BActive Publication Date: 2024-09-13SOUTH CHINA UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311716326.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-09-13
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

Existing technology cannot effectively protect the privacy of vehicle trajectories in the Internet of Vehicles, especially when attackers track vehicles through the location, speed, acceleration and timestamp data in beacon messages, leading to privacy leaks, and anonymization processing reduces the security of beacon messages. Availability.

Method used

A conditional trajectory privacy protection method based on blockchain is adopted to perform privacy processing on beacon messages through the roadside unit (RSU), maintain the high availability of beacon messages, and store the processed messages in the blockchain to realize vehicle Privacy protection of trajectories while revealing malicious vehicle trajectories when needed.

Benefits of technology

It achieves high privacy protection of vehicle trajectories while maintaining high availability of beacon messages. It can reveal the trajectory of malicious vehicles in the event of network disputes or malicious behaviors, ensuring the security and privacy of the Internet of Vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117835185B
    Figure CN117835185B
Patent Text Reader

Abstract

The present invention discloses a conditional trajectory privacy protection method based on blockchain in a vehicle network. First, a vehicle sends a beacon message to a roadside unit RSU. The RSU processes the privacy of sensitive information in the beacon message collected within a certain time range and then sends it to the vehicle. The vehicle sends the privacy-treated beacon message to surrounding vehicles to achieve vehicle trajectory privacy. At the same time, the RSU stores the vehicle identification and beacon message to which the received beacon message belongs in the blockchain. When a malicious vehicle is found in the vehicle network, the real trajectory of the vehicle can be restored by searching the blockchain. The present invention uses fuzzy privacy technology to process sensitive information in the beacon message to achieve vehicle trajectory privacy, and uses blockchain technology to achieve conditional privacy. While providing conditional trajectory privacy, it provides better availability of beacon messages, which helps promote the further development and popularization of intelligent vehicle networks and has broad application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of privacy protection in Internet of Vehicles, and in particular to a conditional trajectory privacy protection method based on blockchain in Internet of Vehicles. Background Art

[0002] Vehicle to Everything (V2X) is an emerging technology that aims to improve the safety, efficiency and comfort of road services by using wireless communication technology. It achieves all-round network connection by connecting vehicles to vehicles (V2V), roads (V2I), pedestrians (V2P), etc., thereby improving the overall intelligent driving level of vehicles and providing users with safe, comfortable, intelligent and efficient driving experience and traffic services.

[0003] In order to expand the vehicle's perception range and provide a safe driving environment, each vehicle is equipped with a dedicated hardware and software system to receive and analyze beacon messages sent regularly by surrounding vehicles. These messages contain information such as the sending vehicle's location, speed, acceleration, and timestamp, which plays an important role in enhancing the driver's perception of the surrounding road conditions, helping the vehicle to take action in advance to reduce the risk of collision and optimize the driving route. However, attackers can also extract and infer data such as location, speed, acceleration, and timestamps and their spatiotemporal correlation from these messages to track vehicles, resulting in the disclosure of the owner's or driver's privacy, such as daily habits, range of action, etc.

[0004] In previous studies, researchers generally use encryption methods to solve security and privacy issues. However, encryption methods cannot resist attacks from within. Other studies have proposed the use of anonymization, using anonymous algorithms such as generalization and differential privacy to blur the vehicle location information, making it impossible to trace the data back to the specific vehicle and owner. However, the vehicle plans its route and reduces the risk of collision by collecting beacon messages from surrounding vehicles. If the beacon messages are anonymized, their availability will be reduced. Others have proposed using pseudonyms and changing the pseudonyms regularly to prevent the vehicle's driving trajectory from being tracked. However, by using data such as location, speed, acceleration, and timestamps to calculate the spatiotemporal relationship between beacon messages, the beacon message sequence can still be restored as a trajectory, thereby successfully tracking the vehicle and endangering the vehicle's trajectory privacy.

[0005] On the other hand, conditional privacy is crucial to exposing the trajectories of malicious nodes in network disputes while protecting the privacy of compliant users. Some researchers have used blockchain technology to solve identity authentication and trust-related issues in the Internet of Vehicles, but there has been no research on using blockchain technology to solve the problem of conditional trajectory privacy protection in the Internet of Vehicles.

[0006] Therefore, in order to solve the problem that attackers can extract and infer data such as location, speed, acceleration, and timestamp and their spatiotemporal correlation from received beacon messages, thereby tracking vehicles and exposing vehicle driving trajectories, it is necessary to study the privacy protection technology of beacon messages; in order to solve the problem that there may be malicious users in the Internet of Vehicles, it is necessary to study the conditional trajectory privacy protection technology. Combining the use of blockchain technology and privacy processing technology of beacon messages is an effective way to achieve conditional trajectory privacy protection in the Internet of Vehicles. Summary of the invention

[0007] The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art, and proposes a conditional trajectory privacy protection method based on blockchain in the Internet of Vehicles. Fuzzy privacy technology is used to process sensitive information in beacon messages to achieve vehicle trajectory privacy. Blockchain technology is used to achieve conditional privacy. While providing conditional trajectory privacy, better beacon message availability is provided, which is helpful to promote the further development and popularization of intelligent Internet of Vehicles.

[0008] To achieve the above purpose, the technical solution provided by the present invention is: a conditional trajectory privacy protection method based on blockchain in the Internet of Vehicles, comprising the following steps:

[0009] 1) In the Internet of Vehicles, the vehicle sends a beacon message to the roadside unit, referred to as RSU;

[0010] 2) RSU performs privacy processing on the received beacon messages in time periods, protecting the temporal and spatial correlation of beacon messages sent by the same vehicle while maintaining high availability of beacon messages;

[0011] 3) RSU stores the vehicle identification and beacon message to which the received beacon message belongs in the blockchain;

[0012] 4) The RSU sends the privacy-processed beacon message to the vehicle, and the vehicle broadcasts the privacy-processed beacon message to surrounding vehicles.

[0013] Further, in step 1), the vehicle sends a beacon message to the RSU during driving. Each beacon message contains two parts: an identifier and sensitive information. The content carried is expressed as: Msg = {PS, T, MID, l, s, a, h}, where Msg represents the beacon message, PS represents the pseudonym of the sender, T is the timestamp of sending the beacon message, MID is the ID of the beacon message, the attribute set QI = {PS, T, MID} is the identifier of the beacon message, l represents the position when the beacon message is sent, s represents the speed when the beacon message is sent, a represents the acceleration when the beacon message is sent, h represents the heading when the beacon message is sent, and the attribute set SA = {l, s, a, h} is the sensitive information of the beacon message; the sequence of beacon messages sent by a vehicle forms the trajectory of the vehicle;

[0014] Set Msg i represents the i-th beacon message sent by the vehicle, then Traj = {Msg1, Msg2, ..., Msg i ,...,Msg n}, where Traj represents the vehicle trajectory, n represents the number of beacon messages sent by the vehicle, 1≤i≤n;

[0015] When a vehicle is driving, the two adjacent beacon messages it sends are represented as: Msg i ={PS i ,T i ,MID i ,l i ,s i ,a i ,h i},Msg i+1 ={PS i+1 ,T i+1 ,MID i+1 ,l i+1 ,s i+1 ,a i+1 ,h i+1}, where PS i represents the pseudonym of the i-th sender, T i is the timestamp of sending the i-th beacon message, MID i is the ID of the i-th beacon message, l i represents the location when the i-th beacon message is sent, s i represents the speed at which the i-th beacon message is sent, a i represents the acceleration when sending the i-th beacon message, h i Indicates the heading when sending the i-th beacon message, PS i+1 represents the pseudonym of the i+1th sender, T i+1 is the timestamp of sending the i+1th beacon message, MIDi+1 is the ID of the i+1th beacon message, l i+1 Indicates the location when the i+1th beacon message is sent, s i+1 Indicates the speed at which the i+1th beacon message is sent, a i+1 represents the acceleration when sending the i+1th beacon message, h i+1 Indicates the heading when sending the i+1th beacon message;

[0016] Assume that the distance between the locations where the two beacon messages are sent is Δl, the speed difference is Δs, and the time difference is Δt, then their values ​​can be calculated by formulas (1) and (2); in addition, the distance Δl′ and the speed difference Δs′ between the two locations can also be calculated according to formulas (3), (4) and (5);

[0017] Δl=l i+1 -l i (1)

[0018] Δs=s i+1 -s i (2)

[0019] Δt=T i+1 -T i (3)

[0020]

[0021]

[0022] |Δl-Δl′|≤δ1 (6)

[0023] |Δs-Δs′|≤δ2 (7)

[0024] Ideally: Δl = Δl′, Δs = Δs′; however, because the vehicle does not necessarily travel in a completely straight line, there may be a difference of δ1 between Δl and Δl′, and a difference of δ2 between Δs and Δs′;

[0025] When the attacker collects a message set containing beacon messages sent by the vehicle during driving, according to the i-th beacon message Msg i By setting the values ​​of δ1 and δ2 in formulas (6) and (7), the next beacon message Msg can be found. i+l , that is, to associate the two previous beacon messages, and then obtain the sequence of all beacon messages sent by the vehicle, that is, to identify the driving trajectory of the vehicle;

[0026] The method of calculating vehicle trajectories using formulas (1) to (7) is called background knowledge attack, abbreviated as BKA.

[0027] Further, in step 2), the RSU performs privacy processing on the beacon message received in step 1) in units of time periods, including the following steps:

[0028] 2.1) RSU will be governed by N v The beacon messages sent by the vehicle are divided into N according to the timestamp of sending the message. ts time periods, where N v ≥1, N ts ≥1, RSU in the i-th time period TS i The number of beacon messages received is n msg , where 1≤i≤N ts , 1≤n msg ≤N v , then in time period TS i , the message set in RSU is expressed as: in Veh represents the jth vehicle j In the time period TS i Beacon messages sent, 1≤j≤n msg ; and the vehicle Veh j The sequence of beacon messages sent is represented as: in Veh represents the jth vehicle j Beacon message sent in the i-th time period, n represents the number of beacon messages sent by the vehicle within the jurisdiction of the RSU, 1≤i≤n, 1≤n≤N ts ;

[0029] 2.2) RSU will be collected The sensitive information SA of each beacon message in the Any car in Veh j Beacon messages sent: Use another car Veh k Beacon messages sent Replace the sensitive information in the beacon message with the privacy-processed one Among them, 1≤j,k≤n msg , k≠j, Represents vehicle Veh j In the time period TS i The sender's pseudonym, It is a vehicle j In the time period TS i The timestamp of when the beacon message was sent, It is a vehicle j In the time period TS i The ID of the beacon message, Represents vehicle Vehj In the time period TS i The location when the beacon message was sent, Represents vehicle Veh j In the time period TS i The speed at which beacon messages are sent, Represents vehicle Veh j In the time period TS i The acceleration when the beacon message was sent, Represents vehicle Veh j In the time period TS i The heading when the beacon message was sent, Represents vehicle Veh k In the time period TS i The sender's pseudonym, It is a vehicle k In the time period TS i The timestamp of when the beacon message was sent, It is a vehicle k In the time period TS i The ID of the beacon message, Represents vehicle Veh k In the time period TS i The location when the beacon message was sent, Represents vehicle Veh k In the time period TS i The speed at which beacon messages are sent, Represents vehicle Veh k In the time period TS i The acceleration when the beacon message was sent, Represents vehicle Veh k In the time period TS i The heading when the beacon message was sent.

[0030] Furthermore, in step 3), the RSU determines the vehicle identification VID based on the pseudonym in the beacon message received in step 2), and stores the VID and the beacon message in the blockchain. When a vehicle with malicious behavior is found, the RSU retrieves the managed blockchain based on the VID, reveals the beacon messages sent by the malicious vehicle during driving, and restores its driving trajectory, thereby achieving conditional privacy.

[0031] Further, in step 4), the message after RSU privacy processing in step 2) is Sent back to vehicle Veh j ,Veh j Will Broadcast to surrounding vehicles, vehicle Veh j The sequence of privacy-processed beacon messages sent is expressed as: Since the vehicle Veh j The beacon message broadcast to the surrounding vehicles is the beacon message processed by the privacy processing method in step 2.2), which privatizes the correlation of the beacon messages sent by the same vehicle in time and space, thereby reducing the trajectory privacy loss and the beacon message availability loss. The trajectory privacy loss and availability loss are defined by formula (9) and formula (11);

[0032] Assume vehicle Veh j In the time period TS i The actual beacon message set that should be received is: in represents the rth beacon message received, 1≤r≤n, and the actual set of privacy-protected beacon messages received is: Where 1≤k≤n, Indicates beacon message Using the privacy-processed beacon message in step 2), LocalUtilityLoss is defined as the set With Collection The degree of dissimilarity is called local availability loss, as shown in formula (8);

[0033]

[0034] In the formula, dis() means to find the distance between two data sets. The larger the distance, the less similar they are and the lower the availability. On the contrary, the smaller the distance, the more similar they are and the higher the availability.

[0035] Define the global availability loss as ts The weighted average of all local availability losses in a time period is expressed as GlobalUtilityLoss, as shown in formula (9);

[0036]

[0037] In the formula, w i represents the weight of the i-th time period, Determined by the number of beacon messages in the set;

[0038] When GlobalUtilityLoss is smaller, the trajectory privacy loss is smaller and the trajectory privacy is higher; conversely, when GlobalUtilityLoss is larger, the trajectory privacy loss is larger and the trajectory privacy is lower;

[0039] Given Traj = {Msg1, Msg2, ..., Msg i ,...,Msg n}, SubTraj refers to the trajectory composed of the remaining beacon messages after randomly removing 1 to n beacon messages from Traj, which is called a vehicle sub-trajectory. In theory, a trajectory with n beacon messages has a total of 2 n -1 sub-track;

[0040] Given trajectories Traj and Traj′, define LCST as the longest subtrajectory that is both Traj and Traj′, called the longest common subtrajectory;

[0041] Assume vehicle Veh j The true trajectory is: After privacy processing, the trajectory introduced by the attacker using the BKA method described in step 1) is: Then the local privacy loss LocalPrivacyLoss is defined by formula (10);

[0042]

[0043] In the formula, len() means the number of beacon messages in the trajectory;

[0044] Assume the number of vehicles in the Internet of Vehicles is N v , the global privacy lossGlobalPrivacyLoss is defined by formula (11);

[0045]

[0046] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0047] 1. The present invention closely combines blockchain technology and privacy protection technology. The beacon message is protected by the RSU, and the RSU maintains the blockchain that stores the vehicle ID and location information, thereby realizing the conditional trajectory privacy of the vehicle.

[0048] 2. Compared with traditional trajectory privacy protection methods, the present invention can achieve higher vehicle trajectory privacy with less availability loss, and can reveal the trajectory of malicious vehicles when necessary to achieve conditional privacy.

[0049] 3. The present invention has broad application prospects and can be well applied to the privacy protection of vehicle trajectories in the Internet of Vehicles environment. When network disputes or malicious behaviors occur, the trajectory of malicious vehicles can be revealed to ensure the privacy and security of vehicles in the Internet of Vehicles. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1This is a system model diagram on which the method of the present invention is based. In the figure, RSU is a roadside unit; OBU is an onboard unit; V2V represents vehicle to vehicle, and V2V uses an unsafe wireless connection; V2I represents vehicle to RSU, and V2I uses a safe wireless connection.

[0051] Figure 2 The flowchart of conditional trajectory privacy protection using blockchain; in the figure, (a) shows that three RSUs are deployed within a geographical range, and one RSU manages three vehicles Veh y , Veh g and Veh r , and the message sequence that the three vehicles intend to send to the RSU; (b) illustrates the blockchain managed by the RSU, which is used to store vehicle IDs and beacon messages sent; (c) illustrates the implementation details of the privacy processing technology used by the RSU, with the message sequence sent by the privacy vehicle; (d) illustrates the message sequence that the three vehicles in (a) intend to send to the surrounding vehicles after receiving the RSU privacy processing.

[0052] Figure 3 This is a diagram of the traffic conditions for 24 hours a day included in the VeReMi extended dataset.

[0053] Figure 4 This is a schematic diagram of the blockchain chain code data flow.

[0054] Figure 5 Schematic diagram of the delay in retrieving trajectories of different lengths in the blockchain.

[0055] Figure 6 Schematic diagram of blockchain throughput within 24 hours.

[0056] Figure 7 This is a comparison result diagram of the global privacy loss of a blockchain-based conditional trajectory privacy protection method (called CTPP), a pseudonym change scheme, and a differential privacy scheme in the Internet of Vehicles of the present invention on the VeReMi extended dataset.

[0057] Figure 8 This is a comparison result diagram of the global availability loss of a blockchain-based conditional trajectory privacy protection method (called CTPP), a pseudonym change scheme, and a differential privacy scheme in the Internet of Vehicles of the present invention on the VeReMi extended dataset. DETAILED DESCRIPTION

[0058] The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.

[0059] like Figure 1 and Figure 2 As shown, this embodiment provides a conditional trajectory privacy protection method based on blockchain in the Internet of Vehicles, which is a method for vehicle trajectory conditional privacy protection deployed on a road side unit (RSU) that combines information privacy protection technology and blockchain technology, and includes the following steps:

[0060] 1) The vehicle sends a beacon message to the RSU while driving. Each beacon message contains two parts: an identifier and sensitive information. The main content carried by the beacon message is expressed as: Msg = {PS, T, MID, l, s, a, h}, where Msg represents the beacon message, PS represents the pseudonym of the sender, T is the timestamp of sending the beacon message, MID is the ID of the beacon message, the attribute set QI = {PS, T, MID} is the identifier of the beacon message Msg, l represents the position when the beacon message is sent, s represents the speed when the beacon message is sent, a represents the acceleration when the beacon message is sent, h represents the heading when the beacon message is sent, and the attribute set SA = {l, s, a, h} is the sensitive information of the beacon message Msg. The sequence of beacon messages sent by a vehicle forms the trajectory of the vehicle;

[0061] Set Msg i represents the i-th beacon message sent by the vehicle, then Traj = {Msg1, Msg2, ..., Msg i ,...,Msg n}, where Traj represents the vehicle trajectory, n represents the number of beacon messages sent by the vehicle, 1≤i≤n;

[0062] When a vehicle is driving, the two adjacent beacon messages it sends are represented as: Msg i ={PS i ,T i ,MID i ,l i ,s i ,a i ,h i},Msg i+1 ={PS i+1 ,T i+1 ,MID i+1 ,l i+1 ,s i+1 ,a i+1 ,h i+1}, where PS i represents the pseudonym of the i-th sender, T i is the timestamp of sending the i-th beacon message, MID iis the ID of the i-th beacon message, l i represents the location when the i-th beacon message is sent, s i represents the speed at which the i-th beacon message is sent, a i represents the acceleration when sending the i-th beacon message, h i Indicates the heading when sending the i-th beacon message, PS i+1 represents the pseudonym of the i+1th sender, T i+1 is the timestamp of sending the i+1th beacon message, MID i+1 is the ID of the i+1th beacon message, l i+1 Indicates the location when the i+1th beacon message is sent, s i+1 Indicates the speed at which the i+1th beacon message is sent, a i+1 represents the acceleration when sending the i+1th beacon message, h i+1 Indicates the heading when sending the i+1th beacon message;

[0063] Assume that the distance between the locations where the two beacon messages are sent is Δl, the speed difference is Δs, and the time difference is Δt, then their values ​​can be calculated by formulas (1) and (2); in addition, the distance Δl′ and the speed difference Δs′ between the two locations can also be calculated according to formulas (3), (4) and (5);

[0064] Δl=l i+1 -l i (1)

[0065] Δs=s i+1 -s i (2)

[0066] Δt=T i+1 -T i (3)

[0067]

[0068]

[0069] |Δl-Δl′|≤δ1 (6)

[0070] |Δs-Δs′|≤δ2 (7)

[0071] Ideally: Δl = Δl′, Δs = Δs′; however, because the vehicle does not necessarily travel in a completely straight line, there may be a difference of δ1 between Δl and Δl′, and a difference of δ2 between Δs and Δs′;

[0072] When the attacker collects a message set containing beacon messages sent by the vehicle during driving, according to the i-th beacon message Msgi By setting the values ​​of δ1 and δ2 in formulas (6) and (7), the next beacon message Msg can be found. i+1 , that is, to associate the two previous beacon messages, and then obtain the sequence of all beacon messages sent by the vehicle, that is, to identify the driving trajectory of the vehicle;

[0073] The method of calculating vehicle trajectories using formulas (1) to (7) is called background knowledge attack, abbreviated as BKA.

[0074] Vehicle j The sequence of beacon messages sent can be expressed as: Where n represents the number of messages sent by the vehicle, 1≤i≤n. Figure 2 As shown in (a), a geographical area covered by three RSUs is shown, where one RSU manages three vehicles, from left to right: the yellow vehicle Veh y , Green Vehicle Veh g and the red vehicle Veh r , the message sequences they send to RSU are: and

[0075] 2) RSU performs privacy processing on the received beacon messages.

[0076] 2.1) RSU will be governed by N v The beacon messages sent by the vehicle are divided into N according to the timestamp of sending the beacon message. ts time periods, where N v ≥1, N ts ≥1, RSU in the i-th time period TS i The number of beacon messages received is n msg , where 1≤i≤N ts , 1≤n msg ≤N v , then in the time period TS i , the message set in RSU can be expressed as:, where Denotes the jth and kth vehicles Veh j , Veh k In the time period TS i Beacon messages sent, 1≤j,k≤n msg , k≠j. Figure 2 As shown in (c), N ts When the value is 6, the number of beacon messages in the 6 time periods are 2, 2, 2, 3, 2 and 2 respectively, and the beacon message sets are:

[0077] 2.2) RSU will be collected The sensitive information SA of each message in the Any car in Veh j Beacon messages sent: Use another car Veh k Beacon messages sent Replace the sensitive information in the beacon message with the privacy-processed one set up Represents vehicle Veh j The identifier of the i-th beacon message sent, Represents vehicle Veh j The sensitive information of the i-th beacon message sent, such as Figure 2 As shown in (c), and The privacy processing process of beacon message collection in two time periods. The two beacon messages in the collection combine their sensitive information and Exchange and obtain the privacy-processed collection For collections Beacon Messages Sensitive information collection Use beacon message Sensitive information collection Replace, beacon message Sensitive information collection in Use beacon message Sensitive information collection in Replace, beacon message Sensitive information collection Use beacon message Sensitive information collection Replace and get the privacy-processed beacon message set Other beacon message collection A similar approach is taken for privacy.

[0078] 3) RSU stores the vehicle identification VID and beacon message to which the received beacon message belongs in the blockchain. Figure 2 (b) shows the blockchain managed by three RSUs, the vehicle ID stored on the blockchain, and the beacon message structure sent. Each blockchain node consists of a block header, a block body, and block metadata. The vehicle ID VID k and beacon messages When a vehicle with malicious behavior is found, the RSU retrieves the managed blockchain, reveals the original beacon message sequence sent by the malicious vehicle, and restores its driving trajectory, thereby achieving conditional privacy.

[0079] The blockchain chain code data flow designed in this embodiment is as follows Figure 4 As shown. Figure 3 The performance of the blockchain was tested on the VeReMi dataset with the characteristics shown. Figure 5 It shows the time it takes to retrieve traces of different lengths on the blockchain. Figure 5 It shows that as the trajectory length increases, the time to retrieve the trajectory on the blockchain basically shows a relatively gentle linear growth. Figure 6 Shows the throughput of the blockchain in 24 hours. Figure 6 This shows that the rate at which the blockchain processes transactions matches the rate at which vehicles send beacon messages. Figure 5 and Figure 6 It shows that using blockchain to achieve conditional privacy is more efficient and has better scalability.

[0080] 4) The RSU sends the privacy-processed beacon message to the vehicle, and the vehicle broadcasts the privacy-processed beacon message to surrounding vehicles. Sent back to vehicle Veh j , vehicle Veh j The sequence of privacy-processed beacon messages sent can be expressed as: where 1≤j≤N v ,1≤i≤n. Vehicle Veh j Will Broadcast to surrounding vehicles.

[0081] Assume vehicle Veh j In the time period TS i The actual beacon message set that should be received is: in represents the rth beacon message received, 1≤r≤n, and the actual set of privacy-protected beacon messages received is: Where 1≤k≤n, Indicates beacon message Using the privacy-processed beacon message in step 2), LocalUtilityLoss is defined as the set With Collection The degree of dissimilarity is called local availability loss, as shown in formula (8);

[0082]

[0083] In the formula, dis() means to find the distance between two data sets. The larger the distance, the less similar they are and the lower the availability. On the contrary, the smaller the distance, the more similar they are and the higher the availability.

[0084] Define the global availability loss as ts The weighted average of all local availability losses in a time period is expressed as GlobalUtilityLoss, as shown in formula (9);

[0085]

[0086] In the formula, w i represents the weight of the i-th time period, Determined by the number of beacon messages in the set;

[0087] When GlobalUtilityLoss is smaller, the trajectory privacy loss is smaller and the trajectory privacy is higher; conversely, when GlobalUtilityLoss is larger, the trajectory privacy loss is larger and the trajectory privacy is lower;

[0088] Given Traj = {Msg1, Msg2, ..., Msg i ,...,Msg n}, SubTraj refers to the trajectory composed of the remaining beacon messages after randomly removing 1 to n beacon messages from Traj, which is called a vehicle sub-trajectory. In theory, a trajectory with n beacon messages has a total of 2 n -1 sub-track;

[0089] Given trajectories Traj and Traj′, define LCST as the longest subtrajectory that is both Traj and Traj′, called the longest common subtrajectory;

[0090] Assume vehicle Veh j The true trajectory is: After privacy processing, the trajectory introduced by the attacker using the BKA method described in step 1) is: Then the local privacy loss LocalPrivacyLoss is defined by formula (10);

[0091]

[0092] In the formula, len() means the number of beacon messages in the trajectory;

[0093] Assume the number of vehicles in the Internet of Vehicles is N v , the global privacy lossGlobalPrivacyLoss is defined by formula (11);

[0094]

[0095] Figure 2 (d) shows three vehicles. y , Veh g and Veh r The beacon message sequences sent after RSU privacy processing are: and

[0096] Thanks to Veh y , Veh g and Veh r The sequence of beacon messages broadcast to surrounding vehicles has been privacy-processed and their trajectories are hidden, thus achieving trajectory privacy.

[0097] In having Figure 3 On the VeReMi dataset with the characteristics shown in Figure 1, experiments were conducted on a blockchain-based conditional trajectory privacy protection method in the Internet of Vehicles (called CTPP) of the present invention, a pseudonym change scheme, and a differential privacy scheme's GlobalPrivacyLoss. The comparison results are shown in Figure 1. Figure 7 As shown, from Figure 7 It can be seen that the privacy loss of CTPP is less than that of differential privacy.

[0098] In having Figure 3 On the VeReMi dataset with the features shown in Figure 1, an experiment was conducted on a blockchain-based conditional trajectory privacy protection method in the Internet of Vehicles (called CTPP) of the present invention and the GlobalUtilityLoss of the pseudonym change scheme and differential privacy scheme. The comparison results are shown in Figure 1. Figure 8 As shown, from Figure 8 It can be seen that the availability loss of CTPP is less than that of differential privacy.

[0099] Figure 7 and Figure 8 It shows that the blockchain-based conditional trajectory privacy protection method (called CTPP) in the Internet of Vehicles of the present invention can provide better trajectory privacy and better data availability, and its overall performance is better than the pseudonym change and differential privacy schemes.

[0100] In summary, the present invention mainly implements the deployment of privacy processing technology on the RSU of the Internet of Vehicles to privatize the beacon messages sent by the vehicle, thereby privatizing the beacon message sequence sent by the vehicle, and then hiding the trajectory of the vehicle; a blockchain is designed on the RSU to save the vehicle identification and beacon message to which the received beacon message belongs. Once a vehicle with malicious behavior is found, the trajectory of the vehicle can be restored by searching the blockchain to reveal its privacy. The present invention can resist attackers who track vehicles by monitoring beacon messages while ensuring the high availability of beacon messages, thereby achieving security and privacy protection of the Internet of Vehicles, and has broad application prospects.

[0101] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A blockchain-based conditional trajectory privacy protection method in the Internet of Vehicles. It is characterized in that The following steps are involved: 1) In the Internet of Vehicles, the vehicle sends a beacon message to the roadside unit, referred to as RSU; 2) RSU performs privacy processing on the received beacon messages in time periods, protecting the temporal and spatial correlation of beacon messages sent by the same vehicle while maintaining high availability of beacon messages, including the following steps: 2.1) RSU will be governed by N v The beacon messages sent by the vehicle are divided into N according to the timestamp of sending the message. ts time periods, where N v ≥1, N ts ≥1, RSU in the i-th time period TS i The number of beacon messages received is n msg , where 1≤i≤N ts , 1≤n msg ≤N v , then in time period TS i , the message set in RSU is expressed as: in Veh represents the jth vehicle j In the time period TS i Beacon messages sent, 1≤j≤n msg ; and the vehicle Veh j The sequence of beacon messages sent is represented as: in Veh represents the jth vehicle j Beacon message sent in the i-th time period, n represents the number of beacon messages sent by the vehicle within the jurisdiction of the RSU, 1≤i≤n, 1≤n≤N ts ; 2.2) RSU will be collected The sensitive information SA of each beacon message in the Any car in Veh j Beacon messages sent: Use another car Veh k Beacon messages sent Replace the sensitive information in the beacon message with the privacy-processed one Among them, 1≤j,k≤n msg , k≠j, Represents vehicle Veh j In the time period TS i The sender's pseudonym, It is a vehicle j In the time period TS i The timestamp of when the beacon message was sent, It is a vehicle j In the time period TS i The ID of the beacon message, Represents vehicle Veh j In the time period TS i The location when the beacon message was sent, Represents vehicle Veh j In the time period TS i The speed at which beacon messages are sent, Represents vehicle Veh j In the time period TS i The acceleration when the beacon message was sent, Represents vehicle Veh j In the time period TS i The heading when the beacon message was sent, Represents vehicle Veh k In the time period TS i The sender's pseudonym, It is a vehicle k In the time period TS i The timestamp of when the beacon message was sent, It is a vehicle k In the time period TS i The ID of the beacon message, Represents vehicle Veh k In the time period TS i The location when the beacon message was sent, Represents vehicle Veh k In the time period TS i The speed at which beacon messages are sent, Represents vehicle Veh k In the time period TS i The acceleration when the beacon message was sent, Represents vehicle Veh k In the time period TS i The heading when the beacon message was sent; 3) RSU stores the vehicle identification and beacon message to which the received beacon message belongs in the blockchain; 4) The RSU sends the privacy-processed beacon message to the vehicle, and the vehicle broadcasts the privacy-processed beacon message to surrounding vehicles.

2. According to claim 1, a conditional trajectory privacy protection method based on blockchain in the Internet of Vehicles, It is characterized in that In step 1), the vehicle sends a beacon message to the RSU while driving. Each beacon message contains two parts: an identifier and sensitive information. The content carried is expressed as: Msg = {PS, T, MID, l, s, a, h}, where Msg represents the beacon message, PS represents the pseudonym of the sender, T is the timestamp of sending the beacon message, MID is the ID of the beacon message, the attribute set QI = {PS, T, MID} is the identifier of the beacon message, l represents the position when the beacon message is sent, s represents the speed when the beacon message is sent, a represents the acceleration when the beacon message is sent, h represents the heading when the beacon message is sent, and the attribute set SA = {l, s, a, h} is the sensitive information of the beacon message; the sequence of beacon messages sent by a vehicle forms the trajectory of the vehicle; Set Msg i represents the i-th beacon message sent by the vehicle, then Traj = {Msg 1 ,Msg 2 ,...,Msg i ,...,Msg n }, where Traj represents the vehicle trajectory, n represents the number of beacon messages sent by the vehicle, 1≤i≤n; When a vehicle is driving, the two adjacent beacon messages it sends are represented as: Msg i ={PS i ,T i ,MID i ,l i ,s i ,a i ,h i },Msg i+1 ={PS i+1 ,T i+1 ,MID i+1 ,l i+1 ,s i+1 ,a i+1 ,h i+1 }, where PS i represents the pseudonym of the i-th sender, T i is the timestamp of sending the i-th beacon message, MID i is the ID of the i-th beacon message, l i represents the location when the i-th beacon message is sent, s i represents the speed at which the i-th beacon message is sent, a i represents the acceleration when sending the i-th beacon message, h i Indicates the heading when sending the i-th beacon message, PS i+1 represents the pseudonym of the i+1th sender, T i+1 is the timestamp of sending the i+1th beacon message, MID i+1 is the ID of the i+1th beacon message, l i+1 Indicates the location when the i+1th beacon message is sent, s i+1 Indicates the speed when sending the i+1th beacon message, a i+1 represents the acceleration when sending the i+1th beacon message, h i+1 Indicates the heading when sending the i+1th beacon message; Assume that the distance between the locations where the two beacon messages are sent is Δl, the speed difference is Δs, and the time difference is Δt, then their values ​​can be calculated by formulas (1) and (2); in addition, the distance Δl′ and the speed difference Δs′ between the two locations can also be calculated according to formulas (3), (4) and (5); Δl=l i+1 -l i (1) Δs=s i+1 -s i (2) Δt=T i+1 -T i (3) |Δl-Δl′|≤δ 1 (6) |Δs-Δs′|≤δ 2 (7) Ideally: Δl = Δl′, Δs = Δs′; however, because the vehicle does not necessarily drive in a completely straight line, there may be a difference of δ between Δl and Δl′. 1 , Δs and Δs′ may differ by δ 2 ; When the attacker collects a message set containing beacon messages sent by the vehicle during driving, according to the i-th beacon message Msg i , by setting δ in formulas (6) and (7) 1 and δ 2 The value of Msg can be used to find the next beacon message i+1 , that is, to associate the two previous beacon messages, and then obtain the sequence of all beacon messages sent by the vehicle, that is, to identify the driving trajectory of the vehicle; The method of calculating vehicle trajectories using formulas (1) to (7) is called background knowledge attack, abbreviated as BKA.

3. According to claim 2, a conditional trajectory privacy protection method based on blockchain in the Internet of Vehicles, It is characterized in that In step 3), the RSU determines the vehicle identification VID based on the pseudonym in the beacon message received in step 2), and stores the VID and beacon message in the blockchain. When a vehicle with malicious behavior is found, the RSU retrieves the managed blockchain based on the VID, reveals the beacon messages sent by the malicious vehicle during driving, and restores its driving trajectory, thereby achieving conditional privacy.

4. According to claim 3, a conditional trajectory privacy protection method based on blockchain in the Internet of Vehicles, It is characterized in that In step 4), the message after RSU privacy processing in step 2) is Sent back to vehicle Veh j ,Veh j Will Broadcast to surrounding vehicles, vehicle Veh j The sequence of privacy-processed beacon messages sent is expressed as: Since the vehicle Veh j The beacon message broadcast to the surrounding vehicles is the beacon message processed by the privacy processing method in step 2.2), which privatizes the correlation of the beacon messages sent by the same vehicle in time and space, thereby reducing the trajectory privacy loss and the beacon message availability loss. The trajectory privacy loss and availability loss are defined by formula (9) and formula (11); Assume vehicle Veh j In the time period TS i The actual beacon message set that should be received is: in represents the rth beacon message received, 1≤r≤n, and the actual set of privacy-protected beacon messages received is: Where 1≤k≤n, Indicates beacon message Using the privacy-processed beacon message in step 2), LocalUtilityLoss is defined as the set With Collection The degree of dissimilarity is called local availability loss, as shown in formula (8); In the formula, dis() means to find the distance between two data sets. The larger the distance, the less similar they are and the lower the availability. On the contrary, the smaller the distance, the more similar they are and the higher the availability. Define the global availability loss as ts The weighted average of all local availability losses in a time period is expressed as GlobalUtilityLoss, as shown in formula (9); In the formula, w i represents the weight of the i-th time period, Determined by the number of beacon messages in the set; When GlobalUtilityLoss is smaller, the trajectory privacy loss is smaller and the trajectory privacy is higher; conversely, when GlobalUtilityLoss is larger, the trajectory privacy loss is larger and the trajectory privacy is lower; Given Traj = {Msg 1 ,Msg 2 ,...,Msg i ,...,Msg n }, SubTraj refers to the trajectory composed of the remaining beacon messages after randomly removing 1 to n beacon messages from Traj, which is called a vehicle sub-trajectory. In theory, a trajectory with n beacon messages has a total of 2 n -1 sub-track; Given trajectories Traj and Traj′, define LCST as the longest subtrajectory that is both Traj and Traj′, called the longest common subtrajectory; Assume vehicle Veh j The true trajectory is: After privacy processing, the trajectory introduced by the attacker using the BKA method described in step 1) is: Then the local privacy loss LocalPrivacyLoss is defined by formula (10); In the formula, len() means the number of beacon messages in the trajectory; Assume the number of vehicles in the Internet of Vehicles is N v , the global privacy lossGlobalPrivacyLoss is defined by formula (11);