Tagged articles
three-way handshake
56 articles · Page 1 of 1
This article provides a comprehensive guide to TCP three-way handshake, four-way teardown, and troubleshooting common connection failures using Linux tools like ss, tcpdump, and curl, emphasizing evidence-based diagnosis over theoretical concepts.
Connection RefusedLinux networkingMTU
0 likes · 27 min read

This article walks through the complete TCP connection lifecycle from SYN to FIN, explaining three-way handshake, four-way handshake, sliding window, flow control, congestion control algorithms (slow start, congestion avoidance, fast retransmit/recovery), the TCP state machine with 11 states, and practical troubleshooting for CLOSE_WAIT, SYN_RECV, FIN_WAIT_2, and TIME_WAIT issues using ss/tcpdump/Wireshark.
Flow ControlSliding WindowTCP
0 likes · 25 min read

This article explains that listen() merely marks a socket as passive and initializes kernel queues; without it, servers reject incoming SYN packets with RST, yet client-side connect() and TCP simultaneous open can establish connections without ever calling listen().
TCPconnectinterview question
0 likes · 7 min read

This illustrated guide explains TCP and UDP protocols, covering TCP header structure, flow control via sliding windows, congestion control algorithms (slow start, congestion avoidance, fast retransmit/recovery), three-way handshake and four-way handshake mechanics with sequence numbers, SYN flood attacks, and a detailed TCP vs UDP comparison across connection model, reliability, and header overhead.
Flow ControlSYN FloodTCP
0 likes · 15 min read

This article uses 28 diagrams to comprehensively explain TCP, covering network layering, TCP header structure, byte-stream orientation, reliable transmission mechanisms (sliding window, ARQ, acknowledgments), congestion control algorithms (slow start, congestion avoidance, fast retransmit/recovery), three-way handshake and four-way termination, UDP comparison, and practical issues like packet fragmentation, sticky packets, and SYN flood attacks.
NetworkingSYN FloodSliding Window
0 likes · 27 min read

This article walks through TCP fundamentals, explains each step of the three‑way handshake and four‑way termination, examines kernel parameters, common connection‑state problems such as TIME_WAIT and CLOSE_WAIT, and provides practical commands and scripts for diagnosing and tuning TCP on Linux.
LinuxTCPconnection states
0 likes · 30 min read

The article explains TCP’s three‑way handshake and four‑way termination in depth, describes each state and flag, shows how kernel parameters affect behavior, and provides practical commands and troubleshooting steps for common issues such as TIME_WAIT overload, CLOSE_WAIT accumulation, SYN floods, and connection resets.
Linux networkingTCPfour-way termination
0 likes · 26 min read

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.
HTTP/2OSI modelTCP
0 likes · 15 min read

This article explains TCP fundamentals, detailing the three‑way handshake and four‑step connection termination, the purpose of each flag and state transition, and why three handshakes and four teardowns are required, including the role of the TIME_WAIT state.
TCPTIME_WAITfour-step termination
0 likes · 5 min read

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

This article provides a comprehensive, illustrated guide to TCP and UDP, covering the TCP header fields, flow‑control and congestion‑control mechanisms, the three‑way handshake and four‑way termination process, as well as a side‑by‑side comparison of the two protocols.
Flow ControlSYN FloodTCP
0 likes · 11 min read

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 ControlTCPUDP
0 likes · 11 min read

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 establishmentTCPnetwork protocols
0 likes · 9 min read

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 establishmentSequence numbersTCP
0 likes · 10 min read

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

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 TeardownInterview questionsTCP
0 likes · 8 min read

The article explains the TCP three‑way handshake, why the third ACK is essential, how servers react when it is missing, the role of timeout retransmission and RTO calculation, the impact of SYN‑Flood attacks, and how these concepts inspire backend design patterns.
SYN FloodTCPTimeout Retransmission
0 likes · 8 min read

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.
Sequence Numberfour-way terminationthree-way handshake
0 likes · 8 min read

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 kernelTCPnetwork programming
0 likes · 42 min read

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.
TCPfour-way terminationnetwork protocol
0 likes · 14 min read

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.
DNSHTTPNetworking
0 likes · 13 min read

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.
Socket APITCPfour-way handshake
0 likes · 14 min read

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.
Packet TransmissionRFCfour-way termination
0 likes · 31 min read

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

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.
RSTSYN-ACKTCP
0 likes · 5 min read

This article explains how TCP and UDP operate at the transport layer, compares their reliability and speed, details the TCP three‑way handshake and four‑way termination processes, and outlines how each protocol handles data segmentation, ordering, and loss.
Data TransmissionTCPUDP
0 likes · 9 min read

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.
LinuxTCPfour-way termination
0 likes · 13 min read

This article provides a concise 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 characteristics and use cases of UDP.
TCPUDPfour-way termination
0 likes · 8 min read

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.
NetworkingTCPUDP
0 likes · 9 min read

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 kernelTCPaccept
0 likes · 19 min read

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.
TCPfour-way terminationnetwork protocol
0 likes · 7 min read

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.
TCPfour-way terminationnetwork fundamentals
0 likes · 7 min read

This article explains how TCP establishes reliable connections with a three‑way handshake, why three steps are necessary, and how it gracefully closes connections using a four‑way termination, detailing each packet flag and state transition.
TCPfour-way terminationnetwork fundamentals
0 likes · 8 min read

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.
Linux kernelNetworkingSockets
0 likes · 18 min read

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.
SYN FloodTCPUDP
0 likes · 21 min read

This article explains the fundamentals of the Transmission Control Protocol, its reliable byte‑stream characteristics, the detailed three‑way handshake process, and why three steps are required to prevent duplicate or stale connections in network communication.
Connection establishmentTCPnetwork protocol
0 likes · 5 min read

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.
BackendLinuxNetworking
0 likes · 16 min read


ITPUBApr 21, 2021 · Fundamentals
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 ManagementTCPfour-way termination
0 likes · 19 min read

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-AliveTCPWireshark
0 likes · 12 min read

This article explains the purpose of TCP's three‑way handshake and four‑way termination, walks through the connection lifecycle, highlights the impact of excessive TIME_WAIT sockets, and shows how Linux sysctl parameters can be tuned to improve network performance.
LinuxTCPTIME_WAIT
0 likes · 7 min read

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.
SYN attackTCPfour-way termination
0 likes · 11 min read

This article explains the TCP protocol’s header structure, the purpose of each field, how the three‑way handshake establishes a reliable connection, why three steps are needed, and the four‑step process used to gracefully close a TCP session, including verification with Wireshark.
Four‑Way TeardownTCPnetwork protocol
0 likes · 13 min read

This article explains the TCP three‑way handshake, the four‑step connection termination process, and the eleven TCP state transitions, detailing the role of SYN, ACK, and FIN flags and illustrating each step with clear diagrams and concise descriptions.
TCPTCP statesfour-way termination
0 likes · 7 min read

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.
TCPconnection statesfour-way termination
0 likes · 8 min read

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.
SYN FloodTCPfour-way termination
0 likes · 10 min read

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.
congestion controlnetwork performancethree-way handshake
0 likes · 14 min read

The article uses a humorous long‑distance‑call scenario to illustrate why TCP requires a three‑way handshake for reliable connection establishment and a four‑step termination, then details the packet format, flag meanings, handshake steps, and related security considerations.
SYN attackTCPfour-way termination
0 likes · 11 min read

This article walks through the fundamentals of TCP, explaining its place in the OSI model, the three‑way handshake, window updates, data exchange, and the four‑way termination, while providing complete Python server and client code and Wireshark packet captures to illustrate each step.
TCPWiresharkfour-way termination
0 likes · 12 min read

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.
Interview PreparationNetworkingTCP
0 likes · 12 min read

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.
TCPWiresharkfour-way termination
0 likes · 8 min read

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

This article explains the TCP header layout, details each field and control flag, and walks through the three‑way handshake for connection establishment and the four‑step termination process, including why these specific numbers of steps are required and the purpose of the 2 MSL wait.
TCPfour-way terminationnetwork fundamentals
0 likes · 12 min read

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.
TCPfour-way handshakenetwork protocol
0 likes · 10 min read

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.
SYN attackTCPfour-way termination
0 likes · 11 min read

This article breaks down the TCP three‑way handshake and four‑way termination processes, explaining each packet exchange, the role of sequence numbers, the TIME_WAIT state, and why these steps are essential for reliable full‑duplex communication.
TCPTIME_WAITfour-way termination
0 likes · 8 min read

This article explains the TCP three-way handshake and four-way termination processes, detailing each packet exchange, state transition, and the reasons why these mechanisms are essential for reliable network communication.
Connection terminationTCPnetwork fundamentals
0 likes · 6 min read
