Understand how data moves: models, addressing, name resolution, transport reliability, routing, diagnostics & performance patterns.
Each layer adds headers; packets become frames then bits; reversed on receipt.
OSI (7-layers) conceptual. TCP/IP (4-layers) practical. Focus: Link, Internet, Transport, Application.
Data→Seg (TCP)→Packet (IP)→Frame (Ethernet). Headers supply addressing & control (seq, ack, ports).
Exceed MTU → fragmentation (IPv4) or drop (IPv6). Path MTU discovery avoids fragmentation.
Latency = time/unit; throughput = volume/time. BDP influences optimal window size for TCP.
tcpdump -ni any port 443 -c 20
# Layers sample: Ethernet / IP / TCP / TLS / HTTP
wireshark & # rich protocol dissection
Subnetting partitions address space for scale & isolation.
/24 255.255.255.0
/25 255.255.255.128
/26 255.255.255.192
/27 255.255.255.224
/28 255.255.255.240
Name to IP translation + application semantics & secure transport.
dig +trace example.com
curl -v https://site --http2
openssl s_client -connect site:443 -servername site | openssl x509 -noout -dates
Frames switched by MAC; packets routed by IP; NAT rewrites headers.
Destination Gateway Iface
10.0.0.0/24 0.0.0.0 eth0
0.0.0.0/0 10.0.0.1 eth0
Simulations only (no real socket operations).
High signal commands grouped by objective.
ping -c4 host
mtr -rw host
traceroute hostdig A example.com
nslookup example.com
host -t MX example.comss -tulpen
netstat -plant
lsof -i :443nmap -sC -sV host
openssl s_client -connect host:443
curl -I https://host --http2curl -v https://api/service
curl -X POST -d '{"a":1}' https://api
httpie GET https://api/servicetcpdump -ni any port 80 -c 10
wireshark &Checklist + conceptual Q&A.
Sequence numbers, acknowledgements, retransmission (ARQ), flow control (window), congestion control algorithms ensure ordered, loss-recovered delivery.
Latency is delay per unit; bandwidth capacity per unit time. High bandwidth + high latency still underutilized without proper window sizing.
Low overhead, tolerant to loss: streaming, gaming, real-time telemetry where timeliness > reliability.
Ephemeral Diffie-Hellman keys mean long-term key compromise doesn't decrypt past sessions.