Kritim Yantra
Mar 31, 2025
If you're diving into system design, understanding networking basics is crucial. Whether you're building a small app or a large-scale service, knowing how computers communicate will help you design better systems.
In this blog, we’ll break down networking concepts in simple terms—no jargon, just clear explanations.
Networking is how computers (or servers) talk to each other over the internet or a local network.
Think of networking like sending a letter:
The internet is just millions of computers sending and receiving "letters" (data packets).
192.168.1.1
(IPv4) or 2001:0db8:85a3::8a2e:0370:7334
(IPv6).google.com
) into IP addresses. facebook.com
, DNS finds its IP (31.13.65.36
) so your browser can load it.Feature | TCP (Reliable) | UDP (Fast) |
---|---|---|
Connection | Establishes a connection first | No connection needed |
Speed | Slower (checks for errors) | Faster (no error checks) |
Use Case | Web browsing, emails | Video calls, gaming |
80
→ HTTP (Web) 443
→ HTTPS (Secure Web) 22
→ SSH (Remote Login)When you visit a website (e.g., youtube.com
), here’s what happens:
142.250.190.46
). This happens in milliseconds!
Protocol | Purpose | Example |
---|---|---|
HTTP/HTTPS | Fetch web pages | Loading amazon.com |
FTP | File transfers | Uploading files to a server |
SMTP | Sending emails | Gmail sending a message |
WebSocket | Real-time communication | Chat apps like WhatsApp |
gRPC | Fast API communication | Microservices talking |
When designing systems, you must consider:
Example:
Problem | Solution |
---|---|
Server Overload | Use load balancers |
Slow Website | Use CDN + Caching |
Security Risks | Use HTTPS, Firewalls |
Network Failures | Retry mechanisms (e.g., auto-reconnect) |
✅ IP Address = Unique computer identifier.
✅ DNS = Converts domain names to IPs.
✅ TCP (Reliable) vs. UDP (Fast) = Choose based on needs.
✅ Load Balancing & CDNs = Improve speed & reliability.
✅ Caching = Reduces database load.
Networking is the backbone of system design. The better you understand it, the more scalable and efficient your systems will be.
No comments yet. Be the first to comment!
Please log in to post a comment:
Continue with Google