Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Published
7 min readView as Markdown

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

What Is a Modem?

A modem is a device that connects your home or local network to the wider internet. The word “modem” stands for Modulator-Demodulator — because it converts signals back and forth between the type used on the internet and the type used by your devices.

  • It translates digital data (the 1s and 0s computers use) into analog signals that can travel over cables, telephone lines, or other networks — and back again.

  • Without a modem, your home network wouldn’t be able to talk to your ISP and the rest of the internet at all.

How a Modem Works to Connect You Online

  1. Connects to Your ISP:

    The modem physically plugs into the internet service coming into your home — this might be a cable line, telephone line (DSL), fiber connection, or even satellite.

  2. Signal Conversion (Modulation):

    When your device sends data (like requesting a webpage), the modem converts that digital data into a signal that can travel over the ISP’s network.

  3. Transmission to ISP:

    That signal travels over the ISP’s infrastructure to reach internet servers.

  4. Signal Conversion (Demodulation):

    When data comes back from the internet (such as the webpage content), the modem converts the signal back from the ISP’s format into digital data your devices can understand.

  5. Delivers Internet to Your Network:

    The modem usually passes this connection to a router (or directly to a single device), which then lets your devices use the internet.

    What Is a Router?

    A router is a network device that connects two or more computer networks and forwards data packets between them. Routers are the devices that make the internet and larger networks work by directing information along the best path from one place to another.

    • In a home network, your router connects your devices (phones, laptops, TVs) to the internet (through a modem) and to each other.

    • On the Internet itself, many routers pass data from one network to the next until it reaches its destination.

How a Router Directs Traffic

Data on a network is sent as packets — small chunks of information. Each packet has a destination IP address. The router uses this address to decide where the packet should go next:

1. Examines the Packet

When a packet arrives, the router looks at the destination IP address in the packet to figure out where it should go.

2. Checks the Routing Table

The router has a routing table — a set of rules that tells it which direction (or “next hop”) to send the packet to reach the destination. It chooses the best path based on this information.

  • The routing table can be static (manually set) or dynamic (learned and updated automatically).

3. Forwards the Packet

Once the router picks the best route from its table, it forwards the packet toward that direction — either to a device on the same network, another router, or out to the internet.

Switch vs Hub: how local networks actually work?

What a Hub Is

A hub is a very basic networking device used to connect several devices (like computers) in a small local network (LAN).

How a Hub Works

  • When a device sends data into a hub, the hub sends (broadcasts) that same data out to all connected ports (except the one it came from), regardless of who it was actually intended for.

  • Every device on that network segment sees all the data, and each device has to check whether it’s meant for them.

Downsides of a Hub

  • This creates a lot of unnecessary traffic on the network because every packet goes everywhere.

  • It can lead to collisions when multiple devices try to speak at the same time, slowing the network down.

  • Hubs operate at the physical layer (Layer 1) of networking and have no intelligence — they just repeat signals.

Because of these limitations, hubs are mostly obsolete in modern networks.

What a Switch Is

A switch is a smarter networking device that also connects multiple devices in a LAN — but with much better traffic handling.

How a Switch Works

  • A switch reads the MAC address (a unique hardware address) of each device connected to its ports, and builds a MAC table that maps which device is on which port.

  • When a device sends data, the switch forwards the data only to the specific port where the intended recipient is connected — not to all ports.

Why This Matters

Less unnecessary traffic — only the right device gets the packet.

Fewer collisions — each port is essentially its own collision domain, so many devices can communicate at once without interfering with one another.

Better performance — faster and more efficient than a hub.

Supports full‑duplex — devices can send and receive data at the same time.

Most modern Ethernet networks use switches instead of hubs because switches improve speed, reduce congestion, and scale better as networks grow.

What Is a Firewall?

A firewall is a network security system — it can be hardware, software, or both — that sits between your internal (trusted) network and an external (untrusted) network like the internet. Its job is to monitor and control all incoming and outgoing network traffic based on a set of security rules.

Think of it like a gatekeeper or security guard at the entrance of a city: only safe, authorized traffic is allowed in or out, and anything suspicious gets stopped.

Where Security “Lives” at the Firewall

Firewalls are placed in strategic locations where your network connects to external networks — such as the edge of a corporate network or your home router’s connection to the internet. This position allows them to:

  • Filter all traffic into and out of the network

  • Prevent unauthorized access

  • Log and alert suspicious activities

  • Apply policies that protect internal systems

Because the firewall sits at this boundary point, it becomes a central place for enforcing security — hence “security lives here.”

What Is a Load Balancer?

A load balancer is a network device or software that sits between users and a group of servers and distributes incoming traffic (requests) evenly across those servers so no single server gets overwhelmed.

Think of it like a traffic controller or restaurant host — instead of all customers crowding one waiter, the host spreads them out so service stays fast and smooth.

What It Does

Receives incoming requests instead of servers directly.

Checks which servers are healthy and ready.

Routes each request to the most appropriate server.

Keeps the system running even if some servers fail.

Why Scalable Systems Need a Load Balancer

Scalable systems — systems that must handle lots of users and grow smoothly — rely on load balancers for several key reasons:

1. Distribute Load Evenly

A load balancer ensures no single server gets overloaded with too many requests, which keeps the whole system responsive.

2. Supports Scalability (Horizontal Scaling)

Instead of upgrading one server to be more powerful (vertical scaling), you can add more servers (horizontal scaling) and let the load balancer send traffic to each. This makes the system able to grow as demand rises.

3. Improves Reliability and Availability

If one server goes down, the load balancer detects it and sends traffic to the remaining healthy servers so users don’t notice a crash.

4. Better Performance

By spreading traffic intelligently and using servers efficiently, load balancers help reduce delays and improve overall performance.

Typical Real‑World Network Flow

When you use the internet or connect to a service (like a website), your request typically travels through multiple devices in order:

Your Device
   ↓
Switch (if in a local network)
   ↓
Router
   ↓
Firewall
   ↓
Modem
   ↓
Internet (ISP and beyond)
   ↓
Firewall (on the server side)
   ↓
Load Balancer (if many servers)
   ↓
Application Servers

Each device has a specific job in this flow.

How the Devices Work Together

1. Devices (PC/Phone)

Your laptop or phone starts a request (e.g., you type a website) and sends it into your local network.

2. Switch (Local Traffic Hub)

If you’re on Ethernet or Wi‑Fi with many devices, a switch connects them and forwards your request toward the router. It’s like directing internal traffic efficiently inside your office or home network.

3. Router (Traffic Director)

The router decides whether the request stays inside your local network or goes out to the internet. If it’s external, the router sends it toward the modem.

4. Firewall (Security Gatekeeper)

Before the request leaves your network, the firewall checks it against security rules. It blocks anything unsafe and lets normal traffic continue. This prevents hackers, bad bots, and unauthorized access.

5. Modem (ISP Connector)

The modem translates your router’s digital signal into the form your ISP expects (over cable, fiber, or DSL) and sends the request into the internet.

More from this blog

Web Dev 2026

12 posts