Re: [ns] Help me

2012-06-14 Thread Manjula Raja

:

 Hello any one!

 Can any one provide me TCL script to run DSR and AODV routing protocls.
 Our students are studying Adhoc wireless Networks as part of their
 curriculum
 I would like to provide them i.e my fellow college the TCL script of these
 two protocols , so that they can have practical ( simulation) idea of these
 two protocols and also brief note on how to analyse the trace files from
 these two protocols



 .

*Also from where can i get TCL script for location aided routing protocol
to implement in NS2*

Eagerly waiting for the reply

 --
 **R.Manjula
 Sr.Lecturer, Dept of ECE
 BITM, Bellary
 Karnataka.
 *




-- 
**R.Manjula
Sr.Lecturer, Dept of ECE
BITM, Bellary
Karnataka.

Current Status:

Research Scholar
Dept of EECE
IIT Kharagpur
Cell:08900479328
**


Re: [ns] Help me

2009-10-12 Thread Sebastian Terence.J

Hi,

Thank you Sir,

In my project, i am  Using  Hello Packets for neighbor discovery.

But i don know how to create Hello Packets for neighbor discovery.

If you have any idea, please share with me. It will usefull to me.


Thank you


With Regards
Sebastian Terence



On 10/9/09, Mubashir Rehmani mshrehm...@gmail.com wrote:

 Hi,

 See these links

 http://www.nabble.com/Finding-Neighbors-of-a-Mobile-Node.-td21019174.html#a21019289

 Regards
 Mubashir Husain Rehmani


 2009/10/9 Sebastian Terence.J jsebi...@gmail.com


 Hi Friends,

 I want to know how to discover neighbor nodes in mobile environment. If
 any
 one know please tell me, it will useful for me.

 Thank you

 -Sebastian Terence




 --
 Mubashir Husain Rehmani





Re: [ns] Help me

2009-10-09 Thread Mubashir Rehmani

Hi,

See these links
http://www.nabble.com/Finding-Neighbors-of-a-Mobile-Node.-td21019174.html#a21019289

Regards
Mubashir Husain Rehmani


2009/10/9 Sebastian Terence.J jsebi...@gmail.com


 Hi Friends,

 I want to know how to discover neighbor nodes in mobile environment. If any
 one know please tell me, it will useful for me.

 Thank you

 -Sebastian Terence




-- 
Mubashir Husain Rehmani


Re: [ns] help me regarding the make file plzzzzzz

2007-12-02 Thread Kamil H. Suleiman

Hello Tamer,

I think there are two ns-2 groups, the releases earlier thank 2.30 and
later thank and including 2.30. The first group requires older c++
compiler and you should only install them in a linux fedora version
earlier than core 5. This applies to your 2.29, which should be
installed either in core 4 or earlier. The latter should be installed
int a core 5 or later release of Fedora.   

Hope this helps,
Kamil
https://crg.ee.uct.ac.za/~kamil

On Sun, 2007-12-02 at 20:33 -0500, Tamer Ahmed wrote:
 Dea NS-Users,
 
 I have installed the ns-2.29 on machine under Linux Fedora and tried also
 with the ns-2.31.
 
 Actually, after I have unzipped the tar file and wrote the
 ./installcommand, it gave me the following:
 
 make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
 future
 Makefile.in is newer than Makefile.
 You need to re-run configure.
 false
 make: *** [Makefile] Error 1
 Ns make failed!
 See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
 I did the ./configure command again and typed  the make, but gave me the
 following again:
 
 config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
 config.status: creating indep-utils/webtrace-conv/epa/Makefile
 config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
 config.status: creating autoconf.h
 config.status: autoconf.h is unchanged
 [EMAIL PROTECTED] ns-2.31]$ make
 make: Warning: File `Makefile.in' has modification time 1.3e+08 s in the
 future
 Makefile.in is newer than Makefile.
 You need to re-run configure.
 false
 make: *** [Makefile] Error 1
 [EMAIL PROTECTED] ns-2.31]$
 
 So, Could any body help me regarding that please?? It is urgent
 please.
 
 Thanks in advance
 
 Thamer Al-Jahamneh



Re: [ns] help me with the dsr segmentation problem

2007-04-16 Thread Bryan Hogan

Change 
set val(ifq)  Queue/DropTail/PriQueue
to
CMUPriQueue

Regards,

Bryan
Bryan's Dynamic Source Routing FAQ - http://www.geocities.com/b_j_hogan/

On Wed, 28 Feb 2007, sandeep v wrote:


 hi. this is my tcl script to simulate for 3 nodes using dsr routing
 protocol. it s givin as segmentation fault. but the same script works for
 dsdv just by changin the routing protocol in the script pasted
 below...please help me at the earliest as i ve lost a lot of time tryin to
 solve this.

 the terminal display when i run the tcl script is

 [EMAIL PROTECTED] ns-allinone-2.30]# ns simple-dsr.tcl
 num_nodes is set 3
 INITIALIZE THE LIST xListHead
 SORTING LISTS ...DONE!
 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
 highestAntennaZ_ = 1.5,  distCST_ = 550.0
 Segmentation fault
 [EMAIL PROTECTED] ns-allinone-2.30]#

 this is the tcl script

 # Define options
 set val(chan)   Channel/WirelessChannel;# channel type
 set val(prop)   Propagation/TwoRayGround   ;# radio-propagation
 model
 set val(netif)  Phy/WirelessPhy;# network interface type
 set val(mac)Mac/802_11 ;# MAC type
 set val(ifq)Queue/DropTail/PriQueue;# interface queue type
 set val(ll) LL ;# link layer type
 set val(ant)Antenna/OmniAntenna;# antenna model
 set val(ifqlen) 50 ;# max packet in ifq
 set val(nn) 3  ;# number of mobilenodes
 set val(rp) DSR  ;# routing protocol
 set val(x)  500;# X dimension of
 topography
 set val(y)  400;# Y dimension of
 topography
 set val(stop)   150;# time of simulation end

 set ns[new Simulator]
 set tracefd   [open simple-dsr.tr w]
 set windowVsTime2 [open win.tr w]
 set namtrace  [open simwrls.nam w]

 $ns trace-all $tracefd
 $ns use-newtrace
 $ns namtrace-all-wireless $namtrace $val(x) $val(y)

 # set up topography object
 set topo   [new Topography]

 $topo load_flatgrid $val(x) $val(y)

 create-god $val(nn)
 set chan_1_ [new $val(chan)]
 #
 #  Create nn mobilenodes [$val(nn)] and attach them to the channel.
 #

 # configure the nodes
$ns node-config -adhocRouting $val(rp) \
 -llType $val(ll) \
 -macType $val(mac) \
 -ifqType $val(ifq) \
 -ifqLen $val(ifqlen) \
 -antType $val(ant) \
 -propType $val(prop) \
 -phyType $val(netif) \
 #-channelType $val(chan) \
 -topoInstance $topo \
 -agentTrace ON \
 -routerTrace ON \
 -macTrace OFF \
 -movementTrace ON\
 -channel $chan_1_

for {set i 0} {$i  $val(nn) } { incr i } {
set node_($i) [$ns node]
}

 # Provide initial location of mobilenodes
 $node_(0) set X_ 5.0
 $node_(0) set Y_ 5.0
 $node_(0) set Z_ 0.0

 $node_(1) set X_ 490.0
 $node_(1) set Y_ 285.0
 $node_(1) set Z_ 0.0

 $node_(2) set X_ 150.0
 $node_(2) set Y_ 240.0
 $node_(2) set Z_ 0.0

 # Generation of movements
 $ns at 10.0 $node_(0) setdest 250.0 250.0 3.0
 $ns at 15.0 $node_(1) setdest 45.0 285.0 5.0
 $ns at 110.0 $node_(0) setdest 480.0 300.0 5.0

 # Set a TCP connection between node_(0) and node_(1)
 set tcp [new Agent/TCP/Newreno]
 $tcp set class_ 2
 set sink [new Agent/TCPSink]
 $ns attach-agent $node_(0) $tcp
 $ns attach-agent $node_(1) $sink
 $ns connect $tcp $sink
 set ftp [new Application/FTP]
 $ftp attach-agent $tcp
 $ns at 10.0 $ftp start

 # Printing the window size
 proc plotWindow {tcpSource file} {
 global ns
 set time 0.01
 set now [$ns now]
 set cwnd [$tcpSource set cwnd_]
 puts $file $now $cwnd
 $ns at [expr $now+$time] plotWindow $tcpSource $file }
 $ns at 10.1 plotWindow $tcp $windowVsTime2

 # Define node initial position in nam
 for {set i 0} {$i  $val(nn)} { incr i } {
 # 30 defines the node size for nam
 $ns initial_node_pos $node_($i) 30
 }

 # Telling nodes when the simulation ends
 for {set i 0} {$i  $val(nn) } { incr i } {
$ns at $val(stop) $node_($i) reset;
 }

 # ending nam and the simulation
 $ns at $val(stop) $ns nam-end-wireless $val(stop)
 $ns at $val(stop) stop
 $ns at 150.01 puts \end simulation\ ; $ns halt
 proc stop {} {
global ns tracefd namtrace
$ns flush-trace
close $tracefd
close $namtrace
 }

 $ns run




Re: [ns] help me to finish installing NS correctly

2006-12-06 Thread Larry Brigman

On 12/6/06, amira bourayou [EMAIL PROTECTED] wrote:

 *hi all,*
 when I did the ./install, I obtained These messages after that ns was
 installed successfuly:

 put
  /home/you/ns-allinone-2.30/bin :
  /home/you/ns-allinone-2.30/tcl8.4.13/unix:
  /home/you/ns-allinone-2.30/tk8.4.13/unix into your path environnement so
 that you ll be able to run itm/tclsh/wish/xgraph
 you must put   /home/you/ns-allinone-2.30/otcl-1.12,
  /home/you/ns-allinone-2.30//lib into your LD-LIBRARY-PATH environnement
 variables
 if it complains about X libraries,add path to your X librairies into
 LD-LIBRARY-PATH

 if you are using csh,you can see like:
 setenv LD-LIBRARY-PATHpaths
  if you are using sh,you can see like:
 export LD-LIBRARY-PATH=paths

 put  /home/you/ns-allinone-2.30/tcl 8.4.13/library into your TCL-LIBRARY
 environnement variables *Question:*
 *1)** How  can i do this?where will i find my LD-LIBRARY-PATH and my
 TCL-LIBRARY environnement variables and my path environnement so that i ll
 be able to run itm/tclsh/wish/xgraph? *

Make a script like this one below and place it in you ns-allinone-2.30
directory.
When you need to run your NS simulations go to that directory and
source the script.

#!/bin/sh
# added for Xterm window title change
export PROMPT_COMMAND='echo -ne \033]0;NS-2.30
${HOSTNAME%%.*}:${PWD/#$HOME/~}\007'
# added for command prompt change
export PS1=[EMAIL PROTECTED] \W]\$ 
if [ x$NS != x ] ; then
export NS_ORIG=$NS
fi
export NS=`pwd`
if [ x$LD_LIBARY_PATH != x ] ; then
export LD_LIBRARY_PATH_ORIG=$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$NS/otcl-1.12:$NS/lib
if [ x$TCL_LIBRARY != x ] ; then
export TCL_LIBRARY_ORIG=$TCL_LIBRARY
fi
export TCL_LIBRARY=$NS/tcl8.4.13/library
export PATH_ORIG=$PATH
export 
PATH=$PATH:$NS/bin:$NS/ns-2.30/bin:$NS/tcl8.4.13/unix:$NS/tk8.4.13/unix
unset NS