[ns] The details of DSR implement?

Yuan Yuan yyuan@glue.umd.edu
Sat Apr 13 05:15:05 2002


I can tell you some info as far as I know. But it maynot be right. hope
someone will correct me if I am wrong.

> Here is some of my questions:
> 1: When and how the first packet to send is created
> and sent off?

I am not sure what is your meaning for the first packet. I suppose it is the
first router query. the route query is sent when the packet come and no
route for it, it will triger the query.


> 2: How can the function recv() be called,by the methods
> of scheduler? I have read the source code of scheduler.h/cc,
> but found no answer.

acutally, it is depend on the protocol, schedluar.h/cc use to schedule the
packet and let it be procceed sequencely. such as the packet is outgoing
packet, after DSR , it will goes to ip stack. check the ns by example for
some detail answer.

> 3: There are many trace() functions in the source
> code of DSR,what's meaning of them?
I think trace is use to debug and print out the info step by step.

> 4: What's the usefulness of the class "requesttable"?
> And the meaning of a "entry".
that is feature of DSR, when it initailate a new route query, it will
regiester the query in the requestable. check the intenet draft for dsr for
detail about how to use requesttable.

> 5: IP header? Is it used for the real address location?
not sure what is your question. IP header just the IP header for the packet?
something wrong?


hope it will help you out a little bit.