From owner-freebsd-net@FreeBSD.ORG Mon Mar 24 08:07:30 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 49133A45 for ; Mon, 24 Mar 2014 08:07:30 +0000 (UTC) Received: from mail-ee0-x22f.google.com (mail-ee0-x22f.google.com [IPv6:2a00:1450:4013:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D8D3DFC7 for ; Mon, 24 Mar 2014 08:07:29 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id b15so4066256eek.20 for ; Mon, 24 Mar 2014 01:07:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HKAnViBldTzzim1eZUlVJinemGf4F3G0pIQ/fUBqX1o=; b=i8HXMu8p42Z9r0vMYIQHyCxEKu/KC4cwEHvPaIcMh5XVYxNycrpzeFFtwO4wtdT5hW RHx/jtOSum0VIutomKW3zyAEaX48tSURlcc8DjswOwnB5MHZ5spPca5b1nFH/t1Wcb0E xbWwRuJFU2b5U4a2Coha1uPEZoqV7vZCoQHTokJPiZJGdyLXASU0DgaKQfFoeHY+XW+o 4wfCsT874vdzhQBn8+tzzgD91AbC5NgkWQNSTbNxrRJO/SVRUWohXq3UQpwWcCmTKl8P WFTAxb+GDJIZzetrU/0vCiC+SKrRjOOO30bxDZgLAgdEZWEIZVzYcH3j7X+RUf3BbGYj D5mA== MIME-Version: 1.0 X-Received: by 10.14.220.130 with SMTP id o2mr7687293eep.42.1395648448274; Mon, 24 Mar 2014 01:07:28 -0700 (PDT) Received: by 10.14.67.2 with HTTP; Mon, 24 Mar 2014 01:07:28 -0700 (PDT) Date: Mon, 24 Mar 2014 01:07:28 -0700 Message-ID: Subject: hostcache's effect on initcwnd calculation From: hiren panchasara To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 08:07:30 -0000 Host A:10000 talks to Host B:20000 (10000 and 20000 being ports) and it gets logged in tcp's hostcache. Now if a new connection happens between A:10001 and Host B:20000, the initcwnd (initial congestion window) would not look at the CWND from hostcache but will always use what we've set as tp->snd_cwnd in cc_conn_init() of tcp_input.c - is this a correct assumption? What I want to confirm is, whether hostcache has any effect on initial congestion window of a new connection being setup. >From my reading of the code, cc_conn_init() always happens before we call tcp_hc_get() to get data out of hostcache to update other parameters of a connection. I do not see hc_entry->rmx_cwnd being actually used anywhere in tcp_input.c while connection bring up. Am I missing anything? cheers, Hiren