Re: UDP packets



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.
.