title: Utility to benchmark udp and tcp performance for large data transfer
body: <p>I referred to different threads about reliable UDP vs TCP for large file transfers. However, before making the decision of choosing UDP over TCP ( and add reliability mechanism to UDP ) I want to benchmark performance of UDP &amp; TCP. Is there any utility in linux or windows that can give me this performance benchmark ?</p>
  
  <p>I found <a href="http://linux.softpedia.com/get/System/Networking/Iperf-23581.shtml" rel="nofollow">Iperf</a> is one such utility. But when I used Iperf on two linux machines to send data using both udp and tcp, I found that TCP performs better than UDP for 10MB of data. This was surprising for me as it is well known fact that UDP performs better than TCP. </p>
  
  <p>My Questions are :</p>
  
  <ol>
  <li><p>Does UDP always perform better than TCP  ? or is there any specific
  scenario where UDP is better than TCP. </p></li>
  <li><p>Is there any published
  benchmarks for validating this fact ? </p></li>
  <li><p>Is there any standard utilty to measure tcp and udp performance on a particular network ?</p></li>
  </ol>
  
  <p>Thanks in Advance</p>