Abstract
Vehicular Fog Computing (VFC) is a natural extension of Fog Computing (FC) in Intelligent Transportation Systems (ITS). It is an emerging computing model that leverages latency aware and energy aware application deployment in ITS. However, due to heterogeneity, scale and dynamicity of vehicular networks (VN), deployment of VFC is a challenging task. In this paper, we propose a multi-objective optimization model towards minimizing the response time and energy consumption of VFC applications. Using the concepts of probability and queuing theory, we propose an efficient offloading scheme for the fog computing nodes (FCN) used in VFC architecture. The optimization model is then solved using a modified differential evolution (MDE) algorithm. Extensive experimentations performed on real-world vehicular trace of Shenzhen, reveals the superiority of proposed VFC framework over generic cloud platforms.
Introduction
An Intelligent Transportation System (ITS) is a pervasive network of densely populated energy and resource-constrained devices and vehicles, all capable of gathering and transferring huge volumes of heterogeneous data in real-time. However, due to the Computing-Bandwidth-Energy (CBE) restrictions of the cellular network, a system of this complexity is practically unfeasible [1]. Through the notion of Internet of Things (IoT), the future internet is bringing the ITS devices and applications connected to the internet [2]. By blending the vehicles and roadside infrastructures viz. Roadside Units (RSU), On-board Units (OBU), access points (AP) and base stations (BS), etc, into the internet, they become smart, with the ability to react and make decisions on their own [8]. Internet of Vehicles (IoV) is an extension of IoT technology in Vehicular Networks (VN), i.e. those smart ‘things’ being connected over internet are restricted to only vehicles. Through the use of modern electronics and integration of the information, IoV helps to maintain traffic flow, performs more effective fleet management and accident avoidance, etc. In fact, one of the key objective of IoV is to achieve the vision of ‘from Smart phone to Smart car’ [5].
As majority of Smart City (SC) architectures are being proposed to modernize the existing city infrastructures, several challenges may arise [4]. For instance, some devices may be old, some are new, and all of them need to communicate with different protocols. Handling such diverse range of physical as well as logical infrastructures will give rise to compatibility and interoperability issues. For many ITS applications such as traffic congestion management, autonomous driving, collision avoidance, etc, latency can be a critical issue when real-time decisions are to be made [3]. With vehicles and IoV devices generating and recording data in real time, every second or minute, the amount of data can be massive. When multiplied by hundreds of vehicles and devices across multiple traffic zones, the amount of data can be too huge for the network to handle when it finally reaches the cloud data center. Consequently, employing too many servers and machines for handling those computing requests means exorbitant customization costs and carbon footprint [6, 26]. The de facto Cloud Computing (CC) model, though have virtually unlimited resource pooling capabilities, it ceases to welcome its proponents because of its failure in building a common and multipurpose platform that can provide feasible solutions to the mission critical ITS requirements [7, 11].
Vehicular Fog Computing (VFC) is a parallel and distributed computing model where storage and computing resources are installed on the intermediary VN intersections, network switches, RSUs, sensors and gateways [9, 17]. Specifically, the VFC is a natural extension of Fog Computing (FC) in VN, where the key goal of FC is to alleviate the connectivity, bandwidth and latency issues prevalent in CC [18, 20]. The notion is to allow machines and vehicles to speak directly to each other without traversing the cloud, by connecting machines, devices and sensors directly to each other (at only one or few steps). Another objective of FC based ITS platforms is to standardize and ensure secure communication between all VN entities, old and new, across all traffic zones, so that customization and service costs are kept to a minimum. Both these platforms complement each other to form a mutually assistive and inter-dependent service continuum between the remote cloud and the ITS point of attachments (PoA), in order to make computing, storage, control, and networking services possible anywhere along the continuum [10, 23].
Due to the decentralized and heterogeneous nature of vehicular networks, the scale of FCN infrastructure, the complex structure of CDCs, the heterogeneity of resource types and their interdependencies, the variability and unpredictability of the vehicular workload, workload allocation in VFC is a complex task [22]. In the context of VFC, workload allocation the process of allocating SCN and energy resources (indirectly) to a set of applications/services, such that the performance objectives of the ITS applications, network operators, the service providers and the vehicle users are satisfied [24, 25]. The objective is also to efficiently use the available resources (e.g. VM) towards meeting the Service Level Agreements (SLAs) and associated constraints in a multi-user environment. Besides, the workload scheduling algorithms are primarily focused to improve the applications’ performance, their availability, cost-effective scaling of available resources in accordance with dynamic application demands [27]. Simultaneously, the algorithms must also meet non-functional requirements such as security, regulation and trust, etc.
Motivated by this, in this paper, we present a intuition based general framework to investigate the feasibility of VFC architectures. The key contribution of this paper are as follows: We provide a multi-objective optimization (MOO) model for minimizing the delay and energy consumption of VFC architecture and perform a comparative study of response time and power consumption with respect to generic CC framework. Using the concepts of probability and queuing theory, we thoroughly examine the offloading and computation profiles of different computing elements in a VFC system. We solve the proposed MOO framework using a Modified Differential Evolution (MDE) algorithm. We provide extensive simulation studies on real-world vehicular traces of Snenzhen, China, in order to demonstrate the feasibility of the VFC scheme over generic cloud based ITS architectures.
Networking and system model
In a cloud computing model, the Cloud Data Center (CDC) provides sharable resource pool available for on-demand use [16]. Since the CDCs are far away from the data generation sites, data migration and service latencies will be intolerable for real-time and interactive ITS applications. However, in VFC architecture, low/battery powered FCNs are deployed at the dedicated edges of the network to offer store, compute and networking support for ITS applications, offering real-time response and geo-distributed intelligence [19]. Figure 1 shows a general framework for a VFC (Vehicle-Fog-Cloud) architecture considered in this work. There are three layers in this architecture. The lowermost physical layer comprises of vehicles, passenger devices (PDs), Intelligent Traffic Lights (ITL), Vehicular Sensor networks (VSN) etc. For sake of simplicity but without loss of generality we will use only vehicle to represent a physical layer entity. Fog computing nodes (FCNs) such as switches, routers, micro-servers, etc, are deployed in middle FC layer whereas high performance cloud servers are located in CC layer.

Offloading Policy in proposed VFC.
Consider a VFC framework where data and computation are selectively offloaded to either cloud or fog layer depending on the ITS application specific logic. Without loss of generality, let us assume the sets C, F, and N represents the set of CDCs, FCNs and number of consumers. The cardinality of each these sets are
Each time a workload is generated by the vehicle, it can either processed locally by vehicle OBU, offload it to FC layer or offload to CC layer. The FCNs in turn may process the workload, forward to other FCNs, or dispatch to CC servers. Thus, the response time τ v for vehicle v can be expressed as:
We denote the computing capability of vehicle v as
Since delay term
The net power consumption term in a typical VFC model involves energy
Similarly, if each data center is assumed to host homogenous computing elements (machines) of identical CPU frequency η
c
, the power consumption component
Each time a request if presented to FCN f, it computes the estimated processing time
Define variable
Having defined the inter-fog communication strategy and the FCN’s acceptance probability π
f
, we are in a position to explain the terms involved in Equation (7). The first delay term
The binary variable
In case, the number of hops exceeds the maximum allowable hops for the virtual FCN cluster z i.e. t ≤ t
z
, the request will be dropped by all FCNs and thus dispatched to cloud. Here, the request incurs FCN-cloud propagation and transmission delay terms
In order to evaluate the average computing delay of CC layer, we model each cloud server c as an M/M/∞ queue with arrival rate
Therefore, the average service delay for vehicle v can be given as:
Since workload arrival rate
An FCN may host numerous VM for executing tasks generated from both physical layer as well as FC layer. Thus, the incoming traffic r
f
for FCN f can be given as:
In order to evaluate equations for r
fi
in (30), we need to solve the following system of equations.
If fog node f cannot accept a task sent from vehicle v, it will be offloaded for the first time to FCN f’s best neighbour, according to (31). Other Equations(32-33) can be evaluated similarly. In general, if a k-hop request is rejected by FCN f, then it will be offloaded for (k + 1)
th
hop to the f’s best neighbor. Finally, if a request has already made t
z
hops, and is not accepted by fog nodej, it will be offloaded to the cloud. Thus,
Once the workload for FC is obtained, we can also obtain the workload for the CC layer. It can be observed from Fig. 1 that the incoming traffic to the cloud servers are both from physical layer nodes and as well as from FC layer. Thus using the same strategy as in Equation (29), we can obtain the workload for cloud server c as:
where G-1 (c) and H-1 (c) are the mapping functions that represents the set of vehicles and set of FCNs that offload their workload to cloud server c respectively.
Our objective will be to find the energy consumption-service delay trade-off in both generic cloud based as well fog based computational model. In other words, the aggregated power consumption of vehicles, FCNs and cloud servers are to be minimized by ensuring that the average response time of vehicular request is less than a given threshold
It can be seen that the formulated optimization model is a multistage, discrete, non-convex, constrained mixed-integer non-linear programming problem (MINLP). Usually classical mathematical programming techniques fail to provide tractable solutions to such problems. Evolutionary optimization algorithms specifically meta-heuristic methods such as differential evolution (DE) provide promising approach to solve an MINLP. DE is a population-based evolutionary multi-objective optimization (EMO) method which had proven to be very simple yet powerful to solve minimization problems with nonlinear and multi-modal objective functions. It differs from conventional EMO in that instead of having a predefined probability distribution function (pdf) for mutation process, it utilizes the differences of randomly sampled pairs of objective vectors for its mutation process. In other words, the initial value of the j
th
parameter in the i
th
individual at the generation is generated by:
However, it is worth noting that the optimization capability of DE depends extensively on the diversity between vectors. It may lead to a high possibility of obtaining a local optimal solution if the diversity of the population descends too fast during evolutionary process [13]. In order to handle this, in selection process, we employed a modified version of differential evolution with a fitness sharing function of niche radius (ρ), that reduces the fitness of similar offspring’s. Here, the individuals lying in same group will share the corresponding fitness value and in the selection operation, clusters having larger fitness sharing value will be selected for producing the next generation off springs. The fitness sharing function is given by:
Since during selection process, individuals with large fitness survive and used for mutation or recombination purpose,thus if any individual with large fitness survive during selection process, the shared fitness is simply calculated by:
As shown in Fig. 2, an offloading strategy V f for all the vehicular workload uploaded from each RSU to either FC layer or CC layer is encoded by a chromosome C p . Each gene in the chromosome represents the FCN or cloud server to which the workload is offloaded. If FCN f is assigned the task from v th vehicle, the value of gene at v th position will be f. Other settings for MDE is given in Table 1. The complete description of MDE based offloading strategy is given in Algorithm 1.

Proposed encoding strategy for computation offloading.
MDE parameter settings
In order to demonstrate the feasibility of the proposed VFC model, in this subsection we provide some preliminary results according to real-world traces of Taxies and Buses in Shenzhen, China, generated by Project-Shenzhen Smart City Initiative [15]. Shenzhen has nearly 12 million population, and its size is about 2050 sq. Km. We conduct a comprehensive comparative study on mobility patterns of two heterogeneous transportation fleets consisting of over 13 thousand buses and 14 thousand taxi-cabs, to identify their real-world features. The attribute description of each vehicle in the dataset is given in Table 3. A candidate RSU is assumed to be installed across the highways with range of 1Km2 across major road segments in Shenzhen. The arrival rate for moving vehicles is compiled every 15 minutes within the range of 500 m of each RSU. By analyzing the arrival rate of moving vehicles in the dataset, we notice that the average number of vehicles is between 100 and 500 per second with an RSU. The other network parameters are given in Table 4.
Offloading Probabilities and corresponding operation modes
Offloading Probabilities and corresponding operation modes
Fleet description in Shenzhen, China [15], (Date of data collection: 2013-10-22)
Parameter specifications
Variation of delay-power consumption with varying workload
In order to analyze the performance of proposed offloading strategy, we define four modes of computation, based on the value of

Delay-Power consumption with varying workload for generic cloud model.
In Fig. 4(a) and (b) we respectively summarize the variation of delay and power consumption for all four cases at a glance. It can be seen that the delay is least for Case 4 (green bars) in Fig. 4(a). It is due to the physical proximity of FCNs where most of the workload is processed, thereby saving the vehicle-to-cloud WAN bandwidth. Similar trend follows from power consumption as in fog assisted systems (case 4) avoids excessive energy dissipation in high frequency cloud servers, insted it uses the locally hosted commodity servers (i.e. FCNs) where energy dissepation rate is substantially lower (refer to Equations (15) and (18)).

(a): Delay comparison for four cases (b): Comparison of power consumption for four cases.
In this paper, we present a multi-objective optimization (MOO) analytical framework for minimizing the response time and power consumption in VFC architecture. The vision of VFC is studied in this paper as a complement to cloud computing and an essential ingredient of the ITS infrastrctures. We used the concepts of probability and queuing theory to introduce a model for handling vehicular workload across various layers of VFC architecture. By solving the MOO model with an evolutionary MDE algorithm, we showed how our delay-minimizing fog offloading policy can be beneficial for the mission critical ITS applications. Extensive numerical results for a benchmark real world vehicular trace are presented to demonstrate the efficiacy of proposed VFC framework.
