A Heuristic-Based Approach To Real-Time Tcp State And Retransmission Analysis