invoke function writes only the overall traffic statistics to file