You are on page 1of 14

SNJB’s Late Sau. K. B. Jain College of Engineering, Chandwad.

Department of Electronics and Telecommunication Engineering


Subject: Lab Practice – 1 Cloud Computing Laboratory (404186)

Experiment No.- _______


Title:
___________________________________________________________________________
____________________________________________________________________________
__________________________________________________________________________

Date of Completion: __________________ Date of Submission: __________________

S.N. Criteria Possible Obtained


Marks Marks

1 Active Participation 8, 10, 15, 20

2 Knowledge about topic / programming 8, 10, 15, 20

3 Timely Completion /Submission 8, 10, 15, 20

4 Performance, Punctuality & Neatness 8, 10, 15, 20

5 Output, Viva and Conclusion 8, 10, 15, 20

Out of 100
Total

Out of 10 Total

Date:____________________ Prof.
(Subject Teacher)
Department: - Electronics & Telecommunication Engineering
Subject: Cloud Computing
EXPERIMENT NO: 3

TITLE: Simulate a cloud scenario using CloudSim and run a scheduling algorithm that is not
present in CloudSim.
AIM: To study how to use CloudSim to run a scheduling algorithm.

Objectives:
1. To study how to use CloudSim.
2. To run a scheduling algorithm that is not present in CloudSim.
.

Theory:

CloudSim
CloudSim is an open-source framework, which is used to simulate cloud computing infrastructure and
services. It is developed by the CLOUDS Lab organization and is written entirely in Java. It is used for
modelling and simulating a cloud computing environment as a means for evaluating a hypothesis prior to
software development in order to reproduce tests and results.
For example, if you were to deploy an application or a website on the cloud and wanted to test the
services and load that your product can handle and also tune its performance to overcome bottlenecks
before risking deployment, then such evaluations could be performed by simply coding a simulation of
that environment with the help of various flexible and scalable classes provided by the CloudSim
package, free of cost.

Benefits of Simulation over the Actual Deployment:


Following are the benefits of CloudSim:
 No capital investment involved. With a simulation tool like CloudSim there is no installation or
maintenance cost.
 Easy to use and Scalable. You can change the requirements such as adding or deleting resources
by changing just a few lines of code.
 Risks can be evaluated at an earlier stage. In Cloud Computing utilization of real testbeds
limits the experiments to the scale of the testbed and makes the reproduction of results an
extremely difficult undertaking. With simulation, you can test your product against test cases and
resolve issues before actual deployment without any limitations.
 No need for try-and-error approaches. Instead of relying on theoretical and imprecise
evaluations which can lead to inefficient service performance and revenue generation, you can test
your services in a repeatable and controlled environment free of cost with CloudSim.

Why use CloudSim?

Below are a few reasons to opt for CloudSim:


 Open source and free of cost, so it favours researchers/developers working in the field.
 Easy to download and set-up.
 It is more generalized and extensible to support modelling and experimentation.
 Does not require any high-specs computer to work on.
 Provides pre-defined allocation policies and utilization models for managing resources, and
allows implementation of user-defined algorithms as well.
 The documentation provides pre-coded examples for new developers to get familiar with the
basic classes and functions.
 Tackle bottlenecks before deployment to reduce risk, lower costs, increase performance, and
raise revenue.
Steps:
1. Install any of the IDE for running JAVA applications (eclipse recommended).
2. Install JDK and JRE for the same.
3. Add the jdk\bin path to the environment variables Open environment variables window, add the
following to the path variable
4. Do include your bin path wherever you have installed JDK
5. > C:\Program Files\Java\jdk-14.0.1\bin
6. Open eclipse in your confined workspace
7. Click on new and open a new JAVA Project, give it a name
8. Create a package inside he src folder.
9. Dump in all the files here inside the package.
10. Now right click on the project and choose configure build path.
11. Click on the libraries section and add external jars
12. Extract the Cloudsim.tar file you downloaded
13. Now import the jar files in that Cloudsim.tar into the external jars.
14. Do remember to change the name of the package in all the source files.
15. Now right click on the project and run the project as JAVA Application.
16. Select the SJF_Scheduler.java file present in the list.
Conclusion:

You might also like