Skip to main content

Posts

OpenFlow in NS3

Installation of OpenFlow in NS3 is a simple task  and here is the method to do that. NS3 version: ns-3.24.1 and ns-3.25 Assumption: You should have installed #ns3 already in your machine.  #OpenFlow is a software helpful for Simulating Software Defined Networks (#SDN). There are some packages needed to enable OpenFlow. Download these packages and try the installation later. $] sudo apt-get install libboost-all-dev libxml2 libxml2-dev  Go to the ~ns-allinone-3.24.1/ns-3.24.1 folder and give this command  $] hg clone http://code.nsnam.org/openflow (if the above command does not work, the give this command) $] sudo apt-get install mercurial $] cd openflow $] ./waf configure $] ./waf build  (if the build failed in the above steps, please give your comments) $] cd .. $] ./waf configure --enable-examples --enable-tests --with-openflow=path/to/openflow In my case  $] ./waf configure --enable-examples --enable-tests --with-openflow=openf...

SUMO, Open Street Maps and NS2 - A Real Traffic Simulation

SUMO is the Simulation of Urban mobility software that enables to simulate the road traffic. Open Street map ( www.openstreetmap.org )  provides the xml based .osm file for any part of the world selected through their website. #openstreetmap #SUMO can able to convert the osm file to its native xml file. The post tells you the simulation of a real traffic network and how it is ported to #ns2 for network animation and tracing. Step 1: Prerequisites SUMO to be installed - in my case I installed sumo this way  sudo add-apt-repository pap:sumo/stable sudo apt-get update sudo apt-get install sumo sumo-doc sumo-tools Also,  Download the sumo source sumo-src-0.26.tar.gz  from this link and unzip or untar it to the home directory ( /home/pradeepkumar ). There are some python files that are needed to generate random trips and to export xml files to tcl files. the commands sumo, sumo-gui will run only the graphical simulation. Once the software is unzipped,...

NetAnim installation in NS3

NetAnim is a Network Animator that comes preloaded with ns3.  During compilation of ns3, #NetAnim may not compile. There are other alternatives for installation of NetAnim, for more info, see this post http://www.nsnam.com/2014/08/installing-netanim-software-for-ns3-in.html This post will tell you to compile NetAnim that comes along with #ns3. Sometimes the above methods might not work, but the bundled netanim will work sure. Here is the way to do... $] sudo apt-get update $] sudo apt-get install qt4-dev-tools qt4-qmake, qt4-qmake qt4-default $] cd ns-allinone-3.24.1/netanim-3.106/ $] make clean $] make $] qmake NetAnim.pro $] ./NetAnim file.xml  The above commands will help to install NetAnim  See the image given below, NetAnim T S Pradeep Kumar