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

sim-tools: from an arm to a verdictData flow through sim-tools: a protocol's module registers an arm through its bench-arms helper; routing-bench runs the scenario over at least twenty seeds per arm and prints the versioned marker lines; the stdlib readers parse them, pair runs by seed and compute deltas and a noise verdict; the result is written into the benchmarks repository with its manifest.armhelper/<m>-bench-arms.ccrouting-benchrouting-compare≥ 20 seedsmarker lines##CONFIG## ##RUN####BENCH## ##DIAG##ns3_toolbench_parsestats_util, pool_runsverdictpaired Δ per seednoise callbenchmarksruns/ + manifestverdicts/
Data flow: the marker lines are a versioned contract (fields only appended), and every verdict is a script's output, never an eyeballed number.
sim-tools: package diagramUML package diagram of sim-tools: the routing-bench harness module, the planned comparator arm modules and probes, the ns3_tool Python readers and their tests, and the ns3-dev images they run in.registers«use»parses lines«use»builds inns3::routing-bench«GPL-2.0-only»routing-comparearm registrymarker emittersns3/arms/<name>«GPL-2.0-only»SAODV, SEAD, TAODVDRL, DTNone module eachns3 probes + arenas«GPL-2.0-only»TopologyOracleDropCauseClassifiermanet-, leo-walker-arenapython/ns3_tool«MIT OR GPL-2.0-only»bench_parse, stats_utilpool_runs, sweep_summarynative / comparator viewspython/tests«MIT OR GPL-2.0-only»self-tests13 AntHocNet cellsbyte-identical outputns3-dev image«sim-containers»latest-debuglatest-sanitized
Package diagram (UML). Each comparator arm is its own module that registers exactly as an out-of-repo arm does; no code outside its directory names it. Dashed: planned.

Package structure

The repository's layout, its licence per directory (LICENSING.md) and what exists today.

Directories of swarm-routing/sim-tools
PathWhatLicenceState
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-onlypresent
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 allGPL-2.0-onlypresent
scenarios/the network-family catalogue: <family>/{preset,preflight,anchors}.toml, each value sourced; the disaster scene's fixturesGPL-2.0-onlypresent
ns3/arms/<name>/non-swarm comparator arms (SAODV, SEAD, TAODV, DRL, DTN), one module eachGPL-2.0-onlyplanned
ns3/ (probes, satellite harnesses)the probe module (oracle and drop book extracted); satellite harnesses on the arm registryGPL-2.0-onlyplanned
python/ns3_tool/the ns3-tool CLI, readers and statistics, scenario_check, ns3-campaign and its change-test plansMIT OR GPL-2.0-onlypresent
python/tests/self-tests; fixtures/cells/: 14 AntHocNet cells (data, GPL-2.0-only); benchmarks/: swarm-routing/benchmarks' run validator, vendored at a pinned commitMIT OR GPL-2.0-onlypresent
campaigns/campaign plans (TOML), each campaign's pre-registrationGPL-2.0-onlypresent
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 pathsMIT OR GPL-2.0-onlypresent
tools/release/dist.sh: the release assets (routing-bench tarball, ns3-tool wheel and sdist)MIT OR GPL-2.0-onlypresent
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.bibGPL-2.0-onlypresent

Where it sits in the colony

The swarm-routing organisation: who depends on whomDependency graph of the swarm-routing organisation, in the colony map's six regions: Protocols on top (AntHocNet, ARA, BeeAdHoc, Termite, HOPNET, and the deferred POSANT, BeeSensor and Q-Swarm); Core (swarm-core) and Adapters (swarm-adapter-ns3, and the deferred swarm-routingd and swarm-adapter-omnet) below them; then Infra (vcpkg-registry, benchmarks, the deferred swarm-web-ui, sim-containers, sim-tools); Others (this site, ns3-upstream-report, .github) and AI (swarm-mcp, skills) at the bottom. The five released protocols link the ns-3 module of swarm-adapter-ns3, which builds on swarm-core's release, and register as arms in sim-tools (AntHocNet runs its benchmarks on its harness); swarm-routingd and swarm-adapter-omnet will use swarm-core's ports; vcpkg-registry ports swarm-core; swarm-adapter-ns3 and sim-tools build and run inside the sim-containers images, where swarm-web-ui will run scenarios too; sim-tools writes verdicts into benchmarks; ns3-upstream-report carries sim-tools' register of ns-3 bugs upstream; the Colony Arena site builds AntHocNet's core to WebAssembly and will render the benchmarks leaderboard; the .github repository's reusable CI runs inside the sim-containers images; swarm-mcp, the org's MCP server, runs the .github repository's scripts, and the skills plugin bundles it.ProtocolsCoreAdaptersInfraOthersAIlinkslinkslinkslinkslinksarmbenchbuilds inruns inverdictscore/ → WASMleaderboard (planned)CI imagesruns its scriptsbundlesbuilds onportsruns in (planned)registerAntHocNetprotocol · liveARAprotocolBeeAdHocprotocolTermiteprotocolHOPNETprotocolPOSANTprotocol · deferredBeeSensorprotocol · deferredQ-Swarmprotocol · deferredswarm-coreports · primitivesswarm-adapter-ns3module swarm-coreswarm-routingdLinux daemon · deferredswarm-adapter-omnetOMNeT++ · deferredvcpkg-registryports of the coresbenchmarksdatasets · verdictsswarm-web-uiworkbench · deferredsim-containersns3-dev imagessim-toolsharness · readersColony Arenathis sitens3-upstream-reportbridge to ns-3.githubreusable CI · templatesswarm-mcpMCP server · read-onlyskillsagent skills · plugindashed arrow: «use» dependency (UML); highlighted: this project and its neighbours
sim-tools and its neighbours in the organisation.

Quests

The repository's epics and their sub-issues, as the issues stood on 2026-11-30: 13 of 59 sub-issues closed.

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
DOI
10.5281/zenodo.24136068
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

Software it builds on

Background

Sources

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).