title: Test connection speed in objective-C
body: <p>I am currently working on a project which have a part to test my connection speed and retrieve the results.</p>
  
  <p>The results should contains the following:</p>
  
  <pre><code>Downlink Data Throughput(Mbps)
  Maximum Downlink Data Rate(Mbps)
  Avg Downlink Data Rate(Mbps)
  Session Duration(mSec)
  Latency / Ping Test(mSec)
  </code></pre>
  
  <p>I have found the <a href="https://stackoverflow.com/questions/14532651/how-to-detect-network-signal-strength-in-ios-reachability">speedTest</a> which I can basically use it to get the Max and Avg Data Rate and session duration(the time to download the file)</p>
  
  <p>But how am I supposed to get the Downlink Data throughput and Ping ?
  Can anyone help me how to retrieve those data?  </p>