Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Journal of Ambient Intelligence and Humanized Computing

https://doi.org/10.1007/s12652-019-01655-x

ORIGINAL RESEARCH

Performance analysis of nature inspired load balancing algorithm


in cloud environment
V. Arulkumar1 · N. Bhalaji1

Received: 8 September 2019 / Accepted: 16 December 2019


© Springer-Verlag GmbH Germany, part of Springer Nature 2020

Abstract
Cloud computing has emerged as a new technology which allows the users to store their data and retrieve it over internet on
demand instead of using their own hardware. Cloud works with different data centers (DCs) (server) and user bases (UBs)
(clients). One of the main challenges which requires focus in the cloud computing is task scheduling. In task scheduling the
cloud should have the capability of managing the incoming load to achieve the better performance by allocating suitable
resources as per the user request. The performance of the cloud can be further increased by selecting suitable DC which is
closer to the UB. This article measures the performance analysis of various nature inspired load balancing algorithms to
identify total response time (TRT) and data center processing time (DCPT) in cloud environment. The simulation is carried
out using cloud analyst tool which is an extension of cloudsim and the results obtained which indicates water wave algorithm
performs better in terms of TRT and particle swarm optimization scores well in the aspect of DCPT for varying different
number of DCs and UBs.

Keywords Cloud computing · Task scheduling · Nature inspired algorithms · Cloud analyst

1 Introduction tasks to various VMs may result in few VMs getting over
loaded and others being underutilized. This is carried out
Cloud computing works on the basis of request to access by different load balancing algorithms inherited from vari-
system resources such as data storage and computing power ous literatures. A requirement for improvement of resource
without direct supervision from the clients. Cloud comput- provisioning and adjusting the heap among various VMs
ing offers multiple facilities such as infrastructure, platform, visualized. The resource scheduling algorithms are generally
software and business process as a services to the clients. classified into two categories as (1) static methodology, (2)
Cloud services are offered as pay-per-use services. Gener- dynamic methodology. Static methodology expects earlier
ally users would expect a certain acceptable quality of ser- information about the structure and different parameters of
vice (QOS). The cloud service providers store the data (or) the framework, for example, correspondence time, memory,
information in many cloud servers or data centers (DCs). As system nodes processing, limits on storage device etc. Round
and when the users request the cloud providers for services, robin (RR) algorithm is an example for static methodology.
the requested tasks are assigned to different servers, with Static strategies are based on earlier knowledge and they
the help of virtual machines (VM). Different user tasks are do not have the information about the present condition of
assigned to different VMs. In a distributed computing, VMs the framework. So it may lead to circumstances of uneven
are facilitated and all the incoming workload is adjusted dissemination of load, particularly when the framework
among the different VMs. Many times the assignment of changes into dynamic environment (Chen et al. 2017).
Dynamic techniques have the ability to manage the dynamic
* V. Arulkumar load conditions as they know about the framework status as
arulkumarv@ssn.edu.in and when the progression occur. The request from the user
N. Bhalaji can be easily managed with dynamic procedures. Though
bhalajin@ssn.edu.in dynamic algorithms work better when compared to static
algorithms, it is difficult to design and develop an algorithm
1
Department of Information Technology, SSN College for dynamic cloud environment (Patel et al. 2016).
of Engineering, Kalavakkam, Tamilnadu, India

13
Vol.:(0123456789)
V. Arulkumar, N. Bhalaji

Dynamic resource scheduling systems are classified into TSPBRR provides better solution with high throughput and
off-line mode and on-line mode calculations. In off-line better response time.
mode, the undertaking task is taken up at some pre-char- Ghanbari and Othman (2012) presented a load balanc-
acterized times. These occasions are chosen depending on ing algorithm for priority based task scheduling in cloud
the conceivable finishing time of larger tasks. This mode by following the concept of analytical hierarchy process
can likewise be called batch mode as the planning is com- (AHP). The flow of algorithm developed with three levels
pleted in groups. In the case of on-line mode, the workload of prioritization such as scheduling level, resource level and
is distributed as and when the tasks begun to arrive. This job level. The drawback of this work was system complex-
article discus above mentioned load balancing algorithms. ity, inconsistency and consumption time. Ru and Keung
The balancing of the load is the main objective of any load (2013) presented the ideas of grouping of tasks, arrange-
balancing algorithm. However, there are some parameters ment of awareness about the bandwidth requirements for
such as turnaround time, response time which need to be allotted load balancing algorithm and shortest path first. The
considered when designing any algorithms. Though the algorithm is developed by considering Gaussian distribu-
main aim of the algorithms is having balanced distribution tion for workloads and random distribution for resources.
of the load, researchers are also interested in having opti- The simulation results proved that the algorithm provided
mized values of other parameters (Zheng 2015). Nature has an improvement of 30% increase in processing time, wait-
inspired many methods of solving such complex problems. ing time and makespan compared to earlier algorithms with
Nature Inspired load balancing algorithm is developed from maximum resource utilization and minimum overhead. The
observations of nature such as behavior of ant, swarm intel- main drawback of heterogeneous earliest finish time (HEFT)
ligence and genetic characteristics. The optimization algo- algorithm is its inefficiency for suitable task assignment.
rithms based on these concepts are known as ant colony Dubey et al. (2018) presented a new modified HEFT algo-
optimization (ACO) algorithm, particle swarm optimization rithm to overcome the drawbacks of HEFT. It works in two
(PSO) algorithm and genetic algorithm (GA). The objective steps to assign the incoming task between different resources
of this work is to simulate above mentioned nature inspired which reduce the makespan.
algorithms to measure total response time (TRT) and date Li et al. (2014) presented elastic cloud max–min
center processing time (DCPT) using cloud analyst tool. (ECMM) algorithm with effective improvements in sim-
This rest of the article is organized as follows. Section 2 ple max–min algorithm. This algorithm retains a table
gives a brief review carried over different resource schedul- with status of all tasks. It finds the current task for each
ing algorithm. Section 3 describes different nature inspired VM and also the expected time for the completion of each
load balancing algorithm such as the GA, ACO, PSO and task. The table information will be used when assigning
water wave algorithm (WWA) (Arulkumar and Bhalaji 2019; different tasks for different resources. This algorithm is
Bottani et al. 2016). Section 4 presents the comparative simulated using cloudsim and the results concluded that
result analysis of nature inspired algorithms. Section 5 con- ECMM provided better improvement in task pending time
cludes the work with remarks on possible future enhance- compared with max–min and RR algorithms but consume
ment (Lakshminarasimman et al. 2017). more time as compared to max–min algorithm. Kokila-
vani and Amalarethinam (2011) presented a two-stage
approach for allotting all meta-task (MT) of remaining
2 Literature survey incoming loads to the resources. This min–min algorithm
is a simple and speedy algorithm. In the first stage, all the
There are many studies on the analyses of different algo- individual tasks are taken and its minimum expected time
rithms and cloud simulation software discussing the rela- for completion was calculated. In the second stage, it took
tive merits of different options (Singh et al. 2016; Altayeb the workload with minimum expected completion time
and Mustafa 2016). These literatures deal with the heuristic and assigns this to corresponding resources. The proce-
algorithms and nature inspired algorithms (Wickremasinghe dures are repeated till the completion of all workload. It
et al. 2010; Said 2016) apart from analyzing the benefits of provided better throughput and response time and also
using cloud analyst for studying the different algorithms. maximized the resource utilization but with high commu-
Samal and Mishra (2013) compared the different vari- nication overhead. While this approach produces higher
ations of RR algorithm such as RR, modified round robin communication overhead, a minor modification was done
(MRR) and time slice priority based round robin (TSP- in min–min algorithm by Chauhan and Joshi (2010). In
BRR). These methodologies are compared in terms of this method, the incoming workload with the maximum
different parameters such as throughput, turnaround time, expected time for completion is assigned first to available
waiting time and response time. The results concluded that resources. Shah et al. (2007) discusses the use of adaptive

13
Performance analysis of nature inspired load balancing algorithm in cloud environment

decentralized algorithm for distribution of load in grid 3.2 Ant colony optimization (ACO)
environment. They claim that their approach offers best
results since their approach is adaptive. Ant colony optimization follows from the natural behavior
There are some algor ithms based on natural of ants while they search for their food. The ants usually will
approaches. LD and Krishna (2013) proposed a load leave a pheromone through trails when they search for their
balancing algorithm inspired by the behavior of honey food. Once an ant finds the food source, it will take the food
bees. They claim their approach offered better results as and the ant will leave pheromone on its returning path also.
compared to other existing algorithms. Kumar and Kaur So the path with highest pheromone will be considered as
(2015) proposed an algorithm based on enhanced GA that a shortest path by the remaining ants to collect their food.
offers balancing of the entire load across the cloud and It is assumed that the food source is like a cloud server and
also ensures minimized makespan. Dasgupta et al. (2013) the ants are providing the solution. The concentration of
found that load balancing algorithm based on GA offered pheromone in each path provides the quality of solution.
better performance as compared to other heuristic algo-
rithms. Jang et al. (2012) discussed their task scheduling 3.3 Particle swarm optimization (PSO)
algorithm based on GA. They claimed that their algo-
rithm is more effective and more efficient as compared to Particle swarm optimization follows the natural behavior of
some of the then existing algorithms. Lu and Gu (2011) birds flocking and it is developed in 1995 by Kennedy and
presented a load balancing algorithm based on ACO that Ederhart. Usually the birds will flock when they find their
ensures improvement in the efficiency of the utilization food in a place. This nature behavior of birds is used in cloud
of resources across the cloud. Li and Wu (2019) proposed to find the optimal VM to handle the workload. It is assumed
load balancing ant colony optimization (LBACO) algo- that the bird fly in the cloud space and their natural behavior
rithm and found that it offers better load balance coupled of flocking while getting their food finds the best solution for
with better makespan. Nishant et al. (2012) have shown getting the VM to handle the workload. Each task finds its
that their load balancing algorithm based on ACO per- local best (Lbest) VM and also keeps the information about
forms better even during peak-hour operations. Ramezani global best (Gbest) VM and the suitable shortest path iden-
et al. (2014) proposed a task scheduling algorithm based tified by the task at that time. The tasks are assigned with
on PSO. This algorithm transfers only tasks from over- their position and velocity with which they travel through
loaded VMs and it was able to balance the load faster a multi-dimensional cloud space (Naseri and Navimipour
ensuring the QOS to their customers. 2019). In every iteration, the task adjusts its velocity based
on its optimal position and position of best task in the total
incoming task. The optimum position of task (allotment of
task to VM) is determined from Lbest and Gbest. The itera-
3 Nature inspired load balancing algorithms tions will continue till a global solution is found.

3.1 Genetic algorithm (GA) 3.4 Water wave algorithm (WWA)

Genetic algorithm follows the natural behavior of travel- Water wave algorithm follows the natural behavior of water
ling chromosomes from one generation to another genera- wave flow and it is based on shallow wave theory. The algo-
tion and it is developed in 1960 by Holland. Initially the rithm was initially developed to schedule high speed trains.
algorithm randomly generates population which consists But later it is framed to provide solution to many engineer-
of separate solution to the problem called chromosomes ing optimization problem in real world. Consider a seabed
and develops this population after various iterations region X and let us assume that one is keen on finding the
called generation. The chromosomes are developed using streamlining to a capacity f inside a solution space X. The
some standard measures in successive iterations. The next function f varies at any point x inversely as the seabed depth
generation will be developed by new chromosomes which at that point. It means for small values of seabed depth the
are created either by merging two chromosomes using fitness of function f(x) will be larger at that point. The opti-
crossover function or by modifying a chromosome using mum solution point is xεX. This 3D seabed space is devel-
a mutation function. Once a new generation is created, the oped to m dimensional space for optimization problem. In
population will be maintained constant either by neglect- this algorithm, a wave with specific height and wavelength
ing a parent or an offspring. The chromosome with high is assumed and three possible activities are considered from
probability will be selected. This continues till a best shallow wave theory particularly propagation, refraction
global chromosome is obtained to solve the problem. and breaking to find a suitable solution for the optimization
problem.

13
V. Arulkumar, N. Bhalaji

Table 3  DC configuration deployed


Data center # VM Image size Memory BW

DC1 5 10,000 512 1000


DC2 4 10,000 512 1000
DC3 5 10,000 512 1000
DC4 6 10,000 512 1000
DC5 8 10,000 512 1000

hours to be at 3 h greenwich mean time (GMT) and the


Fig. 1  Domain view of cloud analyst end of peak hour to be at 9 h GMT. The assumptions for
routing policy is service proximity based routing (closest
4 Performance measures and discussions data center).

4.1 Cloud analyst: overview 4.2.1 Configuration of data center

Cloud analyst is an extended version of cloudsim tool The simulation is carried out with varying DC i.e. 5, 10, 15
with GUI enabled. It consists of three components namely and 20. The DCs are allotted in different regions with their
DC, user base (UB) and internet (IR). Figure 1 depicts the cost per VM, memory cost, storage cost, data transfer cost
domain view of cloud analyst. It supports simulation of DC and physical hardware units. A sample of 5 DC configura-
deployment, UB availability and how the tasks have been tions is shown in Table 1.
assigned to respective DC with varying cost. This tool helps
to manage effective load balancing on numerous UBs with 4.2.2 Physical hardware details
corresponding DC and internet (Shetty and Shetty 2019).
The details of physical hardware available in the DC such
4.2 Simulation Setup as memory, storage capacity, available bandwidth, number
of processors and processing speed are configured as shown
Nature inspired load balancing algorithms are simulated in Table 2.
using cloud analyst tool by considering varying DCs and
UB which are assumed to be located in different regions 4.2.3 DC deployment configuration
having varying number of VMs in every DC. Average
peak users and average off-peak users are assumed to be The DC is configured as shown in Table 3. One among
1000 and 100 , respectively. The load is assumed to be 60 the scenarios of the optimization has 5 DC deployed with
requests per hour/per user and each request mention trans- varying range of VMs and with fixed range of memory and
fer of 100 bytes. Assumption made for the start of peak bandwidth.

Table 1  Data center Name Region Arch OS VMM Cost per Memory Storage Data transfer Physical
configuration VM $/h cost $/s cost $/s cost $/Gb HW units

DC1 0 X86 Linux Xen 0.1 0.05 2 0.1 2


DC2 1 X86 Linux Xen 1 0.05 2 0.1 2
DC3 2 X86 Linux Xen 2 0.05 1 0.1 3
DC4 3 X86 Linux Xen 3 0.05 0.5 0.1 1
DC5 0 X86 Linux Xen 1.5 0.05 1.5 0.2 1

Table 2  Physical hardware ID Memory (MB) Storage (MB) Available BW Number of Processor speed VM policy
details of DC1 processors

0 204,800 100,000,000 1,000,000 4 10,000 TIME_SHARED


1 204,800 100,000,000 1,000,000 4 10,000 TIME_SHARED

13
Performance analysis of nature inspired load balancing algorithm in cloud environment

4.2.4 Internet characteristics configuration result analysis shows that load balancing algorithms PSO
and WWA produce better response time compared to GA
Internet characteristics are configured as shown in Fig. 2. and ACO. When the UB is increased from 10 to 20, the
WWA responds faster compared to PSO but only with mar-
4.2.5 The main configuration of user base and data center ginal variation. It can be appreciated that WWA offers better
TRT as compared to GA, ACO and PSO algorithms. When
The main configurations of UB and DC are shown in Fig. 3. the UB is 10, WWA is better than PSO by 2.5%, better than
ACO by 4.5% and better than GA by 7.9%. When the UB is
4.2.6 Cloud analyst simulation startup increases from 20 to 50 the improvement over PSO is only
marginal. It is better than ACO and GA by around 4.5%.
Figure 4 shows the location of DC and its corresponding The comparative result analysis shows that all the
mapping to its UB in different regions. load balancing algorithms produce improved TRT for
the increased DC from 5 to 20. It can be seen that WWA
4.3 Comparative result analysis for GA, ACO, PSO offers better TRT as compared to other algorithms. When
and WWA​ the UB is 10, WWA is better than PSO, ACO and GA by
2.5%, 4.5% and 7.9% respectively. However, when the UB
The different nature inspired load balancing algorithms are is increased from 20 to 50 the improvement over PSO is
simulated using cloud analyst tool and the results for average only marginal. It is better than ACO and GA by around
TRT and average DCPT in milliseconds are calculated for 4.5%. Overall improvement has been shown by all algo-
varying DCs and UBs. rithms with 20 DCs as compared with the timings when
the DCs were 5.
4.3.1 Performance analysis of TRT for varying number
of DC and user bases 4.4 Performance analysis of DCPT for varying
number of DC and user bases
Figure 5 shows the analysis of the comparative results for
average TRT in ms for different nature inspired load bal- Figure 6 shows the comparative result analysis for average
ancing algorithm. In this scenario the DC is maintained as DCPT in ms for different nature inspired load balancing
constant in four different cases (5, 10, 15, and 20) and the algorithms. In this scenario the DC is maintained con-
UB is increased from 10, 20, 30 and 50. The comparative stant in four different cases (5, 10, 15 and 20) and UBs is

Fig. 2  Internet characteristics configuration

13
V. Arulkumar, N. Bhalaji

Fig. 3  User base and DC configurations

Fig. 4  Cloud analyst simulation startup

increased from 10, 20, 30 and 50. The comparative result 5 Conclusion and future work
analysis shows that for 10 UBs, DCPT is the higher for
ACO and it is the same for PSO and WWA. DCPT of Task scheduling is a significant and prominent challenge
ACO, PSO and WWA are lesser when compared to GA. in the cloud environment. The performance of cloud envi-
When the number of UBs is increased from 10 to 50, the ronment depends on the load balancing algorithms whose
PSO produces the least DCPT compared to the remain- role is to assign the suitable VMs for the incoming task.
ing algorithms. PSO shows marginally better times with This article analysis four different nature inspired load bal-
respect to WWA and appreciably better compared to GA ancing algorithms for cloud environment and compares
and ACO. When the number of DC increases WWA pro- their performances in terms of average TRT and average
duces DCPT almost equal to PSO. When the number of DCPT. The algorithm has been simulated in a cloud analyst
UBs is increased from 10 to 50 all the algorithms show simulation environment which is an extension of Cloudsim
marginally improved DCPT timings. with GUI enabled. The results obtained are compared for

13
Performance analysis of nature inspired load balancing algorithm in cloud environment

Fig. 5  Performance analysis of avg. TRT for varying DC and UB

Fig. 6  Performance analysis of avg. DCPT for varying DC and UB

13
V. Arulkumar, N. Bhalaji

varying number of DC and UBs. The performance analysis LD DB, Krishna PV (2013) Honey bee behavior inspired load balanc-
concludes that the WWA produces better TRT when com- ing of tasks in cloud computing environments. Appl Soft Comput
13(5):2292–2303
pared to GA, ACO and PSO for varying DC and UB. WWA Lakshminarasimman L, Siva M, Balamurugan R (2017) Water wave
is at least 2.5% better than PSO, 4.5% better than ACO and optimization algorithm for solving multi-area economic dispatch
6.9% better than GA. The second conclusion is made for problem. Int J Comput Appl 167(5):19–27
DCPT which indicates the ACO produces high DCPT and Li G, Wu Z (2019) Ant colony optimization task scheduling algorithm
for SWIM based on load balancing. Future Internet 11(4):1–18
PSO, WWA produce the same DCPT when DC is set to 5. Li X, Mao Y, Xiao X, Zhuang Y (2014) An improved max–min task-
It is found GA offers the highest DCPT. When the number scheduling algorithm for elastic cloud. In: IEEE international
of DC is increased, the WWA produces DCPT almost equal symposium on computer, consumer and control, pp 340–343
to PSO. From the above conclusions, WWA could be con- Lu X, Gu Z (2011) A load-adapative cloud resource scheduling model
based on ant colony algorithm. In: 2011 IEEE international con-
sidered in critical time driven applications such as patient ference on cloud computing and intelligence systems, pp 296–300
medical record data system, Hardware maintenance system Naseri A, Navimipour NJ (2019) A new agent-based method for QoS-
and cargo logistics management systems which require quick aware cloud service composition using particle swarm optimiza-
response for the assigned task. tion algorithm. J Ambient Intell Hum Comput 10(5):1851–1864
Nishant K, Sharma P, Krishna V, Gupta C, Singh KP, Rastogi R (2012)
In cloud computing, the nature of service parameters Load balancing of nodes in cloud using ant colony optimization.
produces significant changes in the assignment of VMs to In: IEEE international conference on computer modelling and
incoming task. This work shall be extended for varying QOS simulation, pp 3–8
parameters such as throughput, cost and delay for different Patel S, Patel H, Patel N (2016) Dynamic load balancing techniques for
improving performance in cloud computing. Int J Comput Appl
routing policies in future. 138(3):1–5
Ramezani F, Lu J, Hussain FK (2014) Task-based system load balanc-
ing in cloud computing using particle swarm optimization. Int J
References Parallel Prog 42(5):739–754
Ru J, Keung J (2013) An empirical investigation on the simulation of
priority and shortest-job-first scheduling for cloud-based software
Altayeb DF, Mustafa FA (2016) Analysis of load balancing algorithms systems. In: IEEE Australian software engineering conference,
implementation on cloud computing environment. Int J Innov Res pp 78–87
Adv Eng 6(2):1–32 Said GAENA (2016) Nature inspired algorithms in cloud computing:
Arulkumar V, Bhalaji N (2019) Load balancing in cloud computing a survey. Int J Intell Inf Syst 5(5):60–64
using water wave algorithm. Concurr Comput Pract Exp. https​:// Samal P, Mishra P (2013) Analysis of variants in round robin algo-
doi.org/10.1002/cpe.5492 rithms for load balancing in cloud computing. Int J Comput Sci
Bottani E, Rinaldi M, Montanari R, Murino T, Centobelli P (2016) Inf Technol 4(3):416–419
An adapted water wave optimization algorithm for routing order Shah R, Veeravalli B, Misra M (2007) On the design of adaptive and
pickers in manual warehouses, pp 209–213 decentralized load balancing algorithms with load estimation for
Chauhan SS, Joshi RC (2010) A weighted mean time min–min max– computational grid environments. IEEE Trans Parallel Distrib
min selective scheduling strategy for independent tasks on grid. Syst 18(12):1675–1686
In: IEEE international advance computing conference (IACC), Shetty SM, Shetty S (2019) Analysis of load balancing in cloud data
pp 4–9 centers. J Ambient Intell Human Comput. https:​ //doi.org/10.1007/
Chen SL, Chen YY, Kuo SH (2017) CLB: a novel load balancing s1265​2-018-1106-7
architecture and algorithm for cloud services. Comput Electr Eng Singh SP, Sharma A, Kumar R (2016) Analysis of load balancing algo-
58:154–160 rithms using cloud analyst. Int J Grid Distrib Comput 9(9):11–24
Dasgupta K, Mandal B, Dutta P, Mandal JK, Dam S (2013) A genetic Wickremasinghe B, Calheiros RN, Buyya R (2010).Cloudanalyst: a
algorithm (GA) based load balancing strategy for cloud comput- cloudsim-based visual modeller for analysing cloud computing
ing. Procedia Technol 10:340–347 environments and applications. In: IEEE international confer-
Dubey K, Kumar M, Sharma SC (2018) Modified HEFT algorithm ence on advanced information networking and applications, pp
for task scheduling in cloud environment. Procedia Comput Sci 446–452
125:725–732 Zheng YJ (2015) Water wave optimization: a new nature-inspired
Ghanbari S, Othman M (2012) A priority based job scheduling algo- metaheuristic. Comput Oper Res 55:1–11
rithm in cloud computing. Procedia Eng 50:778–785
Jang SH, Kim TY, Kim JK, Lee JS (2012) The study of genetic algo-
Publisher’s Note Springer Nature remains neutral with regard to
rithm-based task scheduling for cloud computing. Int J Control
jurisdictional claims in published maps and institutional affiliations.
Autom 5(4):157–162
Kokilavani T, Amalarethinam DDG (2011) Load balanced min–min
algorithm for static meta-task scheduling in grid computing. Int J
Comput Appl 20(2):43–49
Kumar P, Kaur EM (2015) Load balancing in cloud using aco and
genetic algorithm. Int J Sci Res Eng Technol 4(7):724–730

13

You might also like