Skip to content

joakimb/gtg_simulation

Repository files navigation

Guarding the Guards simulation

This repo contains code for simulating the overhead in the system described in our VNC2018 paper "Guarding the Guards: Accountable Authorities in VANETs ".

The simulation implements the key dissemination protocol described in the paper. It is written in C++ and runs inside the Omnet++ simulator, using Veins to connect to SUMO.

For convinience and reproducibility, the environment is provided as a Dockerfile

Prerequisites for running

docker

How To

Build execution environment (builds a docker image)

cd {project-dir}
docker build -t omsim .

Run execution environment (runs the image and launches omnet within it)

Command line (launches simulation)

docker run --env RUN_MODE=cmd -v "${PWD}"/code:/workspace omsim

GUI (launches omnet GUI)

Linux

xhost +local:docker
cd {project-dir}
docker run --net=host --cap-add SYS_ADMIN --env DISPLAY=$DISPLAY --volume="$HOME/.Xauthority:/root/.Xauthority:rw" -v "${PWD}"/code:/workspace --detach --memory-swappiness=0 omsim

When omnet opens, and you are prompted to select a workspace, select:

/workspace

Then choose to not import/install inet and examples. After that:

File -> Import
Select: General > Existing projects into workspace
Type in /workspace in "Select root directory"
Finish

Then:

Project -> clean
select "clean all projects"
clean

Then run project by right-clicking dissemination -> simulations -> omnetpp.ini and selecting Run As -> Omnet++ simulation

OSX

Install xquarts, then:

ip={your-ip}
docker build -t omsim .
/opt/X11/bin/xhost + $ip
docker run --net=host --cap-add SYS_ADMIN --env DISPLAY=$ip:0 --volume="/tmp/.X11-unix:/root/.Xauthority:rw" -v "${PWD}"/code:/workspace --detach omsim

Windows

Configure an X server as described in: https://somatorio.org/en/post/running-gui-apps-with-docker/

Then do as described for linux.

Install guides

If you don't want to use the supplied docker container and instead run the code native, use the following install guides:

https://omnetpp.org/doc/omnetpp/InstallGuide.pdf

https://veins.car2x.org/tutorial/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published