Skip to content
solvedbiscuit71Public

About

Infrastructure Aware Named Data Networking for Autonomous Vehicular Communication

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Infrastructure-Aware Named-Data Networking for Autonomous Vehicular Communication

⚠️ Disclaimer: This is a custom, unsupported fork of the ndnSIM 2.x simulator.

Overview

This repository contains the codebase for the paper titled "Infrastructure-Aware Named-Data Networking for Autonomous Vehicular Communication". We have open-sourced this project under the GNU General Public License v2.0 to ensure the reproducibility of our published results and to encourage further academic exploration.

Prerequisites

This project has been tested and verified on the following platforms:

  • Ubuntu 22.04 (amd64)
  • Ubuntu 24.04 (amd64)

1. SUMO Setup

Step 1: Install Dependencies

sudo apt update
sudo apt-get install cmake python3 g++ libxerces-c-dev libfox-1.6-dev libgdal-dev libproj-dev libgl2ps-dev swig

Step 2: Clone and Build SUMO

cd $HOME
git clone --recursive https://github.com/eclipse/sumo
export SUMO_HOME="$HOME/sumo"
mkdir -p sumo/build_config/cmake-build
cd sumo/build_config/cmake-build
cmake ../..
make -j$(nproc)

Step 3: Configure Environment

Add the following to your ~/.bashrc:

export SUMO_HOME="$HOME/sumo"
export TRACE_EXPORTER="$SUMO_HOME/tools/traceExporter.py"
export PATH=$PATH:"$SUMO_HOME/bin"

Apply the changes:

source ~/.bashrc

2. Setup

Step 1: Install Dependencies

sudo apt install build-essential libsqlite3-dev libboost-all-dev libssl-dev git python3-setuptools castxml

Step 2: Clone and Build

git clone https://github.com/solvedbiscuit71/CAFE.git
cd CAFE
CXXFLAGS="-std=c++17" ./waf configure --disable-python --disable-examples
./waf

3. NetAnim Setup (Optional)

Step 1: Install Dependencies

sudo apt install -y mercurial qtcreator qtbase5-dev qtchooser qt5-qmake cmake qtbase5-dev-tools

Step 2: Build NetAnim

cd netanim
make clean
qmake NetAnim.pro
make

Generate results

To generate the table 4 presented in the paper, we have provided the logs and traces files in the data folder, run the following commands:

Step 1: Install Dependencies

python3 -m venv .venv
source .venv/bin/active
pip install scipy

Step 2: Run Script

cd data
python generate_table4.py

Simulate results

To run the default continuous density/availability sweep (72 combinations, 360 simulation runs):

python scripts/scene.py

The runner reads cases from scripts/scene.json by default or --config <path>. Each case sets the total per-second vehicle probability and the RSU availability fraction kept active (1 = all, 0 = none, 0.8 = 20% disabled):

python scripts/scene.py --config scripts/scene.json

Each simulation writes log/g-{geocast}-p-{probability}-a-{availability}-run-{run}.log; g-1 identifies geocast and g-0 identifies broadcast. Select the forwarding mode for the entire sweep with --forwarding=geocast (default) or --forwarding=broadcast; both modes keep Hello enabled. Run the script once per mode to produce separate log sets. scripts/get_results.py accepts the new filenames and adds the geocast flag as the first CSV column.

The runner creates trace/scene/ and log/ if needed.

The push-vndn mode is the beacon-gated multihop comparator, scored over active vehicles inside each alert's ZoR. See doc/push-vndn.md for its protocol and metric semantics.

Each scripts/scene.py invocation stores its alert CSVs in a trace/scene/<Mon DD HH:MM:SS AM|PM>/ folder. The simulator's SUMO mobility input remains at trace/scene.tcl and is overwritten by each export. Analyze a batch with .venv/bin/python scripts/get_results.py "trace/scene/<folder>"; omitting the folder lists eligible batches and prompts for one. The report is written as results.csv inside the selected batch folder. scripts/scene1.py stores batches in trace/scene1/<Mon DD HH:MM:SS AM|PM>/; analyze one with .venv/bin/python scripts/get_results1.py "trace/scene1/<folder>", or omit the folder to select interactively.

About

Infrastructure Aware Named Data Networking for Autonomous Vehicular Communication

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages