Skip to content
VirtualLP Virtual Learning Platform

Cloud Computing Essentials for the Practicals

11 min read Topic 3 of 31 1 hands-on lab

A cloud lets you use computing power, storage and software over a network when needed. A cloud provider manages the computers that offer these services.

This lesson introduces the terms used in the practicals. Learn how physical servers, virtual machines and tasks fit together before starting the CloudSim exercises.

Cloud computing

Cloud computing lets you use resources such as servers, storage and software over a network when needed. The provider measures use. Paid services may charge by use or by a service plan.

electricity

You do not build a power plant at home. You plug into the grid, use as much as you need, and pay the monthly bill by the units used. Cloud computing is the same idea for computers.

NIST definition – five essential characteristics

NIST means National Institute of Standards and Technology.

Characteristic Meaning Example
On-demand self-service You create resources yourself, without calling the provider Launch a VM (Virtual Machine) from a web console
Broad network access Use the services over the network from any device Browser, mobile app, CLI (Command-Line Interface)
Resource pooling The provider's resources are shared between many customers (multi-tenancy) Many VMs on one physical host
Rapid elasticity Grow and shrink quickly, often automatically Add web servers during a sale
Measured service Usage is measured and billed Pay per hour of VM, per GB stored
Remember this

Think of a mobile phone plan: you activate it yourself (self-service), use it anywhere (network access), share the tower with thousands of people (pooling), add a data pack when you need more (elasticity), and pay for what you use (measured).

Service models

flowchart LR
    subgraph IaaS
      a1[Applications]:::you --> a2[Runtime & OS]:::you --> a3[Virtual machines]:::prov --> a4[Hardware]:::prov
    end
    subgraph PaaS
      b1[Applications]:::you --> b2[Runtime & OS]:::prov --> b3[Virtual machines]:::prov --> b4[Hardware]:::prov
    end
    subgraph SaaS
      c1[Applications]:::prov --> c2[Runtime & OS]:::prov --> c3[Virtual machines]:::prov --> c4[Hardware]:::prov
    end
    classDef you fill:#dbeafe,stroke:#2747d4;
    classDef prov fill:#dcfce7,stroke:#0f9f8f;

Blue = you manage, green = the provider manages.

Model You get Examples
IaaS (Infrastructure as a Service) Virtual machines, storage, networks Amazon EC2 (Elastic Compute Cloud), Azure VMs, OpenStack
PaaS (Platform as a Service) A platform where you just put your code Google App Engine, Heroku, Azure App Service
SaaS (Software as a Service) A ready-to-use application Gmail, Microsoft 365, Salesforce

Deployment models

Model Owned / used by Typical reason
Public cloud A provider, shared by many customers Low cost, global scale
Private cloud One organisation (on its own premises or hosted) Control, rules (compliance), keeping data in the country
Hybrid cloud A mix of public and private Use public cloud for rush hours, keep sensitive data private
Community cloud Organisations with shared needs Government, healthcare

Inside a cloud data centre

A data centre contains physical servers called hosts. Hosts provide CPU (Central Processing Unit), memory, storage and network capacity. A hypervisor runs VMs on them. A placement policy chooses each VM's host. A scheduling policy decides how tasks get processing time.

flowchart TB
    U[Users / brokers] -->|request VMs, submit tasks| DC[Data centre]
    DC --> H1[Host 1<br/>cores · RAM · storage · BW]
    DC --> H2[Host 2]
    H1 --> VM1[VM] & VM2[VM]
    H2 --> VM3[VM]
    VM1 --> T1[task] & T2[task]

These are exactly the parts you will build in CloudSim: Datacenter → Host → Pe → Vm → Cloudlet, with a DatacenterBroker acting for the user.

Why simulate a cloud?

A simulator such as CloudSim lets you test a scheduling or allocation policy without renting real servers. Keep the model and inputs the same when comparing runs. You can:

  • compare policies on thousands of hosts in seconds,
  • repeat experiments exactly,
  • measure execution time, cost and usage without spending money.
Key point

Remember the five characteristics, the three service models (IaaS → PaaS → SaaS: the provider manages more at each step) and the four deployment models. Virtualization is what makes IaaS and resource pooling possible.

Practise it

Virtual lab · CloudSim · 30 min

Install CloudSim in Eclipse and run your first simulation

Verify the JDK, create a Java project, add the CloudSim JARs to the build path, avoid the module-info trap, then copy and run CloudSimExample1.

Open lab

Quick revision

  1. Cloud = on-demand, metered computing over the network.
  2. IaaS gives VMs, PaaS gives a platform, SaaS gives an application.
  3. Public, private, hybrid and community are the deployment models.
  4. Data centres are made of hosts with cores (MIPS (Million Instructions Per Second)), RAM (Random Access Memory), storage and bandwidth.
  5. Simulation lets you test cloud policies cheaply and repeatably.

Practise this topic

Hands-on virtual lab

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.