Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Published
4 min read

What is a Modem and how it connects your network to the internet?

Modem = MODulator + DEModulator

Your ISP (like Airtel or Jio) sends internet as signals over:-

Fiber

Coax cable

DSL line

But your computer understands digital data (0s and 1s) only.

Then What Modem Does??

It converts Analog/light signal from the ISP to Digital Ethernet data that your devices can understand.

So the modem is like an interpreter between your house and the ISP network.

What is a Router and how it directs traffic?

A router is a device that helps sends your device’s request to the server and give you the response to the request that you made.

When your device make a request (like google.com), The router first converts the private ip of the device into a public ip so that the request can travel over the internet. Then it reach the server and the required information is shared to that public Ip …. after getting the informal that Ip returns back to the router and the router converts it back into the private ip and thus the request is fulfilled.

All the devices of our home is directly connected to the router which is then connected to the modem and the modem is connected to the ISP line and this way we reach the internet.

how it directs traffic?

A router directs traffic by reading the destination IP address, checking its routing table, and forwarding the packet to the best next router (next hop) until it reaches the final network.

How to Connect a Switch to a Router? – LightOptics®

Switch vs Hub: how local networks actually work?

HUB (Old Technology)

Think of a hub like a person who shouts a message to the whole classroom.

What it does:

One device sends data

Hub copies it and sends to ALL ports

Every computer receives it (even if not meant for them)

Problems:

Network becomes crowded

Slow speed

Anyone can see others' data → poor security

Example: PC1 sends file to PC2
Hub sends it to PC2, PC3, PC4… everyone.

SWITCH (Modern Technology)

A switch is like a smart courier who knows everyone’s house.

How it works:

Learns device MAC addresses

Builds a table: MAC →port number

Sends data only to the correct device

Benefits:

Faster network

No unnecessary traffic

Better privacy

Used in schools, offices, labs

PC1 → PC2
Switch sends data only to PC2.

What is a Firewall and why security lives here?

A firewall is a security system that controls what internet traffic is allowed to enter or leave a network.

Think of it like a security guard at a school gate:

Students with ID → allowed

Stranger without ID → stopped

Your network = school
Internet = outside world
Firewall = guard

Where does a Firewall sit?

It sits between your internal network and the internet.

At home: inside your WiFi router
In companies: separate hardware devices from Cisco or Fortinet

It decides that whether to allow or block this network traffic.

WHY security lives HERE (not inside)?

Because this is the main entry & exit gate for all traffic.

What is a Load Balancer and why scalable systems need it?

A Load Balancer is a traffic manager for servers.

Instead of one server handling all users, it spreads the work across many servers.

🍽️ Real-Life Analogy (Restaurant)

Without Load BalancerWith Load Balancer
1 waiter for 100 customers5 waiters for 100 customers
Slow serviceFast service
Waiter faints = chaosOthers continue working
Customers leave angrySmooth experience

Big sites like Amazon and Netflix get millions of users.

They don’t use just ONE server.

They use:

Users → Load Balancer →

Server 1

Server 2

Server 3

Server 4

How all these devices work together in a real-world setup?

Step-by-step:

Laptop sends request
Goes to Switch (inside building)
Switch → Router
Router’s Firewall checks safety
Router → Modem
Modem → ISP
ISP → Internet → Website server

Response comes back the same path in reverse.