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

Re: [ns] procedure-core dump



Thanks, Debo,
    I finally found the problem is not the "measure" procedure,
    instead, as long as I devide the trace-queue into several file,
    one file for a period time, the error comes out.
    p.s. through the simulation, there are about 20 files.

    by the way, could you teach me how to use
    $ns_ monitor_queue <n1> <n2> <qtrace> <optional: sampleinterval>
    I try hard to find out what the <qtrace> is, but failed.

> This is not an answer to your question but you may want to write shell
> scripts to monitor bandwidth of each flows. Maybe that will easier.
>
> Debo
>
> On Tue, 3 Oct 2000, Ken wrote:
>
> > Hi, ns2-users,
> > I want to measure the bandwidth of serveral flow every period of time,
> > so I wrote the following script
> >
############################################################################
> > #################
> > #for {set i 0} {$i <= 9} {incr i 1} {
> > # set file [open $i.tr w]
> > # $ns at [expr ($i+0.0000010)*10] "$ns trace-queue $n3 $n4 $file"
> > # $ns at [expr ($i+0.9999950)*10] "close $file; puts stdout $i; measure
> > $i.tr"
> > #}
> >
############################################################################
> > #################
> >
> > the 'measure' will read for the file, and select the 'r' entry to
calculate
> > bandwidth,
> > it worked since I have try for many times.
> >
############################################################################