From owner-freebsd-net@freebsd.org Thu Aug 9 03:57:41 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD3531052866 for ; Thu, 9 Aug 2018 03:57:41 +0000 (UTC) (envelope-from dpd@dpdtech.com) Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DA367DC59 for ; Thu, 9 Aug 2018 03:57:41 +0000 (UTC) (envelope-from dpd@dpdtech.com) Received: by mail-pf1-x436.google.com with SMTP id e13-v6so2163507pff.7 for ; Wed, 08 Aug 2018 20:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dpdtech.com; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=k4NF4hs1TFxSZNBloKD16PqIui2+WrJxUzQkkX6jraU=; b=XT9qJ4bLe4c4qeiORhhSjrsMxt/YHJIV3Mi3WwVtyVUASbRja9Zy2zGwju9OGYnnv/ dXf9q7o0birK7VXE1K/baoGtpSgKYok5oWHM0b63xV9AngVRNGsBwVVxkn7te9YrT5ly fTk31P1Y05scW0jRz+FoqKDY1kV4vhF/JFkKU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=k4NF4hs1TFxSZNBloKD16PqIui2+WrJxUzQkkX6jraU=; b=RY1rkS9QWx/s4/bRoH40K2JYRHUj6h6bUoGEnxyBA2euEZIVNmf/WtQPtJYFNPhG2Y 97OEh2WXVVShBBC7EtGiw8rcd7K4mJVSB040NQj1ZreYGHFkIQioSqe5ywJvxi0coTuq /30oA4UYOYlved1dLffBH255Ycrsr7CgFdmaTVS+AMX1Fq7ghQDsP0U/J/BjN/Dru3Ff cyd8s09HCiDkbOr6fZJvW1Y6EhU91KxwKGwnoVyI8iiDVhSzE9BG6glB4MToFZXlN3M+ 68CrPlb/jp5Mq43b+VJknw2U6hf4FAGu78Mdn+aW0yrG4k4SZbHTiyFfyLigxThC0UMz KOpA== X-Gm-Message-State: AOUpUlH5UZT/AEs+aKxL2h2q2mOf4cwNJ38eXyut9UjhzNchU5ihOXAS zgVrx1m+cVfLyaNKj70ko62h3R63BbQ= X-Google-Smtp-Source: AA+uWPxdPDY+uO5iSruq5v4Vs6+GOLENYu1oneV0DU5dBXORYaAS6BrbTWxYZNUzZX7zYIabThnRPg== X-Received: by 2002:a62:5302:: with SMTP id h2-v6mr485803pfb.183.1533787059927; Wed, 08 Aug 2018 20:57:39 -0700 (PDT) Received: from ?IPv6:2620:131:c001:105:5473:6282:d15:9a86? ([2620:131:c001:105:5473:6282:d15:9a86]) by smtp.gmail.com with ESMTPSA id s195-v6sm15773912pgs.76.2018.08.08.20.57.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Aug 2018 20:57:38 -0700 (PDT) From: "David P. Discher" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Is if_ipsec/ipsec - AESNI accelerated ? Message-Id: Date: Wed, 8 Aug 2018 20:57:36 -0700 To: freebsd-net@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 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, 09 Aug 2018 03:57:41 -0000 I=E2=80=99m suspecting that IPSec in FreeBSD is not leveraging AESNI on = Intel. Is this correct ? A small system, with an Atom C2758 and AESNI can hit 940-950 Mbps on a = 1g copper link SCPing a file with Chiper=3Daes256-gcm. SSH/OpenSSL = automatically uses AESNI if available. (Side Note, loading cryptodev - = openSSH/SSL will grab crypto dev and cut your speed in half). Same with = un-encryrpted iperf2/3, even with just a single TCP connection. Over an IPsec tunnel, this same system bottle necks at 180 Mbps. These = systems are on the same vlan and subnet, same physical switch - so = direct route. So, does IPSec use AESNI ? I would have at least expected 600-700 Mbps. -- David P. Discher=20 https://davidpdischer.com/