What moves
The packet token travels from sensor reading to encoded bytes, envelope, radio link, decoder, and format decision.
Match serialization formats to IoT use cases and quantify payload cost
Choose a deployment, adjust the constraints, then watch one reading become a wire payload. The lab keeps format choice tied to bytes, airtime, debugging value, schema discipline, and fleet-scale cost.
The packet token travels from sensor reading to encoded bytes, envelope, radio link, decoder, and format decision.
Scenario constraints change field count, reporting rate, link speed, batch size, schema risk, and operational debugging needs.
Use the byte bars and diagnostics together. Small payloads can lose more to security framing than to serialization syntax.
Choosing the smallest payload alone can create brittle firmware if schema changes, byte order, and decoding contracts are not managed.
Sensor values, device id, timestamp, and optional text labels.
Text, compact binary object, schema-based binary, or fixed layout.
Signatures, encryption tags, topic metadata, or batch framing.
Payload bytes become airtime and network cost on the selected link.
Receiver applies field names, integer keys, or an agreed schema.
Best fit balances size, operations, evolvability, and implementation risk.
Battery soil nodes send compact environmental readings over a slow LPWAN link.
Compact enough for constrained links while keeping typed fields and standard decoders.
Daily uplink volume from all devices before protocol headers.
Receiver and sender agree on integer keys, so compact encoding remains parseable.
On LPWAN or 802.15.4-class paths, field names, quotes, and repeated metadata can dominate a tiny sensor value.
Readable JSON can be the right choice for field diagnostics or low-rate configuration, even when it is not byte-efficient.
Avro and compression become more attractive when gateway batches amortize schema and framing over many records.
Current calculation details will appear here after the first update.
payload_bytes = serialization_bytes + envelope_bytes
airtime_ms = payload_bytes * 8 / link_kbps
daily_fleet_MB = payload_bytes * uplinks_per_day / 1,000,000