LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2014, 01:11 PM   #1
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Rep: Reputation: Disabled
Need a patch for MAODV Plz..


Hi,

I am working on project in ns2.33 where I should implement multicast in hwmp protocol.As I am going to work on on-demand routing concept alone in WMN, I found MAODV routing protocol where they have already implemented the multicast concept.I have tried to download the patch. But, it doesnt work. Do anyone have the patch of MAODV which is a correct one? If so,Please send me!

Thanks for your help inadvance!
 
Old 10-15-2014, 01:37 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
Welcome to LQ.

Not much to find but the old patches for ns-2.26 (or earlier ns2).

MAODV info http://www.linuxquestions.org/questions/tags/maodv/
. https://groups.google.com/forum/?fro...ce|spell:false
. http://network-simulator-ns-2.7690.n...uery=maodv&n=2
-
Attached Files
File Type: txt maodv-links.txt (887 Bytes, 44 views)
 
1 members found this post helpful.
Old 10-21-2014, 09:54 AM   #3
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reg. MAODV patch installation

Thanks for the reply for my previous post!
Could anyone let me know if it is possible to install MAODV patch in ns2.33?
I have tried to install it, but error messages were displayed like HUNK failed..

Last edited by apar2610; 10-21-2014 at 09:56 AM. Reason: Provide more information
 
Old 10-21-2014, 12:33 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
← #3 .
Quote:
I have tried to install it, but error messages were displayed like HUNK failed
Which patch ? A file name, please.
 
Old 10-21-2014, 01:09 PM   #5
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reg. MAODV patch installation

MAODV patch not getting installed.
 
Old 10-21-2014, 04:13 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
← #5 .

There is no file by name "MAODV patch".
Be precise, please.
 
Old 10-24-2014, 05:25 AM   #7
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reg. MAODV patch installation

I dint get any patch files and all. I found it from this location only==>
http://www.hynet.umd.edu/research/maodv/MAODV-UMD.html
 
Old 10-24-2014, 07:24 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
← #7 .

AODV-UU, all versions http://sourceforge.net/projects/aodvuu/files/AODV-UU/

`patch-maodv-umd´ :
$ wget http://www.hynet.umd.edu/research/maodv/patch-maodv-umd

`maodv-umd-0.7.2-rel-1.2.patch´ :
$ wget http://www.hynet.umd.edu/research/ma...-rel-1.2.patch


Aodv-uu should still work. Not sure with the maodv patches.
Aodv-uu examples : aodv-uu__examples0213.tar.bz2
https://drive.google.com/file/d/0B7S...ew?usp=sharing

AODV-UU info http://www.linuxquestions.org/questions/tags/aodv-uu/
AOMDV info http://www.linuxquestions.org/questions/tags/aomdv/

-
 
Old 10-24-2014, 09:30 AM   #9
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reg. MAODV patch installation

Thanks for the previous post.
Here is the snap-shot of the errors getting displayed while installing the MAODV patch:
aparna@aparna ~/ns-allinone-2.33/ns-2.33 $ patch -p1 < maodv.patch
patching file Makefile
Hunk #1 FAILED at 4.
Hunk #2 FAILED at 33.
Hunk #3 FAILED at 63.
Hunk #4 FAILED at 106.
Hunk #5 FAILED at 117.
Hunk #6 FAILED at 124.
6 out of 6 hunks FAILED -- saving rejects to file Makefile.rej
patching file TODO.maodv
can't find file to patch at input line 109
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urNb aodv-uu-0.7.2/aodv_hello.c maodv-umd-0.7.2/aodv_hello.c
|--- aodv-uu-0.7.2/aodv_hello.c Mon May 26 16:45:49 2003
|+++ maodv-umd-0.7.2/aodv_hello.c Wed Jun 25 17:46:09 2003
--------------------------
File to patch:

The patch is'nt working.
I am trying with this option given in the link:
http://techaddikt.wordpress.com/2012...ation-in-ns-2/
It is mentioned some scenario files and cbr traffic files. As I am new to ns-2 could you tell me about it's usage.
Is it necessary that we run the tcl script using this method in project?

Thanks in advance!
 
Old 10-24-2014, 12:47 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
← #9 .

About "Makefile" (Much better to make the changes to `Makefile.in') :
The patch is a text file, the file `Makefile.rej' is a text file
→ easy readable, to know which words / which lines to edit by hand.

"aodv-uu-0.7.2.tar.gz" https://github.com/erimatnor/aodv-uu/releases
>>> https://codeload.github.com/erimatno.../aodv-uu-0.7.2
.. to decide the changes from old version ,,, to aodv-uu-0.9.5.tar.gz.

-
 
Old 10-28-2014, 03:07 AM   #11
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reg. MAODV patch installation

Hi,

I am getting the following error while running any tcl file in maodv==>
aparna@aparna ~/ns-allinone-2.33/ns-2.33/maodv $ ns wireless14_1.tcl
num_nodes is set 50
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl

(_o14 cmd line 1)
invoked from within
"_o14 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o14" line 2)
(SplitObject unknown line 2)
invoked from within
"_o14 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
$node_($i) radius 1 ;# ..."
(file "wireless14_1.tcl" line 116)

Could someone reply me if you have know how to resolve the error? Thanks inadvance.
 
Old 10-28-2014, 04:56 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,657

Rep: Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281Reputation: 3281
→ #11 .

Please make plausible that wireless14_1.tcl is an maodv simulation.

ns-allinone-2.33/ns-2.33/maodv/ is an unknown location
for maodv simulation scripts.


Which "maodv" version is it about ?
Without knowing exactly what you are doing / what you have done :
Not possible to answer.


Information, please. http://linuxsilo.net/docs/smart-questions_en.html

-
 
Old 10-28-2014, 08:55 AM   #13
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Reg. MAODV patch installation

To be more clearer,
I read the document--> http://kunz-pc.sce.carleton.ca/thesis/maodv-ns-2.26.pdf about maodv.
I have created a new protocol for maodv and executed a tcl file where they have called aodv protocol (for wireless),changed it to maodv, executed to check if it is working.
I am getting this error.Got my question?
Thanks.

Last edited by apar2610; 10-28-2014 at 08:59 AM.
 
Old 01-27-2015, 02:22 AM   #14
apar2610
LQ Newbie
 
Registered: Aug 2014
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi,

I have implemented MAODV as given in the link-->https://techaddikt.wordpress.com/201...ation-in-ns-2/

I tried to execute the tcl script given below:
#===================================
# Simulation parameters setup
#===================================
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) 25 ;# number of mobilenodes
set val(rp) AODV ;# routing protocol
set val(x) 1125 ;# X dimension of topography
set val(y) 571 ;# Y dimension of topography
set val(stop) 10.0 ;# time of simulation end

#===================================
# Initialization
#===================================
#Create a ns simulator
set ns [new Simulator]

#Setup topography object
set topo [new Topography]
$topo load_flatgrid $val(x) $val(y)
create-god $val(nn)

#Open the NS trace file
set tracefile [open simulation.tr w]
$ns trace-all $tracefile

#Open the NAM trace file
set namfile [open simulation.nam w]
$ns namtrace-all $namfile
$ns namtrace-all-wireless $namfile $val(x) $val(y)
set chan [new $val(chan)];#Create wireless channel

#===================================
# Mobile node parameter setup
#===================================
$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) \
-channel $chan \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-movementTrace OFF

#===================================
# Nodes Definition
#===================================
#Create 25 nodes
set n0 [$ns node]
$n0 set X_ 225
$n0 set Y_ 471
$n0 set Z_ 0.0
$ns initial_node_pos $n0 50
set n1 [$ns node]
$n1 set X_ 425
$n1 set Y_ 471
$n1 set Z_ 0.0
$ns initial_node_pos $n1 50
set n2 [$ns node]
$n2 set X_ 625
$n2 set Y_ 471
$n2 set Z_ 0.0
$ns initial_node_pos $n2 50
set n3 [$ns node]
$n3 set X_ 825
$n3 set Y_ 471
$n3 set Z_ 0.0
$ns initial_node_pos $n3 50
set n4 [$ns node]
$n4 set X_ 1025
$n4 set Y_ 471
$n4 set Z_ 0.0
$ns initial_node_pos $n4 50
set n5 [$ns node]
$n5 set X_ 225
$n5 set Y_ 271
$n5 set Z_ 0.0
$ns initial_node_pos $n5 50
set n6 [$ns node]
$n6 set X_ 425
$n6 set Y_ 271
$n6 set Z_ 0.0
$ns initial_node_pos $n6 50
set n7 [$ns node]
$n7 set X_ 625
$n7 set Y_ 271
$n7 set Z_ 0.0
$ns initial_node_pos $n7 50
set n8 [$ns node]
$n8 set X_ 825
$n8 set Y_ 271
$n8 set Z_ 0.0
$ns initial_node_pos $n8 50
set n9 [$ns node]
$n9 set X_ 1025
$n9 set Y_ 271
$n9 set Z_ 0.0
$ns initial_node_pos $n9 50
set n10 [$ns node]
$n10 set X_ 225
$n10 set Y_ 71
$n10 set Z_ 0.0
$ns initial_node_pos $n10 50
set n11 [$ns node]
$n11 set X_ 425
$n11 set Y_ 71
$n11 set Z_ 0.0
$ns initial_node_pos $n11 50
set n12 [$ns node]
$n12 set X_ 625
$n12 set Y_ 71
$n12 set Z_ 0.0
$ns initial_node_pos $n12 50
set n13 [$ns node]
$n13 set X_ 825
$n13 set Y_ 71
$n13 set Z_ 0.0
$ns initial_node_pos $n13 50
set n14 [$ns node]
$n14 set X_ 1025
$n14 set Y_ 71
$n14 set Z_ 0.0
$ns initial_node_pos $n14 50
set n15 [$ns node]
$n15 set X_ 225
$n15 set Y_ -129
$n15 set Z_ 0.0
$ns initial_node_pos $n15 50
set n16 [$ns node]
$n16 set X_ 425
$n16 set Y_ -129
$n16 set Z_ 0.0
$ns initial_node_pos $n16 50
set n17 [$ns node]
$n17 set X_ 625
$n17 set Y_ -129
$n17 set Z_ 0.0
$ns initial_node_pos $n17 50
set n18 [$ns node]
$n18 set X_ 825
$n18 set Y_ -129
$n18 set Z_ 0.0
$ns initial_node_pos $n18 50
set n19 [$ns node]
$n19 set X_ 1025
$n19 set Y_ -129
$n19 set Z_ 0.0
$ns initial_node_pos $n19 50
set n20 [$ns node]
$n20 set X_ 225
$n20 set Y_ -329
$n20 set Z_ 0.0
$ns initial_node_pos $n20 50
set n21 [$ns node]
$n21 set X_ 425
$n21 set Y_ -329
$n21 set Z_ 0.0
$ns initial_node_pos $n21 50
set n22 [$ns node]
$n22 set X_ 625
$n22 set Y_ -329
$n22 set Z_ 0.0
$ns initial_node_pos $n22 50
set n23 [$ns node]
$n23 set X_ 825
$n23 set Y_ -329
$n23 set Z_ 0.0
$ns initial_node_pos $n23 50
set n24 [$ns node]
$n24 set X_ 1025
$n24 set Y_ -329
$n24 set Z_ 0.0
$ns initial_node_pos $n24 50

#=================================================================
# Multicast group - sender node 0 , receivers nodes 7,24
#=================================================================
set group0 [Node allocaddr]

#===================================
# Agents Definition
#===================================
#Setup a UDP connection
set udp0 [new Agent/UDP]
$udp0 set dst_addr_ $group0
$udp0 set dst_port_ 100
$ns attach-agent $n0 $udp0

#===================================
# Applications Definition
#===================================
#Setup a CBR Application over UDP connection
set cbr0 [new Application/Traffic/CBR]
$cbr0 attach-agent $udp0
$cbr0 set dst_ $group0

$ns at 1.0 "$cbr0 start"
$ns at 5.0 "$cbr0 stop"

$ns at 0.0100000000 "$n7 aodv-join-group $group0"
$ns at 3.0 "$n7 aodv-leave-group $group0"
$ns at 0.0100000000 "$n24 aodv-join-group $group0"
$ns at 5.0 "$n24 aodv-leave-group $group0"

#===================================
# Termination
#===================================
#Define a 'finish' procedure
proc finish {} {
global ns tracefile namfile
$ns flush-trace
close $tracefile
close $namfile
exec nam simulation.nam &
exit 0
}
for {set i 0} {$i < $val(nn) } { incr i } {
$ns at $val(stop) "\$n$i reset"
}
$ns at $val(stop) "$ns nam-end-wireless $val(stop)"
$ns at $val(stop) "finish"
$ns at $val(stop) "puts \"done\" ; $ns halt"
$ns run

I got the following error:
aparna@aparna ~/Desktop/aparna/ns-allinone-2.33/ns-2.33/aodv $ ns simulation.tcl
num_nodes is set 25
INITIALIZE THE LIST xListHead
ns: _o168 aodv-join-group 1073741824:
(_o168 cmd line 1)
invoked from within
"_o168 cmd aodv-join-group 1073741824"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o168" line 2)
(SplitObject unknown line 2)
invoked from within
"_o168 aodv-join-group 1073741824"

Please reply me if you have solution for this error. Thanks in advance!
 
  


Reply

Tags
aodv-uu, maodv, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating point exception in running maodv in ns2.34 glitter Linux - Newbie 0 08-21-2011 01:29 AM
error while running MAODV in ns-2.34 adi.trisna Linux - Newbie 20 08-17-2011 02:29 AM
[B][RED]Critical - Help Needed Immediately PLZ PLZ PLZ[/B][/RED] zoomzatag Linux - Newbie 4 10-07-2010 01:25 PM
plz plz solve my route mapping problem nedian123 Linux - Networking 1 07-12-2004 09:41 PM


All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration