[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0906051214140.9159@asgard>
Date: Fri, 5 Jun 2009 12:15:27 -0700 (PDT)
From: david@...g.hm
To: Alexander Clouter <alex@...riz.org.uk>
cc: linux-kernel@...r.kernel.org, sefi@...-f-i.de
Subject: Re: When does Linux drop UDP packets?
On Fri, 5 Jun 2009, Alexander Clouter wrote:
> Hi,
>
> * david@...g.hm <david@...g.hm> [2009-06-04 16:19:56-0700]:
>>
>> On Thu, 4 Jun 2009, Alexander Clouter wrote:
>>
>>> Philipp Reh <sefi@...-f-i.de> wrote:
>>>>
>>>> I have the following setting in which a client that resides on the same
>>>> physical network as a server wants to receive any UDP packet that
>>>> arrives on any of its interfaces sent by that server.
>>>>
>>> Read up about multicasting, it will do what you want, does not depend on
>>> the IP address of the destination workstation and will also cross
>>> subnets if you want it to.
>>>
>>> It's dead easy to transmit and receive multicast traffic, broadcasting
>>> network traffic is so 1980's :)
>>
>> there is only a difference between multicast and broadcast traffic if you
>> are spanning subnets.
>>
> Well yes and no. Broadcast traffic is *always* handled by the kernel as
> only the kernel can tell if it is interested in it or not. With
> multicast the NIC is configured to only pass particular
> Ethernet multicast packets up to the kernel.
>
> By using broadcast traffic the load (okay, hardly a big problem
> now-a-days) hits *all* the workstations on the subnet, with multicast,
> only those interested in the traffic receive it.
true, but only for some NICs, and even those tend to have a fairly small
number of slots for the filters. past these limits the OS handles it all
just like broadcasts.
David Lang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists