As a new network technology, mobile-edge computing (MEC) combined with the Internet of Vehicles (IoV) can effectively improve the efficiency of task computing and offloading. However, the power of edge computing will be severely limited to the areas with poor MEC server coverage. Furthermore, there are a number of peripheral vehicles with temporarily idle computing resources on the road, so how to put the resources of these vehicles into use becomes the primary issue to be considered. In this article, a distributed multihop task offloading decision model for task execution efficiency is developed, which mainly consists of two parts: 1) a candidate vehicle selection mechanism for screening the neighboring vehicles that can participate in offloading and 2) a task offloading decision algorithm for obtaining the task offloading solution. Considering the impact of different hop and wireless communication ranges on communication ranges on task completion in a generic scenario, we introduce the hop count <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$k$ </tex-math></inline-formula> and select the neighboring vehicles in the <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$k$ </tex-math></inline-formula> -hop wireless communication range as the candidate vehicles. Then, the problem of offloading is modeled as a generalized allocation model with constraints which is solved by the greedy algorithm and discrete bat algorithm, respectively. The results show that compared with the scheme in which the task vehicle randomly selects the neighboring vehicles to offload and the scheme that all tasks are completed locally, the offloading scheme in which all tasks are completed under the greedy algorithm or bat-based algorithm has advantages in time delay performance in terms of different task number, task required computation power, and task size environment. Besides, this article also explores the influence of hop count <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$k$ </tex-math></inline-formula> on the results when selecting candidate vehicles from the neighboring vehicles within the range of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$k$ </tex-math></inline-formula> hop. The results show that the increase of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$k$ </tex-math></inline-formula> will also increase the number of candidate vehicles, which makes the time delay lower. Under the parameters set in this article, the time delay required for the greedy algorithm offloading scheme to complete all tasks is a lower bound on the time delay of the bat algorithm scheme. The greedy algorithm scheme reduces latency by 0.2–2.4 s compared to the scheme where tasks are all completed locally, and it reduces latency by 0.16–2.3 s compared to the random offloading scheme.
Read full abstract