in reply to How to increase Socket buffer size?

How did you determine that you're losing packets due to buffer overflows? There are a lot of things that can go wrong between two hosts; how did you narrow it down? UDP doesn't guarantee package delivery; that's why they call it Unreliable. :)

If reliability is that important to you, you could implement packet numbers, reassembly for out-of-order packet delivery, and retransmission guidelines. Of course, it may end up looking a lot like TCP. Would it be possible to switch protocols?

  • Comment on Re: How to increase Socket buffer size?

Replies are listed 'Best First'.
Re: Re: How to increase Socket buffer size?
by sureshr (Beadle) on May 06, 2003 at 11:40 UTC
    Ofcourse, I have flow sequence number in the packed data with which I can determine the packet loss. If the packet is lost in the n/w then I am sure we can't help. But increasing the socket buffer size is one of the measures that we can take to avoid the packet loss, to handle situations when there is resource problem on the system. I agree that this would not necessarily mean the packet loss would be eliminated -- the very reason for having something like TCP :) I was just thinking of a preventive measure.
    Thanks,
    -sureshr