Re: Losing UDP packets with MFC Sockets



Please give us some more information about your UDP usage (e.g., packet
size, frequency etc). IIRC, CPU load is not the main culprit in UDP packet
loss; rather, it's network load.

The usual way to reduce UDP packet loss is to favor smaller and more
frequent packets over larger and infrequent packets. It is often said that
packets around the size of the MTU are best. Also, reduce the send buffer
size and increase the receive buffer size.

Mike


"Vicent Soler" <VicentSoler@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9758AB39-50C0-4750-8F48-2F5399232EEA@xxxxxxxxxxxxxxxx
> Hi all,
>
> We are developing a tool which uses UDP packets to receive data from a UDP
> Server. The problem we have found is that some UDP packets are being lost
> when the PC's CPU is near 100% and we think that this problem is related
to
> the Window's input buffer.
>
> Any suggestion to solve this problem!! Is there any way to change the
input
> buffer size of the socket and store the received packet while the PC is
> processing other data? Should we use threads to extract data from sockets?
>
> We are really worried about this problem because we can not lose so much
> packets as we do.
>
> Using more than one port, cuould solve the problem?
>
> Thanks in advance,
>
> Vicent


.



Relevant Pages

  • Re: Packet loss every 30.999 seconds
    ... # With FreeBSD 4 I was able to run a UDP data collector with rtprio set, ... the "socket buffer full lossage increases ... However, with 1500-byte packets, the larger buffer reduces the lossage ... With net.isr.direct=0, the loss is ...
    (freebsd-net)
  • Re: Packet loss every 30.999 seconds
    ... # With FreeBSD 4 I was able to run a UDP data collector with rtprio set, ... the "socket buffer full lossage increases ... However, with 1500-byte packets, the larger buffer reduces the lossage ... With net.isr.direct=0, the loss is ...
    (freebsd-stable)
  • Re: Multiplexing and packet loss
    ... large number of small packets, have alot of buffer related packet loss ... In theory four interface buffers should be better than one ...
    (comp.dcom.sys.cisco)
  • Re: Multiplexing and packet loss
    ... large number of small packets, have alot of buffer related packet loss ... A solution I'm planning to implement is CWDM on this ...
    (comp.dcom.sys.cisco)
  • Re: Multiplexing and packet loss
    ... large number of small packets, have alot of buffer related packet loss ... In theory four interface buffers should be better than one ...
    (comp.dcom.sys.cisco)