Hello,
Node colors for Energy Model are defined in the following file:
ns-allinone-2.xx/ns-2.xx/trace/cmu-trace.cc
See line number 758 to 769 on the following link:
http://www-rp.lip6.fr/ns-doc/ns226-doc/html/cmu-trace_8cc-source.htm
Hope it helps.
Regards,Mohit P. Tahiliani
Hello,
Go in dialog.c and search for "getline" function.
Replace it by "getmyline" everywhere!
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello,
I have uploaded AWK Script to calculate Normalized Routing Load on the
following link:
http://mohittahiliani.blogspot.com/2011/08/awk-scripts-for-normalized-routing.html
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello,
The following link describes how to interpret the trace file:
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats#New_Wireless_Trace_Formats
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello,
You can modify the default settings of colors used in Energy Model in
cmu-trace.cc file available in the following directory:
ns-allinone-2.xx/ns-2.xx/trace
For example see line number 00742 to 00769 on the following link:
http://www-rp.lip6.fr/ns-doc/ns226-doc/html/cmu-trace_8cc-sourc
Hello,
You need to give
./setdest instead of just "setdest"
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello Everyone,
I have designed patches for Nonlinear RED (NLRED) and Refined Adaptive RED
(Re-ARED or RARED) using ns-2.34.
References for NLRED and Re-ARED (or RARED):
(1) "Nonlinear RED: A simple yet efficient active queue management scheme",
Kaiyu Zhou, Kwan L. Yeung, Victor O. K. Li, E
Hello Everyone,
The links which I have provided in my previous post may not work because there
is an extra space at the end of each one. Please remove that space and try
again or else you can use the links provided in this post.
Hereby I am providing the links again for ease:
http://mohittahil
Dear ns-2 users,
Patch for Blackhole attack in ns-2 has been designed and made available on the
following link:
Note that presently this patch works only with ns-2.35!
Kindly let me know if there are any bugs.
Mohit P. Tahiliani: Blackhole Attack in ns-2
Hope it helps.
Regards,
Mohit P.
Sorry, the link went missing somehow in the previous mail !!!
Dear ns-2 users,
Patch for Blackhole attack in ns-2 has been designed and made available on the
following link:
Note that presently this patch works only with ns-2.35!
Kindly let me know if there are any bugs.
http://mohittahilian
Sorry, the link went missing somehow in the previous mail !!!
Dear ns-2 users,
Patch for Blackhole attack in ns-2 has been designed and made available on the
following link:
Note that presently this patch works only with ns-2.35!
Kindly let me know if there are any bugs.
http://mohittahilian
Dear Basant,
I am not very sure of the error you have mentioned.
However, you may be interested to look into the Blackhole patch given on the
following link:
http://mohittahiliani.blogspot.in/2014/05/blackhole-attack-in-ns-2.html
Hope it helps.
Best Regards,
Mohit P. Tahiliani
On Thursda
Hello all,
In NS-2 we can measure residual Energy easily by looking at the trace file. But
how can we measure the total power consumption
of a node at a particular point in time. (e.g.: between 1sec and 5sec
i.e. within an interval of 5-1=4 sec what is the power consumption of a
node)
Is there
Hello Everyone,
Can we dynamically assign the destination co-ordinates for a mobile node by
using C++ code?
Thank you
Sincerely,
Mohit P. Tahiliani
Hello Everyone,
When we manually set the destination of the mobile node by using "setdest" in
TCL, which function is called in C++??
Is it MobileNode::set_destination(double x, double y, double s) in
MobileNode.cc ??
Thank you,
Sincerely,
Mohit P. Tahiliani
Hello Everyone,
Is there a variable in C++ that keeps track of total packets sent and total
packets dropped in the network?
We can calculate through trace file but i want to calculate on the run-time.
Thank you,
Sincerely,
Mohit P. Tahiliani
Hello Everyone,
I am able to calculate the number of drop packets due to queue being full
through C++ code. Everything is working fine except that I cannot determine
that the number of drop packets are related to which Link (or queue).
I have seven links (hence seven queues) and the number o
Hello Everyone,
I am able to calculate the number of drop packets through C++ code. Everything
is working fine except that I cannot determine that the number of drop packets
are related to which Link.
I have seven links and the number of drop packets on every link is different. I
am getting
Hello Tom,
Here are some of the AWK scripts required for post processing. An AWK script to
calculate average jitter is also available here.
http://mohit.ueuo.com/AWK_Scripts.html or on this link
http://www.mohittahiliani.741.com/AWK_Scripts.html
Hope it helps.
Regards,Mohit P. Tahiliani
--- On
Hello Everyone,
I have installed the ns2mesh network patch from the list of Contributed code
and executed the sample tcl script given.
It gives an output file named "out" which is not in human readable format.
The authors mention in "README" file that we have to use "recover" function of
ns2meas
Hello Everyone,
I was able to interpret the output file generated by mesh.tcl with the help of
this link
http://cng1.iet.unipi.it/wiki/index.php/Ns2mesh80216_FAQ
Thanks and Regards,Mohit P. Tahiliani
--- On Mon, 2/8/10, Mohit Tahiliani wrote:
From: Mohit Tahiliani
Subject: Few AWK scripts are available here
To: ns-users@ISI.EDU
Date: Monday, February 8, 2010, 10:00 AM
Hello Maimoon,
You can find AWK scripts on the following link:
http://mohittahiliani.blogspot.com/2009/12/awk-script
Hello,
You can find some useful material regarding ANT implementations and other
genetic routing algorithms on these links:
http://www.lavina.scibrary.com/antnet/
http://www.idsia.ch/~gianni/antnet.html
http://antnet.wordpress.com/
http://www.springerlink.com/content/n6511860l57852n8/
http://comj
Hello,
MobiWan patch for ns2.33 has been designed.
Please refer the following the link for more details:
http://www.nicta.com.au/people/mehanio/nsmisc
or click on this link to download the patch directly:
http://www.nicta.com.au/people/mehanio/nsmisc/ns-233-mobiwan-1.patch
The patch is also develo
Hello,
You can find the details of AODV implementation from the tutorial prepared by
Mubashir Rehmani on this link:
http://www-npa.lip6.fr/~rehmani/aodv_v2.pdf
Hope it helps.
Regards,Mohit P. Tahiliani
Hello,
You can use the following tutorial prepared by Mubashir Rehmani for AODV
implementation details:
http://www-npa.lip6.fr/~rehmani/aodv_v2.pdf
Hope it helps.
Regards,Mohit P. Tahiliani
Hello,
Due to newer versions of gcc, ns2.26 with nrlsensorsim cannot be installed
directly.
Hence i have designed few patches that help to install ns2.26 with
nrlsensorsim on fedora 8 (and possibly with other linux distributions
having similar gcc version).
The patches and the installati
Hello,
In my previous blog post, AWK Script for average end-to-end delay was not
available.
Also the AWK script for throughput was not working on some trace files as
mailed by few of the users.
Hence I have posted yet another AWK Script for throughput which can be used for
Old Wireless trace f
Hello,
To simulate WSN in NS-2 either you can use Mannasim patch with ns2.29 or you
can use NRL Sensorsim patch with ns2.26 or ns2.27.
Following are some of the useful links:
NRL Sensorsim
details: http://mohittahiliani.blogspot.com/2010/02/installing-ns226-with-nrlsensorsim-on.html
Mannasim pat
Hello,
I have uploaded AWK Script for throughput that supports new trace format on the
following link:
http://mohittahiliani.blogspot.com/2010/03/awk-script-for-ns2-supporting-new-trace.html
AWK Scripts for average end-to-end delay, packet delivery fraction, etc that
support new trace format wil
Hello,
A patch for multi-channel multi-interface support has been designed depending
on the document named "Adding Multiple Interface Support in NS-2" by Ramon
Aguero Calvo and Jesus Perez Campo, University of Cantabria.
The patch can be found on the following link:
http://mohittahiliani.blogspo
Hello,
Example tcl scripts along with awk scripts for "Adding Multiple Interface
Support in NS-2" patch are available on the following link:
http://mohittahiliani.blogspot.com/2010/04/revised-adding-multiple-interface.html
Also the previous patch has been modified so as to work correctly.
Hope it
Hello,
DCCP patches for various versions of ns-2 such as ns-2.26, ns-2.28, ns-2.29,
ns-2.31, ns-2.33, ns-2.34, ns-2.35 and the dccp patch compatible with MobiWAN
are available on the following link:
http://mohittahiliani.blogspot.com/2010/05/dccp-patches-for-ns-2.html
More details about the auth
Hello,
The document named "Adding multiple interface support in NS-2" prepared by
Ramon Aguero Calvo and Jesus Perez Campo helps to incorporate multiple channel
support to the core of the ns-2 simulator.
There are few modifications required in the routing protocols such as DSDV,
AODV and DSR to
Hello,
You can find the details of plotting graphs using Xgraph on the following link:
http://mohittahiliani.blogspot.com/2010/08/xgraph-and-awk-scripts-in-ns-2_06.html
Hope it helps.
Regards,Mohit P. Tahiliani
Hello,
The patch for Adding Multiple Support in NS-2 (for ns-2.33) is available on the
following link:
http://mohittahiliani.blogspot.com/2010/04/revised-adding-multiple-interface.html
Also note that AODV routing protocol has also been modified in the same patch
as per the guidelines given in th
Hello,
A Tutorial on implementation of AODV in NS-2 by Mubashir Hussain Rehmani is
available on the following link:
http://www-npa.lip6.fr/~rehmani/aodv_v2.pdf
See section 5.3.2 "Functions for Routing Table Management"
Hope it helps.
Regards,Mohit P. Tahiliani
Hello,
Please check the following link to know how to set colors for nodes:
http://enggedu.com/source_code/ns2/ns2/wireless/Tcl_script_to_create_dynamic_wirless_nodes_set_initial_postion_and_set_color_of_node_with_AODV.php
Hope it helps.
Regards,
Mohit P. Tahiliani
Dear Mike,
Some AWK scripts are available on the following link:
http://www.reti.polito.it/fiore/trace2stats_v05b.tgz
and other on:
http://www.megaupload.com/?f=0211SAG1
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello Sachin,
Following link may be of some help:
http://www.internetworkflow. com/resources/ns2leach.pdf
Hope it helps.
Regards,
Mohit P. Tahiliani
Dear Aquila,
Following are the parameters you need to set to simulate Original RED (1993
paper by S. Floyd and Van Jacobson):
Queue/RED set thresh_ 5
Queue/RED set maxthresh_ 15
Queue/RED set q_weight_ 0.001
Queue/RED set bytes_ false
Queue/RED set queue_in_bytes_ false
Queue/RED set gentle_ fa
Hello,
Please see the link below. It explains how to obtain a node position as well as
energy.
http://elmurod.net/?p=348
Hope it helps.
Regards,
Mohit P. Tahiliani
Hello,
Go in the following directory
ns-allinone-2.29/ns-2.29/sctp and open the file named "sctp.h".
Go to line number 705 in that file and delete "SctpAgent::" from that line.
Via terminal go to ns-allinone-2.29/ns-2.29 and give the following commands:
./configure
make clean
make
make ins
Hello,
Instead of using
Queue/DropTail/PriQueue as ifq type
use the following while simulating DSR
CMUPriQueue
Hope it helps.
Regards,
Mohit P. Tahiliani
44 matches
Mail list logo