Posts

Showing posts from January, 2016

ns3 modules

Image
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. Ascii Trace FilesA…

Operating System for IoT

This slides shows the operating system for Internet of things and it also shows the features of OS.


Operating System fo IoT from T S PRADEEP KUMAR T S Pradeep Kumar

Enable All interfaces in Wireshark

Image
If you are running Ubuntu or Linux Mint, the wireshark may not list all the interfaces except bluetooth. There is a small workaround for enabling all the interfaces within wireshark

To install wireshark
$ sudo apt-get install wireshark

Checking for all the interfaces
$] ifconfig -a 
eth0      Link encap:Ethernet  HWaddr b4:b5:2f:90:41:98  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:5528 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5528 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:522095 (522.0 KB)  TX bytes:522095 (522.0 KB…

IOT - CoAP implementation in Contiki OS

Image
Constrained Application Protocol (CoAP) is a lightweight http protocol that reads and controls the sensors deployed for IoT.
It has actions like get, post, put, delete, observe, discover.

This coap can be accessed similar like http, For ex: to access a particular mote (Sensor) with IPv6 like this
coap://[aaaa::212:7402:2:202]
The above line will fetch the sensor boards peripherals and one can control from the browser itself. Firefox has a Cu plugin to enable CoAP within the browser. CoAP is already available for all the devices like IOS, Android, Windows, Linux, Mac, etc,

So here is an example in contiki that shows how to use this coap based application using a border router.


Step 1: Contiki SelectionOpen instant Contiki (Which runs on VMWare or Virtual Box)Open Cooja from the Desktop directly or Open the Terminal and give the following steps

$] cd /home/user/contiki-2.7/tools/cooja
$] ant run 
If you want to simulate huge number of nodes then 
$] ant run_bigmem


Step 2: Selecting Border router…

IOT - Border Router in Contiki OS

Image
This post shows the introduction of Border router in Contiki OS. Border router or edge router is connected to internet when the other sensor nodes are reporting the data via the border router.
Implementation of this router is provided by all IOT operating systems.
Using this border router, how to transmit data to the internet, how neighbours are understood and how the routes are computed.
This example shows the implementation of Border router in Contiki OS

OS Used: Contiki 2.7
Simulator : Pooja

Step 1: Contiki Selection Open Instant Contiki (Which runs on VMWare or Virtual Box)
Open Cooja from the Desktop directly or Open the Terminal and give the following steps

$] cd /home/user/contiki-2.7/tools/cooja
$] ant run 
If you want to simulate huge number of nodes then 
$] ant run_bigmem

Step 2: Selecting Border router File - New Simulation -> Enter Simulation Name (Leave the defaults as it is ) and then Click "Create"

Click Add Motes -> Select Sky Mote

In the Firmware, Select…

NS2 projects with Source Code

Image
Before shedding huge money for projects,  please go through the links which has source code along with how to execute the project.
The following projects are either taken from another website or from a open source hub and all the works are compatible with ns-2.35. It is a individual work done by me (T S Pradeep Kumar). For some projects, i lost the source code or its misplaced, but all these posts have detailed explanation that tells how to install these projects.  Also the source codes are provided from a google drive link.
(If any one have a source code and dont know to compile, please send it to me through my google+ link, I will compile for you and let you know the results).

This posts is suitable for PG students, Research scholars and Graduate students.


Aqua Sim in NS2LEACH Protocol InstallationSecurity Protocol as a packet (Agent/Security_packet)Adding a new agent and application in ns2AntNet (Ant colony Algorithm in ns2)SUMO and MOVE Example traffic Simulation (Do it yourself e…