# Garlic in a Box: I2P Network Emulator

DevFeed: [Garlic in a Box: I2P Network Emulator](<https://devfeed.tech/articles/garlic-in-a-box-i2p-network-emulator-101668.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.34004>)

Author: Siddique Abubakr Muntaka, Faiza Hussein, Boutros Farah, Anthony Kashi, Jacques Bou Abdo, Jacques Demerjian

Published: 2026-10-27T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Networking](<https://devfeed.tech/sources/arxiv-networking.md>)

Topics: [routing-system](<https://devfeed.tech/topics/routing-system.md>), [IP routing](<https://devfeed.tech/topics/ip-routing.md>), [Network Segmentation](<https://devfeed.tech/topics/network-segmentation.md>)

Tags: [attack](<https://devfeed.tech/tags/attack.md>), [cs-ni](<https://devfeed.tech/tags/cs-ni.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [linux](<https://devfeed.tech/tags/linux.md>), [network](<https://devfeed.tech/tags/network.md>), [security-research](<https://devfeed.tech/tags/security-research.md>), [selection](<https://devfeed.tech/tags/selection.md>)

## AI overview

Garlic-in-a-Box emulates isolated networks of unmodified I2P Java routers for reproducible security research. Routers run in Linux network namespaces; filesystem bootstrapping avoids signed reseed servers, while synthetic geographic diversity exercises live-network location-aware peer-selection code. A 50-router deployment across five locations stabilized in about 25 minutes and used roughly 21 GB of memory. In five trials of a modeled reputation attack, the adversary consistently entered the victim's eligible selection set and was selected for 1.38 times as many tunnels as matched controls. The authors say the platform and measurement pipeline are released for research and cyber-defence training.

## Source excerpt

arXiv:2610.34004v1 Announce Type: new Abstract: The Invisible Internet Project (I2P) is a peer-to-peer anonymity network whose routing and peer-selection mechanics underlie a growing family of state-sponsored covert relay architectures. Studying these mechanics demands a controlled, reproducible environment. We present Garlic-in-a-Box, an installable emulator that deploys a fully isolated network of unmodified I2P Java routers on a single host or cluster of hosts. Each router runs in its own Linux network namespace. A filesystem bootstrap removes the dependency on signed reseed servers, and synthetic geographic diversity activates the same location-aware peer-selection code paths present on the live network. A fifty-router deployment across five geographic locations stabilises in about twenty-five minutes and uses roughly 21 GB of memory. To demonstrate the platform's value, we model I2P peer selection as a two-stage process and conduct a reputation attack. Across five independent trials, the attack promotes the adversary into the victim's eligible selection set with perfect consistency, and the adversary is chosen for 1.38x more tunnels than matched controls. The platform and its measurement pipeline are released to support reproducible I2P security research and hands-on cyber-defence training.