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

Re: how to get the throughput out for ftp application/tcp agent



> You may be running into a bug in int Acker::update(). Make sure your
> version has something like:
> 
> 	  int next = next_;
> 	  if (seq >= next && seq <= maxseen_) {
> 		  seen_[seq & MWM] = numBytes;
> 		  while (seen_[next & MWM]) {
> 			  numToDeliver += seen_[next & MWM];
> 			  ++next;
> 		  }
> 		  next_ = next;
> 	  }
> 	  return numToDeliver;
> }

I have tried the TraceApp, too, and in ns-2.1b5 the Acker::update()
function looks like what you postet.

However, the TCP/Sink never calls the revc{} procedure of TraceApp.

What else cna be the reason?  I need to measure TCP throughput, too.


urs