Cloud Computing
Cloud Computing
Disadvantages:
Disadvantage Explanation
Downtime Internet/cloud failure can stop services.
Security & Privacy Storing sensitive data in cloud can be risky.
Vendor Lock-in Hard to switch providers once data is stored.
Limited Control Less control over infrastructure.
Scenario: If AWS goes down, Netflix can face downtime. This is a disadvantage of cloud
dependency.
Provides virtualized computing resources over the internet: servers, storage, networking.
Users install their own OS and applications.
Real-time Example:
Amazon EC2 allows users to rent virtual servers and configure them as needed. You control
what OS to install, what software to run, and when to shut it down.
Use Case:
Startups needing scalable infrastructure without buying physical servers.
Real-time Example:
Google App Engine allows developers to deploy applications without worrying about the
server setup.
Use Case:
A developer building a web app can use PaaS to focus on coding while the platform handles
hosting, scaling, and load balancing.
Real-time Example:
Gmail is SaaS. You only need a browser and an internet connection. You don’t manage email
servers or software updates.
Use Case:
Small businesses using Microsoft 365 for email, document editing, and storage without
buying any hardware.
IaaS
PaaS
SaaS
Public Cloud
Private Cloud
Hybrid Cloud
Community Cloud
How much CPU, RAM, Disk, Network your system normally uses.
Real-time Example:
An e-commerce website records average CPU usage as 30% during normal hours. This is
the baseline.
B. Metrics
Metrics are quantitative measures used to track system performance.
Metric Meaning Example
CPU Utilization % of CPU being used 40% average usage
Memory Usage RAM being consumed 3GB used out of 8GB
Metric Meaning Example
Disk I/O Read/write rate on storage 100MB/sec
Network Bandwidth Data transmitted/received 50 Mbps incoming
Latency Time to respond to requests 200 ms
Real-time Example:
Before launching a shopping sale event, Amazon does load testing to ensure their servers can
handle traffic from millions of users simultaneously.
Tools used for Load Testing:
Apache JMeter
LoadRunner
Locust
Real-time Example:
Video conferencing on Zoom requires stable network capacity (~3 Mbps per HD stream). A
drop in network capacity may lead to lags or video freeze.
7.5 Scaling
Scaling is the process of increasing or decreasing resources as needed to meet demand.
A. Types of Scaling:
Type Description Real-Time Example
Vertical Scaling Add more power (CPU/RAM) to Increasing RAM from 8GB to 32GB
(Scale-Up) a single server. in an EC2 instance.
Horizontal Scaling Add more servers to distribute Adding more app servers when user
(Scale-Out) the load. traffic spikes.
B. When to Scale:
Trigger Action
CPU usage consistently over 80% Scale up (vertical) or add more instances (horizontal)
Spike in user traffic Horizontal scaling
Memory shortage Scale up with more RAM
8. Understanding Virtualization: Virtualization Technologies,
Load Balancing and Virtualization, Understanding
Hypervisors
A. Hardware Virtualization
Definition: It allows you to run multiple operating systems (VMs) on a single physical
machine (host).
Real-time Example:
Running Windows, Linux, and macOS on a single Dell server in a data center using VMware
ESXi.
C. Storage Virtualization
Definition: Pools physical storage from multiple devices into a single storage unit.
Real-time Example:
A company combines SSDs and HDDs from multiple devices into a single virtual drive for
backup using NetApp or VMware vSAN.
D. Network Virtualization
Definition: Combines multiple network resources into a single virtual network.
Real-time Example:
Creating Virtual LANs (VLANs) for different departments in an organization using Cisco
switches.
Summary Table:
Type Use Case Tool/Tech Used
Hardware Virtualization Run multiple OSs VMware, VirtualBox
OS-Level Lightweight isolated environments Docker, LXC
Storage Virtualization Unified storage across devices NetApp, vSAN
Network Virtualization Logical separation of networks VLANs, SDN
Real-time Example:
Amazon Web Services (AWS) runs hundreds of virtual machines. An Elastic Load Balancer
(ELB) distributes incoming traffic from users to the VMs with the least load.
Diagram Tip:
You may be asked to draw:
Types of Hypervisors:
Type Description Example
Type 1 (Bare- Installed directly on physical
VMware ESXi, Microsoft Hyper-V
Metal) hardware
Oracle VirtualBox, VMware
Type 2 (Hosted) Runs on top of an existing OS
Workstation
Real-time Example:
Type 1: In a data center, servers run VMware ESXi directly to host multiple client VMs.
Type 2: A developer runs Ubuntu VM on Windows using VirtualBox for testing code.
✅ Quick Comparison:
Feature Type 1 Type 2
Performance High Moderate
Use Case Enterprise servers Development/testing
OS Dependency None Depends on host OS
9. Securing Cloud: Security Mapping, Security Concerns
related to Cloud, Securing Data, Encryption
Real-Time Example:
In AWS, Identity & Access Management (IAM) maps access roles to specific resources
like S3 buckets to control who can read/write.
Major Concerns:
Data Breach
Insecure APIs
Cloud services expose APIs that, if poorly secured, can be entry points for attackers.
Account Hijacking
Compromising cloud credentials to access services.
Data Loss
Real-Time Example:
Google encrypts Gmail data at rest and uses TLS to protect emails while in transit between
servers.
Types of Encryption:
Type Purpose Example Use
Symmetric Same key for encrypt & decrypt File storage (AES)
Type Purpose Example Use
Asymmetric Public-private key pair Email encryption (PGP)
Homomorphic Operate on encrypted data directly Privacy-preserving cloud apps
Communication: Use HTTPS (SSL/TLS) for secure API and browser access.
Real-Time Example:
Microsoft Azure provides automatic encryption of stored data and manages encryption keys
through Azure Key Vault.
10. Using the Mobile Cloud: Connecting to the Cloud,
Feature Phones and the Cloud, Using Smartphones with the
Cloud
Storing data
Running applications
SDKs (Software Development Kits) for cloud platforms like Firebase, AWS Mobile
Real-Time Example:
When you use Google Photos on your phone, it automatically uploads pictures to Google
Cloud over Wi-Fi or mobile data, making them accessible from any device.
Real-Time Example:
In rural India, farmers use USSD-based apps to get real-time weather updates and crop
prices using cloud-hosted data, even on Nokia feature phones.
Real-Time Example:
You open the YouTube app on your smartphone, search a video, and stream it. All videos are
hosted on Google Cloud, and your device just plays them in real time.
11. Introduction to Internet of Things (IoT)
Real-Time Example:
A smartwatch that tracks your heart rate and sends the data to a mobile app via Bluetooth or
Wi-Fi is part of the IoT ecosystem.
11.2 Characteristics of IoT
1. Connectivity:
Devices must be connected to a network (Wi-Fi, Bluetooth, cellular, etc.)
→ Example: A smart bulb connected to your home Wi-Fi.
2. Intelligence:
Devices make intelligent decisions (e.g., turn off when not in use).
→ Example: Smart thermostat adjusting temperature based on your routine.
3. Dynamic Nature:
Devices may move or change state.
→ Example: GPS-enabled delivery trucks updating their location in real-time.
4. Sensing:
Devices can sense physical conditions (temperature, motion, etc.).
→ Example: Motion sensors in smart home security systems.
5. Heterogeneity:
Devices are different (sensors, actuators, smartphones) but still communicate.
→ Example: A fridge (with temp sensor) talking to your phone app.
6. Scale:
IoT systems may have millions of connected devices.
→ Example: Smart cities monitoring traffic, pollution, lighting.
7. Security:
Since data is sensitive, encryption and secure communication is essential.
→ Example: Health IoT devices encrypt patient data.
11.3 Physical Design of IoT
The physical design of an IoT system includes the actual hardware components and interfaces
used to build it.
1. Sensors
What it does:
Captures real-world data — temperature, motion, light, humidity, gas levels, etc.
Examples of Sensors:
1) Temperature & Humidity Sensor (DHT11/DHT22) – used in smart farming and home
AC systems.
2) PIR Sensor (Motion Detection) – used in automatic lights and security alarms.
4) Light Sensor (LDR) – used in smart streetlights to turn on/off based on light levels.
Memory Tip:
"Sensors sense" – they feel what’s going on around them.
2. Actuators
What it does:
Takes action based on sensor data. It's the device that moves or changes something.
🛠Examples of Actuators:
1. Motor or Servo Motor – opens/rotates valves, fans, or doors (e.g., smart window).
2. Relay Module – acts like a switch to turn AC devices on/off (e.g., geysers, lamps).
Memory Tip:
"Actuators act" – if the system wants to do something, the actuator does it.
2) ESP8266 / NodeMCU – has Wi-Fi built in; used for cloud-connected devices.
3) Raspberry Pi – more powerful (can run Linux); used for complex tasks like facial
recognition, data logging.
Memory Tip:
"Microcontrollers control the micro world."
4. Communication Modules
What it does:
Connects the IoT device to other devices or the cloud.
Types:
Memory Tip:
Communication modules are the "mouths and ears" – they let devices talk to each other or to
the internet.
5. Power Supply
What it does:
Powers up all the components.
Types:
1) Battery (Li-ion, AA, Coin cell) – for wearables or wireless sensors.
🧠 Memory Tip:
"No power, no IoT" – every component needs energy to work.
Key Concepts:
Device Layer:
Physical devices/sensors/actuators.
Network Layer:
Ensures data moves between devices & cloud (via IP, Wi-Fi, etc.).
Data Processing Layer:
Where the collected data is analyzed (edge or cloud processing).
Application Layer:
End-user applications that visualize or act on data.
→ Example: Mobile apps for smart homes.
1. Home Automation
Objective: Automate household functions for comfort, security, and energy efficiency.
Examples:
Smart lights that turn off when no one is in the room (motion sensors).
Smart thermostats (e.g., Nest) adjusting temperature based on your routine.
2. Environment Monitoring
Examples:
3. Smart Cities
Examples:
4. Energy Management
Objective: Optimize energy usage, reduce loss, and use smart grids.
Examples:
5. Retail
Examples:
6. Agriculture
Examples:
Examples:
Examples:
Examples:
Efficient design
Decide what you want the system to do and who will use it.
Based on the purpose, choose suitable sensors (to collect data) and actuators (to perform
actions).
✅ Example: Data is collected → transmitted via Wi-Fi → stored in cloud storage like
Firebase or AWS.
Check the system's performance, fix issues, and maintain it over time.
✅ Example: Run the system for 7 days, track anomalies, and fix sensor errors.
Objective: Monitor weather conditions (temperature & humidity) and send real-time data to
the cloud for analysis.
✅ Use case: In weather monitoring systems, Raspberry Pi can read data from sensors, connect
to the cloud, and display real-time info on a dashboard.
Ensures trust in smart systems like smart cities, factories, and hospitals
✅ Real-World Example:
A smart city has thousands of IoT-enabled traffic lights. Without encryption and
authentication, attackers could manipulate signals and cause accidents. With proper IoT
security, such systems are safeguarded against intrusions.