From owner-freebsd-net@freebsd.org Sun Oct 25 19:37:41 2015 Return-Path: Delivered-To: freebsd-net@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 D77BA811F for ; Sun, 25 Oct 2015 19:37:41 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9CC2E1A6E for ; Sun, 25 Oct 2015 19:37:41 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [IPv6:2a02:1811:2419:4e02:f98e:1278:f825:1dc6] (unknown [IPv6:2a02:1811:2419:4e02:f98e:1278:f825:1dc6]) by venus.codepro.be (Postfix) with ESMTPSA id 2DCC522791; Sun, 25 Oct 2015 20:37:38 +0100 (CET) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Jail - PF - NAT - Network Performance From: Kristof Provost In-Reply-To: Date: Sun, 25 Oct 2015 20:37:37 +0100 Cc: "freebsd-net@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: James Lodge X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 25 Oct 2015 19:37:41 -0000 > On 25 Oct 2015, at 18:47, James Lodge wrote: >=20 >> On 25 Oct 2015, at 17:46, James Lodge wrote: >> I currently have a FreeBSD 10.1 host running on Digital Ocean. I have = multiple jails and I'm not using vimage. >>=20 >>=20 >> I'm using PF on the host to NAT traffic from said jails and all is = working as expected. I have a jail running OpenVPN and clients can = connect and traffic is routed to the Internet down the tunnel via = PF/NAT. The issue I'm seeing is download speeds to the client from the = Internet on the external side on PF. Upload always seem reasonable, but = download is always woeful. I'm using a Windows machine as the client if = that make any odds. >>=20 >> Yeah, there=92s an issue with checksums and pf/Xen. >> Disabling TSO should work for you (sudo sysctl net.inet.tcp.tso=3D0), = and the problem should be completely fixed in the >next release (10.3 or = 11.0) >>=20 >> Regards, >> Kristof >=20 >=20 > Thanks Kristof for the quick reply, >=20 > I was hoping it would be that simple, but Digital Ocean use KVM (from = what I know) as their hypervisor so disabling TSO and LRO seems to have = no noticed increase in performance.=20 >=20 Can you run a tcpdump while you=92re seeing the problem? The issue I know about is related to the TCP checksum, so I=92d expect = to see many invalid checksums. Regards, Kristof