SlideShare a Scribd company logo
1 of 14
MQTT and DDS Comparison
Disentangling M2M Messaging Protocols for the IoT
David Barnett
@rtidavid
May 2013
© 2013 Real-Time Innovations (RTI)
MQTT & DDS: Cause for Confusion
• Support Machine-to-Machine (M2M)
– Internet of Things (IoT)
– Real-time monitoring and control*
– Analytics for predictive maintenance,
resource optimization, asset tracking
• Provide interoperability*
• Publish/subscribe
• Address some common technical requirements
– Memory, CPU and network constraints
– Support for mobile, embedded and real-time OS
© 2013 Real-Time Innovations (RTI)
*But different meanings of “real time” and “interoperability”
May 2013 2
Target Different Messaging Uses
MQTT
• Telemetry: device to server, data
center, back office, IT cloud
• Centralized & server-based
analytics, business logic and
integration
DDS
• Intelligent Systems: within and
between devices, dedicated
systems, real-time cloud
• Analytics, biz logic & integration
distributed, embedded, at edge
© 2013 Real-Time Innovations (RTI)
Device
App App App
Device Device
Broker / ESB
Device
App
Device or Dedicated System
App App App App
May 2013 3
Typical MQTT Deployment & Apps
• At-home patient monitoring
• Energy usage monitoring
• Supply chain, cargo and inventory
tracking (e.g. using RFID)
• Remote resource monitoring
(e.g. wells, pipelines, environment)
• Point of sale and in-casino gambling
devices
• Mobile device to server messaging
(e.g. Facebook Messenger)
• Automotive telematics
© 2013 Real-Time Innovations (RTI)
Device
App App App
Device Device
Broker / ESB
MQTT over WAN
Sources: IBM Redbook “Building Smarter Planet Solutions with MQTT and IBM WebSphere MQ Telemetry,” mqtt.org
Enterprise messaging over LAN
May 2013 4
Typical DDS Deployment & Apps
• In-hospital patient monitoring
• Medical imaging and surgical devices
• Manufacturing (industrial
control, testing)
• Monitoring and control of power
generation and grid
• Control of robotics and unmanned
vehicles
• Automotive driver safety and
infotainment
• Telecom equipment management
• Aerospace and defense control
systems
• High-Performance Computing (HPC)
• Latency-sensitive IT
(trading, real-time sports betting)
© 2013 Real-Time Innovations (RTI)
Source: www.rti.com/company/customers.html
Device
App
Device or Dedicated System
App App App App
DDS: shmem, bus, LAN
DDS over LAN
DDS over WAN
May 2013 5
Device
App
Device or Dedicated System
App App App App
Apps Have Different Requirements
Telemetry (MQTT) Intelligent Systems (DDS)
Network Usually WAN, sometimes LAN Combo of shared memory, bus, LAN, WAN
Administration • Some configuration acceptable
• IT involved
• Often autonomous
• Admin should be minimized; may not be
available
Message rate A few messages/second per device Up to 10,000s messages/second per device
Latency • 100s ms to seconds
• Can queue messages under load
• 100s μs to milliseconds
• Often most critical when load increases
“Real-time” • As responsive as possible
• Timing not stringent
• Physical processes (deterministic)
• Must keep up with data
Fault tolerance Brief service interruptions tolerable Service interruptions potentially calamitous
“Interoperability” • Protocol level
• Between independent client
and broker implementations
• Can have centralized integration
logic (e.g., ESB)
• Application and protocol level
• Between independently developed apps
(explicit data model / interfaces)
• Can’t depend on centralized integration
logic
© 2013 Real-Time Innovations (RTI)May 2013 6
Fundamental Difference: Architecture
MQTT
• Centralized
– All comms route through broker
– Typically TCP
– Broker queues messages
– Some service interruption when
broker fails over
• Administered
– Broker itself
– Clients configured with
broker/server address
DDS
• Decentralized
– Peer-to-peer communication
– Typically UDP; multicast for one-to-many
– Fully embeddable: no external s/w
– Keeps latency and jitter low:
no intermediary, bottleneck
– No single point of failure or service
interruptions
• No admin/config required at deployment
– Automatic discovery  plug-and-play
– Self-forming and self-healing
© 2013 Real-Time Innovations (RTI)
Device
App App App
Device Device
Broker / ESB
Device
App
Device or Dedicated System
App App App App
May 2013 7
Quality of Service (QoS) Addresses
Different Requirements
• MQTT: focused on message delivery
– At most once, at least once, exactly once
• DDS: timing, loose coupling and fault tolerance
– Reliability – resend lost messages?
– Lifespan – how long to keep data (validity)
– Durability – keep/deliver data for late joiners?
– History – amount of data to keep/deliver to late joiners, retain in cache
– Presentation – order in which to deliver data
– Deadline – control notifications of missed data
– Liveliness – presence fidelity
– Ownership and Strength – failover
– Time-based filter – control how frequently to receive data
– Content filter – control which data to receive based on content
– Resource limits – constrain memory usage
© 2013 Real-Time Innovations (RTI)May 2013 8
Complexity
MQTT
• Simpler up front
– No explicit data types /
interfaces
– Minimal QoS
• Assumes future:
– Integration
– Administration
• More integration/mediation
required over time
DDS
• Requires up-front investment
– Data model
– QoS
• Minimizes future complexity
– Integration
– Deployment-time configuration
and administration
– Evolution
© 2013 Real-Time Innovations (RTI)May 2013 9
ARCHITECTURES FOR THE
INTERNET OF THINGS
© 2013 Real-Time Innovations (RTI)May 2013 10
Device
App App App
Device Gateway
Broker / ESB
Gateway
• Most common approach today
• Gateway co-located with device
or broker
– Based on Connext Integrator or
Apache Camel
– RTI currently provides JMS and
Web Service interfaces, adapter
SDK
© 2013 Real-Time Innovations (RTI)
MQTT
Enterprise messaging
Device
App
Device or Dedicated System
App App App App
DDS: shmem, bus, LAN
DDS over LAN
DDS
Web Service, JMS, MQTT, AMQP
May 2013 11
Device
App App App
Device
Broker / ESB
Integrate DDS into the Broker/ESB
• Integrate devices using their
native protocol (DDS or
MQTT)
• No protocol gateways
• (DDS routing services may
still be required, e.g., over a
WAN)
© 2013 Real-Time Innovations (RTI)
DDS
Enterprise messaging
Device
App
Device or Dedicated System
App App App App
DDS: shmem, bus, LAN
DDS over LAN
MQTT
May 2013 12
Dual Clouds
© 2013 Real-Time Innovations (RTI)
Device
App App App
Device
Broker / ESB
Enterprise messaging
Device or Dedicated System
App App App App
DDS
Gateway
MQTT
DDS
Edge
Real-Time
Cloud
App App App
IT Cloud
Gateway
May 2013 13
MQTT and DDS Summary
• Easy to confuse
– Address M2M, IoT, common business drivers
– Some common capabilities
• Optimized for different applications
– MQTT: telemetry
– DDS: communication within Intelligent Systems
– Little practical overlap other than mindshare
• More complementary than competitive
© 2013 Real-Time Innovations (RTI)May 2013 14

More Related Content

What's hot

What's hot (20)

Deep Dive into the OPC UA / DDS Gateway Specification
Deep Dive into the OPC UA / DDS Gateway SpecificationDeep Dive into the OPC UA / DDS Gateway Specification
Deep Dive into the OPC UA / DDS Gateway Specification
 
DDS Over Low Bandwidth Data Links
DDS Over Low Bandwidth Data LinksDDS Over Low Bandwidth Data Links
DDS Over Low Bandwidth Data Links
 
DDS Tutorial -- Part I
DDS Tutorial -- Part IDDS Tutorial -- Part I
DDS Tutorial -- Part I
 
OpenSplice DDS Tutorial -- Part II
OpenSplice DDS Tutorial -- Part IIOpenSplice DDS Tutorial -- Part II
OpenSplice DDS Tutorial -- Part II
 
The DDS Tutorial Part II
The DDS Tutorial Part IIThe DDS Tutorial Part II
The DDS Tutorial Part II
 
DDS in Action -- Part I
DDS in Action -- Part IDDS in Action -- Part I
DDS in Action -- Part I
 
RTI DDS Intro with DDS Secure
RTI DDS Intro with DDS SecureRTI DDS Intro with DDS Secure
RTI DDS Intro with DDS Secure
 
The Inside Story: How OPC UA and DDS Can Work Together in Industrial Systems
The Inside Story: How OPC UA and DDS Can Work Together in Industrial SystemsThe Inside Story: How OPC UA and DDS Can Work Together in Industrial Systems
The Inside Story: How OPC UA and DDS Can Work Together in Industrial Systems
 
The Data Distribution Service Tutorial
The Data Distribution Service TutorialThe Data Distribution Service Tutorial
The Data Distribution Service Tutorial
 
DDS Security
DDS SecurityDDS Security
DDS Security
 
Getting Started in DDS with C++ and Java
Getting Started in DDS with C++ and JavaGetting Started in DDS with C++ and Java
Getting Started in DDS with C++ and Java
 
DDS Advanced Tutorial - OMG June 2013 Berlin Meeting
DDS Advanced Tutorial - OMG June 2013 Berlin MeetingDDS Advanced Tutorial - OMG June 2013 Berlin Meeting
DDS Advanced Tutorial - OMG June 2013 Berlin Meeting
 
Cyclone DDS: Sharing Data in the IoT Age
Cyclone DDS: Sharing Data in the IoT AgeCyclone DDS: Sharing Data in the IoT Age
Cyclone DDS: Sharing Data in the IoT Age
 
Secure IOT Gateway
Secure IOT GatewaySecure IOT Gateway
Secure IOT Gateway
 
The Data Distribution Service Tutorial
The Data Distribution Service TutorialThe Data Distribution Service Tutorial
The Data Distribution Service Tutorial
 
RTI Data-Distribution Service (DDS) Master Class 2011
RTI Data-Distribution Service (DDS) Master Class 2011RTI Data-Distribution Service (DDS) Master Class 2011
RTI Data-Distribution Service (DDS) Master Class 2011
 
Iot security and Authentication solution
Iot security and Authentication solutionIot security and Authentication solution
Iot security and Authentication solution
 
OMG Data-Distribution Service (DDS) Tutorial - 2009
OMG Data-Distribution Service (DDS) Tutorial - 2009OMG Data-Distribution Service (DDS) Tutorial - 2009
OMG Data-Distribution Service (DDS) Tutorial - 2009
 
Data-Centric and Message-Centric System Architecture
Data-Centric and Message-Centric System ArchitectureData-Centric and Message-Centric System Architecture
Data-Centric and Message-Centric System Architecture
 
Introduction to RTI DDS
Introduction to RTI DDSIntroduction to RTI DDS
Introduction to RTI DDS
 

Similar to Comparison of MQTT and DDS as M2M Protocols for the Internet of Things

Is Your Power Utility Smart Enough to Survive Another Decade
Is Your Power Utility Smart Enough to Survive Another DecadeIs Your Power Utility Smart Enough to Survive Another Decade
Is Your Power Utility Smart Enough to Survive Another Decade
Real-Time Innovations (RTI)
 
Four keys to securing distributed control systems and the industrial (IoT)
Four keys to securing distributed control systems and the industrial (IoT)Four keys to securing distributed control systems and the industrial (IoT)
Four keys to securing distributed control systems and the industrial (IoT)
Real-Time Innovations (RTI)
 
Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2
Srinivasa Addepalli
 

Similar to Comparison of MQTT and DDS as M2M Protocols for the Internet of Things (20)

Stop Wasting Energy on M2M
Stop Wasting Energy on M2MStop Wasting Energy on M2M
Stop Wasting Energy on M2M
 
Encapsulating Complexity in IoT Solutions
Encapsulating Complexity in IoT SolutionsEncapsulating Complexity in IoT Solutions
Encapsulating Complexity in IoT Solutions
 
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in LondonIoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
IoT and the Oil & Gas industry at M2M Oil & Gas 2014 in London
 
Connectivité temps réel et bi-directionnelle ​ pour solutions IOT
Connectivité temps réel et bi-directionnelle ​ pour solutions IOTConnectivité temps réel et bi-directionnelle ​ pour solutions IOT
Connectivité temps réel et bi-directionnelle ​ pour solutions IOT
 
Is Your Power Utility Smart Enough to Survive Another Decade
Is Your Power Utility Smart Enough to Survive Another DecadeIs Your Power Utility Smart Enough to Survive Another Decade
Is Your Power Utility Smart Enough to Survive Another Decade
 
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
From the Internet of Things to Intelligent Systems A Developer's Primer - Gar...
 
DDS Enabling Open Architecture
DDS Enabling Open ArchitectureDDS Enabling Open Architecture
DDS Enabling Open Architecture
 
Is your MQTT broker IoT ready?
Is your MQTT broker IoT ready?Is your MQTT broker IoT ready?
Is your MQTT broker IoT ready?
 
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
Addressing the Complexity and Risks of M2M Projects - M2M World Congress Apri...
 
Four keys to securing distributed control systems and the industrial (IoT)
Four keys to securing distributed control systems and the industrial (IoT)Four keys to securing distributed control systems and the industrial (IoT)
Four keys to securing distributed control systems and the industrial (IoT)
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
What's the Right Messaging Standard for the IoT?
What's the Right Messaging  Standard for the IoT?What's the Right Messaging  Standard for the IoT?
What's the Right Messaging Standard for the IoT?
 
Internet of things
Internet of thingsInternet of things
Internet of things
 
Industrial IoT Mayhem? Java IoT Gateways to the Rescue
Industrial IoT Mayhem? Java IoT Gateways to the RescueIndustrial IoT Mayhem? Java IoT Gateways to the Rescue
Industrial IoT Mayhem? Java IoT Gateways to the Rescue
 
From the Internet of Things to Intelligent Systems: A Developer's Primer
From the Internet of Things to Intelligent Systems: A Developer's PrimerFrom the Internet of Things to Intelligent Systems: A Developer's Primer
From the Internet of Things to Intelligent Systems: A Developer's Primer
 
Understanding the Internet of Things Protocols
Understanding the Internet of Things ProtocolsUnderstanding the Internet of Things Protocols
Understanding the Internet of Things Protocols
 
October Southern CA Road Shows - Build Safe and Secure Distributed Systems
October Southern CA Road Shows -  Build Safe and Secure Distributed SystemsOctober Southern CA Road Shows -  Build Safe and Secure Distributed Systems
October Southern CA Road Shows - Build Safe and Secure Distributed Systems
 
Slash Avionics Integration Costs with DO-178C Certifiable Connectivity Software
Slash Avionics Integration Costs with DO-178C Certifiable Connectivity SoftwareSlash Avionics Integration Costs with DO-178C Certifiable Connectivity Software
Slash Avionics Integration Costs with DO-178C Certifiable Connectivity Software
 
Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2Acceleration_and_Security_draft_v2
Acceleration_and_Security_draft_v2
 

More from Real-Time Innovations (RTI)

More from Real-Time Innovations (RTI) (20)

A Tour of RTI Applications
A Tour of RTI ApplicationsA Tour of RTI Applications
A Tour of RTI Applications
 
Precise, Predictive, and Connected: DDS and OPC UA – Real-Time Connectivity A...
Precise, Predictive, and Connected: DDS and OPC UA – Real-Time Connectivity A...Precise, Predictive, and Connected: DDS and OPC UA – Real-Time Connectivity A...
Precise, Predictive, and Connected: DDS and OPC UA – Real-Time Connectivity A...
 
The Inside Story: How the IIC’s Connectivity Framework Guides IIoT Connectivi...
The Inside Story: How the IIC’s Connectivity Framework Guides IIoT Connectivi...The Inside Story: How the IIC’s Connectivity Framework Guides IIoT Connectivi...
The Inside Story: How the IIC’s Connectivity Framework Guides IIoT Connectivi...
 
Upgrade Your System’s Security - Making the Jump from Connext DDS Professiona...
Upgrade Your System’s Security - Making the Jump from Connext DDS Professiona...Upgrade Your System’s Security - Making the Jump from Connext DDS Professiona...
Upgrade Your System’s Security - Making the Jump from Connext DDS Professiona...
 
The Inside Story: Leveraging the IIC's Industrial Internet Security Framework
The Inside Story: Leveraging the IIC's Industrial Internet Security FrameworkThe Inside Story: Leveraging the IIC's Industrial Internet Security Framework
The Inside Story: Leveraging the IIC's Industrial Internet Security Framework
 
ISO 26262 Approval of Automotive Software Components
ISO 26262 Approval of Automotive Software ComponentsISO 26262 Approval of Automotive Software Components
ISO 26262 Approval of Automotive Software Components
 
The Low-Risk Path to Building Autonomous Car Architectures
The Low-Risk Path to Building Autonomous Car ArchitecturesThe Low-Risk Path to Building Autonomous Car Architectures
The Low-Risk Path to Building Autonomous Car Architectures
 
How to Design Distributed Robotic Control Systems
How to Design Distributed Robotic Control SystemsHow to Design Distributed Robotic Control Systems
How to Design Distributed Robotic Control Systems
 
Fog Computing is the Future of the Industrial Internet of Things
Fog Computing is the Future of the Industrial Internet of ThingsFog Computing is the Future of the Industrial Internet of Things
Fog Computing is the Future of the Industrial Internet of Things
 
Cyber Security for the Connected Car
Cyber Security for the Connected Car Cyber Security for the Connected Car
Cyber Security for the Connected Car
 
Space Rovers and Surgical Robots: System Architecture Lessons from Mars
Space Rovers and Surgical Robots: System Architecture Lessons from MarsSpace Rovers and Surgical Robots: System Architecture Lessons from Mars
Space Rovers and Surgical Robots: System Architecture Lessons from Mars
 
Advancing Active Safety for Next-Gen Automotive
Advancing Active Safety for Next-Gen AutomotiveAdvancing Active Safety for Next-Gen Automotive
Advancing Active Safety for Next-Gen Automotive
 
Learn About FACE Aligned Reference Platform: Built on COTS and DO-178C Certif...
Learn About FACE Aligned Reference Platform: Built on COTS and DO-178C Certif...Learn About FACE Aligned Reference Platform: Built on COTS and DO-178C Certif...
Learn About FACE Aligned Reference Platform: Built on COTS and DO-178C Certif...
 
How the fusion of time sensitive networking, time-triggered ethernet and data...
How the fusion of time sensitive networking, time-triggered ethernet and data...How the fusion of time sensitive networking, time-triggered ethernet and data...
How the fusion of time sensitive networking, time-triggered ethernet and data...
 
Secrets of Autonomous Car Design
Secrets of Autonomous Car DesignSecrets of Autonomous Car Design
Secrets of Autonomous Car Design
 
Cybersecurity Spotlight: Looking under the Hood at Data Breaches and Hardenin...
Cybersecurity Spotlight: Looking under the Hood at Data Breaches and Hardenin...Cybersecurity Spotlight: Looking under the Hood at Data Breaches and Hardenin...
Cybersecurity Spotlight: Looking under the Hood at Data Breaches and Hardenin...
 
Data Distribution Service Security and the Industrial Internet of Things
Data Distribution Service Security and the Industrial Internet of ThingsData Distribution Service Security and the Industrial Internet of Things
Data Distribution Service Security and the Industrial Internet of Things
 
The Inside Story: GE Healthcare's Industrial Internet of Things (IoT) Archite...
The Inside Story: GE Healthcare's Industrial Internet of Things (IoT) Archite...The Inside Story: GE Healthcare's Industrial Internet of Things (IoT) Archite...
The Inside Story: GE Healthcare's Industrial Internet of Things (IoT) Archite...
 
Developing Mission-Critical Avionics and Defense Systems with Ada and DDS
Developing Mission-Critical Avionics and Defense Systems with Ada and DDSDeveloping Mission-Critical Avionics and Defense Systems with Ada and DDS
Developing Mission-Critical Avionics and Defense Systems with Ada and DDS
 
IoT and M2M Safety and Security
IoT and M2M Safety and Security 	IoT and M2M Safety and Security
IoT and M2M Safety and Security
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Comparison of MQTT and DDS as M2M Protocols for the Internet of Things

  • 1. MQTT and DDS Comparison Disentangling M2M Messaging Protocols for the IoT David Barnett @rtidavid May 2013 © 2013 Real-Time Innovations (RTI)
  • 2. MQTT & DDS: Cause for Confusion • Support Machine-to-Machine (M2M) – Internet of Things (IoT) – Real-time monitoring and control* – Analytics for predictive maintenance, resource optimization, asset tracking • Provide interoperability* • Publish/subscribe • Address some common technical requirements – Memory, CPU and network constraints – Support for mobile, embedded and real-time OS © 2013 Real-Time Innovations (RTI) *But different meanings of “real time” and “interoperability” May 2013 2
  • 3. Target Different Messaging Uses MQTT • Telemetry: device to server, data center, back office, IT cloud • Centralized & server-based analytics, business logic and integration DDS • Intelligent Systems: within and between devices, dedicated systems, real-time cloud • Analytics, biz logic & integration distributed, embedded, at edge © 2013 Real-Time Innovations (RTI) Device App App App Device Device Broker / ESB Device App Device or Dedicated System App App App App May 2013 3
  • 4. Typical MQTT Deployment & Apps • At-home patient monitoring • Energy usage monitoring • Supply chain, cargo and inventory tracking (e.g. using RFID) • Remote resource monitoring (e.g. wells, pipelines, environment) • Point of sale and in-casino gambling devices • Mobile device to server messaging (e.g. Facebook Messenger) • Automotive telematics © 2013 Real-Time Innovations (RTI) Device App App App Device Device Broker / ESB MQTT over WAN Sources: IBM Redbook “Building Smarter Planet Solutions with MQTT and IBM WebSphere MQ Telemetry,” mqtt.org Enterprise messaging over LAN May 2013 4
  • 5. Typical DDS Deployment & Apps • In-hospital patient monitoring • Medical imaging and surgical devices • Manufacturing (industrial control, testing) • Monitoring and control of power generation and grid • Control of robotics and unmanned vehicles • Automotive driver safety and infotainment • Telecom equipment management • Aerospace and defense control systems • High-Performance Computing (HPC) • Latency-sensitive IT (trading, real-time sports betting) © 2013 Real-Time Innovations (RTI) Source: www.rti.com/company/customers.html Device App Device or Dedicated System App App App App DDS: shmem, bus, LAN DDS over LAN DDS over WAN May 2013 5 Device App Device or Dedicated System App App App App
  • 6. Apps Have Different Requirements Telemetry (MQTT) Intelligent Systems (DDS) Network Usually WAN, sometimes LAN Combo of shared memory, bus, LAN, WAN Administration • Some configuration acceptable • IT involved • Often autonomous • Admin should be minimized; may not be available Message rate A few messages/second per device Up to 10,000s messages/second per device Latency • 100s ms to seconds • Can queue messages under load • 100s μs to milliseconds • Often most critical when load increases “Real-time” • As responsive as possible • Timing not stringent • Physical processes (deterministic) • Must keep up with data Fault tolerance Brief service interruptions tolerable Service interruptions potentially calamitous “Interoperability” • Protocol level • Between independent client and broker implementations • Can have centralized integration logic (e.g., ESB) • Application and protocol level • Between independently developed apps (explicit data model / interfaces) • Can’t depend on centralized integration logic © 2013 Real-Time Innovations (RTI)May 2013 6
  • 7. Fundamental Difference: Architecture MQTT • Centralized – All comms route through broker – Typically TCP – Broker queues messages – Some service interruption when broker fails over • Administered – Broker itself – Clients configured with broker/server address DDS • Decentralized – Peer-to-peer communication – Typically UDP; multicast for one-to-many – Fully embeddable: no external s/w – Keeps latency and jitter low: no intermediary, bottleneck – No single point of failure or service interruptions • No admin/config required at deployment – Automatic discovery  plug-and-play – Self-forming and self-healing © 2013 Real-Time Innovations (RTI) Device App App App Device Device Broker / ESB Device App Device or Dedicated System App App App App May 2013 7
  • 8. Quality of Service (QoS) Addresses Different Requirements • MQTT: focused on message delivery – At most once, at least once, exactly once • DDS: timing, loose coupling and fault tolerance – Reliability – resend lost messages? – Lifespan – how long to keep data (validity) – Durability – keep/deliver data for late joiners? – History – amount of data to keep/deliver to late joiners, retain in cache – Presentation – order in which to deliver data – Deadline – control notifications of missed data – Liveliness – presence fidelity – Ownership and Strength – failover – Time-based filter – control how frequently to receive data – Content filter – control which data to receive based on content – Resource limits – constrain memory usage © 2013 Real-Time Innovations (RTI)May 2013 8
  • 9. Complexity MQTT • Simpler up front – No explicit data types / interfaces – Minimal QoS • Assumes future: – Integration – Administration • More integration/mediation required over time DDS • Requires up-front investment – Data model – QoS • Minimizes future complexity – Integration – Deployment-time configuration and administration – Evolution © 2013 Real-Time Innovations (RTI)May 2013 9
  • 10. ARCHITECTURES FOR THE INTERNET OF THINGS © 2013 Real-Time Innovations (RTI)May 2013 10
  • 11. Device App App App Device Gateway Broker / ESB Gateway • Most common approach today • Gateway co-located with device or broker – Based on Connext Integrator or Apache Camel – RTI currently provides JMS and Web Service interfaces, adapter SDK © 2013 Real-Time Innovations (RTI) MQTT Enterprise messaging Device App Device or Dedicated System App App App App DDS: shmem, bus, LAN DDS over LAN DDS Web Service, JMS, MQTT, AMQP May 2013 11
  • 12. Device App App App Device Broker / ESB Integrate DDS into the Broker/ESB • Integrate devices using their native protocol (DDS or MQTT) • No protocol gateways • (DDS routing services may still be required, e.g., over a WAN) © 2013 Real-Time Innovations (RTI) DDS Enterprise messaging Device App Device or Dedicated System App App App App DDS: shmem, bus, LAN DDS over LAN MQTT May 2013 12
  • 13. Dual Clouds © 2013 Real-Time Innovations (RTI) Device App App App Device Broker / ESB Enterprise messaging Device or Dedicated System App App App App DDS Gateway MQTT DDS Edge Real-Time Cloud App App App IT Cloud Gateway May 2013 13
  • 14. MQTT and DDS Summary • Easy to confuse – Address M2M, IoT, common business drivers – Some common capabilities • Optimized for different applications – MQTT: telemetry – DDS: communication within Intelligent Systems – Little practical overlap other than mindshare • More complementary than competitive © 2013 Real-Time Innovations (RTI)May 2013 14

Editor's Notes

  1. Multiple protocols have been positioned as “the” application-layer messaging protocol for the Internet of Things (IoT) and Machine-to-Machine (M2M) communication. In fact, these protocols address different aspects of IoT messaging and are complementary more than competitive (other than for mindshare). This presentation compares two of these protocols, MQTT and DDS, and shows how they are designed and optimized for different requirements.
  2. Devices are typically geographically distributed. Broker and apps are co-located, e.g., in a data center.
  3. ReliabilityLifespanDurabilityHistoryPresentation (ordering)DeadlineLiveliness (presence fidelity)Ownership and strength (failover)Time-based filterResource limits
  4. More integration/mediation required over time = complexity creep
  5. ExamplesHospitalEdge: PatientReal-time:Care unit (e.g., association of patient with monitoring)IT: EMR / Billing systems / Analytics / loggingIndustrial:Sensors and actuatorsSCADAERPAvionics:Sensors and actuatorsIMA(No IT)Automotive:Edge and R-T cloud: in the vehicle (driver safety, infotainment)IT cloud: telematics, directory services / discoveryDefense:SensorsTrack managementC2, CEC