CampusFlow

TCP/IP Model

The TCP/IP model is the practical networking model that powers the internet. It has 4 layers and maps to the OSI model's 7 layers. Developed by DARPA in the 1970s.

L4

Application Layer

PDU: Data / Message

Maps to: Application + Presentation + Session (OSI 5,6,7)

Protocols

HTTPHTTPSFTPSMTPDNSDHCPSSHTelnet

Description

Combines OSI's top 3 layers. Handles all high-level protocols, data representation and session management.

L3

Transport Layer

PDU: Segment / Datagram

Maps to: Transport (OSI 4)

Protocols

TCPUDPSCTP

Description

Provides end-to-end communication. TCP offers reliable, ordered delivery. UDP offers fast, connectionless delivery.

L2

Internet Layer

PDU: Packet

Maps to: Network (OSI 3)

Protocols

IP (IPv4/IPv6)ICMPARPOSPFBGPRIP

Description

Handles logical addressing and routing of packets across multiple networks using IP addresses.

L1

Network Access Layer

PDU: Frame / Bits

Maps to: Data Link + Physical (OSI 1,2)

Protocols

EthernetWi-FiPPPARPMAC

Description

Combines OSI's bottom 2 layers. Handles physical transmission and local network addressing.

TCP 3-Way Handshake

1

SYN

ClientServer

Client sends SYN (synchronize) to initiate connection

2

SYN-ACK

ServerClient

Server acknowledges with SYN-ACK (synchronize-acknowledge)

3

ACK

ClientServer

Client sends ACK — connection established!

Animate TCP Handshake →

Key Questions

Q: How many layers does TCP/IP have?

4 layers: Application, Transport, Internet, Network Access

Q: What is the difference between TCP and UDP?

TCP is connection-oriented, reliable, ordered. UDP is connectionless, faster, no guarantee.

Q: What does IP stand for?

Internet Protocol — handles logical addressing and routing

Q: What is a 3-way handshake?

TCP connection setup: SYN → SYN-ACK → ACK