LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   in aodv protocol the hello packet do not send at all (https://www.linuxquestions.org/questions/linux-software-2/in-aodv-protocol-the-hello-packet-do-not-send-at-all-4175530696/)

mary1001 01-11-2015 10:59 AM

in aodv protocol the hello packet do not send at all
 
3 Attachment(s)
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.

mary1001 01-11-2015 11:16 AM

1 Attachment(s)
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 ...

knudfl 01-11-2015 11:42 AM

← 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).


-

mary1001 01-11-2015 12:43 PM

2 Attachment(s)
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)

knudfl 01-11-2015 02:12 PM

← #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

knudfl 01-11-2015 02:19 PM

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.


All times are GMT -5. The time now is 04:24 PM.