Creating topologies with BRITE to NS (Network Simulator)

BRITE (Boston University Representative Internet Topology Generator) is a tool to create topologies using Barabasi Albert or Waxman model. You can export the topologies to different formats like BRITE, Otter, SSF, JSim and NS.

You can use the configuration files available on BRITE repositorie for nsnam, but are only a few of them.

You can run the different configurations modifing the confFile variable inside the file or with the following command:

./waf --run 'brite-generic-example --confFile=src/brite/examples/conf_files/TD_ASBarabasi_RTWaxman.conf'

If you try other configuration file you will get this following error:

(gdb) 
Program received signal SIGSEGV, Segmentation fault.
0x0000000000410faf in ns3::PeekPointer<ns3::Node> (p=...) at ./ns3/ptr.h:564
564  return p.m_ptr;

(gdb) where
#0  0x0000000000410faf in ns3::PeekPointer<ns3::Node> (p=...) at ./ns3/ptr.h:564
#1  0x00000000004105e4 in ns3::Ptr<ns3::Node>::Ptr (this=0x7fffffffcfa0, o=...) at ./ns3/ptr.h:739
#2  0x00007fffefc8db05 in ns3::NodeContainer::Get (this=0x6d8280, i=4294967295) at ../src/network/helper/node-container.cc:90
#3  0x00007ffff5b2ee4d in ns3::BriteTopologyHelper::GetLeafNodeForAs (this=0x7fffffffd740, asNum=0, leafNum=4294967295)
    at ../src/brite/helper/brite-topology-helper.cc:273
#4  0x000000000040e11e in main (argc=1, argv=0x7fffffffe048) at ../scratch/brite-generic-example.cc:98

The 98th line in brite-generic-example.cc is the following:

client.Add (bth.GetLeafNodeForAs (0, numLeafNodesInAsZero - 1));

At the moment, I don't know how to solve this problem. Any suggestion?
If you want use BRITE to generate topologies, is better to use BRITE GUI to generate them:

wget http://www.cs.bu.edu/brite/download29az78ffhg50kl9/new/BRITE.tar.gz
tar xvf BRITE.tar.gz
cd BRITE
make
./brite



Now, you can export your topology as ns/tcl format (for ns2).
For more information, you can read BRITE user manual available here

Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility