<div dir="ltr"><div><span style="font-size:12.8px">>> 1) Can I find out the max binary size that can be sent/received?</span><br></div><div><span style="font-size:12.8px"><br></span></div><div>I believe you're getting that error because you exceeded the default value of the receive buffer, which is 8192 bytes. It's on the gen_udp doc.</div><div><br></div><div>>> <span style="font-size:12.8px">2) Can I increase the max size?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">You can set the option {recbuf, ...} to change the max size.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">>> </span><span style="font-size:12.8px">3) Is there a guaranteed minimum packet length that will not be fragemented?</span></div><div><span style="font-size:12.8px">>> 3) Can received packets be fragmented - TCP has a  {packet,N}</span><br style="font-size:12.8px"><span style="font-size:12.8px">>>        option and some built-in defragmentation, what's the story for</span><br style="font-size:12.8px"><span style="font-size:12.8px">>>        UDP?</span><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In the network layer in general, both TCP and UDP can be sent through an interface, disassembled, and re-assembled at its destination. This can happen if the packet size exceeds the interface's MTU (e.g. 1500).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In the application layer, with the {packet, N} option is viable in TCP because it's reliable and it has flow control. UDP can drop packets along the way and can be received out of order.</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">Ruel<br><br></div></div>