From owner-freebsd-stable@freebsd.org Mon Feb 8 20:09:53 2021 Return-Path: Delivered-To: freebsd-stable@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 C4A4353FD3C for ; Mon, 8 Feb 2021 20:09:53 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from plan-b.pwste.edu.pl (plan-b.pwste.edu.pl [IPv6:2001:678:618::40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plan-b.pwste.edu.pl", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZHDw4mmTz4mwH for ; Mon, 8 Feb 2021 20:09:52 +0000 (UTC) (envelope-from zarychtam@plan-b.pwste.edu.pl) Received: from fomalhaut.potoki.eu ([IPv6:2001:470:71:d47:304b:5dfb:196b:8887]) (authenticated bits=0) by plan-b.pwste.edu.pl (8.16.1/8.16.1) with ESMTPSA id 118K9l1S019891 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 8 Feb 2021 21:09:48 +0100 (CET) (envelope-from zarychtam@plan-b.pwste.edu.pl) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=plan-b.pwste.edu.pl; s=plan-b-mailer; t=1612814988; bh=NV3jcCFYDDBNkvUHZdvXDlrSG2DSIEf+sUbzPDLK95c=; h=To:References:From:Subject:Date:In-Reply-To; b=tLTogEYT2l4TA548SXaXDSUzrT2iymGsS41YBuwG8ISWPncSsF3QKcOogNvj2c1xM 4U+6LuRN1w6AA9aqnp8VBmmFkMQXjWVhoNB5ITJi31OzDMUh7ZhKkZ13aCx9OIdqtq NrWt6WjX0wEALzns8l3jV0EmYUTpPFgk7MoQUYlaAMw44YnlqZqddhDckT8/wli/jn aTxDeu0yL0OTlcxdbNhrR5FjJ9jTTbhu9GhlgcnZ+Ad49xkNbUHOJWF7cc1Y3s7qqO UOxUrXfgYtbMH2ooSLwCCpTugWbfPeqcx4Tf0ah++YIi4JI/2+MPkDPwWNlLFNd9Gs ncA6X4cwXaOEQ== X-Authentication-Warning: plan-b.pwste.edu.pl: Host [IPv6:2001:470:71:d47:304b:5dfb:196b:8887] claimed to be fomalhaut.potoki.eu To: "Alexander V. Chernikov" , mike tancsa , FreeBSD-STABLE Mailing List References: <5670cd9a-cd10-2b89-1347-97a6c817c50f@sentex.net> <8696072a-dc25-8eff-04fa-4d1db13bf5cc@plan-b.pwste.edu.pl> <3588111612809020@mail.yandex.ru> From: Marek Zarychta Subject: Re: option FIB_ALGO and dpdk_lpm4 Message-ID: <53ef5715-42ce-aad0-9a8b-11d91a9891e3@plan-b.pwste.edu.pl> Date: Mon, 8 Feb 2021 21:09:47 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <3588111612809020@mail.yandex.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="CgZsFu86crHRb4rm6DKeE8Cm2i1W64BfT" X-Rspamd-Queue-Id: 4DZHDw4mmTz4mwH X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=plan-b.pwste.edu.pl header.s=plan-b-mailer header.b=tLTogEYT; dmarc=pass (policy=none) header.from=plan-b.pwste.edu.pl; spf=none (mx1.freebsd.org: domain of zarychtam@plan-b.pwste.edu.pl has no SPF policy when checking 2001:678:618::40) smtp.mailfrom=zarychtam@plan-b.pwste.edu.pl X-Spamd-Result: default: False [-7.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ATTACHMENT(0.00)[]; HAS_XAW(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[plan-b.pwste.edu.pl:+]; DMARC_POLICY_ALLOW(-0.50)[plan-b.pwste.edu.pl,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:678:618::40:from]; ASN(0.00)[asn:206006, ipnet:2001:678:618::/48, country:PL]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[plan-b.pwste.edu.pl:s=plan-b-mailer]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_MED(-2.00)[pwste.edu.pl:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; SPAMHAUS_ZRD(0.00)[2001:678:618::40:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Feb 2021 20:09:53 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CgZsFu86crHRb4rm6DKeE8Cm2i1W64BfT Content-Type: multipart/mixed; boundary="dMSbFvq81DZ5TXwpMU5skT6tHozJzKRqU"; protected-headers="v1" From: Marek Zarychta To: "Alexander V. Chernikov" , mike tancsa , FreeBSD-STABLE Mailing List Message-ID: <53ef5715-42ce-aad0-9a8b-11d91a9891e3@plan-b.pwste.edu.pl> Subject: Re: option FIB_ALGO and dpdk_lpm4 References: <5670cd9a-cd10-2b89-1347-97a6c817c50f@sentex.net> <8696072a-dc25-8eff-04fa-4d1db13bf5cc@plan-b.pwste.edu.pl> <3588111612809020@mail.yandex.ru> In-Reply-To: <3588111612809020@mail.yandex.ru> --dMSbFvq81DZ5TXwpMU5skT6tHozJzKRqU Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable W dniu 08.02.2021 o=C2=A019:32, Alexander V. Chernikov pisze: > 08.02.2021, 14:33, "Marek Zarychta" : >> W dniu 08.02.2021 o=C2=A013:10, mike tancsa pisze: >>> =C2=A0I have been setting up some tests to see if >>> >>> =C2=A0option FIB_ALGO and dpdk_lpm4.ko >>> >>> =C2=A0will help with my pkt forwarding needs and large routing tables= =2E So far so good. But one thing I noticed, is that its very chatty to d= mesg. >>> =C2=A0eg >>> =C2=A0alloc_nhgrp: new mpath group: num_nhops: 2 >>> =C2=A0compile_nhgrp: O: 2/2 >>> =C2=A0compile_nhgrp: OO[0]: 1/1 curr=3D1 slot_idx=3D0 >>> =C2=A0compile_nhgrp: OO[1]: 0/0 curr=3D1 slot_idx=3D1 >>> =C2=A0alloc_nhgrp: new mpath group: num_nhops: 2 >>> =C2=A0compile_nhgrp: O: 2/2 >>> =C2=A0compile_nhgrp: OO[0]: 1/1 curr=3D1 slot_idx=3D0 >>> =C2=A0compile_nhgrp: OO[1]: 0/0 curr=3D1 slot_idx=3D1 >>> =C2=A0alloc_nhgrp: new mpath group: num_nhops: 2 >>> =C2=A0compile_nhgrp: O: 2/2 >>> =C2=A0compile_nhgrp: OO[0]: 1/1 curr=3D1 slot_idx=3D0 >>> =C2=A0compile_nhgrp: OO[1]: 0/0 curr=3D1 slot_idx=3D1 >>> >>> =C2=A0are these debugging messages that forgot to be turned off ? Wha= t do they mean ? >>> =C2=A0Thanks for this work! >>> >>> =C2=A013.0-STABLE #11 stable/13-cc1352c1f-dirty >> >> Thank you for sharing this Mike. Could you please reveal us how do you= >> feed your routing tables? Is net/bird{,2} or net/frr7 involved? Any >> problems or hints to make the routing daemon working with new routing = stack? > Non-multipath should work as before, multipath works for quagga/frr but= needs some patches for bird. Thank you for the clarification, so is with anything but quagga or frr the sysctl setting net.route.multipath=3D0 obligatory now? >> >> The new routing stack looks very promising, please let me also give th= is >> way some appreciations to melifaro@ and other people who worked on it.= >> >> I was also trying to test it with legacy net/bird and multiple fib >> tables, but I was early hit by: "KRT: Error sending route x.x.x.x/y to= >> kernel: Operation not supported" > Any chance you could clarify what are these routes? "Operation not supp= orted" looks a bit weird, it shouln't happen. >> Setting net.add_net.add_addr_allfibs=3D1addr_allfibs=3D1 changed it a = bit, >> but still some blackhole /32 routes seem to get rejected. > Just "blackhole" route in the bird config? /32 or all? I used for tests the feed from Peter Hessler's OpenBSD spam trapping project[1]. On FreeBSD 11.4 I see these routes in net/bird as blackholed, for example: x.x.x.x/32 blackhole [bgp_spamd 20:20:43 from y.y.y.y] * (100) [ASzzzz] They work the same was as routes added by route(8) with option "-blackhol= e" With new routing stack, these routes are rejected with the message above. Now in net/bird, they appear like the example below and import to the fib (fib number is not equal to 0 in this case) is blocked: x.x.x.x/32 unreachable [SPAM 19:58:18 from y.y.y.y] ! (100/-) [ASzzzz] Probably it all should be tested in normal peering, but my initial test was performed on the old lab setup where multiple fibs and policy routing[2] were involved. The config was loosely based on the example by Ondrej Filip from the[2]. Once again thank you for implementing all these improvements into FreeBSD routing stack and please don't get me wrong, I am just testing it a bit before migration from 11.4-STABLE, but not complaining about anything. [1] http://rs.bgp-spamd.net/client/index.html [2] https://gitlab.nic.cz/labs/bird/-/wikis/Policy_routing --=20 Marek Zarychta --dMSbFvq81DZ5TXwpMU5skT6tHozJzKRqU-- --CgZsFu86crHRb4rm6DKeE8Cm2i1W64BfT Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEMOqvKm6wKvS1/ZeCdZ/s//1SjSwFAmAhmosFAwAAAAAACgkQdZ/s//1SjSwT IQf8Cu7KfND29kpIsgaBpPwkEARVRVyjAsGl+helW+/gNEJzuKoNVgnGMCxRyeWaGlG5LxIGdxBG gtVfzk9gMIeznHgDykrfz7EFdstqQ0jUlADZ+CP6meEioGMSaKnI59p2V0tEo9d3XQ3PPmIE51xg WqCW6IDhfyH0eBpMaL/an0rIW029BwryPxll56fssjf7Qu6j+/OMdVt4xMZTA5bVIbvviJ5ZWqzg xcJ5j0PnphnqPY5V4OIarhuBiXL4mX87hR+2ipYzLzFRSitjhPsDTz6IvpRT7eLnbw4YTO/98Bs9 4ptIWI5kkdMisTim1b2/BTUpbChksih2Ncc137NYqg== =EpJ3 -----END PGP SIGNATURE----- --CgZsFu86crHRb4rm6DKeE8Cm2i1W64BfT--