[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to get the throughput out for ftp application/tcp agent
- To: ns-users@mash.cs.berkeley.edu
- Subject: Re: how to get the throughput out for ftp application/tcp agent
- From: Urs Thuermann <thuerman@ibr.cs.tu-bs.de>
- Date: 29 Apr 1999 14:21:53 +0200
- In-Reply-To: cardwell@cs.washington.edu's message of "26 Apr 1999 09:41:23 +0200"
- References: <199904260600.XAA03286.groupid@maxwell.ee.washington.edu> <Pine.LNX.4.02A.9904260007500.3532-100000.ns-users@saba.cs.washington.edu>
- Sender: owner-ns-users@mash.CS.Berkeley.EDU
> 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