Skip to main content

Command Palette

Search for a command to run...

🌐 Understanding Networking: A Beginner’s Guide to How the Internet Works

Updated
6 min read
🌐 Understanding Networking: A Beginner’s Guide to How the Internet Works
I

I am a Software Developer from Lagos, Nigeria.

The internet feels almost magical. You open your browser, type a URL, and boom, a website appears. But under the hood, it’s all wires, signals, packets, and rules. Whether you are a developer or just tech-curious, understanding how networks work gives you an edge. Let’s take a journey from the basics of networking all the way to firewalls and proxies.


🕸 What Is a Network, Really?

At its simplest, a network is just two or more devices connected to share information.

  • Your phone sharing files with your laptop over Wi-Fi? That’s a network.

  • The global internet linking billions of devices? Also a network - just on a massive scale.

Networks come in different types:

  • LAN (Local Area Network) – Your home or office network.

  • WAN (Wide Area Network) – The internet itself.

  • Wireless Networks – Wi-Fi or cellular connections without physical cables.

But how do devices inside a network know who is who and where to send information? That’s where switches, routers, MAC addresses, and IP addresses come in.


🔀 Switches – The Local Traffic Managers

Inside a local network (like your home or office), devices communicate using MAC addresses—unique hardware IDs built into every network card. A switch is the device that keeps track of these MAC addresses and ensures data only goes to the correct destination.

Think of a switch as an office receptionist:

  • When someone drops off a package, the receptionist knows exactly which desk it’s meant for, no wasted trips around the building.

Without switches, every device would “shout” messages to all others at once, creating chaos and slowing everything down. Switches keep things organized, fast, and reliable inside your home or company network before data ever leaves for the internet.


📡 Routers – The Gateway to the Internet

If switches keep traffic flowing inside your home or office, routers are the devices that connect your local network to the outside world—the internet.

  • A router assigns local IP addresses to your devices (laptops, phones, smart TVs).

  • It decides where outgoing data should go and where incoming data should return.

  • It also acts as a border guard, separating your private network from the public internet.

Think of a router as a shipping hub:

  • The switch sorts packages within the building.

  • The router decides which packages leave the building, which road they take, and ensures returning packages come back to the right desk.

Many home devices combine a router and switch in one box (like the Wi-Fi router you get from your ISP), but ideally, they are doing two different jobs.


🔢 IP Addresses and DNS – The Internet’s Address Book

While switches handle local delivery using MAC addresses, and routers get your data to the wider internet, we need something else to find any computer on the planet. That’s where IP addresses come in.

  • An IP address is like a mailing address for your device.

  • Memorizing numbers like 192.168.0.1 or 2606:4700:4700::1111 would be impossible.

This is where DNS (Domain Name System) saves the day:

  • DNS converts human-friendly names like google.com into machine-friendly IP addresses.

  • You type example.com → your browser asks DNS → DNS replies with the IP address → your computer connects directly to that server.

Without DNS, we would all be typing number strings instead of names. Not fun, is it?.


📦 Packets and Protocols – How Data Actually Travels

When you stream a video or load a webpage, your device doesn’t get one giant file at once. Instead, data is split into packets, which are tiny chunks that travel separately and are reassembled at the destination.

These packets follow rules, called protocols:

  • TCP (Transmission Control Protocol) – Ensures every packet arrives in order (reliable but slightly slower).

  • UDP (User Datagram Protocol) – Faster but doesn’t guarantee delivery (great for streaming or gaming).

  • HTTP/HTTPS – The standard rules browsers use to talk to web servers.

Think of it like mailing a large document by sending pages in separate envelopes. Each page has a number, so when they all arrive, you can put them back in order. If a page is missing (TCP), it’s resent automatically.


🧭 Proxies – The Middlemen of the Internet

Before we jump to security, there is another piece of the puzzle: proxies.

A proxy server is an intermediary between your device and the wider internet. Instead of connecting to a website directly, you first connect to the proxy, which then makes the request on your behalf.

Why use a proxy?

  • Privacy – Hides your real IP address.

  • Caching – Stores frequently accessed content to make browsing faster.

  • Access control – Companies use proxies to filter traffic or restrict certain websites.

Think of a proxy like a personal assistant who makes phone calls for you. The person on the other end only sees the assistant’s number, not yours.


🚦 The Journey of Data, Step by Step

Here’s how it all comes together:

  1. You open your browser and type a web address.

  2. Your computer checks DNS to find the server’s IP address.

  3. The request goes to your switch, which sends it to your router.

  4. Your router forwards it to your ISP (Internet Service Provider).

  5. The ISP passes it through many routers and possibly proxies worldwide, each choosing the next best path to its destination.

  6. The request finally reaches the target server (e.g., Google).

  7. Google’s server replies, and the response travels back the same way—all in milliseconds.

It’s like mailing a letter that is split into tiny envelopes, routed through many post offices, then perfectly reassembled when it arrives.


🛡 Firewalls – The Security Guards of the Network

Now that your data is moving around, how do you protect it? That’s where firewalls come in.

A firewall is like a security guard at the entrance of a building:

  • It checks who is coming in or out.

  • It decides if they should be let through or blocked.

  • It can filter traffic based on IP address, port, or type of data.

Types of firewalls:

  • Hardware firewalls – Protect entire networks.

  • Software firewalls – Protect individual devices.

  • Cloud firewalls – Offered by providers like AWS or Cloudflare.

Modern firewalls are “smart,” using Deep Packet Inspection (DPI) to catch malicious behavior before it reaches your system.


🚀 Why Should You Care?

Even if you are not running a data center, understanding these concepts helps you:

  • Debug problems faster (e.g., why can’t I reach this server?).

  • Write more secure software (knowing where your app might be exposed).

  • Communicate better with IT teams (less jargon confusion).

  • Level up your career (networking knowledge is foundational for DevOps, cloud engineering, and cybersecurity).


🌟 In Summary:

From switches and routers to IP addressing, DNS, packets, proxies, and firewalls, these are the building blocks of modern computing. Every email you send, every WhatsApp chat, every Netflix show you stream all depend on hidden digital pipes carrying data safely from place to place.

So, the next time you tap “Connect to Wi-Fi,” think about all the devices and rules working in sync and the firewall quietly standing guard.

My DevOps Journey

Part 4 of 8

I’m leveling up as a backend engineer by diving into DevOps. In this series, I will share what I learn — from basics to real-world use, so you can follow along, learn with me, or see DevOps through a beginner’s eyes.

Up next

Beginner’s Guide to SSH: Secure Connections Without the Headache

Everything you need to know to start using SSH confidently.