← Back to list

Network Protocols & Architecture Explained (From Scratch with Examples)

If you’ve ever wondered how your message reaches WhatsApp, how a website loads, or how hackers scan networks, the answer lies in network…

Mani Gayathri · 2026-05-05 13:53 · 0 claps · 2.3 min read
#network-traffic #architecture #network-protocols
Open on Medium ↗
Wiki topics: 🏛️ · Architecture

Network Protocols & Architecture Explained (From Scratch with Examples)

If you’ve ever wondered how your message reaches WhatsApp, how a website loads, or how hackers scan networks, the answer lies in network protocols.

This blog will help you understand — from scratch — how TCP, UDP, ICMP, and ARP work, with simple examples you can relate to.

🧠 What is a Network Protocol?

A network protocol is a set of rules that defines how devices communicate.

👉 Just like humans follow grammar rules to speak, computers follow protocols to send data.

Without protocols, your system wouldn’t know:

  • How to send data
  • Where to send it
  • Whether it reached or not

🏗️ Network Architecture (How Communication is Structured)

To organize communication, networks follow a layered model called the TCP/IP Model.

It has 4 layers:

  1. Application Layer
  • What users interact with
  • Examples: Web (HTTP), Email
  1. Transport Layer
  • Controls how data is sent
  • Protocols: TCP, UDP
  1. Internet Layer
  • Handles addressing and routing
  • Protocols: IP, ICMP
  1. Network Access Layer
  • Handles physical communication
  • Protocols: ARP, Ethernet

👉 Think of it like sending a courier:

  • Application → What you send
  • Transport → How safely it’s packed
  • Internet → Address & route
  • Network → Delivery vehicle

🔄 TCP (Transmission Control Protocol)

TCP is used when accuracy and reliability are important.

🔑 Features:

  • Connection-based
  • Guarantees delivery
  • Maintains order
  • Detects errors

🧪 Real Example:

When you open a website:

https://google.com

TCP ensures:

  • All data packets arrive
  • In correct order
  • Without loss

🔁 How TCP Works (Simple Steps):

  1. Client: “Can I connect?” (SYN)
  2. Server: “Yes” (SYN-ACK)
  3. Client: “Okay” (ACK)

Now data transfer starts.

🧠 Analogy:

TCP is like a phone call 📞 You confirm connection before talking.

⚡UDP (User Datagram Protocol)

UDP is used when speed matters more than accuracy.

🔑 Features:

  • No connection
  • No guarantee of delivery
  • Faster than TCP
  • No ordering

🧪 Real Example:

  • Watching YouTube
  • Online gaming
  • Video calls

Even if a few packets are lost, the stream continues.

🧠 Analogy:

UDP is like shouting information 📢 You don’t check if the other person heard everything.

📡 ICMP (Internet Control Message Protocol)

ICMP is used for checking and troubleshooting networks.

🔑 Features:

  • No actual data transfer
  • Sends status messages
  • Helps identify issues

🧪 Real Example:

Run this command:

ping google.com

What happens:

  • Your system sends ICMP request
  • Google replies with ICMP response

Output shows:

  • Time taken
  • Whether server is reachable

🧠 Why it matters:

  • Detect network issues
  • Used in tools like traceroute

🔗 ARP (Address Resolution Protocol)

ARP is used to find MAC address from IP address.

❓ Why do we need ARP?

  • Devices use IP address to identify
  • But actual communication uses MAC address

👉 ARP connects both.

🧪 Real Example:

Run:

arp -a

You’ll see:

  • IP address → MAC address mapping

🔁 How ARP Works:

  1. System asks: “Who has this IP?”
  2. Target replies: “I do, here’s my MAC”
  3. Communication starts

🧠 Analogy:

It’s like asking: 👉 “Who lives in house number 10?” 👉 Someone replies with their name

🧩 Putting It All Together (Real Scenario)

Let’s say you open a website:

  1. ARP → Finds router MAC address
  2. IP → Routes packet to destination
  3. TCP → Ensures data arrives correctly
  4. ICMP → Helps if there’s an error

👉 All protocols work together behind the scenes.

Why This is Important (Cybersecurity Perspective)

If you’re learning ethical hacking or networking, these are fundamentals.

Common Attacks:

  • TCP SYN Flood → Overloads server
  • UDP Flood → Causes traffic congestion
  • ICMP Sweep → Finds live systems
  • ARP Spoofing → Man-in-the-Middle attack

Understanding protocols = Understanding attacks

Final Summary

ProtocolPurposeKey FeatureTCPReliable communicationGuarantees deliveryUDPFast communicationNo reliabilityICMPDiagnosticsUsed in pingARPIP → MAC mappingLocal network communication

If you find this blog intresting follow me, and share it with your friends.


메타데이터
post_id
4c7fdffeb1a1
slug
network-protocols-architecture-explained-from-scratch-with-examples-4c7fdffeb1a1
url
https://medium.com/@manigayathriavulamanda/network-protocols-architecture-explained-from-scratch-with-examples-4c7fdffeb1a1
canonical_url
https://medium.com/@manigayathriavulamanda/network-protocols-architecture-explained-from-scratch-with-examples-4c7fdffeb1a1
author_url
https://medium.com/@manigayathriavulamanda
status
ok
fetched_at
2026-06-22 00:13:37