A python script to parse through ns2 tracefiles, calculate the throughput and plot the throughputs against packetsizes using gnuplot.
Make sure you have already generated the tracefiles for the different packetsizes and named them as 'packet_size_(packetsize).tr'
eg. For a tracefile for packetsize 64 bytes, the name should be packet_size_64.tr
usage: python pythonparser.py <tracefile1> <tracefile2> ..........
This will generate a gnuplot script file ready to plot the values stored in a DAT file.
python pythonparser.py packet_size_*.tr (for Linux and Unix)
python pythonparser.py packet_size_64.tr packet_size_128.tr packet_size_256.tr ...... (For Windows cmd)
A file called throughputplot.gp will be created
gnuplot throughputplot.gp