v2.7.x swarm-core port: the standard cells before and after the move¶
← Benchmark index · Methodology · ADR-0029 · v2.7.x image control
AntHocNet moved onto swarm-core in slices S0–S11 (#1019,
ADR-0029). Each slice was to
change no arithmetic and no order (maintainer decision Q2, 2026-11-15: aim for
byte identity of every standard cell). The CI ns-3 jobs of every slice printed
the same ##RUN## lines as main before it. They are short runs, so this
campaign is the slow check: one cell per family, 20 seeds, run on main before
S1 and on main after S10d.
Verdict (2026-11-16, after #1083): byte-identical. The CI re-run
(port1019b) of main after
#1083 against the same
base matches it byte for byte, in order, on every line but the collect
header (run ids, source_sha), ##PROV## and ##PERF##, in all eight
families and all 20 seeds, ##COMMON## and ##MATCH## included.
First run (port1019, main after S10d): not byte-identical.
- Four families are identical: static mesh, the ISL grid, LEO and SAGIN.
- Four MANET families differ in their anthocnet rows on some seeds: grid,
FANET, VANET and disaster.
- The stock arms' per-run rows and the oracle's are identical everywhere. Their
##COMMON## rows follow the anthocnet change.
- Cause and fix (#1080,
#1083): S10a's
control sockets sent unicast ants with TTL 1, so an ant relayed through a
gateway was dropped. #1083 sends them at ns-3's default TTL again, which
restores the pre-port rows on every seed that differed (see
Resolution). The port1019 cells are the port as it was at
c919528, before #1083.
Plan and arms¶
- Plan:
tools/bench/campaigns/v2.7.x-swarm-core-port.yaml, generationport1019, dispatched and collected withns3-campaign(swarm-routing/ns3-tools). - Cells: the eight families of the
v2.7.x image control:
grid-rwp-tworay,static-mesh,fanet-main,vanet-sparse,disaster-main,sat-failcell,leo-walker16-anthocnetandsagin-walker16-anthocnet. - Each cell runs its committed command line with seeds 1–20, split into blocks as that control splits them.
- A run depends on its seed alone (#352).
- Image base: both arms were built by
campaign-image.ymlon one base,ghcr.io/swarm-routing/ns3-dev:3.48-optimized@sha256:5585a93c5cea1980592539e2d26a4e111e0ff4b0cc63b3dfd6ea5de459d80d3f. The release is 3.48 while #843 is open, because aodv is an arm. - Harness: both arms run swarm-routing/ns3-tools v1.1.2, so every arm runs
in its own process (
--isolateArms, its default).
| arm | role | commit | image |
|---|---|---|---|
base |
control | da5963d363cc45feb34cf1837778b04f6de1ee0d: main before S1 (8666423) with #1063's ns3-tools v1.1.2 lock cherry-picked, so both arms run the same harness (#1063's own control found that lock change byte-identical); never merged (#1079) |
ghcr.io/swarm-routing/anthocnet-dev@sha256:96c845793080ff2843cfcb4d3393c748721fef0417318e08a5213d8dc46e4af4 (campaign-image run 43813738685) |
port |
test | c91952871d5f8b0da75dfa779178d7b560a71221: main after S10d, on swarm-core v1.0.0 |
ghcr.io/swarm-routing/anthocnet-dev@sha256:0b8d3eced2debfd1b493c950d80eae1071f25a7fd526966ea47c0d6954466fdf (campaign-image run 43813741258) |
S0 (C++23, #1024) is in both arms.
- Read:
python3 tools/bench/harness_control.py tools/bench/campaigns/v2.7.x-swarm-core-port.yaml. It compares each cell's base file with itssource, the port arm's file, on every##RUN##,##ROUTE##and##COMMON##row of every seed. The table below compares every other line too. It leaves out the first line, whichns3-campaign collectwrites with the run ids andsource_sha;##PROV##, which names the commit and image and so differs by construction; and##PERF##, which is timing. "Differing" counts the lines present in one file and not in the other, as a multiset:
python3 -c 'import collections as C,sys
r=lambda p: C.Counter(l for l in open(p) if not l.startswith(("# port1019 ","##PROV##","##PERF##")))
b,p=r(sys.argv[1]),r(sys.argv[2]); print(sum(b.values()), sum(((b-p)+(p-b)).values()))' \
results/cells/fanet-main-port1019.txt results/cells/fanet-main-port1019-port.txt
Result¶
The cells are in results/cells/<cell>-port1019.txt (base) and
results/cells/<cell>-port1019-port.txt (port).
| cell | lines | differing | anthocnet seeds that differ |
mean ΔPDR, port − base (pp) | harness_control.py |
|---|---|---|---|---|---|
| grid-rwp-tworay | 1210 | 112 | 3/20 (5, 16, 20) | −0.03 | FAIL |
| static-mesh | 1032 | 0 | 0 | 0 | PASS (240 rows) |
| fanet-main | 950 | 256 | 9/20 (1, 4, 5, 6, 7, 10, 14, 15, 19) | +0.07 | FAIL |
| vanet-sparse | 1038 | 488 | 16/20 | −0.01 | FAIL |
| disaster-main | 868 | 204 | 7/20 | −0.02 | FAIL |
| sat-failcell | 107 | 0 | 0 | 0 | PASS (40 rows) |
| leo-walker16-anthocnet | 307 | 0 | 0 | 0 | PASS (20 rows) |
| sagin-walker16-anthocnet | 308 | 0 | 0 | 0 | PASS (20 rows) |
- Which lines differ. On a seed that differs, every
anthocnetper-run line differs:##RUN##,##ROUTE##,##AIR##,##GOODPUT##,##HOLD##,##REINJ##,##DROPID##,##MATCH##and##ENERGY##. ##COMMON##. Every protocol's##COMMON##row of that seed differs too. It is computed over the flows every protocol delivered, so it follows theanthocnetchange.- The other arms. Every per-run row of aodv, olsr, dsdv, aomdv, hwmp,
gpsr, gpcr, gpsr3d and oracle is identical. Only their
##COMMON##rows differ, on the seeds whereanthocnetdiffers, as stated above. - Size. Per seed, PDR moves by at most 0.9 pp (FANET seed 6). The mean change per cell is within ±0.07 pp.
What is known so far: - Only the Wi-Fi families with mobility and link breaks differ. The static mesh, which uses Wi-Fi but holds its links, and the point-to-point ISL, LEO and SAGIN cells are identical. - That pointed to a path only link breaks exercise. The bisect on #1080 found it in S10a instead: the TTL of unicast ants.
Resolution¶
- Bisect. FANET seed 6, run with
anthocnetalone, gives thebaserow ataa8eedd(after S9) and theportrow fromfa9776c(S10a) on. S1–S9 change nothing. - First divergence. ns-3 logs of both builds are identical until t = 55.918868736 s. A unicast ant from 10.1.0.13 to next hop 10.1.0.23 is routed through gateway 10.1.0.29 in both. Before S10a the gateway relays it (TTL 64). From S10a on it drops it as TTL-exceeded, because the base's control sockets send with TTL 1.
- Fix. #1083: unicast ants leave by a socket of the adapter at ns-3's default TTL.
- Check. With the fix, all 37 seeds whose
anthocnetlines differed match thebasecell on every per-runanthocnetline:
| family | seeds |
|---|---|
| grid | 3/3 |
| FANET | 9/9 |
| VANET | 18/18 |
| disaster | 7/7 |
##COMMON## and ##MATCH## are left out of that comparison because they
are computed across arms. The families that were already identical stay
so: static mesh seeds 1–2, ISL seeds 1–20 and LEO seeds 1–3.
Plausibility. In both arms, 3 of the 4 static-mesh blocks fail
scenario_check on delay99 1.5 < mean delay. The rows are identical, so the
failure is not a difference between the arms. It is
#1081.
Re-run after the fix (port1019b)¶
1083's own check was local, so the S10 box of #1019 needed the campaign¶
re-run in CI. port1019b is port1019 with only the port arm moved:
- Plan:
tools/bench/campaigns/v2.7.x-swarm-core-port-rerun.yaml, generationport1019b, dispatched and collected withns3-campaign(swarm-routing/ns3-tools v1.1.2). The cells, command lines and seed blocks areport1019's. - Image base: both images are built on
ghcr.io/swarm-routing/ns3-dev:3.48-optimized@sha256:5585a93c5cea1980592539e2d26a4e111e0ff4b0cc63b3dfd6ea5de459d80d3f, the same digest asport1019(still the tag's digest on 2026-11-16). Every##PROV##line of the 16 cells names it. - Harness: swarm-routing/ns3-tools v1.1.2 in both arms (
--isolateArms).
| arm | role | commit | image |
|---|---|---|---|
base |
control | da5963d363cc45feb34cf1837778b04f6de1ee0d, as in port1019; re-run, not reused |
ghcr.io/swarm-routing/anthocnet-dev@sha256:96c845793080ff2843cfcb4d3393c748721fef0417318e08a5213d8dc46e4af4 (port1019's base image) |
port |
test | 228a42310754c6814391d5a7d77a58c38e5838f8: main after #1083 (#1084 and #1086 after it change docs only), on swarm-core v1.0.0 |
ghcr.io/swarm-routing/anthocnet-dev@sha256:a6d9a00fb9a44c6e259acaa75f75514059776d583d92f05c2477b22b84ea7aeb (campaign-image run 43905585290) |
The cells are in results/cells/<cell>-port1019b.txt (base) and
results/cells/<cell>-port1019b-port.txt (port). Compared in order, leaving
out the collect header line, ##PROV## and ##PERF##; every other line counts,
##COMMON## and ##MATCH## included, although they depend on every arm:
f() { grep -v -e '^# port1019b ' -e '^##PROV##' -e '^##PERF##' "$1"; }
diff <(f results/cells/vanet-sparse-port1019b.txt) <(f results/cells/vanet-sparse-port1019b-port.txt)
diff compares the lines in order, so "differing" below counts the lines
diff prints (< or >); 0 means the filtered files are equal byte for
byte, order included.
| cell | lines | differing | anthocnet seeds that differ |
|---|---|---|---|
| grid-rwp-tworay | 1210 | 0 | 0 |
| static-mesh | 1032 | 0 | 0 |
| fanet-main | 950 | 0 | 0 |
| vanet-sparse | 1038 | 0 | 0 |
| disaster-main | 868 | 0 | 0 |
| sat-failcell | 107 | 0 | 0 |
| leo-walker16-anthocnet | 307 | 0 | 0 |
| sagin-walker16-anthocnet | 308 | 0 | 0 |
python3 tools/bench/harness_control.py tools/bench/campaigns/v2.7.x-swarm-core-port-rerun.yaml
prints PASS for all eight cells (##RUN##, ##ROUTE## and ##COMMON##
rows: grid 360, static mesh 240, FANET 300, VANET 298, disaster 240, ISL 40,
LEO 20, SAGIN 20; seeds 1–20 each) and exits 0.
- The
basearm reproduces itself. Eachport1019bbase cell is identical to theport1019base cell on the same lines: the control did not move between the two runs. - Plausibility. As in
port1019, 3 of the 4 static-mesh blocks fail thescenario_checkverdict job in both arms (runs 43907182226, 43907263467, 43907345144 forbase; 43925858030, 43927720413, 43938834674 forport). The rows are identical, so this is #1081, not a difference between the arms.
So the port, S1–S11 with #1083, changes no output of the standard cells.