Impact and Analysis of Environment Temperature on MQTT Performance Using Raspberry PI 3

Impact and Analysis of Environment Temperature on MQTT Performance Using Raspberry PI 3

  IJETT-book-cover           
  
© 2023 by IJETT Journal
Volume-71 Issue-10
Year of Publication : 2023
Author : Bouchra Allaoui, Ahmed Mouhsen, Mohamed Lamhamdi, Rachid Dakir
DOI : 10.14445/22315381/IJETT-V71I10P209

How to Cite?

Bouchra Allaoui, Ahmed Mouhsen, Mohamed Lamhamdi, Rachid Dakir, "Impact and Analysis of Environment Temperature on MQTT Performance Using Raspberry PI 3," International Journal of Engineering Trends and Technology, vol. 71, no. 10, pp. 94-104, 2023. Crossref, https://doi.org/10.14445/22315381/IJETT-V71I10P209

Abstract
This study aims to present and discuss the impact of increasing the environment temperature on CPU usage, memory usage, processor temperature, and response time when the number of clients increases. In this work, the MQTT protocol with different QoS levels is used. A testbed system comprises a laptop, a Raspberry Pi 3 Model B, an air conditioner, a DS18B20 thermometer, and a WiFi access point. The two first hardware functions as multiple MQTT clients and an MQTT broker, respectively. Note that the Raspberry Pi is chosen because the community widely accepts it, whereas the purpose of collecting the MQTT clients in a single machine is to increase their number up to 201 automatically. For each number of clients, metrics such as the environment temperature, CPU usage, memory usage, and processor temperature continue to be measured until the number of clients reaches the 66400th PUBLISH packet, while the response time metric is determined by calculating the duration between the CONNECT and the 66400th PUBLISH packets. In this experiment, the environment temperature is varied using the air conditioner for each QoS level. The results indicate that the high environment temperature can either increase the CPU usage and decrease the response time or keep constant the CPU usage and increase the response time.

Keywords
CPU usage, Environment temperature, Internet of Things, MQTT protocol, Response time.

References
[1] Shakila Zaman et al., “Thinking Out of the Blocks: Holochain for Distributed Security in IoT Healthcare,” IEEE Access, vol. 10, pp. 37064-37081, 2022.
[CrossRef] [Google Scholar] [Publisher Link]
[2] Kevin Ashton, “That ‘Internet of Things’ Things,” RFID Journal, vol. 22, no. 7, pp. 97-114, 2009.
[Google Scholar] [Publisher Link]
[3] Nitin Naik, “Choice of Effective Messaging Protocols for IoT Systems: MQTT, CoAP, AMQP and HTTP,” IEEE International Systems Engineering Symposium, pp. 1-7, 2017.
[CrossRef] [Google Scholar] [Publisher Link]
[4] Biswajeeban Mishra, Biswaranjan Mishra, and Attila Kertesz, “Stress-Testing MQTT Brokers: A Comparative Analysis of Performance Measurements,” Energies, vol. 14, no. 18, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[5] Vishal A. Thakor et al., “Lightweight Cryptography Algorithms for Resource-Constrained IoT Devices: A Review, Comparison and Research Opportunities,” IEEE Access, vol. 9, pp. 28177-28193, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[6] T.N. Ford, E. Gamess, and C. Ogden, “Performance Evaluation of Different Raspberry Pi Models as MQTT Servers and Clients,” International Journal of Computer Networks & Communications, vol. 14, no. 2, 2022.
[CrossRef] [Google Scholar] [Publisher Link]
[7] Sahmi Imane, Mazri Tomader, and Hmina Nabil, “Comparison between CoAP and MQTT in Smart Healthcare and Some Threats,” International Symposium on Advanced Electrical and Communication Technologies, pp. 1-4, 2018.
[CrossRef] [Google Scholar] [Publisher Link]
[8] M. Zorkany, K. Fahmy, and Ahmed Yahya, “Performance Evaluation of IoT Messaging Protocol Implementation for E-Health Systems,” International Journal of Advanced Computer Science and Applications, vol. 10, no. 11, pp. 412-419, 2019.
[CrossRef] [Google Scholar] [Publisher Link]
[9] Yesenia Guamán et al., “Comparative Performance Analysis between MQTT and CoAP Protocols for IoT with Raspberry Pi 3 in IEEE 802.11 Environments,” 2020 15th Iberian Conference on Information Systems and Technologies, pp. 1-6, 2020.
[CrossRef] [Google Scholar] [Publisher Link]
[10] Davide Borsatti et al., “From IoT to Cloud: Applications and Performance of the MQTT Protocol,” 22nd International Conference on Transparent Optical Networks, pp. 1-4, 2020.
[CrossRef] [Google Scholar] [Publisher Link]
[11] Edgaras Baranauskas, Jevgenijus Toldinas, and Borisas Lozinskis, “Evaluation of the Impact on Energy Consumption of MQTT Protocol over TLS,” CEUR Workshop Proceedings: IVUS International Conference on Information Technologies: Proceedings of the International Conference on Information Technologies, pp. 56-60, 2019.
[Google Scholar] [Publisher Link]
[12] Thomas Prantl et al., “Performance Impact Analysis of Securing MQTT using TLS,” Proceedings of the ACM/SPEC International Conference on Performance Engineering, pp. 241-248, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[13] Borislav Toskov et al., “Architecture of Intelligent Guard System in the Virtual Physical Space,” IEEE 10th International Conference on Intelligent Systems, pp. 265-269, 2020.
[CrossRef] [Google Scholar] [Publisher Link]
[14] Aleksandar Velinov et al., “Covert Channels in the MQTT-Based Internet of Things,” IEEE Access, vol. 7, pp. 161899-161915, 2019.
[CrossRef] [Google Scholar] [Publisher Link]
[15] Elias M. Pinheiro, and Sérgio D. Correia, “Software Model for a Low-Cost, IoT Oriented Energy Monitoring Platform,” SSRG International Journal of Computer Science and Engineering, vol. 5, no. 7, pp. 1-5, 2018.
[CrossRef] [Google Scholar] [Publisher Link]
[16] Raspberry Pi 3 Model B. [Online]. Available: https://www.raspberrypi.org/products/raspberry-pi-3-model-b/
[17] Maximintegrated, Ds18B20: Programmable Resolution 1-Wire Digital Thermometer, 2015. [Online]. Available: https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
[18] Operating System Images. [Online]. Available: https://www.raspberrypi.org/software/operating-systems/#raspberry-pi-os-32-bit
[19] Téléchargements. [Online]. Available: https://raspberry-pi.fr/telechargements/
[20] Paho-MQTT 1.6.1. [Online]. Available: https://pypi.org/project/paho-mqtt/
[21] Threading - Thread-Based Parallelism. [Online]. Available: https://docs.python.org/3/library/threading.html#
[22] Top. [Online]. Available: http://manpages.ubuntu.com/manpages/xenial/man1/top.1.html?_ga=2.164635455.1084823020.1640179895-1054292474.1615460534
[23] The Config.txt File. [Online]. Available: https://www.raspberrypi.com/documentation/computers/config_txt.html
[24] Ruth Suehle, and Tom Callaway, Raspberry Pi Hacks: Tips & Tools for Making Things with the Inexpensive Linux Computer, 1st ed., O’Reilly Media, pp. 1–62, 2013.
[Google Scholar] [Publisher Link]
[25] Warren Gay, Advanced Raspberry Pi: Raspbian Linux and GPIO Integration, 2nd ed., Apress Berkely, pp. 245–258, 2018.
[CrossRef] [Google Scholar] [Publisher Link]
[26] Renice. [Online]. Available: http://manpages.ubuntu.com/manpages/xenial/en/man1/renice.1.html?_ga=2.179003750.378150101.1624202291-1054292474.1615460534
[27] Diana Bezerra Correia Lima et al., “A Performance Evaluation of Raspberry Pi Zero W Based Gateway Running MQTT Broker for IoT,” IEEE 10th Annual Information Technology, Electronics and Mobile Communication Conference, pp. 76-81, 2019.
[CrossRef] [Google Scholar] [Publisher Link]