skills:network
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| skills:network [2026/06/17 13:24] – phong2018 | skills:network [2026/06/17 13:29] (current) – phong2018 | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| **Application-layer protocols** | **Application-layer protocols** | ||
| - | |||
| - | ====== Application-Layer Protocols ====== | ||
| These protocols operate at the **Application Layer (Layer 7)** and define how applications exchange data. | These protocols operate at the **Application Layer (Layer 7)** and define how applications exchange data. | ||
| Line 123: | Line 121: | ||
| **Purpose: | **Purpose: | ||
| - | ==== Transport-layer protocols.==== | + | ^ Feature ^ TCP ^ UDP ^ |
| - | + | | Full Name | Transmission Control Protocol | User Datagram Protocol | | |
| - | ==== TCP ==== | + | | Connection Type | Connection-oriented |
| - | + | | Reliability | Reliable delivery | |
| - | * Connection-oriented | + | | Message Ordering | Preserves packet order | No ordering guarantee | |
| - | * Reliable delivery | + | | Error Recovery | Automatic retransmission | No retransmission | |
| - | * Ordered messages | + | | Flow Control | Yes (sliding window) | No | |
| - | * Retransmission support | + | | Congestion Control | Yes | No | |
| - | + | | Overhead | Higher | Lower | | |
| - | Used by: | + | | Latency | Higher | Lower | |
| - | + | | Speed | Slower due to reliability mechanisms | Faster due to minimal overhead | | |
| - | * HTTP/1.1 | + | | Header Size | 20–60 bytes | 8 bytes | |
| - | * HTTP/2 | + | | Communication Style | Continuous connection between client and server | Independent datagrams | |
| - | * WebSocket | + | | Typical Use Cases | Web applications, |
| - | * Redis | + | |
| - | * RabbitMQ | + | |
| - | * Kafka | + | |
| - | + | ||
| - | ==== UDP ==== | + | |
| - | + | ||
| - | * Connectionless | + | |
| - | * Faster | + | |
| - | * No delivery guarantee | + | |
| - | Used by: | + | ^ Common Protocols and Applications ^ Transport Layer ^ |
| + | | HTTP/1.1 | TCP | | ||
| + | | HTTP/2 | TCP | | ||
| + | | WebSocket | TCP | | ||
| + | | Redis (RESP) | TCP | | ||
| + | | RabbitMQ (AMQP) | TCP | | ||
| + | | Apache Kafka Protocol | TCP | | ||
| + | | SMTP | TCP | | ||
| + | | FTP | TCP | | ||
| + | | SSH | TCP | | ||
| + | | DNS | UDP (primarily), | ||
| + | | VoIP | UDP | | ||
| + | | Online Games | UDP | | ||
| + | | WebRTC | UDP | | ||
| + | | QUIC | UDP | | ||
| + | | HTTP/3 | QUIC over UDP | | ||
| - | * DNS | + | ^ Summary ^ TCP ^ UDP ^ |
| - | * VoIP | + | | Main Goal | Reliability and correctness | Speed and low latency | |
| - | * Online games | + | | Best For | Data that must not be lost | Data that must arrive quickly | |
| - | * WebRTC | + | | Example | File download, API requests, email | Video call, live stream, multiplayer game | |
| - | * QUIC (HTTP/3) | + | | Real-world Analogy | Registered mail with delivery confirmation | Radio broadcast | |
| ===== Layer 3: Network ===== | ===== Layer 3: Network ===== | ||
skills/network.1781702693.txt.gz · Last modified: by phong2018
