IoT – Message Protocols

Common Message Protocols Used in IoT

  1. MQTT(Message Queuing Telemetry Transport)
  2. HTTP/HTTPS
  3. AMQP(Advanced Message Queuing Protocol)
  4. CoAP(Constrained Application Protocol )
  5. STOMP (Simple (or Streaming) Text Oriented Message Protocol)
  6. DDS (Data Distribution Service)
  7. XMPP (Extensible Messaging and Presence Protocol)
  8. SSE (Server-Sent Events)
  9. LwM2M or Lightweight M2M

Details about some most commonly used protocols


MQTTHTTP/HTTPSCoAP
Latest version5.02.0RFC 7252
IP SuiteTCP/IPTCP/IPUDP (no Handshake or delivery acknowledgement)
SecuritySSL/TLS but weak authentication. Additional security can be added.TLS/SSLDTLS(Data gram TLS) & IPSec
Commercial/Open SourceOpenOpenOpen
ScalabilityYesYesYes
Throughput (msg/sec)FastFastFast (better than MQTT, HTTP & AMQP)
LatencyLow but more than AMQP & CoAP & HTTPLow but more than AMQP & CoAPVery Low
Power ConsumptionLowHigh (more than MQTT)Low
Memory ConsumptionLowHigh (more than MQTT)Low
Table 1.0


AMQPDDSXMPP
Latest version5.0.92.3RFC 6120,RFC 6121 and RFC 7622
IP SuiteTCP/IPTCP/IP, UDP, Shared MemoryTCP/IP
SecurityTLS extensions, including SNI, and SASL (better than MQTT)TLS, DTLSTLS, SASL (secure authentication)
Commercial/Open SourceOpenBoth Open & CommercialOpen Source
ScalabilityYesYesYes
Throughput (msg/sec)Fast (better than MQTT & HTTP)Very Fast as it is used for real time data transfer.Fast (used for instant messaging, chat & video chat)
LatencyVery LowVery LowLow
Power ConsumptionLow (More than MQTT)Not very high, it is used in IoT devicesNeed more power as compared to other protocols
Memory ConsumptionLow(More than MQTT)Not very high, it is used in IoT devicesNeed more power as compared to
Table 2.0