Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1
IoT Protocols
• There is a broad set of protocols that are utilized for
higher-level IoT/M2M Communication
5
URL Resolution
6
Request/Response Transaction
7
The COAP architecture
8
The COAP requirements
9
IoT Protocols: CoAP
• It uses the HTTP commands GET, POST, PUT, and
DELETE to provide resource-oriented interactions in a
client-server architecture.
13
CoAP Messaging
14
CoAP Messaging
15
CoAP Messaging
16
17
IoT Protocols: MQTT
18
IoT Protocols: MQTT
In MQTT there is a broker (server) that contains topics.
19
IoT Protocols: MQTT
Lightweight messaging protocol for M2M communication
Telemetry = Tele-Metering = Remote measurements
Invented and sponsored by IBM. Now Open source. Open
Source libraries available.
MQ originated from “message queueing (MQ)” architecture
used by IBM for service oriented networks. There is no
queueing in MQTT.
Telemetry data goes from devices to a server or broker. Uses a
publish/subscribe mechanism.
Lightweight = Low network bandwidth and small code
footprint
20
MQTT - Publish Subscribe or PUB/SUB
23
MQTT - QoS
• Quality of Service Levels - Three levels:
0 = At most once (Best effort, No Ack)
1 = At least once (Acked, retransmitted if ack not
received)
2 = Exactly once [Request to send (Publish), Clear-to-
send (Pubrec), message (Pubrel), ack (Pubcomp)]
24
MQTT - Example
25
MQTT - Example
• Home pacemaker monitoring solution
• Sensors on patient
• Collected by a monitoring equipment in home
(broker) using MQTT
• Subscribed by a computer in the hospital
• Alerts the doctor if anything is out-of-order
26
IoT Protocols: MQTT
• The MQTT protocol is designed to use bandwidth and
battery usage sparingly, which is why, for example, it is
currently used by Facebook Messenger.
30
31
IoT Protocols: RESTful Services
• The Representational State Transfer (REST) is not really a
protocol but an architectural style.
32
IoT Protocols: RESTful Services
• It uses the built-in accept header of HTTP to indicate the
format of the data that it contains.
33
34
IoT Protocols: AMQP
• The Advanced Message Queuing Protocol (AMQP) is a
protocol that arose from the financial industry.
• Security is handled with the use of the TLS/SSL protocols over TCP.
35
IoT Protocols: AMQP
• AMQP has low success rate at low bandwidths, but it
increases as bandwidth increases.
36
Questions?
37
38