23 November 2016

Internet of Things and 6LoWPAN

This post tells you about the concepts behind
  1. Internet of Things
  2. Why we need IoT
  3. What Demands IoT
  4. What are the features of 6LoWPAN
  5. 6LoWPAN characteristics 
  6. Impact of 6LoWPAN
  7. Open Network for IoT
  8. 6LoWPAN supporting Operating Systems
  9. Contiki OS, RIOT OS and Tiny OS 
  10. Comparison of various OS for IoT
  11. A simple demo of CoAP Protocol 

Please see this video 
2016-11-23 15.00 Internet of Things and 6LoWPAN from Techgig on Vimeo.

See the Video on Constrained Application Protocol (CoAP) using Contiki OS

T S Pradeep Kumar

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


After enabling the openflow give this command 

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

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 

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

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