Bitzu

CC ยท Network security fundamentals

TCP/IP model and the TCP handshake

Four layers, mapping to OSI, TCP vs UDP and the three-way handshake.

Key points

  • Four layers: Link (Network Access) ~ OSI 1-2, Internet ~ OSI 3 (IP), Transport ~ OSI 4 (TCP, UDP), Application ~ OSI 5-7.
  • TCP is connection-oriented and reliable (acknowledgments, ordering, retransmission); UDP is connectionless, lighter and faster but with no delivery guarantee.
  • TCP opens a connection with SYN, SYN-ACK, ACK.

Source: https://www.rfc-editor.org/rfc/rfc9293#name-establishing-a-connection

Practice questions

Single choice

Which TCP/IP layer corresponds to the OSI Network layer?

  1. Link
  2. Internet
  3. Transport
  4. Application
Show answer

Answer: B. Internet

The Internet layer carries IP and handles addressing and routing, matching OSI Layer 3. The Link layer maps to OSI 1-2 and Transport to OSI 4.

Select all that apply

Which of the following are characteristics of TCP?

  1. Connection-oriented
  2. Acknowledges received data
  3. Delivers data in order
  4. Connectionless
  5. Has no retransmission
Show answer

Answer: A. Connection-oriented, B. Acknowledges received data, C. Delivers data in order

TCP is connection-oriented, acknowledges data and keeps it in order. Being connectionless with no handshake describes UDP, not TCP.

True or false

UDP performs a three-way handshake before sending data.

Show answer

Answer: False

False. UDP just sends datagrams with no setup. The three-way handshake belongs to TCP.

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 CC topics in this module