Tagged articles

TCP

632 articles · Page 5 of 7
Refining Core Development Skills
Refining Core Development Skills
Jun 17, 2021 · Fundamentals

How Linux Determines the Client Port for TCP Connections

On Linux, the client port used in a TCP connection is selected either by the kernel during the connect system call—randomly scanning the ip_local_port_range while respecting reserved ports—or by a prior bind call, with detailed kernel functions such as inet_hash_connect and __inet_hash_connect governing the process.

LinuxNetworkingPort Selection
0 likes · 21 min read
How Linux Determines the Client Port for TCP Connections
Senior Brother's Insights
Senior Brother's Insights
Jun 10, 2021 · Fundamentals

Demystifying Network Layers: From Physical to Application

This article provides a clear, step‑by‑step explanation of network layering, covering the purpose and function of each layer—from the physical medium up to the application protocols—while illustrating concepts with diagrams and practical examples.

Application LayerIP addressingMAC address
0 likes · 14 min read
Demystifying Network Layers: From Physical to Application
Byte Quality Assurance Team
Byte Quality Assurance Team
Jun 2, 2021 · Fundamentals

Evolution of HTTP: From 0.9 to HTTP/3 and QUIC

This article traces the development of the HTTP protocol from its earliest 0.9 version through HTTP/1.1, HTTP/2, and finally HTTP/3 built on QUIC, highlighting how each iteration improved speed, efficiency, and mitigated head‑of‑line blocking while introducing new challenges.

HTTPQUICTCP
0 likes · 8 min read
Evolution of HTTP: From 0.9 to HTTP/3 and QUIC
Efficient Ops
Efficient Ops
May 26, 2021 · Fundamentals

From SPDY to QUIC: How Google’s Innovations Reshaped Web Protocols

This article reviews Google’s pioneering SPDY protocol, its key features and impact on HTTP/2, then explores the disruptive QUIC protocol built on UDP, detailing its connection setup, Diffie‑Hellman encryption, multiplexing, connection migration, and other enhancements that boost web performance.

Diffie-HellmanHTTP/2QUIC
0 likes · 12 min read
From SPDY to QUIC: How Google’s Innovations Reshaped Web Protocols
Programmer DD
Programmer DD
May 26, 2021 · Fundamentals

Why Does TCP Keep Connections in TIME_WAIT? Uncovering the Hidden Bottleneck

This article explains the purpose of the TCP TIME_WAIT state, how it prevents packet loss and connection errors, examines its duration based on the Maximum Segment Lifetime, and analyzes why high‑QPS load testing tools like ab may appear to bypass TIME_WAIT, revealing the impact on server resources.

LinuxPerformance TestingSocket
0 likes · 8 min read
Why Does TCP Keep Connections in TIME_WAIT? Uncovering the Hidden Bottleneck
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 25, 2021 · Backend Development

How to Ensure Reliable Push Messaging in Live Online Classrooms

This article examines the challenges of message loss in live‑streamed online classrooms, analyzes why pushes can fail, and proposes a comprehensive reliability strategy—including TCP fundamentals, multi‑channel redundancy, sequence‑based ordering, hole‑pulling, and configurable back‑end mechanisms—to achieve near‑100% delivery.

Message reliabilityTCPbackend design
0 likes · 19 min read
How to Ensure Reliable Push Messaging in Live Online Classrooms
Liangxu Linux
Liangxu Linux
May 16, 2021 · Fundamentals

Mastering TCP: Handshakes, Teardowns, and State Machines Explained

This article provides a comprehensive guide to TCP’s core mechanisms, covering connection establishment via the three‑way handshake, graceful termination with the four‑step teardown, half‑open and half‑close scenarios, simultaneous open/close, initial sequence numbers, and detailed state‑transition diagrams, all illustrated with diagrams.

HandshakeNetworkingTCP
0 likes · 18 min read
Mastering TCP: Handshakes, Teardowns, and State Machines Explained
ITPUB
ITPUB
May 13, 2021 · Fundamentals

Unveiling Linux’s Network Send Path: From send() to the Wire

This article provides a deep, step‑by‑step analysis of how Linux 3.10 processes a send() call—from user‑space socket handling through TCP, IP routing, queueing, driver DMA mapping, and both hard and soft interrupt handling—answering why CPU time appears in sy/si, why NET_RX softirqs dominate, and what memory copies occur during transmission.

DMALinuxTCP
0 likes · 32 min read
Unveiling Linux’s Network Send Path: From send() to the Wire
Alibaba Cloud Native
Alibaba Cloud Native
May 3, 2021 · Backend Development

Why Dubbo Fails Under C10K Load and How to Fix It

This article details a large‑scale C10K performance test of Dubbo, analyzes why service calls time out under thousands of concurrent consumers, identifies heartbeat‑induced Netty thread saturation and TCP full‑connection‑queue overflow as root causes, and presents concrete optimizations that dramatically improve latency and stability.

Backend PerformanceC10KDubbo
0 likes · 13 min read
Why Dubbo Fails Under C10K Load and How to Fix It
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
Architect's Journey
Architect's Journey
Apr 15, 2021 · Operations

What Seven Days of Testing Reveal About TCP Memory Overhead

After a week-long series of experiments measuring TCP connections in various states—including ESTABLISH, client‑to‑server, server‑to‑client, and non‑ESTABLISH scenarios—the author quantifies per‑connection memory usage and shows how modern kernels reclaim buffers and reduce overhead, especially for TIME_WAIT.

LinuxNetwork PerformanceTCP
0 likes · 4 min read
What Seven Days of Testing Reveal About TCP Memory Overhead
37 Mobile Game Tech Team
37 Mobile Game Tech Team
Apr 8, 2021 · Fundamentals

Why Does HTTP Need Three Handshakes? A Deep Dive into HTTP Versions and Performance

This article explains the fundamentals of the HyperText Transfer Protocol, covering the OSI model layers, TCP three‑way handshake, bandwidth versus latency, and the evolution from HTTP/0.9 through HTTP/1.0, 1.1, and HTTP/2, highlighting key improvements such as persistent connections, pipelining, chunked transfer, and server push.

TCPperformanceprotocol
0 likes · 13 min read
Why Does HTTP Need Three Handshakes? A Deep Dive into HTTP Versions and Performance
Laravel Tech Community
Laravel Tech Community
Mar 28, 2021 · Backend Development

v0.0.7 Update: Adding Keepalive Timeout to TCP RPC Server

Version v0.0.7 introduces a configurable keepalive timeout for the TCP RPC server, automatically closing idle client connections after a set period, reducing resource usage and preventing memory leaks while allowing the client to transparently reconnect when needed.

RPCServerTCP
0 likes · 3 min read
v0.0.7 Update: Adding Keepalive Timeout to TCP RPC Server
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-AliveTCPWireshark
0 likes · 12 min read
Decoding HTTP Requests with Wireshark: Handshake, TCP Options, and Keep‑Alive Explained
Refining Core Development Skills
Refining Core Development Skills
Feb 24, 2021 · Backend Development

Achieving One Million TCP Connections: Theory, Kernel Tuning, and Practical Implementation in C/Java/PHP

This article explains TCP concurrency theory, details two experimental approaches for reaching one million simultaneous connections using multi‑IP or multi‑port strategies, and provides step‑by‑step kernel tuning, source code, and validation commands for C, Java, and PHP implementations.

TCPbenchmarkjava
0 likes · 16 min read
Achieving One Million TCP Connections: Theory, Kernel Tuning, and Practical Implementation in C/Java/PHP
Code Ape Tech Column
Code Ape Tech Column
Feb 2, 2021 · Backend Development

Implementing Heartbeat and Reconnection Mechanisms with Netty in Java

This article explains the concept of TCP heartbeat, demonstrates how to use Netty's IdleStateHandler to implement client‑server heartbeat detection, and provides a complete Java example with reconnection logic, retry policies, and detailed code snippets for building a robust long‑connection service.

NettyTCPheartbeat
0 likes · 18 min read
Implementing Heartbeat and Reconnection Mechanisms with Netty in Java
Top Architect
Top Architect
Feb 1, 2021 · Backend Development

Implementing Heartbeat Mechanism and Reconnection Logic with Netty

This article explains how to implement a TCP heartbeat mechanism using Netty's IdleStateHandler, details client and server handler implementations, and demonstrates a robust reconnection strategy with customizable retry policies, providing complete Java code examples for each component.

NetworkingTCPheartbeat
0 likes · 19 min read
Implementing Heartbeat Mechanism and Reconnection Logic with Netty
Code Ape Tech Column
Code Ape Tech Column
Jan 25, 2021 · Fundamentals

Mastering TCP: Handshake, Flow Control, Congestion Control and More

This comprehensive guide explains TCP fundamentals—including the differences between TCP and UDP, the three‑way handshake, four‑way termination, half‑open queues, SYN‑Flood attacks, header fields, Fast Open, timestamps, retransmission timeout calculation, flow and congestion control, Nagle's algorithm, delayed ACKs, and keep‑alive mechanisms—providing clear examples and diagrams for each concept.

Congestion ControlFlow ControlHandshake
0 likes · 29 min read
Mastering TCP: Handshake, Flow Control, Congestion Control and More
Architecture Digest
Architecture Digest
Jan 23, 2021 · Fundamentals

Understanding Linux TCP Socket Implementation and System Tuning

This article explains how Linux manages TCP sockets at the kernel level, demonstrates how to adjust port ranges and file‑descriptor limits, and shows the key data structures and lookup functions that enable high‑concurrency TCP connections, providing practical guidance for scaling client connections.

Linux kernelNetworkingPort Range
0 likes · 8 min read
Understanding Linux TCP Socket Implementation and System Tuning
Programmer DD
Programmer DD
Jan 18, 2021 · Fundamentals

Why HTTP/3 Is the Next Leap for the Web: From TCP to QUIC

This article traces the evolution of the HTTP protocol from its early days through HTTP/1.0, 1.1, SPDY, HTTP/2, and finally to HTTP/3, explaining how QUIC over UDP addresses TCP's latency and security limitations while also highlighting remaining challenges.

HTTP/3Network PerformanceQUIC
0 likes · 15 min read
Why HTTP/3 Is the Next Leap for the Web: From TCP to QUIC
Liangxu Linux
Liangxu Linux
Jan 17, 2021 · Fundamentals

Understanding TCP: Handshakes, Flow & Congestion Control Explained

This article provides a comprehensive overview of TCP fundamentals, comparing it with UDP, detailing the three‑way handshake and four‑way termination, explaining SYN flood attacks, describing the TCP header fields, fast open, timestamps, retransmission timeout calculations, flow and congestion control mechanisms, as well as Nagle's algorithm, delayed ACKs, and keep‑alive behavior.

Congestion ControlFlow ControlHandshake
0 likes · 29 min read
Understanding TCP: Handshakes, Flow & Congestion Control Explained
Python Crawling & Data Mining
Python Crawling & Data Mining
Jan 17, 2021 · Fundamentals

Mastering TCP: Handshakes, Packet Structure, and Real‑World Wireshark Analysis

This article provides a comprehensive guide to TCP, covering its definition, connection-oriented nature, reliability, byte‑stream model, detailed packet header fields, three‑way handshake, four‑way termination, MTU/MSS concepts, Python simulation scripts, Wireshark capture techniques, common pitfalls, and practical networking programming steps.

HandshakeMSSMTU
0 likes · 29 min read
Mastering TCP: Handshakes, Packet Structure, and Real‑World Wireshark Analysis
Open Source Linux
Open Source Linux
Jan 6, 2021 · Operations

Boost Nginx Performance: Essential Linux System Parameter Tweaks

This guide explains how to optimize Linux kernel parameters and Nginx settings—such as file descriptor limits, TCP queue lengths, temporary ports, worker processes, KeepAlive, and log buffering—to significantly improve server performance and handle high traffic loads.

LinuxNginxSystem Parameters
0 likes · 8 min read
Boost Nginx Performance: Essential Linux System Parameter Tweaks
Architecture Digest
Architecture Digest
Jan 3, 2021 · Operations

Understanding How Many Concurrent TCP Connections a Server Can Actually Support

This article explains the true limits of concurrent TCP connections on a server, debunks common misconceptions about port numbers, details the TCP four‑tuple theory, outlines Linux file‑descriptor restrictions, shows how to tune kernel buffers with sysctl, and shares a real‑world test achieving one million active connections.

LinuxTCPconcurrency
0 likes · 6 min read
Understanding How Many Concurrent TCP Connections a Server Can Actually Support
ITPUB
ITPUB
Dec 31, 2020 · Operations

How Many TCP Connections Can One Server Really Handle? A Deep Dive into Linux Limits

This article demystifies common misconceptions about server concurrency, explains the theoretical maximum TCP connections based on the four‑tuple, details Linux file‑descriptor and buffer limits, and walks through a practical experiment that achieves over one million simultaneous connections on a single machine.

LinuxTCPconcurrency
0 likes · 7 min read
How Many TCP Connections Can One Server Really Handle? A Deep Dive into Linux Limits
Open Source Linux
Open Source Linux
Dec 29, 2020 · Fundamentals

Mastering TCP: Handshakes, Flow & Congestion Control, Fast Open and More

This comprehensive guide explains TCP vs UDP, the three‑way handshake, four‑way termination, half‑open queues, SYN‑Flood attacks, header fields, timestamps, Fast Open, retransmission timeout calculations, flow control, congestion control, Nagle’s algorithm, delayed ACKs and keep‑alive mechanisms, providing essential knowledge for networking interviews and system design.

Congestion ControlFlow ControlHandshake
0 likes · 35 min read
Mastering TCP: Handshakes, Flow & Congestion Control, Fast Open and More
Refining Core Development Skills
Refining Core Development Skills
Dec 23, 2020 · Fundamentals

Understanding Linux TCP Socket Internals and Port Range Configuration

This article explains how to adjust Linux kernel port ranges and file descriptor limits, explores the internal structures of TCP sockets, and walks through key kernel functions such as tcp_v4_rcv and __inet_lookup that locate sockets based on IP and port tuples, providing practical guidance for increasing TCP concurrency.

Linux kernelNetworkingPort Range
0 likes · 8 min read
Understanding Linux TCP Socket Internals and Port Range Configuration
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 21, 2020 · Fundamentals

Illustrated Overview of TCP Protocol

This article presents an illustrated comic that explains the basic principles of the TCP protocol, highlighting its connection-oriented reliable transmission, congestion and flow control mechanisms, while noting that some details are simplified and encouraging readers to consult formal RFCs and the TCP/IP Illustrated volume for deeper study.

IllustratedNetworkingTCP
0 likes · 5 min read
Illustrated Overview of TCP Protocol
Liangxu Linux
Liangxu Linux
Dec 14, 2020 · Backend Development

How Many TCP Connections Can One Server Really Handle? A Deep Dive

This article explains the true limits of simultaneous TCP connections on a single Linux server, debunking common myths about the 65,535 port ceiling, detailing kernel and user‑level file‑descriptor restrictions, sysctl buffer settings, and a practical experiment achieving one million concurrent connections.

LinuxNetwork ConnectionsTCP
0 likes · 7 min read
How Many TCP Connections Can One Server Really Handle? A Deep Dive
Efficient Ops
Efficient Ops
Dec 13, 2020 · Fundamentals

How SPDY Paved the Way for QUIC: From HTTP/1.1 to the Future of Web Transport

This article reviews the evolution of web communication protocols, detailing SPDY's pioneering features that influenced HTTP/2 and exploring QUIC's disruptive UDP‑based design, security mechanisms, multiplexing, connection migration, and other enhancements that reshape modern internet performance.

HTTP/2QUICSPDY
0 likes · 12 min read
How SPDY Paved the Way for QUIC: From HTTP/1.1 to the Future of Web Transport
JavaEdge
JavaEdge
Dec 12, 2020 · Backend Development

Why Does TCP Have Sticky and Half Packets? Causes and Effective Solutions

This article explains why TCP experiences sticky and half packets, analyzes the underlying causes such as buffer size mismatches and MTU limits, and presents practical solutions including short connections, fixed‑length framing, delimiter‑based framing, and length‑field framing, with their advantages and trade‑offs.

NettyTCPnetwork programming
0 likes · 5 min read
Why Does TCP Have Sticky and Half Packets? Causes and Effective Solutions
Java Captain
Java Captain
Dec 10, 2020 · Backend Development

Implementing a Real-Time Network Chatroom in Java Using TCP and Multithreading

This article explains how to build a real‑time network chatroom in Java using TCP sockets, multithreading, and a ConcurrentHashMap to manage user connections, detailing command handling for listing users, group chat, private messages, exiting, and server shutdown, with full source code examples.

ChatroomConcurrentHashMapSocket
0 likes · 14 min read
Implementing a Real-Time Network Chatroom in Java Using TCP and Multithreading
Open Source Linux
Open Source Linux
Dec 10, 2020 · Fundamentals

Unraveling TCP: From Handshakes to Congestion Control and Security

This comprehensive guide walks through TCP fundamentals—including its differences from UDP, the three‑way handshake, four‑way termination, half‑open queues, SYN‑Flood attacks, packet header fields, Fast Open, timestamps, RTT/RTO calculations, flow and congestion control, Nagle's algorithm, delayed ACKs, and keep‑alive mechanisms—providing clear explanations and visual diagrams for each concept.

NetworkingTCP
0 likes · 27 min read
Unraveling TCP: From Handshakes to Congestion Control and Security
ITPUB
ITPUB
Dec 8, 2020 · Operations

How Many TCP Connections Can One Server Really Handle? A Deep Dive into Linux Limits

This article demystifies the true maximum number of concurrent TCP connections a single Linux server can sustain, explaining the theoretical limits of the TCP four‑tuple, the practical constraints imposed by file descriptor and memory settings, and walks through a real‑world experiment achieving one million connections.

LinuxNetworkingServer
0 likes · 6 min read
How Many TCP Connections Can One Server Really Handle? A Deep Dive into Linux Limits
Liangxu Linux
Liangxu Linux
Dec 3, 2020 · Fundamentals

Mastering the Transport Layer: TCP, UDP, Sockets, and Port Mechanics

This article explains the role of the transport layer in the OSI model, compares TCP and UDP protocols, describes socket types and their APIs, clarifies port number usage, and details multiplexing, demultiplexing, and UDP packet structure with checksum calculation.

MultiplexingPort NumbersSockets
0 likes · 20 min read
Mastering the Transport Layer: TCP, UDP, Sockets, and Port Mechanics
Wukong Talks Architecture
Wukong Talks Architecture
Dec 3, 2020 · Fundamentals

Explaining UDP vs TCP in Simple Terms

This article uses everyday analogies to compare UDP and TCP, outlines their core characteristics, typical use cases, and describes how to add TCP-like reliability features to UDP such as connection establishment, ordering, loss recovery, flow control, and congestion control.

Flow ControlNetworkingTCP
0 likes · 7 min read
Explaining UDP vs TCP in Simple Terms
MaGe Linux Operations
MaGe Linux Operations
Dec 2, 2020 · Fundamentals

Why HTTP/3 Matters: From TCP Roots to QUIC’s Future

This article traces the evolution of HTTP from its 1991 origins through HTTP/1.0, 1.1, HTTP/2, and finally HTTP/3, explaining how QUIC over UDP addresses TCP’s latency and security limitations while also highlighting remaining challenges.

HTTP/3Network PerformanceQUIC
0 likes · 12 min read
Why HTTP/3 Matters: From TCP Roots to QUIC’s Future
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 2, 2020 · Fundamentals

Transport Layer Overview: TCP and UDP Protocols, Sockets, Ports, and Congestion Control

This article provides a comprehensive introduction to the transport layer of computer networks, explaining the roles of TCP and UDP, socket APIs, port numbers, multiplexing, packet structures, connection management, three‑way handshake, four‑way termination, and congestion‑control mechanisms.

Congestion ControlNetworkingPort Numbers
0 likes · 49 min read
Transport Layer Overview: TCP and UDP Protocols, Sockets, Ports, and Congestion Control
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 30, 2020 · Backend Development

Netty Architecture and Principles: An Introductory Tutorial

This tutorial provides a detailed introduction to Netty, covering its architecture, core concepts such as buffers, channels, selectors, reactor thread models, zero‑copy techniques, and includes practical TCP server/client code examples, helping readers understand and apply Netty for high‑performance Java network programming.

Java NIONettyReactor
0 likes · 42 min read
Netty Architecture and Principles: An Introductory Tutorial
ITPUB
ITPUB
Nov 23, 2020 · Fundamentals

Master TCP Handshake & Teardown: Linux TIME_WAIT Tuning Explained

This article explains the TCP three‑way handshake and four‑way termination processes, clarifies the TIME_WAIT state, shows how to inspect socket states with netstat, and provides practical Linux sysctl settings to reduce excessive TIME_WAIT sockets and improve network performance.

HandshakeLinuxNetworking
0 likes · 7 min read
Master TCP Handshake & Teardown: Linux TIME_WAIT Tuning 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
Architecture Digest
Architecture Digest
Oct 31, 2020 · Fundamentals

Ten Essential TCP/IP Topics Every Engineer Should Know

This article systematically explains the TCP/IP protocol suite, covering the four-layer model, data link, network, transport, and application aspects, and dives into key protocols such as IP, ARP, ICMP, DNS, as well as TCP connection management, flow control, and congestion control mechanisms.

CongestionControlDNSICMP
0 likes · 21 min read
Ten Essential TCP/IP Topics Every Engineer Should Know
Programmer DD
Programmer DD
Oct 30, 2020 · Backend Development

How Dubbo’s Single Long Connection Leads to Congestion and What You Can Do

This article examines a production incident where Dubbo services became congested, explains the underlying communication process with detailed code analysis, identifies key protocol and service parameters affecting performance, conducts experiments on connection count and TCP buffers, and offers practical recommendations to optimize Dubbo throughput.

DubboTCPconnection
0 likes · 26 min read
How Dubbo’s Single Long Connection Leads to Congestion and What You Can Do
Top Architect
Top Architect
Oct 26, 2020 · Fundamentals

Comprehensive Overview of the TCP/IP Model and Core Network Protocols

This article provides a detailed introduction to the TCP/IP model, explaining each layer—from the physical and data link layers up to the application layer—along with key protocols such as IP, ARP, ICMP, TCP, UDP, DNS, and the mechanisms of connection establishment, termination, flow control, and congestion control.

Congestion ControlNetworkingTCP
0 likes · 21 min read
Comprehensive Overview of the TCP/IP Model and Core Network Protocols
Efficient Ops
Efficient Ops
Oct 20, 2020 · Operations

Why Do TIME_WAIT Connections Surge in High‑Concurrency Scenarios and How to Fix Them

During high‑concurrency traffic, servers can accumulate large numbers of TCP connections in the TIME_WAIT state, which can exhaust local ports and cause “address already in use” errors; this article explains the phenomenon, its underlying TCP mechanics, and practical configuration and kernel tweaks to mitigate the issue.

LinuxNetworkingOperations
0 likes · 9 min read
Why Do TIME_WAIT Connections Surge in High‑Concurrency Scenarios and How to Fix Them
Liangxu Linux
Liangxu Linux
Oct 19, 2020 · Information Security

Exploiting Linux’s DelayedACKLost Counter to Infer TCP Sequence Numbers

An imaginative tale reveals how two covert agents exploit the Linux kernel’s DelayedACKLost counter via /proc/net/netstat, using it to infer TCP sequence numbers and perform a side‑channel hijack, while illustrating the underlying delayed ACK mechanism, related kernel functions, and the security implications of this hidden metric.

Delayed ACKLinuxTCP
0 likes · 8 min read
Exploiting Linux’s DelayedACKLost Counter to Infer TCP Sequence Numbers
MaGe Linux Operations
MaGe Linux Operations
Sep 23, 2020 · Backend Development

GET vs POST: Uncover the Real Differences Behind HTTP Requests

This article explains the fundamental distinctions between GET and POST HTTP methods, covering how parameters are transmitted, caching behavior, URL length limits, security implications, and the underlying TCP packet flow, while debunking common myths and highlighting practical considerations for developers.

GETHTTPPOST
0 likes · 7 min read
GET vs POST: Uncover the Real Differences Behind HTTP Requests
The Dominant Programmer
The Dominant Programmer
Sep 20, 2020 · Backend Development

Integrating Protobuf with Netty for Java Object Transmission

This guide walks through building a Netty server and client that exchange Java objects using Protobuf serialization, covering .proto definition, code generation with protoc, pipeline configuration with Netty's Protobuf handlers, and full example implementations for both sides.

Code ExampleNettyProtobuf
0 likes · 8 min read
Integrating Protobuf with Netty for Java Object Transmission
vivo Internet Technology
vivo Internet Technology
Sep 2, 2020 · Fundamentals

Understanding DNS and WebSocket: From Dig Commands to Real‑Time Connections

This article provides a systematic, hands‑on guide to DNS fundamentals—including dig queries, hierarchical lookups, Wireshark packet analysis, traditional DNS drawbacks, and HTTPDNS solutions—followed by a deep dive into WebSocket mechanics, handshake, frame structure, and security considerations, all illustrated with practical examples and code.

DNSHTTPDNSTCP
0 likes · 21 min read
Understanding DNS and WebSocket: From Dig Commands to Real‑Time Connections
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 terminationTCP
0 likes · 8 min read
Mastering TCP: How the Three‑Way Handshake and Four‑Way Teardown Work
Programmer DD
Programmer DD
Aug 5, 2020 · Fundamentals

Mastering TCP: Handshakes, Flow Control, Congestion Management and More

This comprehensive guide explains TCP fundamentals—including its differences from UDP, the three‑way handshake, four‑way termination, half‑open queues, SYN flood attacks, header fields, Fast Open, timestamps, retransmission timers, flow and congestion control, Nagle's algorithm, delayed ACKs, and keep‑alive mechanisms—providing clear diagrams and practical insights for developers.

Congestion ControlFlow ControlHandshake
0 likes · 28 min read
Mastering TCP: Handshakes, Flow Control, Congestion Management and More
Top Architect
Top Architect
Jul 24, 2020 · Backend Development

Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat

This article explains why a custom TCP protocol can be more efficient than HTTP, defines the protocol header and body format, and demonstrates a complete Netty implementation—including message classes, encoders/decoders, resolver factories, server‑client bootstraps, and a Ping/Pong heartbeat mechanism—complete with runnable Java code and sample output.

Message EncodingNettyTCP
0 likes · 15 min read
Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat
Architecture Digest
Architecture Digest
Jul 19, 2020 · Backend Development

Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat

This article explains why a custom protocol can be more efficient than HTTP for service-to-service communication, defines a simple binary protocol with header and body, and demonstrates a complete Netty implementation—including message classes, encoders/decoders, resolvers, heartbeat handling, and client/server examples.

Message EncodingNettyTCP
0 likes · 18 min read
Implementing a Custom Protocol with Netty: Design, Encoding/Decoding, and Heartbeat
Open Source Linux
Open Source Linux
Jul 15, 2020 · Fundamentals

Why Do TIME_WAIT Connections Accumulate and How to Fix Them?

This article explains why massive TIME_WAIT TCP connections appear under high concurrency, the impact on services, and practical methods—such as adjusting socket reuse and reducing TIME_WAIT duration—to prevent new connection failures.

LinuxNetworkingNginx
0 likes · 9 min read
Why Do TIME_WAIT Connections Accumulate and How to Fix Them?
Selected Java Interview Questions
Selected Java Interview Questions
Jun 20, 2020 · Fundamentals

Comprehensive Guide to TCP: Differences with UDP, Handshakes, Termination, SYN Flood, Fast Open, Timestamps, RTO, Flow & Congestion Control, Nagle, Delayed ACK and Keep‑Alive

This article provides an in‑depth overview of TCP, explaining its core differences from UDP, the three‑way handshake and four‑way termination processes, half‑open queues and SYN‑Flood attacks, Fast Open, timestamp usage, retransmission timeout calculation, flow and congestion control mechanisms, as well as Nagle’s algorithm, delayed acknowledgments and TCP keep‑alive.

Congestion ControlHandshakeNetworking
0 likes · 28 min read
Comprehensive Guide to TCP: Differences with UDP, Handshakes, Termination, SYN Flood, Fast Open, Timestamps, RTO, Flow & Congestion Control, Nagle, Delayed ACK and Keep‑Alive
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 9, 2020 · Databases

Implementing a Raw TCP MySQL Connection in Python

This article explains the MySQL client‑server handshake, details the sequence of packets exchanged during a TCP connection, and provides a complete Python implementation that builds a raw TCP socket to connect, authenticate, and communicate with a MySQL server without using a high‑level driver.

DatabaseMySQLNetworking
0 likes · 12 min read
Implementing a Raw TCP MySQL Connection in Python
Liangxu Linux
Liangxu Linux
May 28, 2020 · Fundamentals

Unlock TCP Secrets: Visualizing Handshakes and Retransmissions with Wireshark & tcpdump

This guide walks you through building test environments, capturing packets with tcpdump, visualizing them in Wireshark, and dissecting TCP features such as three‑way handshake, retransmission timers, fast open, flow control, Nagle algorithm and delayed ACKs, while showing the exact Linux kernel parameters that control each behavior.

LinuxRetransmissionTCP
0 likes · 30 min read
Unlock TCP Secrets: Visualizing Handshakes and Retransmissions with Wireshark & tcpdump
Laravel Tech Community
Laravel Tech Community
May 24, 2020 · Backend Development

Creating a TCP Server with Swoole in PHP

This article demonstrates how to build a high‑performance asynchronous TCP server using the Swoole extension in PHP, covering server creation, event callbacks for connection, data reception, and closure, as well as testing the server with telnet or netcat.

PHPServerSwoole
0 likes · 3 min read
Creating a TCP Server with Swoole in PHP
Programmer DD
Programmer DD
Apr 25, 2020 · Fundamentals

How Many TCP Connections Can a Single Server Really Handle?

This article examines the theoretical and practical limits of concurrent TCP connections on a single Linux server, covering the historic C10K problem, file‑descriptor and port constraints, the 4‑tuple identification, and real‑world factors such as memory and bandwidth that cap achievable connections.

C10KTCPnetwork programming
0 likes · 5 min read
How Many TCP Connections Can a Single Server Really Handle?
dbaplus Community
dbaplus Community
Apr 25, 2020 · Operations

Master Blackbox Exporter: Install, Configure, and Monitor with Prometheus

This guide explains the concepts of white‑box and black‑box monitoring, introduces Prometheus Blackbox Exporter, walks through installation, systemd setup, and detailed Prometheus configurations for HTTP, TCP, ICMP, POST and SSL checks, shows Grafana dashboard integration, and provides alert rule examples for reliable service health monitoring.

Blackbox ExporterGrafanaHTTP
0 likes · 13 min read
Master Blackbox Exporter: Install, Configure, and Monitor with Prometheus
ITPUB
ITPUB
Apr 1, 2020 · Operations

Master Netcat: Essential TCP/UDP Tricks for Port Testing, File Transfer, and More

This guide explains how to use the lightweight netcat utility for a wide range of network tasks—including checking versions, testing TCP and UDP ports, transferring files, measuring bandwidth, and even creating simple backdoors—while providing concrete command examples and practical tips for Linux environments.

TCPfile transfernetcat
0 likes · 13 min read
Master Netcat: Essential TCP/UDP Tricks for Port Testing, File Transfer, and More