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

Re: Bugs in errmodel.cc



Hi,

  I am assuming these problems don't exist in NS2.0? Can someone indicate
  what is the reliability of errormodel in NS2.0 in the mac/lan environment?

  Thanks in advance.

Javier Gomez-Castellanos wrote:

> After fixing the 2 bugs in errmodel.cc, the install-error function
> defined in ~ns/tcl/ns-lan.tcl is able to create errors on a lan when
> using:
>
>         $em target [$channel_ target]
>         $channel_ target $em
>
> but not when using
>
>         set ll [[$ns_ link $src $dst] link]
>         $em target [$ll target]
>         $ll target $em
>
> has somebody seen the same problem?, thanks
>
> --Javier
> -------------------------------------------------------------------------
> Javier Gomez Castellanos
> Columbia University, NY
>
>
> On Fri, 6 Mar 1998, Biaz Saad wrote:
>
> > On Fri, 6 Mar 1998, John Heidemann wrote:
> >
> > > >>  2) There is a typo, we should have : bind("errPkt_", &errPkt_);
> > >
> > > The typo is almost certainly a bug,
> > > but in general, things which are bound (with bind())
> > > don't need to be initialized in C++
> > > because they're initialized in tcl in the
> > > tcl/lib/ns-default.tcl.
> > > errPkt_, errByte_, and errTime_ are all init'ed there.
> > > I'm not sure why therefore you observed them starting with high values
> > > (perhaps because of the typo?).
> > >
> > >    -John Heidemann
> >
> >
> >       Yes, with the typo, errPkt_ is not bound correctly and errPkt_ in
> > C++ is not initialized through tcl/lib/ns-default. Therefore, it starts
> > sometimes with very high values such that you do not get any errors for a
> > whole simulation.
> >
> >                                               Saad
> >
> > ___________________________________________________________________
> > Saad Biaz                             Abou Youssef
> > Graduate Research Assistant           Office : (409) 845 50 07
> > Department of Computer Science                Home   : (409) 862 91 35
> > College Station, TX, 77843-3112
> > ___________________________________________________________________
> >
> >