What is the key difference between TCP and UDP?

Prepare for the 241 Computer Science Certification Exam with comprehensive flashcards and multiple choice questions. Enhance knowledge with explanations and hints to excel in your test journey!

Multiple Choice

What is the key difference between TCP and UDP?

Explanation:
The main distinction is how these protocols handle delivery guarantees and connections. TCP is connection-oriented: it establishes a connection before data transfer and guarantees reliable delivery, meaning data arrives intact and in the same order it was sent, with mechanisms for retransmission, sequencing, and flow/congestion control. UDP, on the other hand, is connectionless and best-effort: it sends datagrams without establishing a persistent connection and does not guarantee delivery or order, though this results in lower overhead and usually lower latency. That’s why the description that TCP is connection-oriented and reliable, while UDP is connectionless and best-effort with lower overhead is the best fit. The other statements mix up these properties, incorrectly claiming UDP is connection-oriented, or that both are connection-oriented, or that TCP has no ordering guarantees.

The main distinction is how these protocols handle delivery guarantees and connections. TCP is connection-oriented: it establishes a connection before data transfer and guarantees reliable delivery, meaning data arrives intact and in the same order it was sent, with mechanisms for retransmission, sequencing, and flow/congestion control. UDP, on the other hand, is connectionless and best-effort: it sends datagrams without establishing a persistent connection and does not guarantee delivery or order, though this results in lower overhead and usually lower latency.

That’s why the description that TCP is connection-oriented and reliable, while UDP is connectionless and best-effort with lower overhead is the best fit. The other statements mix up these properties, incorrectly claiming UDP is connection-oriented, or that both are connection-oriented, or that TCP has no ordering guarantees.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy