def METHOD_NAME(sock, packet_size, packets_per_test):
  sock.send(ACK_BYTE)
  print "Acked for testing latency average"
  start = time.time()
  for x in xrange(packets_per_test):
    r = sock.recv(1)
    if not r:
      print "ERROR: couldn't read from socket"
      return
    sock.send(r)
  print "Echoed all packets for latency test in %s seconds" % (time.time() - start)