Next Article in Journal
Evaluation of a Respiration Rate Sensor for Recording Tidal Volume in Calves under Field Conditions
Next Article in Special Issue
A Double-Layer Vehicle Speed Prediction Based on BPNN-LSTM for Off-Road Vehicles
Previous Article in Journal
YOLOX-Ray: An Efficient Attention-Based Single-Staged Object Detector Tailored for Industrial Inspections
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Cloud-Edge-End Collaborative Computing Offloading Strategy in the Internet of Vehicles Based on the M-TSA Algorithm

Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650500, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(10), 4682; https://doi.org/10.3390/s23104682
Submission received: 10 March 2023 / Revised: 23 April 2023 / Accepted: 26 April 2023 / Published: 12 May 2023
(This article belongs to the Special Issue Advanced Sensing Technology for Intelligent Transportation Systems)

Abstract

:
In the Internet of Vehicles scenario, the in-vehicle terminal cannot meet the requirements of computing tasks in terms of delay and energy consumption; the introduction of cloud computing and MEC is an effective way to solve the above problem. The in-vehicle terminal requires a high task processing delay, and due to the high delay of cloud computing to upload computing tasks to the cloud, the MEC server has limited computing resources, which will increase the task processing delay when there are more tasks. To solve the above problems, a vehicle computing network based on cloud-edge-end collaborative computing is proposed, in which cloud servers, edge servers, service vehicles, and task vehicles themselves can provide computing services. A model of the cloud-edge-end collaborative computing system for the Internet of Vehicles is constructed, and a computational offloading strategy problem is given. Then, a computational offloading strategy based on the M-TSA algorithm and combined with task prioritization and computational offloading node prediction is proposed. Finally, comparative experiments are conducted under task instances simulating real road vehicle conditions to demonstrate the superiority of our network, where our offloading strategy significantly improves the utility of task offloading and reduces offloading delay and energy consumption.

1. Introduction

With the development of 5G technology and smart connected cars, cars have become equipped with stronger computing and storage capabilities, as well as information collection and communication capabilities, and many new in-vehicle applications have emerged. Although these applications can enhance the user experience and improve driving safety, such as AI-based applications, virtual reality, intelligent assisted driving, image navigation, and entertainment applications, they all have high requirements for computing and storage resources and are sensitive to latency. The computational demand for the Internet of Vehicles has thus boomed [1,2,3], and the limited computational storage resources of in-vehicle terminals cannot meet the resource demand of computational tasks with high complexity, data density, and delay sensitivity [4].
The introduction of cloud computing and Mobile Edge Computing (MEC) into the Internet of Vehicles is an effective way to solve the above problems, but the in-vehicle terminals have high requirements for task processing delay because the cloud computing uploads computing tasks to the cloud with high delay. Furthermore, the computing and storage resources of edge computing servers in MEC are limited, and more tasks will increase the task queuing delay at the server. Therefore, collaborative central cloud, edge cloud, and vehicle cloud computing provide better computing services for task vehicles. The vehicle cloud is a resource of simultaneously empty idle vehicle terminals [5].
Initial progress has been made in the research of collaborative computing for the Internet of Vehicles scenario, where the computational offloading decision is the core research point, and the key is to find the optimal offloading decision to improve the computational efficiency and reduce the computational cost. Unfortunately, the computational offloading problem of collaborative computing in the Internet of Vehicles scenario is a mixed integer nonlinear programming (MINP) problem, which is difficult to solve directly using traditional mathematical methods. Although many scholars have studied computational offloading strategies for the Internet of Vehicles scenario, there is no popular general solution method yet. Based on the above, we study the offloading strategy of collaborative computation at the cloud-edge-end of the connected vehicle scenario with real road conditions and vehicle motion and fully adopt the intelligent swarm optimization algorithm to solve the problem and comprehensively optimize the computational delay and energy consumption. The main contributions of this work can be summarized as follows:
(1) A three-layer architecture of the central cloud, edge cloud, and vehicle cloud is proposed as a cloud-edge-end collaborative computing system model with the task offloading strategy problem in an Internet of Vehicles scenario.
(2) A Multi-strategy collaboration-Tunicate Swarm Optimization Algorithm (M-TSA) introduces a memory learning strategy, a Levy flight strategy, and an adaptive dynamic weighting strategy on the basis of the standard TSA algorithm, has stronger global optimization seeking capability, and is proposed for multi-objective optimization of offloading delay, energy consumption, and task offloading utility of cloud-edge-end collaborative computing systems.
(3) To address the offloading strategy problem presented in (1), a computational offloading strategy based on the M-TSA algorithm and combined with task prioritization and computational offloading node prediction is proposed to significantly improve the system offloading utility and reduce the computational offloading delay and energy consumption of the system by taking into account the vehicle motion characteristics and task time delay sensitivity.

2. Related Work

2.1. Edge Computing Offloading

Many experts and scholars currently have relatively mature research work on computational offloading strategies, mainly optimizing or jointly optimizing metrics such as time delay and energy consumption. There are mainly computational offloading frameworks based on mathematical models [6,7], computational offloading schemes based on intelligent optimization algorithms such as genetic algorithms [8,9,10], and whale optimization [11]. Offloading strategies for collaborative computing have also been studied. Dai et al. [12] designed a probabilistic computational offloading algorithm for cloud-edge collaborative computing and verified its superiority in reducing task delay in a wide range of scenarios. Abbasi et al. [13] addressed the problem of allocating workloads in a fog cloud scenario and proposed a trade-off between task processing energy consumption and delay for the NSGA-II algorithm to solve this multi-objective model, and they experimentally showed that both energy consumption and delay were significantly reduced. Huang et al. [14] studied an optimal offloading scheme considering energy minimization, which addresses the relationship between energy efficiency and performance in mobile The relationship between energy efficiency and performance in mobile edge computing systems was investigated. The results showed that this scheme is better than other offloading methods. Zhao et al. [15] explored the collaborative computation offloading problem in a MEC system with multiple users in a heterogeneous cloud system. Based on dynamic planning, an energy consumption minimization algorithm with joint bandwidth and computational resource allocation was proposed, and the simulation results showed a reduction in energy consumption for mobile devices. Ramtin et al. [16] proposed an offloading scheme based on inter-device collaboration for jointly optimizing energy consumption and delay in edge computing, applying the maximum matching and minimum cost graph algorithms to derive a reasonable offloading scheme, and the results showed a reduction in energy consumption and delay. Fu et al. [17]—taking into account the effects of changing network conditions and wireless channel constraints—proposed an improved firefly swarm algorithm that optimizes computation offloading and resource allocation to reduce computation system latency and energy consumption. Li et al. [8] proposed a genetic-algorithm-based two-stage heuristic for joint computation offloading and resource allocation in multi-user and multi-server scenarios, and they proved the effectiveness of their algorithm for reducing terminal energy consumption. Su et al. [18] proposed a resource deployment and task scheduling algorithm based on task prediction and Pareto optimization. The user service quality and system service effect were significantly improved.

2.2. Collaborative Computing Offloading under the Internet of Vehicles

Preliminary research has also been conducted on collaborative computational offloading strategies for special scenarios of the Internet of Vehicles. Zhao et al. [7] proposed a joint optimization scheme for computational offloading and resource allocation based on a mathematical model to effectively improve the system utility and computation time of MEC in scenarios with insufficient computational resources; however, their algorithm is not general. Xu et al. [19] proposed an adaptive multi-objective evolution (ACOM) offloading method for IoCV scenarios with the introduction of 5G, which reduces the task offloading delay but does not consider the impact of vehicle mobility characteristics. Song et al. [20] constructed a unidirectional highway model under which edge servers and vehicle servers work together, described a safe switching interaction protocol while the vehicle is moving, and reduced offloading energy consumption and delay. Zhang et al. [21] constructed an SDN-assisted MEC network architecture for vehicle networks and proposed a joint task offloading and resource allocation strategy that can effectively reduce system overhead. Zhu et al. [22] designed a cloud-edge collaborative-based vehicular computing network architecture, proposed an offloading strategy scheme based on an improved multi-objective optimization immune algorithm, and verified the effectiveness of the algorithm. In the research of Shen et al. [23], a hybrid genetic algorithm (HHGA) task offloading strategy with a hill-climbing operator was proposed for mobile edge computing with on-street parking collaboration in the Internet of Vehicles to reduce the delay and energy consumption of computational tasks. Lastly, Su et al. [24] proposed an improved sparrow-algorithm-based computational offloading decision for cloud-edge collaborative computing to fully optimize task delay and energy consumption.
In summary, the research on edge computing offloading strategies is more mature, but the research on collaborative computing offloading for special scenarios such as the Internet of Vehicles is lacking, and the impact of hidden vehicle movement characteristics, task priority offloading, real road traffic conditions, and other factors, as well as the problem of ignoring idle vehicle terminal resources, are seldom considered in the research on computing offloading for Internet of Vehicles scenarios. To address the above problems, we will study the cloud-edge-end collaborative computational offloading strategy under the real road traffic condition and vehicle movement in the Internet of Vehicles scenario.

3. Cloud-Edge-End Collaborative Computing System Model in the Internet of Vehicles Scenario

The cloud-edge-end collaborative computing network in the Internet of Vehicles scenario described in this system consists of vehicles, base stations (BS), Edge Computing Servers (ECS), and Cloud Servers (CS). As shown in Figure 1, in a two-way straight-road scenario, many base stations equipped with edge servers are evenly deployed on the roadside, and their communication coverage radius is L. The vehicles and ECS in the communication area of BS are called an edge computing domain. There are two types of vehicles in an edge computing domain: one is task vehicles (TaV) that generate computational tasks; the other is service vehicles (SeV) that have many available computational resources and can provide computational services to the outside world. The set of edge servers is denoted as E s = { 1 , m , M } , and the sets of TaV and SeV in the ECS m edge computing domain are denoted as T a m = { 1 , i m , I m } , S e m = { 1 , j m , , J m } . For the convenience of the following formulation, the service vehicles SeV, edge servers, and cloud servers providing service computing are collectively referred to as service computing nodes in this system and are denoted as N = 0 , 1 , m , , M , M + 1 , M + j m , , M + J m . To efficiently utilize the spectrum, this system considers an OFDMA-based wireless network that connects the ECS with the task vehicle TaV and the service vehicle SeV to form a star topology, where each vehicle can communicate with the ECS in one leap point; wired connections are used between adjacent edge servers and between the ECS and the CS. In this computing network, ECS is the manager of the computing domain and is responsible for the scheduling and allocation of all tasks. At the beginning of each time slot, each vehicle in the computing domain uploads task information and computing resource information to the edge server. There are vehicles with many available computing resources, which are what we call SeV. ECS aggregates the computing tasks and the resources of service vehicles through the intelligent scheduling of tasks, which can provide higher-quality computing services to the task vehicles at the end of the network. The parameters used in this paper are listed in Table 1.
There are mainly vertical and horizontal collaborative computing methods for the vehicles described in this system model, and there are various servers that can provide computing offload services for the task vehicles in this model, namely, cloud servers, edge servers, terminal devices of the service vehicles, and terminal devices of the task vehicles themselves. Through the intelligent scheduling of tasks, the effective utilization of global resources can be realized, and the task vehicles at the end of the network can be provided with a more high-quality computing offload service. Vertical and horizontal collaboration are differentiated as follows:
(1) Vertical collaboration: Comprised of the vehicle cloud, edge cloud, and central cloud, the three-layer Internet of Vehicles edge computing architecture provides multiple offload mode options for resource-constrained task vehicles. Thus, task vehicles can choose to process their tasks locally according to the actual situation or offload tasks to neighboring service vehicles, edge servers, and cloud servers to achieve task processing.
(2) Horizontal collaboration: The distribution of resources in the time dimension of edge servers often shows variability. Lightly loaded edge servers may cause waste due to unutilized resources, while overloaded servers may affect the normal processing of tasks due to insufficient resources. Therefore, cross-domain edge collaborative computing can be used to improve the efficiency of system resource utilization and enhance the offloading utility of tasks.

3.1. Vehicle Motion Model

The system uses a two-dimensional coordinate system to model the motion process of the vehicle, as shown in Figure 2, denoting the BS side of the road as the x-axis and the vertical line of BS as the y-axis, thus assuming that the coordinates of BS as ( 0 , h ) , where h is the linear distance between BS and the road. The TaV i movement pattern can be represented by a binary group as { ( x i , y i ) , v i } , whereby ( x i , y i ) is TaV i the starting position and v i is the TaV i travel speed. Assuming that the right is the positive direction, a positive sign of v i indicates that TaV i rightward travel, and the negative sign of v i indicates that TaV i travels to the left. Similarly, the SeV j movement pattern is represented by the binary group { ( x j , y j ) , v j } .The standard lane width of the road is 3 m. This system assumes that all vehicles travel in the middle of the lane, i.e., the vehicle vertical coordinate is y { 1.5 , 4.5 } .
This system establishes a vehicle movement model constrained by speed and distance to simulate the real road vehicle driving environment. Since the calculated offloading time of the vehicle Δ t is very small, it is assumed that the vehicle maintains a uniform speed during the time Δ t , that is, v i ( t + Δ t ) = v i ( t ) , v i ( t ) denotes the vehicle v h i velocity at t moment. There are two constraints in this model:
(1) Speed constraint: Because there is a speed limit on the real road, the speed of each vehicle must be maintained in a range, i.e., v i [ v min , v max ] .
(2) Distance constraint: Two vehicles in the same lane, v h i at position x i and v h j at position x j , need to satisfy x i x j l min , l max . l min indicates the minimum distance between two vehicles driving continuously on the same lane, also known as the safety distance; if the distance between two cars is too small, it will increase the risk of traffic accidents. l max denotes the maximum distance between two vehicles driving continuously on the same lane; if the distance between the two vehicles is too large, it will be a waste of traffic resources. Therefore, the distance between two vehicles must be kept within a reasonable range.

3.2. Computational Model

The computational task for a single time slot of each task vehicle TaV i T a is considered in this system, denoted as T i , which is the smallest task and cannot be divided into subtasks. Each task vehicle TaV i generates a computational task T i , which is represented by three parameters { b i , c i , t i max } , where b i (bit) is the amount of data required to complete the task, that is, the amount of input data required for the computational task execution to be transmitted from the task vehicle local device to the service computation node; c i (cycles) means the amount of computation to complete the task; and t i max refers to the maximum delay limit of the computation task, determined by the task type. Each task can be executed locally in the task vehicle or offloaded to the service vehicle SeV j , the ECS, or the CS. Each service compute node has independent storage resources B n and compute resources C n . The task vehicle saves energy and task processing time by offloading the compute tasks to the service compute node; however, the amount of compute task input data sent to complete the task in the compute task offload adds additional time and energy consumption.
This section defines the task offloading variables, and the equation includes the upstream scheduling as follows: { a i , j , i T a , j N } , where a i , j = 1 means that the task vehicle from TaV i of the task T i is offloaded to the service compute node; otherwise, a i , j = 0 . Since each task can be executed locally or offloaded to up to one service compute node, a feasible offloading strategy must satisfy the following constraints:
j N a i , j 1 , i T a
The location of the calculation task T i generated by the task vehicle TaV i is as follows:
a i , j = 0 , j N , T i Local computing 1 , j = 0 , T i Offloading to CS 1 , 0 < j K , T j Offloading to ECS 1 , j > K , T i Offloading to SeV
For each task vehicle TaV i T a generated, due to limited computing resources, some of the computation tasks need to be transferred to the SeV, the ECS, or the CS, which then performs the computation. Since the SeV computation storage resources are limited, in this study, SeV considers single-task computation and does not create a task cache. In this system, a task queue model of the task buffer of ECS and CS is established, and Q ( t + 1 ) denotes the accumulated tasks at the moment t + 1 , that is,
Q ( t + 1 ) = max { Q ( t ) Φ ( t ) , 0 } + D ( t )
where Φ ( t ) is the size of the computational task that leaves the task buffer of ECS at time slot t, i.e., the task for which ECS completes the computation, and D ( t ) is the size of the computational tasks that are offloaded to the task buffer of the ECS by the task vehicle at time slot t.

3.3. Delay Model

Once the task vehicle TaV i ’s calculation of task T i processing is complete, the resulting delay time t i includes: i. upload delay t up (s)—the time to transmit the input on the uplink to the service node N; ii. cache delay t q (s)—the queuing time in the task buffer; iii. computation delay t exe (s)—the task computation processing time; and iv. the time to transmit the output on the downlink from the service compute node N to the task vehicle TaV i . These are described in more detail as follows:
(1) Upload delay: When the transmission rate of the communication between the computing nodes and the amount of task input data b i are related, then the upload delay t up of task T i is
t i up = U b i , f = b i r
where r denotes the transmission rate of communication between the computing nodes, and b i is the amount of input data required to transmit the program execution of the computing task from the local user device to the computing node.
The upload delay of the task is divided into vehicle-to-vehicle transmission delay t i V 2 V (V2V), vehicle-to-base station upload delay t i V 2 E (V2E), transmission delay t i E 2 E (E2E) between edge servers, and upload delay t i E 2 C (E2C) from the edge server to the central cloud server.
(2) Cache delay: When the computational task T i offloaded to the ECS or CS at moment t, the task cache queuing time t q is defined as
t i q = j Q ( t ) t j exe
(3) Computation delay: Set f > 0 (cycles/s) denotes the CPU computing capacity of the computing node. Therefore, the task computation delay t i exe is
t i exe = J c i , f = c i f
Since the output data volume is usually much smaller than the input, and the data transmission rate of the downlink is much higher than that of the uplink, the transmission delay of the output is omitted in this model calculation, as also considered in [25,26,27]. There are four categories of computational processing described in this system, namely, local computation, service vehicle computation, edge server computation, and cloud server computation, where the binary variable y i , j = 1 denotes that the task vehicle TaV i of the task T i is offloaded across the domain to the collaborative edge server computation. y i , j = 0 denotes edge computing within the edge computing domain. Then, the task T i of the total computation delay computed at t i is
t i = t i exe , a i , j = 0 t i V 2 V + t i exe , a i , j = 1 & j > K t i V 2 E + t i exe + t i q + y i j · t i E 2 E , a i , j = 1 & 0 < j K t i V 2 E + t i exe + t i q + t i E 2 C , a i , j = 1 & j = 0
The total time delay for this collaborative computing system is
t tol = t i

3.4. Energy Consumption Model

The main consideration is the task vehicle’s energy consumption in this system, which is divided into local calculation energy consumption and task offloading energy consumption. The energy consumption generated by the task vehicle TaV i while it performs task T i locally, or the amount of the local computation energy consumption e i loc , is
e i loc = p c · t i exe
where p c indicates the power of the vehicle terminal’s CPU.
Task vehicles TaV i perform task offloading to service computing nodes generated by transmission energy e i , denoted by
e i up = p up · t i up ξ i
where p up denotes that the vehicle terminal transmits power, and ξ i is the power amplifier’s efficiency of the task vehicle TaV i . In a general case, this system assumes that ξ i = 1 , and the task vehicle TaV i in the uplink energy consumption is calculated simply as e i up = p up · t i up  [27]. The task T i of the task vehicle TaV i is executed, and its generated energy consumption is
e i = e i loc , a i , j = 0 e i up , others
The total energy consumption of this collaborative computing system is
e tol = e i

3.5. Prioritization Model

To improve task offloading utility, a comprehensive evaluation of computational task T i is performed based on task delay constraints and local computational urgency, and the priority of computational task T i offloading is determined. The model uses a mixed weighting approach to prioritize the computational task T i , where priority P r i is defined as
P r i = λ 1 · W i + λ 2 · U i W i = 1 t i max U i = 1 t i max t i loc
where λ 1 , λ 2 [ 0 , 1 ] and satisfies λ 1 + λ 2 = 1 , and U i and W i are weighting factors. W i denotes the task value of the task T i . U i denotes the computational task T i the task urgency, and t i loc is the local execution time of the task.

4. Computational Offloading Strategy Problem

For the cloud-edge-end collaborative computing system model in the Internet of Vehicles scenario proposed in Section 3, this section elaborates on the problem of the system task offloading strategy. In edge computing systems, the quality of service is mainly expressed in terms of the delay and energy consumption generated by the computational task completion. In the considered Internet of Vehicles scenario, this paper, considering both delay and energy consumption improvements, defines the task offloading utility of task vehicle TaV i is defined as
F i = δ i t t i loc t i t i loc + δ i e e i loc e i e i loc
where δ i t is the time delay weight, δ i e denotes the energy consumption weight, and δ i t + δ i e = 1 , δ i t , δ i e [ 0 , 1 ] , and i T a . For example, a task vehicle TaV i with a small battery capacity can increase δ i e , decreasing δ i t and thus saving more energy at the cost of longer task delay. The task offloading utility of the system described is expressed as F ¯ = F i i T a } .
For a given offloading strategy X, the present collaborative computing system task offloading strategy problem is formulated as a problem of maximizing the offloading utility of the system, that is
max F ¯ s . t . C 1 : a i , j { 0 , 1 } , i T a , j N C 2 : j N a i , j 1 , i T a C 3 : i T a a i , j 1 , j S e C 4 : t i t i max , i T a C 5 : t i φ i , j , i T a , j S e φ i , i T a C 6 : d i , j R , i T a , j S e
where φ i denotes that TaV i and BS can remain connected, φ i , j denotes that TaV i and SeV j can remain connected, and they are calculated as
φ i = L x i v i , v i > 0 L x i v i , v i < 0
φ i , j = 50 , v i = v j & x i x j < R R x i x j sign v i v j v i v j , others
where L denotes that TaV i can move a lateral distance within the communication range of V2I at a fixed transmission power, R denotes that TaV i can move a lateral distance within the communication range of V2V at a fixed transmission power, and sign ( · ) is a symbolic function, which is expressed in this equation as follows: when v i v j > 0 , sign v i v j = 1 ; when v i v j < 0 , sign v i v j = 1 . φ i , j = 50 denotes that the two vehicles TaV i and SeV j have the same speed and that the initial position is within the communication range, whereby the two vehicles can keep communication for a long time, thus assigning φ i , j to an enormous value. In other cases, when ( x i x j ) sign v i v j > 0 , this indicates that TaV i and SeV j are moving away from each other; when ( x i x j ) sign v i v j < 0 , this indicates that TaV i and SeV j are moving closer to each other.
The constraints in Equation (15) are explained as follows: constraints C1 and C2 imply that each task can be executed locally or offloaded to at most one service computing node; constraint C3 implies that each service vehicle can service at most one task vehicle; constraint C4 specifies that each task must be completed within the specified maximum time delay limit; constraint C5 specifies that the task offloaded to the service vehicle must be completed within the two-vehicle maintain-communication time, or that offloading to the ECS must be completed within the hold-communication time with the BS; constraint C6 specifies that the straight-line distance d i , j between the task vehicle and the service vehicle for both vehicles must be no greater than the communication distance R for the task to be offloaded.

5. Multilateral Collaborative Computing Offloading Strategy Based on the M-TSA Algorithm

To cope with the more complex cloud-edge-end collaborative computing system in the Internet of Vehicles scenario, this section proposes a multi-strategy collaboration-based TSA algorithm (M-TSA) and then proposes a multilateral collaborative computing offload strategy based on the M-TSA algorithm. The M-TSA algorithm, which introduces multiple population evolution strategies into the TSA algorithm, can better meet the optimization of the computational offload quality of service metrics (system delay, system energy consumption) in the collaborative computing system in the Internet of Vehicles scenario.

5.1. Standard TSA Algorithm

The Tunicate Swarm Algorithm (TSA) is an intelligent swarm optimization algorithm proposed by Kaur et al. [28] to simulate the foraging behavior of a swarm of animals in the ocean. Its execution includes jet propulsion and group behavior. It has the advantages of a simple structure, strong local search ability, high accuracy of search and optimization, and has been validated in function optimization problems and engineering applications. However, the search mode is single and there is no individual memory, so the local search is not sufficient and the accuracy is low when solving high-complexity problems.

5.1.1. Jet Propulsion

Equation (18) denotes the principle of conflict avoidance between individuals, A denotes the factor of conflict avoidance between individuals, G is gravity, and c 1 , c 2 , c 3 is a random number between [0, 1], respectively. H represents the social interaction between individuals, and p min ,   p max are the initial and subordinate velocities of social interactions between individuals, respectively, setting p min = 1 ,   p max = 4 . Equation (19) denotes the movement toward the optimal individual, P D denotes the distance between the food (optimal individual) and the individual, k is the current iteration number, F S is the position of food, and P p ( k ) denotes the current position of the individual. Equation (20) denotes convergence to the optimal individual, and r and is a random number between [0, 1].
A = G H G = c 2 + c 3 2 c 1 H = p min + c 1 p max p min
P D = F S r and · P p ( k )
P p ( k ) = F S + A · P D , r and 0.5 F S A · P D , r and < 0.5

5.1.2. Swarm Behavior

Equation (21) represents the location of the optimal solution of the updated individual, which is calculated based on the optimal location of the current two generations of search individuals, and the tunicate individuals perform swarm behavior to gather towards the food’s (the optimal individual’s) location.
P p ( k + 1 ) = P p ( k ) + P p ( k + 1 ) 2 + c 1

5.2. M-TSA Algorithm

For the complex computational offloading problem of the more complex cloud-edge-end collaborative computing system in the vehicle networking scenario, the M-TSA algorithm is proposed to improve the algorithm’s global exploration and local exploitation capabilities by introducing a memory learning strategy, a Levy flight strategy, and an adaptive dynamic weighting strategy based on the standard encapsulated swarm algorithm, as described below.

5.2.1. Memory Learning Strategy

The memory learning strategy, introduced by Particle Swarm Optimization (PSO) memory learning, includes the update speed v and position x, as
v i = ω × v i + c 1 × r and × p b e s t i X i + c 2 × r and × g b e s t X i X i = X i + v i ω ( t ) = ω min + ω max ω min ( K k ) / K
where v i is the individual velocity, X i is the individual position, pbesti is the individual optimal solution, gbest is the global optimal solution, ω is the inertia factor, c 1 is the self-learning factor, and c 2 is the swarm learning factor. The memory learning of PSO is introduced in this algorithm to strengthen the self-memory learning; let c 1 = 2 , c 2 = 2 , r and is the random number between [0, 1], k is the current population iteration number, K is the maximum iteration number, and it is taken in this algorithm ω max = 0.9 , ω min = 0.4 . The dynamic inertia factor ω has better merit-seeking results than fixed values, so this algorithm adopts a linearly decreasing weight strategy, with the iteration period ω decreasing gradually, and the swarm individuals have strong global search merit-seeking ability in the early stage and enhanced local search merit-seeking ability in the later stage.

5.2.2. Levy Flight Strategy

To increase the diversity of populations, this algorithm introduces a stochastic cross-learning strategy based on Levy flight, which allows the algorithm to have greater randomness in the optimization process and avoid the algorithm from falling into the local optimum.
X i ( k + 1 ) = X i ( k ) + α X j ( k ) · lev y ( β ) X i ( k ) , r and < J X i ( k ) + α X j ( k ) X i ( k ) · levy ( β ) , J r and < 1 J X i ( k ) + α X j ( k ) X i ( k ) · levy ( β ) , r and 1 J
levy ( β ) = u | s | β
σ u = Γ ( 1 + β ) sin π β 2 Γ 1 + β 2 β × 2 β 1 2 1 β , σ s = 1
where u N 0 , σ u , s N 0 , σ s , r and is a random number between [0, 1], and J [ 0 , 1 ] denotes the probability variable that determines which cross-learning method is used by the individuals in the population. In order for individuals in the population to select each cross-learning mode with equal probability, set J = 1 / 3 . α denotes the cross-learning coefficient; levy ( · ) denotes the random number that satisfies the Levy distribution.

5.2.3. Adaptive Dynamic Weighting Strategy

To improve the performance of the TSA algorithm, an adaptive dynamic weighting strategy is proposed to balance the global exploration and local exploitation capabilities of the TSA algorithm. For the position of each capsule individual, we use the following equation to enhance the algorithm’s ability to search for the global optimum and increase the current capsule search step to enhance the algorithm’s ability to escape the extreme values, calculated as follows.
P p ( k ) = F S + 2 · A · P D , r and 0.5 F S A · P D , r and < 0.5
where A is the conflict avoidance factor between individuals, P D is the distance between the food (optimal individual) and the individual, k is the current iteration number, F S is the position of the food, P p ( k ) denotes the position of the current individual, and r a n d is a random number between [0, 1].
To balance the global exploration and local exploitation abilities of the capsule swarm algorithm, this paper proposes an adaptive dynamic weighting strategy to update the positions of capsule individuals. In this strategy, the updated formula for the position of the capsule individual includes the current position of the individual, the position of the previous generation individual, and the adaptive weight. The size of the adaptive weight is related to the position of the capsule individual and can be dynamically adjusted during the iteration of the algorithm. When the adaptive weight is larger, the step size of the individual position update is smaller, which is beneficial to the global exploration ability of the algorithm. When the adaptive weight is smaller, the step size of the individual position update is larger, which is beneficial to the local exploitation ability of the algorithm. Compared with the random parameters in the original TSA algorithm, the adaptive dynamic weighting strategy can improve the performance of the algorithm and avoid the problems caused by the blindness of the algorithm. The specific calculation formula is shown as follows:
z = 2 e ( 3 k / K )
where k is the number of current iterations and K is the maximum number of iterations.
The swarm behavior update formula for introducing adaptive dynamic weight values in the swarm behavior of the M-TSA algorithm is
P p ( k + 1 ) = P p ( k ) + P p ( k + 1 ) 2 + z
where P p ( k ) denotes the current individual’s position, and z denotes the adaptive dynamic weight value. During the iteration of the algorithm, the adaptive weight value decreases gradually with time, which leads to an overall increase in the position update weight and a corresponding increase in the update step size, which makes the algorithm a strong exploration capability at a later stage.

5.2.4. Adaptive Dynamic Regulation of Populations

This algorithm performs adaptive dynamic adjustment of the number of individuals performing memory cross-learning and jet propulsion to enhance the ability of global full search finding of the population. In the early iteration, most of the individuals in the population of this algorithm performed memory cross-learning to increase the population’s local search and enhance the global search directionality in the later iteration. In the later iteration, to avoid falling into the local optimal results, most of the individuals performed TSA jet propulsion mode to improve the algorithm’s ability to jump out of the local for global search, effectively balancing the local search and global search abilities. The algorithm uses an adaptive decay adjustment strategy for the number of subgroup individuals num, as defined below.
n u m ( k ) = S · e 3 k / K 1
where k is the number of current population iterations, K is the maximum number of iterations, and S is the overall population number of individuals. The variable g b e s t ( k ) is used to denote the global optimal individual at generation k. The steps of the population adaptive dynamic adjustment algorithm are shown in Algorithm 1.    
Algorithm 1 Adaptive dynamic regulation of populations algorithm.
  • Input:  S , k , K , g b e s t
  • Output:  n u m
  • procedure Anum
  • if  g b e s t ( k + 1 ) = g b e s t ( k )  then /* g b e s t ( k ) is the global optimal individual at generation k.*/
  •        n u m 0
  • else
  •        n u m S × e x p ( 3 × k / K ) 1
  • end if
  • return  n u m
  • end procedure

5.2.5. M-TSA Algorithm Steps

The flow of the M-TSA algorithm is shown in Figure 3, and the specific steps are as follows. The M-TSA algorithm pseudocode is shown in Algorithm 2.
Algorithm 2 M-TSA algorithm.
  • Input:  S , K ,   population X
  • Output:  X best
  • procedure M-TSA
  • p min 1
  • p max 3
  • X 1 0
  • p b e s t ,   X best CaculateFitness(X)/* Initialize the individual fitness value using the CalculateFitness function.*/
  • for  k 1 to K  do
  •        n u m Anum( S , k , K , X best ) /* Anum() is adaptive dynamic regulation of populations algorithm, see Algorithm 1.*/
  •       for  i 1 to S  do
  •             if  i < n u m  then
  •                    r and Rand() /* Rand() is a function to generate the random number in the range [0, 1]. */
  •                   if  r and < C r  then
  •                          X 1 X + v /*Memory learning strategy according to Equation (22).
  •                         */
  •                   else
  •                          X 1 Levy_strategy() /* Levy_strategy() is a function that Levy flight strategy according to Equation (23).*/
  •                   end if
  •             else /*Jet propulsion according to Equations (18), (19), (26).*/
  •                    c 1 , c 2 , c 3 Rand()
  •                    H p min + c 1 p max p min
  •                    A ( c 2 + c 3 ) 2 × c 1 / H
  •                    P D abs ( X best Rand ( ) × X )
  •                   if  Rand ( ) > = 0.5  then
  •                          X 1 X best + 2 A P D
  •                   else
  •                          X 1 X best A P D
  •                   end if
  •             end if
  •             /*Adaptive swarm behavior to Equation (28).*/
  •              X ( X 1 + X ) / ( 2 + z )
  •       end for
  •        p b e s t , X best CaculateFitness(X) /* Calculate the individual fitness value of the new population using CaculateFitness function*/
  • end for
  • return X best
  • end procedure
  •  
  • procedure CaculateFitness(X)
  •       for  i 1 to S  do
  •              f i t [ i ] f i t n e s s f u n ( X [ i , : ] ) /* Calculate the fitness of each individual */
  •             if  f i t [ i ] < p b e s t f i t [ i ]  then
  •                    p b e s t f i t [ i ] f i t [ i ]
  •                    p b e s t [ i ] X [ i ]
  •             end if
  •       end for
  •       if  M i n ( p b e s t f i t ) < X f i t best  then
  •              X best X [ a r g m i n ( p b e s t f i t ) ] /* argmin() is the function to obtain the minimum value index */
  •       end if
  • return  p b e s t , X best
  • end procedure
Step 1: First, according to the task example, randomly generate the initial population of the capsule; the individuals in the population include the location to be optimized x i ( i = 1 , 2 , , n ) and its fitness value to be optimized f i .
Step 2: Calculate the individual fitness value f i , and derive the initial per-individual optimal solution p b e s t i and the global optimal solution g b e s t .
Step 3: Based on the update situation of the global optimal individual g b e s t and the number of iterations, the number of subpopulation individuals n u m is calculated adaptively, as described in Algorithm 1.
Step 4: The n u m individuals of the subpopulation perform memory learning or Levy flight strategy, when the random number r a n d < C r , performing memory learning, C r is the cross-learning factor; the remaining S n u m individuals perform the jet propulsion of TSA, where convergence to the optimal individual is calculated according to the improved Equation (26).
Step 5: Apply the adaptive dynamic weighting strategy to perform swarm behavior learning according to Equation (28), update its position, and generate a new generation of population.
Step 6: New populations are checked for transgression, and individuals beyond the constraint range are processed for transgression.
Step 7: Calculate the individual fitness value of the new population, and update the individual optimal solution p b e s t i and the global optimal solution g b e s t .
Step 8: Determine whether the maximum number of iterations is reached, and if it is satisfied, output the global optimal solution g b e s t ; otherwise, return to Step 2.
Figure 3. M-TSA algorithm steps.
Figure 3. M-TSA algorithm steps.
Sensors 23 04682 g003

5.3. Multilateral Collaborative Computing Offloading Strategy Based on the M-TSA Algorithm

5.3.1. Computational Offloading Strategy’s Code

To facilitate the task offloading strategy execution in the swarm intelligence optimization algorithm, the computational nodes are encoded. This offloading strategy X is defined as X = x 1 , x 2 , , x i , , x I , where x i is the task vehicle TaV i ’s task computation node x i 0 , 1 , 2 , m + 1 , , M + 1 , M + 2 , M + j m + 1 , , M + J m + 1 , whereby x i = 0 denotes the task vehicle TaV i local compute node, x i = 1 indicates at the central cloud server compute node, x i = { 2 , m + 1 , , M + 1 } indicates at the edge server compute node, and x i M + 2 when x i = M + j m + 1 indicates at the service vehicle SeV j computing node.
The offload policy is coded as shown in Figure 4, assuming that the task set T i = { T 1 , T 2 , T 3 , T 4 , T 5 } , M = 4 means there are four edge server ECS, and the offloading strategy X = { 1 , 0 , 3 , 10 , 2 } indicates that T 1 is offloaded to CS for execution, T 2 is executed locally, T 3 is offloaded to ECS 2 execution, T 4 is offloaded to SeV 5 for execution, and T 5 is offloaded to ECS 1 .

5.3.2. Computational Offloading Strategy’s Code

In the TSA algorithm, the fitness function is used to evaluate the distance between the tunicate individual and the food source, i.e., the gap between this solution and the optimal solution to the problem. This offloading strategy is evaluated in three aspects, namely, computational delay, energy consumption, and offloading utility. The fitness evaluation function is constructed with the offloading utility of balanced computational delay and energy consumption, and the fitness evaluation value for the offloading strategy X is f ( X ) , as shown in the following equation:
f ( X ) = F ¯
where F denotes the system task offloading utility, F = F i i T a .

5.3.3. M-TSA Based Multilateral Collaborative Computing Offloading Strategy’s Algorithm Steps

For the complex computational offloading problem in the cloud-edge-end collaborative computing system in the Internet of Vehicles scenario, multiple evolutionary strategies are introduced, and a multilateral collaborative computational offloading strategy based on the M-TSA algorithm is proposed with the following algorithmic steps:
Step 1: Create cloud-edge-end collaborative computing system task instances in the Internet of Vehicles scenario, including creating CS instances, edge computing group E s , task vehicle set T a , and service vehicle set S e that simulate real road conditions and vehicle movement.
Step 2: According to Equation (13), calculate the task offloading priority of each task T i in each edge computing domain and determine the task offloading order from the highest priority to the lowest priority.
Step 3: According to Equation (15) constraints C4–C6, predict the set of task unloadable nodes S e N , i.e., the individual boundary of the population, to narrow the search range of the algorithm and improve the task unload utility.
Step 4: Execute the M-TSA algorithm, see Section 5.2.5 for details. Take the ordered task set T a and the predicted node set S e N as inputs, and execute the M-TSA algorithm to derive the optimal computational offloading decision X best .

6. Simulation Verification

To verify the effectiveness of the proposed M-TSA-based multilateral collaborative computing offloading strategy, this section presents our simulation experiments using Python, and the main parameters of the experiments are shown in Table 2. The experiments are conducted to compare three computing systems, namely, cloud-edge-end collaborative computing, end-edge collaborative computing, and local computing. Further, the experiments are conducted to compare the offloading strategies based on the M-TSA algorithm with the TSA algorithm, PSO algorithm, Grey Wolf Optimizer algorithm (GWO), and Differential Evolution Algorithm (DE) offloading strategy comparison experiments. The algorithm parameters of this experiment are set as iteration number K = 50 , population size s i z e = 40 , one central cloud server, four edge computing domains, and a random group of vehicles in one computational domain.

6.1. Cloud-Edge-End Architecture Verification

Under the same experimental environment and the same task instance, the mixed weights of delay and energy consumption ( δ i t = 0.8 , δ i e = 0.2 ) under the M-TSA algorithm are compared, and the optimization results of cloud-edge-end collaborative computing, end-edge collaborative computing, and local computing for three computing systems on delay and energy consumption are discussed. In the created task instance, the three computing systems are run 20 times independently, and the average of the optimal solutions of the results of 20 runs of each algorithm is taken.
As can be seen in Figure 5, in the same experimental environment and with the same task instance input, the solution results of the cloud-edge-end collaborative computing system under the mixed weight evaluation are significantly better than those of the other two architectural computing systems, resulting in a smaller system delay and lower system energy consumption, and the advantage grows as the task computation volume increases. The experimental results show that the cloud-edge-end collaborative computing system is significantly better than other architectures and can realize complementary resources of cloud computing, edge nodes, and vehicle terminal devices, which can be flexibly configured according to the characteristics of the task and real-time demand to better adapt to different task scales.

6.2. Delay and Energy Mixing Weighting Optimization Comparison

Figure 6 depicts the optimization comparison results of offloading utility, delay, and energy consumption for five algorithms to calculate offloading under mixed weights of delay and energy consumption with the same experimental environment, the same task instance, and the same initial population when the number of TaV is 20 and the number of SeV is 30. In the created task instance, the five algorithms are run 20 times independently with the same input, and the optimal solution is taken from the results of the 20 runs of each algorithm.
As can be seen in Figure 6, the solution results of the M-TSA algorithm under the mixed weight evaluation are significantly better than the other four algorithms in the same experimental environment with the same task instances and the same initial population input, obtaining higher offloading utility, a shorter system time delay, and a lower system energy consumption, which is proof that the M-TSA algorithm has a stronger global optimization-seeking ability to derive the optimal computational offloading strategy. In addition, it can be seen in Figure 6 that the M-TSA algorithm can obtain the optimal solution in fewer iterations compared to other algorithms, indicating that the M-TSA algorithm has a fast optimality finding capability, which enhances its application to delay-sensitive vehicular networking special scenarios to compute offloading strategies.

6.3. Delay Orientation Optimization Test

Figure 7 depicts the comparison results of offloading utility and delay for five algorithms to perform delay orientation optimization ( δ i t = 1.0 , δ i e = 0.0 ) experiments with the same experimental environment, the same task instances, and the same initial population when the number of TaV is 20 and the number of SeV is 30.
From Figure 7, it can be seen that the M-TSA proposed also has better results in calculating the offloading directed optimization delay compared with the PSO, TSA, GWO, and DE algorithms. From Figure 7a, we can see that the M-TSA algorithm has several large upward jumps relative to other algorithms, which in turn leads to better solutions. This is proof that the M-TSA algorithm has a stronger ability to jump out of the local global optimum and can continuously jump out of the local to fully search the global to arrive at the optimal computational offloading strategy.

6.4. Impact of Changes in the Number of Task Vehicles in the Computational Domain

This section is a simulation experiment in which the number of service vehicles (SeV) is 30, given δ i t = 0.8 , δ i e = 0.2 , and the optimization comparison results of offloading utility, time delay, and energy consumption for five algorithms for the different number of task vehicles in the same experimental environment and same task instance are presented. The five algorithms are run 20 times independently with the same input under a fixed number of TaV, and the average of the optimal solutions of the 20 runs of each algorithm is taken. Please refer to Table 3, Table 4 and Table 5 for the data on the impact of the number of TaV.
As can be seen in Figure 8, the solution results of the M-TSA algorithm proposed are significantly better than the other four algorithms for the different number of task vehicles. It can derive a better computational offloading strategy, which enables the vehicle cooperative system to handle all computational tasks with higher offloading utility, a minimum system time delay, and a minimum system energy consumption, indicating that this algorithm is effective.

7. Conclusions

We discuss the problem of simultaneous computational offloading of multiple vehicles on a two-way straight highway in an Internet of Vehicles scenario and design a vehicle computational network model based on cloud-edge-end collaboration. The offloading utility, system time delay, and system energy consumption are the optimization objectives, and the vehicle motion characteristics and task time delay sensitivity are taken into account to make the computational offloading scheme more consistent with the actual, real situation. The simulation results show that the proposed offloading strategy can significantly improve the system task offloading utility and effectively reduce the system time delay and system energy consumption. In future research, relevant strategies will be further designed for more complex Internet of Vehicles scenarios to better match the actual situation.
The proposed approach takes into account the vehicle motion characteristics and task delay sensitivity to make the computational offloading scheme more realistic, but further challenges such as dynamic changes in the vehicle network topology and unreliable connections still need to be addressed. An interesting future research direction for this work is to employ predictive algorithms to predict the location and connectivity of vehicles for more accurate design and tuning of computational offloading strategies to better match the real-world situation.

Author Contributions

Conceptualization, Q.X., G.Z., and J.W.; methodology, Q.X. and G.Z.; software, Q.X.; validation, Q.X. and G.Z.; formal analysis, Q.X., G.Z., and J.W.; investigation, G.Z. and J.W.; resources, G.Z. and J.W.; writing—original draft preparation, Q.X.; writing—review and editing, Q.X. and G.Z.; funding acquisition, J.W. and G.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the “Yunnan Xingdian Talents Support Plan” project of Yunnan and Key Projects of Yunnan Basic Research Plan (202101AS070016); and by the Yunnan Province Basic Research Program Key Funding Project (202101AS070016).

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhang, K.; Mao, Y.; Leng, S.; He, Y.; Zhang, Y. Mobile-edge computing for vehicular networks: A Promising Network Paradigm with Predictive Off-Loading. IEEE Veh. Technol. Mag. 2017, 12, 36–44. [Google Scholar] [CrossRef]
  2. Liu, Y.; Peng, M.; Shou, G.; Chen, Y.; Chen, S. Toward Edge Intelligence: Multiaccess Edge Computing for 5G and Internet of Things. IEEE Internet Things J. 2020, 7, 6722–6747. [Google Scholar] [CrossRef]
  3. Wang, S.; Zhang, Q.; Chen, G. V2V-CoVAD: A vehicle-to-vehicle cooperative video alert dissemination mechanism for Internet of Vehicles in a highway environment. Veh. Commun. 2022, 33, 100418. [Google Scholar] [CrossRef]
  4. Wang, J.; Feng, D.; Zhang, S.; Tang, J.; Quek, T.Q. Computation offloading for mobile edge computing enabled vehicular networks. IEEE Access 2019, 7, 62624–62632. [Google Scholar] [CrossRef]
  5. de Souza, A.B.; Rego, P.A.L.; de Souza, J.N. Exploring Computation Offloading in Vehicular Clouds. In Proceedings of the 8th IEEE International Conference on Cloud Networking (CloudNet), Coimbra, Portugal, 4–6 November 2019. [Google Scholar]
  6. Dai, Y.; Xu, D.; Maharjan, S.; Zhang, Y. Joint Computation Offloading and User Association in Multi-Task Mobile Edge Computing. IEEE Trans. Veh. Technol. 2018, 67, 12313–12325. [Google Scholar] [CrossRef]
  7. Dai, Y.; Xu, D.; Maharjan, S.; Zhang, Y. Computation Offloading and Resource Allocation For Cloud Assisted Mobile Edge Computing in Vehicular Networks. IEEE Trans. Veh. Technol. 2019, 68, 7944–7956. [Google Scholar]
  8. Li, H.; Xu, H.; Zhou, C.; Xing, L.; Han, Z. Joint Optimization Strategy of Computation Offloading and Resource Allocation in Multi-Access Edge Computing Environment. IEEE Trans. Veh. Technol. 2020, 69, 10214–10226. [Google Scholar] [CrossRef]
  9. Xu, X.; He, C.; Xu, Z.; Qi, L.; Wan, S.; Bhuiyan, M.Z.A. Joint Optimization of Offloading Utility and Privacy for Edge Computing Enabled IoT. IEEE Internet Things J. 2020, 7, 2622–2629. [Google Scholar] [CrossRef]
  10. Liu, H.; Niu, Z.; Du, J.; Lin, X. Genetic algorithm for delay efficient computation offloading in dispersed computing. Ad Hoc Netw. 2023, 142, 103109. [Google Scholar] [CrossRef]
  11. Peng, H.; Wen, W.S.; Tseng, M.L.; Li, L.L. Joint optimization method for task scheduling time and energy consumption in mobile cloud computing environment. Appl. Soft Comput. 2019, 80, 534–545. [Google Scholar] [CrossRef]
  12. Dai, P.; Hu, K.; Wu, X.; Xing, H.; Teng, F.; Yu, Z. A Probabilistic Approach for Cooperative Computation Offloading in MEC-Assisted Vehicular Networks. IEEE Trans. Intell. Transp. Syst. 2022, 23, 899–911. [Google Scholar] [CrossRef]
  13. Abbasi, M.; Pas, E.M.; Khosravi, M.R. Workload Allocation in IoT-Fog-Cloud Architecture Using a Multi-Objective Genetic Algorithm. J. Comput. 2020, 18, 43–56. [Google Scholar] [CrossRef]
  14. Huang, L.; Feng, X.; Zhang, L.; Qian, L.; Wu, Y. Multi-Server Multi-User Multi-Task Computation Offloading for Mobile Edge Computing Networks. Sensors 2019, 19, 1446. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Zhao, T.; Zhou, S.; Song, L.; Jiang, Z.; Guo, X.; Niu, Z. Energy-optimal and delay-bounded computation offloading in mobile edge computing with heterogeneous clouds. China Commun. 2020, 17, 191–210. [Google Scholar] [CrossRef]
  16. Ranji, R.; Mansoor, A.M.; Sani, A.A. EEDOS: An energy-efficient and delay-aware offloading scheme based on device to device collaboration in mobile edge computing. Telecommun. Syst. Model. Anal. Des. Manag. 2020, 73, 171–182. [Google Scholar] [CrossRef]
  17. Fu, K.; Ye, J. Computation offloading based on improved glowworm swarm optimization algorithm in mobile edge computing. J. Phys. Conf. Ser. 2021, 1757, 012195. [Google Scholar] [CrossRef]
  18. Su, M.; Wang, G.; Li, R. Resource Deployment with Prediction and Task Scheduling Optimization in Edge Cloud Collaborative Computing. J. Comput. Res. Dev. 2021, 58, 2558–2570. [Google Scholar]
  19. Xu, X.; Zhang, X.; Liu, X.; Jiang, J.; Qi, L.; Bhuiyan, M.Z.A. Adaptive Computation Offloading With Edge for 5G-Envisioned Internet of Connected Vehicles. IEEE Trans. Intell. Transp. Syst. 2021, 22, 5213–5222. [Google Scholar] [CrossRef]
  20. Song, Y.B.; Jin, X.Y.; Yan, F.; Hu, A. Secure and energy efficient offloading of mobile edge computing in the Internet of vehicles. J. Tsinghua Univ. (Sci. Technol.) 2021, 61, 1246–1253. (In Chinese) [Google Scholar]
  21. Zhang, H.B.; Wang, Z.X.; Liu, K.J. V2X Offloading and Resource Allocation in SDN-Assisted MEC-Based Vehicular Networks. China Commun. 2020, 17, 266–283. [Google Scholar] [CrossRef]
  22. Zhu, S.F.; Cai, J.H.; Chai, Z.Y.; Sun, E. Multi-objective optimal offloading decision for cloud-edge collaborative computing scenario in Internet of vehicles. J. Commun. 2022, 43, 223–234. (In Chinese) [Google Scholar]
  23. Shen, X.; Chang, Z.; Niu, S. Mobile Edge Computing Task Offloading Strategy Based on Parking Cooperation in the Internet of Vehicles. Sensors 2022, 22, 4959. [Google Scholar] [CrossRef] [PubMed]
  24. Su, M.; Wang, G.; Chen, J. Efficient task offloading with swarm intelligence evolution for edge-cloud collaboration in vehicular edge computing. Softw Pract Exper. 2022, 1–28. [Google Scholar] [CrossRef]
  25. Chen, X. Decentralized computation offloading game for mobile cloud computing. IEEE Trans. Parallel Distrib. Syst. 2014, 26, 974–983. [Google Scholar] [CrossRef] [Green Version]
  26. Lyu, X.; Tian, H.; Sengul, C.; Zhang, P. Multiuser joint task offloading and resource optimization in proximate clouds. IEEE Trans. Veh. Technol. 2016, 66, 3435–3447. [Google Scholar] [CrossRef]
  27. Tran, T.X.; Pompili, D. Joint task offloading and resource allocation for multiserver mobileedge computing networks. IEEE Trans. Veh. Technol. 2018, 68, 856–868. [Google Scholar] [CrossRef] [Green Version]
  28. Kaur, S.; Awasthi, L.K.; Sangal, A.L.; Dhiman, G. Tunicate Swarm Algorithm: A new bio-inspired based metaheuristic paradigm for global optimization. Eng. Appl. Artif. Intell. 2020, 90, 103541. [Google Scholar] [CrossRef]
Figure 1. Cloud-edge-end collaborative computing network diagram in the Internet of Vehicles scenario.
Figure 1. Cloud-edge-end collaborative computing network diagram in the Internet of Vehicles scenario.
Sensors 23 04682 g001
Figure 2. Vehicle movement diagram.
Figure 2. Vehicle movement diagram.
Sensors 23 04682 g002
Figure 4. Computational offloading strategy’s code.
Figure 4. Computational offloading strategy’s code.
Sensors 23 04682 g004
Figure 5. Comparison of different computing systems.
Figure 5. Comparison of different computing systems.
Sensors 23 04682 g005
Figure 6. When δ i t = 0.8 , δ i e = 0.2 , the comparison curve of system utility and delay and energy consumption calculated by different algorithms.
Figure 6. When δ i t = 0.8 , δ i e = 0.2 , the comparison curve of system utility and delay and energy consumption calculated by different algorithms.
Sensors 23 04682 g006
Figure 7. Comparison curve of system utility and delay of different algorithms for computational offloading in delay orientation optimization.
Figure 7. Comparison curve of system utility and delay of different algorithms for computational offloading in delay orientation optimization.
Sensors 23 04682 g007
Figure 8. Effect of number of TaV on system utility, delay, and energy consumption.
Figure 8. Effect of number of TaV on system utility, delay, and energy consumption.
Sensors 23 04682 g008
Table 1. Meaning of parameters.
Table 1. Meaning of parameters.
ParametersMeaning
TaVThe task vehicles.
SeVThe service vehicles.
vThe vehicle speed.
f i The CPU computing capacity of TaV.
f j The CPU computing capacity of SeV.
f c The CPU computing capacity of CS.
f s The CPU computing capacity of ECS.
f n s The CPU computing capacity of other collaborative computing ECSs.
hThe linear distance between BS and the road.
LThe communication coverage radius of BS.
RThe communication distances of V2V.
r V 2 I The transmission rate of V2I.
r V 2 V The transmission rate of V2V.
r E 2 E The transmission rate of E2E.
r E 2 C The transmission rate of E2C.
p up The vehicle terminal transmits power,
p c The power of the vehicle terminal’s CPU.
b i The amount of data required to complete the task.
c i The amount of computation to complete the task.
t i max The maximum delay limit of the computation task.
Table 2. Parameters of the experiments.
Table 2. Parameters of the experiments.
ParametersValue
v/km · h 1 [30, 80]
f i /GHz[0.5, 1]
f j /GHz[1, 2]
f c /GHz50
f s /GHz20
f n s /GHz[10, 20]
h/m1
L/m1000
R/m20
r V 2 I /Mbit · s 1 1000
r V 2 V /Mbit · s 1 400
r E 2 E /Mbit · s 1 2000
r E 2 C /Mbit · s 1 1500
p up /W30
p c /W50
b i /Mbit[10, 100]
c i /G cycles[0.1, 2]
t i max /s[0.2, 5]
The communication simulation parameters of V2I and V2V are set with reference to the 5G-V2X network standard adopted by most car companies nowadays.
Table 3. Data on the impact of the number of TaV—System Delay.
Table 3. Data on the impact of the number of TaV—System Delay.
Number of TaVSystem Delay/s
M-TSAPSOTSAGWODE
50.78160.86150.80750.80750.8037
101.79471.93221.84262.06181.8569
151.75021.83461.79691.77391.7800
203.02813.32113.23563.58813.3168
254.02654.54795.73736.84847.4391
304.30044.94025.200110.09689.1898
356.20456.89877.00808.879413.0259
406.79457.05967.474613.057413.8094
Table 4. Data on the impact of the number of TaV—System Energy Consumption.
Table 4. Data on the impact of the number of TaV—System Energy Consumption.
Number of TaVSystem Energy Consumption/J
M-TSAPSOTSAGWODE
511.2811.2811.2811.2811.28
1016.8217.6717.6717.6717.67
1519.2421.2421.2421.2421.24
2030.6933.6933.6933.6933.69
2535.3738.3739.1450.8842.56
3040.2640.2645.2655.4460.93
3555.4560.4560.4565.0069.59
4065.3567.3567.3595.2680.54
Table 5. Data on the impact of the number of TaV—System Utility.
Table 5. Data on the impact of the number of TaV—System Utility.
Number of TaVSystem Utility
M-TSAPSOTSAGWODE
50.91060.90610.90060.90050.9016
100.93870.92820.93620.92210.9354
150.90410.89300.89180.89970.8960
200.91370.90610.91100.89690.9062
250.92450.91420.90420.87540.9009
300.92180.91980.91180.85240.8473
350.92280.91220.91670.89410.8789
400.92360.92170.91950.85020.8576
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Xu, Q.; Zhang, G.; Wang, J. Research on Cloud-Edge-End Collaborative Computing Offloading Strategy in the Internet of Vehicles Based on the M-TSA Algorithm. Sensors 2023, 23, 4682. https://doi.org/10.3390/s23104682

AMA Style

Xu Q, Zhang G, Wang J. Research on Cloud-Edge-End Collaborative Computing Offloading Strategy in the Internet of Vehicles Based on the M-TSA Algorithm. Sensors. 2023; 23(10):4682. https://doi.org/10.3390/s23104682

Chicago/Turabian Style

Xu, Qiliang, Guo Zhang, and Jianping Wang. 2023. "Research on Cloud-Edge-End Collaborative Computing Offloading Strategy in the Internet of Vehicles Based on the M-TSA Algorithm" Sensors 23, no. 10: 4682. https://doi.org/10.3390/s23104682

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop