UNDERSTANDING CLOUDSIM:INTRODUCTION
Recently, cloud computing emerged as the leading technology for delivering reliable, secure, fault-tolerant, sustainable, and scalable computational services, which are presented as Software, Infrastructure, or Platform as services (SaaS, IaaS, PaaS). Moreover, these services may be offered in private data centers (private clouds), may be commercially offered for clients (public clouds), or yet it is possible that both public and private clouds are combined in hybrid clouds.
These already wide ecosystem of cloud architectures, along with the increasing demand for energy-efficient IT technologies, demand timely, repeatable, and controllable methodologies for evaluation of algorithms, applications, and policies before actual development of cloud products. Because utilization of real testbeds limits the experiments to the scale of the testbed and makes the reproduction of results an extremely difficult undertaking, alternative approaches for testing and experimentation leverage development of new Cloud technologies.
Main features:
Overview of CloudSim functionalities:
- support for modeling and simulation of large scale Cloud computing data centers
- support for modeling and simulation of virtualized server hosts, with customizable policies for provisioning host resources to virtual machines
- support for modeling and simulation of energy-aware computational resources
- support for modeling and simulation of data center network topologies and message-passing applications
- support for modeling and simulation of federated clouds
- support for dynamic insertion of simulation elements, stop and resume of simulation
- support for user-defined policies for allocation of hosts to virtual machines and policies for allocation of host resources to virtual machines.
First, you have to know some essential entities in CloudSim. Each entity is represented as a class in Java. The description is briefed as below. For more information of all classes, please visit CloudSim 3.0 API
Datacenter is composed of a set of hosts and it is responsible for managing virtual machines (VMs) (e.g., VM provisioning). It behaves like an IaaS provider by receiving requests for VMs from brokers and creating the VMs in hosts.
This class represents a broker acting on behalf of a user. It modifies two machanisms: the machanism for submitting VM provisioning requests to data centers and the mechanism for submitting the tasks to VMs. The CloudSim users have to extend this class for conducting experiments with their own policies.
3. Host:
Host executes actions related to management of VMs (e.g., creation and destruction) and update task processing to VMs. A host has a defined policy for provisioning memory, processing elements, and bandwidth to virtual machines. A host is associated to a datacenter. It can host virtual machines.
4. VM:
It represents a software implementation of a machine that executes applications called virtual machine (VM) which works like a physical machine. Each virtual machine divides the resources received from the host among tasks running on it.
5. Cloudlet:
A cloudlet class is also known as a task. CloudSim represents the complexity of an application in terms of its computational requirements. This class is managed by the scheduling policy which is implemented in DatacenterBroker Class.
REQUIREMENTS:
HARDWARE REQUIREMENTS:
- —Hard disk -40GB.
- —Processor-Pentium1V2.4 GHz.
- —RAM-1 GB.
SOFTWARE REQUIREMENTS:
- —WindowsXP (32- bit), Vista (32 –bit or 64-bit) or Windows7 (32-bit or 64-bit).
- —Eclipse classic (versions 3.5.1 and higher).
- —JDK 1.6 or later.
- CloudSim toolkit
Install CloudSim with eclipse (In Windows Machine)
Step-1:- Download eclipse. For that following link
http://www.eclipse.org/downloads/
Step-2:
- Extract eclipse to particular directory. Here let’s say C:\eclipse
Step-3:
- Download CloudSim. For that follow following link
http://code.google.com/p/cloudsim/downloads/list
Step-4:
- Extract CloudSim to particular directory. Here let’s say C:\cloudsim-3.0.2
Step-5:
- Download Michael Thomas Flanagan's Java Scientific and Numerical Library. For that follow following link
http://www.ee.ucl.ac.uk/~mflanaga/java/
Step-6:
- Copy this flanagan.jar file into C:\cloudsim-3.0.2\jars\
Step-7:
- Open the eclipse IDE. For that go to C:\eclipse and open the eclipse application (blue ball like icon).
Step-8:
- Select the workspace, where eclipse stores your projects.
- In eclipse IDE go to New -->Java Project
Step-10:
- Specify Project name as CloudSim, untick the use default location option and select extracted CloudSim folder.
- Click finish. It might take some time to finish.
Step-11:
Start enjoying cloud computing with CloudSim.
No comments:
Post a Comment