TCP/IP fundamentals for administrators
IP addresses, ports, and TCP vs. UDP — the vocabulary every other networking lesson builds on. · 10 min
An IP address identifies a device on a network — IPv4 addresses look like `192.168.1.10` (four numbers 0-255), IPv6 addresses look like `2001:db8::1` (hexadecimal, far larger address space). A port number (0-65535) identifies a specific service or connection on that device — a single IP address can run many services simultaneously, each listening on its own port (SSH conventionally on 22, HTTP on 80, HTTPS on 443). An IP address plus a port together (`192.168.1.10:443`) uniquely identifies a specific network endpoint.
TCP (Transmission Control Protocol) is connection-oriented and reliable: it establishes a connection first, guarantees delivery and correct ordering of data (retransmitting anything lost), and is what almost all everyday services use — web traffic, SSH, database connections. UDP (User Datagram Protocol) is connectionless and makes no delivery guarantees: it sends packets without establishing a connection or confirming receipt, which sounds worse but is exactly the right tradeoff for latency-sensitive use cases (DNS queries, video streaming, VoIP) where a dropped and retransmitted-late packet is worse than a dropped one.
A gateway (or default gateway) is the router a device sends traffic through to reach anything outside its local network — without a correctly configured gateway, a device can talk to other devices on its own local subnet but nothing beyond it. DNS translates human-readable names into IP addresses, covered in depth in its own lesson — for now, recognize that "the website is down" and "DNS can't resolve the website's name" are different problems requiring different diagnosis.
| Command | Purpose | Example |
|---|---|---|
| ip addr | Show network interfaces and their assigned IP addresses | — |
| ip route | Show the routing table, including the default gateway | — |
- • IP address — identifies a device on the network
- • Port — identifies a specific service on that device
- • TCP — reliable, ordered, connection-based (most services)
- • UDP — fast, connectionless, no delivery guarantee (DNS, streaming)
- • Gateway — the router used to reach anything outside the local network
Takeaway: TCP trades speed for reliability; UDP trades reliability for speed — knowing which a given service uses tells you a lot about how it will fail under packet loss.