Re: UDP packets
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Wed, 16 May 2007 16:57:16 +0200
Bruce <bruce.rothermal@xxxxxxx> writes:
On May 16, 1:18 am, Jack <junw2...@xxxxxxxxx> wrote:
[ UDP packets getting lost locally ]
I can't say for sure on your system but on some systems IP
communications between processes is handled on pipes.
Which would that be?
If the sender is pushing data into the pipe faster than the receiver
is consuming it the send does not really happen.
Read: In case of memory pressure, the kernel may drop UDP datagrams.
[...]
If you use TCP you will get error conditions if the sender is
sending to fast.
With TCP, the sending process will block if the socket buffer is full.
Additionally, the TCP receiver announces how much buffer space it has
available for receiving (this is called 'a window') and the sender
must not cause more data to be in flight than what would completely
fill the announced window (this is heavily simplified). Consequently,
a TCP sender can never 'send too fast' because TCP does flow control.
.
- References:
- UDP packets
- From: Jack
- Re: UDP packets
- From: Bruce
- UDP packets
- Prev by Date: Redirecting stdin/stdout/stderr causes problems with wgetch()
- Next by Date: Re: scalable TCP server design
- Previous by thread: Re: UDP packets
- Next by thread: Re: UDP packets
- Index(es):
Relevant Pages
|