Vehicular Cloud Forming and Task Scheduling For Energy-Efficient Cooperative Computing
Vehicular Cloud Forming and Task Scheduling For Energy-Efficient Cooperative Computing
ABSTRACT A vehicular cloud (VC) is a network of vehicles that perform cooperative computing through
vehicle-to-vehicle (V2V) communication. Existing research on vehicular cloud computing (VCC) is mostly
based on cloud servers or edge servers, not VCs. However, vehicles, by constructing a Vehicular Ad-Hoc
Network (VANET), can perform applications requiring the large amount of computation cooperatively on
their own without the help of edges or cloud servers. One of important issues for the VANET cooperative
computing is how to handle the frequent topology change due to vehicle mobility. The unstable network
topology limits the advantage of cooperative computing and even makes its operation stop sometimes.
This paper proposes a cooperative computing method based on vehicle-to-vehicle (V2V) communication.
For stable and energy-efficient cooperative computing, the proposed method considers the distance when
selecting vehicles that it will cooperate with and delays task offloading back as far as possible. The proposed
method outperforms previous static scheduling methods in terms of energy efficiency and network stability.
I. INTRODUCTION are located far away. Thus, the Cloud-tier is good for applica-
Recently, vehicles have not only been connected to Internet tions that require large amounts of memory and computation
via wireless communication, but have also become network but do not require short latency, such as infotainment services.
nodes that can perform various applications in real-time Information services are information and entertainment ser-
[1]. Particularly, applications such as big data analysis and vices that are not related to driving safety, requiring a latency
image processing using machine learning require high com- of 1 second and a bandwidth of 80 Mbps or more [5].
puting power. Vehicular Cloud Computing (VCC) might On the contrary, the Vehicle-tier consists of vehicles.
be a promising solution to run these kinds of application Because a vehicle can receive data from other vehicles
smoothly [2], [3], [4]. directly, this tier requires the shortest latency. Therefore, this
The VCC has a 3-tier architecture of Cloud-tier, Edge-tier, tier is appropriate for applications requiring very short latency
and Vehicle-tier. Each tier has different features, so each is like collision warning of which the acceptable end-to-end
suitable for different VCC applications. First, the Cloud-tier delay is just 20-50 ms [5]. However, this tier is not good
has the highest computing power and largest memory, but it for performing computation-intensive applications due to the
may take the longest latency to reach because cloud servers lack of computing power.
Finally, the Edge-tier can provide shorter latency than the
The associate editor coordinating the review of this manuscript and Cloud-tier; and more computing power and memory than the
approving it for publication was Barbara Masini . Vehicle-tier. Thus, it is suitable for applications such as traffic
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
3858 VOLUME 11, 2023
M. Gong et al.: VC Forming and Task Scheduling for Energy-Efficient Cooperative Computing
information sharing and analysis services, which need a delay focused only on minimization of this execution time. On the
of 100-500 ms and a throughput of 10-45 Mbps [5]. other hand, we consider not only execution time but also
Due to the moderate latency and computing power, some energy costs when designing our task scheduling method.
papers [6], [7] suggest that most of the computation work on The energy cost is particularly important for electric vehicles
vehicles is offloaded to edge servers. However, edge servers since it can affect their driving range.
always have certain constraints on both computing power and This paper proposes Stepwise Computation Offloading for
memory unlike cloud servers, thus if too many tasks are given Cost-efficient Cooperation (SCOCC) to form a vehicular
to edge servers, the service quality might be degraded and cloud and find an energy-efficient task schedule. Main idea
even the security might be endangered [6], [8]. of SCOCC is to minimize the time interval between task
In this situation, vehicles can relieve the burden of edge offloading and task execution, and to consider the distance
servers. Vehicles in the previous VCC model [9] were con- between a CV and WVs when choosing WVs. An appli-
sidered as just end-terminals sending requests to cloud or cation is decomposed into tasks, which are logical mini-
edge servers, but this is not all that a vehicle can do. If they mum units of work, being represented in a Directed Acyclic
construct a Vehicular Ad-hoc Network (VANET) and cooper- Graph (DAG) form by a CV. The tasks are then offloaded
atively run many applications by themselves through vehicle- only to a fixed number of WVs in the order closest to
to-vehicle (V2V) communication, both the burden on edge the CV. Note here that not all tasks are offloaded at once,
servers and the network traffic load can be reduced. In addi- but rather some parts of them are offloaded sequentially to
tion, it is better for privacy since private information does not minimize the time difference between scheduling and task
pass through external networks [10]. execution.
We suggest a platform that enables vehicles to efficiently It is known as an NP-complete problem to find an optimal
and reliably perform cooperative computing in VANETs built schedule for the tasks represented in a DAG [14], [15]. Thus,
through V2V communication. In the cooperative computing, SCOCC is a heuristic method for performing reliable and
tasks of a vehicle are offloaded to other vehicles. The vehicle energy-efficient task offloading. To evaluate our heuristic
that requests task offloading is called client vehicle (CV), and in practical networks, we adopted the Veins simulator [16].
the vehicle that helps a CV is called worker vehicle (WV). The simulation results showed that SCOCC in a straight-road
The task offloading takes two steps: A CV finds some can- environment can reduce the probability of WVs going out of
didate WVs around itself and then distributes tasks to them CV’s range to just 1.7% from 15.8% of conventional static
according to the task execution schedule. The task offloading algorithms. Furthermore, the energy consumption for data
improves application running speed, but on the other hand, transfer is reduced by 69.5%.
it requires additional cost to transfer data. Minimizing both The contributions of this paper are as follows:
time and energy for data transfer is a key performance metric • SCOCC builds vehicular clouds that maintain stable
for a vehicular cloud. V2V connectivity despite vehicle mobility.
The latest vehicle network modules support both direct • Additional energy consumption for cooperative comput-
V2V communication using Dedicated Short Range Com- ing is minimized by reducing the average data transmis-
munication (DSRC) [11] or C-V2X mode4 [12]; and cellu- sion distance.
lar connectivity using LTE C-V2X [13]. The cellular-based • Performances are evaluated with DAGs based on real
connection can cover a wider range, but is expensive, so it applications in practical networks.
is more economical to transmit over V2V connections as
much as possible. However, V2V connections may not be Before moving on to the next section, we would like to
reliable because vehicles move fast. The distance between discuss why WV serves CV in V2V computation offloading.
two vehicles in a VANET continuously changes due to their First, we could expect voluntary involvement from all vehi-
different speed. Whereas the cellular communication can cles to achieve common goals such as smooth autonomous
reach several kilometers, the transmission range of the DSRC driving service. In fact, the Internet service also depends on
V2V communication is just from several hundred meters to the voluntary participation of all network equipment. Second,
1 km, so vehicles can easily be out of the range from each a platform can be devised in which WVs receive a reward
other. In this case, an attempt can be made to resume the for their services. Actually, we are developing a blockchain-
communication over the cellular network, but it increases cost based, tamper-proof credit system. The nonfungible token
and delay. Therefore, in order to improve VANET stability (NFT) might also be used as the credit. However, this paper
and minimize transmission cost, a CV needs to select WVs just assumes that all vehicles are willing to cooperate with
that are least likely to go out of communication range of others, since blockchain and NFT-based systems are beyond
the CV. the scope of this paper.
Another important factor in improving the efficiency of The rest of the paper is organized as follows. Section II
task offloading is task scheduling to find the best order to run introduces related work. In Section III, we define the sys-
tasks. The task scheduling determines the amount of data to tem model and analyze it with mathematical equations.
be transferred, the associated transfer cost, and eventually the Section IV describes our SCOCC heuristic algorithm, and
final completion time for all tasks. Most previous studies have Section V presents the simulation results, and Section VI
VOLUME 11, 2023 3859
M. Gong et al.: VC Forming and Task Scheduling for Energy-Efficient Cooperative Computing
The execution order of tasks that are assigned to a WV clouds, changes in task mapping cause more change in data
is already represented in a DAG. A predecessor must be transfer energy than task execution energy, assuming pro-
completed before a successor. The time when vj is available cessors in all vehicles consume similar power to execute an
for ti , since all vj ’s tasks with higher priorities than ti are instruction. This assumption makes sense, as electric vehicles
completed, is denoted by ATij . are likely to feature the best processors of their time, and
as is the case with processors for PCs and laptops these
ATij = max {xlj FTl } (6)
l∈{1,2,..,nt } days, these best processors are commonly produced by a few
manufacturers. As a result, the total Eexe is almost the same
The earliest start time when ti can run on vj , ESTij , is the
no matter where tasks are performed, thus this paper focuses
latter of LFTi and ATij .
on data transmission energy.
ESTij = max{LFTi , ATij } (7) To calculate the data transmission energy Etr , we adopt the
energy model in Liu’s study [33]. In the paper, the energy for
The earliest finish time of ti in vj , EFTij , is as follows: transferring M bytes between vj and vk is given as:
EFTij = ESTij + wij (8)
Eamp_jk = M × εfs × djk2 (13)
tri is the time it takes to transfer the result of ti from vj
to WVs having ti ’s i-successors, which can be obtained as
Here, εfs is the energy to transmit one byte in free space, and
follows.
djk is the distance between vj and vk . Thus, for all tasks in
Do (ti ) an application, Etr , the total energy needed to transmit result
tri = (9)
b data from vehicles performing predecessor tasks to vehicles
For ti to be executed in vj , all higher priority tasks must with successor tasks, can be computed as follows.
be completed, so ti ’s starting time, STi , should satisfy the X
following inequality. Etr = Eamp
X X XX
ATij ≤ STi (10) = εfs {Do (ti ) xij xlk djk2 } (14)
i tl ∈succ(ti ) j k
In order for appc to be completed before T , all tasks must
be completed before T .
where succ (ti ) is a set of ti ’s i-successors.
max {FTi } ≤ T (11) By default, data and result of cooperative computing are
i∈{1,2,..,nt }
transmitted through direct V2V communication. However,
The total energy Etotal consumed by vj for ti is the sum of at the time a WV finishes its task operation, it is often
the energy Eexe to perform the task ti and the energy Etr to out of the direct communication range of the vehicles that
transmit its results to vehicles with ti ’ i-successors. should receive the result. In this case, data is transmitted
through cellular networks. If pout is the probability that WV
Etotal = Eexe + Etr (12)
vj with ti is outside the direct communication range at the
In general, data transmission energy dominates total energy time ti is completed and ns (ti ) is the number of vehicles with
consumption in wireless networks. Likewise, in our vehicular i-successors of ti , the expected data transmission cost can be
FIGURE 4. Performance for Fast Fourier Transform (FFT) applications depending on various η values.
(
(2/3)(1/3)n−1 n = 1, 2, 3
P(n) = 3
. (19) Figs. 7∼9 compare the performances of four schedul-
(1/3) n=4
ing methods in the shallow and wide DAGs. First, Fig. 7
FIGURE 9. pout against the number of tasks in a DAG with depth = 3 and
FIGURE 10. Speedup against the number of tasks in a DAG with depth =
width = 4 ∼ 8.
6 and width = 3 ∼ 4.
FIGURE 18. Speedup for the FFT DAG against ccr. FIGURE 20. pout for the FFT DAG against ccr.
VI. DISCUSSION
We performed simulations on DAGs of randomly generated
DAGs, GE, and FFT to compare the proposed SCOCC with
HEFT, GBTSA, and a random scheduling. The simulation
results show that SCOCC can save data transfer energy by
70% compared to the other algorithms and reduce the propor-
tion of cooperating vehicles outside the V2V communication
range from each other by as much as 84%, although its
speedup improvement is 9% lower than the others. This result
proves the outstanding energy efficiency of SCOCC and the
FIGURE 19. Etr for the FFT DAG against ccr. high stability of VANETs built by SCOCC.
On the other hand, this study has clear limitations. The
larger the ccr, the lower the performance of cooperative
Fig. 18 shows Speedup for each algorithm against the computing. Additionally, as vehicle speed increases and
ccr. When the ccr was 0.2, the Speedup values for SCOCC, direction of movement becomes diversified, the stability of
GBTSA, and HEFT were 2.32, 2.31, and 2.27. Then when VANET clouds deteriorates. Also, SCOCC cannot maximize
the ccr was greater than 0.4, the four algorithms showed its advantages for DAGs with shallow depths. Therefore,
almost the same performance. When the ccr was 1.0, Speedup SCOCC may not be a good choice if the execution speed
approached 1. Therefore, there is no motivation to use task of shallow DAG applications is the top priority. Otherwise,
offloading. SCOCC is energy efficient and reliable with sufficient per-
Fig. 19, the energy consumption for transmission, formance improvements for most applications. The features
illustrates a similar pattern to that of GE. On average, a ran- of each algorithm are summarized in Table 8.
dom scheduling consumed the most energy, and the energy Lastly, SCOCC does not provide a specific MAC protocol
consumption of GBTSA increased sharply when ccr became that fits best for its operation. The cellular and DSRC/IEEE
0.6 or higher. The energy consumption of HEFT and SCOCC 802.11p MAC themselves provide error recovery using FEC
did not change much with the increase of ccr. SCOCC used and ACK mechanisms, but the 802.11p MAC cannot pre-
6.8 kJ on average for FFT, while it was just 3.8 kJ for GE. vent the hidden terminal problem, which can deteriorate the
This is because the communication overhead increased with proposed method performance. We will extend the proposed
the increased number of edges. method by adding a MAC like Enhanced Distributed Channel
Lastly, Fig. 20 depicts pout for the FFT application. Over- Access (EDCA) to reduce the offloading failure probability in
all, pout of all the other algorithms was high around 0.15, but future work. Also, the advanced SCOCC will be tested on a
SCOCC achieved very low probabilities of less than 0.04 for variety of road topologies in addition to the Manhattan Street
all ccr. network.
MINYEONG GONG received the B.S. degree in SANGHYUN AHN (Member, IEEE) received
electrical and computer engineering from the Uni- the B.S. and M.S. degrees in computer engi-
versity of Seoul, South Korea, in 2016, where he neering from Seoul National University, Seoul,
is currently pursuing the Ph.D. degree in electri- South Korea, in 1986 and 1988, respectively, and
cal and computer engineering. His research inter- the Ph.D. degree in computer science from the
ests include vehicle networks, the IoT, and cloud University of Minnesota, in 1993.
computing. She is currently a Professor with the Department
of Computer Science and Engineering, University
of Seoul, Seoul. Her research interests include
wireless ad hoc, sensor and vehicular networks,
internet protocols, routing protocols, and the IoT.