Jios 1226
Jios 1226
Y. Nasir Ahmed *
S. Pakkir Mohideen †
Department of Computer Applications
B. S. Abdur Rahman Crescent Institute of Science and Technology
Vandalur, Chennai
Tamil Nadu 600048
India
Mohammad Pasha §
Department of Information Technology
Muffakham Jah College of Engineering and Technology
Hyderabad
Telangana (TS) 500034
India
Abstract
Cloud-Fog IoT networking is a resourceful technology to aid the processing of IoT end
device requests. These devices generate tasks that need optimized computing and reduced
latency for applications that operate in real-time environments. This article sets forth a cloud-
fog task scheduler that schedules diverse tasks on vertically scaled Cloud and Fog virtual
machines. For the proposed Binary Particle Swarm Optimizer (BPSO) based scheduler, an
apt choice identified is to employ a modified sigmoid function with the logarithm decreasing
inertia weight policy to deliver an optimal scheduling scheme. Moreover, the parameters of
the BPSO are tuned inferring the best practices prescribed in literature. The results show that
proposed method caters better than existing heuristic techniques to improve makespan and
load imbalance.
©
1024 Y. N. AHMED, S. P. MOHIDEEN AND M. PASHA
1. Introduction
The type and amount of IoT tasks generated change dynamically and
the interactions are far from being predictable. Cloud services provided
users with virtual servers through virtual machines (VMs). Over the years
to cut costs, the demand for these costly energy-mongering virtual servers
has transformed into calls for cheap energy-saving, narrow function-based
modules or micro-services [1]. The idea of moving the micro-services to
the edge devices helps and complements the vision of green computing.
This further supplement the needs arising from real-time or near real-time
applications that have emerged due to the connectivity boom as part of a
growing need for a smart-eco system [2].
As the number of these diverse tasks (compute-intensive and low
latency) increase so will be the number of VM requests. Thus, vertical
scaling of VMs to handle these requests efficiently is needed. This forms
the problem of scheduling a large group of diverse tasks on an array of
heterogeneous VMs. Further the time taken to evaluate the best (task,
VM) pair upsurges rapidly. For such mapping problems, evolutionary
computational algorithms can attain optimal or near-optimal resolutions
in a viable time. Hence these are part of the selected choice for such
computationally hard (NP-hard) problems [3].
In this research, a meta-heuristic task scheduler namely Binary PSO-
based scheduler [4] with improved load balancing strategies (namely
IBPSO and MIBPSO) is proposed to optimize makespan and reduce load
imbalance. The experimented heuristics are implemented to evaluate the
task assignment and scheduling methods in cloud and fog computing
environments.
The subsequent sections of the present work are organized as follows:
in Section 2, a summary of related works in heuristic task scheduling
algorithms. Section 3 briefs the scheduling problem and its formulation
with respect to BPSO and improvised algorithms. Section 4 presents the
Simulation setup and various scenarios implemented for cloud and fog
environments. The penultimate Section 5 presents the analyses of results
and observations. To conclude, Section 6 covers-up the theme of the work.
2. Related Works
The time sensitive services deployed on the cloud computing requires
fastest turnaround time from the datacenter to IoT device and vice versa
and has been attained by the fog computing paradigm [1].The proposed
CLOUD-FOG COMPUTING USING WITH MODIFIED SIGMOID FUNCTION1025
fog-cloud system has enabled critical heart beat tasks medical applications
to collect and analyze so that overall cost may be reduced subsequently
[4]. Particle Swarm Optimization is projected as optimal solution towards
scheduling workflows for scientific and also the web applications [5].
Recommended multi-objective task-scheduling problem which optimizes
the two parameters in fog-cloud system first is the makespan and the
second is total costs [6]. Maximum usage of fog computing by subsequent
decrease in response time and also decreasing the cost towards cloud
compute resources is addressed [7].
Network delay, cost, processing time are offered in this paper to
address and meet the deadline of the deployed resources on fog-cloud
setting [8]. Classifier method is used to impart the workloads with respect
to power consumption and delays at the edge of the networks in fog-cloud
systems [9]. Task imbalance at fog nodes is addressed by implementing two
algorithms and colony and particle swarm optimization [10]. Effective and
managed energy consumption is attained by even distribution of tasks at
the nodes in fog-cloud system which gives reduced latency and increased
quality of service [11]. Usage of Harris Hawks’s optimization algorithm
enhanced the quality of service for Industrial IoT and fog computing
users through cloud computing [12]. Heuristic approach to place various
applications on the fog-cloud system to acquire the low latency and low
energy consumption. [13]. Heuristic task scheduling which is of three
staged is recommended and attained the best results towards performance
in defined service level agreements [14].
Computational nodes received many healthcare tasks to both cloud
and fog devices in order to reduce the schedule time in-turn usage of
task features, thus attaining maximum mobility [15]. Maximum profit is
offered at the integrated fog-cloud system by applying profit enhancement
algorithm to the smart systems [16]. A cost effective blockchain based fog
cloud is proposed to enhance the visibility of the patient’s health problems
and reduces their charges as the processing is done in the system [17].
Fig. 3.1
Architectural Elements of Cloud-Fog Computing
Table 1.1
Symbols used in the problem formulation and implementation.
Tl Tfs
R(Ti , VMj )
= + Equation (1)
(VMnpe∗ VMmips) VMbw
1 1
P{i , j} =
0 ⇔
= < r{i , j}
(1+ exp(− V { i , j })) (1+ exp(− V { i , j }))
1
1 ⇔
= ≥ r{i , j} Equation (6)
(1+ exp(− V {i , j }))
The update of local best particle position is compared for all particles
from the current iteration. As shown in Fig.3.2, we modified the sigmoid
function to reflect on the cognitive/local coefficient and social/global
coefficients. Following this, the global best particle positions are obtained
by comparison across all iterations. The VMs for which the position
values are set are selected for allocation of tasks. To enhance the solutions
CLOUD-FOG COMPUTING USING WITH MODIFIED SIGMOID FUNCTION1029
Fig. 3.2
Modified Sigmoid Functions used to reflect on the cognitive/local coefficient
and social/global coefficients of BPSO.
4. Experimental Setup
The Experiments were carried on a PC with Intel Core i7-3770 CPU,
3.9 GHz, Memory 16 GB, Cloudsim 3.0 simulator on Windows OS.
The Virtual Machine configuration of Cloud (CVM) and Fog (FVM) nodes
is as follows
x1= CVM , 9k ≤ pp(x1) ≤ 10 k , 1k ≤ bw(x1) ≤ 2k ;
x 2= FVM , 1k ≤ pp(x 2) ≤ 2k , 9k ≤ bw(x 2) ≤ 10 k
with pp(x) is in MIPS, bw(x) is in MBps units. The Task configuration for
Cloud (CT, CW) and Fog (FT, FW) is
cb = CT , 9k ≤ ts(cb) ≤ 2k , 1k ≤ fs(cb) ≤ 2k ;
fb = FT , 1k ≤ ts( fb) ≤ 2k 9k ≤ fs( fb) ≤ 10 k ;
cw = CT , 9k ≤ ts(cw) ≤ 2k 9k ≤ fs(cw) ≤ 10 k ;
fw = FT , 9k ≤ ts( fw) ≤ 2k , 9k ≤ fs( fw) ≤ 10 k
with ts(x) defined in MI, fs(x) is in Bytes. Table 4.1 presents BPSO and
Modified sigmoid transformation parameters used in experiments.
1030 Y. N. AHMED, S. P. MOHIDEEN AND M. PASHA
Table 4.1
The BPSO parameters and their corresponding values
1
MBPSO-1 10 100 2.2, 2.2 -0.434
(1+ exp(2.2073− V {i , j }))
1
MBPSO-2
2.2073 + exp( 2.2073− V {i , j }) 10 100 -2.2, 2.2 -0.434
( )
Fig. 5.1
Makespan comparison for implemented algorithms with varying Task and
VM Count in Cloud and Fog scenarios
CLOUD-FOG COMPUTING USING WITH MODIFIED SIGMOID FUNCTION1031
Fig. 5.2
Degree of Imbalance comparison for implemented algorithms with varying
Task and VM Count in Cloud and Fog scenarios
varying Task and VM count. Top row plots depict Cloud task scheduling
for 10, 25 and 50 VM count (let-center--right) whereas bottom row is for Fog
task scheduling similarly. With the increase in VM count, the makespan of
all scheduling algorithms decreases when load balancing is applied. The
reason is that, at VM count 10, the tasks starting from task 11 are mapped
to VMs that are already allocated. The number of free VMs increases for a
given set of tasks as the VM count increases. Moreover, it can be seen that
the MBPSO outperforms BPSO producing nearly 50% lesser makespan for
the same set of tasks and VMs. The improved versions IBPSO, MIBPSO
further improve makespan to 80% or more.
Fig. 5.2 plots the degree of load imbalance on VMs produced by
various algorithms in a Cloud and Fog scenarios. Top row plots depict
Cloud task scheduling for 10, 25 and 50 VMs respectively, whereas bottom
row is for Fog task scheduling. Load imbalance increases with the increase
in VM count. The degree of imbalance is reduced with IBPSO and MIBPSO
algorithms due to application of rebalancing the solution obtained by
BPSO and MBPSO algorithms.
6. Conclusion
This article presented implementation of Discrete Binary PSO and
Modified Discrete Binary PSO algorithms to address efficient task
1032 Y. N. AHMED, S. P. MOHIDEEN AND M. PASHA
References