This repository contains the complete simulation code and experimental data supporting the paper "SMA-WSN: A Failure-Aware Slime-Mould-Inspired Clustering Protocol for Reliable Data Delivery in Agricultural Wireless Sensor Networks".
Files included:
sma-wsn-ns3.cc — Full NS-3.47 simulation source code implementing SMA-WSN and 11 baseline protocols (LEACH, LEACH-C, ACO-LEACH, PSO-LEACH, GWO-LEACH, HEED, TEEN, QICS, HPO-WSN, WHO-C, FGO-QL) across 6 Algerian agricultural topologies with random node failure injection.
run_campaign_5000rounds.sh — Bash script to reproduce the full simulation campaign (18 000 runs: 12 protocols × 6 topologies × 5 failure rates × 50 seeds).
campaign_results_5000rounds.csv — Raw simulation output used to generate all tables and figures in the paper.
To reproduce: Build NS-3.47, copy sma-wsn-ns3.cc to the scratch/ directory, then run bash run_campaign_5000rounds.sh.