LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-07-2011, 10:14 AM   #1
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Rep: Reputation: 0
Smile help me regarding aodv implementation !


hello sir !

I m in M.Tech (final year). I m working on aodv implementation in ns2.34 in fedora...some error is coming while executing aodv.tcl i.e.
invalid command name "Agent/rtProto/AODV"
while executing
"Agent/rtProto/AODV instproc init args {
$self next $args
} "
(file "aodv.tcl" line 19)

Please help me regarding this problem... Ur help will be really liked..
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-07-2011, 11:02 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by Shruti View Post
hello sir !

I m in M.Tech (final year). I m working on aodv implementation in ns2.34 in fedora...some error is coming while executing aodv.tcl i.e.
invalid command name "Agent/rtProto/AODV"
while executing
"Agent/rtProto/AODV instproc init args {
$self next $args
} "
(file "aodv.tcl" line 19)

Please help me regarding this problem... Ur help will be really liked..
Spell your words out...text-speak garbage isn't pleasant for anyone to read.

And did you read the error message?? It very clearly says "invalid command name", and gives you a path. So...you've either specified the path incorrectly (i.e. not put a leading "/" on it), you've misspelled the path (Caps? typo?), or you put the wrong command name in. Check them all. Also check permissions on it, and the directories leading up to it.
 
Old 05-07-2011, 11:31 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

A wrong aodv.tcl ? ? The file aodv.tcl is not included in ns-2.34.
*** Using non default stuff : You are supposed to tell,
what it is you are doing, and where you got the files.
http://linuxsilo.net/docs/smart-questions_en.html


This aodv.tcl will work without modifying 'ns'.
( No extra code.cc is required )
http://ipsit.bu.edu/sc546/sc546Fall2...files/aodv.tcl
http://ipsit.bu.edu/sc546/sc546Fall2...1/course2.html

( http://ipsit.bu.edu/sc546/sc546Fall2...11/course.html )

..
 
Old 05-08-2011, 01:41 PM   #4
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Spell your words out...text-speak garbage isn't pleasant for anyone to read.

And did you read the error message?? It very clearly says "invalid command name", and gives you a path. So...you've either specified the path incorrectly (i.e. not put a leading "/" on it), you've misspelled the path (Caps? typo?), or you put the wrong command name in. Check them all. Also check permissions on it, and the directories leading up to it.
Thanks sir ! for your teaching... I will take care of it...
 
Old 05-08-2011, 01:57 PM   #5
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

A wrong aodv.tcl ? ? The file aodv.tcl is not included in ns-2.34.
*** Using non default stuff : You are supposed to tell,
what it is you are doing, and where you got the files.
http://linuxsilo.net/docs/smart-questions_en.html


This aodv.tcl will work without modifying 'ns'.
( No extra code.cc is required )
http://ipsit.bu.edu/sc546/sc546Fall2...files/aodv.tcl
http://ipsit.bu.edu/sc546/sc546Fall2...1/course2.html

( http://ipsit.bu.edu/sc546/sc546Fall2...11/course.html )

..
I have made changes in my previous code from this site : Replaced all Agent/rtProto/AODV by Agent/AODV.....
http://mailman.isi.edu/pipermail/ns-...ne/023840.html
This is the modified AODV.tcl file. Now, No nam window is getting displayed...

I also downloaded the code from the site provided by you.....
http://ipsit.bu.edu/sc546/sc546Fall2...files/aodv.tcl
Only xgraph window is displaying but no nam window is displaying.....

Also tell me which is the right code to implement AODV ??
 
Old 05-08-2011, 03:07 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
.. tell me which is the right code to implement AODV
Depends what you want to achieve. AODV is already "implemented"
i.e. compiled into the binary 'ns'.

Suggest : Google .. aodv protocol
http://www.google.com/webhp#sclient=...ecd9e91e08e01f

Example http://www.ietf.org/rfc/rfc3561.txt

..
 
Old 05-08-2011, 09:10 PM   #7
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
I have to implement wormhole attack in MANET using AODV.....
 
Old 05-09-2011, 12:42 PM   #8
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

A wrong aodv.tcl ? ? The file aodv.tcl is not included in ns-2.34.
*** Using non default stuff : You are supposed to tell,
what it is you are doing, and where you got the files.
http://linuxsilo.net/docs/smart-questions_en.html


This aodv.tcl will work without modifying 'ns'.
( No extra code.cc is required )
http://ipsit.bu.edu/sc546/sc546Fall2...files/aodv.tcl
http://ipsit.bu.edu/sc546/sc546Fall2...1/course2.html

( http://ipsit.bu.edu/sc546/sc546Fall2...11/course.html )

..
hello sir !
what the code you have provided:
http://ipsit.bu.edu/sc546/sc546Fall2...files/aodv.tcl
I have run it... only xgraph window is displaying... but 1_out.nam window is not displaying.... what could be the reason???
while xgraph window is displayed , the error message is shown on the terminal backward i.e.

ns: finish: Parameter LabelFont: can't translate `helvetica-10' into a font (defaulting to `fixed')
Parameter TitleFont: can't translate `helvetica-18' into a font (defaulting to `fixed')
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 235 requests (226 known processed) with 0 events remaining.
while executing
"exec xgraph packets_received.tr packets_lost.tr "
(procedure "finish" line 9)
invoked from within
"finish"

Please resolve my problem !!!
 
Old 05-09-2011, 01:47 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
but 1_out.nam window is not displaying ...
Nothing in the file 'aodv.tcl' says "run nam", which is quite usual.
Just run 'nam 1_out.nam' afterwards, and click the play button.

Quote:
ns: finish: Parameter LabelFont: can't translate `helvetica-10' into a font (defaulting to `fixed')
Parameter TitleFont: can't translate `helvetica-18' into a font (defaulting to `fixed')
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
after 235 requests (226 known processed) with 0 events remaining.

etc.
Looks OK. If you want a different behavior from xgraph, then build a new one:
Post # 2 here http://www.linuxquestions.org/questi...34-a-862233/#2

..
 
2 members found this post helpful.
Old 05-10-2011, 09:37 AM   #10
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
Nothing in the file 'aodv.tcl' says "run nam", which is quite usual.
Just run 'nam 1_out.nam' afterwards, and click the play button.


Looks OK. If you want a different behavior from xgraph, then build a new one:
Post # 2 here http://www.linuxquestions.org/questi...34-a-862233/#2

..
Thanks a lot for your post sir......All of the codes aodv.tcl, dsr.tcl , dsdv.tcl start executing...
 
Old 05-15-2011, 05:33 AM   #11
naeemmughal115
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
hello everyone...

i am doing my final year project inwhich i have to install AODV in fedora 14 using NS-2.34.

i am new in fedora, can u help me?

thanks in advance..

Last edited by naeemmughal115; 05-23-2011 at 05:18 AM.
 
Old 05-15-2011, 06:17 AM   #12
naeemmughal115
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
is its code available for installation?

Last edited by naeemmughal115; 05-16-2011 at 12:43 AM.
 
Old 05-15-2011, 12:25 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by naeemmughal115 View Post
i am student of BS-computer science 8th semester and i am doing my final year project inwhich i have to install AODV in fedora 14 using NS-2.34.
i am new in fedora, can u help me step by step?
..and
Quote:
Originally Posted by naeemmughal115
Help me regarding AODV implementation
Hello dears, i am going to implement AODV using fedora 14 and NS-2.34 for my final year project of BS-CS(4 years).
i have installed NS-2.34 and now i am searching help for AODV implementation.
Is its code available.?
plz help me in this regard.
waiting for kind and quick response.
thanks in advance.
First, do NOT hijack someone elses thread with your own question. Second, don't post a follow-up after less than one hour, asking for a 'quick response'. We VOLUNTEER our time here...don't tell us to hurry up and answer you. We answer when we can, and IF we want to.

Most importantly, we do not provide 'step by step' directions for things....if you need this, then I suggest you Google for the appropriate software sites, and READ THE DOCUMENTATION that the authors provide. We are not going to look things up for you, and spoon-feed you the answer. Someone who is about to graduate college, should be able to perform a basic search, and look something up. Putting "fedora linux ns2 installation" into Google, will get you several guides on how to install it. Follow the same steps for AODV instructions.
 
0 members found this post helpful.
Old 05-15-2011, 01:45 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
#11-#12
Quote:
I am going to implement AODV
Read all the posts in this thread : AODV is already present in ns-2.34 !

And please use : LQ Search >>> Keyword = ns-allinone
 
1 members found this post helpful.
Old 05-16-2011, 09:31 AM   #15
Shruti
LQ Newbie
 
Registered: May 2011
Posts: 14

Original Poster
Rep: Reputation: 0
hello sir !

I have downloaded files (i.e. aodv.tcl, dsr.tcl, dsdv.tcl) from: http://ipsit.bu.edu/sc546/sc546Fall2...1/course2.html ... and awk scripts from: http://mohittahiliani.blogspot.com/2...t-for-ns2.html .. But some of the problem is coming..... Terminal shows this way...
[root@localhost bin]# awk -f totalpacketssent.awk 1_out.tr
0
[root@localhost bin]# awk -f totalpacketsreceived.awk 1_out.tr
0
[root@localhost bin]# awk -f droppackets.awk 1_out.tr
9.490025 5406
9.490025 5407
9.490025 5408
9.490025 5409
9.490025 5410
9.490025 5411
...........
..........
[root@localhost bin]# awk -f e2edelay.awk 1_out.tr
awk: e2edelay.awk:91: (FILENAME=1_out.tr FNR=9713) fatal: division by zero attempted

[root@localhost bin]# awk -f genthroughput.awk 1_out.tr
Average Throughput[kbps] = -0.00 StartTime=400.00 StopTime=0.00

What would be the reason?? What to read to clear the concept of awk files??

Last edited by Shruti; 05-16-2011 at 09:38 AM. Reason: To put a correct website !
 
  


Reply


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
Kernel AODV and libipq mahbub_bd Linux - Networking 1 05-19-2011 05:24 AM
where to edit in AODV naren123.k Programming 2 04-11-2011 07:42 AM
AODV and DSR armelle Linux - Networking 0 03-27-2010 04:11 AM
problem in aodv shalinipuri10@gmail.com Linux - Newbie 1 04-27-2009 09:51 AM
AODV in eclipse tassadaque Programming 0 08-26-2008 04:21 AM


All times are GMT -5. The time now is 02:39 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