[ns] What is the time interval to send complete Routing Table in DSDV?
jeevesh sharma
jeevesh_jadavpur at yahoo.co.in
Tue Apr 25 04:26:47 PDT 2006
Hi All,
What is the time interval to send complete Routing Table in DSDV? From the code it looks that prep_(15) constant define the interval as 15 seconds. But when i changed it to prep_(6) then also i am getting the same timing for the message packets send by the perticular node. Packet delivery ratio and average end-to-end delay is also same.
I followed the procedure give below to recompile the ns.
(1) make depend.
(2) make clean
(3) make
Can anyone tell that what is wrong with me? I am sending the code of dsdv.cc and dsdv.h below for the help. I am using ns-2.29 on Redhat 9.0.
Code from dsdv.cc
DSDV_Agent::DSDV_Agent (): Agent (PT_MESSAGE), ll_queue (0), seqno_ (0),
myaddr_ (0), subnet_ (0), node_ (0), port_dmux_(0),
periodic_callback_ (0), be_random_ (1),
use_mac_ (0), verbose_ (1), trace_wst_ (0), lasttup_ (-10),
alpha_ (0.875), wst0_ (6), perup_ (6),
//alpha_ (0.875), wst0_ (6), perup_ (15),
min_update_periods_ (3)
Code from dsdv.h
// DSDV constants:
double alpha_; // 0.875
double wst0_; // 6 (secs)
double perup_; // 15 (secs) period between updates
int min_update_periods_; // 3 we must hear an update from a neighbor
// every min_update_periods or we declare
// them unreachable
jeevesh kumar
---------------------------------
Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
More information about the Ns-users
mailing list