Message ID | 20241130005942.24497-1-linus.luessing@c0d3.blue (mailing list archive) |
---|---|
Headers |
Return-Path: <b.a.t.m.a.n-bounces+patchwork=open-mesh.org@lists.open-mesh.org> X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from diktynna.open-mesh.org (localhost [IPv6:::1]) by diktynna.open-mesh.org (Postfix) with ESMTP id 9077E83F6C for <patchwork@open-mesh.org>; Sat, 30 Nov 2024 02:00:15 +0100 (CET) ARC-Seal: i=2; cv=pass; a=rsa-sha256; d=open-mesh.org; s=20121; t=1732928415; b=RxLzA2fsdJaAp7Pqr4Vzin6DF8O+yev/dY/zQrfudvcTNaUlhLq3OU73B91h1Q0455B0c jtQKir1UU8SEGsUnmEuoA+uSMq/51z98oq/052+Fe7+PAqWFwksu8dzLZbB29iQOyEp2UoL 32XKZccSYEpaHSZQW8XBZDUAJvhOrF0= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1732928415; 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=0ai5kI/yCIPHDkTfuL9qciClavDOPYsRLUwEncdss3c=; b=FlozuLQY+eSCpCbSHiYDCv5ov1XvI4AwlmJ+X5MN294ZXlJhp/WmeQ2glJlasvz1lVv87 Qo/a7gbCgJJp55Y9vFBpjUhl5OvEbOL0MsWLOzoOX/IfjmGNg9nwwAFz+xdxmelaIH3YWZD x92A2Aefg+D3LOb4AFJ2myNoi0Rp+8Y= 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 [116.203.183.178]) by diktynna.open-mesh.org (Postfix) with ESMTPS id DDD3F8148C for <b.a.t.m.a.n@lists.open-mesh.org>; Sat, 30 Nov 2024 01:59:46 +0100 (CET) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=open-mesh.org; s=20121; t=1732928387; 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=0ai5kI/yCIPHDkTfuL9qciClavDOPYsRLUwEncdss3c=; b=hISseW+jBHen3YzNQJyMsoejB/LAmjIkFi6wqK/lcqzITrL9W78vBidMISH7LwucUekrCx VZCwducKH8yf5Wu6NVEEuXx051pjgP7Ky872Sx/QOeiR9DHoWxlMySbV5k/RsZU8TTMsUu trp7L4aZmiV/C5CtR6sA9yQfr8lb8Mg= ARC-Seal: i=1; s=20121; d=open-mesh.org; t=1732928387; a=rsa-sha256; cv=none; b=kBKRmCRsc5nNihypq1vHZL6u7Stix/EL9hSWiAGfReIMw+Jc6OsLZrhyH7BYHpo1Pf2o3Q 45aB10APUpLHO1drRsa1r6KmLBiqjfT29WBlplIbT4A6I5Ch+8yNlcyG1Wu/XS/HNDGmd6 jooX89RM+YPmHrqmPEPhPqZmyS1kY9c= ARC-Authentication-Results: i=1; diktynna.open-mesh.org; dkim=none; spf=pass (diktynna.open-mesh.org: domain of linus.luessing@c0d3.blue designates 116.203.183.178 as permitted sender) smtp.mailfrom=linus.luessing@c0d3.blue; dmarc=none Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8A0A6541152 for <b.a.t.m.a.n@lists.open-mesh.org>; Sat, 30 Nov 2024 01:59:45 +0100 (CET) From: =?utf-8?q?Linus_L=C3=BCssing?= <linus.luessing@c0d3.blue> To: b.a.t.m.a.n@lists.open-mesh.org Subject: [PATCH v7 0/3] batman-adv: increase DAT DHT timeout Date: Sat, 30 Nov 2024 00:46:31 +0100 Message-ID: <20241130005942.24497-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: VUJJSMQEVAJWFLAE2J4WMQNKJJAUZ26V X-Message-ID-Hash: VUJJSMQEVAJWFLAE2J4WMQNKJJAUZ26V 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 <b.a.t.m.a.n.lists.open-mesh.org> Archived-At: <https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/message/VUJJSMQEVAJWFLAE2J4WMQNKJJAUZ26V/> List-Archive: <https://lists.open-mesh.org/mailman3/hyperkitty/list/b.a.t.m.a.n@lists.open-mesh.org/> List-Help: <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=help> List-Owner: <mailto:b.a.t.m.a.n-owner@lists.open-mesh.org> List-Post: <mailto:b.a.t.m.a.n@lists.open-mesh.org> List-Subscribe: <mailto:b.a.t.m.a.n-join@lists.open-mesh.org> List-Unsubscribe: <mailto:b.a.t.m.a.n-leave@lists.open-mesh.org> |
Series |
batman-adv: increase DAT DHT timeout
|
|
Message
Linus Lüssing
Nov. 29, 2024, 11:46 p.m. UTC
This patchset increases 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 split into two separate hash tables (PATCH 2/3). PATCH 3/3 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 (v5) have been applied in this mesh network without issues for 3 months now. Regards, Linus --- Changelog v7: - adding PATCH 1/3 to add the batadv_netlink_get_softif() wrapper to reduce the amount of duplicate code, both in the current code base but also for the next PATCH 2/3 Changelog v6: - removed renaming+deprecation of BATADV_P_DAT_CACHE_REPLY in PATCH 1/2 - small commit message rewording in PATCH 1/2 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