Why the Internet Even Works: A Guide to Network Protocols

Muhammed AfnaanMuhammed Afnaan
5 min read

Network Protocols

Let’s be real — the internet might look smooth on the surface, but underneath, it’s just structured chaos. And the only reason it doesn’t collapse every second is because of one thing: network protocols.

These are the invisible rulebooks that every device follows to talk to each other. From streaming a movie to sending a late-night email, none of it happens without protocols. And it's not just one — it's a team effort. Each protocol plays a specific role, and together, they keep everything running.


What Is a Network Protocol?

A network protocol is a set of rules and instructions that devices follow to send, receive, and organize data. It defines:

  • How data is broken up

  • How it travels

  • How it's delivered

  • What happens if something fails

In short, protocols are the reason your data doesn’t end up lost halfway across the world.


What’s a Packet?

When you send or request data online, it’s not sent in one chunk. It’s broken into small pieces called packets. These packets can take different paths to reach the same destination and are reassembled once they arrive.

If one is missing or out of place? Protocols are in charge of fixing it.


Core Protocols You Should Know

Let’s break it down in a way that actually sticks.


TCP/IP – The Backbone of Everything

TCP (Transmission Control Protocol) and IP (Internet Protocol) are the core of all online communication. Together, they:

  • Establish a connection between devices

  • Ensure data arrives intact and in order

  • Fix errors when they occur

TCP is connection-based. Before sending anything, it makes sure both devices are ready — like a formal handshake.

Real-life Example: When you load a website, TCP ensures your browser and the server communicate properly, exchanging all the right data in sequence.


UDP – Fast, But No Guarantees

UDP (User Datagram Protocol) is all about speed. Unlike TCP, it:

  • Sends data without checking if it’s received

  • Doesn’t confirm delivery or fix errors

Used where speed matters more than accuracy

like video calls, online games, and live streams.


DNS – Your Internet Contact Book

DNS (Domain Name System) translates domain names (like netflix.com) into IP addresses (142.250.187.206), so your browser knows where to go.

Without DNS, you'd have to memorize every website's IP. Not happening.


ARP – Matching IP to MAC

You’ve learned that each device on a network has a public IP address, a private IP address, and a MAC address that identify it on the network.

A device’s IP address may change over time, but its MAC address is permanent because it is unique to a device's network interface card.

The MAC address is used to communicate with devices within the same network, but sometimes, the MAC address is unknown. This is why the Address Resolution Protocol (ARP) is needed. ARP is mainly a network access layer protocol in the TCP/IP model used to translate the IP addresses that are found in data packets into the MAC address of the hardware device.

ARP (Address Resolution Protocol) helps devices find each other on a local network by matching IP addresses to MAC addresses. It’s what allows devices to actually connect and communicate within the same network.


SSL/TLS – Securing Your Data

SSL (Secure Socket Layer) and TLS (Transport Layer Security) are responsible for encrypting data between your browser and the server.

Here’s how it works:

  1. Browser requests secure connection

  2. Server shares a public key

  3. Browser verifies the key and responds with encrypted data

  4. Secure communication begins

It’s the reason your personal info isn’t just floating around online.


HTTPS – The Secure Upgrade

HTTPS = HTTP + SSL/TLS. When you visit a secure website and see the lock icon in the browser, HTTPS is working behind the scenes to:

  • Encrypt your data

  • Prevent snooping and tampering

  • Keep your activity private


SMTP, POP3, IMAP – The Email Crew

Here’s a quick breakdown:

ProtocolPurposeCommon Ports
SMTPSends email25 (plain), 587 (secure)
POP3Downloads email110 (plain), 995 (secure)
IMAPSyncs email with server143 (plain), 993 (secure)

POP3 is like downloading a file.
IMAP is like streaming it from the cloud.
SMTP pushes your messages out.


FTP – Moving Files Old-School

FTP (File Transfer Protocol) lets you upload and download files from servers. It uses:

  • A command channel for instructions

  • A data channel for actual file transfers

Still relevant in web development and server management, and it runs over TCP for reliability.


Telnet vs SSH – Remote Access

  • Telnet: Gives remote access to another device but sends everything in plain text. No security. Port 23.

  • SSH (Secure Shell): Secure version of Telnet. Encrypts data, commonly used in server management. Port 22.

If you’re working in tech, SSH is essential. Telnet? Avoid it.


DHCP – IP Addresses, Automatically

DHCP (Dynamic Host Configuration Protocol) assigns IP addresses to devices when they connect to a network.

  • Server (usually the router): UDP Port 67

  • Client (your device): UDP Port 68

No DHCP? You’d have to configure every device manually.


ICMP – Testing and Feedback

ICMP (Internet Control Message Protocol) isn’t used for transferring data. It’s used for:

  • Testing connectivity (like with ping)

  • Reporting network errors

  • Checking if destinations are reachable

It’s your go-to protocol for diagnostics.


Final Thought

The internet doesn’t run on magic. It runs on protocols — unseen, unfailing, and constantly coordinating everything in the background. From sending a text to launching a video call, these systems work together to make your everyday digital life seamless.

Once you understand them, networks stop being just wires and IPs. They become a living system of checks, balances, and behind-the-scenes teamwork

RESOURCES

COURSERA -CONNECT AND PROTECT

CHATGPT

LETS DEFEND

0
Subscribe to my newsletter

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

Written by

Muhammed Afnaan
Muhammed Afnaan