cloudcomputing_Intro
cloudcomputing_Intro
Computing
Introduction
What is Cloud Computing?
• Cloud computing is a model for enabling convenient, on-demand
network access to a shared pool of configurable computing resources
(e.g., networks, servers, storage, applications, and services)
[Mell_2009], [Berkely_2009].
• It can be rapidly provisioned and released with minimal management
effort.
• It provides high level abstraction of computation and storage model.
• It has some essential characteristics, service models, and
deployment models.
2
Essential Characteristics
• On-Demand Self Service:
• A consumer can unilaterally provision computing capabilities, automatically
without requiring human interaction with each service’s provider.
• Heterogeneous Access:
• Capabilities are available over the network and accessed through standard
mechanisms that promote use by heterogeneous thin or thick client
platforms.
3
Essential Characteristics (cont.)
• Resource Pooling:
• The provider’s computing resources are pooled to serve multiple consumers
using a multi-tenant model.
• Different physical and virtual resources dynamically assigned and reassigned
according to consumer demand.
• Measured Service:
• Cloud systems automatically control and optimize resources used by
leveraging a metering capability at some level of abstraction appropriate to
the type of service.
• It will provide analyzable and predictable computing platform.
4
Service Models
• Cloud Software as a Service (SaaS):
• The capability provided to the consumer is to use the provider’s applications
running on a cloud infrastructure.
• The applications are accessible from various client devices such as a web
browser (e.g., web-based email).
• The consumer does not manage or control the underlying cloud
infrastructure including network, servers, operating systems, storage,…
• Examples: Caspio, Google Apps, Salesforce, Nivio, Learn.com.
5
Service Models (cont.)
• Cloud Platform as a Service (PaaS):
• The capability provided to the consumer is to deploy onto the cloud
infrastructure consumer-created or acquired applications created using
programming languages and tools supported by the provider.
• The consumer does not manage or control the underlying cloud
infrastructure.
• Consumer has control over the deployed applications and possibly
application hosting environment configurations.
• Examples: Windows Azure, Google App.
6
Service Models (cont.)
• Cloud Infrastructure as a Service (IaaS):
• The capability provided to the consumer is to provision processing, storage,
networks, and other fundamental computing resources.
• The consumer is able to deploy and run arbitrary software, which can
include operating systems and applications.
• The consumer does not manage or control the underlying cloud
infrastructure but has control over operating systems, storage, deployed
applications, and possibly limited control of select networking components
(e.g., host firewalls).
• Examples: Amazon EC2, GoGrid, iland, Rackspace Cloud Servers,
ReliaCloud.
7
Service Models (cont.)
8
Deployment Models
l Private Cloud:
- The cloud is operated solely for an organization. It may be
managed by the organization or a third party and may exist on
premise or off premise.
l Community Cloud:
- The cloud infrastructure is shared by several organizations and
supports a specific community that has shared concerns.
- It may be managed by the organizations or a third party and may
exist on premise or off premise
l Public Cloud:
- The cloud infrastructure is made available to the general public
or a large industry group and it is owned by an organization
selling cloud services.
l Hybrid cloud:
- The cloud infrastructure is a composition of two or more
clouds (private, community, or public).
Advantages of Cloud Computing
l Cloud computing do not need high quality equipment for user, and
it is very easy to use.
l Provides dependable and secure data storage center.
l Reduce run time and response time.
l Cloud is a large resource pool that you can buy on-demand service.
l Scale of cloud can extend dynamically providing nearly infinite
possibility for users to use internet.
Infrastructure as a Service
(IaaS)
Amazon EC2
What is Infrastructure as a Service ?
• A category of cloud services which provides capability to provision
processing, storage, intra-cloud network connectivity services, and
other fundamental computing resources of the cloud infrastructure.
Source- [ITU –Cloud Focus Group]
• AWS Console
• http://console.aws.amazon.com
• Command Line Tools
• Programmatic Interface
• EC2 APIs
• AWS SDK
AWS Management Console
References
Augmented Reality
Mobile Social
Networks and
Crowdsourcing
Multimedia and
Data Streaming
58
Mobile Cloud Computing
Ecosystem
Public Cloud Providers
Devices, Users
and Apps
59
2-Tier Cloud Architecture
Wi-Fi Access
Point
RTT:
~80ms
60
Mobile Cloud Computing
Ecosystem
Devices, Users
and Apps
61
How can we Optimally and Fairly assign services to mobile users using a 2-tier
cloud architecture (knowing user mobility pattern) considering power
consumed on mobile device, delay users experience and price as the main
criteria for optimization.
Mobility-Aware
Modeling Mobile
Service Allocation
Apps
Algorithms
Middleware
Scalability Architecture and
System Design
62
Modeling Mobile Applications
as Workflows
• .Model apps as consisting of a series of logical steps
known as a Service with different composition patterns:
S1 S2 S3 S1
SEQ LOOP
S3 S3
1 P1
S1 S4 S1 S4
S2 S2
1 P2
𝑷𝟏 + 𝑷𝟐 = 𝟏, 𝑷𝟏 , 𝑷𝟐 ∈ {𝟎, 𝟏}
AND: CONCURRENT FUNCTIONS XOR: CONDITIONAL FUNCTIONS
S3 S6
0 Par1
Start End
S1 S4 S5 S8
1 S2 Par2 S7
63
Modeling Mobile Applications as Workflows
t1 t2 t3 t4 tN
l1
W1
l2 Wk+1 Wj+1
Wj
l3 Wk
ln Location-Time Workflow
64
Quality of Service (QoS)
𝒊#𝟏 𝒊#𝟏
65
Normalization
• different QoSes have different dimensions (Price->$, power-
>joule, delay->s)
• We need a normalization process to make them comparable.
𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓𝒎𝒂𝒙 − 𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓
The normalized , 𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓𝒎𝒂𝒙 ≠
power, price 𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓𝒎𝒂𝒙 − 𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓𝒎𝒊𝒏
𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓 ≝
𝑾(𝒖𝒌)𝒑𝒐𝒘𝒆𝒓𝒎𝒊𝒏
and delay is the
real number in
interval [0,1]. 𝟏, 𝒆𝒍𝒔𝒆
𝒎𝒂𝒙
The higher the 𝑾(𝒖𝒌 )𝜯 𝑳 𝒑𝒐𝒘𝒆𝒓
− 𝑾(𝒖𝒌 )𝜯 𝑳 𝒑𝒐𝒘𝒆𝒓 𝒎𝒂𝒙
normalized
𝒎𝒂𝒙 𝒎𝒊𝒏
, 𝑾(𝒖𝒌 )𝜯 𝑳 𝒑𝒐𝒘𝒆𝒓
≠
𝑳 𝑳
QoS the better 𝑾(𝒖𝒌 )𝜯 − 𝑾(𝒖𝒌 )𝜯
the execution 𝑾(𝒖𝒌 )𝜯 𝑳 𝒑𝒐𝒘𝒆𝒓
≝ 𝒑𝒐𝒘𝒆𝒓 𝒑𝒐𝒘𝒆𝒓
𝒎𝒊𝒏
plan is. 𝑾(𝒖𝒌 )𝜯 𝑳 𝒑𝒐𝒘𝒆𝒓
𝟏, 𝒆𝒍𝒔𝒆
M. Reza. Rahimi, Nalini Venkatasubramanian, Sharad Mehrotra and Athanasios Vasilakos, "MAPCloud: Mobile
Applications on an Elastic and Scalable 2-Tier Cloud Architecture", In the 5th IEEE/ACM International Conference
on Utility and Cloud Computing (UCC 2012), USA, Nov 2012. 66
Optimal Service Allocation for
Single Mobile User
𝑭𝒂𝒊𝒓𝒏𝒆𝒔𝒔 𝑈𝑡𝑖𝑙𝑖𝑡𝑦
𝟏
𝒎𝒂𝒙 9 𝒎𝒊𝒏 𝑾(𝒖𝒌 )𝚻 𝑳 , 𝑾(𝒖𝒌 )𝚻 𝑳 , 𝑾(𝒖𝒌 )𝚻 𝑳
|𝑼| 𝒑𝒐𝒘𝒆𝒓 𝒑𝒓𝒊𝒄𝒆 𝒅𝒆𝒍𝒂𝒚
𝒖𝒌
𝑺𝒖𝒃𝒋𝒆𝒄𝒕 𝒕𝒐: 𝟏
𝑾(𝒖𝒌 )𝚻 𝑳 ≤ 𝑩𝒑𝒐𝒘𝒆𝒓 ,
|𝑼| 𝒑𝒐𝒘𝒆𝒓
𝟏
𝑾(𝒖𝒌 )𝚻 𝑳 𝒑𝒓𝒊𝒄𝒆 ≤ 𝑩𝒑𝒓𝒊𝒄𝒆 ,
|𝑼|
𝟏
𝑾(𝒖𝒌 )𝚻 𝑳 𝒅𝒆𝒍𝒂𝒚 ≤ 𝑩𝒅𝒆𝒍𝒂𝒚 ,
|𝑼|
𝜿 ≤ 𝑪𝒂𝒑(𝑳𝒐𝒄𝒂𝒍_𝑪𝒍𝒐𝒖𝒅𝒔)
𝜿 ≜ 𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝒎𝒐𝒃𝒊𝒍𝒆 𝑼𝒔𝒆𝒓𝒔 𝒖𝒔𝒊𝒏𝒈
𝒔𝒆𝒓𝒗𝒊𝒄𝒆𝒔 𝒐𝒏 𝒍𝒐𝒄𝒂𝒍 𝒄𝒍𝒐𝒖𝒅
∀ 𝒖𝒌 ∈ 𝒖𝟏 , … , 𝒖|𝑼|
67
Brute-Force Search
(BFS)
Simulated
Annealing Based
Service Allocation Algorithms for
Single Mobile User and Mobile Group-Ware Genetic Based
Applications
Greedy Based
Random Service
Allocation (RSA)
68
MAPCloud Middleware
Architecture
Cloud Service Registry
QoS-Aware
MAPCloud LTW Service DB Local and
Mobile Client Engine Mobile User Public
Log DB Cloud Pool
MAPCloud Middleware 69
• M. Satyanarayanan, P. Bahl, R. Cáceres, N. Davies " The Case for VM-Based
Cloudlets in Mobile Computing",PerCom 2009.
• M. Reza Rahimi, Jian Ren, Chi Harold Liu, Athanasios V. Vasilakos, and Nalini
Venkatasubramanian, "Mobile Cloud Computing: A Survey, State of Art and
Future Directions", in ACM/Springer Mobile Application and Networks (MONET),
Special Issue on Mobile Cloud Computing, Nov. 2013.
• Reza Rahimi, Nalini Venkatasubramanian, Athanasios Vasilakos, "MuSIC: On
Mobility-Aware Optimal Service Allocation in Mobile Cloud Computing", In the
IEEE 6th International Conference on Cloud Computing, (Cloud 2013), Silicon
Valley, CA, USA, July 2013
70