← Back to OSI Overview

OSI vs TCP/IP Model

The OSI model is a 7-layer theoretical framework used to understand network communication. The TCP/IP model is the 4-layer protocol stack that actually runs the internet. Here's how they line up.

OSI Model (7 layers)
TCP/IP Model (4 layers)
7 · ApplicationHTTP, HTTPS, FTP, SMTP, DNS, SSH
ApplicationHTTP(S), DNS, SMTP, FTP, SSH, IMAP, SNMP
6 · PresentationSSL/TLS, JPEG, ASCII, UTF-8, MIME
5 · SessionSMB, NetBIOS, RPC, SQL sessions
4 · TransportTCP, UDP, SCTP
TransportTCP, UDP, SCTP
3 · NetworkIPv4, IPv6, ICMP, OSPF, BGP, RIP
InternetIP, ICMP, IGMP, ARP*
2 · Data LinkEthernet, Wi-Fi, PPP, ARP, STP
Network Access (Link)Ethernet, Wi-Fi, PPP, cabling, drivers
1 · PhysicalCables, fibre, radio, USB, hubs

* ARP is sometimes placed at Layer 2.5 / Internet boundary depending on the source.

Key differences at a glance

Encapsulation units (PDUs) per layer

OSI LayerPDU NameExample
7 ApplicationDataHTTP GET / request body
6 PresentationDataTLS-encrypted payload
5 SessionDataSMB session message
4 TransportSegment (TCP) / Datagram (UDP)TCP segment with seq/ack
3 NetworkPacketIPv4 packet with src/dst IP
2 Data LinkFrameEthernet frame with MAC + FCS
1 PhysicalBitVoltage / light / radio pulse on the wire

When to use which model

Use the OSI model when you want to explain a concept (e.g. "ARP works at Layer 2") or pinpoint where a fault occurs ("the cable is fine — must be a Layer 3 routing issue").

Use the TCP/IP model when you want to describe what's actually running — every modern protocol is part of the TCP/IP family.

In practice, network engineers slip between both models in the same sentence. CompTIA Network+ and CCNA exams expect fluency with both.

Want to go deeper?

Each OSI layer has its own page with interactive demos and Wireshark captures:

← Return to OSI Overview