Re: [ns] calculating throughput using AWK

2007-03-28 Thread salcaraz
Iqbal: I have modified script1 for you, and I have named 'script2' script2 is a linux script, so you must run it in the linux shell. I hope that you would need change only the TMP and GRAPHS variables to your system, and rename yor ns-2 trace file to 'out.tr' Then, execute with: $script2

Re: [ns] calculating throughput using AWK

2007-03-27 Thread wacky
could you please tell me how to execute this file, i mean exactly what command should i type in, i saved this file as "throughput.awk"... then i changed the cat out.tr ( from $TMP/out.tr | perl column 3 0 2 1 | sort -g | ) to nodes.tr i tried awk -f throughput.awk > outfile the I tried the comman

Re: [ns] calculating throughput using AWK

2007-03-27 Thread salcaraz
Hi, Below I have write my awk script to calculate throughput. The columns that you need are: column 7: TCP bytes sent column 8: interval then the throughput is column7/column8 And, this script also calculates: bytes drops, packets drops, bytes arrivals als packets arrivals. I'm sorry, bu

[ns] calculating throughput using AWK

2007-03-26 Thread paul yoong
Hi all, I want to calculate the throughput of a link using awk. Can anyone tell me how to do this for a simple 2 node link. If anyone could direct me to any example on the web that would be great. Thanks ___ Now you