Self-educational implementation of reliable transport protocol