title: How to find the right sending speed with UDP?
body: <p>I want to transfer a large number of messages. The messages do not need to be reliable. UDP comes to mind as a protocol choice.</p>
  
  <p>Latency is important as well. I do not want to suffer from TCP head-of-line blocking.</p>
  
  <p>I'm concerned I might overload the network when I just start sending messages at maximum speed (e.g. <code>while (messagesRemaining != 0) Send(...);</code>). If I send more than some middle-box can relay then, I think, large numbers of messages might be dropped. Some messages being dropped is fine but most of them should arrive.</p>
  
  <p>How can I address this issue? How can I find out how fast I can send? I want to maintain reasonable packet loss (a few percent) and otherwise maximize bandwidth.</p>