UNIT I ELEMENTARY TCP SOCKETS 1) Compare TCP and UDP TCP It is connection oriented protocol. TCP is sophisticated reliable byte stream protocol UDP It is a connectionless…