Tagged articles

Connection termination

6 articles · Page 1 of 1
Cognitive Technology Team
Cognitive Technology Team
Feb 17, 2024 · Fundamentals

Understanding TCP Connection Termination: Four-Way Handshake, Half‑Close, Shutdown, and TIME_WAIT

This article explains how TCP connections are gracefully closed using the four‑way handshake, describes half‑close and half‑open states, compares the close and shutdown system calls, details the TIME_WAIT state and its impact, and offers practical techniques to reduce or avoid TIME_WAIT accumulation.

Connection terminationShutdownTCP
0 likes · 12 min read
Understanding TCP Connection Termination: Four-Way Handshake, Half‑Close, Shutdown, and TIME_WAIT
Architect's Guide
Architect's Guide
Mar 1, 2023 · Fundamentals

Understanding the OSI Model, TCP/IP Model, and TCP/UDP Protocols with Handshake and Teardown

This article explains the OSI seven‑layer model and the simplified four‑layer TCP/IP model, describes the TCP/IP protocol suite, details how data is encapsulated and transmitted, compares TCP and UDP, and walks through TCP’s three‑way handshake, four‑way termination, and related security considerations.

Connection terminationHandshakeTCP/IP
0 likes · 18 min read
Understanding the OSI Model, TCP/IP Model, and TCP/UDP Protocols with Handshake and Teardown
NiuNiu MaTe
NiuNiu MaTe
Jan 8, 2022 · Fundamentals

Why TCP Can Close Connections in 2, 3, or 4 Handshakes – Hidden Mechanics Explained

This article explores TCP’s connection termination process, detailing the classic four‑way handshake, scenarios that reduce it to three or two handshakes, the concept of self‑connections, simultaneous opens, and practical implications for developers, including code examples and troubleshooting tips.

Connection terminationHandshakeSocket
0 likes · 23 min read
Why TCP Can Close Connections in 2, 3, or 4 Handshakes – Hidden Mechanics Explained
Qunar Tech Salon
Qunar Tech Salon
Sep 21, 2016 · Fundamentals

Understanding the TCP State Machine: Handshake, Four‑Way Termination, and Practical Experiments

This article explains the TCP three‑way handshake, four‑way termination, and related state transitions, illustrates uncommon scenarios such as simultaneous open and close, discusses half‑open connections, fd‑leak effects, and presents Linux‑based experiments with client.go and server.go code samples.

Connection terminationHandshakeLinux
0 likes · 15 min read
Understanding the TCP State Machine: Handshake, Four‑Way Termination, and Practical Experiments