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

recording partial .nam files was Re: your mail



On Tue, 9 Nov 1999, Kim, Bong Ho (Bongho) wrote:

> I am recording "nam" file while ns running.
> I used command "$ns namtrace-all $nf"
> This record the entire simulation time.
> Can I specify the recording time range?
> 
> Ex) My simulation is from 0 to 10 seconds.
>       I want to record nam file from 5 to 10 second

Short answer: how would nam know the network topology and the current
state of queues etc at 5 seconds?

Long answer:  Interesting question. Why wouldn't 

$ns at 5.0 "$ns namtrace-all $nf"

work, given that it's accepted without complaint, and that 

$ns namtrace-all $nf

is arguably equivalent to:

$ns at 0.0 "$ns namtrace-all $nf"

anyway?

(okay, $ns at 5.0 "$self namtrace-all $nf" seems syntactically better
 to me, but you're not allowed to do that, and working your way
 through the topology and changes figuring out which events you
 can safely not record in the interim before 5.0 means you're really
 nam-trace-alling from zero with added functionality, so you'd have
 to reschedule this, analyse each event for long-term effects, etc.)

L.

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