200-301 · Question #55
How do TCP and UDP differ in the way that they establish a connection between two endpoints?
The correct answer is D. TCP uses the three-way handshake and UDP does not guarantee message delivery. This question differentiates TCP and UDP based on their connection establishment methods and message delivery guarantees.
Question
How do TCP and UDP differ in the way that they establish a connection between two endpoints?
Options
- ATCP uses synchronization packets, and UDP uses acknowledgment packets.
- BUDP uses SYN,SYN ACK and FIN bits in the frame header while TCP uses SYN,SYN ACK and
- CUDP provides reliable message transfer and TCP is a connectionless protocol
- DTCP uses the three-way handshake and UDP does not guarantee message delivery
How the community answered
(59 responses)- A2% (1)
- B2% (1)
- C3% (2)
- D93% (55)
Why each option
This question differentiates TCP and UDP based on their connection establishment methods and message delivery guarantees.
While TCP uses synchronization (SYN) for connection setup and acknowledgments (ACK) for reliability, UDP is connectionless and does not use acknowledgment packets for establishing a connection or guaranteeing delivery.
SYN, SYN-ACK, and FIN bits are control flags used exclusively by TCP for connection establishment and termination, not by UDP, which is a connectionless protocol.
This statement is incorrect; TCP provides reliable, connection-oriented message transfer, whereas UDP is a connectionless protocol that does not guarantee message reliability.
TCP establishes a connection using a three-way handshake (SYN, SYN-ACK, ACK) to ensure both endpoints are ready for reliable data transfer. In contrast, UDP is a connectionless protocol that sends datagrams without prior connection setup, and therefore does not guarantee message delivery, order, or duplication avoidance.
Concept tested: TCP three-way handshake vs UDP connectionless
Source: https://learn.microsoft.com/en-us/windows/win32/winsock/protocol-parameters-2
Topics
Community Discussion
No community discussion yet for this question.