frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I integrated my from-scratch TCP/IP stack into the xv6-riscv OS

https://github.com/pandax381/xv6-riscv-net
33•pandax381•3h ago
Hi HN,

To truly understand how operating systems and network protocols work, I decided to combine two classic learning tools: the xv6 teaching OS and a from-scratch TCP/IP stack.

I'm excited to share the result: my own from-scratch TCP/IP networking stack running directly inside the xv6-riscv (https://github.com/pandax381/xv6-riscv-net) kernel.

The project uses a modern virtio-net driver, allowing it to run seamlessly in QEMU and communicate with the host machine.

Key features:

- From-Scratch Stack: The core is powered by microps (https://github.com/pandax381/microps), a TCP/IP stack I originally wrote to run in user-space as a personal project to learn the low-level details of networking.

- Kernel Integration: This project ports microps from user-space into the xv6-riscv kernel.

- Socket API: Implements standard system calls (socket, bind, accept, etc.) to enable network application development.

- User-level Tools: Comes with a simple ifconfig command, plus tcpecho and udpecho servers to demonstrate its capabilities.

This has been a fantastic learning experience. My goal was to demystify the magic behind network-aware operating systems by building the components myself.

I'd love to hear your feedback and answer any questions!

Comments

theosp•2h ago
Well done! Thank you for sharing
lesser-shadow•1h ago
Are you using any RISC-V extensions? If so, which? I couldn't find this information on the xv6 project page. It would be cool if you could run this project in bare metal.
Tony_Delco•41m ago
This is amazing work. Most people don’t realize how much effort and depth there is behind writing a TCP/IP stack and plugging it into xv6 with virtio-net and sockets. Huge respect for making it public. Projects like this are gold for those of us who love low-level systems.
dancek•1m ago
Awesome work! Thank you for showing it to the world!

I've considered writing a network stack myself. It's much more complex than most people can imagine. We have great tooling for TCP and that makes people believe it's simple technology. It's not.

RPM 6.0.0 BETA1 Release Notes (Draft)

https://rpm.org/releases/6.0.0
2•gjvc•1m ago•0 comments

Ramses Exchange Fire

https://en.wikipedia.org/wiki/Ramses_Exchange_fire
2•mns06•3m ago•1 comments

Show HN: I built a blog generator that learns your preferences

https://www.blogyak.com
2•mondov•4m ago•1 comments

Inside CPython's attribute lookup

https://antocuni.eu/2025/08/25/inside-cpythons-attribute-lookup/
1•antocuni•5m ago•0 comments

Intel says Trump deal has risks for shareholders, international sales

https://www.cnbc.com/2025/08/25/intel-trump-deal-risks-stock.html
1•panrobo•7m ago•0 comments

Professional Gaming Tools and Guides

2•autumn6653•12m ago•1 comments

Mississippi legal challenge: we will need to geoblock Mississippi IPs

https://dw-news.dreamwidth.org/44429.html
2•healsdata•13m ago•0 comments

Animals Top – bilingual animal and plant encyclopedia (CN/EN)

https://m.i133.com
1•qianniao•14m ago•1 comments

How long does it take for a German Shepherd puppy to be potty trained?

https://www.mypetshops.com/article/how-long-does-it-take-for-a-german-shepherd-puppy-to-be-potty-...
1•houjuejue•15m ago•1 comments

Timetotest.tech – Meet the First AI QA CO-Pilot

1•VincentPresh•21m ago•0 comments

Free for Open Source

https://github.com/cloudcommunity/Free-for-Open-Source
2•3form•25m ago•0 comments

Rv: The Ruby Swiss army knife

https://github.com/spinel-coop/rv
3•ingve•26m ago•0 comments

The 'KPop Demon Hunters' Success Story Could Be a Turning Point for Cinema

https://gizmodo.com/the-kpop-demon-hunters-success-story-could-be-a-turning-point-for-cinema-2000...
2•fcpguru•28m ago•0 comments

The State of MCP Security

https://www.pynt.io/blog/llm-security-blogs/state-of-mcp-security
2•nonvibecoding•30m ago•0 comments

Doing events? Introducing you the world first AI agent for event management

https://www.envelope.so/
2•sonyhong•35m ago•1 comments

Wolf Rock Lighthouse maintenance visit and tour [video]

https://www.youtube.com/watch?v=m81KWrfJED0
2•bschne•39m ago•0 comments

AWS Machine Learning Engineer (Associate) Exam

https://bukola.info/blog/2025-08-08-on-aws-machine-learning-associate-exam
2•mu0n•39m ago•0 comments

PRC-Nexus Espionage Campaign Hijacks Web Traffic to Target Diplomats

https://cloud.google.com/blog/topics/threat-intelligence/prc-nexus-espionage-targets-diplomats
1•shscs911•42m ago•0 comments

Show HN: Maia – Open-source framework for testing AI systems before deployment

https://www.maiaframework.com/
1•radoslaw-sz•42m ago•0 comments

Launch and Scale AI Applications in Minutes

https://www.hyperpodai.com
1•ollayf•45m ago•1 comments

The website address has been modified

https://www.symbolcopy.com/
1•JIE007•47m ago•0 comments

Biotechs Turn to Digital Coins, Crypto to Boost Stock Prices

https://www.bloomberg.com/news/articles/2025-08-25/biotechs-turn-to-digital-coins-crypto-to-boost...
2•thm•48m ago•0 comments

Just launched a new project: sqlmap.online (currently in beta)

2•microphp•51m ago•0 comments

Faircamp: A static site generator for audio producers

https://simonrepp.com/faircamp/
2•trueduke•52m ago•0 comments

Show HN: AI-32: Crawl URLs and Ask AI About the Content

https://apify.com/onescales/ai-32
1•onescales•52m ago•0 comments

Linux is 34 years old today

https://www.tomshardware.com/software/linux/linux-is-34-years-old-today-linus-torvalds-meekly-ann...
3•benkan•53m ago•1 comments

Fans loved her new album. The thing was, she hadn't released one

https://www.bbc.com/news/articles/clydz8d03dvo
2•benkan•54m ago•0 comments

Understand the Temporary Allocator; Understand Arenas

https://zylinski.se/posts/temporary-allocator-your-first-arena/
1•todsacerdoti•54m ago•0 comments

Most air cleaning devices have not been tested on people

https://theconversation.com/most-air-cleaning-devices-have-not-been-tested-on-people-and-little-i...
2•benkan•55m ago•0 comments

You can just open-source things

https://world.hey.com/joaoqalves/you-can-just-open-source-things-2c1e2b77
2•joaoqalves•1h ago•2 comments