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

Re: [ns] Mean Loss Rate Based on Trace File



you can write a simple awkj script to calculate the no of drops
---
BEGIN {c=0;}
$1=="d" && $2="0" && $3="1" && $5="tcp" {c++;}
END {print c;}
---
this awk script will find the no of drop s between nodes 0,1 the traffic
being TCP. this should get you started.

Debo

On Wed, 23 May 2001, cwlau wrote:

> Hello
> 
> Since I am new to ns, I don't know how to calculate
> the mean loss ratio between the sender and the
> receiver with several nodes in between.
> 
> Could someone please tell me how can I based on
> the trace file "+" enqueue, "-" dequeue and "d" drop ?
> 
> Thank you very much.
> Bye.
>