SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free🗺️ Learning Roadmaps

NetworkingCheatsheets

Quick reference — commands, syntax, and patterns

✍️
Written by senior engineers. Reviewed for technical accuracy.· Updated 2025 · SynfraCore Networking Team
Expert Content

Networking for DevOps — Quick Reference

OSI model — the 7 layers, DevOps-relevant

LayerNameProtocolsDevOps relevance

|---|---|---|---|

7ApplicationHTTP, DNS, SSHAll web traffic, APIs, `kubectl`
4TransportTCP, UDPL4 load balancing, port-based routing
3NetworkIP, ICMP, BGPRouting, VPC/subnet design
2Data LinkEthernet, MAC, ARPSwitch-level, overlay networks
1PhysicalCopper, Fiber, WiFiData center cabling

Mnemonic: "All People Seem To Need Data Processing" (Layer 7 → 1).

TCP vs. UDP, quick comparison

PropertyTCPUDP

|---|---|---|

Connection3-way handshake, connection-orientedConnectionless
ReliabilityGuaranteed delivery, retransmitsBest-effort, may drop
OrderingGuaranteed in-orderNo ordering guarantee
Typical useHTTP/S, SSH, databasesDNS, video streaming, VoIP

Common ports worth knowing cold

PortService

|---|---|

22SSH
80 / 443HTTP / HTTPS
53DNS (UDP + TCP)
5432PostgreSQL
3306MySQL
6379Redis
9090Prometheus
3000Grafana
6443Kubernetes API server

DNS record types

RecordPurpose

|---|---|

AHostname → IPv4
AAAAHostname → IPv6
CNAMEAlias → canonical name (not usable at apex/root domain)
TXTText data — SPF, DKIM, domain verification
SRVService discovery (_service._proto.name)

DNS troubleshooting commands

bash
dig example.com                 # basic lookup
dig example.com +short          # IP only
dig @8.8.8.8 example.com        # query a specific resolver
dig example.com +trace          # full resolution path
dig -x 192.0.2.1                # reverse lookup (PTR)

Kubernetes DNS quick reference

<service>.<namespace>.svc.cluster.local
bash
kubectl exec -it mypod -- nslookup myservice.production
kubectl exec -it mypod -- cat /etc/resolv.conf

CIDR quick reference

CIDRAddressesTypical use

|---|---|---|

/321Single host
/304 (2 usable)Point-to-point link
/24256 (254 usable)Typical subnet
/1665,536Entire VPC range
/816MLargest private range

Private ranges (RFC 1918): 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.

L4 vs. L7 load balancing

L4L7

|---|---|---|

Operates onIP + portHTTP content (path, headers, cookies)
Can doFast, protocol-agnostic routingPath-based routing, SSL termination, session stickiness
Common toolsNetwork LB (NLB), HAProxy (TCP mode)NGINX, Application LB (ALB), HAProxy (HTTP mode)

TLS certificate inspection

bash
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -dates -subject

Kubernetes Network Policy — deny-all baseline

yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata: { name: deny-all-ingress, namespace: production }
spec:
  podSelector: {}
  policyTypes: [Ingress]

Network Policies are whitelist-based — once any policy selects a pod, all unmatched ingress traffic to it is blocked by default; explicit allow rules are then layered on top for exactly the traffic that should be permitted.

Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
Up Next
📝
NetworkingNotes
Key takeaways, tips, and important points to remember
Also Worth Exploring
← Back to all Networking modules
CertificationNotes