[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] ad-hoc protocols simulation



Hi,
If I am not mistaken, target_ you have mentioned about
is nothing but a connector(NSObject). In case of
connector it is assumed that the node has only one
neighbour. So in this case during the connection set
up the target_ is set to the neighbour of the given
node. Thus send(p, h) does the target_->receive(..) it
basically calls the receive of its neighbour.

This might help you.

Regards,
-Sameer Tilak.

--- Srinivasan <[email protected]> wrote:
> hi all,
> I am trying to simulate a table-driven multicasting
> protocol for ad-hoc
> networks. I'v been looking into the implementation
> of DSDV to understand how
> routing tables are exchanged. my observations abt
> DSDV are :-
> 
> periodic advertisements are triggered with the
> command :-
> s.schedule ( helper_, periodic_callback_,
> jitter(..));
> 
> NOTE : schedule takes the foll arguments (
> <Handler>, <Event>, <delay> )
> 
> When I trace the code sequence I land in DSDV_Agent
> :: helper_callback
> it has the foll piece of code :-
> 
> s.schedule ( target_ , p, jitter(..));
> 
> where p = packet which has the present state of the
> routing table
> ( packet derives from Event !! )
> 
> my question is : Is this the one responsible for
> advertising the
> routing table ??? if so what is this " target_ " ???
> also in a general sense i don't see any
> intializations for "target_"
> what is this & where is it set ??
> 
> any help is appreciated...
> thx,
> srini
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/