Basically, those protocols will find routes for packets automatically, and
you cannot determine in advance. But one method may work: you can enable
recvRequest function only at nodes you want the packets pass. In your
example, you only let node2, 3 and dest receive route requests and reply,
and let all other nodes discard requests without doing anything. I think it
should work for at least aodv and dsr, not sure for dsdv and tora.


On 4/7/07, tdinhtoan <[EMAIL PROTECTED]> wrote:
>
>
> hi,
>
> I am simulating an ad-hoc wireless network. The nodes do not move (a kind
> of wireless mesh network). Thus for a given pair of source node and
> destination node, I determine the routing path between them in advanced.
>
> i.e. the routing path: src -> node2 -> node3 -> dest.
>
> I establish an CBR flow (UDP flow) from the src to the dest, and would
> like to route the packets from the src to the dest over this fixed path.
> This is some kind of Static Routing.
>
> How can I do? Which routing agent I should use: DSDV, DSR, TORA, or AODV?
> Could anyone give me some examples or guides?
>
> Thank you very much.
>
> Sincerely,
> -toan.
>
> PS: I hope it can be done without modifying the ns2 source code.
>
>

Reply via email to