Important CN Comparisons·Lesson 2 of 16

OSI vs TCP/IP

01

Two Maps of the Same Territory

Networking is complicated, so we break it into — separate levels, each responsible for one job, stacked so that each layer uses the one below it. Two famous layered blueprints exist. The (Open Systems Interconnection) has seven layers and is mainly a teaching and reference tool. The (Transmission Control Protocol / Internet Protocol) has four layers and is what the real internet actually runs on. They describe the same job, just at different levels of detail.

The one-line contrast

OSI is the 7-layer theoretical reference model; TCP/IP is the 4-layer practical model the internet is built on. OSI is for understanding; TCP/IP is for doing.

02

The OSI Model — 7 Layers

The OSI model splits networking into seven layers, numbered from 7 at the top (closest to the user and their applications) down to 1 at the bottom (the physical wire). Data created by an app at the top travels down the stack, across the network, and back up the stack on the other side.

OSI reference model

7

Application

Interfaces directly with apps (web, email)

6

Presentation

Translation, encryption, compression

5

Session

Opens, manages, and closes sessions

4

Transport

End-to-end delivery (TCP, UDP)

3

Network

Logical addressing and routing (IP)

2

Data Link

Framing and MAC addresses on a link

1

Physical

Raw bits as signals on the medium

03

The TCP/IP Model — 4 Layers

The TCP/IP model does the same job with just four layers. It was designed around the protocols that already ran the early internet, so it's leaner and more practical. Notice how it collapses several OSI layers into one:

TCP/IP practical model

4

Application

Apps and their protocols (HTTP, DNS, SMTP)

OSI 5-6-7
3

Transport

End-to-end delivery (TCP, UDP)

OSI 4
2

Internet

Addressing and routing packets (IP)

OSI 3
1

Network Access

Frames and bits on the physical medium

OSI 1-2
04

How They Line Up

The two models map onto each other cleanly. TCP/IP simply merges some of OSI's layers: OSI's top three (Application, Presentation, Session) all become TCP/IP's single Application layer, and OSI's bottom two (Data Link, Physical) become TCP/IP's Network Access layer. The middle two line up one-to-one.

OSI ModelTCP/IP Model
Number of layers74
PurposeTheoretical reference and teachingPractical, what the internet uses
Developed byISO (a standards body)Grew from US DARPA research
Model vs protocolsDefined before its protocolsModel described after its protocols existed
Protocol dependenceProtocol-independent, generalBuilt around the TCP/IP protocols
Top layersSeparate Application, Presentation, SessionOne combined Application layer
Bottom layersSeparate Data Link and PhysicalOne combined Network Access layer
Real-world useRare in practice; great for learningUsed everywhere in real networks
05

So Which One Do People Actually Use?

Both, but for different reasons. Engineers use the TCP/IP model when building and troubleshooting real systems, because it matches the actual protocols. But almost everyone learns and reasons with the OSI model, because its seven layers name each job precisely — when someone says "that's a Layer 2 problem" or "a Layer 7 firewall," they're speaking OSI. Think of OSI as the detailed vocabulary and TCP/IP as the working machine.

🚫

"The TCP/IP model has fewer layers because it does less than OSI."

It does exactly the same work — it just groups the jobs differently. TCP/IP bundles OSI's session, presentation, and application duties into one Application layer, and its physical and data-link duties into one Network Access layer. Fewer boxes, same responsibilities.

Q:What is the main difference between the OSI and TCP/IP models?

A: OSI is a seven-layer theoretical reference model used mainly for understanding and teaching, and it was defined before its protocols. TCP/IP is a four-layer practical model built around the protocols the internet actually uses. TCP/IP merges OSI's top three layers into one Application layer and its bottom two into one Network Access layer.

Quick Revision Cheat Sheet

OSI: 7 layers, theoretical reference model, protocol-independent

TCP/IP: 4 layers, practical model the internet runs on

Top layers: OSI's App + Presentation + Session = TCP/IP Application

Bottom layers: OSI's Data Link + Physical = TCP/IP Network Access

Same middle: Transport and Network/Internet line up one-to-one

In practice: Learn with OSI's vocabulary, build with TCP/IP