https://github.com/banyc/rtp
A userspace reliable transmission protocol; send rate governed only by delivery rate and data loss; good enough comparing to TCP performance.
https://github.com/banyc/rtp
delivery-rates fin in-production reliable reliable-protocol reliable-udp reset sack throughput tokio udp userspace
Last synced: about 1 month ago
JSON representation
A userspace reliable transmission protocol; send rate governed only by delivery rate and data loss; good enough comparing to TCP performance.
- Host: GitHub
- URL: https://github.com/banyc/rtp
- Owner: Banyc
- Created: 2024-04-18T11:34:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-09T12:53:37.000Z (about 1 month ago)
- Last Synced: 2025-05-09T14:01:24.442Z (about 1 month ago)
- Topics: delivery-rates, fin, in-production, reliable, reliable-protocol, reliable-udp, reset, sack, throughput, tokio, udp, userspace
- Language: Rust
- Homepage:
- Size: 259 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `rtp`
A userspace reliable transmission protocol whose congestion window is governed only by the delivery rate (i.e., bandwidth/throughput) and the data loss rate.
## Features
- an async-free reliable layer
- a piece of pure algorithm
- main entry: [[src/reliable_layer.rs]]
- send window: [[src/pkt_send_space.rs]]
- recv window: [[src/pkt_recv_space.rs]]
- send rate limiter: [[src/token_bucket.rs]]
- SACK managing: [[src/sack.rs]]
- a dead simple codec for packet encoding/decoding
- main entry: [[src/codec.rs]]
- wireshark dissector: [[wireshark/rtp.dissector.lua]]
- an async-based I/O-agnostic transmission layer
- gluing the unreliable layer and the reliable layer together
- main entry: [[transmission_layer.rs]]
- a user-facing I/O-agnostic socket wrapper
- managing opening, closing, timer, async read/write for the transmission layer
- perk: You are allowed to wait until or check if the send buf is empty!
- main entry: [[src/socket.rs]]
- a user-facing over-UDP implementation
- exposing listening, accepting, and connecting APIs
- main entry: [[src/udp.rs]]
- a user-facing keyed-streams over-single-UDP-connection implementation
- exposing listening, accepting, and connecting APIs
- main entry: [[src/keyed_udp.rs]]## How to use
- as a high-level socket user: Refer to [[examples]] directory and the test sections in [[src/udp.rs]] and [[src/keyed_udp.rs]].
- as a low-level reliable layer user: Refer to the test sections in [[src/socket.rs]].