TCP/IP Fundamentals
IP addressing: every device on a TCP/IP network needs an IP address, subnet mask, and default gateway. IPv4: 32-bit, written as four octets (192.168.1.100). IPv6: 128-bit, written in hexadecimal groups (2001:db8::1). Subnet mask: defines network vs host portion — /24 (255.255.255.0) means first 24 bits are network, last 8 are hosts. Default gateway: the router's IP — all traffic for other networks goes here.
Private IP ranges (RFC 1918): 10.0.0.0–10.255.255.255, 172.16.0.0–172.31.255.255, 192.168.0.0–192.168.255.255. Not routable on the internet — used on internal networks. APIPA: 169.254.x.x — automatically assigned when DHCP fails. Seeing a 169.254.x.x address is a red flag — check DHCP connectivity.
DHCP: automatically assigns IP address, subnet mask, default gateway, and DNS server to devices. Without DHCP, every device needs manual (static) IP configuration. DHCP lease: temporary assignment, renewed periodically. Command: 'ipconfig /release' then 'ipconfig /renew' (Windows) to get a new DHCP lease.
DNS: translates domain names (www.google.com) to IP addresses. Configured in TCP/IP settings as primary and secondary DNS server IPs. Common DNS servers: Google (8.8.8.8, 8.8.4.4), Cloudflare (1.1.1.1), ISP-provided. DNS test: 'nslookup google.com' — if it returns an IP, DNS works. If it fails but pinging by IP works, DNS is the problem.
Key Protocols and Ports
Protocols A+ technicians must know: HTTP (80 TCP) — web browsing. HTTPS (443 TCP) — secure web. FTP (20/21 TCP) — file transfer. SSH (22 TCP) — secure remote access. Telnet (23 TCP) — insecure remote access. SMTP (25 TCP) — email sending. POP3 (110 TCP) — email retrieval (downloads). IMAP (143 TCP) — email retrieval (sync). DNS (53 UDP/TCP). DHCP (67/68 UDP). RDP (3389 TCP) — Windows Remote Desktop.
TCP vs UDP: TCP is connection-oriented — establishes a connection, ensures delivery, retransmits lost packets. Used for: web browsing, email, file transfers (anything where data integrity matters). UDP is connectionless — send and forget, no retransmission. Used for: DNS, DHCP, streaming, gaming, VoIP (speed matters more than perfection).
Loopback address: 127.0.0.1 (IPv4), ::1 (IPv6) — tests the local TCP/IP stack without going to the network. 'ping 127.0.0.1' — if this fails, TCP/IP stack is corrupted. If this succeeds but pinging the gateway fails, the problem is physical or in the NIC driver.