Skip to main content

Command Palette

Search for a command to run...

Understanding Network Devices

Published
4 min read
Understanding Network Devices

Hey Everyone,

We use the internet every day. Have you ever thought about how the internet reaches our homes and offices? The journey it takes before reaching our homes is invisible to us.

Let me explain it in a simple way

The internet is provided by your Internet Service Provider(ISP) through its transport network.

This connection can come in different forms, such as coaxial cables, optical fiber cables, or wireless links, depending on your location and service type.

From there, a series of networking devices takes over to make sure data reaches the right place safely and efficiently.

Let’s start with the networking devices:

MODEM

A modem is made up of two words: modulator and demodulator.

A modem connects your local network to your Internet Service Provider (ISP).

As mentioned above, the ISP sends analog signals to the modem through coaxial cables, optical fibre cables, etc..

Your devices don’t understand these signals

The Modem:

  • converts the incoming analog signal from ISP into a digital signal that your devices can understand.

  • converts the outgoing digital signal into an analog signal before sending it to the ISP.

Real World Analogy

It is like a language translator.

A moderm does’nt manage the traffic, it only establishes the internet connection.

ROUTER

A router decides where data should go.

  • Multiple devices need to access data

  • Data must reach the correct devices

  • It finds the easy and less-trafficked path for data packets to travel

Real World Analogy

It is like a traffic police officer helping manage the traffic.

It ensures:

  • Incoming data goes to the correct device

  • Outgoing requests reach the internet

Switch and hub

Both hubs and switches connect devices inside a local network — but they act very differently.

Hub

A hub blindly sends data to every device in the network.

Suppose you want to send a message from A to B, but C and D are also in the network, then that means the message will be received by B, C and D. This will result in more congestion in the network, which will affect the speed of the internet.

Real World Analogy

Someone is shouting in the crowded room

Switch

A switch knows which device is connected to which port.

A switch keeps track of MAC addresses and knows which device is connected to which port. When A sends a message, the switch looks at the destination MAC address and forwards the data only to Device A. Because the message is sent only to the user C:

  • Other devices (B and D) do not receive unnecessary data

  • Network congestion is reduced

  • Overall network performance and speed improve

Firewall

A firewall controls what traffic is allowed in or out. It is like a imaginery wall that is around your network which protects you from the attacks etc.. and only allows the trusted network requests.

Have you ever stopped to think about why some websites don’t open on your school or office Wi-Fi?

You type the URL correctly, your internet is working fine… yet the site just won’t load.

The reason is Firewall 🔥

Real World Analogy

A security gate with guards checking IDs

Load Balancer

It distributes the incoming traffic among different instances of the servers. It is in front of the backend servers.

What probelm it solve?

If there is only one server, that means one server can overload or fail.

To prevent that, we need multiple instances of the server (Horizontal Scaling), but how can the requests be sent to different servers? That's where a load balancer comes into the picture spread traffic evenly across the servers.

Real World Analogy

It is like a toll booth with multiple lanes.

Cars (requests) are directed to the least busy lane (server).

How All These Devices Work Together (Real-World Setup)

Let’s connect everything

Common Beginner Confusions:

Router vs Modem

Modem→ connects to ISP, and you can also use the internet by connecting through the LAN Cable.

Router→ manages and directs traffic. It enables us to use the internet with LAN or through WI-FI.

Hub vs Switch

Hub→ It blindly sends data to every device, which increases congestion in the network, affecting the internet speed.

Switch→It keeps track of devices attached to its port and sends data to a specific receiver or receivers. For that reason is expensive as compared to Hub.


And now, you know some of the key networking devices and what they do.

If you have any doubt or want to connect, feel free to drop a comment — I’d be happy to help.

Thanks for reading, and see you in the next blog!

Peace ✌️ and Happy Learning!