LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-12-2014, 01:13 AM   #1
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Rep: Reputation: Disabled
regarding implementation of AODV-GAF protocol


I am working on my final year project on energy efficient routing in MANET's. In this regard i needed implementation details regarding AODV-GAF protocol. Please if anyone who Knows about it guide me in this issue. Thanking in advance
 
Old 04-13-2014, 04:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
GAF is already present in all ns-2.xx :
CHANGES.html: Add GAF algorithm (for AODV and DSR) into ns → → May 15´ 2000.
Code:
[knudfl@localhost ns-2.35]$ grep -iRn gaf *
aodv/aodv.cc:1030:   // assert(ch->ptype() == PT_AODV); // maybe a diff pkt type like gaf
aomdv/aomdv.cc:1384:                     // assert(ch->ptype() == PT_AODV); // maybe a diff pkt type like gaf
aomdv/aomdv.cc:1832:                     // assert(ch->ptype() == PT_AODV); // maybe a diff pkt type like gaf
CHANGES.html:1888:<pre>Add GAF algorithm (for AODV and DSR) into ns
common/packet.h:151:        // GAF packet
common/packet.h:152:static const packet_t PT_GAF = 49;
common/packet.h:370:            // for GAF
common/packet.h:371:                name_[PT_GAF] = "gaf";
Binary file doc/everything.pdf matches
.
dsr/dsragent.cc:605:  // special process for GAF
dsr/dsragent.cc:606:  if (cmh->ptype() == PT_GAF) {
FILES:624:gaf/gaf.cc
FILES:625:gaf/gaf.h
.
tcl/test/test-suite-wireless-lan-gaf.tcl
.
How to use "GAF/AODV" ? I guess you will have to read some pdf`s etc ..
Google .. ns2 Geographical Adaptive Fidelity ..
https://www.google.com/webhp?hl=all#...elity&start=30
ns2 gaf.aodv https://www.google.com/webhp?hl=all#...q=ns2+gaf.aodv

-

Last edited by knudfl; 04-13-2014 at 04:41 AM.
 
1 members found this post helpful.
Old 04-19-2014, 01:06 AM   #3
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks for replaying back @knudfl sorry for replaying back late... I went through the links you have mentioned but in particular I didnt find exact procedure to implement GAF on AODV/DSR please help me in this regard ... Thanking in advance
 
Old 04-19-2014, 02:32 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 .

Please continue reading about GAF : ns2 doesn't come easy.

Google, ns2 gaf.tcl https://www.google.com/webhp?hl=all#...q=ns2+gaf.tcl+
... to find some hints about using GAF in your simulation.

"test-suite-wireless-lan-gaf.tcl" :
"usage:ns test-suite-wireless-lan-gaf.tcl<tests>
Valid Tests:dsdv dsr"
(( http://mailman.isi.edu/pipermail/ns-...il/055307.html ))

* ns2 "rules" : A week to learn how to build ns2. Three months (or more)
.. to learn how to use ns2.

-
 
1 members found this post helpful.
Old 04-22-2014, 02:13 AM   #5
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
thanks @knudfl I went through the links mentioned by you. I have changed test-suite-wireless-lan-gaf.tcl as per my simulation scenario and tests performed as instructed in read me file and test-all-lan files present in the ns-2.34/tcl/test folder but when i run by command
#code
././test-all-wireless-lan-gaf
#output
no saved test output. do cvs update -d
or re-run your test with "new" as the last argument
as output ... not getting what to do ???
Please help me in this regard. Thanking in advance
 
Old 04-22-2014, 03:53 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5 .

$ cd ns-allinone-2.34/ns-2.34/tcl/test/
$ ./test-all-wireless-lan-gaf > 1-test-all-wireless-lan-gaf.txt
... if you want to save some text. ( 538B ).

Much more content in the other output files :
`temp.rands' : 187.6 MB , 5,298,166 lines. ( $ cat temp.rands | wc )
`temp.randsgz' : 5 MB , 50,884 lines.

-
 
1 members found this post helpful.
Old 04-23-2014, 02:22 AM   #7
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
thank you @knudfl for helping actually your replies are boosting my confidence to try out the possibilities Somehow I am able to generate the trace file and nam output files now .But when I try to find out the other performance factors such as in case of Packet Delivery Fraction (PDF) using awk scripts i'm getting output as shown below,
#output
cbr s:4886 r:12072, r/s Ratio:2.4707, f:0 (s= sent pkts, r=received pkts, f= forwarded pkts)

I am little confused whether above values are correct?
How can number of received packets can exceed number of sent packets? is it possible to have PDF > 1?
please help me in this regard thanking in advance
 
Old 04-23-2014, 02:56 AM   #8
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
@knudfl I beg your pardon for multiple posts back to back I forgot to mention another problem that is I am not getting End to End delay ,Throughput and other parameters when I run awk scripts. In the trace file there is neither cbr packets were transmitted or received and no packets were generated at RTR level in whole simulation, my whole trace output contains lines as shown below
either
#output
r 131.184803877 _41_ AGT --- 349 gaf 40 [0 ffffffff 2f 800] [energy 448.132172 ei 51.789 es 0.000 et 0.014 er 0.065] ------- [47:254 41:254 32 0]
or
#output
s 131.184803877 _41_ AGT --- 349 gaf 40 [0 ffffffff 2f 800] [energy 448.132172 ei 51.789 es 0.000 et 0.014 er 0.065] ------- [47:254 41:254 32 0]

Can you please tell me why I am not getting the cbr packets or packets at RTR level?

Please help me in this regard sir
Thanking in advance
 
Old 04-23-2014, 05:33 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 8 .

May be you will have to write a dedicated awk script ?

Please have a look at the already existing scripts ...
→ awk_scripts-04.2014.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing

-
 
1 members found this post helpful.
Old 04-23-2014, 06:12 AM   #10
abhi.samyak
LQ Newbie
 
Registered: May 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
thanks @knudfl you have already given that link on one of my other thread I think I didnt clarify the problem i'm facing in earlier posts. The problem in my simulation scenario are
1. the packets are generated and processed only at the AGT level and no packets at RTR level
2. the cbr packets were no where in the output
3. other problem is about number of received packets please refer the post #7

Thanking in advance
 
Old 04-23-2014, 10:46 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 10 .
Quote:
you have already given that link on one of my other thread
`awk_scripts-04.2014.tar.bz2´ is a new package from today: 23´ April 2014.

Your questions : You can try asking at the "ns2 Forum's" :
* http://network-simulator-ns-2.7690.n7.nabble.com/
* https://groups.google.com/forum/?fro...forum/ns-users
I.e. I don't know the answers.

-
 
  


Reply

Tags
aodv-gaf, gaf, ns2



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
ns2 / AODV c++ implementation info_mimi Programming 2 11-01-2013 06:02 AM
aodv protocol snehsrivastava Linux - Newbie 1 03-16-2012 08:30 AM
help me regarding aodv implementation ! Shruti Linux - Newbie 21 03-12-2012 08:05 AM
implementation of aodv+ in ns-2.33 rashween Linux - Networking 0 07-07-2011 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 PM.

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
Open Source Consulting | Domain Registration