This is an update. Version 1.2 of my WiFi buffer will now re-order UDP packets based on their sequence number. And it counts and displays out-of-order packets. A packet is out of order if the sequence number goes backwards. If there is a skip in sequence (100, 102, 103, 105, 106, ...) this is not reported when it occurs. It may happen that packet 104 will be received later. If the software is sending the buffer to the HL2, and packet 104 is then found to be missing, a missing packet is reported and a packet with Tx samples of zero is sent.
In operation, the newest Tx samples are written to the top of the buffer with the possibility that some are missing, and that out-of-order packets may be inserted lower than the top. Meanwhile packets are sent to the HL2 from the bottom of the buffer. Eventually, missing packets will be discovered and replaced with silence.
My experience with my WiFi in my loft is that there are no out-of-order packets. But there are occasional missing packets, and occasional "storms" of many missing packets which are associated with longer WiFi delays. A typical maximum delay over five seconds is 25 msec, but I have seem delays of 400 msec, well in excess of my 300 msec buffer. The software tries to recover from buffer underflows and overflows as best it can. But other WiFi networks can be different. And using the software over the Internet without WiFi can also be different.
Jim
N2ADR