Liberating the Black Box - Real-Time Communications for the Internet of Things

37
@pmoskovi #kaazing Liberating the Black Box Peter Moskovits @pmoskovi Kaazing.com

description

Commercial aviation’s biggest challenge when things go wrong is that flight data is stuck on the plane inside the black box. Until the black box is recovered, we barely know anything about what went wrong. This presentation offers detailed insights how IoT and modern Web communications concepts have the power to change all this. I you’re a maker, you will learn about flight sensors attached and controlled by Arduino, data transmitted over long range WiFi as well as satellite networks. If interested in real-time Web communications, you’ll learn about a highly secure and scalable WebSocket implementation with extreme scale, publishing flight data to tablets and laptops used as monitoring dashboard. Regardless of your background, you’ll have fun. Guaranteed!

Transcript of Liberating the Black Box - Real-Time Communications for the Internet of Things

Page 1: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Liberating the Black Box

Peter [email protected]

Page 2: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Peter MoskovitsHead of Real-Time [email protected]@pmoskovi

About Peter

Page 3: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Demos

Page 4: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

HTML5 WebSocket: TCP for the Web

Standard Protocol (IETF): RFC-6455

Standard API (W3C): JavaScript Single socket, full-duplex

Full duplex

Low overhead: <1% of HTTP Low latency: low milliseconds SSL support

Page 5: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

The Event-Driven Web

Browser

Half Duplex

Full duplex

Back-end server

Web

Web Tier Middleware

Legacy Web

Page 6: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

The Event-Driven Web

Browser

Half DuplexFull duplex

Back-end server

Web

Web Tier

Middleware

Legacy Web

Event-Driven Web

Back-end serverWebSocket Server

Web

WebSocket Full duplex

Page 7: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Protocol Layering

TCP

HTTP

Your application

AMQP MQTT

WebSocket

Page 8: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Protocol Layering

WebSocket

TCP

JMS XMPP AMQP B2B FTP VNC mktdata etc

Browsers, Native Applications and IoT Devices

WebSocketGateway

Internet

Page 9: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

WebSocket Server and Clients

Page 10: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Enterprise Messaging Extended to the Web

Page 11: Liberating the Black Box - Real-Time Communications for the Internet of Things

@YourTwitterHandle@pmoskovi#kaazing

Connected Devices

Bridging the Gap Between Hardware and Software

Page 12: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Enterprise Messaging Extended to the Web

Page 13: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Enterprise Messaging Extended to the Web

Page 14: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Controlling the Light Remotely Using Pub-Sub Over the Web

Page 15: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Light Switch: Range Extended to the Web

Page 16: Liberating the Black Box - Real-Time Communications for the Internet of Things

@YourTwitterHandle@pmoskovi#kaazing

Page 17: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Remote Controlling Car Over the Web

Page 18: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

KWG

Message Broker

JMSWS

JMSWS

JMSWSJM

SW

S

Telemetry Data Distributed to the Web Over Satellite Network

Page 19: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

KWG

Message Broker

JMSWS

JMSWS

JMSWSJM

SW

S

Telemetry Data Distributed to the Web Over Satellite Network

Page 20: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Telemetry Data Distributed to the Web Over Satellite Network

KWG

Message Broker

JMSWS

JMSWS

JMSWSJM

SW

S

Java App

Page 21: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

KWG

Message Broker

JMSWS

JMSWS

JMSWSJM

SW

S

Java App

Telemetry Data Distributed to the Web Over Satellite Network

Page 22: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

About the Quadcopter: DJI Phantom 2

Page 23: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

The Sensor Stack

Page 24: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Arduino: GPS, thermometer, humidity, compass, accelerometer + Go Pro

Page 25: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Satellite Terminal: InmarSat – Geostationary Satellites

Page 26: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Satellite Terminal: InmarSat – Geostationary Satellites

Page 27: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

The Team

Page 28: Liberating the Black Box - Real-Time Communications for the Internet of Things

@YourTwitterHandle@pmoskovi#kaazing

Page 29: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

End-to-end Latency: Under ONE Second

Page 30: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

It’s More Than “Just” the Web

Page 31: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Connected Devices

Page 32: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Connected Devices Communicating Over WebSocket

AMQP/WS

MQTT/WS

JMS/WS

STOMP/WS

XMPP/WS

Page 33: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Connected Devices Communicating with Proprietary Protocols Over WebSocket

WS

WS WSWS

WS

WSWS

WSWS

Page 34: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

What Does KAAZING Do?

Clients disconnect

Network intermediari

es

Locked down

firewalls

Millions of users

High availability

Disaster recovery

Developer productivity

Integration with existing

security infrastructur

e

Page 35: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

Learn More

• http://kaazing.com

• http://tutorial.kaazing.com

• http://kaazing.com/telemetry

• The Definitive Guide to HTML5 WebSocket

Page 36: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing

About Peter

Peter MoskovitsHead of Real-Time [email protected]@pmoskovi

Page 37: Liberating the Black Box - Real-Time Communications for the Internet of Things

@pmoskovi#kaazing