How come only the first part of my datagram is getting through?
Answer Posted / chaitanya
This has to do with the maximum size of a datagram on the two machines involved. This depends on the sytems involved, and the MTU (Maximum Transmission Unit). According to "UNIX Network Programming", all TCP/IP implementations must support a minimum IP datagram size of 576 bytes, regardless of the MTU. Assuming a 20 byte IP header and 8 byte UDP header, this leaves 548 bytes as a safe maximum size for UDP messages. The maximum size is 65516 bytes. Some platforms support IP fragmentation which will allow datagrams to be broken up (because of MTU values) and then re-assembled on the other end, but not all implementations support this.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a socket and a port?
Can a socket have multiple ports?
How can I set the timeout for the connect() system call?
What's the difference between a socket and a port?
Whats the difference between select() and poll()?
What is the function of socket?
Are unix sockets faster than tcp?
Is a socket a file?
What is socket address with example?
What's the difference between impact sockets and regular sockets?
Can a single socket port be used for multiple applications?
How can I write a multi-homed server?
What is active unix domain sockets?
What is the purpose of socket?
What's better 6pt or 12pt sockets?