Executes unmodified application binaries on Linux while emulating system calls and linking processes in a private simulated network for scalable distributed experiments.
Overview
Shadow is a discrete-event network simulator that runs real, unmodified application code inside native Linux processes. It interposes on the system call API so applications behave as if they were on a live network while actually participating in a controlled simulation.
A virtual network connects managed processes using simulated TCP, UDP, and configurable routing graphs with latency and loss. Experiments can scale to large numbers of nodes on a laptop, desktop, or server, with deterministic replay to reproduce bugs and reduce confounding factors.
Compared with emulators that run real stacks in real time, Shadow trades wall-clock coupling for control and scale. Compared with traditional simulators that model applications abstractly, Shadow keeps application-layer behavior because it executes actual binaries.
Support covers many common system calls but not the full Linux API; complex programs may need additional compatibility work. Large-scale Tor network experiments are a motivated use case, and Shadow has been applied to peer-to-peer research including Tor and Bitcoin simulations.
Key features
- Runs real unmodified Linux binaries
- System call interception and emulation
- Simulated TCP and UDP networking
- Configurable latency and packet loss
- Deterministic experiment replay
- Private isolated simulation network
- Large-scale distributed topologies
Use cases
- Tor network research simulations
- Testing distributed application behavior
- Private network protocol evaluation