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

Re: [ns] how to compute TCP's throughput



Hello,

You can calculate the tcp thruput at the source in the following manner,
#the following gets the total bytes sent by the tcp source
 set total_sent_tcp_src_1 [$tcp_src_1 set ndatabytes_]
#the followig gets the total bytes retransmitted by the source
        set total_ret_tcp_src_1 [$tcp_src_1 set nrexmitbytes_]
#thruput is then the (total bytes sent - total bytes retransmitted)/time

Thanks.

Aashish Patil
On Sun, 16 Dec 2001, jie zhang wrote:

> hi,
>    I am learning ns and I encounter a problem.I donnt
> know how to compute a TCP flow's throughput.Is there a
>
> program available.
>
> Sincerely yours,
> Jiezhang
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>