Hi,

Another way to do it would be to include the code for the modified dsr in
the dsragent.cc.
Allow the nodes to select which logic to follow - you can
implement this by using a mod function with the node_id. This way it's easy
to set a percentage of the nodes to use each version of the logic.

It also saves you trouble if you have to add code to both of your versions
of  DSR, e.g. tracing commands.

Hope this helps.

Bryan
Bryan's NS-2 Dynamic Source Routing FAQ http://www.geocities.com/b_j_hogan

>
> Hi everyone,
> In my simulation, 50 random mobile nodes are working under DSR routing
> protocol ...
>
> By a reason, few RANDOM nodes have to treat a MODIFED DSR (so I've editted
> DSRagent.cc as DSR_2.cc in DSR2 folder)
> I wanna implement these different routing protocols SIMULTANEOUSLY in my
> testbed :   DSR beside modified DSR
>
> How can I FLAG in TCL file that one or few node uses MODIFIED dsragent.cc
> (DSR_2.cc) and rest use the NORMAL dsragent.cc?
>
> Regards,
> Alex Nixad.
>


Reply via email to