Checking for packet loss (network lag)