I'm developing an app that analyses the quality of your internet connection, and part of that is measuring packet loss.
I was thinking of sending packages to an IP address, but how can I send messages and check that they return? I'm guessing I need to send a package prompting a reply, but I can't find an example of that using either search or Google.
Or should I use existing traffic(how?)?
Besides that, how do I measure round trip time?