ns-3 is a discrete-event network simulator.
The following installation instructions have been tested on macOS 10.11.1
Prerequisites
- Xcode Command Line Tools installed (
gcc
andclang
) - Python installed
Installation
- Download desired version of ns-3 from here
- Build it with the following command:
./build.py --enable-examples --enable-tests
cd
to the ns-3 root directory (for example,ns-3.25
)- Validate installation with the following command
./test.py -c core
Hello World
Run the following for a “hello world” simulation:
./waf --run hello-simulator