Tagged articles
48 articles
Page 1 of 1
IT Services Circle
IT Services Circle
May 8, 2026 · Fundamentals

Understanding TCP: Three-Way Handshake, Four-Way Teardown, TIME‑WAIT, and HTTP/2

This article explains the OSI seven‑layer model, TCP header fields, the three‑way handshake and four‑way termination processes, TIME‑WAIT timing, connection capacity calculations, packet fragmentation and reassembly, flow control, HTTP version differences, HTTPS security flow, and common analysis tools like Wireshark.

Four-way terminationHTTP/2OSI model
0 likes · 15 min read
Understanding TCP: Three-Way Handshake, Four-Way Teardown, TIME‑WAIT, and HTTP/2
Linux Tech Enthusiast
Linux Tech Enthusiast
Feb 24, 2026 · Fundamentals

Understanding the TCP Communication Protocol: Features, Handshakes, and Optimizations

This article explains TCP as a connection‑oriented, reliable byte‑stream transport protocol, detailing its header fields, state machine, three‑way handshake, four‑way termination, TIME_WAIT handling, Linux inspection commands, optimization techniques, and a comparison with UDP, all illustrated with concrete examples and diagrams.

LinuxSocketTCP
0 likes · 27 min read
Understanding the TCP Communication Protocol: Features, Handshakes, and Optimizations
Linux Tech Enthusiast
Linux Tech Enthusiast
Jan 18, 2026 · Fundamentals

A Visual Guide to TCP, UDP, Flow Control, and Congestion Control

This article explains TCP and UDP fundamentals, detailing TCP header fields, flow‑control and congestion‑control mechanisms, the three‑way handshake and four‑way termination, UDP’s connectionless nature, and a side‑by‑side comparison of the two protocols.

Flow ControlNetwork ProtocolsNetworking Fundamentals
0 likes · 11 min read
A Visual Guide to TCP, UDP, Flow Control, and Congestion Control
IT Services Circle
IT Services Circle
Dec 25, 2025 · Fundamentals

Why Does TCP Need a Three‑Way Handshake? Unpacking the Connection Ritual

This article explains the three‑step TCP handshake, detailing how SYN, SYN‑ACK, and ACK packets establish a reliable connection, why two‑step handshakes are unsafe, why a four‑step process is unnecessary, and how the protocol ensures ordered, secure data transmission.

Connection establishmentNetwork ProtocolsReliability
0 likes · 9 min read
Why Does TCP Need a Three‑Way Handshake? Unpacking the Connection Ritual
NiuNiu MaTe
NiuNiu MaTe
Dec 23, 2025 · Fundamentals

Why TCP Needs a Three‑Way Handshake: The Secret Behind Reliable Connections

TCP’s three‑way handshake is a carefully designed three‑step “social ritual” that establishes a reliable connection by exchanging SYN, SYN‑ACK, and ACK packets, each carrying sequence numbers and flags to confirm readiness, prevent “ghost” connections, and ensure ordered, secure data transmission.

Connection establishmentReliabilitySequence numbers
0 likes · 10 min read
Why TCP Needs a Three‑Way Handshake: The Secret Behind Reliable Connections
Deepin Linux
Deepin Linux
Apr 21, 2025 · Fundamentals

TCP Protocol: Overview, Mechanisms, and Practical Usage

This article provides a comprehensive English guide to the Transmission Control Protocol (TCP), covering its connection‑oriented design, reliability features, packet structure, three‑way handshake, data transfer process, flow and congestion control, four‑step termination, and example C++ socket code for establishing, sending, receiving, and closing TCP connections.

C++ SocketFlow ControlTCP
0 likes · 42 min read
TCP Protocol: Overview, Mechanisms, and Practical Usage
MaGe Linux Operations
MaGe Linux Operations
Apr 18, 2025 · Fundamentals

Why TCP Needs Three Handshakes and Four Teardowns: A Beginner’s Guide

This guide explains TCP's three-way handshake and four-way termination, covering protocol characteristics, key terminology, step‑by‑step packet flows, reasons behind each phase, TIME_WAIT details, abnormal scenarios, and common interview questions for networking fundamentals.

Four‑Way TeardownTCPThree-way handshake
0 likes · 8 min read
Why TCP Needs Three Handshakes and Four Teardowns: A Beginner’s Guide
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)
Linux Kernel Journey
Linux Kernel Journey
Oct 13, 2024 · Fundamentals

Unveiling the TCP Connection Process: Inside the Linux Socket System Calls

This article dissects the Linux kernel's TCP connection workflow, explaining how the three‑way handshake prevents stale SYN packets, and walks through the socket(), bind(), listen() and connect() system calls with detailed code analysis of the underlying kernel functions and data structures.

Linux kernelNetwork programmingTCP
0 likes · 42 min read
Unveiling the TCP Connection Process: Inside the Linux Socket System Calls
JavaEdge
JavaEdge
Sep 16, 2024 · Fundamentals

Why TCP Needs Three Handshakes and Four Teardowns: A Deep Dive

This article explains the fundamental differences between UDP and TCP, details the TCP header fields, walks through the three‑way handshake and its necessity, describes the four‑way termination process, and illustrates the complete TCP state machine with diagrams and practical examples.

Four-way terminationTCPThree-way handshake
0 likes · 14 min read
Why TCP Needs Three Handshakes and Four Teardowns: A Deep Dive
Java Tech Enthusiast
Java Tech Enthusiast
May 4, 2024 · Fundamentals

Understanding HTTP and TCP: From URL to Browser Rendering

The article walks through every step from typing a URL to final page rendering, detailing URL parsing, DNS lookup, TCP three‑way handshake and termination, HTTP request/response structure, congestion and flow control mechanisms, and the browser’s DOM, CSS, layout and painting processes.

BrowserDNSFour-way Handshake
0 likes · 13 min read
Understanding HTTP and TCP: From URL to Browser Rendering
MaGe Linux Operations
MaGe Linux Operations
Feb 25, 2024 · Backend Development

Mastering TCP Socket APIs: Server & Client Functions Explained

This article explains the TCP socket programming interface, detailing server and client API functions, their purposes, the three‑way handshake, state transitions, data transmission, segmentation, sticky‑packet issues, and the four‑way termination process, providing code examples and diagrams for clear understanding.

Four-way HandshakeNetwork programmingSocket API
0 likes · 14 min read
Mastering TCP Socket APIs: Server & Client Functions Explained
Deepin Linux
Deepin Linux
Aug 16, 2023 · Fundamentals

Fundamentals of TCP/IP: Protocol Suite, Standardization Process, and Layered Model

This article provides a comprehensive overview of TCP/IP, covering its definition as a protocol suite, the open and practical standardization process driven by IETF, the role of RFCs and STD numbers, the multi‑stage standardization workflow, the layered architecture compared with the OSI model, and detailed explanations of packet headers, data flow, and connection management such as the three‑way handshake and four‑way termination.

Four-way terminationNetwork ProtocolsPacket Transmission
0 likes · 31 min read
Fundamentals of TCP/IP: Protocol Suite, Standardization Process, and Layered Model
AI Cyberspace
AI Cyberspace
Apr 10, 2023 · Fundamentals

Mastering TCP: Header Structure, Handshake, Flow & Congestion Control Explained

This comprehensive guide delves into TCP’s core mechanisms—including header fields, segmentation and reassembly, the three‑way handshake and four‑step termination, sliding‑window flow and congestion control, retransmission strategies, and connection design patterns—providing a solid foundation for network engineers and developers.

Flow ControlSliding WindowTCP
0 likes · 26 min read
Mastering TCP: Header Structure, Handshake, Flow & Congestion Control Explained
Liangxu Linux
Liangxu Linux
Feb 22, 2023 · Fundamentals

Why Does a TCP Client Send RST When SYN‑ACK Ack Number Mismatches?

The article explains that during TCP's three‑way handshake, if a client receives a SYN‑ACK with an unexpected acknowledgment number, it must send an RST to abort the stale connection, because silently discarding the packet would cause long retransmission delays and prevent the new connection from being established.

Connection ResetRSTSYN-ACK
0 likes · 5 min read
Why Does a TCP Client Send RST When SYN‑ACK Ack Number Mismatches?
Liangxu Linux
Liangxu Linux
Sep 4, 2022 · Fundamentals

What Happens When TCP Handshake or Teardown Packets Are Lost?

This article explains how TCP connections behave when any of the three-way handshake or four-way termination packets are lost, detailing the kernel‑controlled retransmission mechanisms, timeout intervals, relevant sysctl parameters, and the exact sequence of events for each loss scenario.

Four-way terminationLinuxPacket Loss
0 likes · 13 min read
What Happens When TCP Handshake or Teardown Packets Are Lost?
Top Architect
Top Architect
Jul 22, 2022 · Fundamentals

Differences and Principles of TCP and UDP Protocols

This article provides a comprehensive overview of TCP and UDP, explaining their roles in the transport layer, key differences such as connection orientation and reliability, the three‑way handshake and four‑way termination processes of TCP, and the typical use cases and limitations of each protocol.

Four-way terminationNetworkingTCP
0 likes · 9 min read
Differences and Principles of TCP and UDP Protocols
Tencent Cloud Developer
Tencent Cloud Developer
Jul 20, 2022 · Fundamentals

Deep Dive into the TCP Three‑Way Handshake from the Linux Kernel Perspective

The article explains how the Linux kernel implements the TCP three‑way handshake, detailing server listen queue allocation, client connect port selection and SYN transmission, SYN‑ACK processing, state transitions, request‑socket management, full‑connection queue handling, and the final accept call, plus tuning tips.

Linux kernelNetwork StackTCP
0 likes · 19 min read
Deep Dive into the TCP Three‑Way Handshake from the Linux Kernel Perspective
IT Architects Alliance
IT Architects Alliance
Jun 12, 2022 · Fundamentals

TCP Three-Way Handshake and Four-Way Termination Explained

This article explains how TCP ensures reliable connections through the three-way handshake process—including SYN, SYN‑ACK, and ACK exchanges—and describes the four-step termination sequence with FIN and ACK flags, while also clarifying why three handshakes are necessary instead of two.

Four-way terminationReliabilityTCP
0 likes · 7 min read
TCP Three-Way Handshake and Four-Way Termination Explained
Open Source Linux
Open Source Linux
Apr 7, 2022 · Fundamentals

Why Does TCP Require a Three‑Way Handshake and a Four‑Way Teardown?

This article explains how TCP guarantees reliable transmission through a three‑way handshake for connection establishment and a four‑step termination process, detailing each packet’s flags, sequence numbers, and the reasons why these multi‑step procedures are essential for robust network communication.

Four-way terminationTCPThree-way handshake
0 likes · 7 min read
Why Does TCP Require a Three‑Way Handshake and a Four‑Way Teardown?
Liangxu Linux
Liangxu Linux
Oct 8, 2021 · Backend Development

What Really Happens Inside the Linux Kernel During a TCP Three‑Way Handshake?

This article dives deep into the Linux kernel implementation of the TCP three‑way handshake, explaining the roles of listen, connect, SYN/ACK processing, queue management, timers, and accept, while providing concrete code snippets and diagrams to help backend engineers master the underlying mechanics.

Backend DevelopmentLinux kernelNetworking
0 likes · 18 min read
What Really Happens Inside the Linux Kernel During a TCP Three‑Way Handshake?
Wukong Talks Architecture
Wukong Talks Architecture
Sep 30, 2021 · Fundamentals

Computer Network Fundamentals: OSI/TCP‑IP Layers, TCP/UDP Differences, Handshakes, and Related Mechanisms

This article provides a comprehensive overview of computer networking fundamentals, covering OSI and TCP/IP layer models, the functions of each layer, detailed comparisons between TCP and UDP, the three‑way handshake, four‑way termination, SYN‑flood attacks, congestion control, and practical mitigation techniques.

Four-way terminationNetwork ProtocolsSYN Flood
0 likes · 21 min read
Computer Network Fundamentals: OSI/TCP‑IP Layers, TCP/UDP Differences, Handshakes, and Related Mechanisms
Refining Core Development Skills
Refining Core Development Skills
Jul 22, 2021 · Backend Development

Deep Dive into the TCP Three‑Way Handshake: Kernel Queues, Syncookies and Code Walkthrough

This article explains the complete kernel‑level implementation of the TCP three‑way handshake, covering server listen queue allocation, client connect state handling, SYN/SYN‑ACK processing, syncookie protection, timer management, socket creation, and the accept path, with detailed code examples.

BackendKernelLinux
0 likes · 16 min read
Deep Dive into the TCP Three‑Way Handshake: Kernel Queues, Syncookies and Code Walkthrough
ITPUB
ITPUB
Apr 21, 2021 · Fundamentals

Understanding TCP: From Three‑Way Handshake to Four‑Way Teardown and State Transitions

This article explains TCP's connection‑oriented behavior, detailing the three‑way handshake for establishing a connection, the four‑step termination process, various state transitions, half‑open/half‑close scenarios, simultaneous open/close, initial sequence numbers, and the role of RST and TIME_WAIT.

Connection ManagementFour-way terminationTCP
0 likes · 19 min read
Understanding TCP: From Three‑Way Handshake to Four‑Way Teardown and State Transitions
MaGe Linux Operations
MaGe Linux Operations
Mar 22, 2021 · Fundamentals

Decoding HTTP Requests with Wireshark: Handshake, TCP Options, and Keep‑Alive Explained

This tutorial walks through capturing and analyzing an HTTP request using Wireshark, detailing the environment setup, three‑way TCP handshake, key TCP header fields such as window scaling and SACK, the four‑step termination (including merged ACK/FIN), and the role of HTTP Keep‑Alive across different protocol versions.

Keep-AliveTCPThree-way handshake
0 likes · 12 min read
Decoding HTTP Requests with Wireshark: Handshake, TCP Options, and Keep‑Alive Explained
Efficient Ops
Efficient Ops
Nov 11, 2020 · Fundamentals

Why Does TCP Need a Three‑Way Handshake? A Simple Analogy Explained

The article uses a humorous long‑distance video‑chat scenario to illustrate why TCP requires a three‑way handshake for connection establishment and a four‑step termination, explaining each packet exchange, flag meanings, and related concepts such as half‑open connections and SYN‑flood attacks.

Four-way terminationSYN attackTCP
0 likes · 11 min read
Why Does TCP Need a Three‑Way Handshake? A Simple Analogy Explained
Liangxu Linux
Liangxu Linux
Aug 24, 2020 · Fundamentals

Mastering TCP: How the Three‑Way Handshake and Four‑Way Teardown Work

This article explains TCP's core mechanisms, detailing the three‑way handshake and four‑way termination processes, the meaning of ACK, SYN, and FIN flags, and the eleven connection states with their roles in establishing and gracefully closing a reliable network connection.

Connection StatesFour-way terminationNetworking Fundamentals
0 likes · 8 min read
Mastering TCP: How the Three‑Way Handshake and Four‑Way Teardown Work
Efficient Ops
Efficient Ops
Mar 1, 2020 · Fundamentals

Why Does TCP Need a Three‑Way Handshake? A Real‑World Analogy Explained

Using a quirky long-distance video-chat scenario, the article illustrates how TCP’s three-way handshake and four-way termination work, explains the purpose of each packet exchange, details TCP header fields, and even covers SYN-flood attacks, turning everyday communication glitches into networking fundamentals.

Four-way terminationSYN FloodTCP
0 likes · 10 min read
Why Does TCP Need a Three‑Way Handshake? A Real‑World Analogy Explained
Liangxu Linux
Liangxu Linux
Mar 1, 2020 · Fundamentals

Why TCP Falters in Weak Networks: Congestion Control, Handshake & Retransmission

The article explains why TCP performance degrades in high‑loss, high‑latency environments, analyzing the impact of congestion‑control algorithms, the three‑way handshake overhead, and the retransmission strategy, and then outlines modern alternatives and optimizations to mitigate these issues.

Three-way handshakecongestion controlnetwork performance
0 likes · 14 min read
Why TCP Falters in Weak Networks: Congestion Control, Handshake & Retransmission
Java Captain
Java Captain
Apr 14, 2019 · Fundamentals

Understanding TCP Three-Way Handshake and Four-Way Termination for Interviews

This article explains the TCP three‑way handshake and four‑way termination processes, their state transitions, key interview points such as ISN, half‑connection queues, data transmission during handshakes, and the importance of the TIME_WAIT state, providing detailed answers suitable for technical interviews.

Four-way terminationInterview PreparationNetworking
0 likes · 12 min read
Understanding TCP Three-Way Handshake and Four-Way Termination for Interviews
JD Tech Talk
JD Tech Talk
Mar 6, 2019 · Fundamentals

Understanding TCP Three‑Way Handshake and Four‑Way Termination

This article explains the essential conditions for TCP communication, details the three‑step handshake and four‑step termination processes with packet‑capture illustrations, and discusses why these sequences ensure reliable connections between a client and a server.

Four-way terminationNetwork ProtocolsReliability
0 likes · 8 min read
Understanding TCP Three‑Way Handshake and Four‑Way Termination
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 TeardownLinuxRedis
0 likes · 23 min read
Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown? A Deep Dive
MaGe Linux Operations
MaGe Linux Operations
Apr 15, 2018 · Fundamentals

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

This article explains why TCP requires a three‑way handshake to establish connections and a four‑step termination process, using a relatable video‑call scenario and detailed protocol diagrams to illustrate the underlying mechanisms and practical rules for confirming audio transmission.

Four-way HandshakeReliabilityTCP
0 likes · 10 min read
Why Does TCP Need a Three‑Way Handshake and a Four‑Way Teardown?
Efficient Ops
Efficient Ops
Mar 8, 2018 · Fundamentals

Why Does TCP Need a Three‑Way Handshake? A Simple Analogy Explained

The article uses a quirky long‑distance video‑chat scenario to illustrate TCP’s three‑way handshake and four‑way termination, explaining the protocol’s packet format, flag meanings, SYN‑attack risks, and step‑by‑step connection establishment and teardown.

Four-way terminationNetwork ProtocolsSYN attack
0 likes · 11 min read
Why Does TCP Need a Three‑Way Handshake? A Simple Analogy Explained