ch2- IoT protocol stack
ch2- IoT protocol stack
©IT-FIT-2024
NEW TECHNOLOGIES
IN IT APPLICATION DEVELOPMENT
code: 2101416
IoT
1
2/14/2025
Networking Protocols and Standards for Internet of Things, Prof. Raj Jain
2
2/14/2025
3
2/14/2025
○ Request-response protocols
4
2/14/2025
○ Mediator: notifies to each subscribers every published event that matches its
subscription
● Roles of publishers/subscribers are purely logical
● The paradigm is general and can be applied on many different usecases
of distributed/networking systems.
10
10
11
11
5
2/14/2025
12
12
Source: https://www.dis.uniroma1.it/~querzoni/corsi_assets/1112/SistemiDistribuiti/11-Pubsub.pdf
Paradigm Characteristics
● C1. Many-to-many interactions
○ Same piece of information can be delivered at the same time to various consumers.
Each consumer receives information from various producers.
● C2. Space Decoupling
○ Interacting parties do not need to know each other . Message addressing is based on
their content.
● C3. Time Decoupling
○ Interacting parties do not need to be actively participating in the interaction at the
same time.
13
13
6
2/14/2025
MQTT
Message Queuing Telemetry Transport Protocol
14
14
15
15
7
2/14/2025
MQTT
Message Queuing Telemetry Transport Protocol
16
16
MQTT
Message Queuing Telemetry Transport Protocol
17
17
8
2/14/2025
MQTT
Message Queuing Telemetry Transport Protocol
18
18
MQTT
Message Queuing Telemetry Transport Protocol
19
19
9
2/14/2025
MQTT
Message Queuing Telemetry Transport Protocol
20
20
MQTT
Message Queuing Telemetry Transport Protocol
21
21
10
2/14/2025
MQTT
Message Queuing Telemetry Transport Protocol
● Despite using TCP, MQTT messages can still be lost …
1. TCP guarantees delivery on a single link (agent broker, or viceversa), what
about publisher subscriber delivery?
2. What about if the receiver is temporarily down while a sender is attempting
to send a message?
MQTT clients can request three level of Quality of Service (QoS) to the broker:
QoS Level 0 (fire & forget) default QoS level, clients do not store messages
and do not receive ACKs from broker, same delivery guarantees than TCP.
QoS Level 1 (deliver at least once)
Qos Level 2 (deliver exactly once)
22
22
MQTT
Message Queuing Telemetry Transport Protocol
23
23
11
2/14/2025
MQTT
Message Queuing Telemetry Transport Protocol
24
24
Stefan Mijovic, Erion Shehu, Chiara Buratti, “Comparing Application Layer Protocols for the Internet of Things via Experimentation”, Proc. of iEEE RTSI 2016
MQTT
Message Queuing Telemetry Transport Protocol
25
25
12
2/14/2025
AMQP
Advanced Message Queuing Protocol
27
27
AMQP
Advanced Message Queuing Protocol
28
28
13
2/14/2025
AMQP
Advanced Message Queuing Protocol
29
29
AMQP
Advanced Message Queuing Protocol
30
30
14
2/14/2025
AMQP
Advanced Message Queuing Protocol
31
31
https://www.cloudamqp.com/blog/amqp-vs-mqtt.html
32
32
15
2/14/2025
○ Request-response protocols
33
33
34
34
16
2/14/2025
35
35
CoAP
Constrained Application Protocol
36
36
17
2/14/2025
CoAP
Constrained Application Protocol
37
37
Overhead???
Lightweight???
CoAP
Constrained Application Protocol
38
38
18
2/14/2025
CoAP
Constrained Application Protocol
39
39
CoAP
Constrained Application Protocol
40
40
19
2/14/2025
CoAP
Constrained Application Protocol
41
41
CoAP
Constrained Application Protocol
42
42
20
2/14/2025
CoAP
Constrained Application Protocol
43
43
CoAP
Constrained Application Protocol
44
44
21
2/14/2025
CoAP
Constrained Application Protocol
45
45
N. Naik, Choice of Effective Messaging Protocols for IoT Systems: MQTT, CoAP, AMQP and HTTP, Proc. of IEEE ISSE, 2017
Protocol Comparison
47
47
22
2/14/2025
N. Naik, Choice of Effective Messaging Protocols for IoT Systems: MQTT, CoAP, AMQP and HTTP, Proc. of IEEE ISSE, 2017
Protocol Comparison
48
48
N. Naik, Choice of Effective Messaging Protocols for IoT Systems: MQTT, CoAP, AMQP and HTTP, Proc. of IEEE ISSE, 2017
Protocol Comparison
49
49
23
2/14/2025
Tran, K.T.M., Pham, A.X., Nguyen, N.P. et al. Analysis and Performance Comparison of IoT Message Transfer Protocols Applying in Real Photovoltaic System. Int J
Netw Distrib Comput 12, 131–143 (2024)
Conclusions
50
50
Conclusions
51
51
24
2/14/2025
52
52
53
53
25