largely reworked Tcp layer by implementing duplex connections