Skip to content
@swarm-routing

swarm-routing

  • United States of America

swarm-routing

Swarm-intelligence and adaptive routing protocols for MANETs and LEO constellations, implemented cleanly on ns-3 and benchmarked against each other on identical seeds.

The org grew out of AntHocNet (Di Caro, Ducatelle & Gambardella, 2005), the source repository, which now lives here too: its shared infrastructure, comparator arms and benchmark tooling are moving into their own repositories so each protocol can be its own citable repository.

Group Badges
Main Website AI First
Platforms ns-3 Browser: WebAssembly
Containers GHCR: ns3-dev
Protocols Protocol: AntHocNet Protocol: ARA Protocol: BeeAdHoc Protocol: HOPNET Protocol: Termite
Quality SonarQube Cloud Codecov OpenSSF Scorecard
Trust OpenSSF Scorecard: AntHocNet OpenSSF Best Practices: AntHocNet Images signed: cosign
Stack Runs on ns-3 C++23 Python 3.10+ Go 1.27
Open Tickets Open RCAPA Open handoffs Open epics Open enhancements Open bugs Open chore Open documentation Open question Open verification Open hold
Community & docs Colony Arena Claude Code plugin Conventional Commits Sponsor

Why this exists

I am Daniel Joppi (LinkedIn). I have more than 20 years of experience building high-scale software, delivery pipelines and the architecture of new systems. AntHocNet started as my college project: I began implementing the protocol in 2008 on NS-2 and put the full code on GitHub in January 2016.

The AI First Engineering Model

I came back to it to put AI to a real test. Working with Claude Opus, I restructured the code so the algorithm no longer depends on one NS-2 version (a simulator-free core/ behind thin adapters), moved it to ns-3, and grew it into an organisation that implements and compares other swarm protocols on the same footing. My main motivation is to find out how far a project can be structured and organised using only AI, with tests, determinism checks and paired benchmarks as the safeguard that the implementation stays correct.

That is why the work lives in tickets and roadmaps rather than in anyone's head: every issue carries its context, acceptance criteria and links, so any person, with any AI assistant, can take a ticket as their starting context and begin an implementation or a new investigation.

Ecosystem Architecture

The repositories sit in four layers, the hexagonal (ports and adapters) layout the maintainer decided on 2026-11-22 (ROADMAP, Architecture and migration): every protocol's simulator-free core/ sits on one shared swarm-core, and each runtime (ns-3 today; a Linux daemon and other simulators later) is an adapter of its ports. Three repositories were renamed that day: ns3-swarm-core is now swarm-adapter-ns3, ns3-containers is sim-containers and ns3-tools is sim-tools. A repository marked deferred is planned for later, not scheduled (ROADMAP decision 23): it starts when the maintainer re-plans it. Since 2026-11-24 the deferred repositories may set up and build a tested skeleton; releases still wait for the maintainer. The layers, hosts, version flow and licence boundary on one page: docs/architecture.md.

Every badge below is live: the latest release, each repository's SonarQube Cloud quality gate and its Codecov line coverage on main (report-only, uploaded by CI from the repository's own code). A dash means not measured: no release yet, no SonarQube Cloud project, or no coverage upload.

1. Core

Repository What it is Release Quality gate Coverage
swarm-core The simulator-free C++23 ports and primitives (swarm::core), the wire helpers, the testbench and the protocol contract tests; no OS or simulator header. Created 2026-11-21, empty: the code is still in swarm-adapter-ns3's core/ and moves here with its history in phase 1 — — —

2. Runtimes and adapters

Repository What it is Release Quality gate Coverage
swarm-adapter-ns3 The ns-3 adapter of swarm-core's ports (was ns3-swarm-core): the swarm-core contrib module every protocol links against, with SwarmRoutingBase, the link monitors, the energy hook and the deferred queue, and for now the C++23 primitives in core/ Release Quality Gate codecov
swarm-routingd deferred: the Linux userspace routing daemon that runs the protocol cores over real sockets, rtnetlink routes and a TUN device; CORE/EMANE and Shadow run it unmodified — — —
swarm-adapter-omnet deferred: the OMNeT++/INET adapter of swarm-core's ports, one swarm-adapter-<sim> per in-process C++ simulator (ROADMAP decision 24); no code yet — — —

3. The Protocols

Repository What it is Release Quality gate Coverage
AntHocNet The reference AntHocNet implementation, the colony the org grew out of: a simulator-free core/, the ns-3 adapter, the paper-faithful benchmarks Release Quality Gate codecov
ARA Ant-Colony-Based Routing Algorithm (Güneş, Sorges & Bouazizi, 2002): core/ and ns-3 module in progress (Phase 3) Release Quality Gate codecov
BeeAdHoc Honeybee routing (Wedde & Farooq, 2005), as the PG 460 Linux module specifies it: core/ and ns-3 module in progress (Phase 4) Release Quality Gate codecov
Termite Stigmergic routing in data packets, no control ants (Roth & Wicker, 2003/2005): core/ and ns-3 module in progress (Phase 5) Release Quality Gate codecov
HOPNET Ant routing over zones (Wang, 2007), the one published result benchmarked against AntHocNet: core/ and ns-3 module in progress Release Quality Gate codecov
POSANT deferred: position-based ant colony routing for geographic and 3D networks (UAV swarms, FANETs), on swarm-core's location port; setup and skeleton, protocol logic after its reviewed fidelity sheet — — —
BeeSensor deferred: honeybee-inspired, energy-aware convergecast routing for wireless sensor networks; setup and skeleton, protocol logic after its reviewed fidelity sheet — — —
Q-Swarm deferred: Q-routing with energy-aware updates and Boltzmann next-hop selection, a learned comparator for the swarm protocols; setup and skeleton, protocol logic after its reviewed fidelity sheet — — —

4. Infrastructure and tooling

Repository What it is Release Quality gate Coverage
sim-tools Orchestration and statistics (was ns3-tools): the protocol-agnostic routing-bench comparison harness every arm registers with, the ns3-tool readers and paired statistics, the ns3-campaign driver; other simulators' launch configs and trace normalizers join it as directories Release Quality Gate codecov
sim-containers ghcr.io/swarm-routing/ns3-dev (was ns3-containers): ns-3 pre-built (default, debug, sanitized, optimized) and tested by digest, so a contrib module compiles in seconds Release Quality Gate —
benchmarks Immutable 20-seed datasets of released versions, with their reproducibility manifests and a validator Release Quality Gate —
vcpkg-registry The org's vcpkg git registry: ports of the simulator-free C++ cores (swarm-core first, then each protocol's), installed on x64-linux and wasm32-emscripten in CI — — —
swarm-routing.github.io Colony Arena, the org site: a colony map of every project, a page per protocol, AntHocNet's game, docs and API with its C++ core in WebAssembly; leaderboard planned — Quality Gate —
swarm-web-ui deferred: the web workbench: offline replay of simulation run bundles with paired-delta charts, then a local control plane to launch runs in sim-containers — — —
ns3-upstream-report The bridge to ns-3's GitLab: a mirror ticket per upstream ns-3 bug report, GitLab notes and state mirrored every 6 h, reports and replies sent only after the maintainer approves — — —
.github Org-wide defaults: CONTRIBUTING, labels, issue forms, the reusable CI and release workflows, org-sync templates and the bots that keep every repository current — Quality Gate —

AI

The org's two AI repositories, part of layer 4 (ROADMAP decision 26, ADR-0005): the skills and their Claude Code plugin, and the MCP server the plugin bundles.

Repository What it is Release Quality gate Coverage
skills The org's agent skills: one Claude Code plugin and plain Agent Skills for any agent, each a procedure over a script; the plugin bundles swarm-mcp, and will pin a swarm-mcp release (or commit) once the code has moved — Quality Gate —
swarm-mcp The org's MCP server: a local, read-only stdio server that returns the org scripts' verdicts (fidelity, invariants, release readiness, locks) as tools; versioned and released on its own. Created 2026-11-22, empty: the code is still in skills' tools/swarm-mcp/ — — —

Roadmap: now and later

The maintainer narrowed what is scheduled on 2026-11-22 (ROADMAP decision 23). Every deferred item keeps its epic and its plan; none starts by itself.

  • Now: phase 0 (the renames and settings as code), phase 1 (swarm-core in its own repository, then its first release there), phase 3a (the five released protocols on the extracted swarm-core, with the contract tests), the release train and the ns-3 work, and phase 4 (agent tooling, docs, the paper) where it needs no deferred track.
  • Later (deferred): the Linux daemon swarm-routingd and the vertical slice on it (phase 2); the new protocols POSANT, BeeSensor and Q-Swarm; swarm-web-ui; and the other simulators: CORE/EMANE and Shadow on swarm-routingd, OMNeT++ through swarm-adapter-omnet (decision 24), after ns-3 and Linux parity.
  • Lifted on 2026-11-24 (decision 23 as amended): POSANT, BeeSensor, Q-Swarm, swarm-adapter-omnet, swarm-routingd and swarm-web-ui set up their templates, CI and release workflow and build a tested skeleton. A new protocol writes its logic once its fidelity sheet is reviewed; where the paper is not open, that first version is a v0 built from public sources, its anchor gate open. No release without the maintainer's word.

The whole plan, phase by phase: ROADMAP.md.

Getting Started

Contributors: Pick an issue tagged with good first issue or help wanted in any protocol repository.

Researchers: Visit swarm-routing.github.io for currently available paper-fidelity sheets. The benchmark leaderboard is planned and not yet available.

Hardware Testers: The Raspberry Pi testbed is planned; follow #325. This README does not yet link deployment guides for OpenWrt or Raspberry Pi.

Standard Licensing: simulator-free protocol cores and standalone tooling are MIT OR GPL-2.0-only; ns-3 modules, sites, docs and data are GPL-2.0-only (see LICENSING.md in individual repos).

Open epics: pick something up

The org is set up for people and AI agents to work side by side: every repository has an AGENTS.md (its rules, how to build and verify) and every open sub-issue of an epic carries a priority:* and a model:* label. Choose an epic, take one of its open sub-issues, and follow the repository's AGENTS.md. What is already done, per repository: ROADMAP.md, Epics.

Starting a fresh session, or handing work to an AI chat? Every workstream has a handoff issue written for a reader with no history: the goal, the state, the next steps in order, the commands and the pitfalls. The ROADMAP's Where to start lists them in the order that matters.

Repository Epic Status Sub-issues closed
.github #6 org repo template — security policy, README badges and community files, applied and kept in sync by a tool and a skill In progress 16 / 28
.github #14 Repository hardening for every org repo: Scorecard, rulesets, merge policy, CI hygiene In progress 5 / 18
.github #50 One repository per swarm protocol: create the missing ones (Termite, HOPNET) In progress 2 / 3
.github #107 ns-3 images: every protocol release and campaign builds on sim-containers In progress 6 / 7
.github #141 AI files stay correct: automated review of AGENTS.md and CLAUDE.md in every repo In progress 2 / 17
.github #150 CI time: every job under its budget In progress 1 / 4
.github #156 benchmarks: each protocol repo benchmarks its changes, swarm-routing/benchmarks records every release In progress 10 / 16
.github #370 Container images: official <name>, development <name>-dev, a 2-day retention for development images In progress 4 / 11
.github #436 C++ packages through a vcpkg git registry (swarm-routing/vcpkg-registry) In progress 15 / 18
.github #467 release automation, less duplication, correctness guards (2026-11 improvement round) In progress 11 / 23
.github #531 migrate pipeline tools from Python to Go In progress 2 / 2
.github #672 Swarm-Routing Architecture & Migration Roadmap (Hexagonal Multi-Runtime) In progress 4 / 18
.github #881 every c++ release on vcpkg, with class docs and install guides per simulator; set up the new repositories In progress 7 / 9
.github #970 List the org in external indexes (MCP, plugin, ns-3, research archives) In progress 2 / 7
.github #1005 Orchestrator: a reusable session task controller (coordinator + per-repository workers) In progress 6 / 8
.github #35 code quality across the org — order of work and maintainer decisions Planned no sub-issues yet
.github #48 Other simulators: container and tooling repos for OMNeT++/INET and Veins (deferred; ns-3 first) Planned 0 / 2
.github #216 every public repository releases and is archived on zenodo: sim-containers, benchmarks, skills, the site and .github too Planned 0 / 5
.github #252 A swarm protocol of our own, designed from what the five implementations measured Planned 0 / 4
.github #272 Routing security: one threat model, shared adversaries, default-off defences per protocol, secure comparators Planned 0 / 5
.github #322 Standalone discrete-event host: every core run without ns-3, deterministic, on the same scenes Planned 0 / 3
.github #324 Emulation: the daemons on CORE/EMANE, real stacks over emulated radio links Planned 0 / 3
.github #325 Raspberry Pi testbed: the protocols on real boards, run and judged by one command Planned 0 / 1
.github #674 Multi-Simulator & Unified Web UI Plan (sim-tools, swarm-web-ui) Planned 0 / 2
.github #978 JOSS software papers: eligibility, timeline and one paper per research package Planned 0 / 4
AntHocNet #64 Abstract discrete-event testbench in core/tests — trend regression without a simulator In progress 1 / 2
AntHocNet #109 Publish the AntHocNet implementation (reproducibility + cross-simulator paper) In progress 1 / 4
AntHocNet #328 5-star open-source packaging — visibility, supply-chain trust, onboarding, docs site In progress 20 / 25
AntHocNet #1068 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 1
AntHocNet #32 Add an OMNeT++/INET adapter (third simulator target) Planned 0 / 4
AntHocNet #65 CORE/EMANE emulation target — run the real core as a Linux daemon Planned 0 / 3
AntHocNet #194 Make the NS-3 adapter satellite-capable (multi-interface, timescales, non-wifi signals) Planned no sub-issues yet
AntHocNet #302 secured AntHocNet — attribute-gated trust + authenticated ants, default-off and byte-identical to the paper-faithful path Planned 0 / 4
AntHocNet #564 Wider threat model (v3.3.0): wormhole, rushing, Sybil and pheromone poisoning Planned 0 / 4
ARA #3 ARA as a standalone hexagonal protocol (Phase 3) In progress 6 / 6
ARA #173 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
BeeAdHoc #3 BeeAdHoc as a standalone hexagonal protocol (Phase 4) In progress 7 / 7
BeeAdHoc #150 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
BeeSensor #3 Bootstrap BeeSensor protocol on swarm-core (ConvergecastScorer, fidelity, WSN battery-drain benchmarks) In progress 5 / 6
BeeSensor #40 core/: BeeSensor's simulator-free C++ core on swarm-core (package beesensor-core) In progress 2 / 3
benchmarks #145 Unified telemetry schema, cross-runtime parity runs, and UAV/WSN scenario profiles Planned no sub-issues yet
HOPNET #3 HOPNET as a standalone hexagonal protocol (scheduled after Termite) In progress 2 / 3
HOPNET #149 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
ns3-upstream-report #2 zero-manual upstream reporting: draft, verify, publish, track, reply, maintain, release Planned 0 / 1
POSANT #3 Bootstrap POSANT protocol on swarm-core (DirectionalZoning 2D/3D, fidelity, 3D UAV benchmarks) Planned 0 / 2
POSANT #37 core/: POSANT's simulator-agnostic protocol on swarm-core, from the reviewed fidelity sheet Planned 0 / 2
Q-Swarm #38 core/: Q-Swarm's simulator-free core, written from the reviewed fidelity sheet In progress 2 / 2
Q-Swarm #3 Bootstrap Q-Swarm protocol on swarm-core (QEnergyUpdater, fidelity, contract tests) Planned 0 / 2
sim-containers #19 OS and compiler coverage — the platforms ns-3 supports and researchers use In progress 2 / 6
sim-containers #36 image test pipeline — every image built is tested by digest (security, structure, unit, profile, integration, regression, downstream) before any tag moves In progress 5 / 9
sim-containers #172 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 1
sim-containers #11 multi-platform ns3-dev images (linux/amd64 + linux/arm64) with docker buildx Planned 0 / 1
sim-containers #12 developer documentation for the ns3-dev images (usage, per-image pages, debugging, CI/CD) kept current by AI review Planned 0 / 7
sim-containers #27 security refresh — keep the supported ns-3 release's images patched (scheduled base refresh + scan-triggered rebuilds; older releases on demand) Planned 0 / 4
sim-containers #210 Post-rename stabilization, path-filtered layout (ns3/ + emane/), and canary trim Planned 0 / 3
sim-tools #2 A protocol-agnostic comparison harness, packaged on its own In progress 6 / 11
sim-tools #7 metrics 2026 — age of information, delay percentile/CDF export, energy-per-bit, route lifetime/convergence as CSV metrics In progress 1 / 1
sim-tools #224 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
sim-tools #227 per-protocol resource metrics: state footprint, energy, overhead and simulator cost, without disturbing results In progress 1 / 10
sim-tools #277 Agnostic orchestration split (sim-tools) & Scenario IR / probes.v1.jsonl adapter alignment In progress 1 / 1
sim-tools #375 sim-tools layout and packages: every file classified by simulator and kind, one package per shipped group In progress 3 / 8
sim-tools #15 Comparators: swarm, learned and secure protocols under identical conditions Planned 0 / 13
sim-tools #34 promote AntHocNet's vendored comparator modules into ns3/arms/: aomdv, gpsr, qrouting, oracle Planned 0 / 2
sim-tools #43 Network substrates: the ns-3 pieces new network types need, for every arm Planned 0 / 11
sim-tools #279 Standardized Input & Output Contracts (Scenario IR & Probe Stream) Planned no sub-issues yet
skills #9 Protocol-development and org-ops skills: fidelity sheets, invariant review, module scaffolds, anchors, handoffs In progress 3 / 13
swarm-adapter-ns3 #177 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
swarm-adapter-ns3 #228 Post-rename stabilization & v2.0.0 migration to swarm-core PUBLIC dependency In progress 2 / 5
swarm-adapter-omnet #2 OMNeT++/INET adapter of swarm-core's ports (deferred: decisions 23, 24) Planned 0 / 7
swarm-core #3 Extract swarm-core (C++23 ports, the daemon's 4-byte wire envelope, ProtocolContractTest) & release v1.0.0 In progress 9 / 12
swarm-core #62 swarm-core 3.0.0: the host contract, so a protocol core runs on any host Planned 0 / 5
swarm-routing.github.io #3 Colony Arena: the one org site, built from the protocol repos In progress 6 / 7
swarm-routing.github.io #27 Colony Arena polish: navigation, SEO, usability, search In progress 2 / 10
swarm-routing.github.io #92 Colony Arena for researchers: a game that is good to play and leads to evidence In progress 3 / 19
swarm-routing.github.io #120 release sync: every org release reaches the site, by a bot PR when it is mechanical and by a ticket an agent works with a skill when it is not In progress 4 / 5
swarm-routing.github.io #165 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
swarm-routing.github.io #21 Campaign mode: one chapter per network type, with a game UI Planned 0 / 2
swarm-routingd #3 Bootstrap swarm-routingd Linux daemon (epoll reactor, RtNetlinkSync, TUN, swarm-core ports) In progress 2 / 9
swarm-web-ui #1 swarm-web-ui MVP — Offline Replay & Benchmark Explorer In progress 2 / 10
swarm-web-ui #2 Local & Remote Execution Control Plane (swarm-web-ui/daemon) Planned 0 / 8
Termite #3 Termite as a standalone hexagonal protocol (Phase 5) In progress 1 / 4
Termite #141 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2
vcpkg-registry #10 developer experience: a newcomer can build, test and contribute from the docs alone In progress 1 / 2

Every implemented protocol is deterministic for a fixed seed and compared by paired per-seed deltas over ≥ 20 seeds. Licensing follows AntHocNet: each simulator-free core/ and the standalone tooling are MIT OR GPL-2.0-only; ns-3 modules, sites, docs and data are GPL-2.0-only. Plan: ROADMAP.md. Conventions: CONTRIBUTING.md.

Contribution & CI/CD Lifecycle

Every commit and Pull Request in this organization runs through a rigorous, automated gauntlet of AI review and security analysis before it merges into our protocol cores.

flowchart TD
    %% Define styles
    classDef ai fill:#6b21a8,stroke:#d8b4fe,stroke-width:2px,color:#fff
    classDef quality fill:#0f766e,stroke:#5eead4,stroke-width:2px,color:#fff
    classDef sec fill:#b91c1c,stroke:#fca5a5,stroke-width:2px,color:#fff

    Start([Pull Request Created]) --> CI[GitHub Actions Pipeline]

    subgraph AI Co-Maintainers
        Start -.-> |Triggers| CR[CodeRabbit AI]:::ai
        CR -.-> |Automated Code Review<br/>& Issue Triage| PR_Comments
    end

    subgraph Quality & Performance Gates
        CI --> Build[ns-3 Build & Test]
        Build --> Cov[Codecov]:::quality
        Build --> SQ[SonarQube Cloud]:::quality
        Cov -.-> |Fails if coverage drops| Status1([Merge Blocked])
        SQ -.-> |Tracks Tech Debt & Bugs| Status1
    end

    subgraph Security & Container Scans
        CI --> Sec[Security Audits]
        Sec --> Trivy[Trivy & Hadolint]:::sec
        Sec --> OSSF[OpenSSF Scorecard]:::sec
        Trivy -.-> |Scans ns-3 Containers| Status1
    end
Loading

Thanks

Support the work: sponsor @danieljoppi (it keeps the ns-3 images, CI and benchmark campaigns running), or cite the work: every repository with an archived release has a Zenodo concept DOI (its README's DOI badge; the list is in CONTRIBUTING, Archived releases), AntHocNet's is 10.5281/zenodo.20981979.

Popular repositories Loading

  1. AntHocNet AntHocNet Public

    AntHocNet (Di Caro, Ducatelle & Gambardella), the hybrid ant-colony routing protocol for MANETs, as a paper-faithful reference: a simulator-agnostic C++ core, an ns-3 module, 20-seed benchmarks aga…

    C++ 8 2

  2. sim-containers sim-containers Public

    Pre-built, tested ns-3 images for contrib-module CI: ghcr.io/swarm-routing/ns3-dev with the ns-3 tree configured and built: debug, sanitized, default and optimized profiles on Ubuntu, debug and def…

    Python 1

  3. swarm-adapter-ns3 swarm-adapter-ns3 Public

    swarm-adapter-ns3, the ns-3 adapter of swarm-core's ports: the ns-3 contrib module (still named swarm-core) every swarm-routing protocol links against, SwarmRoutingBase, link monitors, energy hook …

    C++ 1

  4. sim-tools sim-tools Public

    Protocol-agnostic ns-3 comparison tooling. Its ns-3 package (vcpkg port sim-tools-ns3) is the routing-bench module: the harness every protocol arm registers with, the stock aodv, olsr, dsdv and hwm…

    Python 1

  5. benchmarks benchmarks Public

    Immutable, reproducible benchmark datasets for the swarm-routing protocols: 20-seed ns-3 runs, paired statistical verdicts and a manifest per run pinning the image digest, protocol commits, scenari…

    Python 1

  6. ARA ARA Public

    ARA, the Ant-Colony-Based Routing Algorithm (Güneş, Sorges & Bouazizi, 2002), for MANETs: a simulator-agnostic C++ core on swarm-core (FANT/BANT route discovery, evaporating pheromone trails, data …

    C++ 1

Repositories

Showing 10 of 22 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…