[ns] throughput in TCP Vegas
Thu, 25 Jan 2001 14:13:24 +0000 (GMT)
On Thu, 25 Jan 2001, Michele R. wrote:
> if I have a sender node where I attach a tcp/vegas agent and I
> connect it by some router nodes to another node where there is
> attached a tcpSink,how can I count the bytes that my tcpSink
> receive to calculate its throughput by num_bytes_received / time?
increase a counter with your own recvBytes() method in TcpSink,
replacing any dummy method that's already there. I'm lazy and I only
had one sink, so I just stuck a printf in that instead to give bytes
received by the application; captured the output, generated a
cumulative... and posted the diffs to this list.
you might want to create a bound variable instead; this is a common
enough query that a standard way of doing it would be good. All the
TCP niceties are at the sender side...
> I don't know how I can count the bytes!
> I cannot use "tcpSink set_bytes" in my procedure record!I don't want to use lossmonitor or others!
> I want to use tcpSink!
> thank you for your help.