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
Which TCP/IP layer corresponds to the OSI Network layer?
- Link
- Internet
- Transport
- 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.
Which of the following are characteristics of TCP?
- Connection-oriented
- Acknowledges received data
- Delivers data in order
- Connectionless
- 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.
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.
