Re: When does Linux drop UDP packets?



Hi,

* david@xxxxxxx <david@xxxxxxx> [2009-06-05 12:15:27-0700]:

On Fri, 5 Jun 2009, Alexander Clouter wrote:

* david@xxxxxxx <david@xxxxxxx> [2009-06-04 16:19:56-0700]:

On Thu, 4 Jun 2009, Alexander Clouter wrote:

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.

I *think* only the early ones have a naff non-hashing based to filter
multicast flows, could be wrong though.

Either way, as a packet pusher by day, I dream of the venduh's
discovering that multicast can be used for device discovery rather than
expecting everything to be on the same subnet :-/

In this day and age, using broadcast to do a job is just plain lazy and
braindead.

Cheers

--
Alexander Clouter
.sigmonster says: Misuse may cause suffocation.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Wireless LAN unter Gentoo Linux auf Acer Aspire 3022
    ... UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... eth1 Link encap:UNSPEC HWaddr ... Date format: Timestamp ...
    (de.comp.os.unix.linux.hardware)
  • Re: Multicast MAC and Unicast IP Address
    ... I am interested in knowing what the rules are because up to now everybody just told me that it is a strange way to use multicast but some also said that it is illegal. ... When a host sends a datagram to a link-layer broadcast address, the IP destination address MUST be a legal IP broadcast or IP multicast address. ... I believe that the use of a multicast MAC address to send a unicast IP packet to a group of devices (e.g., a cluster) is a perfectly correct use of link-layer multicast, assuming that the cluster software knows how to deal with the fact that multiple devices are receiving the same IP datagram. ...
    (comp.dcom.lans.ethernet)
  • Re: [Full-Disclosure] Windows SP2 firewall: Famous for 3 seconds?
    ... > | Multicast and broadcast network traffic differ from unicast traffic ... > | number of scenarios from working, ... This has much bigger significance for IPv6 where ARP messages have been ...
    (Full-Disclosure)
  • Re: vb6.0 udp multicast problem
    ... I use winsock withUDPfor ... broadcast in a mixed Windows / Irix environment. ... Keep in mind that the UNIX box is broadcasting multicast and ... Me.udpServer.RemoteHost = udpRemoteHost ...
    (microsoft.public.vb.general.discussion)
  • Re: is there a way for a client to detect a server on the network
    ... >> broadcast over the network to discover availlable servers and the ... >> user could then select the server he prefers. ... > .NET remoting does not provide service discovery nor service dictionary, so> you need to do it yourself. ... >> network however this would take hours as it is far to slow> Ever heard about IP broadcast or multicast? ...
    (microsoft.public.dotnet.framework.remoting)