osi,tcp/ip

Nitin SharmaNitin Sharma
3 min read

in simple words these are networking models by which we connect are computers.

they are models used to understand how data travels over a network, understand how data travels over a network, like the internet.

they break down networking into layers each with a specific job.

it helps us to understand how computers talk to each other step by step.

OSI MODEL (7 layers)

osi = open systems interconnection model

this model is more theoritical but helps by troubleshooting when we go over layer by layer. it has 7 layers, each doing a unique function.

Layer NumberLayer NameEasy ExplanationExamples
7️⃣ApplicationWhat the user sees or interacts withBrowsers, Email apps
6️⃣PresentationConverts data format (encryption, encoding)JPEG, SSL, ASCII
5️⃣SessionStarts/ends communication sessionsLogins, API sessions
4️⃣TransportReliable data transfer (segments, ports)TCP, UDP
3️⃣NetworkFinds the path to send data (IP, routing)IP, Routers
Layer Name
2️⃣Data LinkTransfers data between devices (local)MAC, Switches
1️⃣PhysicalActual hardware & signals (cables, radio)Cables, Wi-Fi, Ethernet

Don’t worry here is the mnemonic to learn all these 7 layers.

ALL = APPLICATION

PEOPLE = PRESENTATION

SAY THAT = SESSION

THEY = TRANSPORT

NEVER = NETWORK

DOWNLOAD = Data link

PICTURES = physical

TCP/IP MODEL ( 4 LAYERS)

TCP/IP = transmission control protocol/ internet protocol

This is more of practical model, used in real - life internet communication, it’s simpler with 4 layers.

TCP/IP LayerMatches OSI LayersEasy Job Description
ApplicationOSI Layer 7, 6, 5User software and data formatting
TransportOSI Layer 4Ensures delivery (TCP/UDP)
InternetOSI Layer 3Routing & addressing (IP)
Network AccessOSI Layer 2 & 1Physical data transfer (Ethernet, Wi-Fi)

🧠 Real-Life Example: Sending a WhatsApp Message

Step-by-step (simplified):

OSI LayerWhat Happens When You Send a Message
7You type message in WhatsApp
6It is encrypted
5WhatsApp starts a session
4TCP breaks it into chunks
3IP finds path to recipient's phone
2Data frame is prepared (MAC address)
1Data travels via Wi-Fi or mobile net

summary

FeatureOSI ModelTCP/IP Model
Layers74
TypeTheoreticalPractical (used online)
Created byISODARPA/DoD (US)
Common UsageTeaching & examsInternet networking
ExamplesFTP, HTTP, etc.TCP, IP, HTTP, etc.
0
Subscribe to my newsletter

Read articles from Nitin Sharma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Nitin Sharma
Nitin Sharma