I am developing SNTP client which gets time stamp from NTP server via UDP. Everything works fine, I can download time stamp and update windows clock, but I'd like to get a message if UDP packet has been lost. How can I detect when packet has been lost? I need that information, because I want to get new time stamp if data lost.
... and how can I test that feature? How can I lost UDP packet purposely?