Measuring a TCP stream with TCP event analysis