TCP RTT estimate for connections not using timestamps

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Wed Oct 31 14:12:03 UTC 2018


On 31 Oct 2018, at 14:04, Jacques Fourie wrote:

Copying to transport@  please respect Reply-To to there.


> Hi,
>
>
> While testing with traffic generators that don’t enable the TCP timestamp
> option I noticed a couple of cases where tcp_xmit_timer() was called with a
> 0 value for rtt with the current smoothed rtt (t_srtt) non zero. This leads
> to a left shift of -1 which is undefined. Looking at the code for the case
> where timestamps are enabled I see that tcp_xmit_timer() is always called
> with TCP_TS_TO_TICKS(t) + 1 for the rtt. Do we need a +1 in the non
> timestamp case as well?
>
>
> Thanks,
>
> Jacques
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-hackers mailing list