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

Re: Web Traffic Simulation



Hi, Felix and Arnaud,

I just added a patch to webtraf.cc. You can find the patch at
http://mash.cs.berkeley.edu/ns/ns-problems.html

Go to ns 2.1b6 section. Sorry I didn't get around to fix it since last
December. Let me know if you find further problems.

- Haobo

On Wed, 23 Feb 2000, Felix Hernandez Campos wrote:

> Lloyd Wood wrote:
> 
> > Read:
> > http://www-mash.cs.berkeley.edu/dist/archive/ns-users/0001/0210.html
> > http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9912/0068.html
> >
> > It'll probably fix itself if you upgrade your ns.
> >
> 
> Neither the most recent release (ns-2.1b6) nor the daily snapshot are correct. It
> looks like the patch hasn't been applied... Arnaud Legout already pointed this
> out, and I couldn't find an answer to his message
> (http://www-mash.cs.berkeley.edu/dist/archive/ns-users/0001/0228.html).
> 
> > L.
> >
> > <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
> >
> > On Wed, 23 Feb 2000, Felix Hernandez Campos wrote:
> >
> > > Date: Wed, 23 Feb 2000 20:09:44 -0500
> > > From: Felix Hernandez Campos <[email protected]>
> > > To: NS-USERS <[email protected]>
> > > Subject: Web Traffic Simulation
> > >
> > > I'd tried to run ns/tcl/ex/web-traffic.tcl and I got a strange result. The
> > > simulation aborts well before its termination time, returning the following
> > > message:
> > >
> > > done pages 10 != all pages 9
> > >
> > > The problem seems to be in ns/webcache/webtraf.cc, where the destructor is:
> > >
> > > // XXX Must delete this after all pages are done!!
> > > WebTrafSession::~WebTrafSession()
> > > {
> > >         if (donePage_ != curPage_) {
> > >                 fprintf(stderr, "done pages %d != all pages %d\n",
> > >                         donePage_, curPage_);
> > >                 abort();
> > >         }
> > >         ...
> > > }
> > >
> > > I don't understand webtraff.cc well enough to tell whether the condition in
> > > the if statement is wrong or something else is happening. Could someone tell
> > > me how to solve this problem? Thanks for your help.
> > >
> > > --Felix Hernandez
> 
>