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

Re: [ns] goodput calculation?



one way to calculate goodput for a tcp flow would be to take stats from
the done procedure. you can find out how many rxmits, xmits, acks etc.
then you can find out how many packets actually got sent. you can also
find seqno.

debo

On Sun, 9 Sep 2001, Xiaojun Cao wrote:

> Hi, ns-users,
> I have read all previous discussion on Good Calculation? But I am still
> confused which is the correct method.  I just want to calculate the goodput
> for the whole system. So it should exclude the duplication packet which
> maybe is a retransmission. Can I get this in following way:
>     Parse trace file, goodput=sum (all received TCP packets) - sum (received
> TCP packets have flag of "---A---")
>     received TCP packets:  TCP packets whose event is "r "
> 
> I dont think this is right. but how can I get to know a received packet is a
> retransmission of previous received packet from the trace file.  It seems
> that they should have same sequence number. If so, how to use perl or awk
> deal with the trace file? That also means perl script should  compare it
> with all previous sequence numbers which the perl script have parsed?  ...?
> Is there any better way to get goodput?
> 
> Thanks
> X. Cao
> 
> 
> 
> 
> 
>