Performance Evaluation of MQTT and CoAP Protocols for Internet of Thing (IoT) Applications
KEOPHILAVONG, Thongdy, Widyawan , S.T., M.Sc., Ph.D. ; Muhammad Nur Rizal, S.T., M.Eng., PhD
2019 | Tesis | MAGISTER TEKNIK ELEKTROPerkembangan Internet of Things (IoT) saat ini meningkat untuk menghubungkan beberapa hal melalui koneksi internet. Dengan demikian, protokol transmisi data mempunyai peran penting dalam IoT. Menyadari singularitas satu sama lain, komunikasi menjadi lebih mudah untuk melakukan pertukaran data tanpa campur tangan manusia. Namun, di balik layanan IoT, tidak ada protocol maupun arsitektur khusus untuk melakukan komunikasi. Dengan demikian baik protokol MQTT dan CoAP dipilih dalam hal Quality of Service (QoS) karena secara signifikan mempengaruhi pengembangan aplikasi internet of things (IoT) dengan memastikan pengiriman pesan di antara komunikasi Machine-to-Machine (M2M). Dalam pandangan implementasi IoT, penelitian ini berfokus pada QoS menggunakan protokol MQTT dan CoAP dan membandingkan hasil dari kedua protocol tersebut seperti rata-rata throughput, rata-rata waktu round-trip delay dan packet loss dari publishing and subscribing data dalam lingkunyan nyata yang merupakan sistem pemantauan lingkungan pintar. Selanjutnya, perangkat nyata digunakan seperti raspberry pi 3, NodeMCU / Arduino UNO dan sensor suhu. Dengan demikian, flowchart transfer data antara klien dan server diusulkan berdasarkan evaluasi kinerja sistem komunikasi yang dapat mengukur QoS dari protocol tersebut.
The Internet of Things (IoT) are increasingly developing at the present to connect the things to each other through the internet connection. From which, data transmission protocols play a significant role for devices and machine in an internet of things. Recognizing the singularity of one another, communications become easier to exchange data without any human intervention. However, behind the IoT services, there are no specific protocols for communication and architecture as well. Thus both MQTT and CoAP protocols are chosen in term of the Quality of Service (QoS) because they are significantly playing for the internet of things (IoT) application development by ensuring the message transmission among the Machine-to-Machine (M2M) communications. In view of IoT implementation, the study focused on QoS by looking at MQTT and CoAP protocols and compared the result between the protocols such as average data throughput, the average round-trip delay time and packet loss of publishing and subscribing the data in the real environment that is smart environment monitoring system. Further, real devices were used such as raspberry pi 3, NodeMCU/Arduino UNO and temperature sensors. Thus, the flowchart of data transfer between client and server was proposed due to the evaluation performance of the communications system that can measure the QoS of the protocols.
Kata Kunci : M2M Communications, Internet of Thing, Quality of services, MQTT, CoAP protocols.