P4SSN: Optimization and Security of Traffic in Sensor Networks
Internet of Things; Sensor Networks; MQTT-SN; P4.
With the advancement of Internet of Things (IoT) applications, there is a growing demand for communication mechanisms that are more efficient, secure, and adaptable to the constraints of low-power devices. In this context, Software-Defined Networking (SDN)
architectures have gained prominence by enabling direct programmability of the data plane through the P4 language. This work proposes and evaluates P4SSN, an in-network architecture based on the MQTT-SN protocol, designed to incorporate security checks and routing optimizations directly into the BMv2 programmable switch. The solution was fully implemented in P4, and comparative experiments were conducted to measure the processing time of message flows at different Quality of Service (QoS) levels. The results show a characteristic trade-off between additional security and increased latency, but demonstrate that in-network processing remains viable even in time-sensitive scenarios. The analyses reinforce the potential of P4SSN to improve communications in IoT networks, as well as paving the way for future extensions, such as MQTT support, integration with SDN controllers, and new authentication and encryption mechanisms in the data plane.