<< back to Guides

๐Ÿงญ Must-Know Network Protocol Dependencies

Understanding protocol dependencies is essential for system design, debugging, performance tuning, and secure development.

This guide covers foundational network protocols, how they interact, and what higher-level services depend on them.


๐ŸŒ 1. IP Layer: The Foundation

๐Ÿ”น IPv4 and IPv6

IPv4: 192.168.1.1  
IPv6: fe80::1c2a:9fff:fe44:ab2d

๐Ÿงช 2. Diagnostic and Security Protocols

๐Ÿ”น ICMP / ICMPv6

๐Ÿ” IPsec


๐Ÿ” 3. Transport Layer Protocols

Protocol Type Use Cases
TCP Stream Reliable, ordered delivery (HTTP, SSH)
UDP Datagram Fast, unreliable (DNS, RTP, NTP)
SCTP Stream Telecom signaling, multi-streaming
DCCP Datagram Multimedia over unreliable networks

๐ŸŒ 4. Application Protocols (TCP-based)

These protocols run on top of TCP for reliable, ordered communication.

Protocol Port Description
HTTP 80 Web communication
HTTPS 443 HTTP over TLS
SSH 22 Secure remote shell access
SMTP 25/587 Email sending
POP3 110 Email retrieval
IMAP 143 Email sync
RDP 3389 Remote desktop
LDAP 389 Directory services
BGP 179 Routing between ISPs

โšก 5. Application Protocols (UDP-based)

Protocol Port Use Case
DNS 53 Domain resolution
DHCP 67/68 IP assignment
SIP 5060 VoIP signaling
RTP 5004 Media streaming
NTP 123 Time synchronization
TFTP 69 Lightweight file transfer

โš ๏ธ Some of these protocols fall back to TCP when reliability is needed (e.g., DNS over TCP for large responses).


๐Ÿ” 6. Encryption Layer: TLS/SSL

๐Ÿ”น TLS (formerly SSL)

// HTTPS = HTTP over TLS
https://example.com

๐Ÿ”น LDAP vs LDAPS


โšก 7. Modern Protocols

๐Ÿ”น QUIC (Quick UDP Internet Connections)

HTTP/3 = HTTP over QUIC (UDP + TLS)

๐Ÿ”น MCP (Model Context Protocol)


๐Ÿง  How Protocols Layer Together

Here's how these protocols build on each other:

Application  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ HTTP, SSH, DNS, SMTP, etc.
Transport    โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ TCP, UDP, QUIC
Network      โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ IPv4, IPv6
Link         โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ Ethernet, Wi-Fi, PPP

QUIC and MCP are exceptions:


๐Ÿงฉ Protocol Selection Cheat Sheet

Requirement Recommended Protocol(s)
Web API HTTPS (HTTP/1.1 or HTTP/2)
Low-latency streaming RTP (UDP), QUIC
File transfer FTP, SFTP, TFTP
Directory service LDAP / LDAPS
Remote shell SSH
Messaging / pub-sub MQTT, NATS, WebSockets
VPN IPsec, WireGuard, OpenVPN
LLM Integration MCP (experimental)

๐Ÿ“š Further Learning


<< back to Guides