《计算机应用》唯一官方网站 ›› 2022, Vol. 42 ›› Issue (10): 3140-3147.DOI: 10.11772/j.issn.1001-9081.2021081490

• 网络与通信 • 上一篇    

CV2X车联网中基于模拟退火算法的任务卸载与资源分配

李智, 薛建彬   

  1. 兰州理工大学 计算机与通信学院,兰州 730050
  • 收稿日期:2021-08-09 修回日期:2021-11-18 接受日期:2021-11-19 发布日期:2022-01-07 出版日期:2022-10-10
  • 通讯作者: 李智
  • 作者简介:第一联系人:李智(1993—),女,陕西渭南人,硕士研究生,主要研究方向:移动通信; 346864982@qq.com
    薛建彬(1973—),男,甘肃白银人,教授,博士,主要研究方向:无线通信。
  • 基金资助:
    甘肃省自然科学基金资助项目(20JR10RA182)

Task offloading and resource allocation based on simulated annealing algorithm in C-V2X internet of vehicles

Zhi LI, Jianbin XUE   

  1. School of Computer and Communication,Lanzhou University of Technology,Lanzhou Gansu 730050,China
  • Received:2021-08-09 Revised:2021-11-18 Accepted:2021-11-19 Online:2022-01-07 Published:2022-10-10
  • Contact: Zhi LI
  • About author:LI Zhi, born in 1993, M. S. candidate. Her research interests include mobile communication.
    XUE Jianbin, born in 1973, Ph. D. , professor. His research interests include wireless communication.
  • Supported by:
    Natural Science Foundation of Gansu Province(20JR10RA182)

摘要:

网联车辆节点产生的不同属性的大数据流量计算任务进行传输并卸载时,通常引起通信系统中时延抖动、计算能耗与系统开销大等问题,因此,根据实际通信环境,提出一种C-V2X车联网(IoV)中基于模拟退火算法(SAA)的任务卸载与资源分配方案。首先,根据任务处理优先程度,对处理优先程度较高的任务进行协同卸载计算处理;其次,通过全局搜索最优卸载比例因子的方式,制定了一种基于SAA的任务卸载策略,且分析并优化了任务卸载比例因子;最后,在任务卸载比例因子更新过程中,将系统开销最小化问题转化为功率和计算资源分配凸优化问题,并利用拉格朗日乘子法获取最优解。通过对所提算法与本地卸载、自适应遗传算法等作比较可知,随着计算任务的数据量不断增加,自适应遗传算法比本地卸载的时延、能耗、系统开销分别降低了5.97%、49.40%、49.36%,在此基础上基于SAA的方案较自适应遗传算法的时延、能耗、系统开销再降低了6.35%、92.27%、91.7%;随着计算任务CPU周期数不断增加,自适应遗传算法比本地卸载的时延、能耗、系统开销分别降低了16.4%、49.58%、49.23%,在此基础上基于SAA的方案较自适应遗传算法的时延、能耗、系统开销再降低了19.61%、94.39%、89.88%。实验结果表明,SAA不仅能降低通信系统时延、能耗及系统开销,还可以使结果加速收敛。

关键词: 车联网, 移动边缘计算, 任务卸载, 资源分配, 模拟退火算法

Abstract:

When big data flow calculation tasks with different attributes generated by networked vehicle nodes are transmitted and offloaded, issues such as time delay jitter, large computational energy consumption and system overhead usually happen. Therefore, according to the actual communication environment, a scheme for task offloading and resource allocation based on Simulated Annealing Algorithm (SAA) in Cellular Vehicle to Everything (C-V2X) Internet of Vehicles (IoV) was proposed. Firstly, according to the task processing priority, the tasks with high processing priority were processed by collaborative offloading and computing. Secondly, an SAA-based task offloading strategy was developed with the aid of globally searching for the optimal offloading scale factor. And the task offloading scale factor was analyzed and optimized. Finally, during the update process of task offloading scale factor, the problem of minimizing the system overhead was transformed into the convex optimization problem of power and computational resource allocation. And the Lagrange multiplier method was used to obtain the optimal solution. By comparing the proposed algorithm with the local offloading and adaptive genetic algorithm, it can be seen that: as the calculation task data size increases, the time delay, power consumption and system overhead of the adaptive genetic algorithm are decreased by 5.97%, 49.40%, and 49.36% respectively, compared with those of the local offloading. On this basis, the time delay, power consumption and system overhead of the proposed SAA-based scheme are further decreased by 6.35%, 92.27%, and 91.7% respectively, compared with those of the adaptive genetic algorithm. As the CPU cycles of the calculation task increase, the time delay, power consumption and system overhead of the adaptive genetic algorithm are decreased by 16.4%, 49.58%, and 49.23% respectively, compared with local offloading. On this basis, the time delay, power consumption and system overhead of the proposed SAA-based scheme are further decreased by 19.61%, 94.39%, and 89.88% respectively, compared with those of the adaptive genetic algorithm. Experimental results show that SAA cannot only reduce the time delay, power consumption and system overhead of communication systems but also accelerate convergence of the results.

Key words: Internet of Vehicles (IoV), Mobile Edge Computing (MEC), task offloading, resource allocation, Simulated Annealing Algorithm (SAA)

中图分类号: