TCP vs UDP Reliability and Error Checking Mechanisms

200-301 By islever Editorial Last updated

Compare TCP to UDP

Short answer

D UDP operates without acknowledgments, and TCP sends an acknowledgment for every packet received, ensuring reliability for HTTPS.

Question

Why is TCP desired over UDP for applications that require extensive error checking, such as HTTPS?
  1. UDP uses sequencing data for packets to arrive in order, and TCP offers the capability to receive packets in random order.
  2. UDP uses flow control mechanisms for the delivery of packets, and TCP uses congestion control for efficient packet delivery.
  3. UDP reliably guarantees delivery of all packets, and TCP drops packets under heavy load.
  4. UDP operates without acknowledgments, and TCP sends an acknowledgment for every packet received. Correct Answer

Key Takeaways

The main trap is confusing UDP's speed with reliability; remember that UDP lacks acknowledgments, so it cannot guarantee error-free delivery without application-layer intervention.

This page explains why TCP is preferred over UDP for error-sensitive applications like HTTPS by focusing on TCP's acknowledgment mechanism versus UDP's connectionless nature.

Common mistake: Candidates often choose Option A because they mistakenly believe UDP handles sequencing for ordering. However, UDP does not enforce packet ordering or retransmit lost packets, making it unreliable for error checking.

Expert Analysis

TCP Acknowledgments vs. UDP Connectionless Nature The question asks why TCP is preferred for applications requiring extensive error checking, such as HTTPS. The core distinction lies in how each protocol handles data delivery verification. TCP is a connection-oriented protocol that guarantees reliable data transmission through mechanisms like sequence numbers and acknowledgments (ACKs). When a TCP segment is received, the receiver sends an ACK back to the sender. If the sender does not receive an ACK within a specified timeout, it assumes the packet was lost and retransmits it. This mechanism ensures that no data is lost and provides the integrity required for secure web traffic.

Why UDP Fails for Error Checking UDP (User Datagram Protocol) is connectionless and operates without acknowledgments. It sends datagrams without verifying if they arrive at the destination or if they are corrupted. While this makes UDP faster and lighter, it offers no built-in error recovery. Applications using UDP must implement their own reliability layers if needed, which contradicts the premise of "extensive error checking" being inherent to the transport protocol itself. Therefore, UDP cannot guarantee the delivery or order of packets, making it unsuitable for protocols like HTTPS that require absolute reliability.

Analysis of Incorrect Options Option A incorrectly states that UDP uses sequencing data; while UDP packets have sequence-like identifiers in some contexts, UDP does not enforce ordering or use windowing for flow control in the same way TCP does. Option B misattributes flow control solely to UDP, whereas TCP uses both flow control (windowing) and congestion control. Option C claims UDP reliably guarantees delivery, which is factually incorrect; UDP does not guarantee delivery. Option D correctly identifies that UDP operates without acknowledgments, while TCP sends an acknowledgment for every packet (or block of data), directly addressing the requirement for error checking.

Exam Strategy

When comparing TCP and UDP, always look for keywords related to reliability (error checking, guaranteed delivery, acknowledgments) versus speed (connectionless, lightweight, real-time). For questions about HTTPS, SSH, or file transfers, TCP is almost always the correct choice due to its reliability features. Eliminate options that attribute TCP features (like flow control or acknowledgments) to UDP.

Frequently Asked Questions

Does UDP use sequence numbers?

While UDP packets may contain port numbers that helpreassemble data, UDP does not use sequence numbers for ordering or retransmission purposes like TCP does. It does not track packet loss.

Why is HTTPS not suitable for UDP?

HTTPS requires reliable, ordered, and error-checked delivery of data. Since UDP does not provide these features natively, TCP is necessary to ensure secure and complete data transmission.

Community Votes

D
100%

100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 11 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 11

  1. Mshamel 👍 8 Answered D
    The answer is D.
  2. gewe 👍 4
    UDP operates without acknowledgments, and TCP sends an acknowledgment for every packet received.
  3. DavidCisco 👍 3 Answered D
    The answer is D, Answer A is upside down
  4. Scalibur 👍 2
    Answer is D The main difference between TCP (transmission control protocol) and UDP (user datagram protocol) is that TCP is a connection-based protocol and UDP is connectionless. While TCP is more reliable, it transfers data more slowly. UDP is less reliable but works more quickly.F
  5. JJY888 👍 2 Answered D
    UDP does not use sequence numbers or windowing, so there is no need for a three-way handshake to set initial values. If a device using UDP becomes swamped by an excessive number of datagrams, it will simply drop those that it cannot process
Show 6 more comments
  1. jaya9233 👍 2
    a is incorrect
  2. Florin79 👍 1 Answered D
    the question is ambiguous because tcp acknowledges the number of bytes received
  3. TNgen9 👍 1
    I can't trust this anymore even this question is correct
  4. Da_Costa 👍 1 Answered D
    Going through the answers I think the right choice is D
  5. Yinxs 👍 1 Answered D
    Obviously, A is wrong.
  6. exsiaino 👍 1
    correct answer is D.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All 200-301 Questions

Access 220 questions with complete answers and detailed explanations.

View Full 200-301 Practice Test →

← Back to 200-301 Study Guide