GitXplorerGitXplorer
C

amust-scenario

public
0 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
0dba6981f4deccdd8f86b7fdd57d50a4e7424d85

some new stuff for ndnSIM 2.1

committed 9 years ago
Unverified
2b5b6f55f04982273e62127082a19459ec68ff43

build: Adjust and test scenario template for ndnSIM 2.1 and minor fixes

sspirosmastorakis committed 9 years ago
Unverified
ee274bf278816a33a3a8e4621b6e0a544943c059

Correct scenario template for ndnSIM 2.0

ccawka committed 10 years ago
Unverified
789ae87cf2c8c72c755b473c05a06d682e3918f4

Adding most of the NS-3 modules to wscrip, making it semi-universal

ccawka committed 11 years ago
Unverified
79063c9e9d702642d1d189d58f0146baf21709e0

A couple of tricks to ensure results/ and graphs/pdfs directories are created when the repo is cloned

ccawka committed 12 years ago
Unverified
bd262352d893043574e28800a03bd0a909b5ae8d

README update

ccawka committed 12 years ago

README

The README file for this repository.

Prerequisites

Custom version of NS-3 and specified version of ndnSIM needs to be installed.

The code should also work with the latest version of ndnSIM, but it is not guaranteed.

mkdir ns-dev
cd ns-dev

git clone git://github.com/cawka/ns-3-dev-ndnSIM.git ns-3
git clone git://github.com/cawka/pybindgen.git pybindgen
git clone git://github.com/NDN-Routing/ndnSIM.git ns-3/src/ndnSIM

git clone git://github.com/cawka/ndnSIM-scenario-template.git my-simulations

cd ns-3
./waf configure -d optimized
./waf
sudo ./waf install

cd ../my-simulations

After which you can proceed to compile and run the code

For more information how to install NS-3 and ndnSIM, please refer to http://ndnsim.net website.

Compiling

To configure in optimized mode without logging (default):

./waf configure

To configure in optimized mode with scenario logging enabled (logging in NS-3 and ndnSIM modules will still be disabled, but you can see output from NS_LOG* calls from your scenarios and extensions):

./waf configure --logging

To configure in debug mode with all logging enabled

./waf configure --debug

If you have installed NS-3 in a non-standard location, you may need to set up PKG_CONFIG_PATH variable.

Running

Normally, you can run scenarios either directly

./build/<scenario_name>

or using waf

./waf --run <scenario_name>

If NS-3 is installed in a non-standard location, on some platforms (e.g., Linux) you need to specify LD_LIBRARY_PATH variable:

LD_LIBRARY_PATH=/usr/local/lib ./build/<scenario_name>

or

LD_LIBRARY_PATH=/usr/local/lib ./waf --run <scenario_name>

To run scenario using debugger, use the following command:

gdb --args ./build/<scenario_name>

Running with visualizer

There are several tricks to run scenarios in visualizer. Before you can do it, you need to set up environment variables for python to find visualizer module. The easiest way to do it using the following commands:

cd ns-dev/ns-3
./waf shell

After these command, you will have complete environment to run the vizualizer.

The following will run scenario with visualizer:

./waf --run <scenario_name> --vis

or

PKG_LIBRARY_PATH=/usr/local/lib ./waf --run <scenario_name> --vis

If you want to request automatic node placement, set up additional environment variable:

NS_VIS_ASSIGN=1 ./waf --run <scenario_name> --vis

or

PKG_LIBRARY_PATH=/usr/local/lib NS_VIS_ASSIGN=1 ./waf --run <scenario_name> --vis

Available simulations

---------------

Description