Efisiensi Pertukaran Data Client-Server menggunakan Web Socket pada Perangkat Berbasis Internet of Things

Kristian Adi Nugraha

Abstract


Internet of Things (IoT) banyak digunakan dengan tujuan membantu mempermudah hidup masyarakat dalam wujud perangkat-perangkat yang dapat bekerja secara otomatis. Perangkat IoT secara umum dapat dipantau atau dikendalikan menggunakan perangkat lain seperti komputer atau telepon seluler melalui perantara server yang dikenal sebagai Application Programming Interface (API). Umumnya, protokol yang digunakan untuk pertukaran data antara client dan server adalah Message Queuing Telemetry Transport (MQTT). Namun MQTT memiliki beberapa kelemahan di sisi kehandalan dan keamanan data, sehingga tidak dapat digunakan pada segala jenis kondisi dan situasi. Sebagai alternatif, terdapat protokol Hypertext Transfer Protocol (HTTP) yang dapat mengakomodasi kekurangan tersebut. Namun HTTP memiliki kelemahan di mana server tidak dapat mengirimkan data kepada client apabila client tidak mengirimkan request terlebih dahulu. Sementara pada perangkat IoT, data seharusnya bisa dikirimkan oleh kedua belah pihak. Terdapat satu buah protokol lain yang dapat menjadi solusi dari kedua kebutuhan tersebut, yaitu Web Socket. Penelitian ini bertujuan untuk mengimplementasikan arsitekur client-server berbasis Web Socket untuk melakukan pertukaran data antara perangkat IoT dengan server. Hasil pengujian menunjukkan bahwa protokol Web Socket memiliki nilai latency yang paling rendah di antara protokol yang lain, yaitu dengan nilai rata-rata antara 10,75 sampai dengan 23,29 milidetik. Rentang tersebut termasuk kategori yang baik, sehingga dapat disimpulkan bahwa Web Socket dapat digunakan sebagai alternatif pengganti MQTT.


Keywords


API; HTTP; Internet of Things; MQTT; Web Socket

Full Text:

PDF

References


K. A. Nugraha, “Deteksi Area Parkir Mobil Berbasis Marker Menggunakan Moment Invariants dan K-NN,” Jurnal Teknik Informatika dan Sistem Informasi, vol. 5, no. 1, pp. 112-121, 2019.

R. M. Yozienanda, W. Widiarto and A. Wijayanto, “Otomasi dan Monitoring Hidroponik pada Tanaman Selada dengan Metode Sonic Bloom Berbasis IoT,” JEPIN (Jurnal Edukasi dan Penelitian Informatika), vol. 8, no. 3, pp. 422-431, 2022.

F. K. M. Rashid, O. S. Osman, E. T. Mcgee and H. Raad, “Discovering Hazards in IoT Architectures: A Safety Analysis Approach for Medical Use Cases,” IEEE Access, vol. 11, pp. 53671 - 53686, 2023.

W. Lim, S. Lee, J. Yang, M. Sunwoo, Y. Na and K. Jo, “Automatic Weight Determination in Model Predictive Control for Personalized Car-Following Control,” IEEE Access, vol. 10, pp. 19812 - 19824, 7 Februari 2022.

A. Biswas and H.-C. Wang, “Autonomous Vehicles Enabled by the Integration of IoT, Edge Intelligence, 5G, and Blockchain,” Sensors, vol. 23, no. 4, p. 2023, 2023.

S. Bagwari, A. Roy, R. Singh and A. Gehlot, “Disaster Monitoring based on IoT and Long Range Assisted Framework,” Journal of Physics: Conference Series,, vol. 2327, no. 1, pp. 12-20, 2022.

Supriadi, A. Wajiansyah and A. B. W. Putra, “Prototipe Peringatan Dini Banjir dengan Menerapkan Teknologi Internet of Thing,” Jurnal Edukasi dan Penelitian Informatika, vol. 7, no. 1, pp. 31-38, 2021.

U. Ristian, I. Ruslianto, H. Hasfani and K. Sari, “Perancangan Arsitektur Node Nirkabel dalam Efisiensi Bandwidth Smart Greenhouse Berbasis Protokol MQTT,” Jurnal Edukasi dan Penelitian Informatika, vol. 9, no. 2, pp. 218-225, 2023.

M. U. Saleem, M. R. Usman, M. A. Usman and C. Politis, “Design, Deployment and Performance Evaluation of an IoT Based Smart Energy Management System for Demand Side Management in Smart Grid,” IEEE Access, pp. 15261 - 15278, 2022.

U. Khalil, Mueen-Uddin, O. A. Malik and S. Hussain, “A Blockchain Footprint for Authentication of IoT-Enabled Smart Devices in Smart Cities: State-of-the-Art Advancements, Challenges and Future Research Directions,” IEEE Access, pp. 76805 - 76823, 2022.

G. Mani, J. K. Viswanadhapalli and P. Sriramalakshmi, “AI powered IoT based Real-Time Air Pollution Monitoring and Forecasting,” Journal of Physics: Conference Series, vol. 2115, no. 1, pp. 12-16, 2021.

S. Lee, H. Choi, T. Kim, H.-S. Park and J. K. Choi, “A Novel Energy-Conscious Access Point (eAP) System With Cross-Layer Design in Wi-Fi Networks for Reliable IoT Services,” IEEE Access, vol. 10, pp. 61228 - 61248, 2022.

H. Gao, X. Qin, R. J. D. Barroso, W. Hussain, Y. Xu and Y. Yin, “Collaborative Learning-Based Industrial IoT API Recommendation for Software-Defined Devices: The Implicit Knowledge Discovery Perspective,” IEEE Transactions on Emerging Topics in Computational Intelligence, vol. 6, no. 1, pp. 66 - 76, 2022.

P. A. M. Serrano and J. J. S. Oñate, “ Integration of RESTFul API to Student Information System for Secured Data Sharing and Single Sign-on,” in 2021 IEEE 13th International Conference on Humanoid, Nanotechnology, Information Technology, Communication and Control, Environment, and Management (HNICEM), Manila, Philippines, 2021.

A. Agocs and J.-M. L. Goff, “A web service based on RESTful API and JSON Schema/JSON Meta Schema to construct knowledge graphs,” in 2018 International Conference on Computer, Information and Telecommunication Systems (CITS), Alsace, Colmar, France, 2018.

B. Mishra and A. Kertesz, “The Use of MQTT in M2M and IoT Systems: A Survey,” IEEE Access , vol. 8, pp. 201071 - 201086, 2020.

F. Buccafurri, V. d. Angelis and S. Lazzaro, “MQTT-A: A Broker-Bridging P2P Architecture to Achieve Anonymity in MQTT,” IEEE Internet of Things Journal, vol. 10, no. 17, pp. 15443 - 15463, 2023.

C.-S. Park and H.-M. Nam, “Security Architecture and Protocols for Secure MQTT-SN,” IEEE Access, vol. 8, pp. 226422 - 226436, 2020.

A. M. Zambrano, M. Zambrano, E. L. O. Mejía and X. Calderón, “SIGPRO: A Real-Time Progressive Notification System Using MQTT Bridges and Topic Hierarchy for Rapid Location of Missing Persons,” IEEE Access, vol. 8, pp. 149190 - 149198, 2020.

A. Eduardo, A. Michael and C. Miguel, “Optimization and improvement of bidirectional connections with Web Socket on Synapse framework using Web Workers technology,” in 2021 IEEE Sciences and Humanities International Research Conference (SHIRCON), Lima, Peru, 2021.

S. S. K. Jaeyoung Hwang Sejong University, L. Nkenyereye, N. Sung, J. Kim and J. Song, “IoT Service Slicing and Task Offloading for Edge Computing,” IEEE Internet of Things Journal , pp. 11526 - 11547, 2021.

G. Y. Odongo, R. Musabe and D. Hanyurwim, “An Efficient LoRa-Enabled Smart Fault Detection and Monitoring Platform for the Power Distribution System Using Self-Powered IoT Devices,” IEEE Access, pp. 73403 - 73420, 2022.

Syaifurrahman and A. Aula, “Sistem Monitoring dan Proteksi pada Stop Kontak Berbasis IoT,” Jurnal Edukasi dan Penelitian Informatika, vol. 8, no. 1, pp. 104-110, 2022.

T. Widodo, A. B. Santoso, S. I. Ishak and R. Rumeon, “Journal of Physics: Conference Series,” Jurnal Edukasi dan Penelitian Informatika, vol. 9, no. 1, pp. 59-66, 2023.

I. Ruslianto, U. Ristian and H. Hasfani, “Sistem Pintar Untuk Anggur (Sipunggur) pada Kawasan Tropis Berbasis Internet of Things (IoT),” Jurnal Edukasi dan Penelitian Informatika, vol. 8, no. 1, pp. 121-127, 2022.

S. N. Swamy and S. R. Kota, “An Empirical Study on System Level Aspects of Internet of Things (IoT),” IEEE Access , pp. 188082 - 188134, 2020.

E. Staniloiu, R. Nitu, R. Aron and R. Rughinis, “Extending Client-Server API Support for Memory Safe Programming Languages,” in 2021 20th RoEduNet Conference: Networking in Education and Research (RoEduNet), Iasi, Romania, 2021.

S. Routray, D. Raipure, S. R. N. K and N. P. Shetty, “Secure Sharing of Text Based Data Using Hybrid Encryption Algorithms in a Client-Server Model,” in 2021 Fourth International Conference on Electrical, Computer and Communication Technologies (ICECCT), Erode, India, 2021.

Z. Lei, Y. Chen, Y. Yang, M. Xia and Z. Qi, “Bootstrapping Automated Testing for RESTful Web Services,” IEEE Transactions on Software Engineering, vol. 49, no. 4, pp. 1561 - 1579, 2022.

S.-P. Ma, Y.-J. Chen, Y. Syu, H.-J. Lin and Y.-Y. FanJiang, “Test-Oriented RESTful Service Discovery with Semantic Interface Compatibility,” IEEE Transactions on Services Computing, vol. 14, no. 5, pp. 1571 - 1584, 2021.

Q. Liu and X. Sun, “Research of Web Real-Time Communication Based on Web Socket,” International Journal of Communications, Network and System Sciences, vol. 5, no. 12, pp. 797-801, 2012.

K. A. Nugraha, “Real-Time Bus Arrival Time Estimation API using WebSocket in Microservices Architecture,” International Journal on Advanced Science, Engineering and Information Technology (IJASEIT), vol. 13, no. 3, pp. 1018-1024, 2023.

T. Hamilton, “Response Time Testing – How to Measure for API?,” Guru99, 14 Oktober 2023. [Online]. Available: https://www.guru99.com/response-time-testing.html#:~:text=Generally%2C%20response%20time%20should%20be,lesser%20costs%2C%20higher%20customer%20satisfaction.. [Accessed 16 Oktober 2023].




DOI: http://dx.doi.org/10.26418/jp.v10i1.73145

Refbacks

  • There are currently no refbacks.