Top Banner
The Convergence of Mobile and Cloud Computing Ramesh Govindan [email protected] University of Southern California 1
32

The Convergence of Mobile and Cloud Computing Ramesh Govindan [email protected] University of Southern California 1.

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

The Convergence of Mobile and Cloud Computing

Ramesh [email protected]

University of Southern California

1

Page 2: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

2

A Seductive Question…

Network Fabric

The CloudWhen 4 billion smartphones are Internet-connected, how (if at all)

should the Internet architecture change?

Page 3: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Bridging the Capability Gap

3

Capability

Time

As the Smartphone becomes the primary computing device…As the Smartphone becomes the primary computing device…

What the device is capable ofWhat the device is capable of

What users will wantWhat users will want

Page 4: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Bridging the Capability Gap

Dealing with ConstraintsDealing with Constraints

Energy-Delay Tradeoffs in a Video Documentation SystemEnergy-Delay Tradeoffs in a Video Documentation System

Overcoming ConstraintsOvercoming Constraints

Toward Cloud-Assisted Interactive Mobile PerceptionToward Cloud-Assisted Interactive Mobile Perception

4

Page 5: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Energy Constraint

5

Battery Life is an issue for UsabilityBattery Life is an issue for Usability

Opportunity: Multiple peripherals and sensorsOpportunity: Multiple peripherals and sensors

Intelligently use peripherals and sensors to reduce energy

consumption

Page 6: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Video Collection 10 years ago

Video Collection Today

M. Ra, J. Paek, A. Sharma, R. Govindan, M. Krieger, M. Neely, “Energy-Delay Tradeoffs in Smartphone Applications”, ACM Mobisys 2010.

Page 7: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Transportation SecurityPost-Disaster Urban Planning

Documenting Post-Katrina

Reconstruction

Page 8: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Delay-ToleranceDelay-Tolerance

Many of our users are delay-tolerantTransportation Security

Transportation Security

Dealing withChild development

Issues

Dealing withChild development

Issues

Planning ResearchPlanning Research

But tolerance varies considerably

Page 9: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

DownloadDownload UploadUploadDelay-Tolerant

Page 10: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Transferring Large Volumes of DataTransferring Large Volumes of Data

Leverage Delay ToleranceLeverage Delay Tolerance

Reduce the energy costReduce the energy cost

Page 11: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

EDGE/3G WiFi

Energy(J/bit)

Availability

ChannelQuality

HIGHHIGH LOWLOW

HIGHHIGH LOWLOW

Time-VaryingTime-Varying Time-VaryingTime-Varying

Delay transmission

Adapt to wireless channel quality

Page 12: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

EDGE 3G WiFi

video 1arrives

video 2arrives

40 KB/s

200 KB/s

50 KB/s

10 KB/s

TIMETIME

Page 13: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

TIMETIME

EDGE 3G WiFi

video 1video 2

DelayDelayEnergyEnergy

246246242242

9595

305305

5050

320320

JJ secsec

Min-DelayWiFi-OnlyEnergy-Optimal

Optimal can save significant energyOptimal can save significant energy

MDMD MEME EOEO MDMD MEME EOEO

Challenge: How to design the optimal trade-off algorithm?

Challenge: How to design the optimal trade-off algorithm?

Page 14: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Whether, When, WhichWhether, When, Which

Delayed Transmission

Delayed Transmission

TunableDelay-Tolerance

TunableDelay-Tolerance

SALSA

Page 15: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Ignore link qualityIgnore link quality

SALSAKnow-WiFiStatic-DelayWiFi-onlyMin-Delay

Ignore queue backlogIgnore queue backlog

Since SALSA takes all factors into account,

it performs closest to the optimal

Since SALSA takes all factors into account,

it performs closest to the optimal

Page 16: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Additional Delay

Gain? Loss?Save 2% ~ 80% of battery capacity

Save 2% ~ 80% of battery capacity

+ 2 min ~ 2 hour

+ 2 min ~ 2 hour

Energy Savings

Battery

Page 17: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Bridging the Capability Gap

Dealing with ConstraintsDealing with Constraints

Energy-Delay Tradeoffs in a Video Documentation SystemEnergy-Delay Tradeoffs in a Video Documentation System

Overcoming ConstraintsOvercoming Constraints

Toward Cloud-Assisted Interactive Mobile PerceptionToward Cloud-Assisted Interactive Mobile Perception

23

Page 18: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

- Interactive. (low latency 10 ~ 100ms)- High data rate. (media data)- Computationally Intensive. (ML/Vision-based algorithms)

- Interactive. (low latency 10 ~ 100ms)- High data rate. (media data)- Computationally Intensive. (ML/Vision-based algorithms)

M. Ra, A. Sheth, L. Mummert, P. Pillai, D. Wetherall, Odessa: Enabling Interactive Perception Applications on Mobile Devices, ACM MobiSys 2011

Page 19: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Challenge

ConstraintConstraint

Many perception applications require significant compute power Many perception applications require significant compute power

Overcoming the constraintOvercoming the constraint

Offload computation to the “cloud”Offload computation to the “cloud”

Offloading decision is non-trivial, since wirelessnetwork bandwidth is also constrained

Offloading decision is non-trivial, since wirelessnetwork bandwidth is also constrained

26

Page 20: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Odessa

A system that automatically and dynamicallyoffloads components of a perception data-flow to the cloud

A system that automatically and dynamicallyoffloads components of a perception data-flow to the cloud27

Page 21: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Applications

Face RecognitionFace Recognition

Pose EstimationPose EstimationGesture RecognitionGesture Recognition

29

Page 22: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Odessa Goals and Techniques

High Throughput (frames per second) Low Latency (time to process a single frame)

High Throughput (frames per second) Low Latency (time to process a single frame)

OffloadingParallelismOffloadingParallelism

Page 23: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Motivation: Offloading

Variable on Inputsfor Face Recognition

Variable on Inputsfor Face Recognition

Variability on network conditionsVariability on network conditions

Variability on different devicesVariability on different devices

Offloading decision should be adaptive.A static decision may not work.

Offloading decision should be adaptive.A static decision may not work.

Page 24: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Parallelism1. Data Parallelism

2. Pipeline Parallelism

Frame 1Frame 1

Frame 2Frame 2 Frame 1Frame 1Frame 3Frame 3

Frame 1Frame 1

Frame 2Frame 2

Frame 3Frame 3

ThroughputMakespanThroughputMakespan

ThroughputThroughput

Page 25: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Motivation: Data Parallelism

Accuracy and execution time of face detection stage (face recognition)

Avg. execution time of SIFT feature extraction stage.(object and pose recognition)

The level of data parallelism affects accuracy and performance much,

and it should consider precedence partition.

The level of data parallelism affects accuracy and performance much,

and it should consider precedence partition.

Page 26: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Motivation: Pipelining

- Desirable # of tokens may be different.- How do we even know right # of tokens a priori?- Desirable # of tokens may be different.- How do we even know right # of tokens a priori?

A static choice of pipeline parallelism can lead to suboptimal makespan

or leave the pipeline underutilized.

A static choice of pipeline parallelism can lead to suboptimal makespan

or leave the pipeline underutilized.

Page 27: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Odessa Design

Lightweight Application Profiler

Lightweight Application Profiler

Uses statistics from application pipeline to make decisions

Uses statistics from application pipeline to make decisions

Decision EngineDecision EngineAdapts data parallelism

and stage offloading.Adapts data parallelism

and stage offloading.

Adaptspipeline parallelism

Adaptspipeline parallelism

Page 28: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Profiler

Stage

Stage

Stage Stage

Stage

Stage

Start Stage

DecisionEngine

DecisionEngine

PiggybackingPiggybacking

Suppressduplicatedinformation

Suppressduplicatedinformation

Report statistics to the decision

engine per frame

Report statistics to the decision

engine per frame

Report

Light-weightLight-weight

Cycles,Parallel Stages

Cycles,Parallel Stages

Page 29: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Decision Engine

Pick a Bottleneck Stage (Start Point)

Compute Stage?

Estimate Necessary Costs

Choose the Best Choice; Offload, Spawn or Do nothing.

Bottleneck is Network Edge

Considerdata parallelism and

stage offloadingsimultaneously

Considerdata parallelism and

stage offloadingsimultaneously

No

Yes

Incremental Algorithm

Incremental Algorithm

Page 30: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Evaluation

ThroughputThroughput

MakespanMakespan

Odessa finds an optimal configuration automatically.

Odessa finds an optimal configuration automatically.

Page 31: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Comparison

FPS: Higher is betterFPS: Higher is better Makespan: Lower is betterMakespan: Lower is better

Odessa shows 3x improvement over competing strategies

Odessa shows 3x improvement over competing strategies

Page 32: The Convergence of Mobile and Cloud Computing Ramesh Govindan ramesh@usc.edu University of Southern California 1.

Convergence

Interesting research opportunities at theboundary between mobile and cloud computing

Interesting research opportunities at theboundary between mobile and cloud computing

40