ASAysha Shafiq
NETWORK SYSTEMS · PROTOCOL ENGINEERING

Userspace TCP/IP Stack

I built a dependency-free userspace TCP/IP stack from scratch in Rust, delivering median 9.1 Gbps outbound and 7.2 Gbps inbound TCP throughput over Linux TAP.A dependency-free Rust TCP/IP stack with median 9.1 Gbps outbound and 7.2 Gbps inbound throughput.

TCP networking built from scratch
Works with real Linux applications
High-speed file transfers

Building the network stack, layer by layer

I built each layer in Rust, from reading Ethernet frames and answering ARP requests to validating IPv4 and ICMP packets. UDP checks each datagram before routing it by port. TCP keeps state for every connection, completes the handshake, tracks which bytes were sent and acknowledged, respects the receiver's available window, retries lost data with backoff, handles duplicates and resets, and closes connections cleanly.

Measured through the full Linux path

The benchmarks cross real Linux TCP sockets and the TAP boundary, so the results measure the complete integration rather than the protocol engine in isolation.

TinyKV Distributed StoreAirlockTarget Anagram