Deterministic Length-Prefixed Framing
High-throughput replication streams benefit from predictable frame headers that can be parsed without speculative buffering or dynamic schema lookups.
Frame Header Layout
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Version (8) | Flags (8) | Header Len (16) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Payload Length (32) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Implementations MUST reject frames exceeding the negotiated maximum segment window and ignore trailing alignment padding when Flag bit 0x02 is set.