From owner-freebsd-net@freebsd.org Tue Nov 5 19:15:36 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9AEB41B1907 for ; Tue, 5 Nov 2019 19:15:36 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476zs43Bn2z3Qy4; Tue, 5 Nov 2019 19:15:35 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id xA5JFEhp055187 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 5 Nov 2019 11:15:14 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id xA5JFENj055186; Tue, 5 Nov 2019 11:15:14 -0800 (PST) (envelope-from jmg) Date: Tue, 5 Nov 2019 11:15:14 -0800 From: John-Mark Gurney To: Kurt Jaeger Cc: freebsd-net@freebsd.org Subject: Re: 10g IPsec ? Message-ID: <20191105191514.GG8521@funkthat.com> Mail-Followup-To: Kurt Jaeger , freebsd-net@freebsd.org References: <20191104194637.GA71627@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191104194637.GA71627@home.opsec.eu> X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Tue, 05 Nov 2019 11:15:14 -0800 (PST) X-Rspamd-Queue-Id: 476zs43Bn2z3Qy4 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2019 19:15:36 -0000 Kurt Jaeger wrote this message on Mon, Nov 04, 2019 at 20:46 +0100: > Has anyone experience with operating a highspeed IPsec connection > up to 10gigabit/s between 2 FreeBSD hosts ? > > Is that speed achievable ? How much tuning is necessary ? I haven't, but do know some hints. Make sure that you have a machine w/ AESNI, AND make sure you're using AES-GCM or AES-CTR.. Using AES-GCM is best as it avoids using a costly auth algorithm, as the AESNI instructions provide instructionts to make the GCM (auth) part of AES-GCM faster. AES-GCM can run at over 1GB/sec on a single core, so as long as the traffic can be processed by multiple threads (via multiple queues for example), it should be doable. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."