Day 1 of devops

Working of internet diagram
π Networking Basics Explained for Everyone
1. IP Address π β The Digital Home Address
Think of an IP Address like the home address of your computer or mobile phone on the internet.
β
Simple Example:
When you order pizza, you give your home address so the delivery person knows where to go.
Similarly, when you browse YouTube, your IP address tells YouTube where to send the videos.
β Types:
IPv4: Like
192.168.1.10
(most common)IPv6: Like
2001:abcd:β¦
(for future internet, more advanced)
π‘ In DevOps: You need IP addresses to connect servers, websites, and apps.
2. Public vs Private IP ππ β Internet vs Home Address
Imagine you have two types of addresses:
π Public IP: Your official address that anyone (even outside your city) can use to contact you.
π Private IP: Like your flat number inside your apartment building, only used within your building.
β Real-Life Example:
Public IP β Pizza delivery guy can find your main building.
Private IP β Once inside, the security guard uses your flat number to direct them to your door.
π‘ In DevOps:
Servers with public IP can be accessed from anywhere π.
Servers with private IP are protected, used inside secure networks π .
3. DNS (Domain Name System) π β‘οΈπ β The Phonebook of the Internet
You donβt memorize your friends' phone numbers anymoreβyou just save their names in your phone π±.
β DNS is like the Internetβs Phonebook:
- You type www.netflix.com β DNS finds the real IP address (like
13.227.80.55
) and connects you.
β Example:
You: βCall Momβ β Phone looks up number.
You: βOpen Netflixβ β DNS finds the serverβs IP.
π‘ In DevOps: DNS connects your website name (like yourbusiness.com) to the correct server π₯οΈ.
4. Subnet π§± β Rooms Inside a Building
If your office building π’ is your network, then subnets are like different rooms or sections inside it:
Marketing Team in Room A,
IT Team in Room B,
Sales Team in Room C.
β Why Use Subnets?
π‘οΈ Security: Only authorized people can enter specific rooms.
π Organization: Easier to manage groups within one big building.
π‘ In DevOps: Subnets keep servers organized and safeβlike public websites in one room and secure databases in another.
5. CIDR (Classless Inter-Domain Routing) π« β Group Tickets for Network Seats
Think of CIDR like grouping seats in a movie theatre π«.
β Example:
βRow A, Seats 1-20β means 20 seats are reserved together.
CIDR like
/24
means 256 IP addresses grouped together.
β Why Itβs Cool?
ποΈ Easier ticketing (network management).
π‘οΈ Access control: You can allow or block big groups of devices at once.
π‘ In DevOps: CIDR blocks help you manage large groups of devices or servers easily.
π Networking Basics Part 2
6. Routing ππΊοΈ β Google Maps for Your Data
Routing is like Google Maps but for your internet traffic!
β
Simple Example:
Imagine you want to go to a coffee shop β:
- Google Maps finds the best route, sometimes via the highway, sometimes via shortcuts.
β With Computers:
- When your computer sends data to a website, routers decide the best route through the internet to get it there.
π‘ In DevOps: You set up routing tables so your servers know how to talk to each other or reach the outside world.
7. Firewall π₯π β Security Guard for Your Network
Think of a firewall like a bouncer at a club πΆ:
- It allows good people in and blocks troublemakers from entering.
β Example:
You let friends in π’ but block strangers π«.
Similarly, a firewall allows certain traffic (like website visitors) and blocks dangerous traffic (like hackers).
π‘ In DevOps:
- AWS has Security Groups, Azure has NSGs (Network Security Groups)βboth are firewalls for your servers.
8. Load Balancer βοΈ β Traffic Police Officer
A Load Balancer is like a traffic police officer π¦ at a busy junction:
- When cars (visitors) come in, it directs them to less crowded roads (servers), so traffic flows smoothly.
β Example:
- Netflix gets millions of visitors. A load balancer spreads them across many servers, so no one server crashes.
π‘ In DevOps:
- Helps websites and apps handle lots of users without downtime.
9. VPC (Virtual Private Cloud) π° β Your Private Internet Castle
A VPC is like your own private castle π° in the big internet world π.
β Example:
You decide who can enter, who stays inside, and who can leave.
Inside the VPC you have rooms (subnets), guards (firewalls), and rules (routes).
π‘ In DevOps:
AWS β VPC
Azure β Virtual Network (VNet)
GCP β VPC Network
VPC helps you build safe, private spaces for your apps on cloud.
10. VPN (Virtual Private Network) π΅οΈββοΈπ β Secret Tunnel to Your Office
A VPN is like a secret tunnel π£οΈ between your home and office.
β Example:
- You work remotely π¨βπ», but use a VPN to safely access office servers as if you were sitting inside the office.
β Why VPN?
π‘οΈ Keeps data private.
π΅οΈββοΈ Hides your real location.
π Securely connects on-premise servers to cloud.
π‘ In DevOps: Companies use VPNs to securely connect employees to internal tools or connect offices to cloud servers.
11. NAT (Network Address Translation) π β Mask for Your Home Network
NAT is like a mask π your home uses to talk to the internet.
β Simple Example:
In your house π , multiple people (phones, laptops) use one public WiFi connection (one public IP) to browse the internet.
NAT makes it look like all devices are one person talking to the outside world.
β Why?
π‘οΈ Security: People on the internet donβt see your personal devices directly.
π Saves IPs: You donβt need a unique IP for every device.
π‘ In DevOps: NAT Gateways allow servers in private subnets to access the internet safely without exposing themselves.
12. Proxy Server πͺ β Your Internet Middleman
A Proxy is like a middleman π§βπΌ who talks to websites on your behalf.
β Example:
- Instead of you calling the pizza shop π, your assistant (proxy) calls, places the order, and brings it back.
β Why Use Proxies?
π‘οΈ Privacy: Hide your real identity.
π Faster Browsing: Stores frequently accessed data.
π’ Office Control: Companies use proxies to block certain websites.
π‘ In DevOps:
Forward Proxy β hides your requests.
Reverse Proxy β hides your servers (Nginx, HAProxy).
13. Ports πͺ β Doors for Communication
Think of a port like a door πͺ on your computer where specific conversations happen.
β Simple Example:
Door 80 β π websites (HTTP).
Door 443 β π secure websites (HTTPS).
Door 22 β π₯οΈ remote login (SSH).
β Why Itβs Useful:
- You can control which doors are open or closed on your server (extra safety!).
π‘ In DevOps: Youβll configure which ports are open on cloud servers to allow or block traffic.
14. OSI Model ποΈ β The 7-Layer Cake of the Internet
The OSI Model is like a 7-layer cake π showing how data moves from your device to the internet.
β Simple Breakdown:
Layer | Real-Life Example |
7. π° Application | You open Google Chrome |
6. π Presentation | Data is made readable (videos/images) |
5. π€ Session | βSessionβ starts between you & Google |
4. π¦ Transport | Data is broken into packets |
3. π Network | Packets are assigned IP addresses |
2. π£οΈ Data Link | Packets are transferred through routers |
1. π Physical | Cables, WiFi signals |
π‘ In DevOps: You mostly focus on Layer 3β7, ensuring your services communicate properly.
15. TCP vs UDP π©β‘ β Reliable Mail vs Fast Postcards
β TCP (Reliable Mail π©):
Like courier delivery with tracking & delivery guarantee.
Slower but reliable (e.g., banking websites, login systems).
β UDP (Fast Postcard β‘):
Like a postcard: fast but no tracking.
Great for speedy tasks like video streaming, gaming, live chat.
π‘ In DevOps: You decide which protocol to use based on whether you need speed or reliability.
Hereβs the final part of the networking terms (16β20), explained in easy, non-technical language with examples and emojis so anyone can understand! π
16. Ingress & Egress πͺβ¬ οΈβ‘οΈ β Entry and Exit Doors of Your Server
β
Ingress = Incoming traffic (πͺβ¬
οΈ)
β
Egress = Outgoing traffic (πͺβ‘οΈ)
β Simple Example:
Ingress is like people entering your house (visitors knocking on your door).
Egress is you leaving your house to go shopping.
β In Servers:
Ingress β When users visit your website.
Egress β When your server connects to the internet (e.g., downloading updates).
π‘ In DevOps: You manage ingress and egress rules to control who can talk to your servers.
17. SSL/TLS π β Secret Handshake for the Internet
β SSL/TLS is like a secret handshake π€ between you and a website.
β Example:
- Imagine you're sharing private messages with a friend π¨. You both use a special handshake to know itβs really each other, and encrypt messages so others canβt read them.
β Why Itβs Important:
π‘οΈ Keeps data safe from hackers.
π HTTPS uses SSL/TLS β websites with a lock symbol π are secure.
π‘ In DevOps: You set up SSL certificates to make websites secure and trusted.
18. Network Tools π§° β DevOps Toolbox
β Some network tools youβll often use in DevOps jobs:
Tool | What It Does |
Nginx πͺ | Reverse proxy, load balancing |
HAProxy βοΈ | High availability load balancing |
Traefik π¦ | Modern proxy for microservices |
WireGuard/OpenVPN π | Secure VPNs |
tcpdump/nmap π | Network debugging, scans |
β Example:
- Think of these like plumbing tools π§°βeach tool fixes or optimizes a specific network-related problem.
19. Ping & Traceroute ππ β Checking Internet Health
β Ping β Like a ping pong ball π, you send a quick βhelloβ to a server and see how fast it responds.
β Traceroute β Like following a Google Maps route π, it shows the path your data takes to reach a server.
β Example:
Ping tells you: βIs this website alive?β
Traceroute tells you: βWhich cities (routers) does my data travel through?β
π‘ In DevOps: Helps check server health and network problems.
20. Bandwidth vs Latency ππ’ β Speed vs Delay
β
Bandwidth (Speed π) β How much data you can transfer at once.
β
Latency (Delay π’) β How quickly the data starts moving.
β Example:
π£οΈ Bandwidth = Size of the highway (more lanes = more cars at once).
π°οΈ Latency = Traffic light speed (how soon cars start moving).
π‘ In DevOps: You monitor both so websites run fast and smooth.
Source i followed for this is https://www.youtube.com/watch?v=mNTs-shuFno
Subscribe to my newsletter
Read articles from Aditya Tiwary directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
