Networking for DevOps: The Only Beginner Guide You’ll Ever Need

Divakar jaiswarDivakar jaiswar
7 min read

Hey DevOps learner 👋 — this blog isn’t just theory. It’s based on my own hands-on journey learning networking, debugging real EC2 issues, and connecting cloud. If you’ve ever launched a server and wondered “Why is it not loading?”, this guide is for you.

Step 1: Understanding OSI & TCP/IP Networking Models (The DevOps Way)

🚀 If you've ever wondered why your server isn't loading or why your API fails only in production — it’s time to understand the real flow of data, one layer at a time.
Welcome to Step 1 of your DevOps networking journey.

🧠 Why Should DevOps Engineers Even Care About Networking?

Let me start with a story.

Scenario: You’ve launched a Flask web app on AWS EC2. Everything works fine locally. But when you share the EC2 public IP with your teammate, they can’t access the app.

You check the code: ✅ okay
You check EC2 instance: ✅ running
You refresh again. Nothing. 😩

Turns out — port 5000 wasn’t opened in your EC2 Security Group. Once you added the rule, it started working instantly. Boom! 💥

That’s the power of knowing how data flows, how ports, protocols, and network layers play a role.

If you want to debug like a pro — whether it's an API gateway, a load balancer, or just SSH — you must understand the OSI & TCP/IP models.

🌍 Part 1: The OSI Model — 7 Layers That Make the Internet Work

OSI stands for Open Systems Interconnection
It’s a conceptual model that splits data communication into 7 logical layers — each layer performs a distinct role in how your browser talks to a server.

🎁 Let’s Use a Real Life Gift Analogy

You’re sending a birthday gift 🎁 from Mumbai to your friend in Bangalore.

OSI LayerWhat It DoesGift Analogy
7️⃣ ApplicationInterface with userYou decide what gift to send
6️⃣ PresentationFormat/encrypt dataYou wrap the gift beautifully
5️⃣ SessionStart/end conversationYou call courier to schedule pickup
4️⃣ TransportBreaks into pieces, ensures deliveryCourier ensures gift reaches fully
3️⃣ NetworkAssign addresses, route dataCourier finds best path to destination
2️⃣ Data LinkLocal communicationLocal delivery van brings it to city
1️⃣ PhysicalTransmits bits physicallyVan drives gift to destination

🧠 Each layer builds on the one below it — and together, they make sure your “digital gift” reaches the recipient properly.

🔍 Let's Explore Each OSI Layer in Detail (With DevOps eye’s)

1️⃣ Physical Layer – The “Highway”

What it does:
This is the layer that physically transmits bits across cables or radio signals — Wi-Fi, Ethernet, Bluetooth, fiber optic cables — all live here.

  • Real-Life Gift Analogy: The highway the courier van drives on.

  • In Networking: Cables, routers, antennas, and network interface cards (NICs).

🔧 Tools: ethtool, ip link, iwconfig
🔎 DevOps Use Case: If EC2 is unreachable, check whether the Elastic Network Interface (ENI) is properly attached.

🅰️ Abbreviation:

  • NIC: Network Interface Card
    (Hardware that connects your server to the network)

2️⃣ Data Link Layer – The “Apartment Delivery”

What it does:
Controls how devices on the same network talk to each other using MAC addresses.

  • Analogy: A local delivery van takes the parcel from a warehouse to your friend’s apartment in Bangalore.

  • In Networking: Switches, MAC addresses, Ethernet frames.

🧠 If two instances in the same subnet can’t ping each other — you're likely dealing with a Layer 2 issue.

🅰️ Abbreviations:

  • MAC: Media Access Control
    (Unique hardware address assigned to your device's NIC)

3️⃣ Network Layer – “The Route Planner”

What it does:
Handles IP addressing and routing data across different networks.

  • Analogy: Courier company decides the fastest route from Mumbai to Bangalore.

  • In Networking: Routers, IP addresses, subnets.

🛠 In DevOps:

  • You define public/private IPs, subnet masks, and VPC routing tables in AWS.

🅰️ Abbreviations:

  • IP: Internet Protocol
    (Address system to locate devices)

  • VPC: Virtual Private Cloud
    (Your private isolated network in AWS)

4️⃣ Transport Layer – “The Guarantee Guy”

What it does:
Ensures data arrives accurately and in order, or just fast (depending on protocol).

  • Analogy: Courier breaks the gift into boxes (segments), adds labels, and ensures all boxes reach safely.

  • Protocols: TCP and UDP.

🧠 In DevOps: This is where port numbers come into play.

🅰️ Abbreviations:

  • TCP: Transmission Control Protocol
    (Reliable, ordered delivery — like a courier with tracking)

  • UDP: User Datagram Protocol
    (Fast, fire-and-forget — like a flyer drop)

🧪 Real Use:

  • SSH uses TCP 22

  • DNS uses UDP 53

  • Video calls (Zoom, Teams) prefer UDP for speed.

5️⃣ Session Layer – “The Conversation Timer”

What it does:
Starts, maintains, and closes sessions between systems.

  • Analogy: You call the courier to schedule a delivery slot.

  • In Networking: Managing login sessions, cookies, persistent connections.

🛠 DevOps Insight:
Session issues arise when apps log users out randomly or when persistent database sessions time out unexpectedly.

🅰️ Abbreviations:

  • RPC: Remote Procedure Call
    (Allows programs to execute functions on another server)

6️⃣ Presentation Layer – “The Gift Wrapping”

What it does:
Translates data into a format the receiving system understands. Handles encryption, compression, encoding.

  • Analogy: You wrap the gift and write instructions — "Fragile", "Handle with care".

  • In Networking: TLS/SSL encryption, JSON encoding, Base64, image compression.

🧠 Real Use:

  • Setting up HTTPS? You’re using the Presentation Layer.

  • Ever seen SSL handshake failed? That’s a Layer 6 issue.

🅰️ Abbreviations:

  • TLS: Transport Layer Security

  • SSL: Secure Sockets Layer (older version of TLS)

7️⃣ Application Layer – “The Decision Maker”

What it does:
Interfaces with the user. Everything from browsing websites to sending emails lives here.

  • Analogy: You decide to send a gift — choose the shop, select the item, add a message.

  • In Networking: DNS, HTTP, FTP, SMTP, SSH, APIs.

🧠 DevOps Role:
Every app you deploy — Nginx, Docker, Jenkins, Prometheus — communicates at this layer.

🅰️ Abbreviations:

  • HTTP: HyperText Transfer Protocol

  • DNS: Domain Name System

  • SMTP: Simple Mail Transfer Protocol

✅ Quick Recap Table: OSI Model for DevOps

LayerProtocolsDevOps Relevance
7. ApplicationHTTP, SSHAPI calls, web apps
6. PresentationTLS, SSLHTTPS, encryption
5. SessionRPCsession bugs
4. TransportTCP, UDPopen ports, retries
3. NetworkIP, ICMProuting issues
2. Data LinkARPMAC conflicts
1. PhysicalEthernet, Wi-FiNIC issues, downtime

💻 Part 2: TCP/IP Model – What You’ll See in Real Life

While OSI is great for learning, real networks use TCP/IP. It’s a 4-layer practical model implemented in Linux, AWS, routers, and switches.

TCP/IP LayerCovers OSIWhat It DoesExamples
ApplicationOSI 5–7Handles apps & protocolsHTTP, SSH, DNS
TransportOSI 4Reliable delivery, portsTCP, UDP
InternetOSI 3Routing, IP addressingIP, ICMP
Network AccessOSI 1–2Physical data transferEthernet, MAC

🧠 You’ll see these layers directly in your work:

  • Security Group rules (Layer 4)

  • VPC route tables (Layer 3)

  • SSH connectivity (Layer 7 + 4)

🎯 Real-Life Example: Visiting https://example.com

  1. Application Layer
    You type the URL and press Enter. Browser sends HTTPS request to port 443.

  2. Presentation Layer
    TLS encrypts the request.

  3. Session Layer
    A session is initiated with the server.

  4. Transport Layer
    Data is segmented and sent via TCP.

  5. Network Layer
    Packet is assigned source and destination IP. Routers choose the path.

  6. Data Link Layer
    Packets are put in Ethernet frames.

  7. Physical Layer
    Data is transmitted through Wi-Fi to your router, then the internet.

...Server receives the request, processes it, and replies back via the same layers in reverse.

🔚 Final Thoughts: You Now Have a Mental Map of the Internet

Understanding the OSI and TCP/IP models is like unlocking “x-ray vision” for networked systems. You no longer see "internet not working" as a mystery — you see layers, tools, and logic.

And that’s your first real step into professional DevOps.

0
Subscribe to my newsletter

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

Written by

Divakar jaiswar
Divakar jaiswar