Skip to main content

Posts

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

Nsnam.com reached 1 million pageviews

Thanks to all readers, students, researchers and others for 1 million pageviews in these 4 years. Though this number is not so huge for 4 years, but the tool in which my website displays attracts readers from across the globe. This blog showcases tools, techniques, source codes, how tos related to ns2, ns3, omnet++, etc. Here are some statistics over these years. Here is the map of our readers Almost the entire world peoples have visited my blog. Top 10 Countries Top 10 Countries Some points about visitors 53% males and 47% females maximum viewers are from the age group 18 to 24 58% new visitors and 42 % returning visitors Top 3 posts http://www.nsnam.com/ 2011/11/ns2-ns-235-installation-in-ubuntu-1110.html http://www.nsnam.com http://www.nsnam.com/ 2013/03/awk-scripts-for-ns2-to-process-data.html Thanks again to all the readers... Keep visiting my blog. T S Pradeep Kumar

RIOT OS (An Operating System for IoT)

Introduction The Internet of Things (IoT) is used with heterogeneous devices. They range from 8 bit to 32 bit microcontrollers from different manufacturers. Traditional Operating system (OS) or the conventional embedded OS may not suit the requirements that these tiny devices demand (low power, small in size and low memory foot print). RIOT Operating system is a free and open source arachtiecture which is friendly to IoT applications and proved to be a perfect OS for IoT Systems. It started in the year 2008 as an Operating system for Wireless Sensor nodes, later the OS is fine tuned for IOT systems. Features of RIOT The OS is actively developed and maintained. There are no new programming environments, C or C++ can be used directly with existing tools like gcc, gdb, etc. Less hardware dependent code Supports 8,16 ad 32 bit microcontroller platforms Energy efficieny is maintained less interrupt latency, so real time capability is ensured multi threading is e...

ns3 modules

Ns3 is a network simulation software, it depends on various in built and third party tools for enablement. Here are some of the third party modules that can be enabled while running ns3. This is a handy note for such modules. All these examples were tried on the ~ns-3.24.1/examples/tutorial/third.cc file 1. NetAnim #include "ns3/netanim-module.h" AnimationInterface anim("third.xml"); anim.SetConstantPosition(csmaNodes.Get(0),1.0,1,0); anim.SetConstantPosition(csmaNodes.Get(1),2.0,2,0); anim.SetConstantPosition(csmaNodes.Get(2),3.0,3,0); anim.SetConstantPosition(csmaNodes.Get(3),4.0,4,0); anim.SetConstantPosition(wifiApNode.Get(0),5.0,5,0); anim.SetConstantPosition(wifiStaNodes.Get(0),6.0,1,0); anim.SetConstantPosition(wifiStaNodes.Get(1),7.0,1,0); anim.SetConstantPosition(wifiStaNodes.Get(2),8.0,1,0); Open NetAnim and open the xml file (third.xml in this case). Always prefer to use the inbuilt netanim rather than an installed version of NetAnim. 2....