From owner-freebsd-net@freebsd.org Fri Oct 19 19:45:59 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 4F306FD9F5A for ; Fri, 19 Oct 2018 19:45:59 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CBFDF8B0E9; Fri, 19 Oct 2018 19:45:58 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w9JJjpMI078229 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 Oct 2018 21:45:52 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: lev@FreeBSD.org Received: from [10.58.0.4] (dadv@[10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w9JJjouR030930 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 20 Oct 2018 02:45:50 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: What is best TCP throughput benchmarking tool? To: lev@FreeBSD.org, freebsd-net@freebsd.org References: From: Eugene Grosbein Message-ID: <650aa1c7-26db-f463-cb59-8dfe1886c764@grosbein.net> Date: Sat, 20 Oct 2018 02:45:50 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, LOCAL_FROM, SPF_PASS, T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 0.0 T_DATE_IN_FUTURE_96_Q Date: is 4 days to 4 months after Received: * date * 2.6 LOCAL_FROM From my domains X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net 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: Fri, 19 Oct 2018 19:45:59 -0000 20.10.2018 2:27, Lev Serebryakov wrk: > > I need to benchmark different endpoint (not router) network performance > with different encapsulations (if_gre, if_gif) and with/without IPsec > (including if_ipsec). > > What is suitable traffic generator/receiver for me? > > I'm trying to use benchmarks/iperf3, but it consumes questionable > amount of CPU in several cases and maybe benchmark becomes limited by > user-side CPU consuming, which is bad. > > I've tried "benchmarks/netperf" — it hangs with non-default window size. > > I've tried "benchmarks/netperfmeter" — it doesn't work without SCTP in > kernel. > > Please note, that I'm testing endpoint, not a router, so netmap-based > packet generators & receivers is no use for me, unfortunately. Try benchmarks/wrk. It works pretty well for speeds lower than 40Gbit/s but its version 4.0.2 had its own rough edges demanding a router between TCP endpoints. I have not tried its newer versions, though.