some useful scripts to calculate goodput, throughput,..