DEV Community

Bhaskar Sharma
Bhaskar Sharma

Posted on

πŸš€ Day 5 of My DevOps Journey: Networking Basics for DevOps

Hello dev.to community! πŸ‘‹

Yesterday, I explored Bash scripting β€” my first step toward automation. Today, I’m diving into Networking Basics β€” the invisible backbone of every system in DevOps.

πŸ”Ή Why Networking matters for DevOps

Every application communicates over a network (servers, APIs, databases).

Debugging outages often starts with network checks.

CI/CD pipelines, Kubernetes clusters, and cloud deployments all rely on stable networking.

🧠 Core concepts I’m learning

🌍 DNS (Domain Name System)

Translates human-friendly names (google.com) into IP addresses (142.250.190.14).

Tools: nslookup, dig

πŸ”Œ Ports

Each service runs on a port (HTTP β†’ 80, HTTPS β†’ 443, SSH β†’ 22).

Check open ports with:

netstat -tulnp

πŸ“‘ Protocols (TCP vs UDP)

TCP: Reliable, connection-based (used by web, SSH).

UDP: Faster, connectionless (used by DNS, streaming).

βš–οΈ Load Balancing

Distributes traffic across multiple servers.

Ensures high availability and better performance.

Tools: Nginx, HAProxy, AWS ELB

πŸ› οΈ Mini use cases for DevOps

Verify connectivity: ping, traceroute

Test ports/services: telnet or nc -zv

Monitor traffic: tcpdump, iftop

Debug DNS issues: dig @8.8.8.8 example.com

⚑ Pro tip
If something isn’t working, always check network basics first:

Can you ping the server?

Is the right port open?

Is DNS resolving correctly?

πŸ§ͺ Hands-on mini-lab (try this!)
Create a script netcheck.sh that:

Accepts a hostname and port as input.

Pings the host.

Checks if the given port is open.

Prints β€œAll good βœ…β€ or β€œIssue detected βŒβ€.

🎯 Key takeaway
Networking is the foundation of DevOps. Without understanding DNS, ports, and protocols, troubleshooting cloud systems or CI/CD pipelines becomes a guessing game.

πŸ”œ Tomorrow (Day 6)
I’ll explore Linux Services & Systemd β€” managing processes like a pro.

Git #GitHub #VersionControl #SourceControl #CICD #Automation #Collaboration #SoftwareEngineering #CloudNative #ContinuousIntegration #ContinuousDelivery #OpenSource #DevOpsEngineer #CodingBestPractices #DeveloperTools #SRE

Top comments (0)