From owner-freebsd-net@FreeBSD.ORG Fri Jan 2 06:49:29 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4C431065673; Fri, 2 Jan 2009 06:49:29 +0000 (UTC) (envelope-from ericlin@tamama.org) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id 96CEA8FC13; Fri, 2 Jan 2009 06:49:29 +0000 (UTC) (envelope-from ericlin@tamama.org) Received: by yx-out-2324.google.com with SMTP id 8so2842707yxb.13 for ; Thu, 01 Jan 2009 22:49:29 -0800 (PST) Received: by 10.150.135.2 with SMTP id i2mr33862606ybd.229.1230878968920; Thu, 01 Jan 2009 22:49:28 -0800 (PST) Received: by 10.151.68.13 with HTTP; Thu, 1 Jan 2009 22:49:28 -0800 (PST) Message-ID: <47713ee10901012249w65c659bbp3366e4d8ef25c59d@mail.gmail.com> Date: Fri, 2 Jan 2009 14:49:28 +0800 From: "Lin Jui-Nan Eric" To: freebsd-net@freebsd.org, stable@freebsd.org In-Reply-To: <47713ee10901012147k1f25c31bn512dd29b2b294ad5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47713ee10812301206j12b35264o715976c154080a1b@mail.gmail.com> <47713ee10901012147k1f25c31bn512dd29b2b294ad5@mail.gmail.com> Cc: Subject: Re: TCP packet out-of-order problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jan 2009 06:49:30 -0000 Dear All listers, After running "netstat -s -p tcp", we found that lots of packets are discarded due to memory problems. We googled for it, and found that sysctl oid "net.inet.tcp.reass.maxsegments" became 0, therefore packets never reassembled. Then we checked our /boot/loader.conf and /etc/sysctl.conf, and found that setting kern.ipc.nmbclusters="0" makes net.inet.tcp.reass.maxsegments=0. After setting net.inet.tcp.reass.maxsegments="1600" in /boot/loader.conf, the network works perfectly now. Thank you all for the help!