Created helper methods in client to update cwnd and retransmission timeout