Skip to main content

Posts

WSN Flooding Routing Protocol (WFRP) in Network Simulator (NS-2.35)

Installation of WFRP (WSN flooding routing protocol) as given in the site http://elmurod.net/en/index.php/archives/157 . This post will help you to install the wfrp protocol in the Network Simulator 2.35 (ns-2.35) and you can run this without any bug or error Here are the files to be corrected and downloaded: Download this Zip file and uncompress it and copy it to the relevant folders as given below (Instead of manual changes, you can copy the files and recompile) – Please take a backup of your NS-2.35 folder as these changes may affect your existing recompiled sources. Copy these three files (wfrp.cc, wfrp.h, wfrp_packet.h)   in the folder called ~ns-2.35/wfrp ~ns-2.35/Makefile.in ~ns-2.35/queue/priqueue.cc ~ns-2.35/common/packet.h ~ns-2.35/trace/cmu-trace.h ~ns-2.35/trace/cmu-trace.cc ~ns-2.35/tcl/lib/ns-packet.tcl ~ns-2.35/tcl/lib/ns-lib.tcl ~ns-2.35/tcl/lib/ns-agent.tcl ~ns-2.35/tcl/lib/ns-mobilenode.tcl Here are the following changes (changes gives in ...

Mannasim–A sensor Network Simulator for NS2 (ns-2.35)

Mannasim is a third party tool for simulating the Wireless sensor networks with carbon monoxide sensor and some other sensors etc. It was developed for ns2.29 version and based on the internet users the mannasim was been installed on ns-2.34 also. There are patches available to download for versions 2.29 and ns-2.34. But over these two years since the launch on ns-2.35, there are so many queries whether these tools are ready for ns-2.35, here is the answer for that. The source code and other information has been taken from these sites. http://www.mannasim.dcc.ufmg.br/ Installation of Mannasim in ns-2.35 For mannasim to be installed, here are the following files need to be modified. Click the link to download the Mannasim.tar.gz file for ns-2.35 https://drive.google.com/drive/folders/0B4nUSbTYSK4TRWJfanYxWEFCcXM?usp=sharing  The tar file contains a folder mannasim Paste the entire folder inside the ~ns-2.35/ folder and inside the mannasim / folder (there will be a ns-m...

Print the Congestion Window Graph in NS2

Congestion window size is a major factor in predicting the performance of a TCP Network. NS2 handles the Congestion window like a variable cwnd_ and it can be printed to a graph and as well printed as values at various intervals of time. The following tcl script will let you understand the working of the network (TCP Reno Protocol) and also helps you in plotting the characteristics of Congestion window value. Xgraph is used to plot the congestion window. To install xgraph, one can use the ns-allinone-2.3x package or directly install using yum install xgraph (fedora) and sudo apt-get install xgraph (Ubuntu, Linux Mint and Debian families) Each and every line of the code is explained with comments. Still any doubts, please post your queries in the comment section. When you copy and paste the following lines in your editor, see whether the characters are ASCII or else download here . #create simulator set ns [new Simulator]         #to create nodes set n0 [$...

NS2 Scenario Generator - Lecture 7

If you are tired of writing code using .tcl files, here is a solution for that. This software is a little bit old, as it released sometime during 2007, still some of the students/Researchers are not aware of this software. So, you need not waste your time in editing the tcl files. And since this software is written in java, it works well with almost any Operating System (With JRE installed on the System). Refer this video for more information You can download the software from this link  https://sites.google.com/site/pengjungwu/nsg Some features of this software wired and wireless nodes will be created establish connection between the nodes Creating links (Duplex-Link and Simplex-Link) TCP and UDP agents are supported Creating applications (CBR and FTP) Node movement And still there are lot more as the developer of this software is actively maintaining the software and you can expect lot more in the future also. You can download the software fro...

Top 10 Networking Commands in Linux

There are many network commands linux supports but there are only a few commands that explore the major things in a network. There are 10 such networking commands in Linux to explore the routing, packets, etc. if you want to know about the commands use " man commandname " (without Quotes) Command 1: # ifconfig you may use the options to configure ifconfig -v (for showing the verbose mode) command to configure the given network interface (wlan0, eth0, etc) Command 2 : # ping 172.16.1.10 To send ICMP, Echo request to hosts Here is the output PING 172.16.1.10 (172.16.1.10) 56(84) bytes of data. 64 bytes from 172.16.1.10: icmp_req=1 ttl=128 time=0.735 ms 64 bytes from 172.16.1.10: icmp_req=2 ttl=128 time=0.871 ms --- 172.16.1.10 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.735/0.803/0.871/0.068 ms Command 3:  traceroute domainname or IP Address print the route packets trace to network host ...