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:

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/
#3  0x00007ffff5b2ee4d in ns3::BriteTopologyHelper::GetLeafNodeForAs (this=0x7fffffffd740, asNum=0, leafNum=4294967295)
    at ../src/brite/helper/
#4  0x000000000040e11e in main (argc=1, argv=0x7fffffffe048) at ../scratch/

The 98th line in 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:

tar xvf BRITE.tar.gz

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


Popular posts from this blog

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

from: can't read /var/mail/ in Python scripts

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04