Re: UDP messages lost in Ip-stack ?

Tech-Archive recommends: Speed Up your PC by fixing your registry



Lasse wrote:
It seems to me, the message is lost somewhere between the point
where the network listener gets it and where WSARecvFrom() should
return it. (the Ip-stack).

Note: This has nothing to do with overflow in socket receivbuffer
since there could be max 3 unread messages.

I think you'll find that if you restructure your code to use async IO and
have (at least) 3 outstanding reads at any time that you will very rarely
lose any packets. With a synchronous read from the socket, it's possible
that multiple packets are sent before your receiver ever wakes up, in which
case the IP stack is free to (and in my experience does) discard packets for
which there is no immediate receiver.

-cd


.



Relevant Pages

  • Re: Deaf CAsyncSocket on Windows Service.
    ... To read them out I need a buffer to ... Short packets at the sender are coalesced into longer packets. ... THe receiver says "I have this much buffer space" and the sender is free to send ... You get an OnReceive notification if there is input data to be read. ...
    (microsoft.public.vc.mfc)
  • Re: bad networking related lag in v2.6.22-rc2
    ... 1233 active connections openings ... 12 delayed acks further delayed because of locked socket ... 4867 packets directly queued to recvmsg prequeue. ... times receiver scheduled too late for direct processing ...
    (Linux-Kernel)
  • Re: NDIS ping sizes
    ... out what the capability of the receiver is and whether an overflow is ... How much burst data can the receiver handle without overflowing ... But ping as a utility doesn't consider retransmission and just tells ... Right now my NDIS miniport driver pings up to 30000 bytes from both ...
    (microsoft.public.windowsce.embedded)
  • interpreting netstat -s
    ... 529092 duplicate acks ... what does the tcp output "embryonic connections ... 11772048 total packets received ... IP Multicast packets dropped due to no receiver ...
    (comp.unix.aix)
  • Re: Statistics Extraction
    ... 546 confirmed frames sent succesfully ... 549 packets sent successfully ... 105 transmits aborted due to rx ... packets dropped due to no receiver ...
    (comp.lang.perl.misc)