Cloud Computing Simulation Using CloudSim



Similar documents
CloudSim: A Toolkit for Modeling and Simulation of Cloud Computing Environments and Evaluation of Resource Provisioning Algorithms

EFFICIENT VM LOAD BALANCING ALGORITHM FOR A CLOUD COMPUTING ENVIRONMENT

Environments, Services and Network Management for Green Clouds

Performance Analysis of VM Scheduling Algorithm of CloudSim in Cloud Computing

Dynamic Creation and Placement of Virtual Machine Using CloudSim

Multilevel Communication Aware Approach for Load Balancing

Dynamic Round Robin for Load Balancing in a Cloud Computing

CDBMS Physical Layer issue: Load Balancing

Dr. Ravi Rastogi Associate Professor Sharda University, Greater Noida, India

Keywords: Cloudsim, MIPS, Gridlet, Virtual machine, Data center, Simulation, SaaS, PaaS, IaaS, VM. Introduction

Dynamically optimized cost based task scheduling in Cloud Computing

Information Security Education Journal Volume 1 Number 2 December

Extended Round Robin Load Balancing in Cloud Computing

Profit Based Data Center Service Broker Policy for Cloud Resource Provisioning

Comparison of PBRR Scheduling Algorithm with Round Robin and Heuristic Priority Scheduling Algorithm in Virtual Cloud Environment

Heterogeneous Workload Consolidation for Efficient Management of Data Centers in Cloud Computing

Service Broker Algorithm for Cloud-Analyst

International Journal of Computer Science Trends and Technology (IJCST) Volume 2 Issue 4, July-Aug 2014

Load Balancing Algorithm Based on Estimating Finish Time of Services in Cloud Computing

International Journal of Digital Application & Contemporary research Website: (Volume 2, Issue 9, April 2014)

Efficient Qos Based Resource Scheduling Using PAPRIKA Method for Cloud Computing

Simulation-based Evaluation of an Intercloud Service Broker

Creation and Allocation of Virtual Machines for Execution of Cloudlets in Cloud Environment

CloudSim: A Novel Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services

Round Robin with Server Affinity: A VM Load Balancing Algorithm for Cloud Based Infrastructure

Virtual Machine Allocation Policy in Cloud Computing Using CloudSim in Java

A Dynamic Resource Management with Energy Saving Mechanism for Supporting Cloud Computing

International Journal of Advance Research in Computer Science and Management Studies

Reallocation and Allocation of Virtual Machines in Cloud Computing Manan D. Shah a, *, Harshad B. Prajapati b

Design and simulate cloud computing environment using cloudsim

Comparison of Dynamic Load Balancing Policies in Data Centers

Energy Optimized Virtual Machine Scheduling Schemes in Cloud Environment

Utilizing Round Robin Concept for Load Balancing Algorithm at Virtual Machine Level in Cloud Environment

Dr. J. W. Bakal Principal S. S. JONDHALE College of Engg., Dombivli, India

CloudAnalyst: A CloudSim-based Tool for Modelling and Analysis of Large Scale Cloud Computing Environments

Load Balancing Scheduling with Shortest Load First

A Proposed Service Broker Strategy in CloudAnalyst for Cost-Effective Data Center Selection

Resource Allocation Avoiding SLA Violations in Cloud Framework for SaaS

Performance Gathering and Implementing Portability on Cloud Storage Data

Keywords Distributed Computing, On Demand Resources, Cloud Computing, Virtualization, Server Consolidation, Load Balancing

An Efficient Approach for Task Scheduling Based on Multi-Objective Genetic Algorithm in Cloud Computing Environment

Response Time Minimization of Different Load Balancing Algorithms in Cloud Computing Environment

CloudAnalyst: A CloudSim-based Visual Modeller for Analysing Cloud Computing Environments and Applications

Dynamic resource management for energy saving in the cloud computing environment

Effective Virtual Machine Scheduling in Cloud Computing

HYBRID ACO-IWD OPTIMIZATION ALGORITHM FOR MINIMIZING WEIGHTED FLOWTIME IN CLOUD-BASED PARAMETER SWEEP EXPERIMENTS

PERFORMANCE ANALYSIS OF PaaS CLOUD COMPUTING SYSTEM

Throtelled: An Efficient Load Balancing Policy across Virtual Machines within a Single Data Center

CloudSim: A Toolkit for Modeling and Simulation of Cloud Computing Environments and Evaluation of Resource Provisioning Algorithms

IMPROVEMENT OF RESPONSE TIME OF LOAD BALANCING ALGORITHM IN CLOUD ENVIROMENT

A Survey on Cloud Computing

A Study on Analysis and Implementation of a Cloud Computing Framework for Multimedia Convergence Services

Nutan. N PG student. Girish. L Assistant professor Dept of CSE, CIT GubbiTumkur

NetworkCloudSim: Modelling Parallel Applications in Cloud Simulations

Modeling and Simulation of Scalable Cloud Computing Environments and the CloudSim Toolkit: Challenges and Opportunities

International Journal of Computer Science Trends and Technology (IJCST) Volume 2 Issue 4, July-Aug 2014

Hybrid Load Balancing Algorithm in Heterogeneous Cloud Environment

LOAD BALANCING OF USER PROCESSES AMONG VIRTUAL MACHINES IN CLOUD COMPUTING ENVIRONMENT

Efficient Service Broker Policy For Large-Scale Cloud Environments

ISSN: Page345

Distributed and Dynamic Load Balancing in Cloud Data Center

ISSN (Print): , ISSN (Online): , ISSN (CD-ROM):

Storage CloudSim: A Simulation Environment for Cloud Object Storage Infrastructures

Study and Comparison of CloudSim Simulators in the Cloud Computing

OCRP Implementation to Optimize Resource Provisioning Cost in Cloud Computing

Auto-Scaling Model for Cloud Computing System

CloudSim: a toolkit for modeling and simulation of cloud computing environments and evaluation of resource provisioning algorithms

Application Deployment Models with Load Balancing Mechanisms using Service Level Agreement Scheduling in Cloud Computing

Model-driven Performance Estimation, Deployment, and Resource Management for Cloud-hosted Services

International Journal of Computer Science Trends and Technology (IJCST) Volume 2 Issue 3, May-Jun 2014

Green Cloud: Smart Resource Allocation and Optimization using Simulated Annealing Technique

Modeling Local Broker Policy Based on Workload Profile in Network Cloud

Sla Aware Load Balancing Algorithm Using Join-Idle Queue for Virtual Machines in Cloud Computing

SCORE BASED DEADLINE CONSTRAINED WORKFLOW SCHEDULING ALGORITHM FOR CLOUD SYSTEMS

Estimating Trust Value for Cloud Service Providers using Fuzzy Logic

An Optimal Approach for an Energy-Aware Resource Provisioning in Cloud Computing

Scheduling Virtual Machines for Load balancing in Cloud Computing Platform

International Journal of Scientific & Engineering Research, Volume 6, Issue 4, April ISSN

Energy Conscious Virtual Machine Migration by Job Shop Scheduling Algorithm

HOST SCHEDULING ALGORITHM USING GENETIC ALGORITHM IN CLOUD COMPUTING ENVIRONMENT

A Formal and Tooled Framework for Managing Everything as a Service. Deliverable Cloud Computing Simulators: State of the Art

Payment minimization and Error-tolerant Resource Allocation for Cloud System Using equally spread current execution load

Virtual Machine Instance Scheduling in IaaS Clouds

CLOUD SIMULATORS: A REVIEW

Amazon EC2 XenApp Scalability Analysis

Migration of Virtual Machines for Better Performance in Cloud Computing Environment

A Survey on Cloud Computing-Deployment of Cloud, Building a Private Cloud and Simulators

A Novel Approach for Efficient Load Balancing in Cloud Computing Environment by Using Partitioning

ACO Based Dynamic Resource Scheduling for Improving Cloud Performance

Transcription:

Cloud Computing Simulation Using CloudSim Ranjan Kumar #1, G.Sahoo *2 # Assistant Professor, Computer Science & Engineering, Ranchi University, India Professor & Head, Information Technology, Birla Institute of Technology, Mesra, India Abstract : As we know that Cloud Computing is a new paradigm in IT. It has many advantages and disadvantages. But in future it will spread in the whole world. Many researches are going on for securing the cloud services. Simulation is the act of imitating or pretending. It is a situation in which a particular set of condition is created artificially in order to study that could exit in reality. We need only a simple Operating System with some memory to startup our Computer. All our resources will be available in the cloud. Keywords Cloud Computing, Data Center, VM Scheduler, Host. I. INTRODUCTION Cloud Computing infrastructure is different from Grid Computing. It is the massive deployment of Virtualization technologies and tools. Hence, as compared to Grid, Cloud has an extra layer as Virtualization, that acts as an execution and hosting environment for cloud-based application services. To secure data in cloud is really very tough job. To understand the cloud computing we need to first understand how these resources are placed in the cloud. Cloud Computing has basically two parts, the First part is of Client Side and the second part is of Server Side. The Client Side requests to the Servers and the Server responds to the Clients. The request from the client firstly goes to the Master Processor of the Server Side. The Master Processor have many Slave Processors, the master processor sends that request to any one of the Slave Processor which is free at that time. All Processors are busy in their assigned job and non of the Processor get Idle. Simulation opens the possibility to evaluate the hypothesis prior to actual software development in an environment where one can reproduce tests. Why we need simulation because it provides repeatable and controllable environment to test the services. It tune the system bottlenecks before deploying on real clouds. For simulation we need a special toolkit named CloudSim. It is basically a Library for Simulation of Cloud Computing Scenarios. It has some features such as it support for modeling and simulation of large scale Cloud Computing infrastructure, including data centers on a single physical computing node. It provides basic classes for describing data centers, virtual machines, applications, users, computational resources, and policies. CloudSim supports VM Scheduling at two levels : First, at the host level where it is possible to specify how much of the overall processing power of each core in a host will be assigned at each VM. And the second, at the VM level, where the VMs assign specific amount of the available processing power to the individual task units that are hosted within its execution engine. Typical requirements and models of Cloud Computing are Platform (PaaS), Software (SaaS), Infrastructure (IaaS), Service-based application programming interface (API). It has some Characteristics such as Low Cost Software, Virtualization Service Orientation, Advance Security, Massive Scale, Resilient Computing, Geographic Distribution, Homogeneity, Broad Network Access, Rapid Elasticity, Resource Pooling etc. There are basically four deployment models, they are Private Cloud, Public Cloud, Community Cloud, and Hybrid Cloud. ISSN: 2231-5381 http://www.ijettjournal.org Page 82

Cloud Infrastructure : In figure 2, we saw the life cycle of CloudSim. In this, there are different stages from where simulation have to pass each of the stage. CloudSim Life Cycle : Figure : 1 In figure 1, we saw infrastructure of Cloud, in which Data Center consist of different Hosts and the Host manages the VM Scheduler and VMs. Cloudlet Scheduler determines how the available CPU resources of virtual machine are divided among Cloudlets. There are two types of policies are offered : 1] Space-Shared (Cloudlet Scheduler Space Shared) : To assign specific CPU cores to specific VMs. 2] Time-Shared (Cloudlet Scheduler Time Shared) : To dynamically distribute the capacity of a core among VMs. VmSchedular determines how many processing cores of a host are allocated to virtual machines and how many processing cores will be delegated to each VM. It also determine how much of the processing core s capacity will effectively be attributed for a given VM. Figure : 2 Organization of this paper is as follows: Related work is discussed in section II. Experimental setup and Result is discussed in section III. And section IV gives conclusion. II. RELATED WORK David S. Linthicum [1] described about the basic information about the Cloud Computing and its various services and models like SaaS, IaaS, PaaS. He also described about the deploying models of Cloud Computing and Virtualization services. ISSN: 2231-5381 http://www.ijettjournal.org Page 83

Michael Miller [2] described about the various web based application related to Cloud Computing. R.Bajaj and D.P. Agrawal [3] described about the Scheduling. They said Scheduling is a process of finding the efficient mapping of tasks to the suitable resources so that execution can be completed such as minimization of execution time as specified by customers. They described various types of Scheduling like Static, Dynamic, Centralized, Hierarchical, Distributed, Cooperative, Non- Cooperative Scheduling. They also described Scheduling problem in Cloud and the types of users like CCU ( Cloud Computing Customers) and CCSP ( Cloud Computing Service Providers). R.N. Calheiros, Rajiv Ranjan, Anton Beloglazov, C.A.F. De Rose, Rajkumar Buyya [4] described about the Simulation techniques and the CloudSim. They described the various features of CloudSim like it supports for modelling and simulation for large scale of cloud computing infrastructure including data centers on a single physical computing node. J. Li, M. Qiu, X. Qin [5] described about the optimization criterion that is used when making scheduling decision and represents the goals of the scheduling process. The criterion is expressed by the value of objective function which allows us to measure the quality of computed solution and compare it with different solution. C.H.Hsu and T. L. Chen [6] described about the Quality of Service, that is the ability to provide different jobs and users, or to guarantee a certain level of performance to a job. If the QoS mechanism is supported it allows the user to specify desired performance for their jobs. In system with limited resources the QoS support results in additional cost which is related to the complexity of QoS requests and the efficiency of the scheduler when dealing with them. III. EXPERIMENTAL SETUP AND RESULT To evaluate the performance of Cloud, results were simulated in Window 7 basic (64-bit), i3 Processor, 370 M Processor, 2.40 GHz of speed with memory of 3 GB and the language used is Java. First code of Simulation is tested on one Data Center with one Host and run on one Cloudlet. Initialize the CloudSim Package : Int num_user = 1; //number of cloud users Calendar calendar = Calender.getInstance(); Boolean trace_flag = false; //mean trace events Initialize the CloudSim Library : CloudSim.init(num_user, calendar, trace_flag); Create Datacenters : These are the resource providers in CloudSim. We need at least one of them to run a CloudSim simulation. Datacenter datacenter0 = createdatacenter( Datacenter_0 ); Create Broker : DatacenterBroker broker = createbroker(); Int brokerid = broker.getid(); Create one Virtual machine : Vmlist = new ArrayList<Vm>(); VM description : Int vmid = 0; Int mips= 1000; Long size = 10000; //image size (MB) Int ram = 512; //vm memory (MB) Long bw = 1000; Int pesnumber = 1; //number of cpu String vmm = Xen ; // VMM name Create VM : ISSN: 2231-5381 http://www.ijettjournal.org Page 84

Vm vm = new Vm(vmid, brokerid, mips, pesnumber, ram, bw, size, vmm, new CloudletSchedulerTimeShared()); Add the VM to the vmlist : vmlist.add(vm1); Submit vm list to the broker : Broker.submitVmList(vmList); Creation of Cloudlets : cloudletlist = new ArrayList<Cloudlet>(); Cloudlet Properties : Int id = 0; PesNumber = 1; long length = 400000; long filesize = 300; long outputsize = 300; UtilizationModel utilizationmodel = new UtilizationModelFull(); Cloudlet cloudlet = new Cloudlet(id, length, pesnumber, filesize, outputsize, utilizationmodel, utilizationmodel1, utilizationmodel1); Cloudlet.setUserId(brokerId); Cloudlet.setVmId(vmid); Add the Cloudlets to the list : cloudletlist.add(cloudlet1); Submit cloudlet list to the broker : Broker.submitCloudletList(cloudLetList); Start Simulation : CloudSim.startSimulation(); CloudSim.stopSimulation(); Final step : Print result when simulation is over List<Cloudlet> newlist = broker.getcloudletreceivedlist(); printcloudletlist(newlist); // Print the debt of each user to each datacenter Datacenter0.printDebts(); The output of this simulation is : ========== OUTPUT ========== Cloudlet ID STATUS Data center ID VM ID Time Start Time Finish Time 0 SUCCESS 2 0 400 0 400 *****PowerDatacenter: Datacenter_0***** User id Debt 3 35.6 ********************************** After increasing the datacenter with two hosts and run two cloudlets on it. The cloudlets run in VMs with different MIPS requirements. The cloudlets will take different time to complete the execution depending on the requested VM performance. It prints the following output : ========== OUTPUT ========== Cloudlet ID STATUS Data center ID VM ID Time Start Time Finish Time 1 SUCCESS 2 1 80 0 80 0 SUCCESS 2 0 160 0 160 *****PowerDatacenter: Datacenter_0***** User id Debt 3 224.8 ********************************** ISSN: 2231-5381 http://www.ijettjournal.org Page 85

IV. CONCLUSIONS In this paper, we have proposed the codes for simulation. We see the various outputs in which the information about the Cloudlets, Status, Datacenter ID, Virtual Machine ID, Start Time, Finish Time is given. And by changing the number of Host, Datacenters and Cloudlets, we saw the difference. REFERENCES [1] David S. Linthicum Cloud Computing and SOA Convergence in your Enterprise, 2011. [2] Michael Miller, Cloud Computing Web Based Application 2012. [3] R. Bajaj and D.P. Agrawal, Improving Scheduling of Tasks in a Heterogeneous Environment, IEEE Transaction on parallel and Distributed Systems, p. 107-118, 2004. [4] R. N. Calheiros, Rajiv Ranjan, Anton Beloglazov, C.A.F. De Rose, Rajkumar Buyya, CloudSim: A toolkit for modeling and simulation of cloud computing environments and evaluation of resource provisioning algorithms, Software Practice and Experience, Wiley publishers, 2010. [5] J.Li, M.Qiu, X.Qin, Feedback Dynamic Algorithms for Preemptable Job Scheduling in Cloud System, IEEE, 2010. [6] C.H.Hsu, T.L.Chen, Adaptive Scheduling based on QoS in Heterogeneous Environment, IEEE, 2010. ISSN: 2231-5381 http://www.ijettjournal.org Page 86