From: Sebastian Fett <db_extern@gmx.de>
To: Sowmini Varadhan <sowmini05@gmail.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: ARP response with link local IP, why not broadcast
Date: Wed, 22 Jul 2015 09:49:49 +0200 [thread overview]
Message-ID: <55AF4B1D.4030208@gmx.de> (raw)
In-Reply-To: <CACP96tRrCzFwTC-fSMxGTWr+zFSkid=Bd6JkGZA822HbEjk4_Q@mail.gmail.com>
> On Tue, Jul 21, 2015 at 4:38 PM, Sebastian Fett <db_extern@gmx.de> wrote:
>> Hello!
>>
>> According to RFC3927 every ARP packet (reply and request) should be sent as
>> link layer broadcast as long as the sender IP is a link local address. (see
>> chapter 2.5).
>
> Because broadcast replies are noisy and should be avoided.
> if possible- it creates a broadcast flood that would wake up all receivers,
> and is especially undesirable in today's world, where bcast would wake
> up sleepy devices, or require other inefficient processes in a cloud env.
> See also https://www.ietf.org/id/draft-nordmark-6man-dad-approaches-01.txt
>
>> That functionality would help me a lot with a use case I have with our
>> application.
>
> what is your use case?
>
My problem ist a local network of audio devices. It is a valid
possibility that two halfs of the setup are set up individually (Stage
left and stage right). Both local networks will auto configure
themselves via link local and will be stable. But there always can be
two devices with the same IP in both networks.
At one point those two networks will be connected. With the current
behaviour the conflicting devices will never know of each other and the
address conflict.
The devices are controlled by a central PC using avahi/bonjour. It will
know of all conflicting devices, but will only be able to talk to the
one that happens to be in it's ARP cache. And renewing that cache will
not change anything, because it will happen with unicast messages.
I looked at a Dante Controller (an audio data streaming device). And
here all ARP messages are answered with broadcasts.
I think that behaviour is acceptable because it only happens in local
networks. Waking up sleeping devices will not be a concern there.
That brings me to another question. When I react to an ARP packet in a
userspace program, can I keep that packet from reaching the kernel as
well? I would like to avoid to completely handle ARP in userspace.
>>
>> But it is not implemented in the kernel that way.
>> Does anyone know why?
Sebastian
next prev parent reply other threads:[~2015-07-22 7:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-21 14:38 ARP response with link local IP, why not broadcast Sebastian Fett
2015-07-21 19:39 ` Sowmini Varadhan
2015-07-22 7:49 ` Sebastian Fett [this message]
2015-07-22 8:29 ` Sowmini Varadhan
2015-07-22 17:56 ` David Miller
[not found] <55B6432E.5070401@gmx.de>
2015-07-28 7:12 ` Sebastian Fett
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=55AF4B1D.4030208@gmx.de \
--to=db_extern@gmx.de \
--cc=netdev@vger.kernel.org \
--cc=sowmini05@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).