Hi Faraz,

You can modify the recv function in your TCP layers to collect
ACK/Data packets, by using the header-access functions for the
supplied packet.

I would then create a counter that increments whenever the desired
packet is received.

Then create a timer that expires / resets at the desired window size,
and every time the expire function is called, write the system time
and the pkts/window size to an external file, then reset the counter.

You can then use something like XGraph to plot the data.

I've done it before and it works fairly well! If you need code
samples, let me know - I may be able to provide them.

Best,
Scott


On Wed, Feb 11, 2009 at 6:09 AM, Syed Faraz Hasan
<[email protected]> wrote:
>
> Hi everybody,
>
> I have simulated a wireless link in which a mobile node passes by an access 
> point while transmitting TCP data to it. How can I calculate average 
> throughput for entire data transfer. I am using tracegraph and NS visual 
> trace analyzer; both display resulting graphs for throughput. Is there any 
> other software (or an option with in these softwares) to evaluate the 
> resulting throughput; I mean its value instead of graph.
>
> Please write back soon.
>
> Faraz
>

Reply via email to