Skip to content

A python script to parse through ns2 tracefiles, calculate the throughput and plot the throughputs against packetsizes using gnuplot.

License

Notifications You must be signed in to change notification settings

thebatman1/PythonParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

PythonParser

A python script to parse through ns2 tracefiles, calculate the throughput and plot the throughputs against packetsizes using gnuplot.

Usage

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.

Example

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

About

A python script to parse through ns2 tracefiles, calculate the throughput and plot the throughputs against packetsizes using gnuplot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages