Comparison Analysis of MQTT and HTTP Communication Protocol IOT Based on Website Node.Js

Authors

  • Fernanda Imansyah Telkom University
  • Anggi Zafia Telkom University

Keywords:

HTTP, IoT, Internet of Things, MQTT, QoS

Abstract

Abstract—The Internet of Things is one of the technologies that is widely used in monitoring systems to get maximum results. Within the IoT infrastructure, there are devices and servers, both of which must be listed. These two devices must be connected via a communication protocol such as ZigBee, MQTT, HTTP, and so on. The selection of an appropriate and effective communication protocol is one of the most important things. According to the results of the 2018 edition of the IoT developer survey by the Eclipse Foundation, it was found that the communication protocols that are widely used in IoT systems are the MQTT protocol, which uses a publish/subscribe architecture, and the HTTP protocol, which uses a request/response architecture. This study conducted a comparative analysis of the MQTT and HTTP communication protocols on the internet of things system based on the Node.js website on the Google Cloud platform for monitoring systems for plants as a research object. Data retrieval was carried out in the morning and at night using wireshark software. It was found that the MQTT protocol had better throughput and delay values compared to the HTTP protocol, with an average MQTT throughput value of 1730 in the morning and 1899 at night. The average MQTT delay value was 0.93485406 in the morning and 0.855531576 at night. While the HTTP protocol has better packet loss and jitter values compared to the MQTT protocol, with HTTP packet loss values of 0.028% in the morning and 0.018% at night, the average value of HTTP jitter is 0.044957 in the morning and 0.014849 at night

References

S. Wahyu, M. Syafaat, and A. Yuliana, “Rancang Bangun Sistem Monitoring Pertumbuhan Tanaman Cabai Menggunakan Arduino Bertenaga Surya Terintegrasi Internet of Things (IoT),” Jurnal Teknologi. repository.binawan.ac.id, 2020.

A. Rifa’i, M. U. H. Al Rasyid, and ..., “Sistem Pemantauan Dan Kontrol Otomatis Kualitas Air Berbasis Internet of Things (Iot) Menggunakan Platform Node-Red Untuk Budidaya Udang,” JTT (Jurnal Teknol. …, 2021.

A. Faroqi, “Design of arduino uno based duck egg hatching machine with sensor DHT22 and PIR sensor,” Proceedings - 2020 6th International Conference on Wireless and Telematics, ICWT 2020. 2020, doi: 10.1109/ICWT50448.2020.9243640.

J. Kumar, “Automatic plant watering and monitoring system using NodeMCU,” Proceedings of the 9th International Conference On Cloud Computing, Data Science and Engineering, Confluence 2019. pp. 545–550, 2019, doi: 10.1109/CONFLUENCE.2019.8776956.

N. Widyaningrum and U. Y. Oktiawati, “Sistem Pemantauan dan Pengendalian Debit Fluida Berbasis Arduino dan Website,” J. Nas. Tek. Elektro …, 2020.

H. J. J. Ochoa, “Comparative analysis of power consumption between MQTT and HTTP protocols for an IoT platform designed and implemented for remote real-time monitoring of …,” repositorio.tec.mx.

N. Naik, “Choice of effective messaging protocols for IoT systems: MQTT, CoAP, AMQP and HTTP,” 2017 IEEE Int. Syst. Eng. …, 2017.

M. A. Amrullah, K. M. Lhaksmana, and ..., “Pembangunan dan pengujian protokol MQTT & WebSocket untuk Aplikasi IoT Rumah Cerdas berbasis Android,” eProceedings …, 2018.

H. Hairatunnisa, H. A. Nugroho, and ..., “Analisis Kinerja Protokol MQTT dan HTTP Pada Akuisisi Data Magnet Berbasis Internet of Things,” J. Ilm. …, 2021.

E. Foundation, “IoT Developer Survey 2018,” Eclipse Foundation, 2018. https://iot.eclipse.org/community/resources/iot-surveys (accessed Dec. 06, 2022).

B. Wukkadada, “Comparison with HTTP and MQTT in Internet of Things (IoT),” Proceedings of the International Conference on Inventive Research in Computing Applications, ICIRCA 2018. pp. 249–253, 2018, doi: 10.1109/ICIRCA.2018.8597401.

C. F. Permatasari and H. Dhika, “Optimasi Jalur Transfer Data dari HTTP menjadi MQTT pada IoT menggunakan Cloud Services,” JISA (Jurnal Inform. dan Sains), 2018.

IBM, “Introduction to MQTT,” International business machines corporation, 2022. https://www.ibm.com/docs/en/ibm-mq/7.5?topic=mobile-messaging-m2m (accessed Dec. 06, 2022).

F. Luthfi, E. A. Juanda, and I. Kustiawan, “Optimization of data communication on air control device based on internet of things with application of HTTP and MQTT protocols,” IOP Conf. Ser. …, 2018.

T. Yokotani, “Comparison with HTTP and MQTT on required network resources for IoT,” ICCEREC 2016 - International Conference on Control, Electronics, Renewable Energy, and Communications 2016, Conference Proceedings. pp. 1–6, 2017, doi: 10.1109/ICCEREC.2016.7814989.

A. D. Prakoso, F. T. Syifa, and ..., “Analisis Perbandingan Kualitas Layanan Sistem Antara Protokol HTTP dan MQTT Pada Monitoring Kelembaban Tanah,” PROtek J. Ilm. …, 2020.

S. Kalyani, “Measurement and Analysis of QoS Parameters in RPL Network,” 2018 10th International Conference on Advanced Computing, ICoAC 2018. pp. 307–312, 2018, doi: 10.1109/ICoAC44903.2018.8939052.

V. Andini, L. Sugiyanta, and B. Zaini, “Analisis kinerja parameter throughput dan delay akses inetrnet di smk karyaguna jakarta selatan,” PINTER J. Pendidik. Tek. …, 2020.

H. Babbar, “Performance evaluation of QoS metrics in software defined networking using ryu controller,” IOP Conference Series: Materials Science and Engineering, vol. 1022, no. 1. 2021, doi: 10.1088/1757-899X/1022/1/012024.

W. Y. Pusvita and Y. Huda, “Analisis kualitas layanan jaringan internet wifi. id menggunakan parameter QoS (Quality of Service),” Voteteknika (Vocational Tek. Elektron. …, 2019.

Downloads

Published

2025-12-23

Issue

Section

Artikel