17 August 2016

Official Google Blog: Meet Google Duo, a simple 1-to-1 video calling app for everyone

Official Google Blog: Meet Google Duo, a simple 1-to-1 video calling app for everyone

T S Pradeep Kumar

11 August 2016

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=openflow

After you run the above command, you should get the following screen. (See the selected white line). In the first image, it shows not enabled and the second image shows enabled
OpenFlow
OpenFlow

OpenFlow
OpenFlow

After enabling the openflow give this command 

$] ./waf build 
After this command, ensure that openflow is built as shown below
OpenFlow
OpenFlow





T S Pradeep Kumar

29 July 2016

AWK and Trace in ns2

27 June 2016

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, set the SUMO_HOME in the environment, Open /home/pradeepkumar/.profile (for Linux Mint) and /home/pradeepkumar/.bashrc (for Ubuntu) and give this command (in my case the home is pradeepkumar, it might be different for you)
export SUMO_HOME=/home/pradeepkumar/sumo-0.26.0 

Step 2: Steps to create a Traffic

  1. Open browser and type http://www.openstreetmap.org and search a particular area and click export in the top. 
  2. click "Manually select an area" and select the area (as shown in the video below) and click export again (it will download a file called map.osm, rename this file as per your convenience)
  3. Open the terminal and type the commands one by one (assume my file name is guindy.osm, so i maintain the same file name guindy for all the xml files)
$] netconvert --osm-files guindy.osm -o guindy.net.xml

Now, copy the osmPolyconvert.typ.xml from the $SUMO_HOME/data/typemap/ and copy it to the folder where you put all the files. 


$] polyconvert --osm-files guindy.osm --net-file guindy.net.xml --type-file osmPolyconvert.typ.xml -o guindy.poly.xml



$] python $SUMO_HOME/tools/randomTrips.py -n guindy.net.xml -r guindy.rou.xml -e 100 -l

Now, create a new file (to be named as guindy.sumo.cfg) and paste the following lines 

 <configuration>
     <input>
         <net-file value="guindy.net.xml"/>
<route-files value="guindy.rou.xml"/>
         <additional-files value="guindy.poly.xml"/>
     </input>
<time>
<begin value="0"/>
<end value="100"/>
<step-length value="0.1"/>
</time>
 </configuration>

Now you can run the above using sumo-gui guindy.sumo.cfg (now you can see as per the following screenshot)
sumo
SUMO

20 April 2016

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
NetAnim


T S Pradeep Kumar