Measure packet loss over UDP