title: How to calculate the latency and bandwidth of a network
body: <p>i have code that pings several machines, and records the time, it does this for various packet sizes ( 1kb to 100gb ), but i would like to know how to calculate the latency of the network, how can this be achieved ?</p>
  
  <p>this is the code i am using to measure the ping :</p>
  
  <p>also how can i measure the bandwidth of the system as well ?</p>
  
  <p>Thanks for the help guys !</p>