From nobody Fri Sep 17 00:36:14 2021 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3F6B717D8547 for ; Fri, 17 Sep 2021 00:36:23 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from nox.prolixium.com (nox.prolixium.com [IPv6:2620:6:2000:104::1e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4H9Zkt2rl3z3pbK for ; Fri, 17 Sep 2021 00:36:22 +0000 (UTC) (envelope-from prox@prolixium.com) Received: from prox by nox.prolixium.com with local (Exim 4.94.2) (envelope-from ) id 1mR1rS-005MFn-AS for freebsd-net@freebsd.org; Thu, 16 Sep 2021 19:36:14 -0500 Date: Thu, 16 Sep 2021 19:36:14 -0500 From: Mark Kamichoff To: freebsd-net@freebsd.org Subject: ROUTE_MPATH and hashing Message-ID: List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: prox@prolixium.com X-SA-Exim-Scanned: No (on nox.prolixium.com); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 4H9Zkt2rl3z3pbK X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of prox@prolixium.com designates 2620:6:2000:104::1e as permitted sender) smtp.mailfrom=prox@prolixium.com X-Spamd-Result: default: False [-3.28 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[prolixium.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.985]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:395460, ipnet:2620:6:2000::/44, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N Hi - Does anyone here know how to tweak the hashing algorithm (per flow/packet/x) that's used for the new ROUTE_MPATH option that's in 13? I'm using FRR 7 and I see both routes in the FIB but only one is ever chosen and takes traffic. (dax:20:23:EDT)% show ipv6 route 2620:6:2003:105::/64 Routing entry for 2620:6:2003:105::/64 Known via "bgp", distance 20, metric 0, best Last update 08:24:34 ago 2620:6:2000:104::35 (recursive), weight 1 * 2620:6:2000:1ff::10c2, via tun9, weight 1 * 2620:6:2000:1ff::1172, via tun12, weight 1 (dax:20:23:EDT)% netstat -rn|grep 2620:6:2003:105::/64 2620:6:2003:105::/64 2620:6:2000:1ff::1172 UG1 tun12 2620:6:2003:105::/64 2620:6:2000:1ff::10c2 UG1 tun9 (dax:20:23:EDT)% route -n6 get 2620:6:2003:105:: route to: 2620:6:2003:105:: destination: 2620:6:2003:105:: mask: ffff:ffff:ffff:ffff:: gateway: 2620:6:2000:1ff::1172 fib: 0 interface: tun12 flags: recvpipe sendpipe ssthresh rtt,msec mtu weight expire 0 0 0 0 1455 0 0 (dax:20:23:EDT)% I didn't see any sysctls exposed but maybe I'm not looking in the right place. - Mark -- Mark Kamichoff prox@prolixium.com https://www.prolixium.com/