[ns] Multi-interface support howto
ramon at tlmat.unican.es
Thu Jan 18 04:02:57 PST 2007
In addition to the answers we have given before, see some more answers
At 12:00 17/01/2007, you wrote:
>the variable MAX_CHANNELS i have declared it like a follow in mobilenode.h :
>#define MAX_CHANNELS XXX
>but which value? or without value?
you do need to specify a value, depending on your own interests. This will
set the maximum number of interfaces per node; i guess that realistically,
having more than 8 would be difficult.
>in channel.cc Listing 4.4:
>nextX_ and prevX_ should changed to nextX_ [this->index()] and prevX_
>in the whole channel.cc. right?
Yes, as stated in the document, just before the listing: "Note that this
has to be changed throughout the whole channel.cc file".
>as i understand i can extend one of the protokol agents: AODV, DSDV or
>i have choice AODV.
Good, probably we can extend the document with this experience. I'm not
sure about TORA, since we have not seen that code at all.
>MAX_IF should be declared in AODV.h with
>but which value?
See my previous answer.
>in AODV.h the AODV-class i found ifqueue i chnage it to
>ifqueuelist[MAX_IF], and i found Trace *logtarget; but not target. i add
>targetlist[MAX_IF] just like in Listing 5.1.
I won't delete ifqueue, since this is needed if you want to keep the legacy
behaviour of the simulator. Keep the logtarget, since you need it for
tracing support and add targetlist, as stated in Listing 5.1.
>in which mothod in AODV.cc i should add the
>Listing 5.3, Listing 5.4 and Listing 5.5 ?
>in Listing 5.5 Iface and cmnh are not declared !
All these questions have been already answered in my previous email.
>ps. do you have the changes as a dokument?
No, since the main ns is being updated quite frequently and different
people make different changes to the core files, we decided not make any
code/patch available, but rather provide an extensive discussion of the
required modifications, so that people can do it by themselves.
More information about the Ns-users