From owner-freebsd-questions@freebsd.org Wed Mar 8 07:16:24 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39006D02A90 for ; Wed, 8 Mar 2017 07:16:24 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id EE91F17C5 for ; Wed, 8 Mar 2017 07:16:23 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id EF325889CDE1; Wed, 8 Mar 2017 01:16:20 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1488953781; bh=aQcnGmkF1e5cuUrohZCYY0izQJHs8ot8pDYpEIzwahg=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=jKe3s0VzQkyB2lbEemSvhkTFkbpvA1AB/4ptcSViPSrZyuVbbC4/n7ekSyEn38vle q8pDeZPp8hHGtJbvhcljMNtAMkzvDY8KkMp4J5yJz1xnOZLsALmdsDz/1pLui0Zz/H cI+qTkD7Ds0CdKwX57vRk5/g5ghIeERKUYRjJCqJBGUB5fZaBQEgvIaJl+MJLEIhB3 8YP7pb/ERlU+iNfqfD87nx0V+Dw7zTJZ8tX4Likw0tF5tEgqpZMPNoGZkg+0dOzgG9 SvIuNq6kJZHelt4bgDzX0mgcv9Vu7BsBh48swRNJP8XT1dINSIYnTkZR7TdYJmNkLV Fw33pru2NzDEA== Subject: [SOLVED] Re: TCP connection stalled To: Ian Smith References: <20170304230752.E9983@sola.nimnet.asn.au> Cc: freebsd-questions@freebsd.org From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Message-ID: <2feaaa50-21c1-9fc2-9c1a-bb682966f087@shopzeus.com> Date: Wed, 8 Mar 2017 08:16:15 +0100 MIME-Version: 1.0 In-Reply-To: <20170304230752.E9983@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 07:16:24 -0000 > > The internet connection has download speed 500Mbps and upload speed = 30Mbps. > > Lucky you :) Is that via PPPoE or what protocol? (may matter re mtu) It is a cable modem, not using PPPoE. But I'm not sure about the correct MTU. > > > Internet is connected via a public IPv4 address as shown below (real= ip > > hidden with 'x' chars) > >=20 > > nfe0: flags=3D8843 metric 0 = mtu 1500 > > options=3Dc219b > > ether 40:61:86:ed:e6:41 > > inet 37.xxx.xxx.xxx netmask 0xfffffe00 broadcast 255.255.255= =2E255 > > That seems a strange broadcast address with that IP and netmask? Never= =20 > mind, perhaps that's different on FreeBSD 11? I guess it was given by the DHCP server of the ISP, they hopefully have a good reason for using a 9 bit wide subnet. :-) > > Likely due to ipfw(8) /BUGS, near the end (applies to natd too) > > Due to the architecture of libalias(3), ipfw nat is not compatible= with > the TCP segmentation offloading (TSO). Thus, to reliably nat your= net- > work traffic, please disable TSO on your NICs using ifconfig(8). > > See ifconfig(8). You need ifconfig nfe0 -tso4 and possibly? -vlanhwtso= ,=20 > with the same applying on your LAN-facing interface. I don't say I fully understand this, but after executing this: ifconfig nfe0 -tso4 -vlanhwtso the upload speed went up to 1.8MB/sec instantly. :-) Problem solved! Thank you!