Ant nest · Protocol · swarm-routing/AntHocNet
AntHocNet
Ant colony optimisation for mobile ad hoc networks: the colony the org grew out of.
Unlocked: v2.6.1 released, 3 epics in progress, 5 planned Computed from its 40 epics · release v2.6.1, as they stood on .
Play the gameDocsAPI referenceHow it runs: C++ core → WebAssemblyRepository
What it does
AntHocNet (Di Caro, Ducatelle & Gambardella, 2005) routes like a foraging colony. When a data packet finds no route, the source sends reactive forward ants that search towards the destination; each one flips into a backward ant there and walks the path home, laying pheromone that scores each next hop. The backward ant is the only thing that deposits regular pheromone.
While a session runs, proactive ants keep sampling and improving the path, hello beacons keep the neighbour set fresh and diffuse a virtual pheromone, and when a link breaks the node sends repair ants or a LinkFail notification upstream. Data follows the pheromone stochastically, so load spreads over several good paths.
The algorithm is written once, as a simulator-agnostic core/ (C++14) that takes time, randomness, neighbours and timers through ports. The ns-3 module and the browser adapter only convert headers and carry out the core's RouteDecisions; the game here runs that same core/ compiled to WebAssembly, byte-identical to the native trace.
Diagrams
opt, loop, alt). Read from AntHocNet's core/ and its ant-types page.core/ includes no simulator header; time, randomness, neighbours and timers arrive through ports, and every adapter only carries out the core's decisions.core to GPL-only code.Package structure
The repository's layout, its licence per directory (LICENSING.md) and what exists today.
| Path | What | Licence | State |
|---|---|---|---|
core/ | the algorithm: router logic, pheromone engine and table, codec, ports + unit tests | MIT OR GPL-2.0-only | present |
ns3/anthocnet/ | the ns-3 module: model (header, adapter), helper, examples, test suite | GPL-2.0-only | present |
ns3/routing-bench/ | the comparison harness (moving to ns3-tools; switch-over open) | GPL-2.0-only | present |
ns3/baselines/ | vendored comparator arms (AOMDV, GPSR) and the adaptive arms | GPL-2.0-only | present |
web/ | the browser adapter and the game: moved to this site (site/anthocnet/) | GPL-2.0-only | moved |
tools/ | shipped scripts: bench statistics, CI checks, release | MIT OR GPL-2.0-only | present |
docs/ | architecture, ADRs, benchmarks (served at /AntHocNet/docs/) | GPL-2.0-only | present |
results/ | raw benchmark data: harness cells, campaign CSVs | GPL-2.0-only | present |
api/ | Doxygen config (served at /AntHocNet/api/) | 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-13: 117 of 141 sub-issues closed.
- #64 Abstract discrete-event testbench in core/tests — trend regression without a simulator
In progress · 1 / 2 sub-issues closed - #109 Publish the AntHocNet implementation (reproducibility + cross-simulator paper)
In progress · 1 / 4 sub-issues closed - #328 5-star open-source packaging — visibility, supply-chain trust, onboarding, docs site
In progress · 17 / 25 sub-issues closed - #32 Add an OMNeT++/INET adapter (third simulator target)
Planned · 0 / 4 sub-issues closed - #65 CORE/EMANE emulation target — run the real core as a Linux daemon
Planned · 0 / 3 sub-issues closed - #194 Make the NS-3 adapter satellite-capable (multi-interface, timescales, non-wifi signals)
Planned · no sub-issues - #302 secured AntHocNet — attribute-gated trust + authenticated ants, default-off and byte-identical to the paper-faithful path
Planned · no sub-issues - #564 Wider threat model (v3.3.0): wormhole, rushing, Sybil and pheromone poisoning
Planned · 0 / 4 sub-issues closed
Closed: 32 epics
- #634 The Workshop: the API and ns-3 inside the game
Done, closed 2026-11-08 · 7 / 7 sub-issues closed - #562 Campaign mode: one chapter per network type, with a game UI
Dropped, closed 2026-11-08 · 19 / 19 sub-issues closed - #563 Comparators: swarm, learned and secure protocols under identical conditions
Dropped, closed 2026-11-02 · 20 / 20 sub-issues closed - #764 A protocol-agnostic comparison harness, packaged on its own
Dropped, closed 2026-11-01 · 9 / 9 sub-issues closed - #294 metrics 2026 — age of information, delay percentile/CDF export, energy-per-bit, route lifetime/convergence as CSV metrics
Dropped, closed 2026-11-01 · no sub-issues - #603 Infrastructure track: easy ns-3 install, faster CI, clean release packages
Done, closed 2026-10-30 · 17 / 17 sub-issues closed - #298 2026 roadmap — literature gap analysis (MANET × satellite × methodology) and release goals v1.3.0 → v3.0.0
Done, closed 2026-10-30 · no sub-issues - #31 Landscape & project positioning (item 09)
Dropped, closed 2026-10-30 · no sub-issues - #29 Finish trace coverage (item 15 remainder)
Dropped, closed 2026-10-30 · no sub-issues - #28 Finish the comparison harness + validation (items 07, 08)
Dropped, closed 2026-10-30 · 2 / 2 sub-issues closed - #27 Adapter-correctness gaps (item 11 + NS-3 link-failure)
Dropped, closed 2026-10-30 · 1 / 1 sub-issues closed - #26 Remaining protocol-fidelity deviations (items 04, 06, 10)
Dropped, closed 2026-10-30 · 2 / 2 sub-issues closed - #581 Space-air-ground (SAGIN) family: a HAPS/UAV layer on leo-walker
Done, closed 2026-10-26 · no sub-issues - #580 Disaster / emergency-response family (with a tactical narrowband cell)
Done, closed 2026-10-26 · no sub-issues - #142 Pluggable link metrics — make the ILinkMetric seam usable and populate it
Done, closed 2026-10-18 · 4 / 4 sub-issues closed - #626 The whole site is the game (v2.1.0)
Done, closed 2026-10-09 · 6 / 6 sub-issues closed - #542 Learn AntHocNet — an interactive, game-like site that teaches the protocol on every network family, plus the API reference (v2.0.0)
Done, closed 2026-10-08 · 6 / 6 sub-issues closed - #307 Remove NS-2 support — v1.2.0 is the last release that ships it
Done, closed 2026-10-08 · no sub-issues - #297 satellite evaluation credibility — canonical dynamic scenarios, handover metric family, measurement calibration
Done, closed 2026-10-08 · no sub-issues - #233 Satellite build environment — substrate in an image, not a second build
Done, closed 2026-10-08 · no sub-issues - #196 Satellite benchmark harness + the precomputed-shortest-path control
Done, closed 2026-10-08 · no sub-issues - #195 Build our own ns-3 satellite/LEO module (gated on the substrate spike)
Dropped, closed 2026-10-08 · no sub-issues - #193 Satellite simulation substrate — pick the platform (spike set)
Done, closed 2026-10-08 · no sub-issues - #192 Satellite networking — can AntHocNet route a satellite constellation?
Done, closed 2026-10-08 · no sub-issues - #301 VANET support — road-constrained mobility (Manhattan grid, SUMO trace import)
Done, closed 2026-10-07 · 1 / 2 sub-issues closed - #300 FANET support — 3D Gauss-Markov scenarios for the family where AntHocNet's reputation is made
Done, closed 2026-10-02 · 4 / 4 sub-issues closed - #91 First fully paper-compliant version (v1.0): ledger, ordering, and open gaps
Done, closed 2026-09-24 · no sub-issues - #296 baselines 2026 — oracle shortest-path control, multipath + geographic baselines, modern deployed-protocol feasibility
Done, closed 2026-08-15 · no sub-issues - #308 close the delay-tail deficit — #21 is now statistically confirmed, and nothing owns fixing it
Done, closed 2026-08-09 · no sub-issues - #295 scenario realism — mobility beyond RWP, fading channels, modern-PHY arm, TCP traffic, 200+ nodes
Done, closed 2026-08-08 · no sub-issues - #293 statistical credibility — 95% CIs on every published number, paired difference tests, warm-up discipline
Done, closed 2026-08-07 · no sub-issues - #30 Reproducibility & release (item 14 E2/E3)
Done, closed 2026-07-06 · no sub-issues
Cite this project
Using AntHocNet in a paper? Cite the project as below, and the works it rests on from its references.
Text
Joppi, Daniel Henrique (2026). AntHocNet for NS-3 (version 2.6.1) [Computer software]. https://doi.org/10.5281/zenodo.20981979
BibTeX
@software{anthocnet,
author = {Joppi, Daniel Henrique},
title = {AntHocNet for NS-3},
version = {2.6.1},
year = {2026},
doi = {10.5281/zenodo.20981979},
url = {https://github.com/swarm-routing/AntHocNet}
}- Version
- 2.6.1 · released 2026-10-29
- Author
- Daniel Henrique Joppi · ORCID
- Licence
- GPL-2.0-only, MIT
Read from CITATION.cff at 46d63efe1b35 (protocols.lock) when this site was built.
References
The 20 works docs/references.bib lists, read at 46d63efe1b35 (protocols.lock) when this site was built. Each links its DOI; a work with none links its publisher's or institution's page.
Implemented
- 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
- Ducatelle, Adaptive routing in ad hoc wireless multi-hop networks, PhD thesis, Università della Svizzera italiana, 2007. sonar.ch
Restates
- Di Caro, Ducatelle & Gambardella, AntHocNet: an adaptive nature‐inspired algorithm for routing in mobile ad hoc networks, European Transactions on Telecommunications 16(5), 2005, pp. 443–455. DOI 10.1002/ett.1062
Compared against
- Perkins & Royer, Ad-hoc on-demand distance vector routing, Proceedings WMCSA'99. Second IEEE Workshop on Mobile Computing Systems and Applications, 1999, pp. 90–100. DOI 10.1109/mcsa.1999.749281
- Marina & Das, On-demand multipath distance vector routing in ad hoc networks, Proceedings Ninth International Conference on Network Protocols. ICNP 2001, 2001, pp. 14–23. DOI 10.1109/icnp.2001.992756
- Gunes, Sorges & Bouazizi, ARA-the ant-colony based routing algorithm for MANETs, Proceedings. International Conference on Parallel Processing Workshop, 2002, pp. 79–85. DOI 10.1109/icppw.2002.1039715
- Wedde et al., BeeAdHoc: an energy efficient routing algorithm for mobile ad hoc networks inspired by bee behavior, Proceedings of the 7th annual conference on Genetic and evolutionary computation, 2005, pp. 153–160. DOI 10.1145/1068009.1068034
- Perkins & Bhagwat, Highly dynamic Destination-Sequenced Distance-Vector routing (DSDV) for mobile computers, Proceedings of the conference on Communications architectures, protocols and applications - SIGCOMM '94, 1994, pp. 234–244. DOI 10.1145/190314.190336
- Lochert et al., Geographic routing in city scenarios, ACM SIGMOBILE Mobile Computing and Communications Review 9(1), 2005, pp. 69–72. DOI 10.1145/1055959.1055970
- Karp & Kung, GPSR: greedy perimeter stateless routing for wireless networks, Proceedings of the 6th annual international conference on Mobile computing and networking, 2000, pp. 243–254. DOI 10.1145/345910.345953
- Optimized Link State Routing Protocol (OLSR), Technical report, RFC Editor, 2003. DOI 10.17487/rfc3626
- Farooq & Wedde, BeeAdHoc: an efficient, secure and scalable routing framework for mobile adhoc networks, Technical report, Technische Universität Dortmund, 2006. DOI 10.17877/de290r-14312
- Boyan & Littman, Packet Routing in Dynamically Changing Networks: A Reinforcement Learning Approach, Advances in Neural Information Processing Systems, 1993. papers.nips.cc
- Roth, Termite: A Swarm Intelligent Routing Algorithm For Mobile Wireless Ad-Hoc Networks, PhD thesis, Cornell University, 2005. hdl.handle.net
- Roth & Wicker, Termite: ad-hoc networking with stigmergy, GLOBECOM '03. IEEE Global Telecommunications Conference (IEEE Cat. No.03CH37489), 2003, pp. 2937–2941. DOI 10.1109/glocom.2003.1258772
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
- 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
- Joppi, swarm-routing/ns3-tools: v0.1.0, version v0.1.0, Zenodo, 2026. DOI 10.5281/zenodo.24136068
Background
- Schoonderwoerd et al., Ant-Based Load Balancing in Telecommunications Networks, Adaptive Behavior 5(2), 1997, pp. 169–207. DOI 10.1177/105971239700500203
- Di Caro & Dorigo, AntNet: Distributed Stigmergetic Control for Communications Networks, Journal of Artificial Intelligence Research 9, 1998, pp. 317–365. DOI 10.1613/jair.530
Sources
- G. Di Caro, F. Ducatelle, L. M. Gambardella, AntHocNet: an adaptive nature-inspired algorithm for routing in mobile ad hoc networks, European Transactions on Telecommunications 16(5), 2005.
- AntHocNet docs: the ant types
- AntHocNet docs: architecture
The status and the quests come from the repository's issues and releases (2026-11-13); the other
facts on this page are kept by hand from its AGENTS.md (as of 2026-11-08).