ANALISIS PERFORMA BROKER MQTT MOSQUITTO PADA RASPBERRY PI 4 MODEL B UNTUK INTERNET OF THINGS (IOT)
BAGUS SATRIO NUGROHO, Drs. Bambang Nurcahyo Prastowo, M.Sc.
2021 | Skripsi | S1 ELEKTRONIKA DAN INSTRUMENTASIInternet of thing (IoT) merupakan suatu konsep yang bertujuan untuk memperluas manfaat dari konektivitas internet yang tersambung secara terus menerus . Didalam implementasi IoT, protokol komunikasi yang mumpuni, berukuran ringan, dan mampu memberikan respon dengan cepat diperlukan. Salah satu protokol yaitu protokol MQTT. MQTT membutuhkan adanya Server/Broker sebagai device yang memproses transportasi data. Broker MQTT membutuhkan hardware yang mumpuni, salah satu hardware yang dinilai mumpuni dan banyak ditemui di pasaran adalah Raspberry pi 4 model b. Namun halnya perlu diketahui performa raspberry pi sebagai broker MQTT Dalam Penelitian ini raspberry pi 4 model b sebagai broker diujikan performanya ditinjau dari load averages, latensi pengiriman, dan data loss dengan mengirimkan payload sebesar 30 Bytes dan 100 Bytes. Didapatkan hasil bahwa load averages tidak menunjukkan performa dari broker dengan jelas. Kemudian untuk latensi didapatkan pada payload 30 Bytes, pengiriman data terlambat 0,0018 detik. Pada payload 100 Bytes terlambat 0,0247 detik. Data loss pada payload 30 Bytes mulai terjadi pada interval pengiriman 0,1 detik sebesar 1,67%. Sementara pada payload 100 Bytes data loss mulai terjadi pada interval 0,25 detik sebesar 2,08%. Semakin kecil interval pengiriman data, semakin besar presentase data loss yang terjadi.
Internet of things (IoT) is a concept that aims to expand the benefits of continuously connected internet connectivity. In the implementation of IoT, a communication protocol that is capable, light in size, and able to respond quickly is needed. One of the protocols is the MQTT protocol. MQTT requires a Server/Broker as a device that processes data transport. MQTT brokers require capable hardware, one of the hardware that is considered capable and widely available in the market is the Raspberry pi 4 model b. However, it is necessary to know the performance of the raspberry pi as an MQTT broker In this study, raspberry pi 4 model b as a broker was tested for its performance in terms of load averages, delivery latency, and data loss by sending a payload of 30 bytes and 100 bytes. It was found that the load averages did not clearly show the performance of the broker. Then for the latency obtained at a payload of 30 Bytes, data transmission is 0.0018 seconds late. At 100 Bytes payload 0.0247 seconds late. The 30 Bytes payload data loss begins to occur at a delivery interval of 0.1 seconds at 1.67%. While at a payload of 100 Bytes, data loss begins to occur at 0.25 second intervals of 2.08%. The smaller the data transmission interval, the greater the percentage of data loss that occurs.
Kata Kunci : Internet of Things, Raspberry pi 4, Broker MQTT