transport layer design and partial implementation