AWK script for Trace file of NS3

1,080 views
Skip to first unread message

Kuldeep Singh

unread,
Jul 2, 2015, 1:43:38 AM7/2/15
to ns-3-...@googlegroups.com
Dear Friends, I am a new user of NS3. As NS3 trace (.tr) file format is different from NS2 trace file format. So please anyone can provide me some awk script which can read data from NS3 trace file( .tr) file. or some other mechanism to calculate delay, throughput, packet delivery ratio.

Thanks in Advance

Konstantinos

unread,
Jul 2, 2015, 5:24:05 AM7/2/15
to ns-3-...@googlegroups.com, kulde...@gmail.com
Hi Kuldeep,

You can modify the 'ns2' awk script to read/understand the NS3 format.
There is also tracemetrics tool (http://tracemetrics.net/) that can analyse the trace files but it is based on an earlier ns-3 trace which may have changed since then.

These are based on analysing the trace files. Nevertheless, you can use FlowMonitor and/or the statistics framework within your scenario to calculate those metrics.
Examples available throughout ns-3.

Regards,

Kuldeep Singh

unread,
Jul 21, 2015, 3:29:33 AM7/21/15
to ns-3-...@googlegroups.com


Thanks Konstantinos..

I used that tool you told me..but i did not get all the parameters like delay and throughput and jitter etc. so if you can send me a awk script then it will be very helpfull to make another awk scripts for other parameters.


sai 3333

unread,
Feb 22, 2018, 12:48:40 AM2/22/18
to ns-3-users
Can u send me source code of your project until what you have done
I couldn't calculate the parameters .
Can u tell me how to do ??

tej

unread,
Apr 3, 2018, 2:41:38 AM4/3/18
to ns-3-users
hai,
   I got DSDV,DSR trace files.please help me for awk text processing.
Reply all
Reply to author
Forward
0 new messages