Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Updated
7 min read
Understanding Network Devices

What is a Modem

A modem (modulator - demodulator) is a translator + bridge between your home network and Internet Service Provider (ISP).

  • Your devices like laptop and phones speak digital language like 0s and 1s.

  • The ISP sends data over cables/fiber in different signal format.

  • Both of them can’t understand each other.

  • So modem translates between the two.

How it connects your network to the internet?

1. Connection to ISP

  • Your modem is physically connected to the ISP via :

    • coax cable / fiber cable / telephone lines

  • This is your entry point to the internet.

2. Signal Conversion (Primary Job)

  • Your device send digital data.

  • Modem converts it → analog data for transmission.

  • ISP sends data back → modem converts it to digital data.

The process of two way conversion :

  • Modulation (digital → analog)

  • Demodulation (analog → digital)

3. Acts as a bridge between networks

  • One Side → Your home network (LAN).

  • Other Side → Internet (WAN).

  • The modem sits in the middle and transmit data both ways.

4. Works with router (Important stuff)

  • Modem can usually support single device.

  • Router distribute internet to multiple devices (Wi-Fi).


What is a Router?

Router is a traffic manager between your networks.

  1. Connect networks
  • It connects your local network → other networks.

2.  Decides where data goes

  • Data is broken into packets.

  • Router checks the destination IP.

  • Then sends it on the best path.

3.  Distributes internet inside your network

  • Takes 1 internet connection.

  • Shares it with multiple devices (phone, laptop, television).

Modem → connects you to internet
Router → Distributes & direct network traffic.

How it directs traffic?

Router looks at destination → decides best path → forwards packet

1.  Packet arrives

  • Your data broken into packets.

  • Each packets has a destination IP.

2.  Router reads destination

  • It checks :

Where does the packet need to go?

3.  Checks routing table (decision  making engine)

A routing table is like a map of paths.

Contains :

  • destination networks

  • next hop (where to send next)

  • best path

4. Chooses best route

  • If multiple paths exists → chooses efficient path.

  • Based on :

    • Distance

    • Speed

    • Network condition

5.  Forward to next hop

  • Router doesn’t send packet directly to final destination (usually).

  • It sends to next router in path.

6. If route not found

  • Uses default route (fallback)

  • If still not found → drops packet.


Switch vs Hub: how local networks actually work?

Hub :

A hub is a simple device that connects multiple devices in a network.

  • It receives data from one device.

  • Then sends it to all devices.

  • Without any decision.

HUB = shouting in a room

You = “Shaktiman”

  • Everyone hears it

  • Only Shaktiman responds

  • Others ignore

Wasting energy + noise

Switch :

A switch is a smarter device that connects all device but sends data only where needed.

  • It checks who the data is for

  • Sends it only to that device (Using MAC address).

SWITCH = calling someone directly

Calling Ravi on phone.

  • No disturbance

  • Only Ravi receives

Feature                                                                   Hub                                                           Switch


Intelligence                                                             None                                                          Smart


Data Flow                                                               To everyone                     To specific device


Traffic                                                                     High (waste)                               Low (efficient)


Speed                                                                     Slow                                                                 Fast


Usage                                               Obsolete                           Used everywhere

How local networks actually work?

Here are three devices that want to share data.

When A wants to send data to B.

If HUB is used :

  • B accepts

  • Others ignore

  • network gets crowded

If SWITCH is used :

  • sends to ONLY B.

  • Fast

  • Clean

  • No unnecessary traffic.


What is a Firewall

A firewall is a security system that sits between your network and internet to control the traffic.

  • It checks incoming _ outgoing data.

  • Allow or block them based on rules.

What does it actually do :

Every time data try to pass :

  • Data (packet) arrives.

  • Firewall inspect it.

  • Applies rule :

    • Should be allowed or

    • Should be blocked

Example :

Firewall is like a bodyguard for your building.

  • People = data packets

  • Building = Your Network

Role of Security Guard :

  • Checks ID

  • Allow trusted people

  • Stop suspicious ones

No guard = anyone walks in

Why security lives here?

Firewall sits exactly at :

Trusted Network            |              Untrusted Internet

  • Inside = safe zone

  • outside = danger zone

Why not security inside :

Reason :

  • Once attackers enters → damage is already done

  • Stop threats before they ENTER.

What it protect against

  • Hackers try to get access of your system.

  • Malware entering network.

  • Unauthorized access

  • Data leaks going out.

Firewall filters and controls traffic at the boundary.


What is a Load Balancer

A load balancer is a system that sits between network and server and distributes incoming servers across multiple servers.

  • Instead of hitting one server

  • Requests go to multiple servers intelligently.

How it actually works

  1. User sends request

  2. Request hits load balancer first.

  3. Load balancer checks :

which server is free

which server is fast

4. Sends request to that server

5. Server responds via load balancer.

Load balancer ensures server overloaded

What problem does it solve?

Without Load Balancer :

Problems :

  • Server Overload

  • Slow response

  • If server crashes → whole app down

This is called single point failure.

With Load Balancer :

Load is distributed → System survives

Why scalable systems need it?

Traffic grows on platform

  • 10 users → server works

  • 10,000 users →server crash

That’s why we need multiple servers

Can’t rely on one machine

  • Hardware fails

  • Servers crash

Load balancer reroutes traffic automatically.

Horizontal Scaling

Instead of:

Bigger Server (limited)

Better approach:

Multiple Servers

Performance

  • Requests handled in parallel

  • Faster response

  • Improves user experience


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

A real network is just devices working in sequence to move data safely.

Device → Switch → Router → Firewall → Modem → Internet

How they work together

  1. Devices create data
  • Laptop, phone, etc.

  • They generate requests via opening website, sending message.

Device

2.  Switch handles local communication

  • Connects all devices in your network.

  • Sends data to correct devices inside LAN.

Keeps local traffic fast and organized

Device → Switch

3.  Router connects to the outer world

  • Takes data from your network.

  • Decides where it should go.

It’s like bridge between your network

Switch → Router

4.  Firewall checks security

  • Inspects data (packets).

  • Block unsafe packets.

  • Allow safe requests.

Router → Firewall

5.  Modem Connects to ISP

  • Convert signals

  • Connects your network to ISP.

Firewall → Modem  → Internet


Full Flow