Re: UDP packets dropping




"Guddu" <vishal21@xxxxxxxxx> wrote in message
news:1163164373.286060.51090@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I am facing a problem which anyone who has worked on any UDP
application might have faced.
UDP by itself is unreliable. If packets are lost, no acknowledgements
are sent.

I think your answer is right there in the second sentence. Since UDP is
best-effort you can never be sure whether you've lost a packet unless the
higher level protocol does some kind of checking. Monitoring the receiving
socket state may help but packets could be lost for other reasons so if your
upper protocol depends on reliable delivery you have to implement that with
sequence numbers, acknowledgements or whatever mechanism is best suited to
your app.

This will become very obvious if you move to wireless or some other
transport that's less reliable than Ethernet.

Hope that helps,
Andrew


.



Relevant Pages

  • Re: Determining if it is "safe" to send UDP packets
    ... IMHO for "reliable" UDP you need to use some Quality of service ... Maybe your network is QoS enabled and your traffic gets classified as "below ... > the sender's OS that is throwing the UDP packets away. ... > next 100%-x% are not send, they are almost all completely lost. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Determining if it is "safe" to send UDP packets
    ... As we are sending on a wireless link (but assuming we are the ... the sender's OS that is throwing the UDP packets away. ... Another problem with TCP is its assumption that a lost packet is due to ...
    (microsoft.public.win32.programmer.kernel)
  • Re: UDP concept help please
    ... > The way I understand it, UDP is an unreliable protocol and packets can ... > the queue and do whatever with it. ... If packets are lost it will probably be because of network conditions [line ...
    (comp.lang.c)
  • Re: UDP Packet are lost
    ... > my problem is that we are losing a lot of UDP packets. ... Don't user UDP for a critical app. ... when packets are lost. ...
    (comp.unix.solaris)
  • RE: Losing UDP packets with MFC Sockets
    ... UDP is connectionless, as such it does not assure reliable delivery. ... need reliably delivery of packets you need to use TCP -PERIOD-. ... isn't able to keep it empty), incoming UDP packets will be discarded. ...
    (microsoft.public.vc.mfc)