Understanding Network Devices
So you want to know how the internet gets to your house or office.
The internet is like a system that connects all these computers and servers.
When you are at home or at the office you are basically using the internet to do all sorts of things.
The internet reaches your home or office through something called an internet service provider.
This internet service provider is like a company that helps you get the internet.
They use special computers to connect you to the rest of the internet.
They lay down cables under the ground or under the sea.
They use towers to send signals through the air.
They even use satellites up in space to help get the internet to you.
The internet service provider helps you get the internet to your home or office so you can use it to do all the things you want to do on the internet.
The internet is really important for your home or office because it helps you stay connected to the rest of the world.
You can use the internet to talk to people watch videos and learn things.
So the internet is, like a system that helps you do all these things and it is really useful to have it at your home or office.
Internet access originates from an ISP (Internet Service Provider)
The Internet Service Provider gives people a way to get online using fiber, cable, DSL or cellular links. They use these Internet Service Provider links to connect people to the internet. The Internet Service Provider helps people get online with these kinds of links.
Inside a home or office there are networking devices that work together to:
Terminate the ISP connection
Route traffic
Distribute packets locally
Secure traffic
Scale traffic to servers
- What is a Modem. How does a Modem connect your network to the internet?
A Modem is an important thing that helps you get on the internet.
It does this by connecting your network to the internet.
You need a Modem to use the internet on your computer or phone.
The Modem connects your network to the internet so you can do things like watch videos and talk to people online.
This is because a Modem is what lets your network talk to the internet.
So if you want to be, on the internet you need a Modem to connect your network to the internet.
A modem is what connects your network to your internet service provider. This is how you get to use the internet from your home or office. Your modem connects your network to your internet service provider so you can browse the web and do all the things you need to do online.
This thing takes signals from your Internet Service Provider. Turns them into Ethernet or Internet Protocol traffic. It basically helps your Internet Service Provider signals work with Ethernet or Internet Protocol traffic. This is really helpful, for people who need to use Internet Service Provider signals and Ethernet or Internet Protocol traffic.
It operates at
Physical layer (signal conversion)
Data link layer (framing, depending on technology)
A modem:
Usually receives one public IP address from the ISP
Does not manage multiple devices
Does not route traffic
If you do not have a modem your network will not be able to communicate with the Internet Service Provider network. This is because the modem is what allows your network to talk to the Internet Service Provider network. Without the modem the Internet Service Provider network and your network cannot exchange information. You need a modem for your network to work with the Internet Service Provider network.
- What is a Router and how the Router directs traffic on the internet. The Router is a device that helps the Router send data to the place. Think of the Router like a traffic cop the Router makes sure that the data gets to where it needs to go. The Router does this by looking at the address on the data and then sending it to the stop on the way, to its final destination. This is how the Router directs traffic on the internet.
A Router is used to connect networks. This is really useful because it allows different networks to communicate with each other. The Router makes it possible for devices on one network to talk to devices on another network. So the Router is very important, for connecting networks.
It sits between
Your private network
The public internet
Responsibilities:
Routes packets based on IP addresses
Performs NAT (Network Address Translation)
Acts as the default gateway for devices
A router:
This thing lets multiple devices use the public internet address. It is really helpful because multiple devices can share one IP. This means that all these devices can access the internet using the public IP.
It figures out where the outgoing traffic should go. This thing is like a guide, for the traffic. The outgoing traffic needs to know where to go. This is what decides that for the outgoing traffic.
Receives incoming traffic and forwards it correctly
For backend engineers:
Routers are really important because they define the boundaries of a network. They basically decide what is part of the network and what is not. Routers define network boundaries. They do this by controlling the flow of data. This means that routers define network boundaries and help keep everything running smoothly.
Cloud VPC routing tables work like the routers you have at home. They help Cloud VPC figure out where to send traffic. Cloud VPC routing tables are really good at directing traffic to the place. When you use Cloud VPC routing tables you can control how traffic moves around Cloud VPC. Cloud VPC routing tables are very important, for making sure everything works properly in Cloud VPC.
- Switch versus Hub: how local networks really work
Local networks are made up of lots of parts.
The Switch and the Hub are two of these parts.
So what is the difference between a Switch and a Hub in networks?
Local networks use the Switch and the Hub to help them work.
The Switch and the Hub are important for networks.
They help the local networks do what they need to do.
When we talk about networks we are talking about the Switch and the Hub.
They are a part of how local networks actually work.
Understanding the Switch and the Hub is important for understanding networks.
The Switch and the Hub are used in networks every day.
So it is an idea to know how the Switch and the Hub work, in local networks.
Hub
Operates at the physical layer
Sends incoming data to all connected ports
No awareness of MAC addresses
Causes:
Unnecessary traffic
Collisions
Poor performance
Mostly obsolete
Switch
Operates at the data link layer
Maintains a MAC address table
Sends data only to the intended device
Benefits:
Efficient traffic flow
Reduced collisions
Better bandwidth utilization
Used in:
Offices
Data centers
Cloud infrastructure
These days modern networks use switches, not those hubs. Modern networks are really good, at sending information and they do this by using switches. This is because modern networks need to be fast and reliable and switches help them do that.
- What is a Firewall. Why the Firewall is so important for security? The Firewall is like a gatekeeper that decides what can come into our computer or network and what has to stay out. The Firewall is the line of defence against hackers and viruses. We need the Firewall to protect our computer or network from people who want to cause trouble. The Firewall checks everything that tries to get in. Says yes or no. This is why the Firewall is so important for our security. We can think of the Firewall as a shield that keeps our computer or network safe. The Firewall is what keeps the guys out and lets the good guys in. So the Firewall is really important, for keeping our security strong.
A Firewall is something that helps control the traffic that comes and goes from a computer. It does this based on some rules that are set up for the Firewall. The Firewall looks at the traffic. Then decides what to do with it based on these rules, for the Firewall.
It can. Deny the traffic based on certain things, like:
The traffic
Where the traffic is coming from
Where the traffic is going to
The traffic can be. Denied based on these things.
IP address
Port number
Protocol
Connection state
Firewall placement:
Between router and internal network
At server level (host firewall)
At cloud perimeter (security groups)
Responsibilities:
Prevent unauthorized access
Limit attack surface
Enforce security policies
For backend systems:
Firewalls are, like the guards that decide what services people can use and what services they cannot use. They look at each service. They say yes or no. The services that the firewalls say yes to are the ones that people can reach. Firewalls decide which services are reachable.
Firewalls that are not set up correctly can cause problems and shut down production. This is an issue, with firewalls. When firewalls are misconfigured they can stop production from working. Firewalls are supposed to help keep things running smoothly. Misconfigured firewalls can actually cause production outages.
- What is a Load Balancer. Why do scalable systems need a Load Balancer?
A Load Balancer is something that helps when a lot of people are using a website or a system at the time.
Scalable systems need a Load Balancer because it helps make sure that the system can handle a number of users.
When a system has a Load Balancer it can direct traffic to parts of the system so one part does not get too busy.
This helps the system run smoothly. It helps people get what they need quickly.
Scalable systems need a Load Balancer to keep everything running well and to make sure people can use the system when they need to.
A Load Balancer is very important, for systems because it helps the system work properly when a lot of people are using it.
A Load Balancer is really useful because it helps to distribute the traffic across different servers. This means that the Load Balancer is sending the traffic to servers so no single server gets overwhelmed, with too much traffic. The Load Balancer is doing this to make sure that the traffic is spread out evenly across all the servers. This way the Load Balancer and the servers can work together to handle a lot of traffic from people who are using the system. The main job of the Load Balancer is to distribute traffic across servers.
It prevents things from happening. The thing that it prevents is really important to think about when we're talking about this topic. It prevents the things. We should remember that it prevents these things so we can understand how it works. It prevents problems.
Single server overload
Single point of failure
Operates at:
Layer 4 (TCP/UDP)
Layer 7 (HTTP/HTTPS)
Responsibilities:
Traffic distribution
Health checks
Failover
In production systems:
Load balancers are like the people, at the door. They sit in front of the backend services. Help figure out where to send the traffic. The backend services are the ones that do all the work and the load balancers make sure they do not get too busy.
They help spread the work around
This means the backend services can handle people at the same time
The load balancers are very important because they help the backend services run smoothly. Load balancers and backend services work together to make sure everything runs well.
They are critical for high availability and scalability
- So I was wondering how all these devices actually work together in a world setup. You know, like in an everyday situation. How do all these devices communicate with each other. Work together seamlessly. I mean it is really interesting to see how all these devices, like computers and phones and things can all be connected and work together in a world setup. All these devices they have to be able to talk to each other and share information. That is what makes it all work so well. So how do all these devices work together in a world setup that is what I want to know.
Typical flow:
ISP → Modem
Modem → Router
Router → Firewall
Firewall → Switch
Switch → End devices / servers
Load balancer → Backend server pool
Each device has one job that it does. It is responsible, for doing that one thing.
Modem: ISP signal termination
Router: Network routing
Switch: Local packet delivery
Firewall: Traffic filtering
Load balancer: Traffic distribution
- Relevance for backend and production systems
The backend services need these things to work:
Correct routing
Open firewall rules
Load-balanced traffic
Understanding these devices helps with:
Debugging network issues
Designing scalable systems
Reading cloud architecture diagrams
Cloud equivalents:
Modem → ISP gateway
Router → VPC router
Switch → Virtual network
Firewall → Security groups / NACLs
Load balancer → ALB / NLB / ELB
- Key takeaway
Software systems do not work all by themselves. They need things to function properly. Software systems are, like a team that has to work with other teams to get the job done. Software systems rely on software systems and hardware to run smoothly. This is because software systems are not alone they are part of a system that includes many other things. Software systems need to talk to each other and share information to work correctly.
Every backend request passes through:
Routing
Switching
Security filtering
Load balancing
Understanding how these devices work makes you feel really smart, about these devices. It is pretty cool to learn about these devices. How they do what they do with these devices.
Better at debugging
Better at system design
More production-ready as an engineer