Bitzu

100-150 CCST ยท Network models, types and protocols

TCP versus UDP

Connection-oriented versus connectionless transport, the three-way handshake, reliability and which applications use each.

Key points

  • TCP is connection-oriented and reliable: a three-way handshake (SYN, SYN-ACK, ACK) opens the session, then sequence numbers, acknowledgements and retransmission guarantee ordered delivery.
  • Used for web, email and file transfer.
  • UDP is connectionless: no handshake, no acknowledgements, low overhead.
  • Used where speed matters more than perfection: DNS queries, voice, video streaming, DHCP.

Source: https://www.rfc-editor.org/rfc/rfc9293.html

Practice questions

Single choice

What are the three segments of the TCP three-way handshake, in order?

  1. SYN, SYN-ACK, ACK
  2. ACK, SYN, SYN-ACK
  3. SYN, ACK, FIN
  4. SYN-ACK, SYN, ACK
Show answer

Answer: A. SYN, SYN-ACK, ACK

The client sends SYN, the server answers SYN-ACK, and the client confirms with ACK.

Select all that apply

Which of these typically use UDP as their transport?

  1. DNS queries
  2. SSH sessions
  3. Voice over IP media streams
  4. FTP control connections
  5. TFTP transfers
Show answer

Answer: A. DNS queries, C. Voice over IP media streams, E. TFTP transfers

DNS queries, voice streams and TFTP typically use UDP. SSH and FTP control connections use TCP.

True or false

UDP guarantees that datagrams arrive in the order they were sent.

Show answer

Answer: False

False. UDP has no sequence numbers or acknowledgements, so it does not guarantee delivery or order. TCP does.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module