From owner-freebsd-net@FreeBSD.ORG Sun Jul 20 16:22:42 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 23EA0A2D for ; Sun, 20 Jul 2014 16:22:42 +0000 (UTC) Received: from mail-pd0-x22b.google.com (mail-pd0-x22b.google.com [IPv6:2607:f8b0:400e:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id ED1552331 for ; Sun, 20 Jul 2014 16:22:41 +0000 (UTC) Received: by mail-pd0-f171.google.com with SMTP id z10so7777103pdj.30 for ; Sun, 20 Jul 2014 09:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:thread-index :content-language; bh=IkApidJUyjiy/CjEQnNr+z4zWz3rXbLqmEMDmaew8Rs=; b=fR9nNzrHRaM/ZOxIHYXjQQVrs/0uvLwjyJCFkxJONPRiYihaU3nSPix1E4N4GvrsrX vm6waZeCEBgIzS7zG8uB0Ms4fcUKEah+EUnSe3/cf7TNUXrGCdXWOyUmiE9Ur6RNhBCE alWt30GUrcF0qGraMst59bP1vDdVhONM3aNluB3g66eI3HfeZ3rVDpzBtltLbgYAajpY 1wXHR3N5OvM9Edds+GbO7Daa2v5kIvci3/Rf+yhs/FohH6jrhVDjCQJ5yIsEEOfP23mk 3pYQlf0Gku7vfNx7cvh3GjPtXabCsPIXTjZXW1rAYUq3ya9NkaMRYXH97sRU2SS0jVeV c9mA== X-Received: by 10.66.245.140 with SMTP id xo12mr11386732pac.38.1405873361522; Sun, 20 Jul 2014 09:22:41 -0700 (PDT) Received: from billwin7 (amx-tls2.starhub.net.sg. [203.116.164.12]) by mx.google.com with ESMTPSA id t12sm8880604pdj.12.2014.07.20.09.22.39 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Jul 2014 09:22:41 -0700 (PDT) From: "bycn82" To: "'Niu Zhixiong'" , References: In-Reply-To: Subject: RE: A TCP problem on High Delay Date: Mon, 21 Jul 2014 00:22:34 +0800 Message-ID: <00d201cfa436$d2936ce0$77ba46a0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKMo9OFtQeaVNjysT5QMLyH7y+hnpovJO9w Content-Language: en-us X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jul 2014 16:22:42 -0000 Hi, Yes, according to your pcap files,it is because of the window size. more information here http://www.ietf.org/rfc/rfc1323.txt=20 and share the result of "sysctl net.inet.tcp" Regards, bycn82 > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of Niu Zhixiong > Sent: 20 July, 2014 23:43 > To: freebsd-net@freebsd.org > Subject: A TCP problem on High Delay >=20 > Dear All, > I set up an FTP server in a high delay but fairly BW environment. > When I try to download files from this FreeBSD FTP server, A = FreeBSD > client is always slower than Linux Client. (Linux Client is about = 1MB/s, > But FreeBSD client 300KB/s). I am sure that the two clients are in = same > networks and no firewalls are between server and clients. Then I try = to > use SCTP protocol rather than TCP protocol. The FreeBSD client is = faster > than itself in TCP. >=20 > I try to increase the rbuff of the client. But, It always less than = the > linux one. I think the problem may be the smaller window of Freebsd = than > Linux. But, I changed some parameters. But, nothing changed. >=20 > uname -a > 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC > 2014 > root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >=20 > According to > = http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning- > kernel-limits.html >=20 > I try to enable sysctl net.inet.tcp.inflight.enable or sysctl > net.inet.tcp.inflight_enable , but there is no such option in FreeBSD = 10. >=20 > Then I follow this https://fasterdata.es.net/host-tuning/freebsd/ > And make a large rbuffer. >=20 >=20 > sysctl kern.ipc.maxsockbuf=3D16777216 > sysctl net.inet.tcp.sendbuf_max=3D16777216 > sysctl net.inet.tcp.recvbuf_max=3D16777216 > sysctl net.inet.tcp.sendbuf_auto=3D1 > sysctl net.inet.tcp.recvbuf_auto=3D1 > sysctl net.inet.tcp.sendbuf_inc=3D16384 > sysctl net.inet.tcp.recvbuf_inc=3D524288 > sysctl net.inet.tcp.hostcache.expire=3D1 >=20 > But, Nothing is happened. >=20 > In the attachments, l_f is the linux packet capture and f_f is the > freebsd packet capture. >=20 >=20 >=20 >=20 > =E2=80=8B > packet_capture.7z > = ive_web> > =E2=80=8B > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"