Hive · Protocol · swarm-routing/BeeAdHoc
BeeAdHoc
Honeybee foraging as routing: scouts find paths, foragers carry data, the dance floor recruits.
Locked: Phase 4: fidelity open, code waits on swarm-core
What it does
BeeAdHoc (Wedde & Farooq, 2005) maps a hive onto each node. Packers hold outgoing data at the node. When no route is known, scouts are broadcast towards the destination and come back to the source's dance floor with the path they found. Foragers then carry data along those source routes and return with what they measured, such as delay and residual battery.
On the dance floor a forager's *dance* recruits others in proportion to the quality of its route, so good paths attract more traffic without any global table. The energy metric reads residual battery through swarm-core's EnergyMetricHook over ns3::EnergySource.
Where the sources disagree (GECCO 2005, the PG 439 / PG 460 reports, Farooq's thesis), each interpretation is pre-registered in an issue, with its evidence, before code. AntHocNet's BeeAdHoc arm missed its PG 460 anchor on 3 of 5 pause times, so those fidelity questions come first.
Diagrams
opt, loop, alt). Drawn from the paper; the repository's fidelity sheet is the authority once written.core/ includes no simulator header; time, randomness, neighbours and timers arrive through ports, and every adapter only carries out the core's decisions. Dashed: planned.core to GPL-only code. Dashed outlines: planned.Package structure
The repository's layout, its licence per directory (LICENSING.md) and what exists today.
| Path | What | Licence | State |
|---|---|---|---|
core/ | agents (packer, scout, forager), dance floor, metrics + unit tests | MIT OR GPL-2.0-only | planned |
ns3/ | contrib module beeadhoc: header codec, adapter, energy hook use, test suite | GPL-2.0-only | planned |
docs/ | fidelity sheet against GECCO 2005 / PG 439 / PG 460 / Farooq's thesis | GPL-2.0-only | planned |
.github/workflows/ | reusable-ns3-ci with swarm-core as a dependency | GPL-2.0-only | present |
Where it sits in the colony
Quests
- Open: Each interpretation settled (§x) or unresolved in the fidelity sheet (BeeAdHoc#4, #5)
- Open: Module green in CI
- Open: PG 460 anchor re-recorded
Sources
- H. F. Wedde, M. Farooq et al., BeeAdHoc: an energy efficient routing algorithm for mobile ad hoc networks inspired by bee behavior, GECCO 2005.
Facts as of 2026-11-08, from the repository's AGENTS.md and the org ROADMAP.