Skip to content

NS3 and BRITE integration (NS-3-BRITE) for topology creation

December 18, 2011

BRITE is a tool to generate topology similar to CAIDA topologies. I needed a tool to convert BRITE topologies to NS-3 topology. Found a branch of NS-3 which does exactly that here. However, it is not yet merged to actual ns-3-dev branch, so I had to either download the special branch or somehow patch my current ns-3 download. I decided for the later, and extracted the patch from here. After patching, followed the instruction from here:

  • Downloaded BRITE and built it:
 $: hg clone http://code.nsnam.org/jpelkey3/BRITE
 $: cd BRITE
 $: make
  • Then CDed to my patched NS-3 source, and configured and build it with BRITE support:
$: ./waf configure --with-brite=/path/to/brite/source
$: ./waf
  • Then I copied the BRITE example provided with the patch to the scratch directory and ran it:
 $: ./waf --run 'scratch/brite-generic-example --verbose=1'

All of these instructions are copied from the wiki page of the BRITE integration project, in case the wiki page goes missing. If you want the patch, here it is taken using hg diff from my ./ns-allinone-3.12.1/ns-3.12.1 directory. Sorry for the pdf file instead of normal text diff file. WordPress for some weird reason doesn’t allow uploading txt file as an attachment.

One Comment leave one →
  1. October 23, 2017 3:02 pm

    which path to give in /path/to/brite/source

Leave a comment