[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trace/Loss
Hi Tiki,
Thanks for your reply. Do you understand the difference between
create-trace Loss and create-trace Drop. It looks like one creates
a Trace/Loss and the other creates a Trace/Drop. One prints an "e"
in the trace file and the other a "d". other than that, I don't see
any difference, does anyone else?
Chris
On Thu, 3 Feb 2000, Tiki Suarez wrote:
> Chris,
>
> Chris Parsa wrote:
>
> > Hi,
> >
> > Does anyone know where I can find the code for Trace/Loss ? I have
> > the following code in my script:
> >
> > #create error model
> > set em [new ErrorModel]
> > $em set rate_ 0.02
> >
> > set tr [$ns create-trace Loss $f $n0 $n1]
> > $em drop-target $tr
> >
>
> try
> set tr [$ns create-trace Drop $f $n0 $n1]
>
>
> >
> > It runs, and marks all the dropped packets with an "e" in file "f".
> > What I don't understand is, it looks like create-trace creates a
> > Trace/Loss object, but I cannot find this object.
> >
> > Also, I don't really understand what $em drop-target $tr does.
> >
>
> $em drop-target $tr
> places those dropped pkts into a file - check $f - it should be a
> file that has been opened. The packets will be dumped into that file.
>
> >
> > Chris
>
> hope this helps
>
> -- tls
>
>