What is CloudSim Framework and How to use it with NetBeans IDE?

Updated on September 1, 2017

If you are a student or a researcher working in Cloud computing domain, then you must have heard about CloudSim framework. It’s a framework for modeling and simulation of cloud computing infrastructures and services. CloudSim supports modeling and simulation of cloud computing data centers, virtualized hosts, allocation policies, network topologies and message passing applications. Moreover, the framework can be integrated with Eclipse and NetBeans, allowing you to code in Java. This tutorial will help you to understand CloudSim toolkit and how to integrate it with NetBeans IDE. If you want a GUI for creating datacenter, hosts, virtual machines, customize configurations, then you need to install CloudReports.

There are few entities you need to understand before using CloudSim.

  • Datacenter: Set of hosts that runs virtual machines.
  • Datacenter Broker : This broker is responsible for submitting VM provisioning requests to the datacenter and then submitting tasks to VMs.
  • Host : The machine that runs and manages the virtual machine.
  • VM: A software representation of a machine that can process tasks.
  • Cloudlet – A task or an application that actually runs in VM.

How to Integrate CloudSim Framework with NetBeans IDE?

  1. Download NetBeans and Install it.
  2. Download CloudSim and unzip it.
  3. Once Netbeans IDE is installed, start creating a new Project via File > New Project. Choose “Java” under Categories and “Java Application” under Projects.

cloudsim framework

Name your project and click “Finish” button.

cloudsim simulation

On the left sidebar, right click on the project and select “Properties” as shown below:

cloud simulation

In the properties dialog, select “Libraries” and click on “Add Library” button at the right. In the “Add Library” dialog, select cloudsim jar file (will be located in jars folder) downloaded in step 2. Now you can drag and drop example programs (under examples/org/cloudbus/cloudsim) from the CloudSim directory into your application. That’s it, your CloudSim toolkit it ready to use.

simulate cloud

Expand org.cloudbus.cloudsim.examples folder to find all example programs. Select your desired example and start running the simulation. The output will be displayed at the bottom pane as shown below:

netbeans cloudsim simulator

Go through the example programs carefully and edit to your needs.

Was this article helpful?

Related Articles

Comments Leave a Comment

  1. Hello,
    Have you checked CloudSim Plus?
    It’s an improved version of CloudSim that provides lots of bugfixes and advanced features such as VM vertical and horizontal scaling, joint power- and network-aware simulations, fault injection and recovery, dynamic submission of VMs and Cloudlets and many more.

    Check it out at http://cloudsimplus.org

Leave a Comment