tcp: improve rtt estimation with rate sampling