MQTT in the Internet of Things | Loop by Litmus Automation

5,645 views

Published on

This presentation throws some light on MQTT as an Internet of Things protocol, its significant features and shifts the paradigm with the reality check. Featured use-cases magnify its simplicity of implementation. Loop by Litmus Automation is an end-to-end cloud platform for IoT, www.litmusautomation.com.

Published in: Internet, Technology, Business

MQTT in the Internet of Things | Loop by Litmus Automation

  1. 1. MQTT in the Internet of Things Vatsal Shah | Founder & CEO, Litmus Automation Internet of Things World June 16th-18th, 2014 | Palo Alto, USA @vatsal1212 @LAutomation
  2. 2. Founder | CEO of Litmus Automation Vatsal Shah Loves IoT Industrial Automation guy @vatsal1212 vatsal@litmusautomation.com OSS supporter
  3. 3. MQTT as an IoT Protocol. Features of MQTT. MQTT: Myths vs. Reality. MQTT: Practical Implementations. Agenda
  4. 4. What is the talk of the town?
  5. 5. 3,000,000,000 User Interfaces by 2022. 14,000,000,000 Connected Devices.Billion Fourth Industrial Revolution Sources: Bosch Blog 2014, Machina Research, 2014 and Cisco VNI Mobile Forecast Highlights 2012-2017
  6. 6. Lets look at how things TALK. Their Language = Protocol Speak/listen only when needed Able to communicate with all Avoid getting drained by talking Ideal Communication Able to talk in all situations
  7. 7. The Battlefield of Protocols. Cluttered & No Single Direction HTTP | AMQP | MQTT | XMPP | Others
  8. 8. 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
  9. 9. MQTT Message 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
  10. 10. Lightweight (network) Binary Protocol | Minimum Overhead | 2 bytes
  11. 11. Low bandwidth | Copes with Slow N/W Made for Unreliable Networks
  12. 12. Lightweight (CPU) Large & Small devices | Many languages
  13. 13. Quality of Service Levels Publisher Subscriber Publish Publish Delete Message QoS 0: At most once Fire and Forget Loop Broker Publish
  14. 14. Quality of Service Levels Publisher Subscriber Publish Publish Delete Message QoS 1: At least once Reliable mode Loop Broker Publish + PubAck Store Message Store Delete
  15. 15. Quality of Service Levels Publisher Subscriber Publish Publish Delete Message QoS 2: Exactly once Safest but slowest Loop Broker Publish + PubRec + PubRel + PubComp Store Message Store Delete Pub Complete
  16. 16. 1 { 2 mqtt.connect(); 3 mqtt.publish(); 4 mqtt.subscribe(); 5 mqtt.unsubscribe(); 6 mqtt.disconnect(); 7 } 8 9 Simple Simple to implement | No SDK nightmares
  17. 17. 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
  18. 18. Last Will and Testament Broker caches & publishes on death
  19. 19. MQTT: Myths vs. Reality
  20. 20. Broker is the Single Point of Failure Broker Cluster | Replication of states | Failover Myth1
  21. 21. Security in MQTT is difficult SSL / TLS | Application layer | Privacy policies Made for devices Myth2
  22. 22. MQTT Payload Agnostic is an issue Big advantage for devices | Adaptability Myth3
  23. 23. MQTT is not Scalable ` Myth4 Horizontal | Vertical | Across Datacenters
  24. 24. Getting off the ground: MQTT Use Cases Immobile: Factory Floor | Mobile: Container
  25. 25. 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
  26. 26. Factory Floor MQTT Broker Machine 1 Machine 2 Machine 3 Weather Station ERP System Inventory Mgt System LED Boards SCADA HMI MongoDB Database WiFi Ethernet 2G WiFi
  27. 27. Factory Floor MQTT Broker Machine 1 Machine 2 Modbus /RS485 CPU Modbus /RS485 CPU PubSub PubSub Protocol Mapping Protocol Mapping
  28. 28. 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
  29. 29. Perishable goods tracking MQTT Broker SCM System Goods health logic Android application Real-time dashboard (LoopBoards) Cassandra Database 2G / 3G
  30. 30. Perishable goods tracking MQTT Broker Truck 1 CANBus mapping CPU 2G / 3GTemperature Humidity Precise Location Data Storage
  31. 31. Let’s choose the best for them. Things We didn’t have a choice to customize our language.
  32. 32. Lets get Looped! litmusautomation.com @litmusautomation @LAutomation @Litmus Automation Thank You (It’s Free!)

×