Understanding Network Devices

Ever wondered that when we type google.com or any website it needs internet to load and work, how exactly this internet comes to our phone or laptop or our device. Behind the scenes, network devices quietly do their jobs.
In this blog lets discuss the different network devices in order they appear in real life.
How does the internet reach our devices
Before discussing what internet is, we must know what a network is. A Network is a group of connected computers that are able to send data to each other. A computer network is like a group o people who all know each other, regularly exchange information, and coordinate activities together.
The Internet is very large, with lots of collection of networks that connect to each other. In fact the word “Internet” comes from a concept interconnected networks.
There a 2 main concepts in which the way internet functions:
Packets
In networking, a packet is a small part of a large message. Each packet contains both data and information about the data. The information is known as header and it goes at the front of the packet so that the receiver knows what to do with the packet.
Protocols
Connecting 2 computers, both may use different hardware and different software, the main aim was that creators of internet had to solve this problem. It requires use of communication techniques that are understandable to all connected computers, just as 2 people who grew up in different parts of the world are able to communicate and understand each other.
This problem was solved with standardized protocols. In networking a protocol is a standardized way of doing certain actions and formatting data so that 2 or more devices are able to communicate. eg .TCP, HTTP
Each device answers one specific question:
How do we talk to the internet?
Where should this data go?
Who is allowed to enter?
How do we scale safely?
Lets discuss each one of them
What is a Modem?
Helps connect the local network to internet
A modem is a device that directly talks to your Internet Service Provider (ISP)
What actually it does:
Convert ISP signals (fibre, cable) into digital data
Allows us to use the internet in our home or office
Example:
We can think of modem as the main post office:
It receives packages from outside the city (internet)
It hands them over to the delivery guy

Without a modem the network is disconnected from the internet.
What is a Router?
Router decides where incoming and outgoing traffic should go, A router connects multiple devices to the internet and routes traffic between them.
What it does:
Assigns Local IP addresses
Routes data to the correct device
Separates the private network from public internet
Example:
A router is like a traffic police officer:
Incoming traffic → sends it to the right street
Outgoing traffic → sends back it to the highway

Most home router has basic firewall features inbuilt in them.
Switch vs Hub - How local network work
These devices live inside our local network.
What is a Hub?
Hub is nothing but it broadcasts everything to everyone.
A hub sends incoming data to all connected devices. whether they need it or not.
Example:
Someone is shouting in a room:
“Hello All, How are you all?”

Hub is inefficient and insecure.
What is a Switch?
Sends data only to respective devices.
A switch learns which device is connected to which port and send data only where needed.
Example:
A mailroom that relivers letters to specific desks
A switch sends data to single device it is intended for, not to networks of multiple devices.
Hub vs Switch (Quick Compare)
| Feature | Hub | Switch |
| Traffice | Broadcast | Target |
| Efficiency | Low | High |
| Security | Poor | Better |
| Used today | Hubs are not used currently | Switchs are usesd currently |
What is a Firewall?
Decide what traffic is allowed or blocked.
A firewall sits at the boundary of a network and filters based on rules.
From what it protects us:
Unauthorized access
Malicious traffic
Suspicious ports or IPs
Example:
A firewall is a security gate:
Checks IDs
Allows trusted people
Block outsiders

What is a Load Balancer?
Distribute traffic across multiple servers
A load balancer ensures no single server gets more load.
Why it is needed:
High traffic
High availability
Fault tolerance
Example:
A toll both system where Cars are redirected to the shortest queue.

Load balancers are critical in production systems
How all these work together

What happens here?
Modem connects to ISP
Firewall secures the network
Router directs traffic
Switch handles local delivery
Load balancer scales backend systems
What happens when the Network is the problem?
When something breaks, its not always the code.
A simple way to debug is to ask:
Where could traffic be getting stuck, blocked or overloaded?
Here are some common problems and where to look first:
Website not reachable
Check for:
Modem/ISP: Is the internet connect up.
Firewall: Is traffic being blocked.
Router: Is routing configured correctly
Site is up but very slow
This likely suspects:
Load Balancer: Uneven traffic distribution
Router: Congestion or misrouting
Switch: Rare but possible local bottlenecks
One device works, another does not.
Check for:
Router: Mostly IP issues
Switch: Port or VLAN Problems
Some APIs work, others fail
Need to check for:
Firewall rules: Ports or IP ranges blocked
Load balancer issues: Host based routing errors
Traffic load causes crashes
Almost always check for:
- Load Balancer: Missing auto scaling or health checks
Why this matters?
Even if we write code we need to know that:
APIs run behind load balancers
Security issues start at firewalls
Latency often comes from routing
Scaling means understanding traffic flow
Understanding these devices helps us in:
Debug production issues faster
Design scalable backend
Conclusion
Now network devices are not that complicated, each one has clear job.
Modem → Connects you to the internet
Router → Directs traffic
Switch → Optimizes local communication
Firewall → Protects the network
Load Balancer → Enables scale
Now next time our app or website is slow, we know where to look for!!




