measure the throughput of a tcp connection
