Approximate Analysis via In-transit and Edge Resources

Omer F. Rana
School of Computer Science & Informatics
Cardiff University, UK
ranaof@cardiff.ac.uk Twitter:@omerfrana
In collaboration with:
Rajiv Ranjan (Newcastle Univ., UK), Massimo Villari (U. Messina, Italy)
Manish Parashar, Javier Diaz-Montes, Ali Zamani, Mengsong Zhou (Rutgers
University, USA),
Ioan Petri, Tom Beach, Yacine Rezgui (Cardiff University),
Rafael Tolosana-Calasanz (Univ. of Zaragoza, Spain)
Luiz Bittencourt (UNICAMP, Brazil)
Approximate Analysis via In-transit and
Edge Resources
Systems Research Challenges in
the Internet of Things Workshop
16th – 17th January 2017
https://goo.gl/PME0zu
The Rise of “Edge Computing”
• Edge devices can have varying capability, data rates and
programmability
• Capability to also undertake some processing on these devices
– Increasing availability of programming support – “software defined environments”
As data volume and velocity increases – we need to
rethink our Cloud/Data Centre architecture
Move away from centralised solutions – to more Peer-
2-Peer Edge Clouds (Distributed Clouds)
How do we support service provisioning and
orchestration at the Network Edge
From: Manish Parashar (Rutgers Univ.)
Summary
CONTEXT
Petri, I.et al. 2016. Coordinating data analysis and management in multi-layered
clouds. EAI International Conference on Cloud, Networking for IoT
systems, Rome, Italy, 26-27 October 2015.Proceedings of EAI International
Conference on Cloud, Networking for IoT systems, Springer. Available at:
http://orca.cf.ac.uk/78658/1/cn4iot15.pdf
• “Cloud of Things” (CoT) & “Fog Computing” (Cloudlets)
– Extending computing to the edges of the network;
– Overcoming latency constraints
• Real world/pervasive systems benefiting from Cloud
infrastructure (keep this much more open, not Telco Centric)
– Mobile & task off-loading (balancing energy usage with computation capability)
– Interest in reverse of Mobile Offloading (cf. Cloud offloading)
• Edge clouds via:
– “Cloudlets” (Fog Computing) + Mobile offloading (device clone in
Cloud/annotated program call tree (local/Cloud) – e.g. MAUI,
CloneCloud, ThinkAir, Moitree, EMCO, etc)
– Limitations of the “last mile” network (common in Content Distribution
Networks) – Akamai (web traffic @ 25Terabits/s, 2 trillion daily internet
interactions) – “edge server” ensemble (175k servers, 85% one net
hop)
Defining “Edge Services” …
Aggregator
Sensor
Cluster
Communication
channel
s6
s9
s10 s7
c2
s11
s15 s12
s13
c1
s14
s1
s4 s3
s2
s5
c3
Time
s8
eUtility
eU1
If g(x,y) > 100 then
Buy Z shares of
Stock S
x
y
Decision trigger
eU3
eU2
g(x,y)
From Jeff Voas, Bob Marcus (NIST) – Terminology for IoT/Clouds
Where should this
be hosted?
Amazon Lambda – 100 millisecond billing
• User creates a “lambda” function (e.g. Python code) that is triggered
based on events (custom code, dependencies, uploaded to AWS) – as a
“handler” method
– Event source (e.g. AWS S3, DynamoDB stream associated with a table,
HTTP/Amazon Gateway API, Amazon Cognito Auth./Mobile Services etc) publishes
object-created events
– Amazon Kinesis Stream Events (poll stream, generate events when new record
detected)
– User generated events
• Resource allocation
– Identify memory requirements => CPU requirements
– Identify execution timeout (to prevent indefinite execution)
– Can be sync./async.
– Monitored metrics: Invocation rate, Errors, Durations (Latency), Throttles (via
CloudWatch)
• Environment
– Container-based enactment/execution (AWS Lambda automatically does this)
– Container maintained (“frozen”) after lambda function finishes (no init. needed) + /tmp
space kept (transient cache for multiple executions)
– Background processes/callbacks maintained when container resumes
AWS Lambda -- compute
nodes charged by 100ms --
not the hour. First 1M
node.js exec/month for free
-- a monitoring challenge
(http://aws.amazon.com/lambda/)
ETSI – Mobile Edge Computing (MEC) & NFV
http://www.etsi.org/technologies-clusters/technologies/mobile-edge-computing
VM-based (QoS/QoE
rules – resource need,
latency, etc)
Discover, advertise
Services – DNS proxy
Traffic rules & state
ETSI – Mobile Edge Computing (MEC) & NFV
http://www.etsi.org/technologies-clusters/technologies/mobile-edge-computing
Edge orchestrator
(available resources,
hosts, topology, etc)
Application management
Operations Support
System (OSS)
EPC/EPCaaS
E-UTRAN access network:
LTE, LTE-A + legacy
Cloud-RAN
Modularization to build a flexible network
architecture
Enabling Concept: Architecture Modularization
Kashif Mehmood, Telenor Research, Norway (Dec 2016)
Modularization natively supports Network slicing
IoT Network slice with no mobility and relaxed
security requirements
5G
control
Flow
Management
Access
Function
Security and
AAA management
Mobility
Management
Connectivity
Management
Context Aware
Engine
Kashif Mehmood, Telenor Research, Norway (Dec 2016)
Edge Boundary
Network
processor
Ad hoc/mesh network
What’s on the “Edge”?
Edge Boundary
Network
processor
Ad hoc/mesh network
What’s on the “Edge”?
Osmotic Computing
M. Villari, M. Fazio, S. Dustdar, O. Rana & R. Ranjan, “Osmotic Computing: A New
Paradigm for Edge/ Cloud Integration”, IEEE Cloud Computing Magazine, December 2016
https://www.computer.org/csdl/mags/cd/2016/06/mcd2016060076-abs.html
• Migration of micro-
services from Edge
to Data Centers
• Services hosted on
light weight
containers (e.g.
Docker)
• Migration triggered
by monitored events
(e.g. latency)
Osmotic Computing
M. Villari, M. Fazio, S. Dustdar, O. Rana & R. Ranjan, “Osmotic Computing: A New
Paradigm for Edge/ Cloud Integration”, IEEE Cloud Computing Magazine, December 2016
• Microservices can be both: management services and user owned and
managed services
• Aligns with work on EPCaaS/5G + user-owned network management
SCENARIO &
IMPLEMENTATION
• Real time optimisation of building energy use
– sensors provide readings within an interval of 15-30
minutes,
– Optimisation run over this interval
• The efficiency of the optimisation process
depends on the capacity of the computing
infrastructure
– deploying multiple EnergyPlus simulations
• Closed loop optimisation
– Set control set points
– Monitor/acquire sensor data + perform analysis with
EnergyPlus
– Update HVAC and actuators in physical infrastructure
17
EnergyPlus is a whole building energy simulation program that engineers, architects, and
researchers use to model energy and water use in buildings. Modelling the performance of a
building with EnergyPlus enables building professionals to optimize building design to reduce
energy usage – http://apps1.eere.energy.gov/buildings/energyplus/
Instrumented Facility
CENTRO SPORTIVO FIDIA ROMA (http://www.asfidia.it/)
Pool (indoor) – size: 25m x 16m, depth: 1,60m to 2,10m, Capacity: 760 m³
Learning Pool (indoor) – size: 16m x 4 m, depth: 1m, Capacity: 64 m³
1 Gym (indoor) provided of electric equipment (electric bicycles, etc…)
1 Fitness room (indoor) size: 18m x 9m x 3m, Volume: 486m³
1 Volleyball court (indoor) – size: 40m x 28m x 8m, Volume: 8960 m³
2 Tennis/Five-a-side courts (outdoor, with changing rooms) – size: 30m x 20m
Federated Clouds in Building Optimisation
I. Petri, O. Rana, J. Diaz-Montes, M. Zou, M. Parashar, T. Beach, Y. Rezqui, and H. Li, "In-transit Data Analysis and
Distribution in a Multi-Cloud Environment using CometCloud," The International Workshop on Energy Management for
Sustainable Internet-of-Things and Cloud Computing. Co-located with International Conference on Future Internet of Things
and Cloud (FiCloud 2014), Barcelona, Spain, August 2014.
20
INPUT
OUTPUT
21
Ioan Petri, Omer Rana, Yacine Rezgui, Haijiang Li, Tom Beach, Mengsong Zou, Javier Diaz Montes, Manish
Parashar: “Cloud Supported Building Data Analytics”. DPMSS workshop alongside CCGRID 2014: pp 641-
650, Chicago, USA. IEEE Computer Society Press.
• In the context of single cloud federation (3 workers) only 37 out of 72 tasks
are completed within the deadline of 1 hour. Extend deadline to 1 h 30 min
• Exchanging 15 tuples between the two federation sites, with increased cost
for execution and storage.
23
M. Zou, A. Zamani, J. Diaz-Montes, I. Petri, O. Rana, M. Parashar, “Leveraging in-transit computational
capabilities in federated ecosystems”. IEEE Symposium on Service-Oriented System Engineering (SOSE),
Oxford, UK, March 29 -April 2 2016.
In-transit
node
In-transit
node
Edge Devices
• Can we characterise behaviour of in-transit nodes?
– Network Data Centers vs. Edge Data Centers
– Goes beyond the use of simple programmable
network characterisation
• Consider job (J) consisting of (k) tasks
– Deadline(J); Budget(J); CRatio(J) – with k’ <= k
• Consider that there is some waiting time W(J) before a
job J can be executed at resource provider.
– Job is idle (queued) and it is using storage space at
the destination resource.
• Identify & configure a data path that leverages in-transit
computation to take advantage of W(J) for a job.
24
Characterising “In-Transit” Nodes
Characteristing the
problem:
To leverage in-transit computation and minimize the amount of time a
job is idle at destination, the objective of our problem becomes
maximizing the amount of tasks completed in-transit
25
An Optimisation Problem
To leverage in-transit computation and minimize the amount of time a
job is idle at destination, the objective of our problem becomes
maximizing the amount of tasks completed in-transit
subject to being ready to compute at destination resource d at the
scheduled time (2), performing computation within the given deadline
(3), keeping costs within the given budget (4), and making sure that the
completion ratio is satisfied (5):
26
An Optimisation Problem … constraints
ratio between completed
tasks and total number of
tasks composing job J.
Cost(J) is the overall cost of computing job J,
27
Cost Analysis
M. Zhou, A. Zamani, J. Diaz-Montes, I. Petri, O. Rana, M. Parashar & A. Anjum, “Deadline Constrained
Video Analysis via In-Transit Computational Environments”, IEEE Transactions on Services Computing,
2017 (to appear)
28
Leveraging In-Transit Computational Capabilities in Federated Ecosystems.
IEEE SOSE 2016
Sites implemented as VMs on Amazon
SDN capability emulated via Mininet. Each
VM had one Mininet host and one Mininet
switch
• Routing tables managed via POX
SDN controller
Switches were connected to each other using
Generic Routing Encapsulation (GRE)
tunnelling, B/W allocation via a token bucket
filter
(i) Base: in-transit resources
and sites have the same
computational power;
(ii) Higher: in-transit
resources are less powerful
than those at the resource
providers’ sites; and
(iii) Highest: in-transit
resources are much less
powerful than site resources.
29
Job Properties & Resource Types
SLA: at least 60% of the tasks, within a job, must be
completed before the deadline
Considered Scenarios
• Traditional
– Request resources from a cloud provider – no awareness of in-transit
resources
– Traditionally, all computation at the data center
• Traditional + In-transit:
– An intermediate controller allocates resources within the network (without
client involvement or awareness)
• In-transit aware (In-transit 2)
– Client aware of available in-transit nodes
– Willing to accept a wider range of offers from Cloud providers
– Requests controller to perform in-transit optimisation
31
Job Completion & Overheads
Approximate Analysis via In-transit and Edge Resources
33
Costs & Revenue
Edge-based Approximation … 1
• “Performing exact computation or operating at peak-level
service demand require a high amount of resources, allowing
selective approximation or occasional violation of the
specification can provide disproportionate gains in efficiency.”
• Techniques used:
Precision Scaling Loop Perforation
Load value approximation Task dropping/skipping
Memory access skipping Data sampling
Program versions of different
accuracy
Using inexact hardware (SRAM,
eDRAM, DRAM, GPU, etc)
Voltage scaling Refresh rate reduction
Inexact reads/writes Lossy compression
Neural networks Compiler-based strategies
S. Mittal, “A Survey of Techniques for Approximate Computing”,
ACM Computing Surveys, Vol. 48, Issue 4, May 2016
Edge-based Approximation … 2
• Combine capability in Data Centre with “approximate”
algorithms in transit or at the edge
• EnergyPlus (as at present) + a trained neural network
(as a function approximator for EnergyPlus behaviour)
• But why?
– EnergyPlus ~ Execution time(Minutes)
– Neural Network Training ~ Execution time (Minutes)
– Trained (FF) Neural Network ~ Execution time (Seconds)
• Combine more accurate model execution with
approximate model via a learned neural network
• Trigger re-training when input parameters change
significantly
– Each EnergyPlus execution provides potential training data for
the neural network
Three-phased execution
• Phase 1: EnergyPlus simulations – 30
simulations to acquire initial data
• Phase 2: Co-schedule EnergyPlus with ANN
training – wait for ANN training threshold to be
reached
• Phase 3: Deploy trained ANN on edge and in-
transit nodes
– Change in input data parameter range would trigger Phase 1 again
• Can in-transit and edge resource be used more
effectively?:
– Increase job acceptance and completion
– Increase potential revenue earned by edge and in-transit resources
Edge-based Approximation
Edge-based Approximation … overhead
Conclusion …
• Emergence of data-driven + data intensive
applications
• Use of Cloud/data centres and edge nodes
collectively
• Pipeline-based enactment a common theme
– Various characteristics – buffer management and
data coordination
– Model development that can be integrated into a
workflow environment
• Automating application adaptation
– … as infrastructure changes
– … as application characteristics change
1 of 39

Recommended

ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
26.2K views69 slides
Getting into the tech field. what next by
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
6.3K views22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
6.7K views99 slides
How to have difficult conversations by
How to have difficult conversations How to have difficult conversations
How to have difficult conversations Rajiv Jayarajah, MAppComm, ACC
5.4K views19 slides
Introduction to Data Science by
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data ScienceChristy Abraham Joy
82.5K views51 slides
Time Management & Productivity - Best Practices by
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
169.8K views42 slides

More Related Content

Recently uploaded

Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... by
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...ShapeBlue
48 views17 slides
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...ShapeBlue
105 views15 slides
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...ShapeBlue
120 views62 slides
Cencora Executive Symposium by
Cencora Executive SymposiumCencora Executive Symposium
Cencora Executive Symposiummarketingcommunicati21
106 views14 slides
The Power of Heat Decarbonisation Plans in the Built Environment by
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built EnvironmentIES VE
67 views20 slides
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...James Anderson
142 views32 slides

Recently uploaded(20)

Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ... by ShapeBlue
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
Import Export Virtual Machine for KVM Hypervisor - Ayush Pandey - University ...
ShapeBlue48 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue105 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue120 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built EnvironmentThe Power of Heat Decarbonisation Plans in the Built Environment
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE67 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... by James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue by ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlueWhat’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
What’s New in CloudStack 4.19 - Abhishek Kumar - ShapeBlue
ShapeBlue191 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... by ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue113 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue149 views
Data Integrity for Banking and Financial Services by Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely76 views
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue by ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue63 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker50 views
NTGapps NTG LowCode Platform by Mustafa Kuğu
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform
Mustafa Kuğu287 views
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue74 views
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... by ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue69 views
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue by ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue75 views
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive by Network Automation Forum
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLiveAutomating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Automating a World-Class Technology Conference; Behind the Scenes of CiscoLive
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPoolExtending KVM Host HA for Non-NFS Storage -  Alex Ivanov - StorPool
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue56 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue52 views

Featured

Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
55.5K views138 slides
12 Ways to Increase Your Influence at Work by
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
401.7K views64 slides
ChatGPT webinar slides by
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slidesAlireza Esmikhani
30.4K views36 slides
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
3.6K views12 slides
Barbie - Brand Strategy Presentation by
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
25.1K views46 slides

Featured(20)

Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools55.5K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter401.7K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
Erica Santiago25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software25.3K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
Simplilearn8.4K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software88.4K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation9 Tips for a Work-free Vacation
9 Tips for a Work-free Vacation
Weekdone.com7.2K views
How to Map Your Future by SlideShop.com
How to Map Your FutureHow to Map Your Future
How to Map Your Future
SlideShop.com275.1K views
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -... by AccuraCast
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
AccuraCast3.4K views
Exploring ChatGPT for Effective Teaching and Learning.pptx by Stan Skrabut, Ed.D.
Exploring ChatGPT for Effective Teaching and Learning.pptxExploring ChatGPT for Effective Teaching and Learning.pptx
Exploring ChatGPT for Effective Teaching and Learning.pptx
Stan Skrabut, Ed.D.57.7K views
How to train your robot (with Deep Reinforcement Learning) by Lucas García, PhD
How to train your robot (with Deep Reinforcement Learning)How to train your robot (with Deep Reinforcement Learning)
How to train your robot (with Deep Reinforcement Learning)
Lucas García, PhD42.5K views
4 Strategies to Renew Your Career Passion by Daniel Goleman
4 Strategies to Renew Your Career Passion4 Strategies to Renew Your Career Passion
4 Strategies to Renew Your Career Passion
Daniel Goleman122K views
The Student's Guide to LinkedIn by LinkedIn
The Student's Guide to LinkedInThe Student's Guide to LinkedIn
The Student's Guide to LinkedIn
LinkedIn88.1K views
Different Roles in Machine Learning Career by Intellipaat
Different Roles in Machine Learning CareerDifferent Roles in Machine Learning Career
Different Roles in Machine Learning Career
Intellipaat12.4K views
Defining a Tech Project Vision in Eight Quick Steps pdf by TechSoup
Defining a Tech Project Vision in Eight Quick Steps pdfDefining a Tech Project Vision in Eight Quick Steps pdf
Defining a Tech Project Vision in Eight Quick Steps pdf
TechSoup 9.7K views

Approximate Analysis via In-transit and Edge Resources

  • 1. Omer F. Rana School of Computer Science & Informatics Cardiff University, UK ranaof@cardiff.ac.uk Twitter:@omerfrana In collaboration with: Rajiv Ranjan (Newcastle Univ., UK), Massimo Villari (U. Messina, Italy) Manish Parashar, Javier Diaz-Montes, Ali Zamani, Mengsong Zhou (Rutgers University, USA), Ioan Petri, Tom Beach, Yacine Rezgui (Cardiff University), Rafael Tolosana-Calasanz (Univ. of Zaragoza, Spain) Luiz Bittencourt (UNICAMP, Brazil) Approximate Analysis via In-transit and Edge Resources Systems Research Challenges in the Internet of Things Workshop 16th – 17th January 2017
  • 3. The Rise of “Edge Computing” • Edge devices can have varying capability, data rates and programmability • Capability to also undertake some processing on these devices – Increasing availability of programming support – “software defined environments” As data volume and velocity increases – we need to rethink our Cloud/Data Centre architecture Move away from centralised solutions – to more Peer- 2-Peer Edge Clouds (Distributed Clouds) How do we support service provisioning and orchestration at the Network Edge From: Manish Parashar (Rutgers Univ.) Summary
  • 4. CONTEXT Petri, I.et al. 2016. Coordinating data analysis and management in multi-layered clouds. EAI International Conference on Cloud, Networking for IoT systems, Rome, Italy, 26-27 October 2015.Proceedings of EAI International Conference on Cloud, Networking for IoT systems, Springer. Available at: http://orca.cf.ac.uk/78658/1/cn4iot15.pdf
  • 5. • “Cloud of Things” (CoT) & “Fog Computing” (Cloudlets) – Extending computing to the edges of the network; – Overcoming latency constraints • Real world/pervasive systems benefiting from Cloud infrastructure (keep this much more open, not Telco Centric) – Mobile & task off-loading (balancing energy usage with computation capability) – Interest in reverse of Mobile Offloading (cf. Cloud offloading) • Edge clouds via: – “Cloudlets” (Fog Computing) + Mobile offloading (device clone in Cloud/annotated program call tree (local/Cloud) – e.g. MAUI, CloneCloud, ThinkAir, Moitree, EMCO, etc) – Limitations of the “last mile” network (common in Content Distribution Networks) – Akamai (web traffic @ 25Terabits/s, 2 trillion daily internet interactions) – “edge server” ensemble (175k servers, 85% one net hop) Defining “Edge Services” …
  • 6. Aggregator Sensor Cluster Communication channel s6 s9 s10 s7 c2 s11 s15 s12 s13 c1 s14 s1 s4 s3 s2 s5 c3 Time s8 eUtility eU1 If g(x,y) > 100 then Buy Z shares of Stock S x y Decision trigger eU3 eU2 g(x,y) From Jeff Voas, Bob Marcus (NIST) – Terminology for IoT/Clouds Where should this be hosted?
  • 7. Amazon Lambda – 100 millisecond billing • User creates a “lambda” function (e.g. Python code) that is triggered based on events (custom code, dependencies, uploaded to AWS) – as a “handler” method – Event source (e.g. AWS S3, DynamoDB stream associated with a table, HTTP/Amazon Gateway API, Amazon Cognito Auth./Mobile Services etc) publishes object-created events – Amazon Kinesis Stream Events (poll stream, generate events when new record detected) – User generated events • Resource allocation – Identify memory requirements => CPU requirements – Identify execution timeout (to prevent indefinite execution) – Can be sync./async. – Monitored metrics: Invocation rate, Errors, Durations (Latency), Throttles (via CloudWatch) • Environment – Container-based enactment/execution (AWS Lambda automatically does this) – Container maintained (“frozen”) after lambda function finishes (no init. needed) + /tmp space kept (transient cache for multiple executions) – Background processes/callbacks maintained when container resumes AWS Lambda -- compute nodes charged by 100ms -- not the hour. First 1M node.js exec/month for free -- a monitoring challenge (http://aws.amazon.com/lambda/)
  • 8. ETSI – Mobile Edge Computing (MEC) & NFV http://www.etsi.org/technologies-clusters/technologies/mobile-edge-computing VM-based (QoS/QoE rules – resource need, latency, etc) Discover, advertise Services – DNS proxy Traffic rules & state
  • 9. ETSI – Mobile Edge Computing (MEC) & NFV http://www.etsi.org/technologies-clusters/technologies/mobile-edge-computing Edge orchestrator (available resources, hosts, topology, etc) Application management Operations Support System (OSS) EPC/EPCaaS E-UTRAN access network: LTE, LTE-A + legacy Cloud-RAN
  • 10. Modularization to build a flexible network architecture Enabling Concept: Architecture Modularization Kashif Mehmood, Telenor Research, Norway (Dec 2016)
  • 11. Modularization natively supports Network slicing IoT Network slice with no mobility and relaxed security requirements 5G control Flow Management Access Function Security and AAA management Mobility Management Connectivity Management Context Aware Engine Kashif Mehmood, Telenor Research, Norway (Dec 2016)
  • 12. Edge Boundary Network processor Ad hoc/mesh network What’s on the “Edge”?
  • 13. Edge Boundary Network processor Ad hoc/mesh network What’s on the “Edge”?
  • 14. Osmotic Computing M. Villari, M. Fazio, S. Dustdar, O. Rana & R. Ranjan, “Osmotic Computing: A New Paradigm for Edge/ Cloud Integration”, IEEE Cloud Computing Magazine, December 2016 https://www.computer.org/csdl/mags/cd/2016/06/mcd2016060076-abs.html • Migration of micro- services from Edge to Data Centers • Services hosted on light weight containers (e.g. Docker) • Migration triggered by monitored events (e.g. latency)
  • 15. Osmotic Computing M. Villari, M. Fazio, S. Dustdar, O. Rana & R. Ranjan, “Osmotic Computing: A New Paradigm for Edge/ Cloud Integration”, IEEE Cloud Computing Magazine, December 2016 • Microservices can be both: management services and user owned and managed services • Aligns with work on EPCaaS/5G + user-owned network management
  • 17. • Real time optimisation of building energy use – sensors provide readings within an interval of 15-30 minutes, – Optimisation run over this interval • The efficiency of the optimisation process depends on the capacity of the computing infrastructure – deploying multiple EnergyPlus simulations • Closed loop optimisation – Set control set points – Monitor/acquire sensor data + perform analysis with EnergyPlus – Update HVAC and actuators in physical infrastructure 17 EnergyPlus is a whole building energy simulation program that engineers, architects, and researchers use to model energy and water use in buildings. Modelling the performance of a building with EnergyPlus enables building professionals to optimize building design to reduce energy usage – http://apps1.eere.energy.gov/buildings/energyplus/
  • 18. Instrumented Facility CENTRO SPORTIVO FIDIA ROMA (http://www.asfidia.it/) Pool (indoor) – size: 25m x 16m, depth: 1,60m to 2,10m, Capacity: 760 m³ Learning Pool (indoor) – size: 16m x 4 m, depth: 1m, Capacity: 64 m³ 1 Gym (indoor) provided of electric equipment (electric bicycles, etc…) 1 Fitness room (indoor) size: 18m x 9m x 3m, Volume: 486m³ 1 Volleyball court (indoor) – size: 40m x 28m x 8m, Volume: 8960 m³ 2 Tennis/Five-a-side courts (outdoor, with changing rooms) – size: 30m x 20m
  • 19. Federated Clouds in Building Optimisation I. Petri, O. Rana, J. Diaz-Montes, M. Zou, M. Parashar, T. Beach, Y. Rezqui, and H. Li, "In-transit Data Analysis and Distribution in a Multi-Cloud Environment using CometCloud," The International Workshop on Energy Management for Sustainable Internet-of-Things and Cloud Computing. Co-located with International Conference on Future Internet of Things and Cloud (FiCloud 2014), Barcelona, Spain, August 2014.
  • 21. 21 Ioan Petri, Omer Rana, Yacine Rezgui, Haijiang Li, Tom Beach, Mengsong Zou, Javier Diaz Montes, Manish Parashar: “Cloud Supported Building Data Analytics”. DPMSS workshop alongside CCGRID 2014: pp 641- 650, Chicago, USA. IEEE Computer Society Press.
  • 22. • In the context of single cloud federation (3 workers) only 37 out of 72 tasks are completed within the deadline of 1 hour. Extend deadline to 1 h 30 min • Exchanging 15 tuples between the two federation sites, with increased cost for execution and storage.
  • 23. 23 M. Zou, A. Zamani, J. Diaz-Montes, I. Petri, O. Rana, M. Parashar, “Leveraging in-transit computational capabilities in federated ecosystems”. IEEE Symposium on Service-Oriented System Engineering (SOSE), Oxford, UK, March 29 -April 2 2016. In-transit node In-transit node Edge Devices
  • 24. • Can we characterise behaviour of in-transit nodes? – Network Data Centers vs. Edge Data Centers – Goes beyond the use of simple programmable network characterisation • Consider job (J) consisting of (k) tasks – Deadline(J); Budget(J); CRatio(J) – with k’ <= k • Consider that there is some waiting time W(J) before a job J can be executed at resource provider. – Job is idle (queued) and it is using storage space at the destination resource. • Identify & configure a data path that leverages in-transit computation to take advantage of W(J) for a job. 24 Characterising “In-Transit” Nodes
  • 25. Characteristing the problem: To leverage in-transit computation and minimize the amount of time a job is idle at destination, the objective of our problem becomes maximizing the amount of tasks completed in-transit 25 An Optimisation Problem
  • 26. To leverage in-transit computation and minimize the amount of time a job is idle at destination, the objective of our problem becomes maximizing the amount of tasks completed in-transit subject to being ready to compute at destination resource d at the scheduled time (2), performing computation within the given deadline (3), keeping costs within the given budget (4), and making sure that the completion ratio is satisfied (5): 26 An Optimisation Problem … constraints ratio between completed tasks and total number of tasks composing job J.
  • 27. Cost(J) is the overall cost of computing job J, 27 Cost Analysis M. Zhou, A. Zamani, J. Diaz-Montes, I. Petri, O. Rana, M. Parashar & A. Anjum, “Deadline Constrained Video Analysis via In-Transit Computational Environments”, IEEE Transactions on Services Computing, 2017 (to appear)
  • 28. 28 Leveraging In-Transit Computational Capabilities in Federated Ecosystems. IEEE SOSE 2016 Sites implemented as VMs on Amazon SDN capability emulated via Mininet. Each VM had one Mininet host and one Mininet switch • Routing tables managed via POX SDN controller Switches were connected to each other using Generic Routing Encapsulation (GRE) tunnelling, B/W allocation via a token bucket filter (i) Base: in-transit resources and sites have the same computational power; (ii) Higher: in-transit resources are less powerful than those at the resource providers’ sites; and (iii) Highest: in-transit resources are much less powerful than site resources.
  • 29. 29 Job Properties & Resource Types SLA: at least 60% of the tasks, within a job, must be completed before the deadline
  • 30. Considered Scenarios • Traditional – Request resources from a cloud provider – no awareness of in-transit resources – Traditionally, all computation at the data center • Traditional + In-transit: – An intermediate controller allocates resources within the network (without client involvement or awareness) • In-transit aware (In-transit 2) – Client aware of available in-transit nodes – Willing to accept a wider range of offers from Cloud providers – Requests controller to perform in-transit optimisation
  • 31. 31 Job Completion & Overheads
  • 34. Edge-based Approximation … 1 • “Performing exact computation or operating at peak-level service demand require a high amount of resources, allowing selective approximation or occasional violation of the specification can provide disproportionate gains in efficiency.” • Techniques used: Precision Scaling Loop Perforation Load value approximation Task dropping/skipping Memory access skipping Data sampling Program versions of different accuracy Using inexact hardware (SRAM, eDRAM, DRAM, GPU, etc) Voltage scaling Refresh rate reduction Inexact reads/writes Lossy compression Neural networks Compiler-based strategies S. Mittal, “A Survey of Techniques for Approximate Computing”, ACM Computing Surveys, Vol. 48, Issue 4, May 2016
  • 35. Edge-based Approximation … 2 • Combine capability in Data Centre with “approximate” algorithms in transit or at the edge • EnergyPlus (as at present) + a trained neural network (as a function approximator for EnergyPlus behaviour) • But why? – EnergyPlus ~ Execution time(Minutes) – Neural Network Training ~ Execution time (Minutes) – Trained (FF) Neural Network ~ Execution time (Seconds) • Combine more accurate model execution with approximate model via a learned neural network • Trigger re-training when input parameters change significantly – Each EnergyPlus execution provides potential training data for the neural network
  • 36. Three-phased execution • Phase 1: EnergyPlus simulations – 30 simulations to acquire initial data • Phase 2: Co-schedule EnergyPlus with ANN training – wait for ANN training threshold to be reached • Phase 3: Deploy trained ANN on edge and in- transit nodes – Change in input data parameter range would trigger Phase 1 again • Can in-transit and edge resource be used more effectively?: – Increase job acceptance and completion – Increase potential revenue earned by edge and in-transit resources
  • 39. Conclusion … • Emergence of data-driven + data intensive applications • Use of Cloud/data centres and edge nodes collectively • Pipeline-based enactment a common theme – Various characteristics – buffer management and data coordination – Model development that can be integrated into a workflow environment • Automating application adaptation – … as infrastructure changes – … as application characteristics change

Editor's Notes

  1. Modularization to build a flexible network architecture natively supporting Network Slicing
  2. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  3. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  4. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  5. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  6. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  7. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  8. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely
  9. In experiments: 1. We evaluate how the price of the SDN affects the decision of where to execute the workload. 2. we study factors that influence whether jobs should be computed locally or remotely