Professional Documents
Culture Documents
CSN 520
06-10-2022
1. Introduction: CloudSim is a new, generalized, and extensible simulation
framework that enables seamless modeling, simulation, and experimentation of
emerging Cloud computing infrastructures and application services.
Installation Steps:
a. Before installing cloudsim we need to make sure we have the following:
Java Development Kit (JDK) - Since Cloudsim Simulation toolkit is written in Java
Programming language.
Eclipse IDE for Java Developers.
Common-math library which has math related functions can be downloaded from
Math – Download Apache Commons Math. Unzip in a separate folder.
b. Download the cloudsim source code as a zip file from Release cloudsim-3.0.3 ·
Cloudslab/cloudsim · GitHub and unzip it to a separate directory.
c. Open eclipse and create a new Java project by navigating to File->New->Java
Project.
d. In the new project window that open up fill in the following details
Project name: CloudSim
Uncheck the default location and set location to the path where we unzipped the
cloudsim folder.
Click on Next to add project settings
e. Open the Libraries tab and check if the common-math library is present. If not
present then add it by clicking on Add External Jars and selecting the
‘Commons-math3-3.x.jar file from unzipped common-math folder which we had
previously downloaded.
f. Click on Finish to complete the installation of cloudsim.
Class Diagram -
Class Diagram
SANStorage stands for Storage Area Network and is used to store large
amounts of data in data centers. With the help of this class, users can store
and retrieve data at any time depending on the available network
Bandwidth.
VmScheduler models the shared processor pool and schedules a policy to distribute
processor cores to virtual machines.
Controller This class is responsible for managing the simulation of application module
allocation. This involves running simulations over fog devices and processing tuples
using modules. AppModules will be scheduled to network nodes by the controller class,
which will also manage their overall operation.
Experiment - The simulation is run utilizing heterogeneous input parameters for VM,
cloudlets, and datacenters by reading the input from an external file system. We have
constructed 20 VMs, 40 cloudlets, and 2 datacenters (included along with code). Both
time-shared and space-shared allocation policies are handled in this manner. The size
parameter for each VM was adjusted, the length parameter for each cloudlet was
changed, and two heterogeneous datacenters with various mips values were built for
the VMs and cloudlets, respectively.
Results -
The start time and finish time for each cloud under the timeshare allocation policy are
different but they are the same under the space sharing method, as seen in the two
tables below. Furthermore, time-shared cloudlets require more time to run than
space-shared cloudlets do.
Time-shared allocation policy used and the results are given in the below table.
Cloudlet Status Datacent VM Id Time Start Finish
ID re ID Time Time
Space-shared allocation policy used and the results are given in the below table.
Installation:
Steps to install FogWorkflowSim tool are as follows
a. Download the zip file from the github link
https://github.com/ISEC-AHU/FogWorkflowSim which contains the tool.
b. Extract/unzip the file in a separate directory/folder.
c. Create a new java project in eclipse IDE by navigating to File->New->Java
Project.
d. Now a new project window will open, give the following details: Project name as
FogWorkFlowSim and Unselect the ‘Use default location’ option to browse the
location of the project file to where we extracted the FogWorkFlowSimTool. Click
on next to add project settings.
e. Open the Libraries tab and check if the common-math library is present. It should
be present since we added it while installing cloudsim. If not present then add it
by clicking on Add External Jars and selecting the ‘Commons-math3-3.x.jar file
from unzipped common-math folder which we had previously downloaded.
f. Click on Finish to complete the installation of Fog Workflowsim.
FogWorkflowSim Architecture
Controller: This class is responsible for handling the simulation of application module
allocation, which comprises simulating over fog devices and processing tuples via
modules. The controller class will plan the placement of AppModules on network nodes
and manage their overall operation.
Idle Power(mW) 30 0 0
For PSO algorithm, the particle number is 30. The learning factors C1 and C2 are both
2. The inertia weight is 1. For GA algorithm, the population size is 50. The rates of
crossover and mutation are 0.8 and 0.1 respectively. The iteration numbers of PSO and
GA are both 100.
Fig: Algorithm setting for PSO
2B
Introduction
Cloudlets are tasks/jobs, and Virtual Machines are resources. In two different scenarios,
we tested the algorithms' performance: in the first, we fixed the number of virtual
machines while varying the number of cloudlets; in the second, we fixed the number of
cloudlets while varying the number of virtual machines. Tables displaying the
makespans that the algorithms generate have been shown together with the associated
graphs.
In the first scenario, the number of virtual machines is fixed at 10, while the number of
cloudlets is varied by 10, from 10 to 40.
VMS fixed:10 Cloudlets varying
10 20 30 40