Tagged articles
129 articles
Page 1 of 2
Architect's Guide
Architect's Guide
May 12, 2026 · Fundamentals

Mastering TCP, HTTP, Sockets, and Socket Connection Pools

This article walks developers through the OSI model, explains TCP's three‑way handshake and four‑way termination, contrasts TCP with UDP, addresses common networking questions, and details how to implement long‑lived socket connections and a reusable socket connection pool in Node.js.

Connection PoolNetwork ProtocolsNode.js
0 likes · 15 min read
Mastering TCP, HTTP, Sockets, and Socket Connection Pools
Liangxu Linux
Liangxu Linux
Apr 13, 2026 · Fundamentals

Master Linux Network Programming: From Echo Server to Mini HTTP Server

This guide walks beginners through progressive Linux network programming projects—starting with an Echo server, advancing to a concurrent chatroom, and culminating in a simple HTTP server—to solidify core concepts like TCP handshakes, socket I/O, and protocol handling.

LinuxNetwork programmingSocket
0 likes · 4 min read
Master Linux Network Programming: From Echo Server to Mini HTTP Server
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
Architect's Guide
Architect's Guide
Feb 14, 2026 · Backend Development

Master TCP/UDP, Socket Long Connections, and Build a Node.js Socket Pool

This tutorial walks through the OSI model, explains TCP three‑way handshake and four‑way termination, compares TCP and UDP, addresses common TCP tuning questions, describes long versus short socket connections with heartbeats, and shows how to design a custom protocol and implement a reusable Socket connection pool in Node.js.

Connection PoolNetwork ProtocolsNode.js
0 likes · 15 min read
Master TCP/UDP, Socket Long Connections, and Build a Node.js Socket Pool
php Courses
php Courses
Nov 7, 2025 · Backend Development

Master PHP’s fsockopen(): Syntax, Parameters, and Real‑World Example

This article explains how PHP's fsockopen() function works, detailing its syntax, parameters, return values, and providing a complete example that demonstrates opening a TCP connection, sending an HTTP request, and handling the response, including notes on SSL usage.

Network programmingPHPSocket
0 likes · 4 min read
Master PHP’s fsockopen(): Syntax, Parameters, and Real‑World Example
Open Source Tech Hub
Open Source Tech Hub
Nov 4, 2025 · Fundamentals

Why epoll Beats select/poll: Inside Linux’s High‑Performance I/O Engine

This article explains how Linux’s epoll mechanism, built on libevent and using red‑black trees and ready‑list queues, provides scalable I/O multiplexing for sockets, eventfd and timerfd while traditional file systems like ext4 cannot be managed directly, and outlines the key efficiency tricks behind its design.

I/O MultiplexingLinuxSocket
0 likes · 8 min read
Why epoll Beats select/poll: Inside Linux’s High‑Performance I/O Engine
Deepin Linux
Deepin Linux
Oct 30, 2025 · Fundamentals

Unlocking Linux Kernel‑User Communication: How Netlink Bridges the Gap

This article explains how Linux’s Netlink mechanism provides efficient, full‑duplex communication between kernel space and user space, overcoming the limitations of ioctl, /proc, and system calls, and details its architecture, data structures, API usage, and real‑world applications.

IPCLinuxNetlink
0 likes · 45 min read
Unlocking Linux Kernel‑User Communication: How Netlink Bridges the Gap
IT Services Circle
IT Services Circle
Sep 30, 2025 · Fundamentals

Why Port 0 Exists: Hidden Uses, Risks, and How to Handle It

Port 0 is a legal but reserved value that can be used by operating systems to assign temporary ports, yet it also appears in abnormal traffic, so understanding its semantics, proper usage in code, and how firewalls and security tools treat it is essential for developers and operators.

NetworkingSocketTCP
0 likes · 8 min read
Why Port 0 Exists: Hidden Uses, Risks, and How to Handle It
Architect's Guide
Architect's Guide
Sep 6, 2025 · Fundamentals

Mastering TCP/UDP, HTTP, and Socket Connection Pools: A Complete Guide

This article walks developers through the OSI model, explains TCP three‑way handshake and four‑way termination, compares TCP and UDP, discusses socket long connections, heartbeat mechanisms, custom application‑layer protocols, and implements a Node.js socket connection pool for high‑concurrency scenarios.

Connection PoolNetwork ProtocolsOSI model
0 likes · 17 min read
Mastering TCP/UDP, HTTP, and Socket Connection Pools: A Complete Guide
Efficient Ops
Efficient Ops
Aug 31, 2025 · Fundamentals

Master Computer Network Fundamentals: TCP/UDP, HTTP, Socket & More

This comprehensive guide walks readers through the fundamentals of computer networking, covering architecture models, TCP and UDP protocols, HTTP basics, socket programming, IP addressing, ICMP, Ping, and related concepts such as routers, cookies, and token authentication, all illustrated with clear diagrams.

Computer NetworksHTTPICMP
0 likes · 9 min read
Master Computer Network Fundamentals: TCP/UDP, HTTP, Socket & More
Deepin Linux
Deepin Linux
Jul 7, 2025 · Fundamentals

Inside Linux: How the Kernel Handles Network I/O from Packets to Applications

This article explores the Linux kernel’s network stack architecture, detailing each layer from the application’s socket interface through transport, network, and link layers, and explains the complete inbound and outbound data flow with code examples illustrating packet reception, processing, routing, and transmission.

LinuxNetwork StackNetworking
0 likes · 33 min read
Inside Linux: How the Kernel Handles Network I/O from Packets to Applications
Deepin Linux
Deepin Linux
Jul 5, 2025 · Backend Development

Mastering High-Concurrency C++ Servers: Multithreaded Network Programming Explained

This comprehensive guide explores C++ multithreaded network programming for high‑concurrency servers, covering threads, processes, socket basics, TCP/UDP protocols, thread pools, synchronization primitives, lock‑free structures, I/O multiplexing techniques, and a practical high‑performance chat server implementation.

C++I/O MultiplexingNetwork programming
0 likes · 54 min read
Mastering High-Concurrency C++ Servers: Multithreaded Network Programming Explained
Architect's Guide
Architect's Guide
Jun 9, 2025 · Fundamentals

Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers

The article explains that the 65,535 limit refers only to available port numbers, while actual TCP concurrency on Linux depends on the 4‑tuple identification, memory, file‑descriptor limits, and port reuse, allowing servers to handle far more connections than the port count suggests.

LinuxNetworkingSocket
0 likes · 12 min read
Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers
Deepin Linux
Deepin Linux
Apr 21, 2025 · Backend Development

POSIX Multithreading and Network Programming in C: Threads, Synchronization, and Socket APIs

This article introduces the POSIX standard for portable multithreaded and network programming in C, explains thread creation, lifecycle, and synchronization mechanisms such as mutexes, semaphores and condition variables, and provides complete server‑client socket examples together with practical multithreaded file‑processing code and debugging tips.

POSIXSocketSynchronization
0 likes · 23 min read
POSIX Multithreading and Network Programming in C: Threads, Synchronization, and Socket APIs
Cognitive Technology Team
Cognitive Technology Team
Mar 24, 2025 · Fundamentals

Understanding Sockets and epoll: Kernel Abstractions and High‑Concurrency Design

Socket provides a file‑descriptor based network communication abstraction in the OS, while epoll uses a red‑black‑tree and ready‑queue mechanism to deliver O(log N) scalable I/O event handling, together forming the core design that enables high‑concurrency servers to efficiently manage thousands of connections.

IO MultiplexingNetwork programmingSocket
0 likes · 7 min read
Understanding Sockets and epoll: Kernel Abstractions and High‑Concurrency Design
Raymond Ops
Raymond Ops
Mar 11, 2025 · Backend Development

Master Go Socket and HTTP Programming: From Dial to Custom Requests

This article explains Go's socket programming workflow, the versatile net.Dial function for TCP, UDP, and ICMP connections, provides complete ICMP and TCP example programs, and then covers HTTP client usage with net/http, including basic methods, form posts, and custom request handling.

BackendGoNetwork programming
0 likes · 12 min read
Master Go Socket and HTTP Programming: From Dial to Custom Requests
Open Source Tech Hub
Open Source Tech Hub
Mar 4, 2025 · Backend Development

Unlock Python Power in PHP with phpy: New Features and Practical Examples

This article introduces phpy, an open‑source bridge that lets PHP import and execute Python packages, and walks through its latest features such as the with‑syntax, socket handle conversion, exception propagation, slicing, enum definition, annotated functions, and environment variable handling with concrete code samples.

InteropPythonSocket
0 likes · 8 min read
Unlock Python Power in PHP with phpy: New Features and Practical Examples
Deepin Linux
Deepin Linux
Dec 18, 2024 · Backend Development

Understanding Linux Kernel Sockets: Concepts, Types, and API Functions

This article provides a comprehensive overview of Linux socket programming, covering socket definitions, classifications such as stream, datagram, and raw sockets, connection-oriented versus connectionless communication, IP/port/MAC addressing, byte order considerations, and practical C API examples for creating and using sockets.

LinuxSocketTCP
0 likes · 35 min read
Understanding Linux Kernel Sockets: Concepts, Types, and API Functions
Open Source Linux
Open Source Linux
Dec 5, 2024 · Fundamentals

Mastering TCP State Machine: From LISTEN to TIME_WAIT Explained

This article provides a comprehensive guide to TCP connection states, common Linux commands for monitoring them, detailed explanations of each state transition, three‑way handshake, four‑way termination, flag meanings, keep‑alive mechanisms, and practical sysctl tuning to troubleshoot network issues.

KeepaliveSocketTCP
0 likes · 29 min read
Mastering TCP State Machine: From LISTEN to TIME_WAIT Explained
Test Development Learning Exchange
Test Development Learning Exchange
Sep 28, 2024 · Backend Development

Using Python's socket Library to Simulate HTTP Requests: Basic and Advanced Examples

This article explains how to use Python's socket module to craft and send raw HTTP GET, POST, and custom‑header requests, then shows how to encapsulate the logic into reusable classes that handle authentication, redirects, cookies, and HTTPS, providing a low‑level networking toolkit for developers.

NetworkingSocketprogramming
0 likes · 12 min read
Using Python's socket Library to Simulate HTTP Requests: Basic and Advanced Examples
php Courses
php Courses
Apr 16, 2024 · Backend Development

Backend Development Fundamentals: Processes, Sockets, TCP/IP, Nginx, FASTCGI, Byte Order, and Redis

This course provides an in‑depth exploration of core backend concepts—including processes, socket programming with TCP/IP, Nginx‑FASTCGI communication, host‑to‑network byte order conversion, and Redis fundamentals—to equip developers, system administrators, and network engineers with comprehensive backend development skills.

NetworkingNginxSocket
0 likes · 2 min read
Backend Development Fundamentals: Processes, Sockets, TCP/IP, Nginx, FASTCGI, Byte Order, and Redis
php Courses
php Courses
Feb 5, 2024 · Backend Development

Backend Development Fundamentals: Processes, Socket Programming, Nginx FASTCGI, Byte Order, and Redis Basics

This course offers an in‑depth exploration of process concepts, TCP/IP and Socket communication, Nginx‑FASTCGI integration, host‑to‑network byte order conversion, and Redis fundamentals, targeting backend developers, system administrators, and network engineers seeking comprehensive backend skill enhancement.

NginxSocketTCP/IP
0 likes · 3 min read
Backend Development Fundamentals: Processes, Socket Programming, Nginx FASTCGI, Byte Order, and Redis Basics
Open Source Tech Hub
Open Source Tech Hub
Jan 24, 2024 · Backend Development

How ReusePort Solves the Thundering Herd Problem in Workerman

This article explains the thundering herd issue caused by multiple workers waiting on the same socket event, describes how the SO_REUSEPORT socket option eliminates the wasteful wake‑ups, and shows step‑by‑step how Workerman can be configured to use reusePort for better concurrency and throughput.

BackendSocketreuseport
0 likes · 12 min read
How ReusePort Solves the Thundering Herd Problem in Workerman
php Courses
php Courses
Dec 27, 2023 · Backend Development

Using PHP’s fsockopen() Function to Open Network Connections

This article explains the PHP fsockopen() function, detailing its syntax, parameters, return values, and provides a complete example that demonstrates opening a TCP connection, sending an HTTP request, handling errors, and reading the response, including notes on SSL connections.

BackendNetwork programmingPHP
0 likes · 4 min read
Using PHP’s fsockopen() Function to Open Network Connections
OPPO Amber Lab
OPPO Amber Lab
Nov 30, 2023 · Information Security

Uncovering Android Socket Service Vulnerabilities: Techniques and Case Study

This article details the methodology for discovering and analyzing Android local socket service vulnerabilities, outlines prerequisite skills, explains service classifications, demonstrates data‑handling function tracing, and presents a CVE‑2023‑35694 case study, highlighting common flaw types and mitigation insights.

AndroidCVESocket
0 likes · 8 min read
Uncovering Android Socket Service Vulnerabilities: Techniques and Case Study
Goodme Frontend Team
Goodme Frontend Team
Nov 26, 2023 · Fundamentals

How Do Devices Talk? Unraveling Network Protocols, RPC, and CAN Basics

This article explains the fundamentals of device communication, from simple LAN setups using hubs and switches to internet protocols like HTTP, then guides the design of custom communication protocols, illustrates JSON‑RPC over sockets, and explores CAN bus specifics, offering practical code examples and architectural diagrams.

CANJSON-RPCRPC
0 likes · 17 min read
How Do Devices Talk? Unraveling Network Protocols, RPC, and CAN Basics
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
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 11, 2023 · Backend Development

Does Spring Boot’s connectionTimeout Affect Request Time? The Surprising Truth

This article demonstrates how Spring Boot’s connectionTimeout setting influences server‑client connections, using three experiments—controller sleep, HttpURLConnection requests, and raw socket communication—to reveal that the timeout only terminates idle client connections, not the duration of request processing.

HTTPSocketSpring Boot
0 likes · 4 min read
Does Spring Boot’s connectionTimeout Affect Request Time? The Surprising Truth
FunTester
FunTester
Aug 27, 2023 · Backend Development

Implementing a Netty WebSocket Client in Java

This article explains how to replace thread‑heavy WebSocket or Socket.IO clients with a Netty‑based Java WebSocket client, covering Maven dependencies, connection setup, event‑loop management, message sending, and a custom channel handler for high‑concurrency scenarios.

BackendNettyNettyClient
0 likes · 10 min read
Implementing a Netty WebSocket Client in Java
Top Architect
Top Architect
Aug 10, 2023 · Backend Development

Netty TCP Demo: Long‑Lived Socket Connection Architecture and Implementation

This article presents a complete Netty‑based TCP demo for IoT projects, detailing the project background, architecture, module layout, business flow, and step‑by‑step code explanations—including message queue handling, client creation, Netty client implementation, handler logic, caching, and testing endpoints—providing a practical reference for building robust long‑connection services.

Socket
0 likes · 19 min read
Netty TCP Demo: Long‑Lived Socket Connection Architecture and Implementation
Didi Tech
Didi Tech
Aug 3, 2023 · Cloud Native

eBPF-Based Cross-Language Non-Intrusive Traffic Recording for Cloud-Native Services

The article describes an eBPF‑based, language‑agnostic traffic recording framework that hooks low‑level socket operations and thread identifiers to capture complete request‑response flows across Java, PHP, and Go services without modifying application code, dramatically lowering implementation and maintenance costs for cloud‑native traffic replay.

Cloud NativeGoSocket
0 likes · 15 min read
eBPF-Based Cross-Language Non-Intrusive Traffic Recording for Cloud-Native Services
Liangxu Linux
Liangxu Linux
Jul 16, 2023 · Backend Development

Ensuring TCP Connections Stay Alive for 60 Seconds During Unstable Networks

This article explains how TCP/IP heartbeat and retransmission mechanisms work, shows how to configure Windows keep‑alive parameters, demonstrates using libwebsockets’ keep‑alive settings, and provides non‑blocking socket + select code to detect connection failures and enforce a 60‑second reconnection window for video conferencing applications.

KeepaliveNetwork programmingSocket
0 likes · 22 min read
Ensuring TCP Connections Stay Alive for 60 Seconds During Unstable Networks
Liangxu Linux
Liangxu Linux
Jul 3, 2023 · Fundamentals

What Exactly Is a Socket? From Plug Analogy to Kernel Implementation

This article explains the concept of sockets using a plug analogy, details their usage in TCP/UDP communication, explores the kernel's sock structures and inheritance tricks, and describes how sockets expose network functionality to user‑space programs through file descriptors and queues.

Linux kernelNetwork programmingSocket
0 likes · 17 min read
What Exactly Is a Socket? From Plug Analogy to Kernel Implementation
21CTO
21CTO
Jun 6, 2023 · Backend Development

Mastering TCP/UDP, Sockets, and Connection Pools: From OSI Model to Node.js

This comprehensive guide walks you through the OSI seven‑layer model, explains TCP and UDP fundamentals, details the three‑way handshake and four‑way termination, compares long and short connections, introduces heartbeat packets, and demonstrates how to build a custom protocol and a socket connection pool in Node.js.

Connection PoolNetwork ProtocolsNode.js
0 likes · 16 min read
Mastering TCP/UDP, Sockets, and Connection Pools: From OSI Model to Node.js
Architecture Digest
Architecture Digest
May 29, 2023 · Fundamentals

Understanding Network Protocols, TCP/UDP Handshakes, Socket Long Connections, and Socket Connection Pools

This article explains the OSI seven‑layer model, the principles and handshake processes of TCP and UDP, the differences between them, the concept of long‑living socket connections with heartbeats, custom application‑layer protocols, and how to implement a reusable socket connection pool in Node.js.

Connection PoolNetwork ProtocolsNode.js
0 likes · 16 min read
Understanding Network Protocols, TCP/UDP Handshakes, Socket Long Connections, and Socket Connection Pools
MaGe Linux Operations
MaGe Linux Operations
May 28, 2023 · Fundamentals

Master TCP/UDP, Sockets & Connection Pools: From OSI Model to Node.js

This article walks developers through network protocol fundamentals, explaining the OSI seven‑layer model, TCP three‑handshake and four‑teardown processes, UDP characteristics, long‑vs‑short connections, heartbeat mechanisms, custom protocol design, and a practical Node.js socket connection‑pool implementation.

Connection PoolNetwork ProtocolsNode.js
0 likes · 16 min read
Master TCP/UDP, Sockets & Connection Pools: From OSI Model to Node.js
Architect
Architect
May 25, 2023 · Fundamentals

Understanding Network Protocols, TCP/UDP Handshakes, and Socket Connection Pools

This article explains the OSI seven‑layer model, the differences between TCP and UDP, the three‑way handshake and four‑step termination processes, long‑living socket connections, heartbeat mechanisms, custom application‑layer protocols, and how to implement a socket connection pool using Node.js.

Connection PoolNetwork ProtocolsSocket
0 likes · 17 min read
Understanding Network Protocols, TCP/UDP Handshakes, and Socket Connection Pools
Test Development Learning Exchange
Test Development Learning Exchange
May 20, 2023 · Information Security

Build a Simple Python Port Scanner: Step‑by‑Step Guide

This article explains how to create a Python‑based network port scanner that probes a target host, uses sockets and multithreading to detect open TCP ports, and provides clear usage instructions, sample code, and optional enhancements for faster or more comprehensive scanning.

Argument ParsingPort ScannerPython
0 likes · 9 min read
Build a Simple Python Port Scanner: Step‑by‑Step Guide
Top Architect
Top Architect
May 6, 2023 · Backend Development

Netty TCP Client Demo with Spring Boot: Architecture, Message Queue, and Complete Code Walkthrough

An in‑depth tutorial demonstrates building a Netty‑based TCP client with Spring Boot, covering project architecture, module layout, message‑queue simulation, detailed Java code for client creation, connection handling, and testing endpoints, providing a complete, production‑ready demo for IoT socket communication.

BackendMessage QueueNetty
0 likes · 26 min read
Netty TCP Client Demo with Spring Boot: Architecture, Message Queue, and Complete Code Walkthrough
Top Architect
Top Architect
Apr 28, 2023 · Backend Development

Netty TCP Demo: Long‑Lived Socket Connection Architecture and Implementation

This article presents a complete Netty‑based TCP demo for IoT projects, detailing the project background, architecture, module layout, business flow, and in‑depth Java code examples—including a local queue, multithreaded processing, client creation, Redis locking, and SpringBoot integration—along with testing instructions and source links.

MessageQueueNettySocket
0 likes · 19 min read
Netty TCP Demo: Long‑Lived Socket Connection Architecture and Implementation
Architect's Guide
Architect's Guide
Apr 13, 2023 · Fundamentals

Understanding TCP Keepalive and HTTP Keepalive Mechanisms

This article explains the concepts, purposes, and inner workings of TCP keepalive and HTTP keepalive, compares their roles in maintaining network connections, and provides practical guidance on configuring related parameters and handling socket lifecycles in server environments.

HTTPKeepaliveNetworking
0 likes · 8 min read
Understanding TCP Keepalive and HTTP Keepalive Mechanisms
AI Cyberspace
AI Cyberspace
Apr 4, 2023 · Fundamentals

Mastering Linux Socket I/O: Blocking, Non‑Blocking, and Epoll Explained

This article explains the two‑stage socket I/O process in Linux, compares blocking, non‑blocking, and I/O multiplexing techniques, details the select, poll, and epoll APIs with their advantages and drawbacks, and provides complete C code examples for a high‑performance TCP server and client.

BlockingI/OLinux
0 likes · 20 min read
Mastering Linux Socket I/O: Blocking, Non‑Blocking, and Epoll Explained
Selected Java Interview Questions
Selected Java Interview Questions
Mar 22, 2023 · Backend Development

Netty TCP Demo: Architecture, Code Walkthrough, and Usage Guide

This article presents a comprehensive Netty TCP demo project, covering its architecture, module layout, business flow, detailed Java code for message queuing, client execution, handler implementation, testing endpoints, and deployment considerations, providing a practical learning resource for backend developers.

NettySocketSpring Boot
0 likes · 21 min read
Netty TCP Demo: Architecture, Code Walkthrough, and Usage Guide
Liangxu Linux
Liangxu Linux
Mar 7, 2023 · Fundamentals

Why 65,535 Isn’t the Real Limit for TCP Connections on Linux

The article explains that the 65,535 TCP port limit does not bound a Linux server’s concurrent connections, detailing how TCP connections are identified, the theoretical maximum of 2⁴⁸ connections for a server, and the practical constraints imposed by memory and file‑descriptor limits.

LinuxSocketTCP
0 likes · 11 min read
Why 65,535 Isn’t the Real Limit for TCP Connections on Linux
Efficient Ops
Efficient Ops
Jan 29, 2023 · Operations

How Linux Kernel Handles TCP Connections: Deep Dive into sock_common and Lookup

This article explores Linux kernel TCP connection handling by examining socket data structures, port range and file descriptor tuning, core functions like tcp_v4_rcv, and lookup mechanisms, while offering practical tips to boost client-side concurrent connections beyond traditional limits.

Linux kernelNetworkingOperations
0 likes · 9 min read
How Linux Kernel Handles TCP Connections: Deep Dive into sock_common and Lookup
IT Services Circle
IT Services Circle
Jan 9, 2023 · Operations

Python Server Resource Monitoring and Alerting Scripts

This article presents Python scripts for server‑side and client‑side resource monitoring, automatically checking CPU, memory, disk usage and network traffic, storing alerts in MySQL and optionally sending notifications via email or Enterprise WeChat, with deployment instructions and cron scheduling.

AlertingPythonServer Monitoring
0 likes · 19 min read
Python Server Resource Monitoring and Alerting Scripts
MaGe Linux Operations
MaGe Linux Operations
Dec 25, 2022 · Operations

Master Netstat: Decode Connections, Sockets & Routing with Practical Commands

This guide explains the netstat command’s purpose, interprets its output sections for active Internet connections and UNIX domain sockets, details common options such as -a, -t, -u, -l, -p, and provides numerous practical examples for listing ports, monitoring traffic, displaying routing tables, and identifying processes.

LinuxNetwork MonitoringSocket
0 likes · 12 min read
Master Netstat: Decode Connections, Sockets & Routing with Practical Commands
Architect's Guide
Architect's Guide
Dec 25, 2022 · Fundamentals

Understanding TCP Connection Limits and the Role of Port Numbers

The article explains how TCP connections are identified by a four‑tuple, clarifies the theoretical maximum of 65,535 client ports versus the far larger possible server connections, and discusses practical limits imposed by memory, file descriptors, and system configuration on Linux servers.

LinuxNetworkingPort Numbers
0 likes · 10 min read
Understanding TCP Connection Limits and the Role of Port Numbers
政采云技术
政采云技术
Sep 13, 2022 · Fundamentals

Understanding TCP Keepalive Mechanism and Its Parameters

This article explains the TCP keepalive mechanism, its purpose, default parameters, how to configure and verify it on Linux, its drawbacks, and the distinction between TCP keepalive and HTTP Keep-Alive, providing practical code examples and network analysis steps.

KeepaliveLinuxNetworking
0 likes · 11 min read
Understanding TCP Keepalive Mechanism and Its Parameters
Liangxu Linux
Liangxu Linux
Aug 31, 2022 · Operations

Why TIME_WAIT Connections Accumulate and How to Fix Them

In high‑concurrency scenarios, massive TIME_WAIT TCP connections can exhaust local ports, causing new connections to fail, but by understanding the TCP four‑handshake, adjusting socket reuse settings, and using keep‑alive, you can mitigate the issue.

LinuxNetworkingOperations
0 likes · 8 min read
Why TIME_WAIT Connections Accumulate and How to Fix Them
Open Source Linux
Open Source Linux
Aug 17, 2022 · Operations

Mastering TCP States: Diagnose Network Issues with Linux Tools

This guide explains TCP connection states, essential Linux commands, three‑way handshake, four‑way termination, simultaneous open/close, flag meanings, common error codes, and keep‑alive techniques to help you troubleshoot and secure network services effectively.

KeepaliveLinuxSocket
0 likes · 31 min read
Mastering TCP States: Diagnose Network Issues with Linux Tools
Liangxu Linux
Liangxu Linux
Jul 22, 2022 · Fundamentals

When Does Socket Buffer Size Actually Impact TCP Performance? A Practical Linux Experiment

This article builds a simple two‑VM testbed to explore how Linux socket buffer parameters affect TCP throughput, demonstrates baseline speeds, adds artificial network delay, analyzes the bandwidth‑delay product, and shows how tuning tcp_wmem, tcp_rmem and related sysctl settings can recover performance on high‑latency links.

Socketbuffersysctl
0 likes · 21 min read
When Does Socket Buffer Size Actually Impact TCP Performance? A Practical Linux Experiment
Open Source Linux
Open Source Linux
Apr 25, 2022 · Backend Development

Master TCP/UDP, Sockets & Connection Pools in Node.js – From Basics to Advanced

This article walks developers through the fundamentals of the OSI model, TCP three‑way handshake and UDP characteristics, explains socket concepts, demonstrates Node.js server and client implementations with heartbeats and custom protocols, and details how to build and use a socket connection pool with the generic‑pool library.

Connection PoolNode.jsSocket
0 likes · 39 min read
Master TCP/UDP, Sockets & Connection Pools in Node.js – From Basics to Advanced
ITPUB
ITPUB
Feb 21, 2022 · Backend Development

Unlocking Multi‑Process Server Speed: How Linux REUSEPORT Works

This article explains why Linux kernels 3.9+ allow multiple processes to bind the same port, how the REUSEPORT option implements kernel‑level load balancing, and provides step‑by‑step examples showing configuration, code snippets, and performance verification.

BackendLinuxSO_REUSEPORT
0 likes · 14 min read
Unlocking Multi‑Process Server Speed: How Linux REUSEPORT Works
IT Services Circle
IT Services Circle
Feb 13, 2022 · Fundamentals

Does a TCP Connection Persist After Unplugging the Network Cable?

Unplugging a network cable does not immediately terminate a TCP connection; the kernel’s socket state remains ESTABLISHED, and the connection’s fate depends on data transmission, retransmission limits, TCP keepalive settings, and whether either side detects a failure.

KeepaliveLinuxSocket
0 likes · 10 min read
Does a TCP Connection Persist After Unplugging the Network Cable?
Liangxu Linux
Liangxu Linux
Jan 10, 2022 · Operations

Why the ss Command Beats netstat for Fast Socket Monitoring

The article explains how the Linux ss command provides a faster, more detailed view of TCP/UDP sockets than netstat, lists its key features, demonstrates practical examples for filtering by state, address, and port, and shows how to use various ss options for effective network diagnostics.

LinuxNetwork MonitoringSocket
0 likes · 8 min read
Why the ss Command Beats netstat for Fast Socket Monitoring
NiuNiu MaTe
NiuNiu MaTe
Jan 8, 2022 · Fundamentals

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

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

Connection terminationHandshakeSocket
0 likes · 23 min read
Why TCP Can Close Connections in 2, 3, or 4 Handshakes – Hidden Mechanics Explained
Su San Talks Tech
Su San Talks Tech
Oct 18, 2021 · Backend Development

Demystifying Socket I/O: From Creation to Blocking in TCP Communication

This article explains the fundamentals of I/O, details how sockets are created, bound, listened to, and accepted, describes the client-side connect process, and clarifies why read, write, accept, and connect operations can block, laying the groundwork for deeper Netty studies.

BlockingNettyNetwork I/O
0 likes · 10 min read
Demystifying Socket I/O: From Creation to Blocking in TCP Communication
Su San Talks Tech
Su San Talks Tech
Oct 13, 2021 · Fundamentals

Why Can You Ping 127.0.0.1 Even When the Network Is Down?

This article explains the nature of the 127.0.0.1 loopback address, why pinging it works without a physical network connection, the differences between 127.0.0.1, localhost and 0.0.0.0, and how the kernel processes loopback traffic using a virtual network interface.

IP addressSocketkernel
0 likes · 13 min read
Why Can You Ping 127.0.0.1 Even When the Network Is Down?
ITPUB
ITPUB
Jul 7, 2021 · Backend Development

What Really Happens Inside listen()? Uncovering Linux Kernel’s Connection Queues

This article dives deep into the Linux kernel implementation of the listen system call, explaining how the kernel creates and initializes the full‑connection and half‑connection queues, how backlog and system parameters interact, and why these steps are essential before a server can accept client connections.

BackendLinuxSocket
0 likes · 13 min read
What Really Happens Inside listen()? Uncovering Linux Kernel’s Connection Queues
MaGe Linux Operations
MaGe Linux Operations
Jun 20, 2021 · Information Security

How to Build TLS-Encrypted Socket Server and Client in Go

This article explains the fundamentals of TLS as a transport‑layer security protocol, demonstrates how to create a TLS‑encrypted socket server and client in Go, and shows how to generate and verify certificate chains using tools like mkcert.

CertificateSocketTLS
0 likes · 8 min read
How to Build TLS-Encrypted Socket Server and Client in Go
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
ITPUB
ITPUB
Apr 25, 2021 · Backend Development

How Epoll Saves Processes from Endless Polling: A Story of Linux I/O

Through a playful narrative, the article explains how Linux processes interact with the kernel, why blocking I/O is inefficient, and how the epoll system call and its associated mechanisms like soft interrupts and the scheduler dramatically improve network concurrency and performance.

LinuxNetwork I/ONon-blocking
0 likes · 7 min read
How Epoll Saves Processes from Endless Polling: A Story of Linux I/O
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
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.

ChatroomConcurrentHashMapNetwork programming
0 likes · 14 min read
Implementing a Real-Time Network Chatroom in Java Using TCP and Multithreading
Efficient Ops
Efficient Ops
Dec 9, 2020 · Backend Development

Master High‑Performance Backend with Linux Sockets, epoll, and OpenResty

This guide explains how Linux socket I/O multiplexing (select, poll, epoll) powers high‑concurrency servers, why caching and asynchronous non‑blocking are crucial, and provides step‑by‑step instructions to install, configure, and develop with OpenResty, Nginx, and Lua for scalable backend applications.

LinuxLuaNginx
0 likes · 12 min read
Master High‑Performance Backend with Linux Sockets, epoll, and OpenResty
FunTester
FunTester
Dec 4, 2020 · Backend Development

How to Test a Teacher‑Student Chat Socket API with Groovy Scripts

This article walks through building and executing a Groovy‑based test script that registers two users, joins a room, exchanges chat messages over a Socket (WebSocket) connection, and cleanly closes the sockets, illustrating the full workflow and code structure for backend socket API testing.

BackendChatGroovy
0 likes · 9 min read
How to Test a Teacher‑Student Chat Socket API with Groovy Scripts
FunTester
FunTester
Nov 30, 2020 · Backend Development

A Practical Java WebSocket Client Wrapper: Design, Features, and Demo

This article introduces a reusable Java WebSocket client wrapper that adds convenient date handling, message logging, configurable constants, and performance‑testing utilities, explains its implementation details with full source code, and provides a simple demo showing connection, messaging, and graceful shutdown.

GitPerformance TestingSocket
0 likes · 8 min read
A Practical Java WebSocket Client Wrapper: Design, Features, and Demo
MaGe Linux Operations
MaGe Linux Operations
Nov 28, 2020 · Operations

Why ss Beats netstat: Fast Socket Monitoring Commands Explained

This article introduces the Linux ss command for displaying socket statistics, compares its speed and capabilities with netstat, provides common usage examples, explains state filters, and shows why ss is the preferred tool for efficient network monitoring and troubleshooting.

Socketnetworkss
0 likes · 9 min read
Why ss Beats netstat: Fast Socket Monitoring Commands Explained
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