Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from diktynna.open-mesh.org (diktynna.open-mesh.org [136.243.236.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E3D2EEE0209 for ; Wed, 11 Sep 2024 05:13:20 +0000 (UTC) Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id 104FB80401 for ; Wed, 11 Sep 2024 07:13:19 +0200 (CEST) ARC-Seal: i=2; cv=pass; a=rsa-sha256; d=open-mesh.org; s=20121; t=1726031599; b=SkgEjinzX2KzLuQg6tCeUggp9xkaOIXYLqOLfuQ/sS/66Dj4B9p7hTLZ4nnq9UqoSnc7d tIEpv1iuqhVAyPtQMG3lxTdKpO5ueGt/fgrxu/G2/fGtaXCw+er/4KLxDsNzO2Vywwtn6+i hEWTK8moY8/FSsp9wRTh+tT60oYd7FI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1726031599; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=fimipZI0jefS9bNbqfJhcHYuAAHfcU+r+U5l31Y13zY=; b=N3yY2vC24r5C2VcknVzr+CtbwWW4L04L9eWhu4zjDeovm+0KtSS3APn8j446dD/HsdwTR B6KhLfvADIJ2fPVsUu5Z0nGtZTe5RET4X5C5TlLLOb0g4kHjjqU+b1OPnzSikB1NRMUQ55e 2q4cxkEyaRwWeFtUDEgqnYHFe6J71wA= ARC-Authentication-Results: i=2; open-mesh.org; dkim=fail; arc=pass; dmarc=none Authentication-Results: open-mesh.org; dkim=fail; arc=pass; dmarc=none Received: from mail.aperture-lab.de (mail.aperture-lab.de [IPv6:2a01:4f8:c2c:665b::1]) by diktynna.open-mesh.org (Postfix) with ESMTPS id 5ED0F82744 for ; Wed, 11 Sep 2024 07:13:10 +0200 (CEST) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1726031590; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fimipZI0jefS9bNbqfJhcHYuAAHfcU+r+U5l31Y13zY=; b=npe8aaNb6NHBs2/pozoc3SnlpGe8m1PpkaITm2kdRjuUIk/0Xv9Nllf2OA3R3C2pCtOu4e Z5HluwF8Llo4HMdGXQSwywipmLaxOEP5neunTb1C5213UJw1O60nZH9zK0PU1/YXyhdA39 jwff6GS/30VcOhnbnt4z0Mell3NLhcA= ARC-Authentication-Results: i=1; diktynna.open-mesh.org; dkim=none; spf=pass (diktynna.open-mesh.org: domain of linus.luessing@c0d3.blue designates 2a01:4f8:c2c:665b::1 as permitted sender) smtp.mailfrom=linus.luessing@c0d3.blue; dmarc=none ARC-Seal: i=1; s=20121; d=open-mesh.org; t=1726031590; a=rsa-sha256; cv=none; b=Dw/NomW/MZ8ESZfpfkLSRIYDUNbaTVMIJE8YHXv9XyjBP1Lfpf6AAy0gmZk6UR2L9ji9NI GzHjCgA12DpND9Fh/BsF0e/JvRHMqFt+H/TJ0sm2Bi1M1J6YhvXyS+v4T2nJJPoA2b1s2K QiI4zVxoKOxmqCjCgUSkdnJWm3DWpWs= Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CBDF03EEC9 for ; Wed, 11 Sep 2024 07:13:08 +0200 (CEST) From: =?UTF-8?q?Linus=20L=C3=BCssing?= To: b.a.t.m.a.n@lists.open-mesh.org Subject: [PATCH v5 0/2] batman-adv: increase DAT DHT timeout Date: Wed, 11 Sep 2024 06:57:21 +0200 Message-ID: <20240911051259.23384-1-linus.luessing@c0d3.blue> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 Message-ID-Hash: TYJ4DNESEAZ63QKFXXTE6Q7T4EFVDKBL X-Message-ID-Hash: TYJ4DNESEAZ63QKFXXTE6Q7T4EFVDKBL X-MailFrom: linus.luessing@c0d3.blue X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-b.a.t.m.a.n.lists.open-mesh.org-0; header-match-b.a.t.m.a.n.lists.open-mesh.org-1; header-match-b.a.t.m.a.n.lists.open-mesh.org-2; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hi, This is the fifth itereation to increase the DAT DHT timeout to reduce the amount of broadcasted ARP Replies. To increase the timeout only for DAT DHT entries added via DHT-PUT but not for any other entry in the DAT cache the DAT cache and DAT DHT concepts are first split into two separate hash tables (PATCH 1/2). PATCH 2/2 then increases the timeout for DAT DHT entries from 5 to 30 minutes. The motivation for this patchset is based on the observations made here: https://www.open-mesh.org/projects/batman-adv/wiki/DAT_DHCP_Snooping In tests this year at Freifunk Lübeck with ~180 mesh nodes and Gluon this reduced the ARP broadcast overhead, measured over 7 days, as follows: - Total: 6677.66 bits/s -> 677.26 bits/s => -89.86% 11.92 pkts/s -> 1.21 pkts/s => -89.85% - from gateways: 5618.02 bits/s -> 212.28 => -96.22% 10.03 pkts/s -> 0.38 pkts/s => -96.21% Also see graphics and a few more test details here: - https://www.open-mesh.org/projects/batman-adv/wiki/DAT_DHCP_Snooping#Result-2 These patches have been applied in this mesh network without issues for 3 months now. Regards, Linus --- Changelog v5: - rebased to current main branch -> removed now obsolete debugfs code Changelog v4: - rebased to: acfc9a214d01695 ("batman-adv: genetlink: make policy common to family") Changelog v3: formerly: "batman-adv: Increase purge timeout on DAT DHT candidates" https://patchwork.open-mesh.org/patch/17728/ - fixed the potential jiffies overflow and jiffies initialization issues by replacing the last_dht_update timeout variable with a split of DAT cache and DAT DHT into two separate hash tables -> instead of maintaining two timeouts in one DAT entry two DAT entries are created and maintained in their respective DAT cache and DAT DHT hash tables Changelog v2: formerly: "batman-adv: Increase DHCP snooped DAT entry purge timeout in DHT" (https://patchwork.open-mesh.org/patch/17364/) - removed the extended timeouts flag in the DHT-PUT messages introduced in v1 again - removed DHCP dependency