Skip to content

NS3 support for P4 programs using bmv2

Notifications You must be signed in to change notification settings

alsadiamir/ns3-bmv2

 
 

Repository files navigation

Installation

  • Install bmv2
  • Install NS3 dependencies listed here
  • Follow the installation steps below:
$ cd
$ mkdir ns3-repos
$ cd ns3-repos
$ hg clone http://code.nsnam.org/ns-3-allinone
$ cd ns-3-allinone
$ ./download.py -n ns-3.29
$ cd ns-3.29/
Optional:
$ ./waf configure --enable-tests --enable-examples
$ ./waf build
  • Clone this repo and install it on top of the NS3 source files:
$ cd ~/ns3-repos/
$ git clone https://github.com/PIFO-TM/ns3-bmv2.git
$ cd ns3-bmv2/
NOTE: This next step is very hacky and should be fixed in the future ...
Update the NS3_SRC_DIR in the install.sh script then run:
$ bash install.sh
$ cd ~/ns3-repos/ns-3-allinone/ns-3.29/
$ ./waf configure --enable-tests --enable-examples
$ ./waf build

About

NS3 support for P4 programs using bmv2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.6%
  • C++ 40.9%
  • P4 6.4%
  • Other 0.1%