In: Computer Science
What are the services provided by TCP? What services are provided by UDP?
TCP Services:
1. Process-to-Process Communication:Using port numbersTCP provides process-to-process communication.
2. Stream Delivery Service: TCP is a stream-oriented protocol.TCP allows the sending process to deliver data as a stream of bytes and allows the receiving process to obtain data as a stream of bytes.
3. Sending and Receiving Buffers:TCP have two buffers, for sender there is a sending buffer and for the receiver there is a receiving buffer, they necessary for flow and error control mechanisms used by TCP.
4. Segments: TCP groups a number of bytes together into a packet called a segment.
5. Full-Duplex Communication: TCP allow to flow in both directions at the same time.
UDP Services:
1.Unreliable Services: The service provided by UDP is an unreliable service that provides no guarantees for delivery and no protection from duplication.
2. UDP provides a minimal, unreliable, best-effort, message-passing transport to applications and upper-layer protocols.
3. The simplicity of UDP reduces the overhead from using the protocol and the services may be adequate in many cases.