Mathematical Modeling and Validation of Retransmission-Based Mutant MQTT for Improving Quality of Service in Developing Smart Cities
Abstract
:1. Introduction
1.1. Architecture
- The MQTT subscribe/publish-based communication requests to the server are collectively treated as request–acknowledge messages.
- The end node uses DNS for address resolution in case of connectivity with the remote server that poses a constant delay.
- The SUBSCRIBER nodes as well as the PUBLISHER nodes follow an identical mechanism for communication with the server, thus the request flows through the same pathway.
- The TCP-based communication “fire and forget after n attempts” strategy is considered for all the network nodes that follows retransmission-based QoS-0.
- The remote server holds two sets of request queues. The published contents’ queue holds the data for the Tcnt interval and the subscribers’ requests are held for an interval denoted by Treq. These holding intervals Thold are thus defined by the storage capacity of the MQTT server as well as the connected nodes [2].
- QoS-1, that is based on “at least one time delivery”, and QoS-2, based on “exactly one time delivery”, are covered in [3].
1.2. Problem Statement and System Model
2. MQTT Characteristics
2.1. Retransmission-Based QoS-0 MQTT Mutant Protocol
2.2. Proposed Asynchronous MQTT
- Step 1: The end node connects with the gateway using the CONNECT/CONNACK mechanism and then we publish the contents using the publish–retransmit mechanism.
- Step 2: The received data from the end node is transmitted by the gateway to the remote MQTT server as CONNECT/CONNACK and then a publish–retransmit basis over a reliable TCP/IP wired network.
- Step 3: The end user connects to the gateway using the CONNECT/CONNACK mechanism as in Step 1 and then the same end user registers with the gateway using SUBSCRIBE and SUBACK for an already available topic on the server.
- Step 4: The subscriber side gateway registers the end user with the server using the connect request followed by the subscribe request that is acknowledged by the server as the SUBACK.
- Step 5: The server sends the available date of the subscribed topic to the end user side gateway via the Internet using PUBLISH and PUBACK instructions.
- Step 6: The gateway on the end user’s side fitches the data to the end user using PUBLISH and PUBACK.
3. Delay Estimation
3.1. Contents Available on Topic
3.2. Contents Not Available on Topic
3.3. Expressions for θ, ε, RTT
3.4. Service Rate, Capacity of the Network, and Probability of Content Delivery
4. Experimental Setup
5. Results and Discussion
6. Conclusions and Future Perspectives
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Khriji, S.; Benbelgacem, Y.; Chéour, R.; Houssaini, D.E.; Kanoun, O. Design and implementation of a cloud-based event-driven architecture for real-time data processing in wireless sensor networks. J. Super Comput. 2022, 78, 3374–3401. [Google Scholar] [CrossRef]
- Andrew, B.; Rahul, G. OASIS MQTT Version. Available online: http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/mqtt-v3.1.1.html/ (accessed on 1 July 2021).
- Handosa, M.; Gračanin, D.; Elmongui, H.G. Performance evaluation of MQTT-based internet of things systems. In Proceedings of the Winter Simulation Conference (WSC), Las Vegas, NV, USA, 3–6 December 2017; pp. 4544–4545. [Google Scholar]
- Kavitha, K.; Suseendran, G. Priority based Adaptive Scheduling Algorithm for IoT Sensor Systems. In Proceedings of the International Conference on Automation, Computational and Technology Management (ICACTM), London, UK, 24–26 April 2019; pp. 361–366. [Google Scholar]
- Pham, C.; Bounceur, A.; Clavier, L.; Noreen, U.; Ehsan, M. Radio channel access challenges in LoRa low-power wide-area networks. In LPWAN Technologies for IoT and M2M Applications; Academic Press: Cambridge, MA, USA, 2020; Volume 1, pp. 65–102. [Google Scholar]
- Govindan, K.; Azad, A.P. End-to-end service assurance in IoT MQTT-SN. In Proceedings of the 12th Annual IEEE Consumer Communications and Networking Conference (CCNC), Las Vegas, NV, USA, 9–12 January 2015; pp. 290–296. [Google Scholar]
- Chang, H.-L.; Wang, C.-G.; Wu, M.-T.; Tsai, M.-H.; Lin, C.Y. Gateway-Assisted Retransmission for Lightweight and Reliable IoT Communications. Sensors 2016, 16, 1560. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Strowes, S.D.; Boundary Inc. Passively Measuring TCP Round-trip Times—A close look at RTT measurements with TCP. ACM Queue 2013, 11, 478–491. [Google Scholar] [CrossRef]
- Günther, A.; Hoene, C. Measuring Round Trip Times to Determine the Distance Between WLAN Nodes. In NETWORKING 2005: Networking Technologies, Services, and Protocols; Performance of Computer and Communication Networks; Mobile and Wireless Communications Systems; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2015; Volume 3462, pp. 768–779. [Google Scholar]
- Jiang, N.; Deng, Y.; Kang, X.; Nallanathan, A. Random Access Analysis for Massive IoT Networks Under a New Spatio-Temporal Model: A Stochastic Geometry Approach. IEEE Trans. Commun. 2018, 66, 5788–5803. [Google Scholar] [CrossRef] [Green Version]
- Zanella, A.; Bui, N.; Castellani, A.; Vangelista, L.; Zorzi, M. Internet of things for smart cities. IEEE Internet Things J. 2014, 1, 22–32. [Google Scholar] [CrossRef]
- Hasan, H.; Aqeel, S. IoT Protocols for Health Care Systems: A Comparative Study. Int. J. Comput. Sci. Mob. Comput. 2018, 7, 38–45. [Google Scholar]
- Zeng, Z.; Che, H.; Miao, W.; Huang, J.; Tang, H.; Zhang, M.; Zhang, S. Towards secure and network state aware bitrate adaptation at IoT edge. J. Cloud Comp. 2020, 9, 38. [Google Scholar] [CrossRef]
- Standard Draft IEEE 802.15.4; Wireless Medium Access Control (MAC) and Physical Layer (PHY) Specifications for Low-Rate Wireless Personal Area Networks WPANs. IEEE: New York, NY, USA, 2006.
- MQTT Client Library for C. Available online: https://www.eclipse.org/paho/ (accessed on 1 October 2020).
- Comparison of Server’s Processing Power and Transmission Rate. Available online: http://www.scalagent.com/IMG/pdf/Benchmark_MQTT_servers-v1-1.pdf (accessed on 1 October 2020).
- Rabbit MQTT Message Broker. Available online: https://www.rabbitmq.com/mqtt.html (accessed on 1 July 2021).
Service | Parameter | Apollo | JoramMQ | RabbitMQ | Mosquitto Server | QoS-0 Retransmission MQTT (n = 1) | QoS-0 Retransmission MQTT (n = 10) |
---|---|---|---|---|---|---|---|
QoS-0 | CPU Usage | 6% | 3% | 38% | 24% | 11% | 15% |
Message Transmission Latency | 5 ms | 1.5 ms | 10 ms | 10 ms | 2 ms | 3.4 ms |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ali, J.; Zafar, M.H.; Hewage, C.; Hassan, R.; Asif, R. Mathematical Modeling and Validation of Retransmission-Based Mutant MQTT for Improving Quality of Service in Developing Smart Cities. Sensors 2022, 22, 9751. https://doi.org/10.3390/s22249751
Ali J, Zafar MH, Hewage C, Hassan R, Asif R. Mathematical Modeling and Validation of Retransmission-Based Mutant MQTT for Improving Quality of Service in Developing Smart Cities. Sensors. 2022; 22(24):9751. https://doi.org/10.3390/s22249751
Chicago/Turabian StyleAli, Jawad, Mohammad Haseeb Zafar, Chaminda Hewage, Raheel Hassan, and Rameez Asif. 2022. "Mathematical Modeling and Validation of Retransmission-Based Mutant MQTT for Improving Quality of Service in Developing Smart Cities" Sensors 22, no. 24: 9751. https://doi.org/10.3390/s22249751
APA StyleAli, J., Zafar, M. H., Hewage, C., Hassan, R., & Asif, R. (2022). Mathematical Modeling and Validation of Retransmission-Based Mutant MQTT for Improving Quality of Service in Developing Smart Cities. Sensors, 22(24), 9751. https://doi.org/10.3390/s22249751