add calculation of avg delay per packet