The Journal of Information Technology, Computer Science, and Electrical Engineering
Vol. 3 No. 2 (2026): June-September 2026

Evaluation of Latency and Throughput in MQTT vs. HTTP Protocols for Environmental Sensor Data Transmission Systems

Fajar Wicaksono (Department of Computer Systems, School of Computing, Telkom University, Bandung, Indonesia)
Rian Hidayat (Department of Electrical Engineering and Information Technology, Faculty of Engineering, Universitas Gadjah Mada, Yogyakarta, Indonesia)



Article Info

Publish Date
01 Sep 2026

Abstract

In Internet of Things (IoT)-based environmental monitoring systems, sensor nodes deployed in remote and resource-constrained environments must transmit real-time telemetry over bandwidth-limited wireless communication channels. Selecting an optimal application layer messaging protocol is vital for minimizing transmission latency and maximizing network throughput. This research conducted a rigorous empirical evaluation comparing the performance of the lightweight Message Queuing Telemetry Transport (MQTT) protocol and the ubiquitous Hypertext Transfer Protocol (HTTP/1.1 RESTful API) in an environmental telemetry testbed. The system monitored multiple environmental parameters (temperature, relative humidity, PM2.5 particulate matter, and ambient atmospheric pressure) across four network connectivity conditions: local Wi-Fi, 4G-LTE cellular, bandwidth-throttled 3G, and packet-loss-induced links (1% to 5% packet loss). Transmission performance was evaluated across varying payload sizes (64 bytes to 2048 bytes), publication rates (1 Hz to 50 Hz), and Quality of Service levels (QoS 0, QoS 1, and QoS 2 for MQTT). Empirical results demonstrated that MQTT with QoS 0 achieved a mean end-to-end latency of 18.4 ms over Wi-Fi and 42.6 ms over 4G-LTE, outperforming HTTP by 68.2% and 54.7%, respectively. In high-frequency multi-node stress tests, MQTT delivered a maximum throughput of 1,420 messages/s with an 84.6% reduction in packet protocol overhead compared to HTTP's request-response headers. These findings provide concrete architectural guidance for environmental monitoring deployments: MQTT is substantially superior for power- and bandwidth-constrained remote telemetry, whereas HTTP remains advantageous only for sporadic ad-hoc configuration requests.

Copyrights © 2026






Journal Info

Abbrev

jitcse

Publisher

Subject

Description

The Journal of Information Technology, Computer Science, and Electrical Engineering (JITCSE) is a premier publication dedicated to advancing research and innovation at the intersection of these dynamic fields. With a focus on cutting-edge developments and emerging trends, JITCSE serves as a vital ...