Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932629Ab1ESICL (ORCPT ); Thu, 19 May 2011 04:02:11 -0400 Received: from alternativer.internetendpunkt.de ([88.198.24.89]:46065 "EHLO geheimer.internetendpunkt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932304Ab1ESICI (ORCPT ); Thu, 19 May 2011 04:02:08 -0400 To: Alexander Zimmermann Subject: Re: [PATCH] tcp: Implement a two-level initial RTO as per draft RFC 2988bis-02. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Date: Thu, 19 May 2011 10:02:07 +0200 From: Hagen Paul Pfeifer Cc: tsuna , David Miller , , , , , , , , In-Reply-To: <8C5DF277-320D-4DEB-A133-EEC301DE58DC@comsys.rwth-aachen.de> References: <1305771744-83951-1-git-send-email-tsunanet@gmail.com> <20110518.223622.1525088601595365235.davem@davemloft.net> <20110519.001426.2119532755281545481.davem@davemloft.net> <9DC9A4D5-8E16-4361-B323-C92D563171A1@comsys.rwth-aachen.de> <8C5DF277-320D-4DEB-A133-EEC301DE58DC@comsys.rwth-aachen.de> Message-ID: User-Agent: RoundCube Webmail/0.1-rc1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1359 Lines: 30 On Thu, 19 May 2011 08:52:10 +0200, Alexander Zimmermann wrote: >> #define TCP_RTO_MAX ((unsigned)(120*HZ)) >> #define TCP_RTO_MIN ((unsigned)(HZ/5)) >> >> So we're talking about a [200ms ; 120s] range no matter what. > > Why is 200ms a valid lower bound for initRTO? I'm aware of > measurements that 1s is save for Internet, but I don't know of any > studies that 200ms is save... TCP_RTO_MAX and TCP_RTO_MIN is the lower/upper bound for the RTO in general, not for the initial RTO. RFC 2988 specify a lower bound of 1 second but all operating system choose a lower one because at the time where RFC 2988 was written the clock granularity was not that accurate. The minimum RTO for FreeBSD is even 30ms! Furthermore, analysis had demonstrated that a minimum RTO of 1 second badly breaks throughput in environments faster then 33kB with minor packet loss rate (e.g. 1%). So yes, it CAN be wise to choose other lower/upper bounds. But keep in mind that we should NOT artificial limit ourself. I can image data center scenarios where a initial RTO of <1 match perfectly. Hagen -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/