[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] stopping nam trace output before simulation ends



On Fri, 10 Nov 2000, Haobo Yu wrote:

> ns does not have a facility that allows you to do it. However, since you
> can pipe nam trace you can do whatever you want with the traces on the
> fly. For instance, you can pipe it to a little awk script that does
> exactly the things you want.

Yes, but if you're only interested in all the traffic for a specific
time, yoyu have to record and discard the rest, and that adds to
simulation overhead. A way of being able to specify times of interest
for trace-all to record would be useful...

$ns at 10.0 "$ns trace-all on"
$ns at 20.0 "$ns trace-all off"

say. A quick C++ test of a boolean variable would be efficient...

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>