CLOUD and DATA CENTER TECHNOLOGIES Lab Manual
CLOUD and DATA CENTER TECHNOLOGIES Lab Manual
Laboratory Manual
(Cloud and Data Center Technologies)
(4361602)
DTE’s Vision:
● To facilitate quality technical and professional education having relevance for
both industry and society, with moral and ethical values, giving equal
opportunity and access, aiming to prepare globally competent technocrats.
DTE’s Mission:
Quality technical and professional education with continuous improvement of
all the resources and personnel
To promote conducive ecosystem for Academic, Industry, Research,
Innovations and Startups
To provide affordable quality professional education with moral values, equal
opportunities, accessibility and accountability
To allocate competent and dedicated human resources and infrastructure to
the institutions for providing world-class professional education to become a
Global Leader (―Vishwa Guru‖)
Institute’s Vision:
Institute’s Mission:
Department’s Vision:
Department’s Mission:
Cloud and Data Center Technologies (4361602)
Certificate
Place:…………..
Date: …………………..
Preface
The primary aim of any laboratory/Practical/field work is enhancement of required skills as
well as creative ability amongst students to solve real time problems by developing relevant
competencies in psychomotor domain. Keeping in view, GTU has designed competency focused
outcome-based curriculum -2021 (COGC-2021) for Diploma engineering programmes. In this more
time is allotted to practical work than theory. It shows importance of enhancement of skills amongst
students and it pays attention to utilize every second of time allotted for practical amongst Students,
Instructors and Lecturers to achieve relevant outcomes by performing rather than writing practice in
study type. It is essential for effective implementation of competency focused outcome- based Green
curriculum-2021. Every practical has been keenly designed to serve as a tool to develop & enhance
relevant industry needed competency in each and every student. These psychomotor skills are very
difficult to develop through traditional chalk and board content delivery method in the classroom.
Accordingly, this lab manual has been designed to focus on the industry defined relevant outcomes,
rather than old practice of conducting practical to prove concept and theory.
By using this lab manual, students can read procedure one day in advance to actual
performance day of practical experiment which generates interest and also, they can have idea of
judgement of magnitude prior to performance. This in turn enhances predetermined outcomes amongst
students. Each and every Experiment /Practical in this manual begins by competency, industry relevant
skills, course outcomes as well as practical outcomes which serve as a key role for doing the practical.
The students will also have a clear idea of safety and necessary precautions to be taken while
performing experiment.
This manual also provides guidelines to lecturers to facilitate student-centred lab activities for
each practical/experiment by arranging and managing necessary resources in order that the students
follow the procedures with required safety and necessary precautions to achieve outcomes. It also
gives an idea that how students will be assessed by providing Rubrics.
Cloud and Data Center Technologies course will help students to build up core competencies
in develop and deploy cloud network with data center Technologies. The lab work of the course is
designed to develop crisp understanding of the underpinning theory.
Although we try our level best to design this lab manual, but always there are chances of
improvement. We welcome any suggestions for improvement.
3 | Page
Cloud and Data Center Technologies (4361602)
2. Problem analysis: Identify and analyse well-defined engineering problems using codified
standard methods.
4. Engineering Tools, Experimentation and Testing: Apply modern engineering tools and
appropriate technique to conduct standard tests and measurements.
7. Life-long learning: Ability to analyze individual needs and engage in updating in the
context of technological changes in field of engineering.
4 | Page
Cloud and Data Center Technologies (4361602)
4.
Install Python in the virtual machine created ✔
using VirtualBox/VMware and execute Simple
Programs.
5 | Page
Cloud and Data Center Technologies (4361602)
12.
Creating and Executing Your First Container ✔
Using Docker platform.
a) Student will learn to understand the concept of cloud architecture and its model.
b) Student will learn to apply the virtualization concept.
c) Student will learn to understand and implement data center architecture, cloud storage/
database services, cloud security and emerging technologies with cloud computing
6 | Page
Cloud and Data Center Technologies (4361602)
6. Encourage peer to peer learning by doing same experiment through fast learners.
7 | Page
Cloud and Data Center Technologies (4361602)
9 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.1: Sketch out and analyze the architecture of Openstack/ Eucalyptus/
OpenNebula/ KVM and identify different entities to understand the
structure of it.
A. Objective: To analyze the architecture of Openstack/ Eucalyptus/ OpenNebula/
KVM and to understand its structure.
B. Expected Program Outcomes (POs):-PO1, PO2, PO3, PO4, PO6, PO7
10 | Page
Cloud and Data Center Technologies (4361602)
H. Resources/Equipment Required
Sr. No. Instrument/Equipment
Specification
/Components/Trainer kit
1 Computer system with operating system Windows 7 or higher Ver., macOS,
and Linux, with 4GB or higher RAM,
Python versions: 2.7.X, 3.6.X
I. Safety and necessary Precautions followed
Read the experiment thoroughly before starting and ensure that you
understand all the steps and concepts involved from underpinning theory.
Keep the workspace clean and organized, free from clutter and unnecessary
materials.
Use the software according to its intended purpose and instructions.
Ensure that all the necessary equipment and software are in good working
condition.
J. Procedure to be followed/Source code:
Studentmust use the space for writing theory.
Output:
11 | Page
Cloud and Data Center Technologies (4361602)
12 | Page
Cloud and Data Center Technologies (4361602)
a) 2 b) 3
c) 4 d) 5
13 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. https://www.openstack.org/
2. https://www.eucalyptus.cloud/
3. https://nebulacloud.ai/
4. https://aws.amazon.com/what-is/kvm/
M. Assessment-Rubrics
Present in practical
Watched other
session but not
Engagement Performe Performed students
attentively
d practical with performing
participated in
/5 practical others help practical but not
performance
him/herse tried him/herself
lf
Work is
Work done after
submitted later
Completed 2nd week but Work submitted after
Time /5 than1weekbut
the work before the end 3 week time
by the end of of 3rd week
within
2ndweek
1week
14 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.2: Create a Cloud Organization in AWS/Google Cloud/or any equivalent
Open Source cloud softwares like Openstack/ Eucalyptus/ OpenNebula
with Role-based access control.
A. Objective: To understand and developa cloud organization.
B. Expected Program Outcomes (POs):- PO1, PO2, PO3, PO4, PO5, PO6, PO7
Sign in using an administrator account, not your current accountIn the Admin
console, go to Menu Directory Users.
If other admin roles are available, you can click the slider to assign another role,
instead.
15 | Page
Cloud and Data Center Technologies (4361602)
5. Click Save.
Important: Have the new administrator add recovery options to their account.
For details on each of the privileges, go to Understand and grant Vault privileges.
Important: If you want to include any other privileges later, you first need to
remove all users. If you add any other privileges, the custom role can be used for
anyone in your organization, not just an organizational unit.
Create and assign the role
1. Go to Create a custom role and follow the steps. Make sure the role only includes
privileges that apply to organizational units (details above).
2. Click Assign role.
3. Add a user that you want to assign to the role.
4. Next to the user, click the organizational unit.
5. Select the organizational unit and click Done.
6. Click Assign Role.
16 | Page
Cloud and Data Center Technologies (4361602)
Sign in using an account with super administrator privileges (not your current
account).In the Admin console, go to Menu Account Admin roles.
2. Click Create new role.
3. Enter a name and, optionally, a description for the role and click Continue.
4. From the Privilege Name list, check boxes to select each privilege that you want
users with this role to have.Learn about each privilege
5. Click Continue.
6. Review the privileges and click Create Role.
7. Follow the steps to assign the custom role.
H. Resources/Equipment Required
Sr.No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with operating system Windows 7 or higher Ver., macOS,
and Linux, with 4GB or higher RAM,
Python versions: 2.7.X, 3.6.X
17 | Page
Cloud and Data Center Technologies (4361602)
Output:
2. Choose the correct completion: Services and APIs are enabled on a per_____ basis .
Present in practical
Watched other
session but not
Engagement Performe Performed students attentively
d practical with performing
participated in
/5 practical others help practical but not
performance
him/herse tried him/herself
lf
Work is
Work done after
submitted later
Completed 2nd week but Work submitted after
Time /5 than1weekbut
the work before the end 3 week time
by the end of of 3rd week
within
2ndweek
1week
19 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.3: Install Virtualbox/VMware/ Equivalent open source cloud Workstation
with different platforms of Linux or Windows OS on top of windows 8
and above.
A. Objective: To understand and install virtualbox/ vmware.
B. Expected Program Outcomes (POs):-PO1, PO2, PO3, PO4, PO5, PO6, PO7
20 | Page
Cloud and Data Center Technologies (4361602)
Output:
21 | Page
Cloud and Data Center Technologies (4361602)
Present in practical
Watched other
session but not
Engagement Performe Performed students
attentively
d practical with performing participated in
/5 practical others help practical but not
performance
him/herse tried him/herself
lf
Work is
Work done after
submitted later
Completed 2nd week but Work submitted after
Time /5 than1weekbut
the work before the end 3 week time
by the end of of 3rd week
within
2ndweek
1week
22 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.4:Install Python in the virtual machine created using VirtualBox/VMware
and execute Simple Programs.
A. Objective: To install Pyhton on virtual machine.
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
C. Expected Skills to be developed based on competency:
Able to apply operate virtual box / vmware.
23 | Page
Cloud and Data Center Technologies (4361602)
Running Linux
C Programming on Linux
1. Open Terminal (Applications-Accessories-Terminal)
2. Open gedit by typing ―gedit&‖ on terminal (You can also use any other Text
Editor application)
3. Type the following on gedit
(or any other text editor)
#include<stdio.h>
main()
{
printf("Hello World\n");
}
4. Save this file as
―helloworld.c‖
5. Type ―ls‖ on Terminal to see all files under current folder
6. Confirm that ―helloworld.c‖ is in the current directory. If not, type cd
DIRECTORY_PATH to go to the directory that has ―helloworld.c‖
7. Type ―gcchelloworld.c‖ to compile, and type ―ls‖ to confirm that a new
executable file ―a.out‖ is created
8. Type ―./a.out‖ on Terminal to run the program
9. If you see ―Hello World‖ on the next line, you just successfully ran your first
C program.
24 | Page
Cloud and Data Center Technologies (4361602)
Output:
25 | Page
Cloud and Data Center Technologies (4361602)
26 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. http://www.ubuntu.com/download/ubuntu/download
2. https://www.python.org/downloads/windows/
M. Assessment-Rubrics
Present in practical
Watched other
session but not
Engagement Performe Performed students
attentively
d practical with performing
participated in
/5 practical others help practical but not
performance
him/herse tried him/herself
lf
Work is
Work done after
submitted later
Completed 2nd week but Work submitted after
Time /5 than1weekbut
the work before the end 3 week time
by the end of of 3rd week
within
2ndweek
1week
27 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
28 | Page
Cloud and Data Center Technologies (4361602)
29 | Page
Cloud and Data Center Technologies (4361602)
30 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. https://www.vmware.com/in.html
2. https://www.vmug.com/
M. Assessment-Rubrics
Present in practical
Watched other
session but not
Engagement Performe Performed students
attentively
d practical with performing participated in
/5 practical others help practical but not
performance
him/herse tried him/herself
lf
Work is
Work done after
submitted later
Completed 2nd week but Work submitted after
Time /5 than1weekbut
the work before the end 3 week time
by the end of of 3rd week
within
2ndweek
1week
32 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
33 | Page
Cloud and Data Center Technologies (4361602)
Set up the host computer for remote access by enabling the service
and providing a PIN for authentication.
4. Accessing Remote Desktop:
Connecting from the Client Machine:
Open Chrome Remote Desktop on the client machine.
Enter the PIN set up on the host machine to establish a secure
connection.
5. Desktop Virtualization Features:
Multi-Monitor Support:
Chrome Remote Desktop supports multiple monitors, providing a
seamless virtualization experience.
File Transfer:
Users can transfer files between the local and remote machines
directly through the Chrome Remote Desktop interface.
Clipboard Sharing:
The clipboard can be shared between the local and remote
environments, allowing for easy copy-paste functionality.
Quality and Performance Settings:
Adjust settings such as display quality and bandwidth to optimize
the virtualization experience based on network conditions.
H. Resources/Equipment Required
Sr. No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Python
versions: 2.7.X, 3.6.X
Output:
34 | Page
Cloud and Data Center Technologies (4361602)
M. Assessment-Rubrics
Present in practical
Watched other
session but not
Engagement Performe Performed students
attentively
d practical with performing participated in
/5 practical others help practical but not
performance
him/herse tried him/herself
lf
Work is
Work done after
submitted later
Completed 2nd week but Work submitted after
Time /5 than1weekbut
the work before the end 3 week time
by the end of of 3rd week
within
2ndweek
1week
36 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.7: Setup your own virtual SDN lab using any of below given platform
i) Virtualbox/Mininet Environment for SDN - http://mininet.org
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
37 | Page
Cloud and Data Center Technologies (4361602)
H. Resources/Equipment Required
Sr. No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Python
versions: 2.7.X, 3.6.X
38 | Page
Cloud and Data Center Technologies (4361602)
Output:
39 | Page
Cloud and Data Center Technologies (4361602)
40 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. http://mininet.org
M. Assessment-Rubrics
Present in practical
Watched other session but not
Engagement Performed Performed students
attentively
practical practical with performing participated in
/5 him/herself others help practical but not
performance
tried him/herself
Work is
Work done after
submitted later
Completed the 2nd week but Work submitted after
Time /5 than1weekbut
work within before the end 3 week time
by the end of of 3rd week
1week 2ndweek
41 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.8: A study and comparison on various cloud databases like Amazon RDS
,Google Cloud SQL,Microsoft Azure SQL Database, IBM Db2 on Cloud, Firebase
Realtime Database (NoSQL), MongoDB Atlas (NoSQL),Oracle Cloud Autonomous
Database
A. Objective: Learn various Cloud databases for deployment of cloud with database.
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
Examples:
1. Amazon RDS:
Description: Amazon Relational Database Service (RDS) is a managed
relational database service offered by Amazon Web Services (AWS).
Key Features:
Multi-Engine Support (MySQL, PostgreSQL, MariaDB, Oracle,
SQL Server, Aurora).
Automated backups, scaling options, and high availability.
2. Google Cloud SQL:
Description: Google Cloud SQL is a fully managed relational database
service provided by Google Cloud.
Key Features:
Support for MySQL, PostgreSQL, and SQL Server.
Integration with other Google Cloud services.
Automatic backups and regional availability.
3. Microsoft Azure SQL Database:
Description: A fully managed relational database service in Microsoft
Azure, offering compatibility with SQL Server.
Key Features:
Horizontal and vertical scaling options.
Integration with other Azure services.
Advanced security features.
4. IBM Db2 on Cloud:
Description: IBM Db2 on Cloud is a fully managed Db2 database
service with enterprise-grade features.
Key Features:
Scalable architecture suitable for various workloads.
Integration with other IBM Cloud services.
5. Firebase Realtime Database (NoSQL):
Description: Firebase Realtime Database is a NoSQL database offered
by Google for real-time applications.
Key Features:
Real-time data synchronization.
JSON-based data model.
6. MongoDB Atlas (NoSQL):
Description: MongoDB Atlas is a fully managed MongoDB service
provided by MongoDB, Inc.
Key Features:
Flexible data models with BSON documents.
Horizontal scaling through sharding.
7. Oracle Cloud Autonomous Database:
43 | Page
Cloud and Data Center Technologies (4361602)
Description: Oracle Cloud Autonomous Database is a fully managed
Oracle database service with autonomous capabilities.
Key Features:
High-performance architecture.
Autonomous features for self-driving, self-securing, and self-
repairing databases.
H. Resources/Equipment Required
Sr. No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Python
versions: 2.7.X, 3.6.X
Output:
44 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. https://docs.aws.amazon.com/rds/
2. https://learn.microsoft.com/en-us/azure/azure-sql/?view=azuresql
3. https://cloud.google.com/sql/docs
4. https://cloud.ibm.com/docs/Db2onCloud?topic=Db2onCloud-getting-started
5. https://firebase.google.com/docs/database
6. https://www.mongodb.com/docs/
7. https://docs.oracle.com/en/database/autonomous-database-cloud-
services.html
M. Assessment-Rubrics
Tot Exceptional Satisfactory Developing( Limited(1-
Criteria al (5- Marks) (4 to 3 - 2-Marks) Mark)
Mar Marks)
ks
Present in practical
Watched other
session but not
Engagement Performed Performed students
attentively
practical practical with performing
participated in
/5 him/herself others help practical but not performance
tried him/herself
Work is
Work done after
submitted later
Completed the 2nd week but Work submitted after
Time /5 than1weekbut
work within before the end 3 week time
by the end of of 3rd week
1week 2ndweek
46 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.9:A study and comparison on various cloud storage like Amazon
S3,Google Cloud Storage, Microsoft Azure Blob Storage, IBM Cloud Object Storage for
its performance and scalability
A. Objective:To study and understand various cloud storage.
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
data. Azure Blob Storage helps you create data lakes for your analytics needs, and
provides storage to build powerful cloud-native and mobile apps. Optimize costs
with tiered storage for your long-term data, and flexibly scale up for high-
performance computing and machine learning workloads.
IBM Cloud Object Storage - IBM Cloud Object Storage is a highly scalable and
resilient managed data service on IBM Cloud, offering an alternative to block and
file storage.
H. Resources/Equipment Required
Sr. No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Python
versions: 2.7.X, 3.6.X
48 | Page
Cloud and Data Center Technologies (4361602)
1. What is object storage, and how does it differ from traditional file storage?
L. References / Suggestions
49 | Page
Cloud and Data Center Technologies (4361602)
1. https://k21academy.com/amazon-web-services/amazon-s3-bucket-and-
storage-classes/
2. https://www.simplilearn.com/tutorials/aws-tutorial/aws-s3/
3. https://www.geeksforgeeks.org/cloud-storage-in-google-cloud-platform-
gcp/
4. https://k21academy.com/google-cloud/google-cloud-storage/
5. https://k21academy.com/microsoft-azure/admin/azure-blob-storage/
6. https://www.ibm.com/products/cloud-object-storage
M. Assessment-Rubrics
Tot Exceptional Satisfactory Developing( Limited(1-
Criteria al (5- Marks) (4 to 3 - 2-Marks) Mark)
Mar Marks)
ks
Present in practical
Watched other
session but not
Engagement Performed Performed students attentively
practical practical with performing
participated in
/5 him/herself others help practical but not
performance
tried him/herself
Work is
Work done after
submitted later
Completed the 2nd week but Work submitted after
Time /5 than1weekbut
work within before the end 3 week time
by the end of of 3rd week
1week 2ndweek
50 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
Resource Management:
o CloudSim supports various resource management policies and
scheduling algorithms, allowing users to evaluate the performance of
different approaches.
o Users can explore dynamic allocation of resources, load balancing,
and energy-aware resource management strategies.
Workload Modeling:
o CloudSim allows the modeling of workloads (tasks or cloudlets) that
are submitted to the cloud for processing.
o Workload characteristics, such as length, input/output sizes, and
priority, can be specified.
Some of the most common classes used during simulation are:
Datacenter: used for modelling the foundational hardware equipment of
any cloud environment, that is the Datacenter. This class provides methods
to specify the functional requirements of the Datacenter as well as methods
to set the allocation policies of the VMs etc.
Host: this class executes actions related to management of virtual machines.
It also defines policies for provisioning memory and bandwidth to the
virtual machines, as well as allocating CPU cores to the virtual machines.
VM: this class represents a virtual machine by providing data members
defining a VM’s bandwidth, RAM, mips (million instructions per second),
size while also providing setter and getter methods for these parameters.
Cloudlet: a cloudlet class represents any task that is run on a VM, like a
processing task, or a memory access task, or a file updating task etc. It
stores parameters defining the characteristics of a task such as its length,
size, mi (million instructions) and provides methods similarly to VM class
while also providing methods that define a task’s execution time, status,
cost and history.
DatacenterBroker: is an entity acting on behalf of the user/customer. It is
responsible for functioning of VMs, including VM creation, management,
destruction and submission of cloudlets to the VM.
CloudSim: this is the class responsible for initializing and starting the
simulation environment after all the necessary cloud entities have been
defined and later stopping after all the entities have been destroyed.
Prerequisites:
Java installed on your system.
Integrated Development Environment (IDE) like Eclipse or IntelliJ.
52 | Page
Cloud and Data Center Technologies (4361602)
Steps:
Download CloudSim:Visit the CloudSim website and download the latest
version of CloudSim.
Setup Your Java Project: Create a new Java project in your IDE.
Add CloudSim Library
Create a Simple CloudSim Simulation: Create a new Java class for your
simulation. Or Use CloudSimExample1 java program from
org.cloudbus.cloudsim.examples package from CloudSim library
o Run the Simulation: Run the Java Program.
H. Resources/Equipment Required
Sr.No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Java
53 | Page
Cloud and Data Center Technologies (4361602)
1. What is CloudSim?
a. A cloud storage service
b. An open-source framework for simulating cloud computing environments
c. A virtual machine management platform
d. A cloud infrastructure deployment tool
L. References / Suggestions
1. https://www.geeksforgeeks.org/what-is-cloudsim/
2. https://cloudsimtutorials.online/cloudsim-setup-using-eclipse/
3. https://cloudsimtutorials.online/guide-to-cloudsimexample1-java-
simulation-workflow/
54 | Page
Cloud and Data Center Technologies (4361602)
4. https://www.youtube.com/watch?v=jfjvOmTQxz8&ab_channel=SHOBINAK
5. http://www.cloudbus.org/cloudsim/
6. https://www.youtube.com/playlist?list=PL9IfziJ50JY5z2ppTLAFJ2yxyVtBbhp
gD
7. https://github.com/Cloudslab/cloudsim/blob/master/modules/cloudsim-
examples/src/main/java/org/cloudbus/cloudsim/examples/CloudSimExam
ple1.java
M. Assessment-Rubrics
Tot Exceptional Satisfactory Developing( Limited(1-
Criteria al (4 to 3 -
(5- Marks) 2-Marks) Mark)
Mar Marks)
ks
Present in practical
Watched other
session but not
Engagement Performed Performed students
attentively
practical practical with performing participated in
/5 him/herself others help practical but not
performance
tried him/herself
Work is
Work done after
submitted later
Completed the 2nd week but Work submitted after
Time /5 than1weekbut
work within before the end 3 week time
by the end of of 3rd week
1week 2ndweek
55 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
56 | Page
Cloud and Data Center Technologies (4361602)
Access Control:Model access control policies to define who can access, modify, or
share specific files.Simulate access control mechanisms within the cloud
simulation.
Secure Communication:Simulate secure communication channels to ensure that
data transferred between users and the cloud is protected.Implement secure
communication protocols or use existing ones provided by CloudSim Plus.
Cloud Infrastructure:Model the cloud infrastructure, including data centers,
virtual machines (VMs), and storage resources.Utilize CloudSim Plus classes to
create data centers, VMs, and other infrastructure components.
Prerequisites:
Java installed on your system.
Integrated Development Environment (IDE) like Eclipse or IntelliJ.
Steps:
Download CloudSim:Visit the CloudSim website and download the latest
version of CloudSim.
Setup Your Java Project: Create a new Java project in your IDE.
Add CloudSim Library
Create a Simple CloudSim Simulation:
o Add SecureCloudlet.java, SecureFileSimulation.java file in package
org.cloudbus.cloudsim.examples;
o Run the Simulation: Run the Java Program.
H. Resources/Equipment Required
Sr.No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Java
57 | Page
Cloud and Data Center Technologies (4361602)
SecureCloudlet.java
packageorg.cloudbus.cloudsim.examples;
importorg.cloudbus.cloudsim.Cloudlet;
importorg.cloudbus.cloudsim.UtilizationModel;
importjavax.crypto.*;
importjava.security.*;
import java.util.Base64;
publicclassSecureCloudletextends Cloudlet {
privateSecretKeygenerateSecretKey() throwsNoSuchAlgorithmException {
KeyGeneratorkeyGen = KeyGenerator.getInstance(ALGORITHM);
returnkeyGen.generateKey(); }}
58 | Page
Cloud and Data Center Technologies (4361602)
SecureFileSimulation.java
packageorg.cloudbus.cloudsim.examples;
importjava.text.DecimalFormat;
importjava.util.*;
importorg.cloudbus.cloudsim.*;
importorg.cloudbus.cloudsim.core.CloudSim;
importorg.cloudbus.cloudsim.provisioners.*;
publicclassSecureFileSimulation {
@SuppressWarnings("unused")
publicstaticvoid main(String[] args) {
Log.printLine("Starting SecureFileSimulation...");
try {
intnum_user = 1; // number of cloud users
Calendar calendar = Calendar.getInstance();
booleantrace_flag = false; // mean trace events
// VM description
intvmid = 0;
intmips = 1000;
longsize = 10000; // image size (MB)
intram = 512; // vm memory (MB)
longbw = 1000;
intpesNumber = 1; // number of cpus
String vmm = "Xen"; // VMM name
// create VM
Vmvm = newVm(vmid, brokerId, mips, pesNumber, ram,
59 | Page
Cloud and Data Center Technologies (4361602)
// Cloudlet properties
intid = 0;
longlength = 400000;
longfileSize = 300;
longoutputSize = 300;
UtilizationModelutilizationModel =
newUtilizationModelFull();
CloudSim.stopSimulation();
Log.printLine("SecureFileSimulation finished!");
} catch (Exception e) {
e.printStackTrace();
Log.printLine("Unwanted errors happen");
}
}
List<Host>hostList = newArrayList<Host>();
List<Pe>peList = newArrayList<Pe>();
intmips = 1000;
peList.add(newPe(0, newPeProvisionerSimple(mips)));
60 | Page
Cloud and Data Center Technologies (4361602)
inthostId = 0;
intram = 2048; // host memory (MB)
longstorage = 1000000; // host storage
intbw = 10000;
returndatacenter;
}
privatestaticDatacenterBrokercreateBroker() {
DatacenterBrokerbroker = null;
try {
broker = newDatacenterBroker("Broker");
} catch (Exception e) {
e.printStackTrace();
returnnull;
}
returnbroker;
}
privatestaticvoidprintCloudletList(List<Cloudlet>list) {
61 | Page
Cloud and Data Center Technologies (4361602)
intsize = list.size();
Cloudlet cloudlet;
DecimalFormatdft = newDecimalFormat("###.##");
for (inti = 0; i<size; i++) {
cloudlet = list.get(i);
Log.print(indent + cloudlet.getCloudletId() + indent
+ indent);
if (cloudlet.getCloudletStatus() == Cloudlet.SUCCESS)
{
Log.print("SUCCESS");
Log.printLine(indent + indent +
cloudlet.getResourceId() + indent + indent + indent + cloudlet.getVmId()
+ indent + indent +
dft.format(cloudlet.getActualCPUTime()) + indent + indent
+
dft.format(cloudlet.getExecStartTime()) + indent + indent
+
dft.format(cloudlet.getFinishTime()));
}
}
}
1. What is CloudSim?
a. A secure file-sharing platform
b. A cloud simulation framework
c. An encryption algorithm
d. A data storage solution
62 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. https://www.geeksforgeeks.org/what-is-cloudsim/
2. https://cloudsimtutorials.online/cloudsim-setup-using-eclipse/
3. https://www.youtube.com/watch?v=jfjvOmTQxz8&ab_channel=SHOBINAK
4. http://www.cloudbus.org/cloudsim/
5. https://cloudsimplus.org/
M. Assessment-Rubrics
Tot Exceptional Satisfactory Developing( Limited(1-
Criteria al (5- Marks) (4 to 3 - 2-Marks) Mark)
Mar Marks)
ks
Present in practical
Watched other
session but not
Engagement Performed Performed students
attentively
practical practical with performing
participated in
/5 him/herself others help practical but not
performance
tried him/herself
Work is
Work done after
submitted later
Completed the 2nd week but Work submitted after
Time /5 than1weekbut
work within before the end 3 week time
by the end of
1week of 3rd week
2ndweek
63 | Page
Cloud and Data Center Technologies (4361602)
Date: ……………
Practical No.12:Creating and Executing Your First Container Using Docker platform.
A. Objective:To create and run container on docker platform.
B. Expected Program Outcomes (POs): PO1, PO2, PO3, PO4, PO5, PO6, PO7
64 | Page
Cloud and Data Center Technologies (4361602)
operating systems. These virtualized operating systems can run programs and
preforms tasks that we perform in a real operating system.
Docker Dockerfile: A Dockerfile is a text document that contains commands that
are used to assemble an image. We can use any command that call on the command
line. Docker builds images automatically by reading the instructions from the
Dockerfile. The docker build command is used to build an image from the
Dockerfile.
Docker Commands:let's explore some basic Docker commands:
Commands Description
dockerps Lists running containers.
dockerps –a Lists all containers (running and
stopped).
docker images Lists the Docker images on your
system.
docker pull <image_name> Downloads a Docker image without
running a container.
docker stop <container_id> Stops a running container.
dockerrm<container_id> Removes a stopped container.
dockerrmi<image_id> Removes a Docker image.
docker build -t image-name docker-file- Build Docker Image from a Dockerfile
location
-t : it is used to tag Docker image with
the provided name.
Creating and executing your first container using Docker involves the following
steps.
Step 1: Install Docker or Use online Lab environment (https://labs.play-with-
docker.com/)
Before you start, you need to have Docker installed on your machine. You can
download Docker from the official website and follow the installation instructions.
65 | Page
Cloud and Data Center Technologies (4361602)
66 | Page
Cloud and Data Center Technologies (4361602)
H. Resources/Equipment Required
Sr.No. Instrument/Equipment Specification
/Components/Trainer kit
1 Computer system with Windows 7 or higher Ver., macOS, and
operating system Linux, with 4GB or higher RAM, Docker
67 | Page
Cloud and Data Center Technologies (4361602)
L. References / Suggestions
1. https://docs.docker.com/get-started/overview/
2. https://labs.play-with-docker.com/
68 | Page
Cloud and Data Center Technologies (4361602)
3. https://youtu.be/PwwhFXDD5q4?si=9yQje_aCqO4eqWLW
4. https://ibm.github.io/docker101/lab-1/
5. https://riptutorial.com/docker/example/10772/helloworld-dockerfile
6. https://www.javatpoint.com/docker-tutorial
7. https://www.geeksforgeeks.org/docker-tutorial/
M. Assessment-Rubrics
Tot Exceptional Satisfactory Developing( Limited(1-
Criteria al (5- Marks) (4 to 3 - 2-Marks) Mark)
Mar Marks)
ks
Present in practical
Watched other
session but not
Engagement Performed Performed students attentively
practical practical with performing
participated in
/5 him/herself others help practical but not performance
tried him/herself
Work is
Work done after
submitted later
Completed the 2nd week but Work submitted after
Time /5 than1weekbut
work within before the end 3 week time
by the end of of 3rd week
1week 2ndweek
69 | Page
Cloud and Data Center Technologies (4361602)
Branch Coordinator
Shri.Nandu A. Fatak
Head of Department
Information Technology
Government Polytechnic for Girls, Ahmedabad
Committee Chairman
Shri. R. D. Raghani
(HOD-EC)
Principal (I/C)
Government Polytechnic, Gandhinagar
70 | Page