Cloud Lectures
Cloud Lectures
Cloud computing
Infrastructure
Distributed infrastructure
Defining attributes
Resource virtualization
Massive infrastructure
Autonomous systems
Utility computing. Pay-per-usage
Resources
Accessible via the Internet
Compute & storage servers
Networks Services Elasticity
Applications
7
Early Models of Cloud Computing
§ Basic reasoning: information and data processing can be
done more efficiently on large farms of computing and
storage systems accessible via the Internet.
§ Two early models:
1. Grid computing – initiated by the National Labs in the
early 1990s; targeted primarily at scientific computing.
§ “Grid computing is the collection of computer resources from
multiple locations to reach a common goal. The grid can be thought
of as a distributed system with non-interactive workloads that
involve a large number of files.” from Wikipedia
2. Utility computing – initiated in 2005-2006 by IT
companies and targeted at enterprise computing.
§ “Utility computing is a service provisioning model in which a service
provider makes computing resources and infrastructure
management available to the customer as needed, and charges
them for specific usage rather than a flat rate.” from Wikipedia
8
Cloud computing - Characteristics
“Cloud Computing offers on-demand, scalable and elastic
computing (and storage services). The resources used for these
services can be metered and users are charged only for the
resources used. “ from the Book
Management:
8.The maintenance and security are operated by service
providers.
9.The service providers can operate more efficiently due to
specialisation and centralisation.
10
Cloud Computing Advantages
1. Resources, such as CPU cycles, storage, network
bandwidth, are shared.
15
More challenges
5. Performance unpredictability, one of the consequences of
resource sharing.
§ How to use resource virtualization and performance isolation for
QoS guarantees?
§ How to support elasticity, the ability to scale up and down quickly?
source Wikipedia 17
Infrastructure-as-a-Service (IaaS)
§ Infrastructure is compute resources, CPU, VMs, storage, etc
§ The user is able to deploy and run arbitrary software, which
can include operating systems and applications.
§ The user does not manage or control the underlying Cloud
infrastructure but has control over operating systems,
storage, deployed applications, and possibly limited control
of some networking components, e.g., host firewalls.
18
§ Example: Amazon EC2
Platform-as-a-Service (PaaS)
§ Allows a cloud user to deploy consumer-created or acquired
applications using programming languages and tools
supported by the service provider.
§ The user:
§ Has control over the deployed applications and, possibly, application
hosting environment configurations.
§ Does not manage or control the underlying Cloud infrastructure
including network, servers, operating systems, or storage.
§ Not particularly useful when:
§ The application must be portable.
§ Proprietary programming languages are used.
§ The hardware and software must be customised to improve the
performance of the application.
§ Examples: Google App Engine, Windows Azure 19
Software-as-a-Service (SaaS)
§ Applications are supplied by the service provider.
§ The user does not manage or control the underlying Cloud
infrastructure or individual application capabilities.
§ Services offered include:
§ Enterprise services such as: workflow management,
communications, digital signature, customer relationship
management (CRM), desktop software, financial management, geo-
spatial, and search.
§ Not suitable for real-time applications or for those where
data is not allowed to be hosted externally.
21
Cloud activities
22
Cloud activities (contd)
23
Cloud activities (contd)
24
Motivation
§ Three fundamental abstractions are necessary to describe the operation
of a computing systems:
(1) interpreters/processors, (2) memory, (3) communications links
§ As the scale of a system and the size of its users grows, it becomes
very challenging to manage its recourses (see three points above)
§ For example, the state of a virtual machine (VM) running under a virtual
machine monitor (VMM) can de saved and migrated to another server to
balance the load
§ For example, virtualization allows users to operate in environments they are
familiar with, rather than forcing them to specific ones
3
Motivation (contd)
§ “Virtualization, in computing, refers to the act of creating a
virtual (rather than actual) version of something,
including but not limited to a virtual computer hardware
platform, operating system (OS), storage device, or computer
network resources.” from Wikipedia
4
Motivation (contd)
5
Virtualization
6
Layering and Virtualization
7
Layering and Interfaces
A1 Applications
API
Libraries A2
ABI
System calls
Operating System A3
ISA
System ISA User ISA
Hardware
9
Code portability
10
HLL Language Translations
HLL code
Intermediate Portable
code code
VM compiler/ VM compiler/
Loader
interpreter interpreter
11
History of Virtualization
(from “Modern Operating Systems” 4th Edition, p474 by Tanenbaum and Bos)
14
Type 1 and 2 Hypervisors
Type 1 Hypervisor Type 2 Hypervisor
§ Taxonomy of VMMs:
1. Type 1 Hypervisor (bare metal, native): supports multiple virtual machines
and runs directly on the hardware (e.g., VMware ESX , Xen, Denali)
2. Type 2 Hypervisor (hosted) VM - runs under a host operating system (e.g.,
user-mode Linux)
15
Examples of Hypervisors
16
Performance and Security Isolation
§ The run-time behavior of an application is affected by other applications
running concurrently on the same platform and competing for CPU
cycles, cache, main memory, disk and network access. Thus, it is
difficult to predict the completion time!
18
Dual-Mode Operation (recap)
§ Dual-mode operation allows OS to protect itself and other
system components
§ User mode and kernel mode
§ Mode bit provided by hardware
§ Ability to distinguish when system is running user or kernel code
§ Some instructions are privileged, only executable in kernel mode
§ System call changes mode to kernel, return resets it to user
19
User-mode vs Kernel-mode (recap)
20