The CloudSim Framework: A Detailed Guide For 2021


CloudSim offers a framework that is extensible and generalized and allows seamless modelling and app performance simulation. When you use CloudSim as a developer, you can focus on its specific design for a system you wish to investigate. This is without you getting to know the details that are related to the cloud-based services and infrastructure.

With the advancement in computing, there have been many possibilities that have come up. The application developers were concerned about hosting and deploying the application, which needed to be done, bearing in mind the resource acquisition with a fixed capacity to handle the traffic expected due to the application demand and the configuration, installation, and maintenance of the entire supporting stack.

With the advent of the cloud, it has become more easy, flexible, and less costly to deploy the applications and host. This is because of the pay-per-user chargeback model that the cloud service providers offer.

In this article let us look at:

  1. Why is simulation important for the cloud environment?
  2. An introduction to CloudSim
  3. Architecture
  4. How to use CloudSim in Eclipse

1. Why is simulation important for the cloud environment?

The simulation of the cloud environment and the applications are made to evaluate the performance and useful insights to explore the dynamics and the scalable environment. The main advantages of simulation are:

  • The flexibility to define the configuration
  • Ease of use and its customization
  • Offer cost benefits as it takes the phase of building and rebuilding out of the loop since it uses the model that has already been created in the design phase.
  • CloudSim is a modelling toolkit also used in the simulating cloud environment that assesses the algorithms that are resource provisioning.

2. An introduction to CloudSim     

Here we understand what CloudSim is. CloudSim is a tool used for the simulation that lets the cloud developers test the provision policy performance in a repeated manner and in a controllable environment that is free of cost. It helps in tuning the bottleneck before any deployment in the real world. It is a stimulator, and thus there is no actual software that it runs. It can rather be defined as a running environment model in a hardware model where the technology-specific details are abstracted.

CloudSim is a simulation library for cloud scenarios that offer essential cases to describe the data centres, virtual machines, computational resources, users, and application policies to manage various system parts like provisioning and scheduling. Using these components, it is possible to evaluate the new strategies using the cloud and considering the policies, load balancing, and scheduling algorithms.

3. Architecture

The CloudSim architecture layers offer support for the simulation and modeling of the cloud environment, including the management interface dedicated to storage, memory, VMs, and bandwidth. It also provides hosts to the VM, dynamic system state, and application execution management. The cloud system providers implement some customized strategies to study the effects of various parts of the VM provisioning.

The user code layer will expose the basic entities like the number of machines, specifications, applications, number of users, and VMs.

The main components of the CloudSim framework are:

  • Region – It models the geographical regions in which the cloud’s service provider allocates the customer resources.
  • Data centres – Models the infrastructure service that the cloud service providers offer.
  • The data centre characteristic – Models the information related to the data centre resource configuration
  • Hosts – It will model the physical resource, its storage, and computer.
  • User base – It will model a user group that is considered to be a single unit in the simulation, and its main role is to generate simulation traffic.
  • Cloudlet specifies the user request set. It has the application ID, the user base name where the response has to be routed, the slice of the request execution command, and the input and the output files.
  • The service broker will decide which of the data centre needs to be selected to provide the service as per the user base request
  • The VMM allocation policy models the policy of provisioning on ways to allocate the VMs to the host.
  • VM scheduler will model the time or space shared and schedule a policy to allocate the processor core to the VM.

4. How to use CloudSim in Eclipse

  • Download the installable files of CloudSim from its website
  • Open the Eclipse
  • Create a Java project
  • Import CloudSim project that is unpacked to a new Java project
  • Initiate the CloudSim package
  • Create the data centre
  • Create a broker
  • Create a virtual machine – If for the VM and a user Id for the VM’s owner.
  • Give the broker the VM list.
  • Make a cloudlet with file size, length, and output size
  • Give the cloudlet list to your broker
  • The simulation starts


CloudSim in cloud computing is best for applications where the users have dynamic, heterogeneous, and competing quality of service needs. Varied applications come with different performance levels, scaling needs of dynamic applications and workloads. The characteristics, the service model, and the deployment models create a situation that is even when the cloud is used to host varied applications. The cloud is thus capable of creating a deployment, complex provisioning, and configuration needs.

Jigsaw Academy’s Postgraduate Certificate Program In Cloud Computing brings Cloud aspirants closer to their dream jobs. The joint-certification course is 6 months long and is conducted online and will help you become a complete Cloud Professional.


Related Articles

Please wait while your application is being created.
Request Callback