Tagged articles
5 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Jan 8, 2025 · Fundamentals

Why TCP Uses a Three‑Way Handshake (and How the Four‑Way Close Works)

This article explains why TCP requires a three‑way handshake instead of two, details the six TCP flag bits, clarifies sequence and acknowledgment numbers, walks through each handshake step with example numbers, and describes the four‑way termination process and related timing considerations.

Four-way terminationSequence NumberThree-way handshake
0 likes · 8 min read
Why TCP Uses a Three‑Way Handshake (and How the Four‑Way Close Works)
High Availability Architecture
High Availability Architecture
Oct 22, 2019 · Backend Development

Ensuring In-Order Delivery of IM Messages: Causes and Solutions

This article analyzes why instant‑messaging (IM) messages can arrive out of order due to time discrepancies, network behavior, and multithreading, and proposes a comprehensive design using global sequence numbers, channel‑aware routing, client‑side caching, and ACK‑based flow control to guarantee ordered delivery.

BackendDistributed SystemsIM
0 likes · 9 min read
Ensuring In-Order Delivery of IM Messages: Causes and Solutions
Programmer DD
Programmer DD
Jan 21, 2019 · Fundamentals

Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive

This article explains the principles behind TCP's three‑way handshake and four‑way teardown, covering connection establishment, data transfer, termination, header fields, state diagrams, sequence‑number wraparound, SYN‑flood attacks, mitigation techniques, and a practical Redis packet‑capture analysis, all illustrated with diagrams and code snippets.

Four‑Way TeardownSYN FloodSequence Number
0 likes · 23 min read
Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive