Marilag Ang Malaya

Tuesday, August 25, 2009

NS 2 Pre-processor files

I made some new tools to preprocess my NS2 tracefiles before importing the data into OpenOffice Calc for the actual calculations and graphing.

The first is a throughput accumulator. It simply takes a file with two columns (time and packet size) and aggregates the bytes into equal-sized-time bins.

$ cat data | ./accumulate.py > throughput.csv

The second is a jitter calculator. Given the a file with the packet arrival times, it calculates the first derivate, or jitter. It is also called inter-packet arrival times.

$ cat data | ./difference.py

These two tools use pipes so you can easily input your output from grep, awk and sed.

Tools:
  1. Throughput accumulator
  2. Jitter calculator

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home