AC

Wire Format

Zenoh's wire format is designed for minimal overhead — a put message requires only 5 bytes of header regardless of payload size.

Frame Structure

Zenoh frame structure

Variable-Length Encoding (VLE)

Zenoh uses variable-length integers throughout the wire format. Small values (< 128) use 1 byte; larger values use up to 9 bytes. This keeps overhead minimal for typical sensor payloads.

Message Types

CodeMessageDescription
0x0BPushPub/sub data delivery
0x0CRequestQueryable request
0x0DResponseQueryable reply
0x0EResponseFinalEnd of reply stream
0x01OAMOperations and management

Comparing Overhead

ProtocolMin. overhead
Zenoh5 bytes
MQTT 3.1.12 bytes fixed + variable header
DDS/RTPS~40+ bytes
HTTP/1.1~300+ bytes

Efficiency at Scale

At 50 Gbps throughput with sub-13 µs latency (measured on commodity hardware), Zenoh's wire format wastes nothing — a key design property for both cloud HPC and battery-powered sensors.