From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [PATCH v2] batman-adv: Introduce no noflood mark
Date: Tue, 14 May 2019 10:19:33 +0200 [thread overview]
Message-ID: <20190514081933.GA1602@otheros> (raw)
In-Reply-To: <20190507151723.GB1493@otheros>
On Tue, May 07, 2019 at 05:17:23PM +0200, Linus Lüssing wrote:
> Maybe more importantly even before the bcast_packet->seqno is
> increased. It could become an issue if a node were increasing it's
> seqno quickly without other nodes noticing the new seqnos.
> Broadcast packets we actually let through might then be received
> with a seqno outside of the seqno window on the receiving nodes.
Hm, what do others think about this? If I'm not mistaken then we
currently have three places to consider, which would be affected
by high packet rate multicast:
1) Sender, batadv_forw_packet_alloc() in batadv_add_bcast_packet_to_list():
-> BATADV_BCAST_QUEUE_LEN = 256
2) Receiver, batadv_test_bit() in batadv_recv_bcast_packet():
-> BATADV_TQ_LOCAL_WINDOW_SIZE = 64 -> duplicate detection
3) Receiver, batadv_window_protected() in batadv_recv_bcast_packet():
-> BATADV_EXPECTED_SEQNO_RANGE = 65536
I did some rough estimations with a 5Mbit/s multicast stream
(typical bitrate of a 720p video), quantified to 1250 byte
packets on a piece of paper. It seems ok-ish for the three cases
above, but also seems to get in a range I would start feeling
uncomfortable.
Dropping early via noflood instead of dropping later on the
hard-interfaces via BPF would avoid taking up queueing space and
sequence numbers.
(And I think the queueing onto the kworker also creates quite a
bit of load. At least something like that was my experience on
a Raspberry Pi One with a USB wifi dongle which used a driver
that queued everything onto the kworker, the kworker was
always very busy and never made it above 10-15MBit/s if I remember
correctly [1].)
[1]: https://wikidevi.com/wiki/TP-LINK_TL-WDN4200
prev parent reply other threads:[~2019-05-14 8:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-07 7:28 [PATCH v2] batman-adv: Introduce no noflood mark Linus Lüssing
2019-05-07 7:30 ` Sven Eckelmann
2019-05-07 8:00 ` Marek Lindner
2019-05-07 8:21 ` Sven Eckelmann
2019-05-07 15:17 ` Linus Lüssing
2019-05-07 15:34 ` Linus Lüssing
2019-05-07 15:45 ` Sven Eckelmann
2019-05-14 8:19 ` Linus Lüssing [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190514081933.GA1602@otheros \
--to=linus.luessing@c0d3.blue \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox