Performance and Security Analysis of MQTT Communication over WireGuard, TLS, and Plain TCP on Resource-Constrained IoT Devices

Read full text
Authors: Hassam Fathe Muhammad
Cited by: 0

Abstract

This preprint presents a comparative performance and security analysis of MQTT communication over three transport configurations: Plain TCP, TLS, and WireGuard-based VPN tunneling, with a focus on resource-constrained IoT devices such as the ESP32. The study evaluates each approach in terms of confidentiality, attack surface exposure, deployment complexity, and practical performance overhead in real-world IoT scenarios. Through controlled experiments and traffic analysis, the work demonstrates how unencrypted MQTT over TCP exposes sensitive payload data, while TLS provides application-layer encryption with associated computational overhead. WireGuard is analyzed as a lightweight network-layer security alternative, highlighting its effectiveness in isolating MQTT traffic within a private tunnel and reducing public exposure of brokers. The findings aim to guide researchers, developers, and system designers in selecting appropriate security mechanisms for IoT deployments where performance, scalability, and security must be carefully balanced. This work is shared as a preprint to encourage academic discussion and feedback prior to formal peer review.

Fields of Study & Subjects

IoT and Edge/Fog Computing IoT Networks and Protocols Cybersecurity and Information Systems

Publication details

Journal / source
Zenodo (CERN European Organization for Nuclear Research)
Publication date
2 February 2026
Language
EN
Document type
Preprint