Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Updated
5 min read
A

learning to survive

If you’re a software engineer especially working on backend systems, APIs, or deployments understanding basic networking devices is a superpower.

You don’t need to be a network engineer, but you do need to know:

  • How requests reach your server

  • Where things can break

  • Why “it works locally but not in production”

Let’s build this understanding step by step, using simple language and real-life examples.

How the Internet Reaches You

Before diving into devices, let’s zoom out.

When you open a website:

  1. Data comes from the internet

  2. It passes through your ISP (Internet Service Provider) like Jio, Airtel, Comcast, etc.

  3. It enters your home/office

  4. It reaches your laptop or phone

To make this happen smoothly, multiple networking devices work together.

What Is a Modem?

What a Modem Does

A modem connects your home or office network to your ISP.

The word modem comes from:

  • MOdulator

  • DEModulator

That sounds scary but the idea is simple.

ISPs send data using technologies like:

  • Fiber

  • Cable

  • DSL (phone lines)

Your devices (laptop, phone, server) understand digital data, but ISP lines use different signal formats.

The modem converts (translates) signals between:

  • ISP’s format ↔ digital data your network understands

    No modem = no internet.

Example

Think of the modem as a language translator at the airport:

  • ISP speaks one language

  • Your home network speaks another

  • The modem translates between them

Important Note

Many ISPs give you a modem + router combo device — but modem and router are different jobs, even if they live in the same box.

What Is a Router?

Once the internet enters through the modem, it needs to be shared among devices.

That’s the router’s job.

What a Router Does

A router:

  • Creates your local network (LAN – Local Area Network)

  • Connects multiple devices (laptop, phone, TV, servers)

  • Decides where data packets should go

It works using IP addresses (like 192.168.1.10).

Key Router Features

DHCP (Automatic IP Assignment)

DHCP automatically gives each device an IP address.
You don’t have to manually configure anything.

NAT (Network Address Translation)

Your ISP gives you one public IP address.
Your router allows many devices to share it.

  • Laptop

  • Phone

  • Tablet

All go out to the internet as one identity.

Example

A router is like a traffic police officer:

  • Reads destination addresses

  • Sends data down the correct road

  • Prevents traffic confusion

Modem vs Router

ModemRouter
Brings internet into your houseDistributes internet inside
Talks to ISPTalks to your devices

Hub vs Switch (How Devices Talk Inside a Network)

Now we’re inside the local network.

Hub (Old & Mostly Obsolete)

A hub is a very simple device.

What it does:

  • Receives data

  • Sends it to every connected device

Problems:

  • Wastes bandwidth

  • Causes collisions

  • Anyone can see the traffic

Switch (Modern & Smart)

A switch is what we use today.

What it does:

  • Learns which device is on which port using MAC addresses

  • Sends data only to the intended device

This makes communication:

  • Faster

  • More secure

  • Collision-free

Example

  • Hub: Shouting in a room so everyone hears the message

  • Switch: A post office delivering letters to exact addresses

What Is a Firewall? (Your Network’s Security Guard)

A firewall protects your network from unwanted traffic.

What a Firewall Does

It:

  • Inspects incoming and outgoing traffic

  • Applies rules

  • Allows safe traffic

  • Blocks malicious or unauthorized access

Types

  • Basic firewall: Checks IPs and ports

  • Stateful firewall: Tracks ongoing connections

  • Next-Gen firewall: Understands applications and content

Where Firewalls Sit

  • Home: Often built into your router

  • Enterprise/Cloud: At the network edge (before servers)

Example

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

  • Checks who you are

  • Checks why you’re here

  • Decides whether to let you in

This is why security “lives” at the firewall.

What Is a Load Balancer? (Scaling Without Pain)

When traffic grows, one server is not enough.

That’s where a load balancer comes in.

What a Load Balancer Does

  • Sits between users and servers

  • Distributes incoming requests across multiple servers

  • Prevents overload

  • Improves availability

How It Works

User → Load Balancer → One of many backend servers

If a server fails?
Traffic automatically goes to healthy servers.

Common Load Balancer Types

  • Software: NGINX, HAProxy

  • Hardware: F5

  • Cloud: AWS ELB, GCP Load Balancer

Example

A load balancer is like a toll booth manager:

  • Directs cars to open lanes

  • Prevents traffic jams

  • Keeps everything moving smoothly

How Everything Works Together (Real World)

🏠 Home / Small Office Setup

Internet
   ↓
Modem
   ↓
Router (Wi-Fi, NAT, Firewall)
   ↓
Switch (optional)
   ↓
Devices (Laptop, Phone, TV)

☁️ Production / Cloud Setup

Internet
   ↓
Firewall
   ↓
Load Balancer
   ↓
Application Servers
   ↓
Databases

End-to-End Request Flow

  1. User sends request

  2. Firewall checks security rules

  3. Load balancer selects a server

  4. Backend code runs (this is YOU )

  5. Response goes back the same way

Why This Matters for Software Engineers

Understanding these basics helps you:

  • Debug production issues

  • Understand latency problems

  • Design scalable systems

  • Communicate better with DevOps & SRE teams

  • Feel confident deploying apps on AWS, GCP, or on-prem

hope this helpsin understanding the role each device plays