The Publish/Subscribe communication pattern has proved to be particularly tailored to the IoT world, with the MQTT protocol being the nowadays standard de-facto for IoT applications. Request/response protocols explicitly designed for the IoT, such as CoAP, have been revised to support also Publish/Subscribe. The purpose of this paper is to perform a comparison between two protocols: MQTT-SN, the version of MQTT thought specifically for sensor networks, and CoAP in its Pub/Sub version, defined in a recent IETF draft. Both protocols are Pub/Sub in nature and based on UDP at the transport layer, allowing therefore a fair comparison of their functionalities. We propose a open-source implementation of the CoAP Pub/Sub version and we compare the two protocols: first from a theoretical perspective and, then, in a simulated environment characterized by varying number of clients and network conditions. Results show that CoAP represents a valid alternative to MQTT-SN for publish-subscribe environments; in particular, CoAP results being the best choice for highly dynamic networks.

CoAP vs. MQTT-SN: Comparison and Performance Evaluation in Publish-Subscribe Environments

Palmese, Fabio;Longo, Edoardo;Redondi, Alessandro E. C.;Cesana, Matteo
2021-01-01

Abstract

The Publish/Subscribe communication pattern has proved to be particularly tailored to the IoT world, with the MQTT protocol being the nowadays standard de-facto for IoT applications. Request/response protocols explicitly designed for the IoT, such as CoAP, have been revised to support also Publish/Subscribe. The purpose of this paper is to perform a comparison between two protocols: MQTT-SN, the version of MQTT thought specifically for sensor networks, and CoAP in its Pub/Sub version, defined in a recent IETF draft. Both protocols are Pub/Sub in nature and based on UDP at the transport layer, allowing therefore a fair comparison of their functionalities. We propose a open-source implementation of the CoAP Pub/Sub version and we compare the two protocols: first from a theoretical perspective and, then, in a simulated environment characterized by varying number of clients and network conditions. Results show that CoAP represents a valid alternative to MQTT-SN for publish-subscribe environments; in particular, CoAP results being the best choice for highly dynamic networks.
2021
2021 IEEE 7th World Forum on Internet of Things (WF-IoT)
978-1-6654-4431-6
File in questo prodotto:
File Dimensione Formato  
palmese_wfiot.pdf

accesso aperto

: Pre-Print (o Pre-Refereeing)
Dimensione 2.43 MB
Formato Adobe PDF
2.43 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11311/1190391
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 7
  • ???jsp.display-item.citation.isi??? ND
social impact