Skip to content
UniCircle
EasyConceptualNetwork models

OSI model vs the TCP/IP model

Question NET-101

Name the seven layers of the OSI model and give one protocol or device for each where possible. How do they map onto the TCP/IP model that the Internet actually uses?

Show hints

From bottom to top: Physical, Data Link, Network, Transport, Session, Presentation, Application.

Show the explanation

Model answer.

OSI model (bottom to top)

#LayerJobExamplesData unit
1PhysicalTransmit raw bits over a mediumCables, radio, hubs, repeatersBits
2Data LinkNode-to-node delivery on one link, MAC addressing, error detectionEthernet, Wi-Fi (802.11), switchesFrames
3NetworkLogical addressing and routing across networksIP, ICMP, routersPackets
4TransportEnd-to-end delivery between processes, ports, reliabilityTCP, UDPSegments (TCP) / datagrams (UDP)
5SessionEstablish and manage dialogues between applicationsSession checkpoints (rarely a separate protocol today)Data
6PresentationData format, encoding, compression, encryptionCharacter encoding, data serialisationData
7ApplicationNetwork services used by applicationsHTTP, DNS, SMTP, FTPData

TCP/IP model (commonly taught with four layers):

  • Link (network access) ≈ OSI 1 + 2
  • Internet ≈ OSI 3 (IP)
  • Transport ≈ OSI 4 (TCP, UDP)
  • Application ≈ OSI 5 + 6 + 7

Some textbooks present a five-layer hybrid that keeps Physical and Data Link separate.

Key differences

  • OSI is a reference model designed before its protocols and is mainly used for teaching and troubleshooting vocabulary ("it's a layer-2 issue").
  • TCP/IP was described around protocols that already worked, and it is what the Internet runs on.
  • Real protocols do not always fit neatly: TLS, for example, sits between TCP and HTTP and is variously described as session, presentation or application layer.

Encapsulation: each layer wraps the data from above with its own header (Ethernet frame ⊃ IP packet ⊃ TCP segment ⊃ HTTP data); the receiver strips them in reverse.

Common follow-up: "At which layer do a switch and a router work?" A traditional switch works at layer 2 using MAC addresses; a router works at layer 3 using IP addresses. Multilayer (L3) switches also perform routing.

Original UniCircle question. Last reviewed 28 Oct 2026.