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

Re: [ns] throughput



Michele

You should change TCPSink, so that it is able to keep the number of bytes
received in a field that you can call "bytes_", like the LossMonitor.

I remember that someone posted the instructions to do this some time ago.
Check the archives!

Carlos


On Thu, 25 Jan 2001, Michele R. wrote:

> i will try to be more clear.
> in the marc greis tutorial in the VIII chapter there is an example where he writes:
> 
> #How many bytes have seen received by the traffic sinks?
> set bw0 [$sink0 set bytes_]
> 
> and so on...where sink0 is "new agent/LossMonitor"....
> 
> but if i have:
> 
>  set sink0 [new Agent/TCPSink]   
> 
> I cannot do what marc greis does!
> so what can i do?
>