# Her Python TCP Stack Worked, Until Her Own Kernel Killed It

Original title: What happens if you write a TCP stack in Python? (2014)

> Hacker News story 50469342 · language: en · submitted 2026-11-12
> Web version: https://zeli.app/story/50469342
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 19 · by [zenincognito](<https://news.ycombinator.com/user?id=zenincognito>) · 💬 2
[original](<https://jvns.ca/blog/2014/08/12/what-happens-if-you-write-a-tcp-stack-in-python/>) · [HN discussion](<https://news.ycombinator.com/item?id=50469342>)

## Summary

During Hacker School, Julia Evans built a miniature TCP stack in Python with scapy, aiming to fetch google.com by hand. Her first SYN got an instant RST from her own kernel, which had never asked for the connection. ARP spoofing a fake IP let her bypass it, and after fixing sequence-number bugs she pulled a real webpage. Then Python proved too slow to ACK packets in time, and Google reset the connection.

## Key quote

> So how do we bypass the kernel?

---

## Cite

- Page: https://zeli.app/story/50469342
- Date: 2026-11-12
- Source: jvns.ca (https://jvns.ca/blog/2014/08/12/what-happens-if-you-write-a-tcp-stack-in-python/)
- Hacker News: https://news.ycombinator.com/item?id=50469342

## Other languages

- zh: https://zeli.app/zh/story/50469342 · markdown: https://zeli.app/zh/story/50469342.md
- ja: https://zeli.app/ja/story/50469342 · markdown: https://zeli.app/ja/story/50469342.md
- ko: https://zeli.app/ko/story/50469342 · markdown: https://zeli.app/ko/story/50469342.md
- de: https://zeli.app/de/story/50469342 · markdown: https://zeli.app/de/story/50469342.md
- es: https://zeli.app/es/story/50469342 · markdown: https://zeli.app/es/story/50469342.md
- ru: https://zeli.app/ru/story/50469342 · markdown: https://zeli.app/ru/story/50469342.md
