Implementation of reliable data transfer over UDP networks