[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Problem with monitoring TCP throughput
Hi,
I don't know if this will help but you can monitor bytes sent by using
the standard variable ndatabytes_ (tcp.h). I can send you a script if you
want.
Regards,
Lucas
On Mon, 6 Mar 2000, Chris Develder wrote:
> Hi,
>
> Being a novice NS user, I posted a question last week concerning monitoring TCP
> throughput. Thanks to all who replied, for the replies did help me a lot!
>
> One of you referred to
> http://www-mash.cs.berkeley.edu/dist/archive/ns-users/9911/0235.html, but the
> source code mentioned there seems to be out-dated. Currently, I'm using ns2.1b6,
> and I tried to adapt the code, but it didn't seem to work. When running ns on a
> test script, the bytes_ variable isn't recognized. ("No such variable.").
>
> In the attachments you find the original files (tcp-sink.h, tcp-sink.cc) and
> the things I modified (tcp-sink.h.diff, tcp-sink.cc.diff). Also, in
> ns-default.tcl, I added the line "Agent/TCPSink set bytes_ 0".
>
> Could anybody tell me what I did wrong?
>
> Kind regards,
> Chris.
>