You are on page 1of 41

CSE3035-Principles Of Coud Computing

Lab Assignment-4
1. Build two VLANs Namely VLAN 10, VLAN 20 in Cisco
Packet Tracer, representing a network virtualization
concept. Achieve the following activities (5 marks)
Activity1: Let PCs 1, 3 belong to VLAN 10, assigned with
static IP addresses 10.0.0.2 and 10.0.0.3 respectively.
Let PCs 2, 4 belong to VLAN 20 assigned with static IP
addresses 20.0.0.2 and 20.0.0.3 respectively. Verify
clients can ping each other within the same VLAN.
Sol.
First we arrange all the switches and pcs with wires and
configure the ip addresses of the PCs
Configure that interface Fa0/1 belong to
domain VLAN 10
Configure that interface Fa0/2 belong to
domain VLAN 20
Check the VLAN configurations
Create a 802.1q Ethernet trunk between the
interfaces connecting the two switches
Now verify the two Pcs connected to two
different domains are able to connect with
each other or not. Check with a ping command
for this successful connection establishment
verification. Also check if traffic can flow across
two different VLAN
Simulation
Activity2:
Let PC 1 belong to VLAN 10, assigned with
static IP address10.0.0.2.
Let PCs 2 belong to VLAN 20 assigned with
static IP address 20.0.0.2.
Let you create two gateway IP address for
routing across the two different VLANs.
Verify clients can ping each other across the
different VLANs
Configure initially two VLANs
Configure that interface Fa0/1 belong to
domain VLAN 10

Configure that interface Fa0/2 belong to


domain VLAN 20
Check the VLAN configuration
Configure IP address for each of the VLAN10
and VLAN20
Check the configured IP address for interface
VLAN10
Check the configured IP address for interface
VLAN20
Run a traffic between the switch and the two
PCs
To make the switch to perform the Layer 3 task,
namely routing- do the following:
Switch#
Now verify the two Pcs connected to two
different domains are able to connect with
each other or not. Check with a ping command
for this successful connection establishment
verification.
Simulation
2. Simulate a cloud scenario using cloud sim.
Achieve the following activities (5 marks)
Note: CloudSim represents RAM and storage
entries in MB only. Network in Megabits.
Activity1:
Data Center :1
Host:1
o Cores:1 (1000 MIPS each core) -0.25 GHZ
o RAM: 2048 MB
o Storage: 1000000 MB
o Network Bandwidth: 10000 mbps
Data Center Broker:1
Cloudlets (tasks/workload):1
o Length: 400000 length of instructions
o Input File Size: 300 bytes
o Output File Size: 400 bytes
o CPU core: 1
o Utilization model: Full
Virtual Machines : 1
o Storage Disk: 10000 MB
o RAM: 512 MB
o VCPU: 1 with 1000 MIPS CPU Speed
o Bandwidth: 1000 Megabits
o Scheduler for cloudlets execution:
Timeshared Round Robin Scheduler
Sol.
First we download and install all the requisites
I.e Cloud Sim,Apache,Eclipse IDE for Java
Developers
1)Initialize Cloudsim simulation with the clock
instance

2)Define the specifications of Datacenter using


CreateDataCenter() Method.
3)Define the specifications for
DataCenterBroker using
CreateDataCenterBroker() method
4)Define the specification of Virtual
Machine(VM),initialize and submit to
DataCenterBrokerInstance
5)Define the specification of
Cloudlets(Tasks),initialize it and submit to
DataCenterBrokerInstance
6)Send a call to StartSimulation() and
StopSimulation() method to flush all the
entities created during cloudsim simulation
7)At last on successful stop of simulation,finally
print the outcome status on the console
Activity2:
Data Center :1
Host:4
o Cores:4 (1000 MIPS each core)
o RAM: 8GB
o Storage: 100 GB
o Network Bandwidth: 1mbps
Data Center Broker:1
Cloudlets (tasks/workload):40
o Length: 40000 length of instructions
o Input File Size: 300 KB
o Output File Size: 400 KB
o CPU core: 1
o Utilization model: Full
Virtual Machines : 10
o Storage Disk: 20GB
o RAM: 2GB
o VCPU: 1 with 1000 MIPS CPU Speed
o Bandwidth: 1000 Kbps
o Scheduler for cloudlets execution :
Timeshared Scheduler
1)Initialize Cloudsim simulation with the clock
instance

2)Define the specifications of Datacenter using


CreateDataCenter() Method
3)Define the specifications for
DataCenterBroker using
CreateDataCenterBroker() method
4)Define the specification of Virtual
Machine(VM),initialize and submit to
DataCenterBrokerInstance
5)Define the specification of
Cloudlets(Tasks),initialize it and submit to
DataCenterBrokerInstance
6)Send a call to StartSimulation() and
StopSimulation() method to flush all the
entities created during cloudsim simulation

7)At last on successful stop of simulation,finally


print the outcome status on the console
M.Satwik
19BCT0261

You might also like