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

Re: [ns] create-trace



$ns trace-queue $n1 $n2 $file will trace the queueing events (+, -, d) between 
n1 and n2 and write them to file. Then you could post process with awk :

# very basic counter.
{
	if ($1 == "d") x++;
}
END {
	print x;
}


>Date: Tue, 27 Jun 2000 07:25:31 -0500 (CDT)
>From: Smitha Rao <[email protected]>
>To: [email protected]
>Subject: [ns] create-trace
>MIME-Version: 1.0
>
>Hi,
>Could someone give me a simple tcl code that traces the packets that are
>dropped at q queue between 2 routers?
>The documentation says that on should use
>
>$ns create-trace Drop $d $r0 $r1
>
>where d is the file handle and r0 and r1 are the routers
>
>what does this return and how shud it be used? doing just this gives and
>empty file with no data
>thanks
>smitha
>

Tarik