First Hop Offloading of Mobile DAG Computations

Slides:



Advertisements
Similar presentations
The role of virtualisation in the dense wireless networks of the future Sokol Kosta CINI.
Advertisements

SkewReduce YongChul Kwon Magdalena Balazinska, Bill Howe, Jerome Rolia* University of Washington, *HP Labs Skew-Resistant Parallel Processing of Feature-Extracting.
EHarmony in Cloud Subtitle Brian Ko. eHarmony Online subscription-based matchmaking service Available in United States, Canada, Australia and United Kingdom.
SELF-ORGANIZING MEDIA ACCESS MECHANISM OF A WIRELESS SENSOR NETWORK AHM QUAMRUZZAMAN.
Algorithms in sensor networks By: Raghavendra kyatham.
1 Sensor Relocation in Mobile Sensor Networks Guiling Wang, Guohong Cao, Tom La Porta, and Wensheng Zhang Department of Computer Science & Engineering.
Introduction Future wireless systems will be characterized by their heterogeneity - availability of multiple access systems in the same physical space.
Causality Interface  Declares the dependency that output events have on input events.  D is an ordered set associated with the min ( ) and plus ( ) operators.
SANS A Simple Ad hoc Network Simulator Nicolas Burri Roger Wattenhofer Yves Weber Aaron Zollinger.
L i a b l eh kC o m p u t i n gL a b o r a t o r y Performance Yield-Driven Task Allocation and Scheduling for MPSoCs under Process Variation Presenter:
1 A Novel Mechanism for Flooding Based Route Discovery in Ad hoc Networks Jian Li and Prasant Mohapatra Networks Lab, UC Davis.
On the Task Assignment Problem : Two New Efficient Heuristic Algorithms.
On Exploiting Dynamic Execution Patterns for Workload Offloading in Mobile Cloud Applications Wei Gao, Yong Li, and Haoyang Lu The University of Tennessee,
ThinkAir: Dynamic Resource Allocation and Parallel Execution in Cloud for Mobile Code Offloading Sokol Kosta, Pan Hui Deutsche Telekom Labs, Berlin, Germany.
New Challenges in Cloud Datacenter Monitoring and Management
A Budget Constrained Scheduling of Workflow Applications on Utility Grids using Genetic Algorithms Jia Yu and Rajkumar Buyya Grid Computing and Distributed.
Tufts Wireless Laboratory School Of Engineering Tufts University “Network QoS Management in Cyber-Physical Systems” Nicole Ng 9/16/20151 by Feng Xia, Longhua.
Cloud Computing 1. Outline  Introduction  Evolution  Cloud architecture  Map reduce operation  Platform 2.
Network Aware Resource Allocation in Distributed Clouds.
A Distributed Framework for Correlated Data Gathering in Sensor Networks Kevin Yuen, Ben Liang, Baochun Li IEEE Transactions on Vehicular Technology 2008.
An Autonomic Framework in Cloud Environment Jiedan Zhu Advisor: Prof. Gagan Agrawal.
Mobile Relay Configuration in Data-Intensive Wireless Sensor Networks.
1 Time & Cost Sensitive Data-Intensive Computing on Hybrid Clouds Tekin Bicer David ChiuGagan Agrawal Department of Compute Science and Engineering The.
ANTs PI Meeting, Nov. 29, 2000W. Zhang, Washington University1 Flexible Methods for Multi-agent distributed resource Allocation by Exploiting Phase Transitions.
Stochastic DAG Scheduling using Monte Carlo Approach Heterogeneous Computing Workshop (at IPDPS) 2012 Extended version: Elsevier JPDC (accepted July 2013,
Autonomic scheduling of tasks from data parallel patterns to CPU/GPU core mixes Published in: High Performance Computing and Simulation (HPCS), 2013 International.
Resource Mapping and Scheduling for Heterogeneous Network Processor Systems Liang Yang, Tushar Gohad, Pavel Ghosh, Devesh Sinha, Arunabha Sen and Andrea.
Chapter 5 McGraw-Hill/Irwin Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved.
A new Ad Hoc Positioning System 컴퓨터 공학과 오영준.
1 Iterative Integer Programming Formulation for Robust Resource Allocation in Dynamic Real-Time Systems Sethavidh Gertphol and Viktor K. Prasanna University.
Dzmitry Kliazovich University of Luxembourg, Luxembourg
Adaptive Sleep Scheduling for Energy-efficient Movement-predicted Wireless Communication David K. Y. Yau Purdue University Department of Computer Science.
ApproxHadoop Bringing Approximations to MapReduce Frameworks
Xi He Golisano College of Computing and Information Sciences Rochester Institute of Technology Rochester, NY THERMAL-AWARE RESOURCE.
Presented by: Dardan Xhymshiti Spring 2016:. Authors: Publication:  ICDM 2015 Type:  Research Paper 2 Michael ShekelyamGregor JosseMatthias Schubert.
Data Consolidation: A Task Scheduling and Data Migration Technique for Grid Networks Author: P. Kokkinos, K. Christodoulopoulos, A. Kretsis, and E. Varvarigos.
Application-Aware Traffic Scheduling for Workload Offloading in Mobile Clouds Liang Tong, Wei Gao University of Tennessee – Knoxville IEEE INFOCOM
-1/16- Maximum Battery Life Routing to Support Ubiquitous Mobile Computing in Wireless Ad Hoc Networks C.-K. Toh, Georgia Institute of Technology IEEE.
Introduction to Mobile-Cloud Computing. What is Mobile Cloud Computing? an infrastructure where both the data storage and processing happen outside of.
Dynamic Mobile Cloud Computing: Ad Hoc and Opportunistic Job Sharing.
A Hierarchical Edge Cloud Architecture for Mobile Computing IEEE INFOCOM 2016 Liang Tong, Yong Li and Wei Gao University of Tennessee – Knoxville 1.
Resource Specification Prediction Model Richard Huang joint work with Henri Casanova and Andrew Chien.
Input and Output Optimization in Linux for Appropriate Resource Allocation and Management James Avery King.
In the name of God.
Md Baitul Al Sadi, Isaac J. Cushman, Lei Chen, Rami J. Haddad
Impact of Interference on Multi-hop Wireless Network Performance
2010 IEEE Global Telecommunications Conference (GLOBECOM 2010)
Spark Presentation.
Presented by Munezero Immaculee Joselyne PhD in Software Engineering
A Study of Group-Tree Matching in Large Scale Group Communications
Protecting your mobile devices away from virus by a cloud-based approach Wei Wu.
Algorithms for Big Data Delivery over the Internet of Things
Physical Architecture Layer Design
Introduction to Wireless Sensor Networks
Liang Chen Advisor: Gagan Agrawal Computer Science & Engineering
Supporting Fault-Tolerance in Streaming Grid Applications
Collaborative Offloading for Distributed Mobile-Cloud Apps
Yue Zhang, Nathan Vance, and Dong Wang
CLUSTER COMPUTING.
Carlos J. Bernardos, Alain Mourad, Akbar Rahman
Project Overview Konstantinos Tserpes, ICCS/NTUA Final Review Meeting
Resource Allocation for Distributed Streaming Applications
Adaptive Offloading for Pervasive Computing
Distributed Edge Computing
Adaptive Query Processing (Background)
R, Zhang, A. Chien, A. Mandal, C. Koelbel,
A workload-aware energy model for VM migration
Communication Driven Remapping of Processing Element (PE) in Fault-tolerant NoC-based MPSoCs Chia-Ling Chen, Yen-Hao Chen and TingTing Hwang Department.
EdgeWise: A Better Stream Processing Engine for the Edge
Towards Predictable Datacenter Networks
Presentation transcript:

First Hop Offloading of Mobile DAG Computations Vincenzo De Maio, Ivona Brandić Institute of Information Systems Engineering Vienna University of Technology {vincenzo,ivona}@ec.tuwien.ac.at The 18th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing (CCGrid 2018) May 1-4, 2018, Washington DC, USA

Motivation Increased complexity of mobile application requires an increasing amount of processing power and energy; Mobile devices have limited processing power and battery, therefore there is a necessity to enhance capabilities of mobile devices by employing cloud resources; Cyberforaging Several works target offloading of mobile computation on Cloud resources Mobile Cloud Computing (MCC) Offloading on Cloud might hinder latency Mobile Edge Cloud Offloading (MECO) 2

Edge Computing IDEA: Bringing computation closer to data sources, in order to Reduce latency; Provide location-based services. Massive DC 1 Massive DC 2 Massive DC n Big Data Analysis Storage services for archiving … GPU VMs New form of distributed systems … New forms of data processing: in situ vs. in transit computing, continuum computing continuum computing - apps, tools, experiences, content that's available across devices Micro DC 1 Micro DC n … … 3

Summary Introduction Theoretical model Simulation Framework Results Future work

MOBILE APPLICATION DEPLOYMENT Offloading overview DECISION ENGINE APPLICATION PROFILER SYSTEM MONITORING USER PREFERENCES REMOTE EDGE/CLOUD INFRASTRUCTURE 1. Running mobile application 3. Compute deployment 2. Extract application DAG structure 2. Analyze monitoring data OFFLOADING ENGINE MOBILE APPLICATION DEPLOYMENT 5

Example DAG Edges define interdependencies between tasks DAG of Facerecognizer App Edges define interdependencies between tasks A task needs the output of a previous one before starting its execution Computation-intensive Data transfer Not-offloadable 6

Offloading Model – Main Actors Infrastructure A graph 𝐼=( 𝑁 𝐼 , 𝐿 𝐼 ) Nodes modelling computational nodes: Mobile device m𝑑=(𝐶𝑂𝑅𝐸𝑆, 𝑀𝐼𝑃𝑆, 𝑅𝐴𝑀, 𝑆𝑇𝑂𝑅,𝐵𝐴𝑇𝑇) Edge nodes 𝑒=(𝐶𝑂𝑅𝐸𝑆, 𝑀𝐼𝑃𝑆, 𝑅𝐴𝑀, 𝑆𝑇𝑂𝑅, 𝑝 𝑒 ) Cloud nodes 𝑐=(𝐶𝑂𝑅𝐸𝑆, 𝑀𝐼𝑃𝑆, 𝑅𝐴𝑀, 𝑆𝑇𝑂𝑅, 𝑝 𝑐 ) Edges modelling links 𝑙=( 𝑛 𝑖 , 𝑛 𝑗 , 𝑙𝑎𝑡𝑒𝑛𝑐𝑦, 𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ) Modelling Infrastructure capabilities and network QoS; Application Modelled as a DAG 𝐴= 𝑇 𝐴 , 𝐿 𝐴 𝑇 𝐴 is the set of tasks 𝑡=(𝑀𝐼, 𝑅𝐴𝑀, 𝐷𝐴𝑇𝐴 𝑖𝑛 , 𝐷𝐴𝑇𝐴 𝑜𝑢𝑡 , 𝑂𝐹𝐹) 𝐿 𝐴 is the set of edges 𝑙=( 𝑡 𝑖 , 𝑡 𝑗 , 𝑙𝑎𝑡𝑒𝑛𝑐𝑦, 𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ) Modelling application requirements. 7

Application deployment A deployment D 𝐴,𝐼 of application A on infrastructure I is valid iff All tasks in the application A are completed; All hardware constraints: Number of cores, amount of storage required, latency, bandwidth Task offloading possibility Deployment’s main characteristics are Runtime, cost and battery lifetime of mobile device.  Battery lifetime is defined as the percentage of energy budget left on device md  at the end of the execution, namely  Energy is defined as the integral of the instantaneous power over time.  Offloading time OTup  depends on data transferred to (ti)  the bandwidth available between mobile device md  and (ti) . To offload ti , we need to transfer the binary and the input data DATAin(ti) . 8

Deployment objectives min 𝑅𝑇(𝐷(𝐴,𝐼)) min 𝑈𝐶(𝐷 𝐴,𝐼 ) m𝑎𝑥 𝐵𝐿(𝐷 𝐴,𝐼 ) Where 𝐷 𝐴,𝐼 is a deployment of application A on infrastructure I respecting infrastructure constraints; RT,UC, BL are respectively the running time, the user cost and the battery lifetime of application deployment D(A,I). 9

Runtime The time instant at which all tasks are completed. RT(t,n)= If executed on mobile device, we consider time for execution on mobile device; 𝑅𝑇 𝑙𝑜𝑐𝑎𝑙 𝑡,𝑛 . If offloaded, we consider: Time for offloading to target node; Time for execution on target node; Time for downloading output data; 𝑂𝑇 𝑢𝑝 𝑚𝑑,𝑛 + 𝑅𝑇 𝑙𝑜𝑐𝑎𝑙 (𝑡,𝑛)+ 𝑂𝑇 𝑑𝑜𝑤𝑛 𝑛,𝑚𝑑 10

Cost model Different prices for execution on Cloud or Edge 0 for local execution; 𝑝 𝑐 (𝑡) for execution on Cloud; 𝑝 𝑐 𝑡 + 𝑝 𝑒 (𝑡,η) for execution on Edge; η 𝜖 [0.01,1.0] is used to represent how much users prefers cheap price over speed; 0.01 1.0 Speed (Higher penalty) Cheap price (lower penalty) 11

Mobile energy model Offloading energy: Computing energy: 𝐸 𝑜𝑓𝑓 𝑡,𝑛 = 0 𝜏 𝑒𝑛𝑑 𝑃 𝑜𝑓𝑓 𝑡,𝑛,𝜏 𝑑𝑡 𝑃 𝑜𝑓𝑓 𝑡,𝑛, 𝜏 = 𝜖 𝑐𝑜𝑛𝑛 𝑛 ∗ 𝑈 𝑛𝑒𝑡 𝑡,𝑛,𝜏 + 𝐾 𝑐𝑜𝑛𝑛 𝑛 Where 𝜖 𝑐𝑜𝑛𝑛 𝑛 depends on the type of connection, 𝐾 𝑐𝑜𝑛𝑛 𝑛 is a hardware related constant and 𝑈 𝑛𝑒𝑡 𝑡,𝑛,𝜏 = 𝐷𝐴𝑇 𝐴 𝑛𝑒𝑡 (𝑡,𝜏) 𝐵𝑊(𝑚𝑑,𝑛) Computing energy: 𝐸 𝑐𝑝𝑢 𝑡,𝑛 = 0 𝜏 𝑒𝑛𝑑 𝑃 𝑐𝑝𝑢 𝑡,𝑚𝑑,𝜏 𝑑𝑡 𝑃 𝑐𝑝𝑢 𝑡,𝑛, 𝜏 = 𝛽 𝑓𝑟𝑒𝑞 𝑛 ∗ 𝑈 𝑐𝑝𝑢 𝑡,𝑚𝑑,𝜏 + 𝐾 𝑐𝑝𝑢 𝑛 12

Summary Introduction Theoretical model Simulation Framework Results Future work

Simulation Framework FogTorchΠ (https://github.com/di-unipi-socc/FogTorchPI/tree/costmodel)  It permits to describe IoT+Fog+Cloud infrastructures and microservices running on it; Employs Monte-Carlo method to estimate QoS assurance of deployment; The choice of stochastic Monte-Carlo simulation method allows to easily model the high variability of the environment. FogTorchΠ –Extended (https://bitbucket.org/vindem/fogtorchpi-extended/) Added support for mobile devices; Added an energy consumption model for mobile devices; Included our cost model; Added support for DAG applications and scheduling; Included our offloading model. 14

Sampling example Cloud DC 1 Cloud DC n Example app setup … Lambda is parameter of the exponential distribution used to generate maps in each run of MC Cloud DC 1 Cloud DC n Edge DC 1 Edge DC n Internet latency : 𝐺𝑎𝑢𝑠𝑠𝑖𝑎𝑛(𝜇=200, 𝜎=33.5) Sampling of task parameters and network QoS 15 Infrastructure setup

Application structure FogTorchΠ -Extended Iteration number Deployment algorithm Infrastructure setup Application structure SAMPLE_1 SIM_1 DEP_1 ) ( , SAMPLE_2 SIM_2 AGGREGATION DEP_2 ................... 1. Multiple samplings of task parameters and Infrastructure QoS 3. Aggregation of results SAMPLE_N SIM_N DEP_N Monte-Carlo Simulation Engine 2. Multiple executions of Deployment algorithm 16

Selected mobile apps NAVIGATOR APP FACERECOGNIZER APP ANTIVIRUS APP CHESS APP Computation-intensive Data-intensive Not-offloadable 17

Questions QUESTION 1: Is Mobile Offloading on Edge (MECO) beneficial for the selected objectives? If so, for which one? QUESTION 2: How can we identify a trade-off solution between the objectives? 18

Introduction Theoretical model Simulation Framework Results Summary Introduction Theoretical model Simulation Framework Results Future work

Experiments - I For each application, we try to find a deployment on a MECO and on a MCC infrastructure; Employing MinMin, MinCost, MaxBatt to find a local optimum; We perform consecutive executions of the offloadable part of the application, in order to check effects on the long run. MINMIN(A,I) while 𝑇 𝐴 ∈𝐴 ≠ ∅ minRuntime ← ∞ C ← getCompletedTasks() removeOutgoingEdges(C, 𝐿 𝐴 ) remove(C, 𝑇 𝐴 ) foreach t ←readyTasks( 𝑻 𝑨 ) foreach cn ∈ 𝑵 𝑰 if runtimeOnNode(t,cn)≤𝒎𝒊𝒏𝑹𝒖𝒏𝒕𝒊𝒎𝒆 target ←𝒄𝒏 minRuntime ←runtimeOnNode(t,cn) deployOnNode(t,target) costOnNode(t,cn)≤𝑚𝑖𝑛𝐶𝑜𝑠𝑡 batteryOnNode(t,cn) ≥maxBatt 20

Experiments - Runtime MECO: EDGE/CLOUD MCC: CLOUD 21

Experiments – User cost MECO: EDGE/CLOUD MCC: CLOUD 22

Experiments – Battery lifetime MECO: EDGE/CLOUD MCC: CLOUD 23

Experiments - Runtime MECO: EDGE/CLOUD MCC: CLOUD 24

Results Benefits for RUNTIME: -39% for Navigator, -70.7% for Facerecognizer, -30% for Antivirus; Almost no change for Chess (low amount of data transmission). USER COST: Similar trends for all applications; Depending on user profile and number of runs. BATTERY LIFETIME [0.005-3]% for all applications; Depending on energy consumption model and amount of data transferred. 25

Experiments - II QUESTION 2: How do we identify a trade-off solution between Runtime, User cost and Battery lifetime? User specifies his preferences for each objective Preference coefficients [𝛼,𝛽,𝛾] 𝑚𝑖𝑛𝑅𝑇(𝐷 𝐴,𝐼 min 𝑈𝐶(𝐷 𝐴,𝐼 ) max 𝐵𝐿(𝐷 𝐴,𝐼 ) →𝛼𝑅𝑇 𝐷 𝐴,𝐼 + 𝛽𝑈𝐶 𝐷 𝐴,𝐼 + 𝛾𝐵𝐿(𝐷 𝐴,𝐼 ) Each coefficients acts as “knob” and allows user to determine what is more important for its solution 26

ECHO (Edge Cloud Heuristic Offloading) For each task t, we find the node minimizing 𝑠𝑐𝑜𝑟𝑒 𝑡,𝑛, 𝑅𝑇 , 𝐵𝐿 , 𝑈𝐶 , 𝛼,𝛽,𝛾 = 𝛼 𝑅𝑇(𝑡,𝑛) − 𝑅𝑇 (𝑡) +𝛽 𝐵𝐿 𝑡,𝑛 − 𝐵𝐿 (𝑡) + 𝛾 𝑈𝐶 𝑡,𝑛 − 𝑈𝐶 (𝑡) ; 𝑅𝑇 (𝑡), 𝐵𝐿 (𝑡) and 𝑈𝐶 (𝑡) represent the local optimum for runtime, battery lifetime and user cost; 𝛼,𝛽,𝛾 represent the weight for each parameter. 27

Results of ECHO heuristic MAPE of ECHO solution vs heuristic solutions for each objective

Future work Improving energy model; Improving network simulation; Adding 4G, LTE… Considering different network topologies Including geographical distance and failures Testing different algorithms; NSGA-II and MOPSO Control Theory Extending the model; Multi-user model Adding provider’s revenue 29

Thanks for your attention! Questions? Vincenzo De Maio, Ivona Brandić {vincenzo,ivona}@ec.tuwien.ac.at

Allocation problem 𝑡 𝑖 ∈ 𝐷 𝑡 𝑛 𝑗 𝐶𝑂𝑅𝐸𝑆 𝑡 𝑖 ≤𝐶𝑂𝑅𝐸𝑆 𝑛 𝑖 , 𝑅𝐴𝑀 𝑡 𝑖 ≤𝑅𝐴𝑀 𝑛 𝑖 , 𝑆𝑇𝑂𝑅𝐴𝐺𝐸 𝑡 𝑖 ≤𝑆𝑇𝑂𝑅𝐴𝐺𝐸( 𝑛 𝑖 ); ∀ 𝑛 𝑖 , 𝑛 𝑗 ∈ 𝛿 𝑖𝑛 𝑡 𝑖 , 𝜏 , 𝛿 𝑜𝑢𝑡 𝑡 𝑖 ,𝜏 , 𝑙𝑎𝑡𝑒𝑛𝑐𝑦 𝑡 𝑖 , 𝑡 𝑗 ≥𝑙𝑎𝑡𝑒𝑛𝑐𝑦 𝑛 𝑖 , 𝑛 𝑗 , 𝑛 𝑖 , 𝑛 𝑗 ∈ 𝛿 𝑖𝑛 𝑛 𝑖 , 𝜏 , 𝛿 𝑜𝑢𝑡 ( 𝑛 𝑖 ,𝜏); ∀ 𝑛 𝑖 , 𝑛 𝑗 ∈ 𝛿 𝑖𝑛 𝑡 𝑖 , 𝜏 , 𝛿 𝑜𝑢𝑡 𝑡 𝑖 ,𝜏 , 𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ 𝑡 𝑖 , 𝑡 𝑗 ≤𝑏𝑎𝑛𝑑𝑤𝑖𝑑𝑡ℎ 𝑛 𝑖 , 𝑛 𝑗 , 𝑛 𝑖 , 𝑛 𝑗 ∈ 𝛿 𝑖𝑛 𝑛 𝑖 , 𝜏 , 𝛿 𝑜𝑢𝑡 ( 𝑛 𝑖 ,𝜏);

Runtime model 𝑅𝑇 𝑡,𝑛 = 𝑀𝐼(𝑡) 𝑀𝐼𝑃𝑆(𝑚𝑑) 𝑖𝑓 𝑛=𝑚𝑑 𝑂𝑇 𝑢𝑝 𝑚𝑑,𝑛 + 𝑀𝐼(𝑡) 𝑀𝐼𝑃𝑆(𝑛) + 𝑂𝑇 𝑑𝑜𝑤𝑛 𝑛,𝑚𝑑 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 𝑂𝑇 𝑢𝑝 𝑚𝑑,𝑛 = 𝑀𝐼 𝑡 ∗𝑖𝑛𝑠𝑡 𝑟 𝑠𝑖𝑧𝑒 +𝐷𝐴𝑇 𝐴 𝑖𝑛 (𝑡) 𝐵𝑊(𝑚𝑑,𝑛) +latency(md,n) 𝑂𝑇 𝑑𝑜𝑤𝑛 𝑛,𝑚𝑑 = 𝐷𝐴𝑇 𝐴 𝑜𝑢𝑡 (𝑡) 𝐵𝑊(𝑛,𝑚𝑑) +𝑙𝑎𝑡𝑒𝑛𝑐𝑦(𝑚𝑑,𝑛)