MQTT in the Internet of Things | Loop by Litmus Automation
-
Upload
litmusautomation -
Category
Internet
-
view
2.449 -
download
3
description
Transcript of MQTT in the Internet of Things | Loop by Litmus Automation
![Page 1: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/1.jpg)
MQTT in the Internet of ThingsVatsal Shah | Founder & CEO, Litmus Automation
Internet of Things WorldJune 16th-18th, 2014 | Palo Alto, USA
@vatsal1212 @LAutomation
![Page 2: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/2.jpg)
Founder | CEO of Litmus Automation
Vatsal Shah
Loves IoTIndustrial Automation guy
@vatsal1212 [email protected]
OSS supporter
![Page 3: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/3.jpg)
MQTT as an IoT Protocol.
Features of MQTT.
MQTT: Myths vs. Reality.
MQTT: Practical Implementations.
Agenda
![Page 4: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/4.jpg)
What is the talk of the town?
![Page 5: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/5.jpg)
3,000,000,000 User Interfacesby 2022.
14,000,000,000 ConnectedDevices.Billion
Fourth Industrial RevolutionSources: Bosch Blog 2014, Machina Research, 2014 and Cisco VNI Mobile Forecast Highlights 2012-2017
![Page 6: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/6.jpg)
Lets look at how things TALK.Their Language = Protocol
Speak/listen only when neededAble to communicate with allAvoid getting drained by talking
Ideal Communication
Able to talk in all situations
![Page 7: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/7.jpg)
The Battlefield of Protocols.Cluttered & No Single Direction
HTTP | AMQP | MQTT | XMPP | Others
![Page 8: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/8.jpg)
Foundation and Community.
Late 1990s
Aug 2010
Nov 2011
Feb 2013
Invented by IBM and Eurotech
Protocol spec published royalty-free
Joined hands with Eclipse M2M group
Proposed as an OASIS standard
![Page 9: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/9.jpg)
MQTTMessage Queuing Telemetry Transport
Publish Subscribe
MQTT Broker
Simple, Asynchronous (“push”) delivery of messages through Pub/Sub Architecture
Mob Apps
Dashboard System
Other devices
Data Storage
Enterprise Applications
Different Devices
and Applications
1-1 , 1 - N or N – 1 flexible Pub/Sub structure
![Page 10: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/10.jpg)
Lightweight (network)Binary Protocol | Minimum Overhead | 2 bytes
![Page 11: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/11.jpg)
Low bandwidth | Copes with Slow N/WMade for Unreliable Networks
![Page 12: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/12.jpg)
Lightweight (CPU)Large & Small devices | Many languages
![Page 13: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/13.jpg)
Quality of Service Levels
Publisher SubscriberPublish Publish
Delete Message
QoS 0: At most onceFire and Forget
Loop Broker
Publish
![Page 14: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/14.jpg)
Quality of Service Levels
Publisher SubscriberPublish Publish
Delete Message
QoS 1: At least onceReliable mode
Loop Broker
Publish + PubAck
Store MessageStore
Delete
![Page 15: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/15.jpg)
Quality of Service Levels
Publisher SubscriberPublish Publish
Delete Message
QoS 2: Exactly onceSafest but slowest
Loop Broker
Publish + PubRec + PubRel + PubComp
Store MessageStore
Delete
Pub Complete
![Page 16: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/16.jpg)
1 {2 mqtt.connect();3 mqtt.publish();4 mqtt.subscribe();5 mqtt.unsubscribe();6 mqtt.disconnect();7 }89 Simple
Simple to implement | No SDK nightmares
![Page 17: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/17.jpg)
Wildcard Subscription
Plant 1
Machine 1 Machine 2
Plant 1
Machine 1 Machine 2
Plant 1 / # Plant 1 / Machine 1 / +Plant 1 / + / Database
Plant 1
Machine 1 Machine 2
Multiple subscriptions | Easy client design
![Page 18: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/18.jpg)
Last Will and TestamentBroker caches & publishes on death
![Page 19: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/19.jpg)
MQTT: Myths vs. Reality
![Page 20: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/20.jpg)
Broker is the Single Point of FailureBroker Cluster | Replication of states | Failover
Myth1
![Page 21: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/21.jpg)
Security in MQTT is difficultSSL / TLS | Application layer | Privacy policies
Made for devices
Myth2
![Page 22: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/22.jpg)
MQTT Payload Agnostic is an issueBig advantage for devices | Adaptability
Myth3
![Page 23: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/23.jpg)
MQTT is not Scalable`
Myth4
Horizontal | Vertical | Across Datacenters
![Page 24: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/24.jpg)
Getting off the ground: MQTT Use CasesImmobile: Factory Floor | Mobile: Container
![Page 25: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/25.jpg)
Challenges
Immobile: Factory Floor• Robust communication• Existing standards / Retrofitting• Large data chunk• Security is the primary concern
Mobile: Container• Bandwidth , bandwidth , bandwidth• Small session length• Inaccuracy in sensor readings• Power
![Page 26: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/26.jpg)
Factory Floor
MQTT Broker
Machine 1
Machine 2
Machine 3
Weather Station
ERP System
Inventory Mgt System
LED Boards
SCADA
HMI
MongoDBDatabase
WiFi
Ethernet
2G
WiFi
![Page 27: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/27.jpg)
Factory Floor
MQTT Broker
Machine 1
Machine 2
Modbus /RS485
CPU
Modbus /RS485
CPU
PubSub
PubSub
ProtocolMapping
ProtocolMapping
![Page 28: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/28.jpg)
Factory Floor: Machine 1
Temperature Plant / Machine 1 / Temp_serial#
Counter Plant / Machine 1 / Counter_serial#Counter Set Plant / Machine 1 / Counter_control_Serial#Stop Plant / Machine 1 / Stop_serial#Logs Plant / Machine 1 / Logs_serial#Consumption Plant / Machine 1 / Consumption_serial#Power Plant / Machine 1 / Power_serial#
QoS 1
QoS 2
QoS 2
Sensor to Topic mapping (Existing Modbus)
QoS 0
QoS 1
QoS 1
QoS 2
![Page 29: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/29.jpg)
Perishable goods tracking
MQTT Broker
SCM System
Goods health logic
Android application
Real-time dashboard
(LoopBoards)
Cassandra Database
2G / 3G
![Page 30: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/30.jpg)
Perishable goods tracking
MQTT Broker
Truck 1
CANBusmapping
CPU
2G / 3GTemperatureHumidity
Precise Location
Data Storage
![Page 31: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/31.jpg)
Let’s choose the best for them.Things
We didn’t have a choice to customize our language.
![Page 32: MQTT in the Internet of Things | Loop by Litmus Automation](https://reader033.fdocuments.in/reader033/viewer/2022060107/554a37a1b4c9055a408b45a2/html5/thumbnails/32.jpg)
Lets get Looped!
litmusautomation.com
@litmusautomation
@LAutomation
@Litmus Automation
Thank You
(It’s Free!)