Add RUDP fragmentation across runtimes

This commit is contained in:
Meta Vens 2026-06-15 02:26:34 +01:00
commit d6f5ee28b0
9 changed files with 934 additions and 81 deletions

View file

@ -180,16 +180,18 @@ Current progress:
dropped data packet in both directions between TypeScript and C#/Kotlin/Python/Rust.
The drops happen below the transport connection through a UDP bridge, so the
recovery is RUDP resend/ack behavior, not application-level retry.
- TypeScript and Python now have the first RUDP fragmentation implementation:
the session can split oversized reliable ordered payloads into fragment
packets, reassemble them before delivery, and the socket transport can carry
fragmented `schema` frames when `maxFragmentBytes` is configured. C#, Rust,
and Kotlin still need the same implementation before fragmentation can claim
cross-runtime parity.
- TypeScript, C#, Rust, Python, and Kotlin now share the first RUDP
fragmentation implementation: the session can split oversized reliable
ordered payloads into fragment packets, reassemble them before delivery, and
the socket transport can carry fragmented `schema` frames when
`maxFragmentBytes` is configured.
- The TypeScript interop harness now proves fragmented reliable ordered
`schema` frames in both request and response direction between TypeScript and
C#/Kotlin/Python/Rust one-shot UDP peers.
- The remaining parity work is to deepen Python's server-side use of its port
and move each runtime's existing TCP/LiteNetLib/WebSocket bodies behind those
ports, then broaden RUDP interop into the full loss, reordering,
fragmentation, reconnect, and schema-message matrix.
reconnect, backpressure, and schema-message matrix.
## RUDP Packet Contract V0