Re: Losing UDP packets with MFC Sockets



This might have to do with the way you are handeling your message retrieval
from the receive buffer, are you handeling receiving multiple message in a
single read?

AliR.

"Vicent Soler" <VicentSoler@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3AAE5247-76AB-43A3-912A-61177FAA3A49@xxxxxxxxxxxxxxxx
> Responses below....
>
> "Michael K. O'Neill" wrote:
>
> > 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 UDP packet size is variable but usually it can be around 50-300 bytes.
> The frequency is also difficult to calculate because the UDP Server send
> messages using event triggers. As far as we could understand, the main
> problem is when the UDP Client is using lot of CPT time. Then it seems
that
> the input buffer is being overload and packets are being discarded.
>
>
> > 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: UDP server socket
    ... >> whats the maximum number of datagrams that can queue up on a UDP ... or is that system dependent? ... > or duplicated packets yourself. ... size of the buffer and is there any way of increasing it. ...
    (comp.lang.python)
  • Re: UDP packets
    ... Why did you choose UDP in the first place? ... and client run on the same machine. ... 100000 UDP packets within 2 min. ... Even for the same buffer size, ...
    (comp.unix.programmer)
  • Re: UDP packets
    ... and client run on the same machine. ... 100000 UDP packets within 2 min. ... there's no point in having a send buffer. ...
    (comp.unix.programmer)
  • Re: How full is a UDP socket buffer
    ... > UDP socket and puts them in a buffer in memory (call it the application ... > receiving packets from the UDP socket while T2 is doing I/O? ... > of the incoming packets until T1 gets a chance to recvfrom it. ...
    (comp.unix.programmer)
  • Re: Losing UDP packets with MFC Sockets
    ... CPU load is not the main culprit in UDP packet ... the input buffer is being overload and packets are being discarded. ...
    (microsoft.public.vc.mfc)

Loading