[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Use of "LossMonitor Agent with TCP Traffic"
there was a related query in the recent past. please check the archives. U
may need to add to the tcp-sink.cc
void TcpSink::recvBytes(int datalen)
{
recvBytes_ +=datalen;
}
and can write the thruput to a file as mentioned in MarcGreis tutorial
using the recvBytes_ (need to declare this as a new otcl variable)
Renjish.
"Man who jump off cliff jump to conclusion!"
confucius
On Fri, 23 Feb 2001, Titus Awotula wrote:
>
> Hi NS users,
> I will be gateful if someone could explain to me how the LossMonitor agent
> could be used with "One Way TCP sender"
> I am trying to get the throughput for a traffic using TCP as transport. The
> TCP/Sink agent could not take statistic of the traffic at the destination,
> and if I use the LossMonitor agent, it could not send acknowledgement or do
> other congestion control stuff, thus the "three way hand shake" of TCP may
> not be established.
> Please can somebody help. Should I forget the combination of LossMonitor
> and TCP/Sink and find out how to use the Snoopy objects for throughput
> calculation.
> Titus Awotula, MSc AMIEE
> Dept. of Electronic & Electrical Engineering
> Loughborough University
> Loughborough.
> Leicestershire LE11 3TU
> Tel: Office (01509) 227079
> Home (01509) 558102
> Fax: (01509) 227014
>