DOMINANCE OF FIELD PROCESSING DURING THE FORMATION OF PROTOCOL BUFFER MESSAGES IN MULTI-NODE IoT SYSTEMS
Differences in encoding time in Internet of Things (IoT) systems are related not only to payload size but also to the data processing stages before serialization. This study identifies the processing time characteristics of fields during Protocol Buffers message formation in a multi-node IoT system. Data from two ESP32 sensor nodes communicating with a Raspberry Pi server via TCP were analyzed, with JSON, PSON, and MessagePack as comparison formats. The analysis combined source code examination, 60-second system tests for each format, and two stages of encoder profiling using fixed inputs without TCP. MessagePack had the lowest average encoding time (85.86 µs), whereas Protocol Buffers required 442.23 µs despite producing the smallest average payload (45.00 bytes). The node carrying additional IMU fields increased the Protocol Buffers encoding time by 78.62 µs, compared with 12.42 to 18.25 µs for the other formats. Profiling showed that telemetry field processing (76.02 µs) and general field processing (39.29 µs) together accounted for 85.8% of the message structure creation time (pbFill(), 134.36 µs), while structure initialization took 1.29 µs and Nanopb serialization took 120.00 µs. These findings indicate that field processing dominates message structure construction in the tested Protocol Buffers implementation, although Nanopb serialization also accounts for a significant share of the encoding time.
Authors
- Putra Wisnu Agung Sucipto (ORCID: https://orcid.org/0000-0003-3399-1384)
- Rangga Bayu Saputra
- Ozora Himmatana Prasetyo
- Taharo Hafwenia
- Raihan Nauval Aziz
- Muhammad Zamroji
Publication Details
- Journal
- INTERNATIONAL SEMINAR
- Published
- 2026-12-01
- DOI
- https://doi.org/10.36563/h9pbrj93
- Primary Topic
- IoT Networks and Protocols
- Type
- article
- Field-Weighted Citation Impact
- 0.00