[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trace/Loss
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