Applied Sciences (Nov 2023)

E-MQTT: End-to-End Synchronous and Asynchronous Communication Mechanisms in MQTT Protocol

  • Yerin Im,
  • Mingyu Lim

DOI
https://doi.org/10.3390/app132212419
Journal volume & issue
Vol. 13, no. 22
p. 12419

Abstract

Read online

Message Queuing Telemetry Transport (MQTT) enables asynchronous confirmation of message reception by brokers but lacks a way for publishers to know when subscribers receive their messages without adding additional communication overhead. This paper addresses this problem by improving MQTT to establish end-to-end communication between a publisher and subscribers, reducing message exchanges, using what is called End-to-End MQTT (E-MQTT). In E-MQTT, a publisher sets the number of responses that it will wait for when it sends a message. After the broker collects the response messages from subscribers, it sends one aggregated response back to the publisher. The publisher also can receive the response message synchronously or asynchronously. Experimental results consistently show that E-MQTT outperforms traditional MQTT in terms of delay, especially when the publisher needs to monitor when its query message is received by subscribers. Although E-MQTT packets are slightly larger due to additional fields, the difference in packet size compared to MQTT is not significant.

Keywords