Skip to content
TechToolsHQ
NewsReviewsGuidesTech 101Tech SeriesToolsNewsletter
TechToolsHQ

Independent, research-driven tech coverage — breaking news, in-depth reviews, buying guides, and technical tutorials to help you understand and choose with confidence.

Explore
NewsReviewsGuidesTech 101Tech SeriesFree Tools
Legal
About UsOur AuthorsContact UsPrivacy PolicyTerms of ServiceCopyright & DMCAAffiliate DisclosureEditorial PolicyAdvertise With Us

© 2026 TechToolsHQ. All rights reserved.

Tech Series/DevOps/Basic Networking for DevOps: Terms, Tools, and Debugging
DevOps · Part 1 of 2

Basic Networking for DevOps: Terms, Tools, and Debugging

The mental model, the terms, and the five commands you use to debug any connection.

By Himanshu Bhatt· 4 min read· September 29, 2026

Networking Basics for DevOps — article cover.
Key Takeaways · TL;DR
  • Every request travels through three boxes — client, network, server; when something breaks, it is in one box or the link between them.
  • DNS turns a name like google.com into an IP address; if DNS fails, nothing works even when the server is healthy.
  • An IP address identifies a machine; a port identifies which app on it (22 SSH, 80 HTTP, 443 HTTPS, 5432 PostgreSQL).
  • TCP is reliable, ordered, and connection-based (HTTP, SSH, databases); UDP is fast and connectionless (DNS, streaming).
  • ping tests reachability with ICMP — it does not prove the port, app, or website works, and many servers block it.
  • Debug in order: dig for DNS, ping for reachability, nc for the port, curl for the app — and stop at the first failure.
☰ On this page(show)(close)
  • 1.The three-box mental model
  • 2.DNS: turning names into IP addresses
  • 3.IP addresses and ports
  • 4.TCP vs UDP: how data is sent
  • 5.What ping really does (ICMP)
  • 6.ping vs dig and nslookup
  • 7.Why cloud servers block ping
  • 8.ICMP vs TCP vs HTTP
  • 9.The DevOps networking toolkit
  • 10.The real debugging order
On this page
  • 1.The three-box mental model
  • 2.DNS: turning names into IP addresses
  • 3.IP addresses and ports
  • 4.TCP vs UDP: how data is sent
  • 5.What ping really does (ICMP)
  • 6.ping vs dig and nslookup
  • 7.Why cloud servers block ping
  • 8.ICMP vs TCP vs HTTP
  • 9.The DevOps networking toolkit
  • 10.The real debugging order
INFO

This is Part 1 of the DevOps series. Before you touch servers, containers, or CI/CD, you need a mental model of how machines talk to each other. This guide covers the core networking terms and the handful of commands you will use every day to debug connections.

The three-box mental model

Almost everything in networking can be explained with three boxes. A request starts at the client, travels across the network, and arrives at the server — and the response travels back the same way.

Every network request travels through three boxes: client, network, and server. When something breaks, the fault is in one box or the connection between them.
Every request travels client → network → server.
●THE THREE BOX MODEL
Client
request
Network
response
Server
  • •A request leaves the client, crosses the network, and reaches the server.
  • •When something breaks, the fault is in one box or the link between them.
WARNING

The debugging rule: when something breaks, the problem is always in one of these three boxes — or in the connection between them. Every command below is just a way to test one box or one link.

DNS: turning names into IP addresses

When you type a URL like google.com, your computer does not actually understand the name. Computers only understand numbers — IP addresses. DNS (the Domain Name System) exists to bridge that gap: it resolves a name to an IP address.

You type google.com; a DNS lookup resolves the name to an IP address such as 93.184.216.34; your app then connects to that IP. If DNS fails, nothing works even when the server is healthy.
DNS resolves a name to an IP before anything can connect.
●HOW DNS RESOLUTION WORKS
google.com
DNS lookup
93.184.216.34
Connect
  • •Computers only understand IP addresses, not names.
  • •If DNS fails, nothing else works even when the server is healthy.

Think of DNS like a phone book: you look someone up by name and get back a number. And it is load-bearing — if DNS breaks, nothing works, even when your server is perfectly healthy, because nothing can find its address.

IP addresses and ports

An IP address identifies a machine on a network; a port identifies which application on that machine you want to talk to. A single machine can run many applications at once, each on its own port.

  • Public IP (e.g. 13.234.56.78) — reachable from the internet.
  • Private IP (e.g. 192.168.1.10) — only reachable inside a private network, such as a cloud VPC (Virtual Private Cloud).
An IP address identifies a machine and a port identifies which application on it. The same IP 192.168.1.10 runs a web app on port 80, a backend API on port 3000, and a database on port 5432.
One IP, many apps — the port decides which one you reach.
●WEB APP ON PORT 80
192.168.1.10:80
HTTP
Web application
●BACKEND API ON PORT 3000
192.168.1.10:3000
service
Backend API
●DATABASE ON PORT 5432
192.168.1.10:5432
PostgreSQL
Database
  • •IP picks the machine; the port picks which app on it.
  • •Common ports: 22 SSH, 80 HTTP, 443 HTTPS, 5432 PostgreSQL.

So the shorthand is simple: the IP address is which computer, and the port is which app on that computer.

TCP vs UDP: how data is sent

Once you know where to connect, the next question is how the data travels. That is set by the transport protocol — and for DevOps the two that matter are TCP and UDP.

AspectTCPUDP
ReliabilityGuaranteed deliveryNo delivery guarantee
OrderingArrives in orderMay arrive out of order
ConnectionConnection-basedConnectionless
SpeedSlightly more overheadFaster, low overhead
Used byHTTP, HTTPS, SSH, databasesDNS, streaming, some internal systems

A useful way to remember the difference: TCP is like a phone call — you connect, you talk, you hang up, and you know the other side heard you. UDP is like shouting a message across a room — fast, but with no confirmation it arrived.

What ping really does (ICMP)

ping is usually the first reachability test people reach for. It sends a special network message called an ICMP Echo Request — essentially asking the server, "are you alive?" If the server is reachable and allows it, it replies with an ICMP Echo Reply, and your terminal prints a round-trip time. But ping checks less than people assume.

ping verifiesping does NOT verify
The IP is reachable over the networkThe application is running
Basic connectivity existsThe website is working
The network path worksThe port is open
The round-trip timeThe server is healthy
WARNING

A server can reply to ping and still serve a broken website. And the reverse is common too: ping myserver.com can fail while curl https://myserver.com works — because many servers deliberately block ICMP. A failed ping does not mean the site is down.

ping vs dig and nslookup

If ping already does a DNS lookup when you give it a name, why do dig and nslookup exist? Because ping only does DNS as a prerequisite to get going. dig and nslookup exist to inspect and debug DNS itself — showing the DNS server, record types, TTLs, and multiple IPs.

Aspectpingdig / nslookup
Main questionCan I reach the IP?Is DNS working correctly?
Main purposeNetwork reachabilityDNS resolution and config
Uses DNS?Yes, minimallyYes, as the main focus
Shows the DNS serverNoYes
Shows record types and TTLNoYes
Affected if ICMP is blockedYesNo

Why cloud servers block ping

ping uses ICMP, a low-level network check. Attackers can use it to find live servers and map infrastructure, so cloud providers often block it for security. Real users never use ICMP anyway — they use HTTP, HTTPS, and TCP connections — so blocking ping does not affect them. That is why ping myserver.com can fail while the application is running perfectly.

ICMP vs TCP vs HTTP

These three protocols sit at different layers and answer different questions. ICMP only asks "can I reach this server at all?" TCP opens reliable connections to applications on ports. HTTP and HTTPS are application-level protocols built on top of TCP — the ones real users actually use.

ThingICMP (ping)TCP / HTTP
PurposeReachabilityReal communication
Uses ports?NoYes
Talks to the app?NoYes
Blocked often?YesRarely
Used by real users?NoYes

The DevOps networking toolkit

Four questions, five commands. Each tool checks one specific thing, from the name all the way to the application.

  • dig / nslookup — is DNS resolving the name to an IP? nslookup also shows the DNS server and response details.
  • ping — is the host reachable over the network? (ICMP)
  • nc (netcat) — is the port open? It opens a TCP connection and reports back.
  • curl — does the application actually respond over HTTP/HTTPS?
# 1. Is DNS resolving?
dig google.com +short
nslookup google.com

# 2. Is the host reachable?
ping google.com

# 3. Is the port open? (nc = netcat; -v verbose, -z no data sent)
nc -vz google.com 443

# 4. Does the app respond? (-I = HEAD request, headers only)
curl -I https://google.com

The real debugging order

Put it together and you get a reliable order: resolve the name, reach the host, open the port, then talk to the app. Work through it top to bottom and stop at the first failure — that is where the problem is.

Debug a connection in order: dig to check DNS is resolving, ping to check the host is reachable, nc to check the port is open, and curl to check the application responds. Stop at the first failure.
dig → ping → nc → curl: stop at the first failure.
●THE DEVOPS DEBUGGING ORDER
dig
then
ping
then
nc
then
curl
  • •dig checks DNS, ping checks reachability, nc checks the port, curl checks the app.
  • •Each step assumes the previous one passed; stop at the first failure.
dig google.com          # DNS resolving?
ping google.com         # host reachable?
nc -vz google.com 443   # port open?
curl https://google.com # app responding?
INFO

That is the networking foundation. With the three-box model and the dig → ping → nc → curl order, you can reason about almost any connection failure. Next in the DevOps series, we build on this to look at how the internet actually works end to end.

Drafted with AI assistance from an author outline and edited by TechToolsHQ.

Share
Series: DevOps

Part 1 — Basic Networking for DevOps: Terms, Tools, and Debugging

Part 1 of 2
First episode in this series.
Next part →Part 2 — How the Internet Actually Works: From Browser to Server

Enjoying the DevOps series?

TechToolsHQ is an independent, reader-supported tech platform. If this article saved you time, solved a tough problem, or helped you learn a new skill, consider supporting our work. Your support helps us keep our in-depth series 100% free and updated for everyone.

100% optional · Reader supported · Independent researchSupport our work

Don't miss the next deep-dive

Weekly breakdowns of the tools students and builders actually use.

No spam·Unsubscribe any time·Privacy-first