[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] Trivial question about TCPSink
Hi all,
I am new to NS. Can you please help me with the following trivial
question?
I am using a variation of the traditional dumbbell shaped topology with
both UDP (CBR) sources and TCP (infinite FTP) sources. I am trying to mix
these two traffic in a common bottleneck link that has less capacity than
compared to the rate at which the sources generate traffic. When I increase
UDP traffic I expect TCP througphut over time to decrease due to the TCP
congestion control.
The question is that I need to collect bandwidth (in Mbps) at the
TCPSink. With, Agent/LossMonitor sink for the UDP case, I use "bytes_" in
the oft-repeated "record" function to collect statistics. With TCPSink I do
not have a similar data member.
I tried using the TCP agent's "ndatabytes_", but it gives the sender's
view of the TCP bandwidth. What I need is the reciever's
(TCPSink's) view of TCP bandwidth recieved over time. Do I need to use
"acks" at the sender? Or is there any other way?
Thank you for your time
/Srihari