title: How can I do congestion control for a  UDP protocol?
body: <p>I have a custom UDP protocol with multiple senders/receivers designed to send large files around as fast as possible. It is client/server based.  </p>
  
  <p>How can I detect congestion on the LAN to slow the rate of UDP packets being sent?</p>
  
  <p>EDIT: please, no comments on the use of UDP whether it's suitable or not.  This protocol uses UDP but reassembles packets into whole files when they arrive.  </p>
  
  <p>To rephrase the question: How do congestion control algorithms work and how is congestion detected?</p>