From owner-freebsd-transport@freebsd.org Wed Oct 31 14:12:03 2018 Return-Path: Delivered-To: freebsd-transport@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75F2B10DAB45; Wed, 31 Oct 2018 14:12:03 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 133A776DA9; Wed, 31 Oct 2018 14:12:03 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id DEAAD8D4A241; Wed, 31 Oct 2018 14:12:01 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id E7B25D1F878; Wed, 31 Oct 2018 14:12:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id viR00HixoCVJ; Wed, 31 Oct 2018 14:11:59 +0000 (UTC) Received: from [192.168.1.88] (fresh-ayiya.sbone.de [IPv6:fde9:577b:c1a9:f001::2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 80E7FD1F874; Wed, 31 Oct 2018 14:11:59 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-transport@freebsd.org Cc: "Hackers freeBSD" Subject: Re: TCP RTT estimate for connections not using timestamps Date: Wed, 31 Oct 2018 14:11:58 +0000 Reply-To: freebsd-transport@freebsd.org X-Mailer: MailMate (2.0BETAr6125) Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-transport@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions of transport level network protocols in FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2018 14:12:03 -0000 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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"