Tagged articles
600 articles
Page 2 of 6
Liangxu Linux
Liangxu Linux
Dec 1, 2024 · Fundamentals

Mastering TCP: Understanding All Connection States and Their Transitions

This article provides a comprehensive guide to TCP connection states, Linux commands for monitoring them, the three‑way handshake, four‑way termination, flag meanings, common pitfalls like SYN floods, and practical keep‑alive and sysctl tuning techniques for reliable network troubleshooting.

KeepaliveLinuxNetworking
0 likes · 30 min read
Mastering TCP: Understanding All Connection States and Their Transitions
Liangxu Linux
Liangxu Linux
Oct 31, 2024 · Information Security

Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages

This article explains the purpose of TCP RST packets, how they appear during connection establishment, data transfer, firewall enforcement, and teardown, and provides practical techniques for distinguishing legitimate resets from spoofed or policy‑driven resets to improve network troubleshooting and security.

RSTTCPinformation security
0 likes · 10 min read
Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages
Open Source Linux
Open Source Linux
Oct 29, 2024 · Fundamentals

Why Does TCP Keep Connections in TIME_WAIT? Uncover the Hidden Risks

This article explains the TCP state machine, details the four-way handshake, analyzes why the TIME_WAIT state lasts for two MSL intervals, and illustrates two critical problems caused by delayed packets and missing ACKs, providing examples and code snippets for deeper understanding.

Connection ManagementFour-way HandshakeMSL
0 likes · 11 min read
Why Does TCP Keep Connections in TIME_WAIT? Uncover the Hidden Risks
Wukong Talks Architecture
Wukong Talks Architecture
Oct 25, 2024 · Backend Development

Debugging a TCP Communication Bug That Stops Device Production at 70% Due to Length Field Misalignment

The article details a mysterious production stall at 70% caused by a TCP packet length field misalignment when the configuration name is "rabbit‑TD", explains the step‑by‑step investigation using server logs and packet captures, identifies the root cause of the merged D4/D5 packets, and proposes two concrete fixes to correct the length handling.

BackendTCPdebugging
0 likes · 10 min read
Debugging a TCP Communication Bug That Stops Device Production at 70% Due to Length Field Misalignment
Open Source Linux
Open Source Linux
Oct 22, 2024 · Fundamentals

Mastering TCP: Understanding States, Handshakes, and Common Pitfalls

This article explains TCP connection states, the three-way handshake and four-way termination processes, provides essential Linux commands for monitoring connections, and offers practical tips for diagnosing network issues, handling SYN floods, TIME_WAIT problems, and implementing keepalive mechanisms to maintain reliable communication.

Connection StatesKeepaliveLinux
0 likes · 29 min read
Mastering TCP: Understanding States, Handshakes, and Common Pitfalls
Open Source Linux
Open Source Linux
Oct 18, 2024 · Information Security

Why Do TCP Connections Send RST Packets? Causes and Analysis Explained

This article explains what TCP RST packets are, why they appear during connection establishment, data transfer, and termination, and how to diagnose server‑side, client‑side, and firewall‑induced resets by examining sequence diagrams, common error conditions, and TTL differences.

RSTTCPpacket analysis
0 likes · 9 min read
Why Do TCP Connections Send RST Packets? Causes and Analysis Explained
Java Tech Enthusiast
Java Tech Enthusiast
Oct 17, 2024 · Fundamentals

Technical Interview Insights: Networking, TCP, HTTP, MySQL Locks, and C++ Level‑Order Traversal

The article explains why network protocols use layered design, details TCP's reliability and congestion‑control mechanisms, outlines HTTP status‑code categories, reviews MySQL lock scopes from global to row‑level, provides a C++ breadth‑first binary‑tree traversal example, and describes a three‑step weighing puzzle to find an odd ball.

AlgorithmsC++HTTP
0 likes · 15 min read
Technical Interview Insights: Networking, TCP, HTTP, MySQL Locks, and C++ Level‑Order Traversal
Deepin Linux
Deepin Linux
Oct 14, 2024 · Fundamentals

TCP Reliable Transmission Mechanisms and Implementation Details

This article explains how TCP ensures reliable data transfer through connection management, sequence and acknowledgment mechanisms, retransmission strategies, flow control, and congestion control, and includes C++ example code illustrating a simple client‑server file transfer implementation.

C++ exampleHandshakeTCP
0 likes · 39 min read
TCP Reliable Transmission Mechanisms and Implementation Details
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
Liangxu Linux
Liangxu Linux
Oct 10, 2024 · Fundamentals

Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages

This article explains what TCP RST packets are, why they appear during connection establishment, data transfer, and termination, and how to analyze their causes—including server refusals, client errors, firewall policies, retransmission limits, idle timeouts, and bypass blocking—using sequence diagrams and practical diagnostics.

RSTTCPprotocol
0 likes · 11 min read
Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages
Open Source Linux
Open Source Linux
Sep 26, 2024 · Information Security

Why Does a TCP Connection Send RST Packets? Deep Dive into Causes and Analysis

TCP RST packets, used to abruptly terminate or reject connections, appear at various stages—handshake, data transfer, and teardown—and can stem from server port closures, connection limits, malformed SYNs, firewall policies, timeouts, or middlebox interventions, with each scenario identifiable through detailed packet‑level analysis.

RSTTCPfirewall
0 likes · 9 min read
Why Does a TCP Connection Send RST Packets? Deep Dive into Causes and Analysis
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
Liangxu Linux
Liangxu Linux
Sep 7, 2024 · Operations

How to Use iPerf for Accurate Server-to-Server Bandwidth Testing

This guide explains how to prepare source and target servers, install iPerf, run it in server and client modes on Windows (or Linux), and use specific commands to measure TCP bandwidth, UDP jitter, packet loss, and network latency, including required firewall and security‑group settings.

LinuxTCPUDP
0 likes · 4 min read
How to Use iPerf for Accurate Server-to-Server Bandwidth Testing
IT Services Circle
IT Services Circle
Aug 30, 2024 · Backend Development

Technical Interview Q&A: C++ vs Go, Thread Communication, Goroutine, TCP Handshake, SQL, and More

This article compiles a series of technical interview questions and answers covering C++ and Go language differences, thread communication methods on Linux and Windows, stack versus heap memory, orphan processes, read‑write locks, Go goroutine concurrency, TCP three‑way handshake, and a sample SQL query for gender‑based grouping.

C++GoOperating Systems
0 likes · 12 min read
Technical Interview Q&A: C++ vs Go, Thread Communication, Goroutine, TCP Handshake, SQL, and More
Tencent Cloud Developer
Tencent Cloud Developer
Aug 15, 2024 · Fundamentals

Understanding the End-to-End Process of a Web Request: IP, DNS, CDN, TCP, Protocol Design, CGI/FastCGI, Server Models, and Database Evolution

The article walks through every stage of a web request—from IPv4 addressing, NAT, and DNS resolution through CDN proximity and TCP stream handling, to HTTP framing, CGI versus FastCGI processing, stateless versus stateful server models, and finally database scaling techniques such as sharding and Redis caching.

CDNCGIDNS
0 likes · 21 min read
Understanding the End-to-End Process of a Web Request: IP, DNS, CDN, TCP, Protocol Design, CGI/FastCGI, Server Models, and Database Evolution
Liangxu Linux
Liangxu Linux
Aug 14, 2024 · Operations

How to Use iPerf for Accurate Network Bandwidth and Latency Testing

This guide walks you through preparing the environment, installing iPerf on Windows or Linux servers, running it in server and client modes, testing TCP and UDP performance, measuring latency with ping, and checking all available options to ensure reliable network bandwidth and latency measurements.

LatencyLinuxTCP
0 likes · 5 min read
How to Use iPerf for Accurate Network Bandwidth and Latency Testing
Wukong Talks Architecture
Wukong Talks Architecture
Jul 25, 2024 · Fundamentals

Debugging APP Load Failures: MTU/MSS Analysis with Wireshark

This article walks through a real‑world case where an app’s content loading fails due to MTU/MSS mismatches, explains how packet captures reveal retransmissions and missing ACKs, demonstrates ping‑based MTU probing, and shows how oversized request parameters in a new version caused the issue.

MSSMTUTCP
0 likes · 5 min read
Debugging APP Load Failures: MTU/MSS Analysis with Wireshark
Liangxu Linux
Liangxu Linux
Jul 8, 2024 · Operations

7 Practical Linux Performance Optimization Tips Every Engineer Should Know

This article compiles seven hands‑on Linux performance‑optimization practices, covering key factors such as CPU, memory, disk I/O, network, swap usage, and TCP tuning, and provides concrete commands and step‑by‑step troubleshooting methods for system administrators and DevOps engineers.

LinuxSwapTCP
0 likes · 19 min read
7 Practical Linux Performance Optimization Tips Every Engineer Should Know
Cognitive Technology Team
Cognitive Technology Team
Jul 7, 2024 · Backend Development

Understanding TCP Packet Framing Issues and Netty Decoder Solutions

This article explains the TCP packet fragmentation and aggregation problems, introduces Netty's various decoder mechanisms such as FixedLengthFrameDecoder, LineBasedFrameDecoder, DelimiterBasedFrameDecoder, LengthFieldPrepender, and LengthFieldBasedFrameDecoder, and provides detailed configuration examples and code snippets for implementing robust TCP protocols.

DecoderFramingNetty
0 likes · 7 min read
Understanding TCP Packet Framing Issues and Netty Decoder Solutions
Radish, Keep Going!
Radish, Keep Going!
Jun 14, 2024 · Fundamentals

Why QUIC Is Replacing TCP: Faster, Safer Internet Transport

This article explains how QUIC, a UDP‑based transport protocol developed by Google, overcomes TCP's limitations such as handshake latency and head‑of‑line blocking, offering lower latency, multiplexing, built‑in TLS 1.3 security, and why it powers the emerging HTTP/3 standard.

HTTP/3Network ProtocolsQUIC
0 likes · 12 min read
Why QUIC Is Replacing TCP: Faster, Safer Internet Transport
MaGe Linux Operations
MaGe Linux Operations
Jun 5, 2024 · Fundamentals

Understanding the OSI Model: A Layer‑by‑Layer Guide

This article provides a comprehensive overview of the OSI model, detailing each of its seven layers—from the physical and data link layers up to the application layer—explaining their functions, protocols, and how they interact to enable network communication.

OSI modelTCPUDP
0 likes · 18 min read
Understanding the OSI Model: A Layer‑by‑Layer Guide
Liangxu Linux
Liangxu Linux
Jun 2, 2024 · Fundamentals

Mastering TCP: Handshakes, Flow Control, Congestion Control & More

This comprehensive guide covers TCP fundamentals—including differences from UDP, the three‑way and four‑way handshakes, half‑open queues and SYN flood attacks, header fields, Fast Open, timestamps, RTO calculation, flow and congestion control, Nagle algorithm, delayed ACKs, and keep‑alive mechanisms—providing clear explanations and practical examples for engineers.

Fast OpenFlow ControlHandshake
0 likes · 27 min read
Mastering TCP: Handshakes, Flow Control, Congestion Control & More
Liangxu Linux
Liangxu Linux
May 12, 2024 · Operations

7 Practical Linux Performance Optimization Tips Every Engineer Should Know

This guide explains the key factors that affect Linux system performance, provides step‑by‑step troubleshooting methods for CPU, memory, disk I/O and network issues, shows how to identify top resource‑hungry processes, clarifies memory reporting differences, discusses swap usage scenarios, and offers concrete TCP tuning parameters for production environments.

LinuxTCPmonitoring
0 likes · 20 min read
7 Practical Linux Performance Optimization Tips Every Engineer Should Know
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 11, 2024 · Backend Development

Netty Packet Framing: Handling TCP Sticky and Unsticky Packets

This article explains TCP packet fragmentation and aggregation (sticky/unsticky packets), demonstrates the phenomena with examples, and provides detailed solutions using Netty's built‑in decoders such as FixedLengthFrameDecoder, LineBasedFrameDecoder, DelimiterBasedFrameDecoder, and LengthFieldBasedFrameDecoder, including code samples and configuration tips.

DecoderNettyTCP
0 likes · 26 min read
Netty Packet Framing: Handling TCP Sticky and Unsticky Packets
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
Liangxu Linux
Liangxu Linux
May 2, 2024 · Fundamentals

Why Use RPC When HTTP Exists? Exploring TCP, HTTP, and RPC Differences

This article explains the fundamentals of TCP, why raw TCP communication faces issues like message boundary ambiguity, how HTTP and RPC are built on TCP as application‑layer protocols, and compares their use cases, performance, and evolution to help developers choose the right protocol for their systems.

HTTPMicroservicesRPC
0 likes · 14 min read
Why Use RPC When HTTP Exists? Exploring TCP, HTTP, and RPC Differences
Top Architect
Top Architect
Apr 26, 2024 · Backend Development

Netty TCP Client Demo: Architecture Overview, Code Walkthrough, and Testing

This article presents a complete Netty TCP client demo for an IoT project, explaining the project background, architecture, modules, business flow, and detailed Java code—including a local queue, thread pool, client initialization, handler logic, and test controllers—along with deployment notes and source links.

NettySpring BootTCP
0 likes · 22 min read
Netty TCP Client Demo: Architecture Overview, Code Walkthrough, and Testing
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 18, 2024 · Fundamentals

Master Network & OS Fundamentals for Interviews: Handshakes, Protocols, and More

This comprehensive guide reviews essential network and operating system concepts for technical interviews, covering TCP three‑way handshake, four‑way termination, OSI/TCP‑IP models, common protocols, socket communication, process vs thread, IPC mechanisms, memory management, page‑replacement algorithms, and HTTP/HTTPS differences.

Operating SystemProtocolsTCP
0 likes · 24 min read
Master Network & OS Fundamentals for Interviews: Handshakes, Protocols, and More
IT Services Circle
IT Services Circle
Apr 15, 2024 · Fundamentals

What Happens When You Press Enter in the Browser URL Bar: From URL Parsing to TCP Handshake and HTTP Response

This article explains step‑by‑step what occurs when a user types a URL and presses Enter, covering URL parsing, DNS resolution, TCP three‑way handshake and four‑way termination, HTTP request/response formation, and the browser’s rendering process, providing interview‑ready insights into web networking fundamentals.

BrowserDNSHTTP
0 likes · 15 min read
What Happens When You Press Enter in the Browser URL Bar: From URL Parsing to TCP Handshake and HTTP Response
macrozheng
macrozheng
Apr 11, 2024 · Fundamentals

Understanding TCP vs UDP: Differences, Port Numbers, and Practical Uses

This article explains the core characteristics of TCP and UDP, compares their reliability and connection models, clarifies the concept and range of port numbers, and demonstrates that both protocols can share the same port without conflict, illustrated with real‑world examples such as DNS.

Port NumbersTCPUDP
0 likes · 7 min read
Understanding TCP vs UDP: Differences, Port Numbers, and Practical Uses
Su San Talks Tech
Su San Talks Tech
Apr 11, 2024 · Fundamentals

Why RPC Still Matters When HTTP Exists: A Deep Dive into TCP, HTTP, and RPC

This article explores the fundamentals of TCP communication, explains why raw TCP lacks message boundaries, and compares HTTP and RPC protocols—covering their histories, use cases, service discovery, connection handling, serialization, and performance trade‑offs—to answer why both coexist in modern software architectures.

HTTPNetwork ProtocolsRPC
0 likes · 15 min read
Why RPC Still Matters When HTTP Exists: A Deep Dive into TCP, HTTP, and RPC
Open Source Linux
Open Source Linux
Apr 11, 2024 · Operations

7 Practical Linux Performance Optimization Techniques Every Engineer Should Know

This article consolidates community‑sourced Linux performance optimization practices, covering key factors that affect system speed, rapid troubleshooting steps for CPU, memory, disk and network issues, load‑analysis methods, top‑resource identification commands, memory‑stat nuances, swap usage scenarios, and detailed TCP tuning recommendations.

LinuxTCPoptimization
0 likes · 20 min read
7 Practical Linux Performance Optimization Techniques Every Engineer Should Know
Deepin Linux
Deepin Linux
Apr 2, 2024 · Fundamentals

Understanding TCP: Fundamentals, Handshake, Data Transfer, and Optimization

This article provides a comprehensive overview of the Transmission Control Protocol (TCP), covering its connection‑oriented design, reliability mechanisms, three‑way handshake, four‑step termination, packet structure, flow and congestion control, and practical C++ socket examples for establishing, sending, receiving, and closing connections.

NetworkingReliabilityTCP
0 likes · 35 min read
Understanding TCP: Fundamentals, Handshake, Data Transfer, and Optimization
Liangxu Linux
Liangxu Linux
Mar 28, 2024 · Fundamentals

Why Do Web Services Need Ports? Understanding the Hidden Layer Behind URLs

Ports act as an essential indirection layer that maps network requests to specific processes, enabling protocols like HTTP and HTTPS to function, while default ports simplify user interaction; this article explains common ports, default values, the role of IPC, naming services, and how ports embody inversion of control principles.

IPCNetworkingSoftware Architecture
0 likes · 18 min read
Why Do Web Services Need Ports? Understanding the Hidden Layer Behind URLs
Tencent Architect
Tencent Architect
Mar 27, 2024 · Operations

Why Does TCP Send RST? Deep Dive into Causes and Debugging Techniques

This article explains the fundamentals of TCP RST packets, distinguishes active and passive resets, outlines common kernel scenarios that generate them, and provides practical debugging methods using tcpdump, bpftrace, and source‑code analysis to resolve real‑world network incidents.

BPFLinuxRST
0 likes · 20 min read
Why Does TCP Send RST? Deep Dive into Causes and Debugging Techniques
MaGe Linux Operations
MaGe Linux Operations
Mar 9, 2024 · Backend Development

Mastering Go Socket Programming: From TCP/UDP to HTTP Clients

This article explains Go’s socket programming model, covering the classic five‑step workflow, the versatile net.Dial function, and practical code examples for ICMP, TCP, and HTTP client operations, helping developers build networked applications efficiently.

Code ExamplesGoHTTP
0 likes · 10 min read
Mastering Go Socket Programming: From TCP/UDP to HTTP Clients
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
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
Java Captain
Java Captain
Feb 16, 2024 · Fundamentals

Understanding TCP: Concepts, Operation, and Key Features

TCP (Transmission Control Protocol) is a connection-oriented, reliable, byte-stream transport layer protocol that ensures ordered, error-free data delivery through mechanisms such as three-way handshake, four-way termination, flow control, and congestion control, making it essential for web browsing, email, and online gaming.

Connection ManagementNetworkingReliability
0 likes · 4 min read
Understanding TCP: Concepts, Operation, and Key Features
Liangxu Linux
Liangxu Linux
Feb 7, 2024 · Fundamentals

Why TCP Congestion Control Adds Unexpected RTTs and How to Diagnose It

The article analyzes how TCP's three‑way handshake, slow‑start, and initial congestion window can introduce extra round‑trip times, causing service latency to far exceed network RTT, and shows practical packet captures, Linux defaults, and mitigation techniques.

LinuxNetwork LatencyRTT
0 likes · 9 min read
Why TCP Congestion Control Adds Unexpected RTTs and How to Diagnose It
Java Captain
Java Captain
Feb 1, 2024 · Fundamentals

Understanding TCP: Reliable Data Transmission in the Internet

TCP (Transmission Control Protocol) is a core Internet protocol that ensures reliable data transmission through mechanisms such as three‑way handshake, flow and congestion control, segmentation and reassembly, and error detection, while also facing challenges like latency, packet loss, and emerging real‑time application demands.

Internet ProtocolNetworkingReliability
0 likes · 4 min read
Understanding TCP: Reliable Data Transmission in the Internet
Java Tech Enthusiast
Java Tech Enthusiast
Jan 28, 2024 · Operations

Maximum TCP Connections per Server Process and per Server

A single server‑side process can theoretically handle up to 2^48 (≈2.8×10^14) TCP connections, but Linux file‑descriptor limits and memory consumption (about 3.44 KB per connection) restrict real‑world capacity to a few million connections per 8 GB machine, while a whole server’s total is bounded by the same resource constraints despite the much larger theoretical maximum.

LinuxNetworkingServer
0 likes · 8 min read
Maximum TCP Connections per Server Process and per Server
MaGe Linux Operations
MaGe Linux Operations
Jan 16, 2024 · Fundamentals

Unlocking TCP, UDP, IP & More: A Deep Dive into Network Protocols

This article provides a comprehensive overview of core network protocol structures—including TCP, UDP, IPv4/IPv6, IPSec, Ethernet, 802.1Q, 802.11, SSL, RTP, and OpenFlow—detailing their header fields, functions, and security mechanisms to help readers grasp essential networking concepts.

ProtocolsTCPUDP
0 likes · 15 min read
Unlocking TCP, UDP, IP & More: A Deep Dive into Network Protocols
IT Services Circle
IT Services Circle
Dec 29, 2023 · Backend Development

Bank Software Development Interview Guide: Java, MySQL, Thread Pools, HTTP, TCP/UDP, and Database Indexes

This article compiles common technical interview questions for bank software positions, covering Java fundamentals, MySQL storage engines and indexes, thread‑pool parameters, HTTP GET/POST differences, TCP vs UDP characteristics, session and cookie handling, Redis data types, and C++ memory management, providing concise explanations and examples for each topic.

C++DatabaseIndexHTTP
0 likes · 32 min read
Bank Software Development Interview Guide: Java, MySQL, Thread Pools, HTTP, TCP/UDP, and Database Indexes
IT Services Circle
IT Services Circle
Dec 21, 2023 · Backend Development

Comprehensive Backend Interview Guide: MySQL, Redis, Java Collections, Concurrency, and TCP

This article compiles essential backend interview questions and answers covering MySQL storage engines and indexes, Redis persistence modes, Java collection frameworks and HashMap internals, thread‑safe ConcurrentHashMap implementations, as well as HTTP message structure and TCP reliability mechanisms, providing a thorough review for candidates preparing for backend positions.

TCPconcurrencyinterview
0 likes · 26 min read
Comprehensive Backend Interview Guide: MySQL, Redis, Java Collections, Concurrency, and TCP
Liangxu Linux
Liangxu Linux
Nov 2, 2023 · Fundamentals

Why Is the Linux Kernel TCP/IP Stack Hard to Scale Compared to User‑Space Stacks?

The article examines the scalability limitations of the Linux kernel TCP/IP stack, comparing its packet‑processing and connection‑setup performance with user‑space stacks such as mTCP and F‑Stack, explains how hash‑table locking and spin‑lock contention cause poor CPS scaling, and argues why user‑space implementations often achieve higher throughput despite their own trade‑offs.

Network StackScalabilityTCP
0 likes · 16 min read
Why Is the Linux Kernel TCP/IP Stack Hard to Scale Compared to User‑Space Stacks?
Deepin Linux
Deepin Linux
Oct 13, 2023 · Fundamentals

Understanding Sockets: Concepts, TCP/UDP, System Calls, and Sample C Code

This article explains the fundamentals of sockets as a network communication abstraction, covering process communication, TCP/UDP protocols, socket descriptors, key system calls, the TCP three‑way handshake and four‑way termination, Linux kernel basics, and provides complete C examples for a server and client.

LinuxSocketSystem Calls
0 likes · 45 min read
Understanding Sockets: Concepts, TCP/UDP, System Calls, and Sample C Code
Top Architect
Top Architect
Oct 11, 2023 · Backend Development

Netty TCP Client Demo with Spring Boot: Architecture, Implementation, and Testing

This article presents a complete Netty TCP client demo built with Spring Boot, detailing the project architecture, module layout, business flow, key code implementations—including a local BlockingQueue, message processing with Redis locks, client initialization, handler logic, and testing endpoints—providing a practical reference for backend developers.

Message QueueNettySpring Boot
0 likes · 21 min read
Netty TCP Client Demo with Spring Boot: Architecture, Implementation, and Testing
Architect
Architect
Oct 9, 2023 · Backend Development

Netty TCP Long‑Connection Demo with Spring Boot, Redis, and Message‑Queue Simulation

This article presents a complete Netty TCP long‑connection demo built with Spring Boot 2.2.0 and Redis, explains the project architecture, module layout, business flow using a local BlockingQueue instead of RocketMQ, and provides detailed source code for the queue holder, processing logic, client implementation, handler, and test controllers.

BackendNettySpring Boot
0 likes · 17 min read
Netty TCP Long‑Connection Demo with Spring Boot, Redis, and Message‑Queue Simulation
JavaEdge
JavaEdge
Oct 6, 2023 · Fundamentals

Why Is TCP Designed as a Stream Protocol Instead of a Packet Protocol?

This article examines the technical reasons behind TCP's design as a stream-oriented transport protocol, contrasting it with a packet-oriented approach, and explores the implications for lower and upper layers, packet sizing, application-layer framing, and alternative solutions such as UDP, QUIC, and custom protocols.

NetworkingTCPpacket protocol
0 likes · 8 min read
Why Is TCP Designed as a Stream Protocol Instead of a Packet Protocol?
MaGe Linux Operations
MaGe Linux Operations
Oct 1, 2023 · Fundamentals

Understanding TCP vs UDP: Key Differences, Handshakes, and When to Use Each

TCP and UDP are core transport-layer protocols of the Internet; this article explains their basic concepts, characteristics, reliability mechanisms, flow and congestion control, three-way handshake and four-way termination for TCP, and highlights the strengths and weaknesses of each protocol for various applications.

NetworkingReliabilityTCP
0 likes · 8 min read
Understanding TCP vs UDP: Key Differences, Handshakes, and When to Use Each
Open Source Linux
Open Source Linux
Sep 26, 2023 · Fundamentals

Understanding the TCP/IP Model: Layers, Protocols, and Data Flow

This article explains the TCP/IP protocol suite, detailing its four layers—link, network, transport, and application—along with key protocols such as IP, TCP, UDP, ARP, ICMP, DNS, and the mechanisms of packet encapsulation, routing, flow and congestion control, and connection management.

Flow ControlNetwork ProtocolsTCP
0 likes · 23 min read
Understanding the TCP/IP Model: Layers, Protocols, and Data Flow
Wukong Talks Architecture
Wukong Talks Architecture
Aug 31, 2023 · Fundamentals

Understanding DNS: Principles, Resolution Process, and Performance Optimization

This article explains the fundamentals of the Domain Name System (DNS), covering domain and name‑server concepts, the hierarchical resolution process, recursive and iterative queries, performance‑enhancing techniques such as UDP usage, caching, and switching to public DNS servers, and details DNS record types and packet structure.

DNSDomain Name SystemNetworking
0 likes · 14 min read
Understanding DNS: Principles, Resolution Process, and Performance Optimization
Open Source Linux
Open Source Linux
Aug 14, 2023 · Fundamentals

Why Choose TCP Long Connections Over Short Ones? A Deep Dive

This article explains TCP connection basics, the three‑way handshake and four‑way termination, compares short and long connections, discusses keep‑alive mechanisms, and outlines when to use each approach in network and HTTP communication.

HTTPKeep-AliveTCP
0 likes · 12 min read
Why Choose TCP Long Connections Over Short Ones? A Deep Dive
Senior Tony
Senior Tony
Aug 9, 2023 · Backend Development

Why Netty Powers Modern Java Back‑ends: A Deep Dive into Its Architecture

This article explains what Netty is, why it’s essential for Java back‑end development, details its core components and high‑performance mechanisms such as the Reactor model, Zero‑Copy and object pooling, and shows how Netty handles TCP framing issues with practical decoding solutions.

NettyNetwork programmingReactor Pattern
0 likes · 9 min read
Why Netty Powers Modern Java Back‑ends: A Deep Dive into Its Architecture
MaGe Linux Operations
MaGe Linux Operations
Aug 7, 2023 · Fundamentals

Short vs Long TCP Connections: When to Use Each and How to Keep Them Alive

TCP connections can be either short-lived, closing after a single request‑response cycle, or long-lived, staying open for multiple exchanges; this article explains their handshake processes, advantages, drawbacks, typical use cases, reasons long connections drop, and practical strategies such as keepalive and reconnection to maintain reliability.

HandshakeKeepaliveTCP
0 likes · 10 min read
Short vs Long TCP Connections: When to Use Each and How to Keep Them Alive
Liangxu Linux
Liangxu Linux
Aug 6, 2023 · Operations

Why Does Your Network Lose Packets? 30+ Troubleshooting Steps Revealed

This article explains the concept of network packet loss, walks through the sending and receiving mechanisms of Ethernet frames, and provides a comprehensive, layer‑by‑layer checklist—including hardware NIC, driver, kernel, IP, TCP/UDP, and application‑level diagnostics—plus concrete Linux commands and configuration tweaks to locate and fix the root cause.

Packet LossTCPdiagnostics
0 likes · 36 min read
Why Does Your Network Lose Packets? 30+ Troubleshooting Steps Revealed
Tencent Database Technology
Tencent Database Technology
Jul 27, 2023 · Databases

MySQL Network Write Timeout (Error 1161) Analysis and Debugging

This article investigates a MySQL 8.0 TDSQL client experiencing connection interruptions during batch streaming, analyzes error 1161 (ER_NET_WRITE_INTERRUPTED) root causes in the MySQL source code, presents debugging steps with log and packet captures, and offers practical mitigation recommendations.

Database PerformanceError 1161TCP
0 likes · 11 min read
MySQL Network Write Timeout (Error 1161) Analysis and Debugging
Open Source Linux
Open Source Linux
Jul 24, 2023 · Fundamentals

Why TCP Beats UDP: Ports, Handshakes, and Flow Control Explained

This article explains the transport layer’s core protocols—TCP and UDP—detailing their functions, differences, port numbers, connection establishment, reliability mechanisms, flow and congestion control, and how applications use client‑server models to communicate over networks.

Port NumbersReliabilityTCP
0 likes · 21 min read
Why TCP Beats UDP: Ports, Handshakes, and Flow Control Explained
MaGe Linux Operations
MaGe Linux Operations
Jul 18, 2023 · Fundamentals

Short vs Long TCP Connections: When and Why to Use Each

This article explains the fundamentals of TCP connections, detailing the three‑way handshake, four‑step termination, the differences between short‑lived and persistent (long) connections, their advantages, keep‑alive mechanisms, and practical guidelines for choosing the appropriate connection type in various network scenarios.

Keep-AliveNetworkingTCP
0 likes · 12 min read
Short vs Long TCP Connections: When and Why to Use Each