How Fast Does Claude, Acting as a User Space IP Stack, Respond to Pings?
TL;DR Highlight
Asking Claude to act as an IP stack made a ping reply take about 42.6 seconds
Who Should Read
Developers trying Markdown command files to make Claude Code handle low-level tasks
Core Mechanics
- Markdown as code, LLM as CPU
- The author asked Claude Code to act as a user space IP stack.
- It reads IP packets byte by byte and processes them like a normal IP stack.
- Claude wrote the command file itself
- The author had Claude produce ping-respond.md.
- It reads one packet from a TUN device (a virtual network interface) and writes an ICMP echo reply.
- All math is done by LLM reasoning
- The file forbids Python, bc, and calculators.
- It requires showing IP and ICMP checksum work so errors can be debugged.
- Only a thin Python helper is used
- The helper reads /dev/tun0 and sets the stty options.
- The model does parsing and reply assembly.
- The real ping worked but was slow
- It was run with Haiku 4.5 and ping showed time=42593 ms.
- The author called the roughly 45-second round trip a slow ping.
Community Reactions
- Criticism that it wastes shared quota
- One opinion blamed this kind of token waste for new Copilot subscription limits.
- Others said a local model could have been used.
- Opinion that a skill with code would be faster
- One commenter suggested an agent skill using an existing user space IP library.
- Security team anecdote
- One commenter said a coworker tried an LLM as an IDS and was told to use BPF.
- Stability question and JIT idea
- One commenter wondered how many of 1,000 pings would be answered correctly.
- Another suggested Claude write a program once there are many pings.
How to Apply
- Try a simple packet parser in Claude Code
- Today, paste the prompt below and have it parse a sample IPv4 header hex and checksums.
- Forbid tools and check the result yourself to see the error rate.
- Verify LLM math with code
- Compare model output with Python results for deterministic calculations like checksums.
- Record the mismatch rate to decide on real use.
- Move deterministic work into scripts
- Extract repeated byte-level computation into scripts and leave judgment to the model.
- Measure latency and token use first and compare.
Try It
# Paste into Claude or Claude Code (simplified version of the article's method: no network device, packet hex only)
You are a user space IP stack. Parse the IPv4 ICMP echo request hex below and build an echo reply.
Rules:
- Compute everything yourself, no code or calculators.
- IP header: TTL=64 (0x40), swap src/dst, zero the checksum and recompute.
- ICMP: type 08→00, zero the checksum and recompute (one's complement sum, fold carries).
- Show your checksum work.
- If anything looks wrong, stop and report why.
Output the full reply hex at the end.
Packet: {{packet hex}}Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques