INTRODUCTION TO CLOUDSIM
INTRODUCTION TO CLOUDSIM
INTRODUCTION TO CLOUDSIM
Abstract:
Dejan Bulaja,
Cloud computing is a subscription-based service where networked storage
Kristina Božić, space and other computer resources can be obtained. Due to its high avail-
Nikola Penevski ability, easy accessibility, scalability and adaptability, cloud computing is
highly desirable in the rapidly growing world of computer technology. Be-
Nebojša Bačanin Džakula
cause of this high demand, the Cloud Computing and Distributed Systems
(CLOUDS) Laboratory built the CloudSim framework, which became very
Singidunum University, popular open source cloud simulator among the researchers and students.
Belgrade, Serbia CloudSim is new simulation framework which allows uninterrupted modeling
and simulation of cloud computing infrastructure. It helped open up the
possibility of evaluating the hypothesis in a controlled environment where
experimental results can be reproduced easily. This basic goal of this paper is
helping the researchers to understand CloudSim’s most important functions
and its practical usage, and to take insights on hands-on example of creating
a simulated cloud environment.
Keywords:
CloudSim, Cloud Computing, Job Scheduling, Load Balancing.
1. INTRODUCTION
189
Sinteza 2019
DOI: 10.15308/Sinteza-2019-189-194
submit your manuscript | sinteza.singidunum.ac.rs
SINTEZA 2019
INTERNATIONAL SCIENTIFIC CONFERENCE ON INFORMATION TECHNOLOGY AND DATA RELATED RESEARCH
3. Provides changeable infrastructure modeling, Enterprises can deploy application on one of the
changeable network architecture, federated cloud three clouds, and those are Public, Private and Hybrid
support clouds. Public clouds are owned and operated by third
4. Provides VM provisioning, Host provisioning, party. All customers share the same infrastructure pool
network provisioning and application provision- with limited security protection and configuration [4],
ing. but the cost of this service is low and supports “Pay-as-
you-go” model. Private clouds, on the other hand, are
built exclusively for a single enterprise. The aim is to
2. BACKGROUND
address the existing concern of data security and offer
greater control over the infrastructure. Hybrid clouds
Cloud Computing are a combination of both previously addressed cloud
models. By allowing workloads to move between pri-
Cloud computing can be defined as “a type of paral- vate and public clouds as computing needs and costs
lel and distributed system consisting of a collection of change, hybrid cloud gives businesses greater flexibility
interconnected and virtualized computers that are dy- and more data deployment options [5].
namically provisioned and presented as one or more
unified computing resourced based on service-level 3. CLOUDSIM ARCHITECTURE
agreements established through negotiation between
the service provider and consumers” [1].
ClousSim provides an emulation of all the processes
The National Institute of Standards and Technol- that happen in the cloud as shown in figure 1. CloudSim
ogy (NIST) defines cloud computing as: a pay-per-use contains 12 packages that are used to create a simula-
model for enabling available, convenient, on demand tion. The most relevant one is called cloudsim and con-
network access to a shared pool of configurable com- tains the classes for modeling the various cloud entities
puting resources that can be rapidly provisioned and like a Datacenter, a Host, a Cloudlet and VMs.
released with minimal management effort or service
Datacenter is a virtual representation of a real da-
provider interaction [2].
tacenter and contains several computing nodes known
Some examples of popular cloud computing infra- as Hosts that are responsible for providing the services
structures include Amazon Web Services, Microsoft desired by the end user. It is described by the following
Azure, Google Cloud Platform and Heroku [3]. parameters:
1. Total available processing power in MIPS (Mil-
Cloud Computing Models lion Instructions Per Second)
2. Total available RAM in MB (Random Access
Cloud Computing Models can be grouped into three Memory)
categories listed below: 3. Total storage represented in MB
1. Software as a Service (SaaS) - this model offers a 4. Total bandwidth in mbps. Bandwidth is crucial
complete application to the customer. A single in- for delivering burstable stable services [6].
stance of the service is running on the cloud and Datacenter Broker represents a broker acting on
multiple end users can be served simultaneously. behalf of a user. It hides VM management such, as vm
2. Platform as a Service (PaaS) - in this model, a creation, submission of cloudlets to this VMs and de-
layer of software or development environment is struction of VMs.
offered to end users as a service. Utility is that the Host executes actions related to management of vir-
customer can build his own application which tual machines (e.g. creation and destruction). A host has
runs on the provider’s infrastructure freely. a defined policy for provisioning memory and bw, as
3. Infrastructure as a Service (IaaS) - basic stor- well as an allocation policy for Pe’s to virtual machines.
age and computing capabilities as standard- A host is allocated to a datacenter. It can host virtual
ized services over the network are provided by machines.
this model. Servers, storage systems, data center
space are made available to customers to handle
workloads.
190
Sinteza 2019
Advanced Computing and Cloud Computing
submit your manuscript | sinteza.singidunum.ac.rs
SINTEZA 2019
INTERNATIONAL SCIENTIFIC CONFERENCE ON INFORMATION TECHNOLOGY AND DATA RELATED RESEARCH
Virtual machines are portable, inter-operable, logi- 1. Id of cloudlet that is used by the broker to assign
cally independent. Each VM created is allocated to a them to a virtual machine
Host where all its computational requirements are met. 2. Length of a task that is to be executed represented
VM is described by the following properties: in bytes
1. CPU power represented in MIPS 3. Output file size is the size of the cloudlet after
2. Number of processing cores executing.
3. Amount of RAM memory 4. Number of processors that are required to run
4. Size of the virtual disk image the cloudlet
5. Bandwidth in mbps VmScheduler supports two ways of executing Cloud-
lets: time shared and space shared policies. In the time
6. Name of the virtual machine
shared policy Cloudlets are run simultaneously while
Cloudlet is a representation of a submitted task in
the MIPS of the VMs is divided evenly among them. In
the cloud. Each cloudlet is assigned to a VM. Cloudlet
the space shared policy VMs will execute cloudlets in a
has the following attributes:
chronological order using full capacity for each cloudlet.
3. org.cloudbus.cloudsim.network - where all the All the packages and classes are contained within a
classes required for the network topology are jar (in folder CloudSim3.0.3\jars\CloudSim-3.0.3.jar). If
contained one needs to add new policies to the existing toolkit, it
4. org.cloudbus.cloudsim.network, datacenter - which must be done by overwriting the methods in existing
defines a network within a Datacenter classes. Some of the major classes along with their uses is
shown in the figure 2. The class org.cloudbus.cloudsim.
5. org.cloudbus.cloudsim.util - package contains
vmAllocationPolicy is important because it can be ex-
classes that can provide specific mathematical
tended and used for Host Load Balancing. Load Balanc-
functions
ing is the process of spreading the load across available
6. org.cloudbus.cloudsim.lists - containing the lists
resources so as to decrease the overall response time of
of operations on the list of resources like Hosts,
a task and to simultaneously increase the utilization of
VM, cloudlets and so on
the resources [7].
193
Sinteza 2019
Advanced Computing and Cloud Computing
submit your manuscript | sinteza.singidunum.ac.rs
SINTEZA 2019
INTERNATIONAL SCIENTIFIC CONFERENCE ON INFORMATION TECHNOLOGY AND DATA RELATED RESEARCH
The progress of cloud technologies calls for novel [1] R. Buyya, C.S. Yeo, S. Venugopal, J. Briberg, and
approaches of better understanding processes that hap- I. Brandic, Cloud computing and emerging IT plat-
pen within the cloud infrastructure. CloudSim is a com- forms: vision, hype, and reality for delivering com-
puting as the 5th utility, Future generation comput-
pletely customizable tool that can simulate all parts of
er systems, Vol. 25, 2009, pp. 599-616.
the cloud infrastructure making it suitable for testing
[2] NIST Cloud Computing Reference Architecture, 500-
different setups, algorithms, models and topologies in
292, 2011. [Online]. Available: https://bigdatawg.
order to see the results, compare them and make im- nist.gov/_uploadfiles/M0008_v1_7256814129.pdf
provements. After reading this work we hope that the
[3] Xiao-Li Wang, Ling-di Chen. The Application of
reader has a firmer understanding of processes that hap- Cloud Computing in the Construction of Regional
pen on the cloud and ways to create and test their own. Digital Archives, ARPN Journal of Systems and
Future works include incorporating a job schedul- Software Vol. 5, Issue 2, 2015, pp 44-47.
ing algorithm such as cuckoo search algorithm (CSO) [4] C. Stergiou, K. E. Psannis, B. Kim, B. Gupta, Secure
and particle swarm optimization (PSO) to achieve bet- integration of IoT and Cloud Computing, Future
ter load balancing of Cloudlets that are to be executed Generation Computer Systems, Elsevier, Vol. 78,
on VMs. The utilization of mentioned metaheuristics Part 3, 2018, pp. 964-975.
approaches instead of classical deterministic schedul- [5] H. Talal, H. Noor, S. Zeadally, A. Alfazi, Q. Z. Sheng,
ing algorithms may significantly improve simulation Mobile cloud computing: Challenges and future re-
search directions, Journal of Network and Computer
results. With the current algorithms in CloudSim the
Applications, Elsevier, Vol. 115, 2018, pp. 70-85.
way the Broker schedules Cloudlets is less than ideal.
[6] Li, J. Cao, X. Wang, Y. Sun, Y. Sahni, Enabling Soft-
The time required to run multiple Cloudlets on multiple
ware Defined Networking with QoS Guarantee for
VMs can be decreased by using stochastic methods to Cloud Applications, 2017 IEEE 10th International
find the near optimal order of running Cloudlets. Even Conference on Cloud Computing (CLOUD),
the smallest improvements make a big difference on the Honolulu, CA, 2017, pp. 130-137, doi: 10.1109/
large scale and produce large savings. CLOUD.2017.25.
[7] Suchintan Mishra, Manmath Narayan Sahoo. On
using CloudSim as a Cloud Simulator: The Manual,
2017, doi: 10.13140/RG.2.2.30215.91041.
[8] D. Alsmadi, V. Prybutok, Sharing and storage be-
havior via cloud computing: Security and privacy in
research and practice, Computers in Human Behav-
ior, Elsevier, Vol. 85, 2018, pp. 218-226.
[9] K. Jeong, R. Figueiredo, K. Ichikawa, PARES: Packet
Rewriting on SDNEnabled Edge Switches for Net-
work Virtualization in Multi-Tenant Cloud Data
Centers, 2017 IEEE 10th International Conference
on Cloud Computing (CLOUD), Honolulu, CA,
2017, pp. 9-17. doi: 10.1109/CLOUD.2017.11.
194
Sinteza 2019
Advanced Computing and Cloud Computing
submit your manuscript | sinteza.singidunum.ac.rs