[ns] Dynamic routing during simulation time
Oliver Holland
oliver.holland at kcl.ac.uk
Tue Sep 10 10:45:18 PDT 2002
Hello all,
I have some simulations to prepare urgently, hence a few questions about
routing. Essentially, I have a procedure that is run after the simulation
is started (ie. at [$ns now] > 0) which sets links up/down depending on the
dynamic conditions at that time. "rtmodel-at" routing would be ideal, but I
can't set it to dynamically change the routing after the simulation has
started. It only works if you set "rtmodel-at X.X down n(0) n(1)" before
"$ns run" in the program order. Why is this? Is the rtmodel queue only
prepared at "$ns run", and not changable afterwards. Also, I've read about
the status_ of the DynaLink class, but I can't find a way of testing whether
a link is up/down using rtmodel (ie. as in "$link up?").
Will I have to use manual routing to sort out these problems, or can you
help me (please).
Thanks.
Best Regards,
Oliver Holland
oliver.holland at kcl.ac.uk
More information about the Ns-users
mailing list