SlideShare a Scribd company logo
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Tim Ward

tim.ward@paremus.com
Turtles all the way up -
From OSGi bundles to Fog Computing
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Who is Tim Ward?
Chief Technology Officer at Paremus
10 years developing OSGi specifications
Co-chair of the OSGi IoT Expert Group
Distributed Platform expert for the Brain IoT project
Author of Manning’s Enterprise OSGi in Action
http://www.manning.com/cummins
@TimothyWard
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
What is Brain IoT?
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
An Intelligent Decentralised Fog Platform
Part of the European Union
Horizon 2020 program
This project has received funding from the European Union’s Horizon 2020
research and innovation programme under grant agreement No 780089.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brian-IoT: Functional Objectives
GOAL In plain English…
TO1: to enforce interoperability across
heterogeneous IoT devices autonomously
cooperating in complex tasks.
IoT devices from different vendors
with different APIs using different
protocols must still work together
TO2: to enable dynamic smart autonomous
behaviour involving actuation in IoT scenarios
Live sensor data should trigger live
responses without human intervention
TO3: to enable the emergence of highly
dynamic federations of heterogeneous IoT
platforms able to support secure and scalable
operations for future IoT use cases
A decentralised “leaderless” system
which can scale up or down at runtime
and is resilient to failure
TO4: to establish Authentication, Authorization
and Accounting (AAA) in dynamic, distributed
IoT scenarios
The system must be secure and have
an audit trail indicating who did what
and when
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brian-IoT: Functional Objectives
GOAL In plain English…
TO5: to provide solutions to embed privacy-
awareness and privacy control features in IoT
solutions
Allow users to limit/prevent personal
information being collected and used.
TO6: to facilitate rapid model-based
development and integration of interoperable
IoT solutions supporting smart cooperative
behaviour
Quick and easy to build smart
systems using templates and tools
TO7: to enable commissioning and
reconfiguration of decentralized IoT-based
applications
Easy to start/expand/contract the IoT
infrastructure. Provide a “marketplace”
for Smart IoT Behaviours
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brian-IoT: Non Functional Objectives?
• Scale - multiple physically distributed locations
• Hundreds of manufacturing facilities globally
• A Federated network of Smart Cities.
• Independence - Each location can function stand-alone
• Remote failures must not break local functions
• Heterogenous - Locations can evolve / change independently
• MUST avoid lockstep upgrades
• Operational Simplicity - Cannot require a Nobel prize to operate
• Must be simple to manage recover / re-form after failure
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brian-IoT: Non Functional Objectives?
• Autonomous - No human in the loop for common processes
• Rapid reactions to emergency scenarios
• Reduced cost associated with common occurrences
• Maintainable - Ability to cost effectively manage the system
• Rapidly apply Security fixes, and 3rd party component updates
• Substitute components that are no longer maintained
• Adaptability - Ability to cost effectively change the system
• Enhance existing function with new features
• Remove services that are no longer required.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brain IoT Use Cases
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brian-IoT: Mission Critical City Infrastructure
• Mission Critical Water Utility Infrastructure: location A Coruña, Spain
• Real Time Sensing, AI anomaly detection and Actuation across a
sophisticated physical City Infrastructure.
• Robustness and Security paramount.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brain-IoT: Robotic Orchestration within Smart Environments
• Orchestration of Robots in a Smart Factory environment.
• Robots `learn` how to interaction with IoT enabled parts of the
environment via dynamic deployments of Smart Behaviours.
• Real time interactions and so low latency, local & Autonomous
interactions required.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Can’t we do this today?
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
The Smart Tech revolution - direct control
“Alexa, decrease the
temperature in the kitchen”
…
“The heat is now set to 19”
“Hey Google, turn off the
lights downstairs”
…
“Sure, turning 6 things off”
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Not so smart assistants
• Smart assistants allow voice control over various smart devices
• Features are enabled by installing “skills”/“apps”
• These take in commands and do things as a result
• The assistant itself doesn’t recognise words
• Ok, so technically it does, in that it can recognise the “wake” word
• Once a wake up is detected, the rest is recorded
• The main voice processing and command triggering is done server side
• Without a live internet connection it’s an expensive paperweight…
• Assistants also don’t help with machine to machine commands
• The only input is through the microphone
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
If This Then That…
• IFTTT is a service for “connected everything”
• Data is consumed from “services” (e.g. GMail, Twitter…)
• Users can create “applets” encapsulating smart behaviours
• An Applet is a combination of a “trigger” (this) and “action” (that)
• Triggers are predicates which select data from a service
• Once a trigger fires then the action can act on another service
• IFTTT also provides an app for your phone
• Support for Geofencing, or proximity detection (e.g. to a WiFi network)
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
If Not This Then What?
• IFTTT looks like it can do everything we need…
• Until you look more closely
• We talked about how data streams are consumed from “services”
• Effectively IFTTT logs in as you and polls these websites for changes
• The latency between event and action can be 15 minutes or more!
• There is also no support for local execution of triggers/actions
• As with assistants, all the processing occurs in the cloud
• IFTTT is therefore good at low priority “cloud service to cloud service” behaviour
• Not good for rapid feedback loops
• Not good for independent resilient systems
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
What’s the deal with Centralised Cloud?
• In vogue since ~2005
• The business proposition - `Compute Resource Arbitraging` -
Increase hardware utilisation by packing customer
applications onto fewer boxes in large data centres.
• Started using VM’s - more recently Container’s - that host
your existing Applications - Configuration changes only
• More recently - Cloud ‘Native’ applications e.g. Function as a
Service. Thereby locking yourself to the PaaS or IaaS 🤔
• Cloud Infrastructure does Fail!
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Centralised Cloud & Smart Home?
1. Alexa: Play
something suitable
2. Alexa
4. NPL - Music
Context - AI < current affairs
Fuzzy AI < Music Library
3. Play Something Suitable
Great for Consumer Market
• Minimal edge processing so
devices are cheap
• Forward everything so
provider owns the data
• Robustness? If Service not
available - Oh well!
• Latency. Not too much of a
problem in a consumer
setting
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Centralised Cloud & IoT 1.0
Cloud Core
IoT Edge
FLOW of DATA
(Flow of Value!)
Just Generalise Consumer Model —
All Data Flows to the Cloud.
• Won’t Scale
• Latency. Is an issue for many IoT
scenarios.
• Robustness? We might have REAL
PROBLEMS!
• Data Privacy
• Data is Commercial Value!
• For a good % of IoT data - value is
only w.r.t. context of environment it
was generated in, and this value
rapidly degrades with time.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Centralised Cloud & IoT 1.0 Scaling
Cloud Core
IoT Edge
FLOW of DATA
(Flow of Value!)
When we talk about scaling, most
people say “the cloud is big and
computers are fast”.
• We don’t mean that you can’t
process the events fast enough
• Although that is a challenge
• To process an event you have to
get the data to the cloud
• The UK has ~40 million cars, so
10 million in use at rush hour?
• 100 bytes/s per car is 1GB/s
• How fast is your cloud’s connection
to the internet?
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Centralised Cloud & IoT 2.0
Cloud Core
IoT Edge
FLOW of DATA
(Flow of Value!)
ANALYTICS RUNTIME
SERVICES
Image Deployment
Container or VM
So Industry has realised that not
everything should flow to / run
within a Central Cloud.
• The new `Big Thing`?
Containers at the Edge 🙄
• Spoke and Hub with something
like Kubernetes deployed to
every location Rest or MQTT
messaging back to a Core.
• Shrink wrapped functionality
• Rigid Homogenous Hierarchy
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Complexity!
45 percent said their biggest deployment worry is that
Docker is too complex to integrate into their environments -
“Hope Versus Reality: Containers in 2016” Cloud Foundry
report
https://www.cloudfoundry.org/hope-versus-reality-containers-in-2016/
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
The Complexity Crisis
We could talk A LOT about this - but we’ll spare you ;-)
see - https://www.osgi.org/developer/modularity/ & https://www.osgi.org/complexity-
modularity-and-business/
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
So how do we solve it?
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Brain-IoT - Approach?
• Industry 4.0 facilities, Smart Cities, Mobile Edge Compute / 5G Edge Cloud
• All Sophisticated, Adaptive, Distributed, Autonomous Environments.
• Using `traditional approaches` in large heterogenous systems doesn’t work
• Operation Complexity rises exponentially. Not economically sustainable!
• Modularity encapsulates Complexity, Modularity enables Agility and Adaption.
• Paremus - Modularity is what we do!
Leverage OSGi Modularity through a Fog structural hierarchy.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
A self-similar Hierarchy
BRAIN-IoT Fabric
A Service Fabric
A Fabric comprised of a set of
co-located OSGi Frameworks
BRAIN-IoT Node
An OSGi Framework
BRAIN-IoT Federation
A collection of Fabrics
Requirements
Capabilities
Requirements
Capabilities
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
A self-similar Hierarchy
• What is a Brain-IoT Federation?
• A dynamic collection of Brain-IoT Fabrics
• Fabrics shield their internal structure from Federation - publish Capabilities.
• What is a Brain-IoT Fabric?
• A dynamic collection of Brain-IoT Nodes
• Nodes shield internal structure from Fabric - publish Capabilities.
• What is a Brain-IoT Node?
• A dynamic collection of Brain IoT behaviours
• Behaviours shield internal implementation detail from each other
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Appropriate Scope & Interactions
`X`
`X`
`Y`
µServices
Bundles
OSGi Remote Services
Messaging
Eventing
BRAIN-IoT Fabric
A Service Fabric
A Fabric comprised of a set of
co-located OSGi Frameworks
BRAIN-IoT Node
An OSGi Framework
BRAIN-IoT Federation
A collection of Fabrics
Nodes are OSGi frameworks
• Behaviours are bundles
exposing services
Fabrics are groups of nodes
• OSGi Remote Services
provide the links between
Federations are groups of fabrics
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Appropriate Scope & Interactions
Service Z (Public)
REST Services
`X`
`X`
`Y`
`Y`
µServices
Bundles
OSGi Remote Services
Messaging
Eventing
OSGi Remote Services
Messaging
REST Services
`U`
`V`
`W`
BRAIN-IoT Fabric
A Service Fabric
A Fabric comprised of a set of
co-located OSGi Frameworks
BRAIN-IoT Node
An OSGi Framework
BRAIN-IoT Federation
A collection of Fabrics
Remote Service visibility is
controlled by Topology
• Services can be exposed
beyond the fabric!
• The OSGi equivalent of a
public cloud API
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Dealing with devices - Eclipse sensiNact
OSGi based IoT Agent
• Rich set of Southbound IoT protocol
adaptors
• Zigbee, EnOcean, LoRa, XBee,
MQTT, XMPP
• Using OSGi Remote Services for
Northbound communication
• Innovate use of Service annotations
for device API modelling
• sensiNact Studio provides a rich IDE
for smart behaviour development
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Dealing with distribution - Paremus Service Fabric
The Service Fabric is an OSGi™ based Cloud / Platform runtime.
Operationally Simple to Create, Manage and Update.
Lightweight & Scalable: A Service Fabric may be created from a few IoT Edge
Compute Nodes, or from 1000’s of data-centre resources.
Independent: Each Service Fabric can operate in isolation from each other.
Agile & Evolvable. Applications adapt to changing circumstances over time.
Secure: including advanced discovery and automatic scoping of Services.
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Putting the Concepts Together
• Individual Facility Fabrics can be managed as Autonomous Units
• A Simple Operational Process to introduce a new Fabric to a Federation and
share services
• Edge nodes run sensiNact adapters to talk to the IoT devices
• All nodes are capable of running smart behaviours
• Smart Behaviours (OSGi Bundles) can be shared across the Federation.
• Behaviours can operate at high levels (federation) if they need to coordinate
over wide areas
• Behaviours which need faster responses or better robustness can move
closer to the edge
• “Reflex” behaviours can run on the edge device itself, allowing safety critical
decisions to be made even when the node loses network connectivity
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Ops Centre
Facility IV
Manufacturing
Facility II
Manufacturing
Facility III
Third Party
Cloud IaaS
Manufacturing
Facility I
An Modular Industry 4.0 `Fog` Environment
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
35
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
Evaluate the Sessions
-1 0 +1
Sign in and vote at eclipsecon.org
Copyright © 2018 Paremus Ltd.

May not be reproduced by any means without express permission. All rights reserved.
Turtles all the way up October 2018
www.paremus.com @Paremus info@paremus.com
Tim Ward
tim.ward@paremus.com

More Related Content

PDF
Microsoft Telecommunications Newsletter | December 2021
PDF
Are you ready for IoT disruption? by Ana Seliškar
PDF
Microsoft Telecommunications Newsletter | September 2021
PPTX
IoT World Forum Press Conference - 10.14.2014
PDF
The State of Edge Computing for IoT
PPTX
Edge Computing and Cloud Computing
PDF
The role of edge computing
PDF
Microsoft Telecommunications Newsletter | August 2021
Microsoft Telecommunications Newsletter | December 2021
Are you ready for IoT disruption? by Ana Seliškar
Microsoft Telecommunications Newsletter | September 2021
IoT World Forum Press Conference - 10.14.2014
The State of Edge Computing for IoT
Edge Computing and Cloud Computing
The role of edge computing
Microsoft Telecommunications Newsletter | August 2021

What's hot (17)

PPTX
presentation on Edge computing
PPTX
Edge Computing
PDF
Cloud Computing and Edge Computing(CTO Kieun Park) - Edge Computing Seminar
PDF
Edge Computing M&A Analysis
PDF
how to implement an IoT architecture
PDF
EDGE COMPUTING: VISION AND CHALLENGES
PDF
EDGE COMPUTING
PDF
fog&Edge computing
PDF
IoT Security Assessment - IEEE PAR Proposal
PDF
Five Trends in IoT and Edge Computing to Track in 2019
PDF
Cloud, Fog & Edge Computing
PDF
Edge computing
PPTX
Edge and Fog computing, a use-case prespective
PPTX
Edge Computing & AI
PDF
Ericsson Review: Capillary networks – a smart way to get things connected
PDF
Microsoft Telecommunications Industry News | October 2020
PPTX
Edge computing
presentation on Edge computing
Edge Computing
Cloud Computing and Edge Computing(CTO Kieun Park) - Edge Computing Seminar
Edge Computing M&A Analysis
how to implement an IoT architecture
EDGE COMPUTING: VISION AND CHALLENGES
EDGE COMPUTING
fog&Edge computing
IoT Security Assessment - IEEE PAR Proposal
Five Trends in IoT and Edge Computing to Track in 2019
Cloud, Fog & Edge Computing
Edge computing
Edge and Fog computing, a use-case prespective
Edge Computing & AI
Ericsson Review: Capillary networks – a smart way to get things connected
Microsoft Telecommunications Industry News | October 2020
Edge computing
Ad

Similar to Turtles all the Way Up – From OSGi bundles to Fog Computing - Tim Ward (Paremus) (20)

PPTX
Lunch Keynote
PDF
Edge patterns in the IIoT
PPTX
Getting started with IoT
PPTX
How to start your IOT journey
PDF
IoT Trends in Industrial IoT for 2018
PDF
Internet of Things Presentation to Los Angeles CTO Forum
PDF
Introduction to Internet of Things (IoT)
PDF
Iot tunisia forum 2017 internet of things trends_directions and opportunit...
PDF
UCT IoT Deployment and Challenges
PDF
Internet of Things Stack - Presentation Version
PPTX
Convergence of Embedded Systems, Edge Intelligence, and Machine Learning in t...
PDF
IoT Technical Challenges and Solutions 1st Edition Arpan Pal
PDF
IoT Technical Challenges and Solutions 1st Edition Arpan Pal
PDF
Industrial IoT Application Architectures and Use Cases 1st Edition A. Suresh
PPTX
IOT Demystified
PDF
Powering the Intelligent Edge: HPE's Strategy and Direction for IoT & Big Data
PPTX
Fin fest 2014 - Internet of Things and APIs
PDF
Foundational Elements for IoT (1)
PPTX
Data, Big Data and real time analytics for Connected Devices
PDF
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
Lunch Keynote
Edge patterns in the IIoT
Getting started with IoT
How to start your IOT journey
IoT Trends in Industrial IoT for 2018
Internet of Things Presentation to Los Angeles CTO Forum
Introduction to Internet of Things (IoT)
Iot tunisia forum 2017 internet of things trends_directions and opportunit...
UCT IoT Deployment and Challenges
Internet of Things Stack - Presentation Version
Convergence of Embedded Systems, Edge Intelligence, and Machine Learning in t...
IoT Technical Challenges and Solutions 1st Edition Arpan Pal
IoT Technical Challenges and Solutions 1st Edition Arpan Pal
Industrial IoT Application Architectures and Use Cases 1st Edition A. Suresh
IOT Demystified
Powering the Intelligent Edge: HPE's Strategy and Direction for IoT & Big Data
Fin fest 2014 - Internet of Things and APIs
Foundational Elements for IoT (1)
Data, Big Data and real time analytics for Connected Devices
IoT Predictions for 2019 and Beyond: Data at the Heart of Your IoT Strategy
Ad

More from mfrancis (20)

PDF
Eclipse Modeling Framework and plain OSGi the easy way - Mark Hoffman (Data I...
PDF
OSGi and Java 9+ - BJ Hargrave (IBM)
PDF
Simplify Web UX Coding using OSGi Modularity Magic - Paul Fraser (A2Z Living)
PDF
OSGi for the data centre - Connecting OSGi to Kubernetes - Frank Lyaruu
PDF
Remote Management and Monitoring of Distributed OSGi Applications - Tim Verbe...
PDF
OSGi with Docker - a powerful way to develop Java systems - Udo Hafermann (So...
PDF
A real world use case with OSGi R7 - Jurgen Albert (Data In Motion Consulting...
PDF
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
PDF
Migrating from PDE to Bndtools in Practice - Amit Kumar Mondal (Deutsche Tele...
PDF
OSGi CDI Integration Specification - Ray Augé (Liferay)
PDF
How OSGi drives cross-sector energy management - Jörn Tümmler (SMA Solar Tech...
PDF
Improved developer productivity thanks to Maven and OSGi - Lukasz Dywicki (Co...
PDF
It Was Twenty Years Ago Today - Building an OSGi based Smart Home System - Ch...
PDF
Popular patterns revisited on OSGi - Christian Schneider (Adobe)
PDF
Integrating SLF4J and the new OSGi LogService 1.4 - BJ Hargrave (IBM)
PDF
OSG(a)i: because AI needs a runtime - Tim Verbelen (imec)
PDF
Flying to Jupiter with OSGi - Tony Walsh (ESA) & Hristo Indzhov (Telespazio V...
PDF
MicroProfile, OSGi was meant for this - Ray Auge (Liferay)
PDF
Prototyping IoT systems with a hybrid OSGi & Node-RED platform - Bruce Jackso...
PDF
How to connect your OSGi application - Dirk Fauth (Bosch)
Eclipse Modeling Framework and plain OSGi the easy way - Mark Hoffman (Data I...
OSGi and Java 9+ - BJ Hargrave (IBM)
Simplify Web UX Coding using OSGi Modularity Magic - Paul Fraser (A2Z Living)
OSGi for the data centre - Connecting OSGi to Kubernetes - Frank Lyaruu
Remote Management and Monitoring of Distributed OSGi Applications - Tim Verbe...
OSGi with Docker - a powerful way to develop Java systems - Udo Hafermann (So...
A real world use case with OSGi R7 - Jurgen Albert (Data In Motion Consulting...
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
Migrating from PDE to Bndtools in Practice - Amit Kumar Mondal (Deutsche Tele...
OSGi CDI Integration Specification - Ray Augé (Liferay)
How OSGi drives cross-sector energy management - Jörn Tümmler (SMA Solar Tech...
Improved developer productivity thanks to Maven and OSGi - Lukasz Dywicki (Co...
It Was Twenty Years Ago Today - Building an OSGi based Smart Home System - Ch...
Popular patterns revisited on OSGi - Christian Schneider (Adobe)
Integrating SLF4J and the new OSGi LogService 1.4 - BJ Hargrave (IBM)
OSG(a)i: because AI needs a runtime - Tim Verbelen (imec)
Flying to Jupiter with OSGi - Tony Walsh (ESA) & Hristo Indzhov (Telespazio V...
MicroProfile, OSGi was meant for this - Ray Auge (Liferay)
Prototyping IoT systems with a hybrid OSGi & Node-RED platform - Bruce Jackso...
How to connect your OSGi application - Dirk Fauth (Bosch)

Recently uploaded (20)

PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Big Data Technologies - Introduction.pptx
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Spectral efficient network and resource selection model in 5G networks
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Reach Out and Touch Someone: Haptics and Empathic Computing
Understanding_Digital_Forensics_Presentation.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Big Data Technologies - Introduction.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
The AUB Centre for AI in Media Proposal.docx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Spectral efficient network and resource selection model in 5G networks

Turtles all the Way Up – From OSGi bundles to Fog Computing - Tim Ward (Paremus)

  • 1. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Tim Ward
 tim.ward@paremus.com Turtles all the way up - From OSGi bundles to Fog Computing
  • 2. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Who is Tim Ward? Chief Technology Officer at Paremus 10 years developing OSGi specifications Co-chair of the OSGi IoT Expert Group Distributed Platform expert for the Brain IoT project Author of Manning’s Enterprise OSGi in Action http://www.manning.com/cummins @TimothyWard
  • 3. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 What is Brain IoT?
  • 4. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 An Intelligent Decentralised Fog Platform Part of the European Union Horizon 2020 program This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 780089.
  • 5. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brian-IoT: Functional Objectives GOAL In plain English… TO1: to enforce interoperability across heterogeneous IoT devices autonomously cooperating in complex tasks. IoT devices from different vendors with different APIs using different protocols must still work together TO2: to enable dynamic smart autonomous behaviour involving actuation in IoT scenarios Live sensor data should trigger live responses without human intervention TO3: to enable the emergence of highly dynamic federations of heterogeneous IoT platforms able to support secure and scalable operations for future IoT use cases A decentralised “leaderless” system which can scale up or down at runtime and is resilient to failure TO4: to establish Authentication, Authorization and Accounting (AAA) in dynamic, distributed IoT scenarios The system must be secure and have an audit trail indicating who did what and when
  • 6. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brian-IoT: Functional Objectives GOAL In plain English… TO5: to provide solutions to embed privacy- awareness and privacy control features in IoT solutions Allow users to limit/prevent personal information being collected and used. TO6: to facilitate rapid model-based development and integration of interoperable IoT solutions supporting smart cooperative behaviour Quick and easy to build smart systems using templates and tools TO7: to enable commissioning and reconfiguration of decentralized IoT-based applications Easy to start/expand/contract the IoT infrastructure. Provide a “marketplace” for Smart IoT Behaviours
  • 7. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brian-IoT: Non Functional Objectives? • Scale - multiple physically distributed locations • Hundreds of manufacturing facilities globally • A Federated network of Smart Cities. • Independence - Each location can function stand-alone • Remote failures must not break local functions • Heterogenous - Locations can evolve / change independently • MUST avoid lockstep upgrades • Operational Simplicity - Cannot require a Nobel prize to operate • Must be simple to manage recover / re-form after failure
  • 8. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brian-IoT: Non Functional Objectives? • Autonomous - No human in the loop for common processes • Rapid reactions to emergency scenarios • Reduced cost associated with common occurrences • Maintainable - Ability to cost effectively manage the system • Rapidly apply Security fixes, and 3rd party component updates • Substitute components that are no longer maintained • Adaptability - Ability to cost effectively change the system • Enhance existing function with new features • Remove services that are no longer required.
  • 9. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brain IoT Use Cases
  • 10. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brian-IoT: Mission Critical City Infrastructure • Mission Critical Water Utility Infrastructure: location A Coruña, Spain • Real Time Sensing, AI anomaly detection and Actuation across a sophisticated physical City Infrastructure. • Robustness and Security paramount.
  • 11. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brain-IoT: Robotic Orchestration within Smart Environments • Orchestration of Robots in a Smart Factory environment. • Robots `learn` how to interaction with IoT enabled parts of the environment via dynamic deployments of Smart Behaviours. • Real time interactions and so low latency, local & Autonomous interactions required.
  • 12. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Can’t we do this today?
  • 13. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 The Smart Tech revolution - direct control “Alexa, decrease the temperature in the kitchen” … “The heat is now set to 19” “Hey Google, turn off the lights downstairs” … “Sure, turning 6 things off”
  • 14. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Not so smart assistants • Smart assistants allow voice control over various smart devices • Features are enabled by installing “skills”/“apps” • These take in commands and do things as a result • The assistant itself doesn’t recognise words • Ok, so technically it does, in that it can recognise the “wake” word • Once a wake up is detected, the rest is recorded • The main voice processing and command triggering is done server side • Without a live internet connection it’s an expensive paperweight… • Assistants also don’t help with machine to machine commands • The only input is through the microphone
  • 15. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 If This Then That… • IFTTT is a service for “connected everything” • Data is consumed from “services” (e.g. GMail, Twitter…) • Users can create “applets” encapsulating smart behaviours • An Applet is a combination of a “trigger” (this) and “action” (that) • Triggers are predicates which select data from a service • Once a trigger fires then the action can act on another service • IFTTT also provides an app for your phone • Support for Geofencing, or proximity detection (e.g. to a WiFi network)
  • 16. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 If Not This Then What? • IFTTT looks like it can do everything we need… • Until you look more closely • We talked about how data streams are consumed from “services” • Effectively IFTTT logs in as you and polls these websites for changes • The latency between event and action can be 15 minutes or more! • There is also no support for local execution of triggers/actions • As with assistants, all the processing occurs in the cloud • IFTTT is therefore good at low priority “cloud service to cloud service” behaviour • Not good for rapid feedback loops • Not good for independent resilient systems
  • 17. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 What’s the deal with Centralised Cloud? • In vogue since ~2005 • The business proposition - `Compute Resource Arbitraging` - Increase hardware utilisation by packing customer applications onto fewer boxes in large data centres. • Started using VM’s - more recently Container’s - that host your existing Applications - Configuration changes only • More recently - Cloud ‘Native’ applications e.g. Function as a Service. Thereby locking yourself to the PaaS or IaaS 🤔 • Cloud Infrastructure does Fail!
  • 18. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Centralised Cloud & Smart Home? 1. Alexa: Play something suitable 2. Alexa 4. NPL - Music Context - AI < current affairs Fuzzy AI < Music Library 3. Play Something Suitable Great for Consumer Market • Minimal edge processing so devices are cheap • Forward everything so provider owns the data • Robustness? If Service not available - Oh well! • Latency. Not too much of a problem in a consumer setting
  • 19. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Centralised Cloud & IoT 1.0 Cloud Core IoT Edge FLOW of DATA (Flow of Value!) Just Generalise Consumer Model — All Data Flows to the Cloud. • Won’t Scale • Latency. Is an issue for many IoT scenarios. • Robustness? We might have REAL PROBLEMS! • Data Privacy • Data is Commercial Value! • For a good % of IoT data - value is only w.r.t. context of environment it was generated in, and this value rapidly degrades with time.
  • 20. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Centralised Cloud & IoT 1.0 Scaling Cloud Core IoT Edge FLOW of DATA (Flow of Value!) When we talk about scaling, most people say “the cloud is big and computers are fast”. • We don’t mean that you can’t process the events fast enough • Although that is a challenge • To process an event you have to get the data to the cloud • The UK has ~40 million cars, so 10 million in use at rush hour? • 100 bytes/s per car is 1GB/s • How fast is your cloud’s connection to the internet?
  • 21. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Centralised Cloud & IoT 2.0 Cloud Core IoT Edge FLOW of DATA (Flow of Value!) ANALYTICS RUNTIME SERVICES Image Deployment Container or VM So Industry has realised that not everything should flow to / run within a Central Cloud. • The new `Big Thing`? Containers at the Edge 🙄 • Spoke and Hub with something like Kubernetes deployed to every location Rest or MQTT messaging back to a Core. • Shrink wrapped functionality • Rigid Homogenous Hierarchy
  • 22. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018
  • 23. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Complexity! 45 percent said their biggest deployment worry is that Docker is too complex to integrate into their environments - “Hope Versus Reality: Containers in 2016” Cloud Foundry report https://www.cloudfoundry.org/hope-versus-reality-containers-in-2016/
  • 24. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 The Complexity Crisis We could talk A LOT about this - but we’ll spare you ;-) see - https://www.osgi.org/developer/modularity/ & https://www.osgi.org/complexity- modularity-and-business/
  • 25. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 So how do we solve it?
  • 26. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Brain-IoT - Approach? • Industry 4.0 facilities, Smart Cities, Mobile Edge Compute / 5G Edge Cloud • All Sophisticated, Adaptive, Distributed, Autonomous Environments. • Using `traditional approaches` in large heterogenous systems doesn’t work • Operation Complexity rises exponentially. Not economically sustainable! • Modularity encapsulates Complexity, Modularity enables Agility and Adaption. • Paremus - Modularity is what we do! Leverage OSGi Modularity through a Fog structural hierarchy.
  • 27. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 A self-similar Hierarchy BRAIN-IoT Fabric A Service Fabric A Fabric comprised of a set of co-located OSGi Frameworks BRAIN-IoT Node An OSGi Framework BRAIN-IoT Federation A collection of Fabrics Requirements Capabilities Requirements Capabilities
  • 28. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 A self-similar Hierarchy • What is a Brain-IoT Federation? • A dynamic collection of Brain-IoT Fabrics • Fabrics shield their internal structure from Federation - publish Capabilities. • What is a Brain-IoT Fabric? • A dynamic collection of Brain-IoT Nodes • Nodes shield internal structure from Fabric - publish Capabilities. • What is a Brain-IoT Node? • A dynamic collection of Brain IoT behaviours • Behaviours shield internal implementation detail from each other
  • 29. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Appropriate Scope & Interactions `X` `X` `Y` µServices Bundles OSGi Remote Services Messaging Eventing BRAIN-IoT Fabric A Service Fabric A Fabric comprised of a set of co-located OSGi Frameworks BRAIN-IoT Node An OSGi Framework BRAIN-IoT Federation A collection of Fabrics Nodes are OSGi frameworks • Behaviours are bundles exposing services Fabrics are groups of nodes • OSGi Remote Services provide the links between Federations are groups of fabrics
  • 30. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Appropriate Scope & Interactions Service Z (Public) REST Services `X` `X` `Y` `Y` µServices Bundles OSGi Remote Services Messaging Eventing OSGi Remote Services Messaging REST Services `U` `V` `W` BRAIN-IoT Fabric A Service Fabric A Fabric comprised of a set of co-located OSGi Frameworks BRAIN-IoT Node An OSGi Framework BRAIN-IoT Federation A collection of Fabrics Remote Service visibility is controlled by Topology • Services can be exposed beyond the fabric! • The OSGi equivalent of a public cloud API
  • 31. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Dealing with devices - Eclipse sensiNact OSGi based IoT Agent • Rich set of Southbound IoT protocol adaptors • Zigbee, EnOcean, LoRa, XBee, MQTT, XMPP • Using OSGi Remote Services for Northbound communication • Innovate use of Service annotations for device API modelling • sensiNact Studio provides a rich IDE for smart behaviour development
  • 32. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Dealing with distribution - Paremus Service Fabric The Service Fabric is an OSGi™ based Cloud / Platform runtime. Operationally Simple to Create, Manage and Update. Lightweight & Scalable: A Service Fabric may be created from a few IoT Edge Compute Nodes, or from 1000’s of data-centre resources. Independent: Each Service Fabric can operate in isolation from each other. Agile & Evolvable. Applications adapt to changing circumstances over time. Secure: including advanced discovery and automatic scoping of Services.
  • 33. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Putting the Concepts Together • Individual Facility Fabrics can be managed as Autonomous Units • A Simple Operational Process to introduce a new Fabric to a Federation and share services • Edge nodes run sensiNact adapters to talk to the IoT devices • All nodes are capable of running smart behaviours • Smart Behaviours (OSGi Bundles) can be shared across the Federation. • Behaviours can operate at high levels (federation) if they need to coordinate over wide areas • Behaviours which need faster responses or better robustness can move closer to the edge • “Reflex” behaviours can run on the edge device itself, allowing safety critical decisions to be made even when the node loses network connectivity
  • 34. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Ops Centre Facility IV Manufacturing Facility II Manufacturing Facility III Third Party Cloud IaaS Manufacturing Facility I An Modular Industry 4.0 `Fog` Environment
  • 35. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 35
  • 36. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 Evaluate the Sessions -1 0 +1 Sign in and vote at eclipsecon.org
  • 37. Copyright © 2018 Paremus Ltd. May not be reproduced by any means without express permission. All rights reserved. Turtles all the way up October 2018 www.paremus.com @Paremus info@paremus.com Tim Ward tim.ward@paremus.com