[ns] Loss Detection

Dhiman Barman dhiman@cs.bu.edu
Tue Apr 23 14:00:07 2002


If you want to track, congestion drops, look at drop-tail.cc. 
Drop happens when q_->length() > qlim_. You might do something from
thereonwards.

To track random drops, check errmodel.cc (recv function). Pkt is
dropped after pkt is corrupted. 

You might want to set variable(s) or signal something from there. 

-Dhiman

Ozgur Baris Akan claims the following:
> 
> Thank you very much Karina. However, I know I can see the trace file. I
> need a way that can signal me during the simulation, i.e., some function
> or internal call that I can use in my tcl script. I am not sure if there
> is such functionality of ns or not.
> 
> Thanks.
> 
> Ozgur
> 
> 
> On Tue, 23 Apr 2002, Karina Karla C. de Oliveira wrote:
> 
> >
> > Hi.
> >
> > You can see the trace file. The line that contains a "d" letter in the
> > begin, indicates that the packet was "dropped".
> >
> > More information about "trace file" format, can be obtained in the ns
> > manual.
> >
> > Karina Oliveira.
> >
> > On Tue, 23 Apr 2002, Ozgur Baris Akan wrote:
> >
> > >
> > >
> > > Dear All,
> > >
> > > I need to find a way to perform some calculations at packet loss event in
> > > the simulation. How can I find out that a packet is lost during
> > > simulation? Any reference or help is appreciated.
> > >
> > > Thank you in advance.
> > >
> > > Ozgur
> > >
> > >
> >
> >
> 

-- 
Penguin Trivia #46:
	Animals who are not penguins can only wish they were.
		-- Chicago Reader 10/15/82