Field lab · Tooling · swarm-routing/sim-tools
sim-tools
Protocol-agnostic comparison: the harness every arm registers with, and the scripts that judge the runs.
Unlocked: v1.2.0 released, 6 epics in progress, 4 planned Computed from its 10 epics · release v1.2.0, as they stood on .
RepositoryMarker contractns-3 bug registerBring your own protocolNetwork familiesComparators sim-tools#15Release images
What it does
sim-tools is where protocols meet on equal terms. The routing-bench module (moved from AntHocNet as-is) is the comparison harness: every protocol, ours or a comparator, registers as an arm through its own helper/<module>-bench-arms.cc, and no arm is special-cased. It also holds the measurement itself today: the topology oracle (BFS-reachable delivery ratio, path stretch) and the drop book (PHY/MAC/ARP/TTL/loop root causes). A run prints the versioned marker lines ##CONFIG##, ##RUN##, ##BENCH##, ##DIAG##, ##PROV## and ##PERF##. Each arm runs in its own process by default (--isolateArms), and a run whose simulated time stops advancing, a zero-time event storm like NS3-001, stops after --livelockEvents events at one instant instead of running until the job times out.
The ns3-tool CLI (compare, sweep, diagnose, scaffold) fronts the Python readers (stdlib only): they parse those lines and do the statistics, per-seed paired deltas over at least 20 seeds and a scripted noise verdict, never an eyeballed one, checked byte-identical against fixture cells from AntHocNet. ns3-campaign runs a multi-protocol campaign: one image, every cell pulled by digest, each keyed over every pinned input; it also runs a protocol repository's change-test plans, where a never-published smoke plan may name its image by a rolling tag that the first dispatch resolves to a digest the whole campaign keeps. The CLI and marker contract v1 are frozen: fields, commands and options are only appended, and a breaking change waits for contract v2.
The network-family catalogue (scenarios/) describes the harness's presets: one directory per family (manet, fanet, vanet, static-mesh, disaster, and the preset-free legacy cells) with its preset, preflight rules and anchors, each value sourced, and a "configure it with ns-3" page per family under docs/families/. ns3-tool sweep --family and ns3-scenario-check read it; routing-bench never does. routing-compare --failures scripts node and link failures, identical for every arm, and ns3/patches/ holds the patches to upstream ns-3's own source, one directory per ns-3 bug. The user guide, docs/bring-your-own-protocol.md, takes a protocol from the released packages to a 20-seed paired comparison.
Planned next: non-intrusive probes as their own module (the oracle and the drop book extracted), the satellite harnesses on the arm registry, and the non-swarm comparator arms, each its own module under ns3/arms/. Whether the universal arenas of the original plan stay is an open decision.
Renamed from ns3-tools on 2026-11-22 (ROADMAP phase 0). It owns orchestration and statistics for every simulator (ROADMAP decision 24): the simulator-agnostic runner, the seed sweeps, the shared telemetry schema and the statistics; its per-simulator directories hold only launch configs and trace normalizers, never adapter code. The release, the ns3-tools.lock pin and PyPI's ns3-tools keep their names. It also keeps the org's register of upstream ns-3 bugs (docs/ns3-bugs.md, NS3-NNN), each with its RCAPA under docs/ns3-rcapa/.
Diagrams
Package structure
The repository's layout, its licence per directory (LICENSING.md) and what exists today.
| Path | What | Licence | State |
|---|---|---|---|
ns3/routing-bench/ | the comparison harness module (routing-compare, anthocnet-compare alias; topology oracle, drop book; each arm in its own process; the livelock guard) | GPL-2.0-only | present |
ns3/patches/ | patches to upstream ns-3's own source, one directory per ns-3 bug (NS3-NNN/: the patch, its apply script, reproducer and test); apply.sh runs them all | GPL-2.0-only | present |
scenarios/ | the network-family catalogue: <family>/{preset,preflight,anchors}.toml, each value sourced; the disaster scene's fixtures | GPL-2.0-only | present |
ns3/arms/<name>/ | non-swarm comparator arms (SAODV, SEAD, TAODV, DRL, DTN), one module each | GPL-2.0-only | planned |
ns3/ (probes, satellite harnesses) | the probe module (oracle and drop book extracted); satellite harnesses on the arm registry | GPL-2.0-only | planned |
python/ns3_tool/ | the ns3-tool CLI, readers and statistics, scenario_check, ns3-campaign and its change-test plans | MIT OR GPL-2.0-only | present |
python/tests/ | self-tests; fixtures/cells/: 14 AntHocNet cells (data, GPL-2.0-only); benchmarks/: swarm-routing/benchmarks' run validator, vendored at a pinned commit | MIT OR GPL-2.0-only | present |
campaigns/ | campaign plans (TOML), each campaign's pre-registration | GPL-2.0-only | present |
tools/checks/ | CI scripts: the family catalogue and its presets, stock arms, arm delivery, ##PERF##, the scaffolded arm, the ns-3 bug register's references, the Python boundary, the published paths | MIT OR GPL-2.0-only | present |
tools/release/ | dist.sh: the release assets (routing-bench tarball, ns3-tool wheel and sdist) | MIT OR GPL-2.0-only | present |
docs/ | markers.md (the marker contract), bring-your-own-protocol.md (the user guide), families/ (one page per catalogue family), layout.md (every path, the published paths), profiling.md, roadmap.md, ns3-bugs.md and ns3-rcapa/ (the upstream ns-3 bug register), development.md, adr/, rcapa/, references.bib | GPL-2.0-only | present |
Where it sits in the colony
Quests
The repository's epics and their sub-issues, as the issues stood on 2026-11-30: 13 of 59 sub-issues closed.
- #2 A protocol-agnostic comparison harness, packaged on its own
In progress · 6 / 11 sub-issues closed - #7 metrics 2026 — age of information, delay percentile/CDF export, energy-per-bit, route lifetime/convergence as CSV metrics
In progress · 1 / 1 sub-issues closed - #224 developer experience: a newcomer can build, test and contribute from the docs alone
In progress · 1 / 2 sub-issues closed - #227 per-protocol resource metrics: state footprint, energy, overhead and simulator cost, without disturbing results
In progress · 1 / 10 sub-issues closed - #277 Agnostic orchestration split (sim-tools) & Scenario IR / probes.v1.jsonl adapter alignment
In progress · 1 / 1 sub-issues closed - #375 sim-tools layout and packages: every file classified by simulator and kind, one package per shipped group
In progress · 3 / 8 sub-issues closed - #15 Comparators: swarm, learned and secure protocols under identical conditions
Planned · 0 / 13 sub-issues closed - #34 promote AntHocNet's vendored comparator modules into ns3/arms/: aomdv, gpsr, qrouting, oracle
Planned · 0 / 2 sub-issues closed - #43 Network substrates: the ns-3 pieces new network types need, for every arm
Planned · 0 / 11 sub-issues closed - #279 Standardized Input & Output Contracts (Scenario IR & Probe Stream)
Planned · no sub-issues
Cite this project
Using sim-tools in a paper? Cite the project as below, and the works it rests on from its references.
Text
Joppi, Daniel Henrique (n.d.). ns3-tools (version 1.2.0) [Computer software]. https://doi.org/10.5281/zenodo.24136068
BibTeX
@software{simtools,
author = {Joppi, Daniel Henrique},
title = {ns3-tools},
version = {1.2.0},
doi = {10.5281/zenodo.24136068},
url = {https://github.com/swarm-routing/ns3-tools}
}- Version
- 1.2.0
- Author
- Daniel Henrique Joppi · ORCID
- Licence
- GPL-2.0-only
Read from CITATION.cff at main when this site was built.
References
The 5 works docs/references.bib lists, read at main when this site was built. Each links its DOI; a work with none links its publisher's or institution's page.
Datasets
- Zhao & Pan, LENS: A LEO Satellite Network Measurement Dataset, Proceedings of the 15th ACM Multimedia Systems Conference, 2024, pp. 278–284. DOI 10.1145/3625468.3652170
Software it builds on
- Joppi, AntHocNet for NS-3, Zenodo, 2026. DOI 10.5281/zenodo.20981979
- Riley & Henderson, The ns-3 Network Simulator, Modeling and Tools for Network Simulation, 2010, pp. 15–34. DOI 10.1007/978-3-642-12331-3_2
Background
- Di Caro, Ducatelle & Gambardella, AntHocNet: An Ant-Based Hybrid Routing Algorithm for Mobile Ad Hoc Networks, Parallel Problem Solving from Nature - PPSN VIII, 2004, pp. 461–470. DOI 10.1007/978-3-540-30217-9_47
- Broch et al., A performance comparison of multi-hop wireless ad hoc network routing protocols, Proceedings of the 4th annual ACM/IEEE international conference on Mobile computing and networking, 1998, pp. 85–97. DOI 10.1145/288235.288256
Sources
- sim-tools AGENTS.md at v1.2.0: what the repository is, its layout
- sim-tools docs/markers.md at v1.2.0: the marker contract and its stability
- sim-tools CHANGELOG.md at v1.2.0: the family catalogue, --failures, ns3/patches/
- sim-tools CHANGELOG.md at v1.1.4: the livelock guard, rolling image tags, the scenario independent of the device stream count
- AntHocNet docs: the comparison harness
- AntHocNet ADR-0027: the comparison harness is protocol-agnostic
- swarm-routing ROADMAP.md: decision 24, what sim-tools owns
The status and the quests come from the repository's issues and releases (2026-11-30); the other
facts on this page are kept by hand from its AGENTS.md (as of 2026-11-08).