Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Published
4 min read
Understanding Network Devices

When we open a website on the internet, it doesn’t open directly. That website opening requests go through multiple physical devices, where each device has it’s own works, also response come again to you by again passing through these all devices.

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

If we want to use internet inside our home or business, we have to use a modem for it. it works like translator i.e. changing one format into another and vice-versa. A computer understands Digital signal while to travel these signal from computer to ISP(Internet service provider) it must be in Analog form(suitable for long-distance transmission). So modem fill this gap by working between Computer and ISP and translating digital to analog called Modulation or analog to digital called demodulation.

Modem only connects you to the internet.

What is a Router and how it directs traffic?

Once internet data enters your building, someone must decide where it should go. That is the router’s job.

A router connects multiple networks and decides the best path for data packets. It assigns local IP addresses, forwards requests to the internet, and brings responses back to the correct device.

Routers often work with a modem to enable Internet connectivity.

Switch vs Hub: how local networks actually work?

Inside your local network, devices must talk to each other efficiently. This is where hubs and switches work, although their work differs. Hubs and switches connect devices in a LAN, but switches are smarter, faster, and more efficient

A hub is dumb i.e. it has no intelligence. When it receives data, it broadcasts it to every device connected. Every system listens, checks if the message is for it, and ignores it if not. This wastes bandwidth and causes collisions. It’s like messaging someone on whatsapp group in which all members can also see it. Below is the Pictorial Representation of HUB’s working:

A switch is smart. It learns which device is connected to which port and sends data only to the intended recipient. it’s best for nearly all modern network setups to ensure speed, security, and efficiency. It’s like messaging someone on whatsapp Personally in DM, in which only the targeted person sees it.

Analogy:

  • Hub = someone shouting a message in a crowded room

  • Switch = delivering a sealed letter to the correct person

  • Below is the Pictorial Representation of HUB’s working:

What is a Firewall and why security lives here?

A firewall is the security guard of your network. It decides what is allowed in and out.

Firewalls inspect traffic based on rules: IP, port, protocol, or even payload. They block suspicious traffic, unauthorised access, and known attack patterns from entering a private network. It creates a barrier between private network and public network. Firewall can be in form of software, hardware or combination of both.

A firewall in building structure is very similar to firewall in a network! And that is from where the word Firewall came from! a firewall in building structure provides a barrier so that in condition of Fire in either side of building a firewall is there to keep it from speading to to other side, Network firewall also works in similar way.

The firewall inspects and controls incoming network traffic to determine which traffic should be rejected or accepted depending on a set of rules set by a government, an organization, or an individual

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

As it’s name suggests it balance the Load(Amount of traffic/request at a time)

A load balancer sits in front of multiple servers and distributes incoming traffic among them.

Instead of one server handling all requests, traffic is shared. If one server fails, traffic is redirected automatically. It:

  • Improves availability

  • Enables scaling

  • Hides server failures from users

Assume like:
A load balancer is a toll booth with multiple lanes, sending cars to the least crowded lane to manage traffic efficiently.

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

Internet → Modem → Router → Firewall → Switch → Devices / Servers

  • User request enters through the modem

  • Router forwards it correctly

  • Firewall validates it

  • Load balancer distributes it

  • Response travels back the same path

More from this blog

F

Full Stack Web Developement

13 posts