Removing retransmitted packets from timeout calculation