The invention provides an Internet of Vehicles
data sharing and
storage model based on a double-layer block chain, and aims to solve the problems of low data interaction efficiency, poor expansibility, insufficient security and the like in the traditional Internet of Vehicles. According to the model, road side units are grouped geographically, an optimized Raft protocol is adopted in each group to realize rapid
consensus, and an improved PBFT protocol is adopted among the groups to ensure
global consistency. Self-adaptive
leader election,
batch processing and
assembly line mechanisms are introduced into the Raft protocol, so that the
throughput and response speed of the
system are improved; a reputation value-based VRF main node election mechanism and a BLS aggregation signature technology are introduced into the PBFT protocol, so that the
communication complexity is reduced, and the
system security and fault-tolerant capability are enhanced. According to the method, the fault-tolerant rate and the message complexity of the
system are analyzed theoretically, the advantages of the system in the aspects of
throughput, time
delay and fault-tolerant performance are verified through
simulation experiments, and the method is suitable for large-scale and high-
concurrency car networking application scenes.