Efficient traffic information reporting method based on probability and DAG blockchain

By using the traffic information reporting method of probability and DAG blockchain in the Internet of Vehicles, the problem of low message reporting efficiency and insufficient credibility in large-scale Internet of Vehicles is solved, efficient and reliable traffic information dissemination is achieved, and false news is prevented dissemination, improving traffic safety and road efficiency.

CN115801830BActive Publication Date: 2024-09-03HEFEI UNIV OF TECH
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202211412764.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2024-09-03
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

Existing message reporting technology has problems such as a large number of unimportant message reports in large-scale Internet of Vehicles, which leads to high data communication overhead, the server cannot identify the authenticity of the message, and does not fully consider the credibility of the message. Malicious vehicles may send false messages that affect traffic operations.

Method used

Adopting an efficient traffic information reporting method based on probabilistic and directed acyclic graph (DAG) blockchain, through the registration of vehicles and roadside units, message collection, transaction generation and verification, and leveraging the immutability and immutability of DAG blockchain. Probabilistic reporting mechanism ensures the authenticity and importance of messages and reduces communication overhead.

Benefits of technology

It improves the efficiency and reliability of information reporting, reduces the computing overhead of the server, prevents the spread of malicious messages, ensures the authenticity and quality of traffic information, and improves traffic safety and road efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115801830B
    Figure CN115801830B
Patent Text Reader

Abstract

The present invention discloses an efficient traffic information reporting method based on probability and DAG blockchain, which is applied in a network environment composed of a trusted third party, different types of vehicles and their respective DAG blockchains, several roadside units and cloud servers, and includes: 1. vehicle and roadside unit registration; 2. message collection; 3. transaction generation; 4. transaction verification; 5. uploading the blockchain to the cloud server. The present invention utilizes the immutability of the DAG blockchain and the efficiency of probabilistic reporting to improve the reporting efficiency while ensuring the reliability of the reported messages and reducing communication overhead.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of vehicle networking applications, and specifically relates to an efficient information reporting scheme for blockchain based on probability and directed acyclic graph (DAG). Background Art

[0002] Smart vehicles have great potential to improve the efficiency of connected vehicle traffic. Smart vehicles are equipped with onboard units (OBUs) and various sensors (e.g., multi-beam lidar and high-resolution cameras) that can sense the surrounding environment and receive messages from other neighboring vehicles. In addition, 5G is gradually being applied to smart vehicles as a promising technology, enabling them to communicate directly with cloud servers. A vehicle can report a message to the server containing speeding evidence of neighboring vehicles or an emergency event (e.g., "An accident occurred on Road A!"). The server aggregates all messages for a specific event and determines whether the reported message is credible based on the principle of honest majority. The server then feeds back the current traffic conditions and potential risks to other vehicles in the network to improve traffic safety and travel efficiency. Despite the great potential of traffic information reporting, there are still problems that need to be solved in large-scale connected vehicles.

[0003] The existing message reporting technology has the following problems:

[0004] 1. A large number of unimportant messages are reported to the server, resulting in a large amount of data communication overhead.

[0005] 2. The server cannot identify the authenticity of a single message.

[0006] 3. The credibility of the message is not fully considered, and malicious vehicles have the opportunity to send false messages to affect traffic operations. Summary of the invention

[0007] The present invention aims to solve the deficiencies of the above-mentioned prior art and proposes an efficient traffic information reporting method based on probability and DAG blockchain, in order to make full use of the immutability of DAG blockchain and the high efficiency of probabilistic reporting, while improving the reporting efficiency and ensuring the reliability of the reported messages, and reducing communication overhead.

[0008] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme:

[0009] The invention discloses an efficient traffic information reporting method based on probability and DAG blockchain, which is applied in a network environment consisting of a trusted third party, different types of vehicles and their respective DAG blockchains, several roadside units and a cloud server, and is performed in the following steps:

[0010] Step 1: Vehicle and roadside unit registration;

[0011] Step 1.1: Each vehicle, each roadside unit and the cloud server respectively provide identity proof to the trusted third party and make a registration request;

[0012] Step 1.2: The trusted third party verifies the identities of the corresponding vehicle, the corresponding roadside unit and the cloud server respectively, and issues a certificate to them if the verification is successful, and ignores the corresponding request if the verification fails;

[0013] Step 2: Message collection;

[0014] Step 2.1: Vehicle A broadcasts its message M to surrounding vehicles and roadside units in real time. A ;

[0015] Step 2.2: Other vehicles and roadside units receive the message M from vehicle A respectively A After that, according to the message M A Content utilization algorithm G 1 Calculate the probability P of the message A ;

[0016] Step 3: Transaction generation;

[0017] Step 3.1: The vehicle n and / or the roadside unit m respectively generate a random number between 0 and 1. If the random number is less than P A , then execute step 3.2, otherwise, ignore message M A ;

[0018] Step 3.2: The vehicle n and / or the roadside unit m uses formula (1) to generate a message M A Generate Genesis Transaction Used to record message M A :

[0019]

[0020] In formula (1), Indicates message M A The timestamp of E k (M A ) is the message M A The encrypted information, E k It is an encryption algorithm with k as the key, H is the hash algorithm, and || is string concatenation;

[0021] Step 3.3: The vehicle n or the roadside unit m uses algorithm G 2 Select two unconfirmed transactions T from the locally maintained DAG blockchain C 1 and T 2 , and use formula (2) to generate a message reporting transaction For recording the vehicle n or the roadside unit m to M A Report information:

[0022]

[0023] In formula (2), ph1 and ph2 are the transaction T 1 , T 2 The hash value of v ε , and h ε Respectively represent the speed, position and heading of vehicle n or the roadside unit m; the vehicle n or the roadside unit m broadcasts the genesis transaction and message report transaction generated in steps 3.2 and 3.3 to other nearby vehicles and roadside units;

[0024] Step 4: Transaction verification;

[0025] Step 4.1: Receiving the transaction broadcasted by the vehicle n and / or the roadside unit m and transactions The vehicle OtherVehs and the roadside unit OtherRsus check whether they have received the message M sent by vehicle A. A , if received, proceed to step 4.2, otherwise, ignore the received transaction;

[0026] Step 4.2: The vehicle OtherVehs and / or roadside unit OtherRsus checks whether it is the first time to receive the transaction and If it is the first time receiving, go to step 4.3, otherwise, ignore the received transaction;

[0027] Step 4.3: The vehicle OtherVehs and / or roadside unit OtherRsus verifies the transaction and If the authenticity and validity of the transaction is verified, Join the transaction The DAG blockchain for the genesis transaction, otherwise the transaction is discarded and

[0028] Step 5: Upload the blockchain to the cloud server;

[0029] Step 5.1: After a period of time t, the transaction is stored Any vehicle VList and / or roadside unit RList in the DAG blockchain of the genesis transaction according to the transaction Calculate the joint probability CP for the size of the block in the DAG blockchain of the genesis transaction;

[0030] Step 5.2: The vehicle VList and / or the roadside unit RList respectively generate a random number between 0 and 1. If the random number is less than CP, the locally stored DAG blockchain is transmitted to the cloud server to complete the traffic information report. Otherwise, the locally stored DAG blockchain is deleted.

[0031] The efficient traffic information reporting method based on probability and DAG blockchain of the present invention is also characterized in that the algorithm G 1 include:

[0032] Step A: Calculate the offset value using equation (3)

[0033]

[0034] In formula (3), a i and a allow They represent the value of the i-th attribute of the vehicle and its allowed value, and a i From the received message M A Search the content of a allow Set by the administrator;

[0035] Step B: Calculate the probability P of a transaction using formula (4) A :

[0036]

[0037] In formula (4), F is the single attribute correlation function generated by the roadside unit.

[0038] The algorithm G 2 The unconfirmed transactions are selected as follows:

[0039] Step I: Assumptions For newly generated transactions, For a verified transaction in the locally maintained DAG blockchain, use formula (5) to calculate the transaction Connect to trade The connection probability Pr x->y :

[0040] Pr x->y =λ j ×U(ω j ) (5)

[0041] In formula (5), λ j is the weight of the jth attribute of the vehicle, U is the utility function, ω j is the value of the jth attribute;

[0042] Step II: Calculate the connection probability of all unconfirmed transactions in the locally maintained DAG blockchain and sort them in descending order to select the top two transactions T 1 and T 2 .

[0043] The joint probability CP in step 5.1 is calculated according to the following steps:

[0044] Step a: Assume that the type number of vehicle Vlist is t; use formula (6) to set the weight relationship between vehicle VList and roadside unit RList:

[0045] φ t ×λ t =λ RList (6)

[0046] In formula (6), λ t and λ RList Respectively represent the weights of the t-th type of vehicle and roadside unit RList, φ t is the ratio of vehicles of type t to roadside units; and:

[0047] ∑ t∈T N t ×λ t +N×λ RList =1 (7)

[0048] In formula (7), T represents the total number of vehicle types, N t represents the number of vehicles of the tth type, N represents the number of vehicles stored in the transaction The number of RSUs on the DAG blockchain for the genesis transaction;

[0049] Step b: Calculate the joint probability CP using formula (8):

[0050]

[0051] In formula (8), is the message probability of the k-th vehicle of the t-th type calculated using equation (4), The transaction is The message probability of the jth roadside unit in the roadside unit of the DAG blockchain of the genesis transaction is calculated using formula (4).

[0052] The present invention discloses an electronic device, comprising a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the efficient traffic information reporting method, and the processor is configured to execute the program stored in the memory.

[0053] The present invention provides a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium is characterized in that when the computer program is run by a processor, the steps of the efficient traffic information reporting method are executed.

[0054] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0055] 1. The present invention proposes a lightweight blockchain method based on probability and DAG, which improves the efficiency of information reporting while ensuring the authenticity of the message.

[0056] 2. The messages reported in the present invention are based on the tamper-proof characteristics of the blockchain, and a lightweight blockchain based on DAG is designed. The blockchain based on DAG ensures that the messages reported for specific events are stored in the distributed ledger and will not be tampered with, thereby ensuring the authenticity of the messages.

[0057] 3. The probability of whether a message is reported depends on its importance. The present invention assigns probabilities to data-based and event-based information based on event importance. By using the probability mechanism, most of the low-importance information is filtered, thereby improving the information quality.

[0058] 4. The solution proposed by the present invention aggregates the messages of the same event in the Internet of Vehicles through blockchain, reducing the computing overhead of the server.

[0059] 5. The present invention utilizes the vehicle's sensors and communication modules to promptly notify other vehicles of impending traffic conditions and potential risks, thereby improving traffic safety and road efficiency.

[0060] 6. The present invention adopts a Hash algorithm to ensure that the message cannot be tampered with, and adopts joint probability for message reporting, so that false messages sent by malicious parties cannot be spread.

[0061] 7. The present invention proposes a new unconfirmed transaction selection algorithm based on driving environment to adapt to the dynamic and changeable traffic environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the system structure of the present invention;

[0063] Figure 2 Schematic diagram of the method of the present invention. DETAILED DESCRIPTION

[0064] In this embodiment, an efficient traffic information reporting method based on probability and DAG blockchain is applied to Figure 1 In the network environment composed of the trusted third party, different types of vehicles and their respective DAG blockchains, several roadside units and cloud servers, the following steps are performed:

[0065] Step 1: Vehicle and roadside unit registration;

[0066] Step 1.1: Each vehicle, each roadside unit and cloud server provides identity proof to the trusted third party and makes a registration request;

[0067] Step 1.2: The trusted third party verifies the identities of the corresponding vehicle, the corresponding roadside unit and the cloud server respectively, and issues a certificate to them if the verification is successful, and ignores the corresponding request if the verification fails;

[0068] Step 2: Message collection, Figure 2 This is the flowchart of the message report. First, the message is collected and the message probability value is calculated, as follows:

[0069] Step 2.1: Vehicle A broadcasts its message M to surrounding vehicles and roadside units in real time. A ;

[0070] Step 2.2: Other vehicles and roadside units receive the message M from vehicle A. A After that, according to the message M A Content utilization algorithm G 1 Calculate the probability P of the message A ;

[0071] like Figure 2 As shown, after the message collection is completed, vehicle n or / and roadside unit m generates a new transaction and broadcasts it to the surrounding area, specifically:

[0072] Step 3: Transaction generation;

[0073] Step 3.1: Vehicle n and / or roadside unit m generate a random number between 0 and 1. If the random number is less than P A , then execute step 3.2, otherwise, ignore message M A ;

[0074] Step 3.2: Vehicle n and / or roadside unit m use formula (1) to convert message M A Generate Genesis Transaction Used to record message M A :

[0075]

[0076] In formula (1), Indicates message M A The timestamp of E k (M A ) is the message M A The encrypted information, E kIt is an encryption algorithm with k as the key, H is the hash algorithm, and || is string concatenation;

[0077] Step 3.3: Vehicle n or roadside unit m uses algorithm G 2 Select two unconfirmed transactions T from the locally maintained DAG blockchain C 1 and T 2 , and use formula (2) to generate a message reporting transaction Used to record vehicle n or roadside unit m to M A Report information:

[0078]

[0079] In formula (2), ph1 and ph2 are transaction T 1 , T 2 The hash value of v ε , and h ε Represent the speed, position and heading of vehicle n or roadside unit m respectively; vehicle n or roadside unit m broadcasts the genesis transaction and message report transaction generated in steps 3.2 and 3.3 to other nearby vehicles and roadside units;

[0080] like Figure 2 As shown, the vehicle and / or roadside unit that receives the new transaction will verify the transaction and add it to the local blockchain if it is verified, specifically:

[0081] Step 4: Transaction verification;

[0082] Step 4.1: Receive a transaction broadcasted by vehicle n and / or roadside unit m and transactions The vehicle OtherVehs and the roadside unit OtherRsus check whether they have received the message M sent by vehicle A. A , if received, proceed to step 4.2, otherwise, ignore the received transaction;

[0083] Step 4.2: The vehicle OtherVehs and / or roadside unit OtherRsus checks whether it is the first time to receive the transaction and If it is the first time receiving, go to step 4.3, otherwise, ignore the received transaction;

[0084] Step 4.3: Vehicle OtherVehs and / or Roadside Unit OtherRsus Verify Transaction and If the authenticity and validity of Figure 2 The transaction will be shown Join to trade The DAG blockchain for the genesis transaction, otherwise the transaction is discarded and

[0085] Step 5: Upload the blockchain to the cloud server; Figure 2 As shown, after a period of time, all vehicles and roadside units participating in this message report decide whether to upload the blockchain to the cloud server by calculating the joint probability, which is:

[0086] Step 5.1: After a period of time t, the storage has transactions Any vehicle VList and / or roadside unit RList in the DAG blockchain of the genesis transaction according to the transaction Calculate the joint probability CP for the size of the block in the DAG blockchain of the genesis transaction;

[0087] Step 5.2: The vehicle VList and / or roadside unit RList respectively generate a random number between 0 and 1. If the random number is less than CP, the locally stored DAG blockchain is transmitted to the cloud server to complete the traffic information report. Otherwise, the locally stored DAG blockchain is deleted.

[0088] 2. The efficient traffic information reporting method based on probability and DAG blockchain according to claim 1 is characterized in that the algorithm G 1 include:

[0089] Step A: Calculate the offset value using equation (3)

[0090]

[0091] In formula (3), a i and a allow They represent the value of the i-th attribute of the vehicle and its allowed value, and a i From the received message M A Search the content of a allow Set by the administrator;

[0092] Step B: Calculate the probability P of a transaction using formula (4) A :

[0093]

[0094] In formula (4), F is the single attribute correlation function generated by the roadside unit.

[0095] 3. The efficient traffic information reporting method based on probability and DAG blockchain according to claim 1 is characterized in that the algorithm G 2The unconfirmed transactions are selected as follows:

[0096] Step I: Assumptions For newly generated transactions, is a verified transaction in the locally maintained DAG blockchain, and the transaction is calculated using formula (5) Connect to trade The connection probability Pr x->y :

[0097] Pr x->y =λ j ×U(ω j ) (5)

[0098] In formula (5), λ j is the weight of the jth attribute of the vehicle, U is the utility function, ω j is the value of the jth attribute;

[0099] Step II: Calculate the connection probability of all unconfirmed transactions in the locally maintained DAG blockchain and sort them in descending order to select the top two transactions T 1 and T 2 .

[0100] 4. The efficient traffic information reporting method based on probability and DAG blockchain according to claim 1 is characterized in that the joint probability CP in step 5.1 is calculated according to the following steps:

[0101] Step a: Assume that the type number of vehicle Vlist is t; use formula (6) to set the weight relationship between vehicle VList and roadside unit RList:

[0102] φ t ×λ t =λ RList (6)

[0103] In formula (6), λ t and λ RList Respectively represent the weights of the t-th type of vehicle and roadside unit RList, φ t is the ratio of vehicles of type t to roadside units; and:

[0104] ∑ t∈T N t ×λ t +N×λ RList =1 (7)

[0105] In formula (7), T represents the total number of vehicle types, N t Represents the number of vehicles of the tth type, N represents the number of vehicles stored in transactions The number of RSUs on the DAG blockchain for the genesis transaction;

[0106] Step b: Calculate the joint probability CP using formula (8):

[0107]

[0108] In formula (8), is the message probability of the k-th vehicle of the t-th type calculated using equation (4), Is a transaction The message probability of the jth roadside unit in the roadside unit of the DAG blockchain of the genesis transaction is calculated using formula (4).

[0109] In this embodiment, an electronic device includes a memory and a processor, wherein the memory is used to store a program that supports the processor to execute the above-mentioned efficient traffic information reporting method, and the processor is configured to execute the program stored in the memory.

[0110] In this embodiment, a computer-readable storage medium stores a computer program on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned efficient traffic information reporting method are executed.

Claims

1. An efficient traffic information reporting method based on probability and DAG blockchain, characterized by It is applied in a network environment consisting of a trusted third party, different types of vehicles and their respective DAG blockchains, several roadside units, and cloud servers, and proceeds as follows: Step 1: Vehicle and roadside unit registration; Step 1.1: Each vehicle, each roadside unit and the cloud server respectively provide identity proof to the trusted third party and make a registration request; Step 1.2: The trusted third party verifies the identities of the corresponding vehicle, the corresponding roadside unit and the cloud server respectively, and issues a certificate to them if the verification is successful, and ignores the corresponding request if the verification fails; Step 2: Message collection; Step 2.1: Vehicle A broadcasts its message M to surrounding vehicles and roadside units in real time. A ; Step 2.2: Other vehicles and roadside units receive the message M from vehicle A respectively A After that, according to the message M A The content of the message is calculated using algorithm G1. A ; The algorithm G1 includes: Step A: Calculate the offset value using equation (3) In formula (3), a i and a allow They represent the value of the i-th attribute of the vehicle and its allowed value, and a i From the received message M A Search the content of a allow Set by the administrator; Step B: Calculate the probability P of a transaction using formula (4) A : In formula (4), F is the single attribute correlation function generated by the roadside unit; Step 3: Transaction generation; Step 3.1: Vehicle n and / or roadside unit m generate a random number between 0 and 1. If the random number is less than P A , then execute step 3.2, otherwise, ignore message M A ; Step 3.2: The vehicle n and / or the roadside unit m uses formula (1) to generate a message M A Generate Genesis Transaction Used to record message M A : In formula (1), Indicates message M A The timestamp of E k (M A ) is the message M A The encrypted information, E k It is an encryption algorithm with k as the key, H is the hash algorithm, and || is string concatenation; Step 3.3: The vehicle n or the roadside unit m selects two unconfirmed transactions Τ1 and T2 from the locally maintained DAG blockchain C using algorithm G2, and generates a message reporting transaction using formula (2): For recording the vehicle n or the roadside unit m to M A Report information: In formula (2), ph1 and ph2 are the hash values ​​of transactions Τ1 and Τ2 respectively; v ε , and h ε Respectively represent the speed, position and heading of vehicle n or the roadside unit m; the vehicle n or the roadside unit m broadcasts the genesis transaction and message report transaction generated in steps 3.2 and 3.3 to other nearby vehicles and roadside units; The algorithm G2 selects unconfirmed transactions according to the following steps: Step I: Assumptions For newly generated transactions, For a verified transaction in the locally maintained DAG blockchain, use formula (5) to calculate the transaction Connect to trade The connection probability Pr x->y : Pr x->y =λ j ×U(ω j ) (5) In formula (5), λ j is the weight of the jth attribute of the vehicle, U is the utility function, ω j is the value of the jth attribute; Step II: Calculate the connection probability of all unconfirmed transactions in the locally maintained DAG blockchain and sort them in descending order to select the top two transactions Τ1 and Τ2; Step 4: Transaction verification; Step 4.1: Receiving the transaction broadcasted by the vehicle n and / or the roadside unit m and transactions The vehicle OtherVehs and the roadside unit OtherRsus check whether they have received the message M sent by vehicle A. A , if received, proceed to step 4.2, otherwise, ignore the received transaction; Step 4.2: The vehicle OtherVehs and / or roadside unit OtherRsus checks whether it is the first time to receive the transaction and If it is the first time receiving, go to step 4.3, otherwise, ignore the received transaction; Step 4.3: The vehicle OtherVehs and / or roadside unit OtherRsus verifies the transaction and If the authenticity and validity of the transaction is verified, Join the transaction The DAG blockchain for the genesis transaction, otherwise the transaction is discarded and Step 5: Upload the blockchain to the cloud server; Step 5.1: After a period of time t, the transaction is stored Any vehicle VList and / or roadside unit RList in the DAG blockchain of the genesis transaction according to the transaction Calculate the joint probability CP for the size of the block in the DAG blockchain of the genesis transaction; Step 5.2: The vehicle VList and / or the roadside unit RList respectively generate a random number between 0 and 1. If the random number is less than CP, the locally stored DAG blockchain is transmitted to the cloud server to complete the traffic information report. Otherwise, the locally stored DAG blockchain is deleted.

2. The efficient traffic information reporting method based on probability and DAG blockchain according to claim 1 is characterized in that: The joint probability CP in step 5.1 is calculated according to the following steps: Step a: Assume that the type number of vehicle Vlist is t; use formula (6) to set the weight relationship between vehicle VList and roadside unit RList: f t ×λ t =λ RList (6) In formula (6), λ t and λ RList Respectively represent the weights of the t-th type of vehicle and roadside unit RList, φ t is the ratio of vehicles of type t to roadside units; and: ∑ t∈T N t ×λ t +N×λ RList =1 (7) In formula (7), T represents the total number of vehicle types, N t represents the number of vehicles of the tth type, N represents the number of vehicles stored in the transaction The number of RSUs on the DAG blockchain for the genesis transaction; Step b: Calculate the joint probability CP using formula (8): In formula (8), is the message probability of the k-th vehicle of the t-th type calculated using equation (4), The transaction is The message probability of the jth roadside unit in the roadside unit of the DAG blockchain of the genesis transaction is calculated using formula (4).

3. An electronic device, comprising a memory and a processor, characterized in that: The memory is used to store a program that supports the processor to execute the efficient traffic information reporting method as described in any one of claims 1-2, and the processor is configured to execute the program stored in the memory.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the efficient traffic information reporting method according to any one of claims 1 to 2 are executed.

Citation Information

Patent Citations

  • Account book synchronization method and device of blockchain based on DAG

    CN109672733A

  • Architecture for collecting traffic accident information based on block chain, and working method

    CN109993847A

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

    CN110446183A

  • Internet of Vehicles distributed trust system based on HashGraph and trust value calculation method

    CN111988381A

  • Network transmission optimization device and method for graph type block chain

    CN113973021A