
README for analysis scripts

1) Do initial analysis of captured log files

For dataset-A traces, only the receiver-side logs are needed;
for example:
  $ ./do-analyse-dsA data/dataset-A/adsl1/cbr1.0/20090627-1250.log \
                     results/dataset-A/adsl1/cbr1.0/20090627-1250
takes a dataset-A log file as input, writing output files with matching basename.

For dataset-B traces, both sender- and receiver-side logs are used;
for example:
  $ ./do-analyse-dsB data/dataset-B/adsl5/cbr1.0/20100501-0222.log         \
                     data/dataset-B/adsl5/cbr1.0/20100501-0222.pathprobes  \
					 data/dataset-B/adsl5/cbr1.0/20100501-0222.packetpairs \
					 data/dataset-B/adsl5/cbr1.0/20100501-0222.icmp        \
					 data/dataset-B/adsl5/cbr1.0/20100501-0222.path        \
					 results/dataset-B/adsl5/cbr1.0/20100501-0222
takes the dataset-B logfiles for one trace, and writes the output with matching basename.


2) Correct clock skew in calculated transit times

This script only requires the basename (for both the input and output);
for example:
  $ ./do-correct-skew results/dataset-A/adsl1/cbr1.0/20090627-1250
will use the transit file (generated in step 1), and run the skew correction
algorithm, generating a corrected transit file.


3) Calculate "queueing delay" from transit times

This script only requires the basename (for both the input and output);
for example:
  $ ./do-queueing-delay results/dataset-A/adsl1/cbr1.0/20090627-1250
will use the corrected transit file (and the minimum transit time) to calculate
the approximate queueing delay.

