Unit2 PPT
Unit2 PPT
IOT COMMUNICATION
MODEL AND PROTOCOLS
Outline
Connectivity Protocols
•6LoWPAN
•IEEE 802.15.4
•Zigbee
•Wireless HART
•Z‐Wave
•ISA 100
•NFC
Outline
Data Protocols:
•Message Queue Telemetry Transport (MQTT)
•Constrained Application Protocol (CoAP)
•Advanced Message Queuing Protocol (AMQP)
•XMPP – Extensible Messaging and Presence Protocol.
6LoWPAN
Introduction
28
• MQTT supports one-to-one, one-to-many, and many-
to-many communication.
• By lowering the amount of data transmitted, MQTT
makes itself a perfect protocol for constrained IoT
devices.
• Message payloads are encoded in binary. In an open
network where the recipient is from a different
manufacturer will face issues decoding it as there is
no information of how message payload is encoded.
29
Quality of Service level for MQTT protocol
• The quality of service levels determines how the content is
managed. MQTT uses three different QoS levels. It is important
to choose the right QoS level for every message because it
determines how the client and server communicate to deliver
the message. The QoS levels of MQTT are as follows:
• QoS 0 : Messages delivered per the best efforts of the operating
environment, but message loss can occur
• QoS 1 : Messages delivery assured but duplicates can be created
• QoS 2 : Message to deliver exactly once
• MQTT provides us with an option to set the appropriate QoS
level, but remember, higher the QoS, lower the performance.
30
Security of MQTT protocol
• MQTT allows you to pass username and password as an MQTT
packet. Encryption of a message across the network can be
handled independently of MQTT with Secure Sockets
Layer (SSL).
• It has a minimal authentication feature built in. Username and
password are sent as clear text. To make it secure, Secure
Sockets Layer (SSL)/ Transport Layer Security (TLS) must be
employed, but SSL/TLS is not a lightweight protocol.
• Many industry experts believe MQTT will play a major role in
IoT by contributing to fields such as inventory tracking, and
medical IoT..
31
MQTT Applications
• Facebook Messenger uses MQTT for online chat.
• Amazon Web Services use Amazon IoT with MQTT.
• Microsoft Azure IoT Hub uses MQTT as its main protocol for
telemetry messages.
• The EVRYTHNG IoT platform uses MQTT as an M2M protocol
for millions of connected products.
• Adafruit launched a free MQTT cloud service for IoT
experimenters called Adafruit IO.
CoAP
Constrained Application Protocol
• Introduction
• At‐most‐once
• each message is delivered once or never
• At‐least‐once
• each message is certain to be delivered, but may do so multiple times
• Exactly‐once
• message will always certainly arrive and do so only once
AMQP Frame Types
• Nine AMQP frame types are defined that are used to initiate,
control and tear down the transfer of messages between two
peers:
• Open (connection open)
• Begin (session open)
• Attach (initiate new link)
• Transfer (for sending actual messages)
• Flow (controls message flow rate)
• Disposition (Informs the changes in state of transfer)
• Detach (terminate the link)
• End (session close)
• Close (connection close)
AMQP Components