What is the difference between TCP and UDP in networking?

  • Reliability and connection-oriented
  • Reliability and connectionless
  • Speed and connection-oriented
  • Speed and connectionless
Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are two protocols used for data transmission across networks. TCP is known for its reliability and connection-oriented nature. It ensures that data packets arrive in the correct order and without errors by establishing a connection between sender and receiver and implementing mechanisms like acknowledgments and retransmissions. UDP, on the other hand, is faster and connectionless. It does not establish a connection before sending data and does not guarantee delivery or order of packets. UDP is often used for applications where speed is prioritized over reliability, such as streaming media or online gaming.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *