The complexity of applications on today’s mobile devices is increasing day by day.On the one hand,the performance of mobile devices cannot meet the application requirements.On the other hand,solutions relying on cloud computing have serious defects of large delay because cloud computing nodes are far away from the application side.In order to solve this problem,the multi-access mobile edge computing technology(MEC)came into being.The mobile edge computing network has a large number of widely distributed heterogeneous nodes and gateways.Because of its wide distribution and vulnerability to attacks,its network security issues have also received more and more attention.The task offloading technology means that the mobile edge computing system uploads the user’s local task to the edge computing node,and returns the running result to the user.Appropriate task offloading decisions and a reliable network environment can promote the rational allocation of network resources and computing resources,which is of great significance for improving task offloading efficiency and user experience.By focusing on the task offloading problem in the field of mobile edge computing,this paper conducts research on malicious traffic attack defense algorithms and task offloading algorithms.The research contents of this paper are as follows:First,in view of the low efficiency of traditional blockchain in edge computing environment,this paper designs a lightweight blockchain-based mobile edge computing malicious traffic attack defense method.By analyzing the performance bottleneck of traditional blockchain technology,designing a lightweight blockchain,and by maintaining the blockchain structure at the network unit level,an attack defense algorithm based on lightweight blockchain is proposed.The experimental results show that the algorithm can not only effectively deal with attacks in related fields,but also be more efficient than traditional blockchains.Secondly,in view of the problem that the existing task offloading algorithms lack the consideration of social relations and the efficiency is too low in the high user density environment,this paper designs a task offloading algorithm based on social relations.Introduce the social relationship model into the task offloading simulation model,select the appropriate D2 D offload user by calculating the social weight through the social relationship stored in the lightweight blockchain,and combine the network model and other formal models to abstract the task offloading problem into an integer programming problem.It is then solved using a Monte Carlo search tree algorithm.The experimental results show that the task offloading algorithm can effectively deal with high user density scenarios.Compared with the reinforcement learning task offloading comparison scheme,the task offloading algorithm has advantages in terms of time and energy costs. |