measure the throughput of a TCP connection
