| Lightweight blockchain inherits the advantages of traditional blockchain and guarantees the security of data.Combined with Mobile Egde Computing,lightweight blockchain avoids excessive dependence on computing and storage resources and meets the actual needs of edge nodes of the Internet of Vehicles(Io V).The appropriate artificial intelligence algorithm can greatly determine and allocate the data cache of the edge network in different regions according to the changes of vehicle demand and reported data,so as to avoid the mismatch between data and regional interest,which indirectly affects the problems of data lag in the process of vehicle driving.Based on the characteristics of Io V and blockchain technology,this paper proposes a lightweight blockchain architecture applied to Io V framework and introduces a collaborative caching mechanism to reduce the network delay of frequent information interaction in Io V.The specific content of this paper is as follows:(1)The lightweight blockchain framework is applied to Io V to build a safe and reliable framework for the Io V system.Based on the stability of the three layers of the vehicle-roadside units(RSUs)-cloud center networking architecture,this paper assigns different roles to different types of nodes.This paper also designs a new interactive way for the framework which enhances the vehicle’s trust in the data in the blockchain.Based on the SUMO data set,this paper tests the framework with hardware and software combination,and the experiment results show that the framework has great feasibility and good communication performance.(2)Collaborative caching technology is used for distribution and storage of blocks to accelerate the response speed of RSUs to vehicle nodes.Based on the fact that RSU nodes lack in storing resources,this paper uses block allocation algorithm to optimize block storage on RSU nodes which allows all RSUs in the same group to cooperate in storing and searching blockchain and optimizes the response speed between vehicles and RSUs.In this paper,based on randomly generated data,experiments of the above collaborative caching technology are conducted.The experiments also involves other two mainstream caching algorithms.The results show that the proposed algorithm has a lower latency and a better hit rate.(3)The block replacement algorithm is used to optimize the storage of blocks on a single RSU,so as to fully improve the space utilization of single RSU storage.Based on the fact that different sections have different interests and needs,this paper designs a block replacement algorithm which allows a RSU to figure out the blocks least likely to be accessed and to storage those blocks most suitable for its road section.Combined with collaborative caching,this paper further optimizes the internal storage of RSUs and the performance experiment is carried out with the framework. |