IOT and Edge Compute at What to Expect from the Session Why IOT? - - PowerPoint PPT Presentation

iot and edge compute at what to expect from the session
SMART_READER_LITE
LIVE PREVIEW

IOT and Edge Compute at What to Expect from the Session Why IOT? - - PowerPoint PPT Presentation

IOT and Edge Compute at What to Expect from the Session Why IOT? Design Principles Chick-fil-A Architecture Security Edge Key Takeaways QA What is a thing? What is a thing anyway? Internet of Things:


slide-1
SLIDE 1

IOT and Edge Compute at

slide-2
SLIDE 2

What to Expect from the Session

  • Why IOT?
  • Design Principles
  • Chick-fil-A Architecture

– Security – Edge

  • Key Takeaways
  • QA
slide-3
SLIDE 3

What is a “thing”?

What is a “thing” anyway?

slide-4
SLIDE 4

Internet of Things: Why?

Why IOT?

slide-5
SLIDE 5

Principles: Security TODO – some sort of intro to IOT design principles / considerations slide Maybe just some pictures over a few slides that tell the story

Secure

Credit: https://www.glassdoor.com/Photos/AMG-National-Trust-Bank-Office-Photos-IMG491177.htm

Secure

Credit: Brook Ward / https://creativecommons.org/licenses/by-nc/2.0/

Secure

slide-6
SLIDE 6

Open

Credit: https://www.inc.com/14-tips-for-jumping-entrepreneurships-hurdles.html

Open

slide-7
SLIDE 7

Scalable

Scalable

Credit - http://www.content4demand.com/blog/better-approach-building-modular-content/

slide-8
SLIDE 8

Chick-fil-A Architecture

MSGing Web Server Local Auth

Edge Cloud

Event Fwding Apps … Local Persistence/Storage - Redis

Connectivity

Analytics Management

Things

OAuth Server MQTT

Edge Tools

slide-9
SLIDE 9

Chick-fil-A Architecture

Edge Cloud Connectivity Things

slide-10
SLIDE 10

Let’s create a new product…

Requirements

  • Should be amazing!
  • Produced with a new machine we’ll develop
  • Should be able to collect data from our machine
  • Should be able to command our machine to cook

what we want on demand

slide-11
SLIDE 11

Presenting the IOT Sandwich

slide-12
SLIDE 12

Our Machine

slide-13
SLIDE 13

How do I connect my device?

slide-14
SLIDE 14

Securing the IoT

  • Network Access
  • Credential Management
  • Transport Layer Security
  • Brokered Communications
  • Device Registration
  • Authentication / Authorization
slide-15
SLIDE 15

Registration & AuthN/AuthZ

  • Dynamic Client Registration for OAuth Clients
  • Authorization – Human authorization
  • Auth Code Flow / Device Code Flow
  • Stateless Tokens – JWT
  • No degradation when WAN offline
  • Software Development Kit (SDK) to make it easy
slide-16
SLIDE 16

Security: Demo What happens with a new device?

  • 1. Connect (Wi-Fi in our case)
  • 2. Discover endpoints via .wellknown
  • 3. Register with Auth Server
  • 4. Request authorization as Johnny 5
  • 5. Approve the request (SSO / MFA)
  • 6. Return a JWT
  • 7. Switch Wi-Fi Networks
slide-17
SLIDE 17

Chick-fil-A Architecture

Cloud Connectivity Things

OAuth Server

Edge

slide-18
SLIDE 18

Security Recommendations

  • 1. Don’t hardcode permanent, powerful credentials at

manufacture time, and then never change them

  • 2. Require human authorization for devices whenever

possible

  • 3. Monitor device traffic profiles to ensure they are

behaving normally

  • 4. Don’t allow inbound connectivity if possible
slide-19
SLIDE 19

How do I collect data from the device?

slide-20
SLIDE 20

Collecting Data from Things

  • Lightweight messaging protocol
  • Pub / Sub functionality
  • Collect events
  • Brokers “thing” interactions
  • Mosca Broker backed by Redis
slide-21
SLIDE 21

MQTT: Demo Picking up where we left of…

  • Already have a JWT
  • Connect to MQTT broker
  • Publish some “state” messages
slide-22
SLIDE 22

Chick-fil-A Architecture

Local Auth

Edge Cloud Connectivity Things

OAuth Server MQTT

Edge Tools

MSGing

slide-23
SLIDE 23

What if we lose connectivity? What if the network is too slow?

slide-24
SLIDE 24

Edge Architecture Why Edge Compute?

  • Support critical businesses when

network is down

  • Reduce latency for “thing”

interactions

  • Data aggregation before shipping to

cloud

slide-25
SLIDE 25

Edge Architecture

“What IS this? A center for ANTS!? It needs to be at least… three times this big…”

slide-26
SLIDE 26

Edge Architecture

MSGing Web Server Local Auth Event Fwding Local Persistence/Storage - Redis Edge Tools

slide-27
SLIDE 27

Edge Architecture Docker Swarm

  • Separation / Microservices at

Edge

  • Self-healing architecture
  • Discovery
  • Portability of apps b/w Edge

and Cloud

slide-28
SLIDE 28

Edge Architecture Local Web Server

  • Internal Content Delivery
  • Reverse Proxy for Edge

Microservices

slide-29
SLIDE 29

Edge Architecture Event & Log Forwarding

  • MQTT forwarding
  • Docker log forwarding
slide-30
SLIDE 30

Edge Architecture Persistence

  • Distributed across all Edge

nodes using clustering

  • Supports Edge application

persistence

slide-31
SLIDE 31

Edge Architecture

Local Auth

Edge Cloud

OAuth Server

MQTT 1. Register 2. Get JWT

  • 4. Refresh

token

  • 5. Connect /

Pub / Sub

  • 3. Refresh

Token

slide-32
SLIDE 32

Chick-fil-A Architecture

MSGing Web Server Local Auth

Edge Cloud

Event Fwding Local Persistence/Storage - Redis

Connectivity

Analytics

Things

OAuth Server MQTT

Edge Tools

slide-33
SLIDE 33

How do I build an application to control my device?

slide-34
SLIDE 34

Edge Applications

  • Run in Docker containers
  • On-board as a software “thing”
  • Interact with local and cloud services
  • Short-lived vs Long-lived
  • Service Limits
slide-35
SLIDE 35

CI /CD for IOT

Commit Build Virtual Edge Validate Release Candidate Deploy Integration Tests

slide-36
SLIDE 36

Edge Applications: Putting it together

MQTT

Johnny 5 Controller Cloud Controller App

Edge Cloud

Cook State Get Data Pub State Subscribe Subscribe Pub State

slide-37
SLIDE 37

Chick-fil-A Architecture

MSGing Web Server Local Auth

Edge Cloud

Event Fwding Apps … Local Persistence/Storage - Redis

Connectivity

Analytics

Things

OAuth Server MQTT

Edge Tools

slide-38
SLIDE 38

Operations

A word on operations

slide-39
SLIDE 39

The IoT Sandwich

We didn’t invent IOT, just the IOT Sandwich

slide-40
SLIDE 40

Chick-fil-A Architecture

MSGing Web Server Local Auth

Edge Cloud

Event Fwding Apps … Local Persistence/Storage - Redis

Connectivity

Analytics Management

Things

OAuth Server MQTT

Edge Tools

slide-41
SLIDE 41

Key Takeaways Connecting things creates the opportunity to orchestrate interactions between devices and people

  • Think ecosystem: secure, open, scalable
  • Cloud First, but if you need Edge, design it like a micro-

cloud

  • Ensure that you have a strong security story
slide-42
SLIDE 42

What’s Next for Chick-fil-A?

  • Analytics and Machine Learning on IoT Data
  • Machine Learning at the Edge
  • Considering providing local queueing for Edge apps
  • Re-evaluating persistence
  • Support for short-lived apps
slide-43
SLIDE 43

Where to find me

www.linkedin.com/in/brian-chambers @brianchambers21 http://brianchambers.blog