[ns] Bryan's NS-2 Dynamic Source Routing FAQ

2009-10-08 Thread Bryan Hogan


Hello all,

I have moved my FAQ from it previous location to a new location.

Please see -

http://www.skynet.ie/~bryan/dsr_faq/index.html
Bryan's NS-2 Dynamic Source Routing FAQ

Best regards,

Bryan



Re: [ns] implemention malicious node in MANET over DSR

2008-11-25 Thread Bryan Hogan

Hi

Take a look at my FAQ.

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


On Fri, 31 Oct 2008, anas wrote:

>
> I am doing some research to provide security to MANET. However, I am stuck by 
> the way how to simulate one or more malicious node(s) in one  MANET scenario, 
> such the nodes that drops the forwarding packets
> intentively, or absorbs all packets to it, or duplicates the  forwarding 
> packets. Is there any solution to this problem.
>
> thank you in advance
>
>



Re: [ns] DSR Packets

2007-04-16 Thread Bryan Hogan

Hello,

Take a look at the code in the recv function, you'll see how a packet with
a valid DSR header is handled -

else if (srh->valid() == 1)


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


On Sat, 7 Apr 2007, Jezabel Miriam Molina Gil wrote:

>
> Hello, I am working with DSR and I have to know all about forward
> nodes. I have where information packets are forwarded in DSR but I do
> not know where DSR paquets are forwarded.
> Maybe I could use the information that the trace file use for writing
> s, f or r but I have not find it in dsragent.cc.
> can someone help me?
>
> -- 
> Saludos
> Jezabel M. Molina Gil
>



Re: [ns] Segmentation fault in DSR Routing protocol

2007-04-16 Thread Bryan Hogan

Hello Shailesh,

Are you using Queue/DropTail/PriQueue in your TCL file? if so, change to 
CMUPriQueue.

Regards,

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

On Wed, 28 Mar 2007, Shailesh Gamit wrote:

>
> I have a problem with the DSR protocol in ns2.29
> when i run the tcl script sometimes it gives the segmentation fault error.
> I think that this segmentation error is giving only when there is a path break
> is it ture ... or what  is the problem.
> thanks..
>
> -- 
> Shailesh Gamit
> M.Tech (CSE),
> Nirma Institute of Technology,
> Ahmedabad, India
>



Re: [ns] How to run script(AODV,DSR,DSDV) in ns-allinone-2.30?

2007-04-16 Thread Bryan Hogan

You should read the tutorial provided by Marc Greis
www.isi.edu/nsnam/ns/tutorial/

Regards,

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

On Thu, 15 Mar 2007, vava vvava wrote:

>
> Hello,
> I'm new user for ns2 and I've ns-allinone-2.30 running on Ubuntu 6.06.. I 
> want to run the sample of the script in few ad hoc routing protocols such as 
> AODV, DSR and DSDV that is in the directory ../ns-allinone-2.30/ns-2.30/aodv 
> or dsr or dsdv.
>
> Is it possible to me to run this script? (aodv.tcl, aodv.cc, aodv.h). What is 
> the command I should use for?
> How can I run the script for dsdv directory that contain dsdv.cc and dsdv.h 
> file?
> Could anyone show me step by step?
>
>
> -
> Now that's room service! Choose from over 150,000 hotels
> in 45,000 destinations on Yahoo! Travel to find your fit.
>



Re: [ns] full sample script for AODV/DSR

2007-04-16 Thread Bryan Hogan

There are some in the ns-tutorial subdirectory.

Regards,

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

On Wed, 7 Mar 2007, uknown noname wrote:

>
> Where can i get full sample script of AODV / DSR that i can implement / test? 
> The script in the directory are just part of the implementation.
>
>
> -
> Don't get soaked.  Take a quick peek at the forecast
> with theYahoo! Search weather shortcut.
>



Re: [ns] DSR FRAGMENTATION ERROR

2007-04-16 Thread Bryan Hogan

hello,

You'll have to provide a little more information than that.

Regards,

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

On Tue, 6 Mar 2007, antonis antoniou wrote:

>
>
> hi all,
> I use dsr and  i have fragmentation error when cbr traffic is more than 
> 100kbps.
>
> for lower data rates is ok...
>
> what happens
>
> thanks
>



Re: [ns] DSR and Segmentation Fault

2007-04-16 Thread Bryan Hogan

Hello,

Segementation faults can be difficult to track down.
I once had a seg fault occurring in a class that is not even called by 
DSR, I finally tracked it back to a an array that i had set to size 3 but 
I was filling it with 15 elements or more...took me 12 hours to find the 
problem.

So, check your code for this find of problem.

Regards,

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


On Thu, 1 Mar 2007, paolalonetti wrote:

>
> Hi,
> I'm working to make DSR multipath , I've modified the classes mobicache.cc 
> and path.cc.
> The problem is the segmentation fault at line 214 (o about) at
> path[c]=rhs.path[c], where is defined operator =
> I didn't touch this method, but it's called from my methods.
>
> Anyone have found the same problems? And can help me?
> thank, in advance
> bye
>
>
> --
> Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
> http://click.libero.it/infostrada1marz07
>
>
>



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] [query]finding neighbor in dsr protocol

2006-08-22 Thread Bryan Hogan

I think this information is also available from the GOD.

Another option might be to create a special type of broadcast packet (with 
a TTL of 1) that is returned to the source by any node that
receives it.

You can find information that will help you at the link below.

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


On Tue, 25 Jul 2006, Karthikeyan Balraj wrote:

>
> hi ns-users,
>   I am trying to find whether the given node  is  our neighbor  or not
> Is there any built-in function in ns(for dsr) or Is there anyway to  do it
> in a simpler manner
> its urgentplz reply me
>
>
> note: I found a method named 'is_neighbor' in dsragent.cc but i couldnt
> understand the purpose of this method
>
> cheers,
> Cartic
>



Re: [ns] Routing Metric of DSR

2006-02-08 Thread Bryan Hogan

Hello,

DSR doesn't define which routing metric should be used. The
implementation
in ns-2 uses minumum hop.

>From the DSR draft -
Each implementation of DSR at any node MAY choose any appropriate
strategy and algorithm for searching its Route Cache and
selecting a "best" route to the destination from among those found.



The jitter helps reduce the number of potential collisions caused by
multiple nodes replying to a route request at the same time.

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

On Mon, 30 Jan 2006, venusian . wrote:

>
> Hieee,
>
> DSR's routing metric is Minimum Hop, this means that if two routes are
> discovered
> to the destination the one with minimum hop count will be selected by the
> destination
> node. I'd like to know how is this feature incorporated in DSR i.e how r the
> routes
> compared before sending replies. Is it the Random Jitter which allows the
> routes with lesser hops to b considered and returned in route reply.
> If not how are the routes in packets compared and why is random jitter used
> before sending a route reply?
>
> Thanking in Advance
> Venuzian
>
> _
> Don't just search. Find. Check out the new MSN Search!
> http://search.msn.com/
>