I have two debian servers located on the same subnet. They are connected by a switch. I am aware the UDP is unreliable.
Question 1: I assume the link layer is ethernet. And MTU from a standard Ethernet is 1500 bytes. So the maximum datagram not being fragramented is 1500- 20 -8 = 1472 bytes? Can I say, because there's no router in between these two servers, therefore, the IP datagram will not be fragmented.
Question 2: Because two servers are directly connected with a switch, can I assume that all datagrams arrives in order and no loss on the path?
Question 3: How can I determine that the chances of datagram dropped at the server because of buffer overflow. What size to set the receive buffer so that datagram will not overflow receive buffer.