MQTT is a publish/subscribe protocol whose usage is growing a lot in recent years, especially in the field of Internet of Things (IoT) and Wireless Sensor Networks (WSN) applications. The protocol is based on a central broker entity, which is in charge of collecting publications and subscriptions from clients and forwarding messages among them. In this work, we propose a distributed version of the protocol, named D-MQTT, where multiple brokers connect among themselves, allowing clients to communicate even if originally associated to different brokers. Distinctive features of our proposal are: (i) automatic broker discovery, (ii) creation of an optimized, failure-resistant overlay network among the brokers and (iii) efficient routing of the publication messages. We propose an implementation of D-MQTT based on the popular open-source Mosquitto broker and we evaluate its performance on a network of brokers using the Containernet framework, comparing its performance with the standard MQTT bridging distribution approach. The source-code of D-MQTT is made publicly available at https://tinyurl.com/MQTT-Distributed.

D-MQTT: design and implementation of a pub/sub broker for distributed environments

Longo, Edoardo;Redondi, Alessandro E. C.
2021-01-01

Abstract

MQTT is a publish/subscribe protocol whose usage is growing a lot in recent years, especially in the field of Internet of Things (IoT) and Wireless Sensor Networks (WSN) applications. The protocol is based on a central broker entity, which is in charge of collecting publications and subscriptions from clients and forwarding messages among them. In this work, we propose a distributed version of the protocol, named D-MQTT, where multiple brokers connect among themselves, allowing clients to communicate even if originally associated to different brokers. Distinctive features of our proposal are: (i) automatic broker discovery, (ii) creation of an optimized, failure-resistant overlay network among the brokers and (iii) efficient routing of the publication messages. We propose an implementation of D-MQTT based on the popular open-source Mosquitto broker and we evaluate its performance on a network of brokers using the Containernet framework, comparing its performance with the standard MQTT bridging distribution approach. The source-code of D-MQTT is made publicly available at https://tinyurl.com/MQTT-Distributed.
2021
2021 IEEE International Conference on Omni-Layer Intelligent Systems (COINS)
978-1-6654-3156-9
File in questo prodotto:
File Dimensione Formato  
main.pdf

Accesso riservato

: Publisher’s version
Dimensione 329.69 kB
Formato Adobe PDF
329.69 kB 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/1185328
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 9
  • ???jsp.display-item.citation.isi??? 2
social impact