You too developing a network game? Here is a Python3 snippet to test latency, jitter and packet loss. My game is actually working really well even with high latencies and even (!) with bad packet loss, as I have no resend-lost-packet support. YEY!
Ventures of an ex indie game developer