Re: epoll and multiple UDP multicast streams



On Jan 23, 3:13 pm, george...@xxxxxxxxx wrote:
Hi,

If I subscribe to multiple, very active, multicast groups is there any
kind of starvation?

let say there are the following  streams :  A,B,C and D and I receive
data continuously

using epoll for finding the ready descriptors would there be a round
robin like read from the sockets or all the packets from A's buffer
and then B/C/D buffer etc?

thanks,

If they are the same socket, they will be read in the order they are
received. If the queue is full, normally new packets will be dropped
from any stream. Some implementations may drop old packets. But so far
as I know, they will all leave the receive queue with a consecutively-
received string of packets.

If you use multiple sockets, they each have their own receive queue.
It's up to you whether your program reads from them in round-robin or
all from one then all from the next.

DS
.



Relevant Pages

  • Re: Losing UDP packets with MFC Sockets
    ... >> We are developing a tool which uses UDP packets to receive data from a UDP ... Should we use threads to extract data from sockets? ... > 2) use a seperate ring-buffer or FIFO queue of your own for the input ... > data buffering, multiple threads, and recource sharing (ie. fast locking). ...
    (microsoft.public.vc.mfc)
  • Re: [patch 4/10] s390: network driver.
    ... > be better to not block sockets by queueing up packets when there is ... I'd prefer either to get ENOBUFS or to have kernel drop the packet - ... we're privileged apps writing to raw sockets and/or with IP_HDRINCL, ... if the kernel is going to queue these packets without notifying ...
    (Linux-Kernel)
  • Re: Consistent performance issues at high bandwidths, UDP.
    ... all createing multiple sockets should do is use more non-paged memory ... The only difference is the number of sockets and how many packets ... and every 3.1 seconds a frame took 3.8 seconds to send. ... inconsistent frame rates caused by a periodic delay in the call ...
    (microsoft.public.win32.programmer.networks)
  • Re: Consistent performance issues at high bandwidths, UDP.
    ... The only difference is the number of sockets and how many packets I'm ... In that test each frame took 40ms to send, ... explain this massive delay, but it is at extremely regular intervals. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Possible bug in .Net 2.0 udp sockets?
    ... You won't miss any UDP packets with a buffer that large! ... R> I called BeginReceiveFrom() several times on purpose, ... If you don't do that, indeed, UDP stack can drop packets. ... it stores it in the queue. ...
    (microsoft.public.dotnet.framework)