From owner-freebsd-net@freebsd.org Tue Oct 27 15:27:14 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 11E1DA1F223 for ; Tue, 27 Oct 2015 15:27:14 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-lf0-x235.google.com (mail-lf0-x235.google.com [IPv6:2a00:1450:4010:c07::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 79C101185 for ; Tue, 27 Oct 2015 15:27:13 +0000 (UTC) (envelope-from cochard@gmail.com) Received: by lffz202 with SMTP id z202so174555375lff.3 for ; Tue, 27 Oct 2015 08:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=/X0oiVrkW9Inp7feZMI4jYwjNeuzHuuSJnn9ofd2R78=; b=GvvtEsIeDLa1RbUGxE7z/lOtWHoZh9VV1UaCBOKIOlVE4rYJVSaQlFDWFlYT6YRtED bVtVzS5dw8nx9bELpoE3J36ivONW1YMwH7+vmdw18wq6EXShClM6426c3BTsMzbzlgKY CJFZeKfyGwqcXnrPqAeq+l6hqF4Po4OtlQvH3PT/eH9dC4/ndOh+dD4l5wztFwlOl0+4 R+FlM1JfepytVoKprxOD9fGEbtoMh1XNwTXC6VRlhEWQ0ykCZxKsY3tnBQwTMJAEfNMg etCrxZ8XuF4arS/MYgSDJWRKl98aivPJJtgHSLT7kwHeZx4l9pYs9DqKHKB4/z4aKIKf KIBA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cochard_me.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=/X0oiVrkW9Inp7feZMI4jYwjNeuzHuuSJnn9ofd2R78=; b=zrOIjR1kYKbZUrHVQNuwGD1KMd0Fh/ULs+gs4Ji0V1Seuve1T0tyF1h7NB7bSw+lBW IChLpy2YnEd9Xxw4iNdHpDHKWi5H2x3i0N+ZopwKGvLI1/C8F8IWAdB3kX886Buz+D9r /WaYkc2rOq98I81K24AfUr2xachaa8r7hYnuQGSDb2dhwoqE/5abv2IpS91uBbQkLVrD Jg3pywm2eTh9yr0d337b2fuQTf5SmEHkNm9jMA6ftZ5Hup3+W4y1p1a+RztRlkkaXoSX 524BTZVFirvalUqFFG8hruTWw6kYL7tZfX4BnAGqCmOxIrbjWXxAE2HQJZgH6G8Bof3Q W2ng== X-Received: by 10.25.91.19 with SMTP id p19mr2981627lfb.35.1445959631364; Tue, 27 Oct 2015 08:27:11 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.25.197.86 with HTTP; Tue, 27 Oct 2015 08:26:52 -0700 (PDT) From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Tue, 27 Oct 2015 16:26:52 +0100 X-Google-Sender-Auth: aVRkpBY6MTN20NpA6KQUcnB2c6s Message-ID: Subject: [CFT] projects/routing + tryforward and netmap-fwd To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Tue, 27 Oct 2015 15:27:14 -0000 Hi all, I've build a nanobsd image based on different FreeBSD projects related to routing performance: - melifaro's projects/routing r289642 (synced with a head r287493) - gnn's tryforward improvement (D3737) - loos'netmap-fwd These improvement brings: - Routing performance on multi-core should be improved a lot's: like from 1.2Mpps to 9.5Mpps on a 8-core Xeon E5-2650 with Chelsio [1] - tryforward: No more choice between good routing performance or IPSec enabled - And you can try the work-in-progress of netmap-fwd too [2] forwarding performance on a PC Engines APU (realtek NIC and AMD G-T40 1Ghz dual-core) increase from 150Kpps to 315Kpps Image files are stored here: https://sourceforge.net/projects/bsdrp/files/BSD_Router_Project/current/amd64/ It's a customized nanobsd image (BSD Router Project) for 1GB disk including some routing tools (bird, quagga, exabgp, mpd5, openvpn, etc.) and serial port speed configured for 115200 bauds and no root password. You just need to download file BSDRP-1.901-full-amd64-vga.img.xz and "xzcat | dd" it into an USB flash disk and boot from it. Read files /boot/loader.conf, /etc/rc.conf and /etc/rc.conf.misc for the specific tunning parameters. As a nanobsd image, don't forgot the "config save" once you've modified the configuration files. Existing BSDRP users can upgrade their running release with the file BSDRP-1.901-upgrade-amd64-vga.img.xz. The file BSDRP-1.901-debug-amd64.tar.xz contains symbol file for analysing core dump your tests will generate ;-) Tests needed: - Standard routing feature: Do you meet some instability ? - IPSec usage: Does AES-GCM works, or do you meet panic ? - netmap-fwd mode: You can test its current status. For using netmap-fwd there is an rc script included and you can use it like that: sysrc netmapfwd_enable="yes" sysrc netmapfwd_ifaces="re1 re2" service netmapfwd start telnet /var/run/netmap-fwd.sock For information, The full list of patches added to the projects/routing are here: https://github.com/ocochard/BSDRP/tree/master/BSDRProuting/patches The netmap-fwd port is here: https://github.com/ocochard/BSDRP/blob/master/BSDRP/patches/ports.netmap-fwd.shar Kernel configuration file: https://github.com/ocochard/BSDRP/blob/master/BSDRProuting/kernels/amd64 Thanks, Olivier [1] https://github.com/ocochard/netbenches/blob/master/Xeon_E5-2650-8Cores-Chelsio_T540-CR/fastforwarding-pf-ipfw/results/fbsd11-routing.r287531/README.md [2] https://github.com/NetgateUSA/netmap-fwd/blob/master/netmap-fwd.pdf