Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Published
8 min read

What is MODEM?

A modem is a device that allows your home or office network to communicate with the internet.It basically acts as bridge between your home network and your Internet Service Provider(ISP).

The word “modem” comes from MOdulator–DEModulator, which describes its main function: converting signals from one form to another so that data can travel over telephone lines, cable systems, or fiber optics.

Before understanding how modem connects your network to the internet?, we need to understand Analog Signals, Digital Signals, Modulation and Demodulation.

Analog Signals : Analog signals are continuous signals. They change smoothly over time.

  • Example: Think of the needle of a speedometer in a car. It moves smoothly as your speed increases or decreases.

Digital Signals : Digital signals are discrete signals. They change in steps, not continuously.

  • Example: Think of turning a light on and off. The light is either on (1) or off (0).

What is Modulation and Demodulation

Modulation : When your computer sends data to the internet, the modem converts digital signals from your devices into analog signals that can travel over the service provider’s network.

Demodulation : When data comes back from the internet, the modem converts analog signals from the provider into digital signals your devices can understand.

How Modem connects your network to Internet?

  • Receives signals from ISP – The modem gets data from your Internet Service Provider (ISP) through phone lines, cable, fiber, or satellite.

  • Converts signals – It converts incoming analog signals (from the ISP) into digital signals your devices can understand, and vice versa.(Modulation , Demodulation)

  • Establishes connection – The modem communicates with your ISP’s network to authenticate and maintain an active internet connection.

  • Transmits data to router or devices – The modem sends the digital data to your router (or directly to a device), enabling internet access for your network.

  • Handles upstream data – It also converts outgoing data from your devices into the correct format for the ISP to transmit over the internet.

What is a Router?

A router is a networking device that connects multiple computer networks and directs data traffic between them. Think of it as a traffic manager for data, ensuring that information sent from one device reaches the correct destination device, even if that device is on a different network.

Its main purposes are:

  1. Connects networks: It links your local network (like your home Wi-Fi) to other networks, such as the internet.

  2. Forwards packets: Routers receive small units of data called packets and send them along the best path toward their destination.

  3. Manages IP addresses: Routers read the IP addresses in packets to determine where the data should go.

Key Concepts

  • Routing Table: Like a map the router uses to decide where to send packets.

  • NAT (Network Address Translation): Allows multiple devices on a local network to share a single public IP address for internet access.

  • Default Gateway: The router’s IP address in your local network; your devices send packets here if the destination is outside the local network.

  • Dynamic vs. Static Routing:

    • Static: Paths are manually configured.

    • Dynamic: Paths are automatically updated using protocols like OSPF or BGP.

How a Router Directs Traffic

Routers use a combination of routing tables and routing protocols to decide the best path for data:

  1. Receive the packet: A device (like a computer or phone) sends a data packet to the router.

  2. Check the destination IP: The router reads the destination IP address in the packet header.

  3. Consult the routing table: The router looks up its routing table—a list of network paths and their priorities—to find the optimal next hop.

  4. Forward the packet: The router sends the packet to the next router or directly to the destination device.

  5. Repeat if necessary: If the packet must pass through multiple routers, each router repeats this process until it reaches the destination.

Switch VS Hub

HUB

A hub is the simplest type of networking device that connects multiple devices in a local network. A hub doesn’t “think” or direct traffic intelligently—it just forwards data to all connected devices.

A hub is the simplest network device. Think of it as a “party line”:

How it works:
When a device sends a packet (data), the hub broadcasts it to all connected devices, regardless of the intended recipient.

Switch

A switch is a networking device that connects multiple devices on a local area network (LAN) and intelligently forwards data only to the device that needs it. It’s essentially the “traffic manager” of a network.

A switch is a smarter than hub:

How it works:
Switches maintain a MAC address table, mapping which device is connected to which port. When a device sends a packet:

  1. The switch reads the destination MAC address.

  2. It forwards the packet only to the correct port.

How Local Network actually works?

A local network is a group of devices (computers, phones, printers, smart devices) that can communicate with each other over a relatively small area—like your home, office, or school.

Think of it as a mini-internet just for your devices.

1. Core Components

Here are the main players in a local network:

  1. Router – The traffic director.

    • Connects devices to each other and to the internet.

    • Assigns local IP addresses so each device has a unique identity inside the network.

  2. Switch – The traffic manager inside bigger networks.

    • Moves data between devices efficiently.

    • Most home routers have a built-in switch.

  3. Access Point (AP) – Wireless bridge.

    • Lets Wi-Fi devices join the network.

    • Modern routers usually have built-in APs.

  4. Devices/Nodes – Computers, phones, printers, IoT devices, etc.

    • These request and send data within the LAN.

2. How Devices Communicate

Devices communicate using a layered approach:

  • MAC Addresses – Unique identifiers built into network cards.

    • Think of this like a name tag that tells your devices “this is me.”
  • IP Addresses – Assigned by your router.

    • Helps route messages to the right device, like a street address.
  • Protocols – Rules for communication.

    • TCP/IP: Ensures messages arrive correctly.

    • UDP: For faster, less reliable messages (like streaming video).

3. Data Flow Inside a LAN

Here’s what happens when your computer talks to another device:

  1. Your computer wants to send a file to another computer.

  2. It wraps the file into data packets with the destination’s IP and MAC address.

  3. Packets travel through the switch or router.

  4. The router/switch reads the destination and forwards the packets to the right device.

  5. The receiving device unpacks the data and reconstructs the file.

What is a Firewall?

A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. It acts as a barrier between a trusted internal network(personal network) and an untrusted external network (like the Internet) to prevent unauthorized access and threats.

  • Monitors Traffic: Watches incoming and outgoing data packets.

  • Filters Threats: Blocks malicious content like viruses, hackers, or unauthorized access attempts.

  • Controls Access: Can restrict certain websites, applications, or ports.

  • Logs Activity: Keeps records for auditing and troubleshooting security issues.

How It Works

  • Every network packet (unit of data) is examined by the firewall.

  • It checks whether the packet meets the security rules.

  • If allowed, the packet passes; if not, it is blocked or dropped.

Why Security Lives here?

  • First Line of Defense – The firewall sits between your trusted (internal)network and the untrusted(outside) internet. This is where attacks are most likely to happen, so putting security here helps stop threats before they reach sensitive systems.

  • Traffic Control Point – All data entering or leaving the network must pass through this point. By living “here,” security can monitor, filter, and block suspicious traffic efficiently.

  • Centralized Enforcement – It’s easier to manage rules and policies at one key place rather than scattered across every single device.

  • Firewall protects sensitive information and prevents attackers from reaching the internal systems. Firewalls are not just software—they can be hardware appliances, software-based, or even cloud-based, but the principle remains the same: secure the perimeter.

What is a Load Balancer?

A load balancer is like a traffic manager for servers. Its main job is to distribute incoming network or application traffic across multiple servers so that no single server gets overwhelmed. This ensures that services stay fast, reliable, and available—even under heavy usage.

  • Distributes Traffic: Sends incoming requests to the least busy or fastest-responding server.

  • Improves Reliability: If one server fails, the load balancer reroutes traffic to healthy servers, preventing downtime.

  • Enhances Performance: By spreading requests evenly, it reduces server overload and response delays.

  • Supports Scaling: Makes it easy to add more servers to handle increased demand without disrupting service.

Why Scalable Systems Need It?

  • Prevents Bottlenecks: Without a load balancer, one server could get swamped while others sit idle.

  • Enables Horizontal Scaling: Systems can grow by adding more servers instead of just upgrading one server’s hardware.

  • Maintains High Availability: Essential for services like e-commerce sites, streaming platforms, or online banking where downtime means lost revenue or users.

  • Supports Redundancy: If a server goes down, traffic is automatically redirected, keeping the system resilient.

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

  • Modem – Connects your office or home network to the ISP, translating the internet signal into Ethernet.

  • Router – Directs traffic between your internal network and the internet, assigning private IPs to devices.

  • Switch – Connects multiple devices (PCs, printers, servers) within the office, efficiently sending data only where it’s needed.

  • Hub – Older device that blindly sends incoming data to all connected devices, mostly replaced by switches.

  • Firewall – Acts as a security checkpoint, blocking unauthorized access from the internet while allowing safe traffic.

  • Load Balancer – Distributes incoming requests across multiple servers in a data center or web service to prevent overload.