Transcript
Page 1: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

상지대학교 컴퓨터공학과고 광 만

Mobile Cloud Offloading

MobileCloudOffloading,[email protected] 5/1/17

Page 2: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

People Truly Love Their Smartphones

Mobile Cloud Offloading, [email protected]

2

5/1/17

Page 3: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Source of Dissatisfaction

Mobile Cloud Offloading, [email protected]

3

5/1/17

Page 4: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Process Performance Improvement

5/1/17Mobile Cloud Offloading, [email protected]

4

Page 5: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Battery Lifetime Capacity Improvement

5/1/17Mobile Cloud Offloading, [email protected]

5

Page 6: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Reasons for SLOW Enhancement in Battery Lifetime

5/1/17Mobile Cloud Offloading, [email protected]

6

Batterycapacityiscontinuallyincreasing

EnergyEfficiencyISSUES

But,powerconsumptionofamobiledevicesremainssteadyduetodemandfornewhardwaretechnologies¤ Higherresolutiondisplay¤ HigherpixelCamera¤ Fasterwirelessnetwork¤ NewsensorsincludingNFC,fingerprintscanner,etc.

Page 7: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

5/1/17Mobile Cloud Offloading, [email protected]

7

ForthcomingApplications,SW,technologiesdemandextremelyhigherperformance

¤ MultimediaProcessing¤ Holographicand3Dmediaprocessing¤ Bigdataprocessing¤ AugmentedReality

Page 8: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Mobile apps can’t reach their full potential

5/1/17Mobile Cloud Offloading, [email protected]

8

AugmentedReality

SpeechRecognitionandSynthesis InteractiveGames

Slow,LimitedorInaccurate

TooCPUintensive Limited

PowerIntensive

Notonparwithdesktopcounterparts

Page 9: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Problems Ahead

5/1/17Mobile Cloud Offloading, [email protected]

9

WEwant

¤ tokeeppowerconsumptionconstraint

¤ todrasticallyboostupperformance

Page 10: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Computation Offloading

5/1/17Mobile Cloud Offloading, [email protected]

10

Let’sshiftdifficultanddirtyworkstosomeoneelse,CLUOD.

Computation‐intensiveOffloading

Page 11: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Computation Offloading Architecture

5/1/17Mobile Cloud Offloading, [email protected]

11

Page 12: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

5/1/17Mobile Cloud Offloading, [email protected]

12

Offloadingsolutiontoaugmentthesemobilesystems’capabilitiesbymigratingcomputationtomoreresourcefulcomputers(i.e.,servers)thisisdifferentfromthetraditionalclient‐serverarchitecture.

Asignificantamountofresearchhasbeenperformedoncomputationoffloading:makingitfeasiblemakingoffloadingdecisionsdevelopingoffloadinginfra‐ structures

Page 13: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

■ Issue1,■ Offloadingmaysaveenergyandimproveperformanceonmobilesystems.

■ However,thisusuallydependsonmanyparameters■ thenetworkbandwidths■ theamountsofdataexchangedthroughthenetworks.

■ Manyalgorithmshavebeenproposedtomakeoffloadingdecisionstoimproveperformanceorsaveenergy

13

Page 14: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

■ Issues2,■ Offloadingrequiresaccesstoresourcefulcomputersforshortdurationsthroughnetworks,wiredorwireless.

■ Theseserversmayusevirtualizationtoprovideoffloadingservicessothatdifferentprogramsandtheirdatacanbeisolatedandprotected.

■ Issues3,■ Offloadingmaybeperformedatthelevelsof

■ methods,■ tasks■ applications■ virtualmachines

14

Page 15: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

■ Thecommonapproachesusedtomakeoffloadingdecisions:■ whytooffload(improveperformanceorsaveenergy)■ whentodecideoffloading(staticvsdynamic)■ whatmobilesystemsuseoffloading(laptops,PDAs,robots,sensors)

■ typesofapplications(multimedia,gaming,calculators,texteditors,predictors)

■ infrastructuresforoffloading(gridandcloudcomputing).

15

Page 16: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

16

Page 17: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Case Study: Face‐detection

5/1/17Mobile Cloud Offloading, [email protected]

17

Page 18: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Case Study: Real‐time Subtitle Generator

5/1/17Mobile Cloud Offloading, [email protected]

18

Page 19: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

More Offloading Extension 

5/1/17Mobile Cloud Offloading, [email protected]

19

● MobileCloudComputing(MCC)● ComputationOffloading+CapabilityExtension

● Computation‐intensiveOffloading● Improveperformanceandenergyefficiency● Communication‐intensiveOffloading

● CapabilityExtension● Enableimpossiblethingsbyusingcloudresourceotherthan

processor

Page 20: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Comparison among RPC, RMI, .Net Remoting and Offloading

5/1/17Mobile Cloud Offloading, [email protected]

20

Page 21: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Types of Computation Offloading

5/1/17Mobile Cloud Offloading, [email protected]

21

Page 22: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Method‐level Offloading

5/1/17Mobile Cloud Offloading, [email protected]

22

Page 23: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

MAUI: Mobile Assistance Using Infrastructure

5/1/17Mobile Cloud Offloading, [email protected]

23

MAUIContributions:CombineextensiveprofilingwithanILPsolver¤ Makesdynamicoffloaddecisions¤ Optimizeforenergyreduction¤ Profile:device,network,application

Leveragemodernlanguageruntime(.NETCLR)¤ Tosimplifyprogrampartitioning¤ Reflection,serialization,strongtyping

Page 24: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

MAUI Architecture

5/1/17Mobile Cloud Offloading, [email protected]

24

Maui serverSmartphone

Application

ClientProxy

Profiler

Solver

MauiRuntime

ServerProxy

Profiler

Solver

Maui Runtime

Application

RPC

RPC

MauiController

Page 25: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

How Does a Programmer Use MAUI?

5/1/17Mobile Cloud Offloading, [email protected]

25

Goal:makeitdead‐simpletoMAUI‐ifyapps¤ Buildappasastandalonephoneapp¤ Add.NETattributestoindicate“remoteable”¤ Followasimplesetofrules

Page 26: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Language Run‐Time Support For Partitioning

5/1/17Mobile Cloud Offloading, [email protected]

26

Portability:¤ Mobile(ARM)vsServer(x86)¤ .NETFrameworkCommonIntermediateLanguage

Type‐SafetyandSerialization:¤ Automatestateextraction

Reflection:¤ Identifiesmethodswith[Remoteable]tag¤ AutomatesgenerationofRPCstubs

Page 27: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

MAUI Profiler

5/1/17Mobile Cloud Offloading, [email protected]

27

ProfilerCallgraph

ExecutionTime

Statesize

yNetworkLatency

hNetworkBandwidth

DeviceProfileCPUCycles

NetworkPowerCostNetworkDelay

ComputationalDelay

ComputationalPowerCostComputationalDelay

AnnotatedCallgraph

Page 28: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Is Global Program Analysis Needed?

5/1/17Mobile Cloud Offloading, [email protected]

28

Yes!– ThissimpleexamplefromFaceRecognitionappshowswhylocalanalysisfails.

FindMatch900mJ

InitializeFaceRecognizer5000mJ

1000mJ

DetectAndExtractFaces

15000mJ

UserInterface

Cheapertodolocal

Page 29: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

5/1/17Mobile Cloud Offloading, [email protected]

29

FindMatch

InitializeFaceRecognizer

1000mJ

DetectAndExtractFaces

UserInterface

25900mJ

Cheapertooffload

Page 30: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Can MAUI Adapt to Changing Conditions?

5/1/17Mobile Cloud Offloading, [email protected]

30

Adaptto:¤ NetworkBandwidth/LatencyChanges¤ Variabilityonmethod’scomputationalrequirements

Experiment:¤ Modifiedofftheshelfarcadegameapplication¤ PhysicsModeling(homingmissiles)¤ Evaluatedunderdifferentlatencysettings

Page 31: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

How much can MAUI improve performance?

5/1/17Mobile Cloud Offloading, [email protected]

31

FaceRecognizer

Page 32: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Latency to server impacts the opportunities for fine‐grained offload

5/1/17Mobile Cloud Offloading, [email protected]

32

Upto40%energysavingsonWi‐Fi

SolverwoulddecidenottooffloadArcadeGame

Page 33: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Can MAUI Run Resource‐Intensive Applications?

5/1/17Mobile Cloud Offloading, [email protected]

33

CPUIntensiveevenonaCore2DuoPC

CanberunonthephonewithMAUI

Translator

Page 34: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Can MAUI Run Resource‐Intensive Applications?

5/1/17Mobile Cloud Offloading, [email protected]

34

CPUIntensiveevenonaCore2DuoPC

CanberunonthephonewithMAUI

Translator

Page 35: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Cuckoo: A Computation Offloading Framework

5/1/17Mobile Cloud Offloading, [email protected]

35

Page 36: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

COMET: Code Offload by Migration Execution Transparently

5/1/17Mobile Cloud Offloading, [email protected]

36

Page 37: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Is Offloading Really Effective ??

5/1/17Mobile Cloud Offloading, [email protected]

37

Page 38: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Is Offloading Really Effective ??

5/1/17Mobile Cloud Offloading, [email protected]

38

Page 39: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Is Offloading Really Effective ??

5/1/17Mobile Cloud Offloading, [email protected]

39

Page 40: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Is Offloading Really Effective ??

5/1/17Mobile Cloud Offloading, [email protected]

40

Page 41: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Mobile Edge Computing

5/1/17Mobile Cloud Offloading, [email protected]

41

● MobileEdgeComputingenablesmobilesubscriberstoaccessITandcloudcomputingservicesatthecloseproximitywithintherangeofRadioAccessNetwork(RAN).

● ThemaingoalofMobileEdgeComputingtoreducelatencybybringingthecomputationandstoragecapacityfromthecoreWANtotheedgenetwork.

● MobileEdgeComputingcanbedefinedas

“MobileEdgeComputingisamodelforenablingbusinessoriented,cloudcomputingplatformwithintheradioaccessnetworkatthecloseproximityofmobilesubscriberstoservedelaysensitive,contextawareapplications.”

Page 42: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

5/1/17Mobile Cloud Offloading, [email protected]

42

Page 43: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Enpiler: Energy‐aware offloading framework through comPiler code analysis techniques

5/1/17Mobile Cloud Offloading, [email protected]

43

Page 44: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

DisCo: Distributed and Concurrent Offloading Framework for Smart IoT Applications in Mobile Edge Cloud Computing Environments

5/1/17Mobile Cloud Offloading, [email protected]

44

Mobile EdgeServer - 2

Mobile EdgeServer - 3

Mobile EdgeServer - n

Mobile EdgeServer - 1

(AR/VR Gaming Processing)

Mobile Device

Mobile Edge Server Side

(Sensing BigdataProcessing)

Mobile Device

(Multimedia Image Processing)

Mobile Device

Concurrent Modules

Distributed Offloading

Concurrent Modules

Concurrent Modules

Key ManagementServer

Page 45: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

Selected Publications

5/1/17Mobile Cloud Offloading, [email protected]

45

■ 고광만(교신) 외 4인, "Enabling Far-Edge Analytics: Performance Profiling of Frequent Pattern Mining Algorithms," Sensors(IF: 2.033, Q2), April 2017.

■ 고광만(교신) 외 4인, "SIMDOM: A Framework for SIMD Instruction Translation and Offloading in Heterogeneous MCC Architectures," Transactions on Emerging Telecommunications Technologies (IF: 1.130, Q1), February 2017.

■ 고광만(교신) 외 3인, Optimization Techniques to Enable Execution Offloading for 3D Video Games", Multimedia Tools and Applications(IF: 1.345, Q2), July 2016.

■ 고광만(공동) 5인, "A Case and Framework for Code Analysis Based Mobile Application Energy Estimation," International Journal of Communication Systems (IF 1.02, Q3), December 2016.

■ 고광만(공동) 외 6인, "Towards native code offloading based MCC frameworks for multimedia applications: A survey," Journal of Network and Computer Applications(IF: 2.413, Q1), November 2016.

■ 고광만(교신), "Reduction of Media Servers Overload with Energy-saving Adaptive Streaming", Mobile Information Systems(IF: 1.463, Q2), Article ID 7462821, Jan., 2016.

Page 46: Mobile Cloud Offloading - Kangwoncs.kangwon.ac.kr/~ysmoon/courses/2017_1/grad/09.pdfMobile Edge Computing Mobile Cloud Offloading, kkman@sangji.ac.kr 5/1/17 41 Mobile Edge Computing

5/1/17Mobile Cloud Offloading, [email protected]

46

■ Q&A■ ThankYou


Recommended