From owner-freebsd-net@FreeBSD.ORG Thu Dec 14 11:13:42 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2727016A52E for ; Thu, 14 Dec 2006 11:13:42 +0000 (UTC) (envelope-from wangxd@hhu.edu.cn) Received: from hhu.edu.cn (mailgw.hhu.edu.cn [202.119.112.49]) by mx1.FreeBSD.org (Postfix) with SMTP id D29D043EB9 for ; Thu, 14 Dec 2006 11:09:48 +0000 (GMT) (envelope-from wangxd@hhu.edu.cn) X-EYOU-SPAMVALUE: 0 Received: (eyou anti_spam gateway 3.0); Thu, 14 Dec 2006 18:52:32 +0800 Message-ID: <366093552.20624@hhu.edu.cn> X-EYOUMAIL-SMTPAUTH: wangxd@hhu.edu.cn Received: from 202.119.117.45 by 172.16.100.49 with SMTP; Thu, 14 Dec 2006 18:52:32 +0800 From: =?gb2312?B?zfXP/rar?= To: "'Andre Oppermann'" Date: Thu, 14 Dec 2006 19:11:12 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <366093006.18223@hhu.edu.cn> Thread-Index: AccfbK84K/GwmbcFTleH3+WQUnQQnwAAokDA X-Mailman-Approved-At: Thu, 14 Dec 2006 13:37:03 +0000 Cc: freebsd-net@freebsd.org Subject: Re: Automatic TCP send and receive socket buffer sizing 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: Thu, 14 Dec 2006 11:13:42 -0000 My FTP is 202.119.123.7. From 202.119.117/24 to it, there are two = routers. traceroute to 202.119.123.7 (202.119.123.7), 64 hops max, 40 byte = packets 1 202.119.117.254 (202.119.117.254) 0.794 ms 0.809 ms 0.882 ms 2 172.17.2.14 (172.17.2.14) 0.963 ms 0.736 ms 0.868 ms 3 202.119.123.7 (202.119.123.7) 23.467 ms 23.499 ms 23.228 ms Because the number of anonymous ftp users is unlimited, the FTP is very busy.=20 FreeBSD# w 6:59PM up 16 days, 5:12, 1 user, load averages: 0.84, 0.81, 0.76 USER TTY FROM LOGIN@ IDLE WHAT root p0 202.119.117.45 6:54PM - w My question is why Debian have used the auto-sizing buffer, but FTP's sending buffer for it is under FreeBSD and XP. My FreeBSD do not apply = the patch, it is 6.0-stable. Thanks. Wangxd -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: Andre Oppermann [mailto:andre@freebsd.org]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2006=C4=EA12=D4=C214=C8=D5 18:50 =CA=D5=BC=FE=C8=CB: =CD=F5=CF=FE=B6=AB =B3=AD=CB=CD: freebsd-net@freebsd.org =D6=F7=CC=E2: Re: Automatic TCP send and receive socket buffer sizing The log lines prove that the automatic send buffer sizing was working. On local high speed networks with very low RTT (<1ms) the effect is almost not noticeable. On links with higher bandwidth and larger RTT (>10ms Internet and Corporate WAN) there can be a very large difference. You can perform a test by transferring the same large file twice, once with auto sizing enabled and once without. A good target is the European half of FTP.FreeBSD.ORG [62.243.72.50] as it has a high bandwidth connection and the send buffer auto scaling patch installed. --=20 Andre