Subdomain 1.5: Compare TCP to UDP
1.Which of the following statements correctly compares TCP and UDP?
- A.TCP provides flow control, while UDP does not.
- B.UDP provides sequencing, but TCP does not.
- C.Both TCP and UDP use a three-way handshake.
- D.TCP is stateless, but UDP maintains connection state.
Show answer & explanation
Correct answer: A — TCP provides flow control, while UDP does not.
- A. Correct. TCP includes flow control mechanisms (e.g., sliding window) to regulate data transmission rate, ensuring the sender does not overwhelm the receiver. UDP is connectionless and lacks built-in flow control, making it simpler but less reliable.
- B. Incorrect. TCP provides sequencing through sequence numbers to ensure packets are reassembled in order. UDP does not provide sequencing or guarantee packet ordering because it is a lightweight, connectionless protocol.
- C. Incorrect. Only TCP uses a three-way handshake (SYN, SYN-ACK, ACK) to establish a reliable connection. UDP is connectionless and does not perform any handshake process.
- D. Incorrect. TCP is stateful; it maintains connection state (e.g., sequence numbers, acknowledgments) for reliable communication. UDP is stateless and does not track connection state, as it is connectionless.