Analisa Perbandingan Protokol Mqtt Dengan Http Pada Iot Platform Patriot
DOI:
https://doi.org/10.34818/eoe.v6i2.9468Abstract
Abstrak Perkembangan teknologi IoT sedang berkembang dengan pesat di era globalisasi saat ini dan memberikan banyak manfaat serta kemajuan dalam berbagai aspek kehidupan manusia khususnya di bidang teknologi. Untuk menghubungkan berbagai perangkat elektronik, IoT membutuhkan suatu wadah yang disebut IoT Platform. IoT Platform Patriot dari penelitian sebelumnya yang digunakan pada tugas akhir ini masih dalam tahap pengembangan di beberapa aspek. Patriot Platform saat ini hanya support protokol HTTP yang masih memiliki beberapa kekurangan yaitu pemakaian bandwidth yang cukup besar, ukuran paket yang besar sehingga tidak reliable untuk berjalan pada sistem yang memiliki bandwidth rendah atau latency yang tinggi. Berdasarkan kekurangan protokol HTTP tersebut, implementasi protokol MQTT server sangat dibutuhkan untuk menunjang pengembangan IoT Platform. MQTT merupakan protokol komunikasi yang sangat sederhana dan ringan. Protokol MQTT juga didesain untuk alat berkemampuan terbatas, bandwidth yang rendah, latency yang tinggi dan jaringan yang kurang dapat diandalkan. Hasil pengujian QoS dengan parameter delay diperoleh rata-rata delay MQTT QoS 0 sebesar 0,0017s, QoS 1 sebesar 0,0628805s, MQTT QoS 2 sebesar 0,16987s dan HTTP sebesar 0,124591s. Packet loss yang di dapatkan sebesar 0% untuk MQTT QoS 1, QoS 2 dan HTTP sedangkan QoS 0 sebesar 13,3333%, nilai throughput protokol MQTT lebih rendah +/-324,7943 Bytes/s dibandingkan protokol HTTP sehingga protokol MQTT dapat lebih reliable berjalan pada keadaan bandwidth rendah atau latency tinggi dibandingkan protokol HTTP. Kata kunci : MQTT, IOT Platform, IOT, Publish, Subscribe, Broker Abstract The development of the IoT technology is growing rapidly in the current era of globalization and provides many benefits and advances in various aspects of human life, especially in the field of technology. To connect various electronic devices, IoT requires a container called an IoT Platform. The Patriot Platform from previous research used in this final project is still in the development stage in several aspects. Patriot Platform currently only supports HTTP protocol which still has some disadvantages, namely the use of bandwidth is quite large, large packet size so it is not reliable to run on systems that have low bandwidth or high latency. Based on the lack of the HTTP protocol, the implementation of the MQTT server protocol is needed to support the development of IoT Platform. MQTT is a very simple and lightweight communication protocol. The MQTT protocol is also designed for limited-capable devices, low bandwidth, high latency and less reliable networks. The results of QoS testing with delay parameters obtained an average HTTP delay of 0.12340s higher than MQTT QoS 0, lower 0.05390s compared to MQTT QoS 1 and lower 0.227842s compared to MQTT QoS 2, packet loss at 0% for MQTT and HTTP, the MQTT protocol throughput is lower +/- 8.094 Kbit / s compared to the HTTP protocol so the MQTT protocol is more reliable in low bandwidth or high latency compared to the HTTP. Keywords: MQTT, IOT Platform, IOT, Publish, Subscribe, BrokerDownloads
References
M. Habibi, Wildan, A. Bhawiyuga, and A. Basuki, “Rancang Bangun IoT Cloud Platform Berbasis Protokol Komunikasi MQTT,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 2(2), p.479-485. 2017.
R. Otsavianto,”Implementasi Metode Link Aggregation Dengan Mode Balance-RR pada Operational Server Berbasis IOT Platform”, Telkom University, 2018.
MQTT.org, 2016. MQTT. Available at: http://mqtt.org/faq [Diakses 15 November].
HIVE MQ, “MQTT Essentials Part 1,” Available at: https://www.hivemq.com/blog/mqtt-essentials-part-1 introducing-mqtt. [Diakses 15 November].
Eclipse Mosquitto, “An Open Source MQTT Broker”. Available at: https://mosquitto.org/ [accessed 19 Oktober 2018]. at:
A. Putra and F. Ramadoni, “Usung Kemudahan Setup Layanan IoT, myDevices Rilis Integrasi,” TeknoJurnal. Available https://teknojurnal.com/usung-kemudahan-setup-layanan-iot-mydevicesrilis-integrasi-cayenne dengan-arduino-dengan-fitur-drag-drop/. 2016. [Accessed 3 Oktober 2018].
J. Chen, and W. Cheng, “Analysis of Web Traffic Based on HTTP Protocol,” IEEE International Conference in Software, Telecommunications and Computer Networks, 2016.
A. Segara, Pandu, R. Primananda, and A. S. Rizqika, “Implementasi MQTT (Message Queuing Telemetry Transport) pada Sistem Monitoring Jaringan berbasis SNMP (Simple Network Management Protocol),” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 2(2), p.695-702. 2018.
R. K. Kodali and K. S. Mahesh, “A low cost implementation of MQTT using ESP8266,” IEEE 2nd International Conference on Contemporary Computing and Informatics (IC3I), 2016.
M. Yue, Y. Ruiyang, S. Jianwei, and Y. Kaifeng,”A MQTT Protocol Message Push Server Based on RocketMQ,” IEEE 10th International Conference on Intelligent Computation Technology and Automation (ICICTA), 2017.
S. Shin, K. Kobara, C. Chuang, and H. Weicheng,”A Security framework for MQTT,” IEEE Conference on Communications and Network Security (CNS), 2016.
R. K. Kodali, V. S. Gorantla,”Weather Tracking System using MQTT and SQLite,” IEEE International Conference and Applied and Theoritical Computing and Communication Technology(iCATccT), 2017.
R. A. Light, “Mosquitto: server and client implementation of the MQTT protocol,” The Journal of Open Source Software, vol. 2, no. 13, May 2017.



