Skip to main content

Command Palette

Search for a command to run...

Internet Protocols Explained

Published
4 min readView as Markdown
Internet Protocols Explained
A

I’m Arjun Saxena, a passionate software developer specializing in web engineering. I believe in writing code that creates real solutions to real problems. I love building efficient, user-friendly applications and constantly push myself to learn new technologies. Beyond coding, I enjoy sharing knowledge and growing together with others in the tech community.

TCP/IP, UDP, OSI Model & Why Network Protocols Matter

Whenever you:

  • Open a website 🌐

  • Send a message 💬

  • Watch a video ▶️

👉 Network protocols are working silently behind the scenes.

In this blog, we’ll understand:

  • What network protocols are

  • Why they are important

  • The OSI Model

  • TCP/IP basics

  • Difference between TCP and UDP

  • Real-world examples (very simple)

No heavy theory — just clarity.

1️⃣ What Are Network Protocols?

Simple Definition:

A network protocol is a set of rules that devices follow to communicate with each other.

Think of protocols like languages.

Real-Life Example:

If:

  • You speak Hindi

  • Your friend speaks English

Communication fails ❌

👉 Protocols ensure both sides follow the same rules so communication works.

Example in Internet:

When your browser asks a server:

“Give me the homepage”

Protocols define:

  • How the request is sent

  • How data is broken into parts

  • How the response comes back

2️⃣ Why Do Network Protocols Matter?

Protocols make sure that:

  • Data reaches the correct destination

  • Data is not corrupted

  • Communication is fast and reliable

Without protocols:

  • Internet = chaos ❌

  • Websites won’t load

  • Messages won’t reach

3️⃣ OSI Model – Understanding Internet Layers

The OSI Model explains how data travels from one device to another using 7 layers.

Simple Idea:

Each layer has a specific responsibility

https://assets.bytebytego.com/diagrams/0295-osi-model.jpeg

OSI Model Layers (Easy Explanation)

LayerNameWhat It Does
7ApplicationUser interacts (Browser, Email)
6PresentationData formatting, encryption
5SessionManages sessions
4TransportData delivery (TCP/UDP)
3NetworkIP addressing & routing
2Data LinkMAC address, local delivery
1PhysicalCables, signals

Real-World Example:

Sending a WhatsApp message:

  • Application layer: You type message

  • Transport layer: Data broken into packets

  • Network layer: Finds receiver IP

  • Physical layer: Signals travel via cables/wireless

4️⃣ What is TCP/IP?

TCP/IP = Backbone of the Internet

TCP/IP is a set of protocols that allows computers to communicate over the internet.

It mainly has 4 layers (simplified version of OSI).

https://www.rtautomation.com/wp-content/uploads/2023/01/osi-tcpip-diagram.jpg

TCP/IP Layers

LayerPurpose
ApplicationHTTP, HTTPS, FTP
TransportTCP, UDP
InternetIP
Network AccessEthernet, Wi-Fi

5️⃣ TCP – Transmission Control Protocol

Simple Definition:

TCP ensures data is delivered correctly and completely

Key Features:

✔ Reliable
✔ Ordered data
✔ Error checking
✔ Retransmission if data lost

Real-Life Example:

📦 Courier Service

  • Package must arrive

  • If damaged → resend

  • Receiver confirms delivery

👉 That’s TCP!

Where TCP is Used:

  • Websites (HTTP/HTTPS)

  • Emails

  • File downloads

6️⃣ UDP – User Datagram Protocol

Simple Definition:

UDP sends data fast, but does not guarantee delivery

Key Features:

⚡ Very fast
❌ No confirmation
❌ No retransmission

Real-Life Example:

📢 Live Announcement

  • Message is broadcast

  • If someone misses it → no repeat

👉 That’s UDP!

Where UDP is Used:

  • Video streaming

  • Online gaming

  • Live calls (Zoom, Google Meet)

7️⃣ TCP vs UDP (Very Important)

FeatureTCPUDP
SpeedSlowerFaster
ReliabilityHighLow
OrderMaintainedNot guaranteed
Use CaseWeb pages, emailsStreaming, gaming

8️⃣ How Data Travels (Simple Flow)

https://docs.oracle.com/cd/E18752_01/html/816-4554/figures/ipov.fig88.png

Step-by-Step:

  1. User requests website

  2. Data breaks into packets

  3. IP finds destination

  4. TCP/UDP sends data

  5. Server responds

  6. Browser displays content

9️⃣ Why Web Developers Must Know This?

As a web developer, this helps you:

  • Understand API calls

  • Debug network errors

  • Improve performance

  • Choose TCP vs UDP use cases

  • Work better with backend & DevOps