I would like to measure/estimate the packet loss rate of a network connection from a browser, without any plugins or installations.
I am not familiar with networking protocols or infrastructure beyond a superficial level, but it seems within the realm of possibility to set up a WebRTC client on a server and create an unreliable datachannel connection with a browser client, and use that to count missing messages, which over time can be extrapolated into a packet loss measurement. I can't think of a good way to do this with WebSockets because of the reliable transmission of TCP. I don't yet understand what RTP, SCTP, etc are, or how they impact things.
Googling around for the last day has not presented itself with a simple way to accomplish setting up a server-based WebRTC peer that can be connected to a client. The closest I've found so far appears to be node-webrtc. I haven't tried setting up node-webrtc yet, the documentation is lacking, though it appears to be what I am looking for.
Anyway, is this feasible? Is there a more obvious solution that I am missing? Am I oblivious to some fundamental thing that makes this a stupid question?