Day 1 of devops

Aditya TiwaryAditya Tiwary
9 min read

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:

LayerReal-Life Example
7. 🍰 ApplicationYou open Google Chrome
6. 🎁 PresentationData is made readable (videos/images)
5. 🀝 Sessionβ€œSession” starts between you & Google
4. πŸ“¦ TransportData is broken into packets
3. 🚚 NetworkPackets are assigned IP addresses
2. πŸ›£οΈ Data LinkPackets are transferred through routers
1. πŸ”Œ PhysicalCables, 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:

ToolWhat 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

3
Subscribe to my newsletter

Read articles from Aditya Tiwary directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Aditya Tiwary
Aditya Tiwary