Computer Networking Fundamentals for Interviews
OSI Model (7 Layers)
- Physical - Raw bit transmission over wire/fiber.
- Data Link - Frames, MAC addresses, Ethernet, ARP.
- Network - IP routing, packet forwarding (IP, ICMP).
- Transport - End-to-end communication (TCP, UDP).
- Session - Manages sessions between applications.
- Presentation - Data translation, encryption, compression (SSL/TLS).
- Application - User-facing protocols (HTTP, FTP, SMTP, DNS).
HTTP Methods
- GET: Retrieve a resource (idempotent, no body).
- POST: Submit an entity to create a resource (non-idempotent).
- PUT: Replace a resource entirely (idempotent).
- PATCH: Partial modification of a resource.
- DELETE: Remove a resource.
DNS Resolution Flow
- Browser checks local cache → OS cache → Router cache.
- Recursive query to ISP's DNS resolver.
- Root nameserver → TLD nameserver (.com, .org) → Authoritative nameserver.
- IP address returned and cached.