LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2015, 10:59 AM   #1
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Rep: Reputation: Disabled
in aodv protocol the hello packet do not send at all


hi
i use aodv protocol that exist in any ns2 , but i check it and i undrestand that it do not send any hello packet, what should i do? i attach the aodv that i use and the tcl scenario file here.please help me.
Attached Files
File Type: txt aodv.cc.txt (35.2 KB, 48 views)
File Type: txt aodv.h.txt (9.6 KB, 66 views)
File Type: txt s.tcl.txt (4.0 KB, 30 views)
 
Old 01-11-2015, 11:16 AM   #2
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
and you can see the trace file,(the result of running this tcl file(#1) i attach here.in this file you can see that there is not any hello packet.
i have another question in trace file,in aodv format, where is the command that print the third culomn in trace file in ns2 ? it can be diffrent things like "LOOP", "---", "TTL" , "NRTE",... i know that these are for showing the reason of drop packet....
can i add an other reason to this? the thing that i like to print ...

so in two post i have 3 question :
1-why dont the aodv protocol send any hello packet?
2-where is the command that print the third culomn in trace file in ns2 ?(in aodv format)
3-can i add an other reason to drop packet? the thing that i like to print ...
Attached Files
File Type: txt s.tr.txt (220.1 KB, 20 views)
 
Old 01-11-2015, 11:42 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634
← Post #1 .

http://mailman.isi.edu/pipermail/ns-...ch/054268.html → →
→ " You need to coment the following 2 lines in aodv.h file "
#define AODV_LINK_LAYER_DETECTION
#define AODV_USE_LL_METRIC

Like this ns-2.35/aodv/aodv.h example ... here shown from line 51 :
Code:
/*
  Allows AODV to use link-layer (802.11) feedback in determining when
  links are up/down.
*/
/*   #define AODV_LINK_LAYER_DETECTION
*/
/*
  Causes AODV to apply a "smoothing" function to the link layer feedback
  that is generated by 802.11.  In essence, it requires that RT_MAX_ERROR
  errors occurs within a window of RT_MAX_ERROR_TIME before the link
  is considered bad.
*/
/*  #define AODV_USE_LL_METRIC
*/
/*
  Only applies if AODV_USE_LL_METRIC is defined.
  Causes AODV to apply omniscient knowledge to the feedback received
  from 802.11.  This may be flawed, because it does not account for
  congestion.
*/
... With the new created executable "ns235-hello",
your trace file will show ~8964 times (HELLO).


-

Last edited by knudfl; 01-11-2015 at 12:39 PM.
 
Old 01-11-2015, 12:43 PM   #4
mary1001
Member
 
Registered: Jul 2014
Location: Iran
Posts: 76

Original Poster
Rep: Reputation: Disabled
i did every thing as you say but i dont see any hello packet. the trace file after the changeing is this one i attach here.( beacuse the size of my trace file was big i divide it in two part and attach here s.tr and s2.tr)
Attached Files
File Type: txt s.tr.txt (212.5 KB, 12 views)
File Type: txt s2.tr.txt (186.7 KB, 9 views)
 
Old 01-11-2015, 02:12 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634
← #4 .

I got "hello.tr" 1.4 MB with $ ./ns235-hello s.tcl

The compressed `hello.tr.gz“ ( 127 kB ) is here ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing
 
Old 01-11-2015, 02:19 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634Reputation: 3634
P.S. : Compressed files can also be attached : As file.gz.txt

* You have a limit of 10 MB total space for all your attachments.
So it's a good idea to upload files as small as possible.

* Suggest : Use 'Google Docs' for big files. Limit = 15 GB.
 
  


Reply

Tags
aodv, aodv-hello, 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
AODV protocol implementation using C++ salma sindagiri Linux - Networking 1 11-21-2014 12:28 PM
regarding implementation of AODV-GAF protocol abhi.samyak Linux - Newbie 10 04-23-2014 10:46 AM
simulating AODV protocol in NS-2.35 nithish Linux - Wireless Networking 5 12-16-2012 06:05 AM
aodv protocol snehsrivastava Linux - Newbie 1 03-16-2012 08:30 AM
ns2-aodv hello packet indumit18 Linux - Software 0 03-05-2012 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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