Tag

tcp

0 views collected around this technical thread.

Architect
Architect
Jun 10, 2025 · Operations

How Many TCP Connections Can a Server Really Handle? Limits and Tuning

This article explains the practical limits on how many TCP connections a Linux server or client can support, covering file‑descriptor parameters, memory consumption per socket, kernel tuning examples, and scaling calculations for large‑scale long‑connection services.

File DescriptorsLinuxconnection limits
0 likes · 15 min read
How Many TCP Connections Can a Server Really Handle? Limits and Tuning
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.

ConcurrencyLinuxnetworking
0 likes · 12 min read
Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers
Cognitive Technology Team
Cognitive Technology Team
Jun 1, 2025 · Fundamentals

Understanding TCP and UDP Sockets and Port Usage

This tutorial explains the basic concepts of TCP and UDP protocols, their differences, how network ports work, and demonstrates through examples whether TCP and UDP sockets can share the same port number.

Network PortsSocketsUDP
0 likes · 7 min read
Understanding TCP and UDP Sockets and Port Usage
Java Tech Enthusiast
Java Tech Enthusiast
May 4, 2025 · Fundamentals

Technical Interview Q&A: TCP, Redis, Kafka, CAP Theorem, Singleton, C++ STL, and Algorithms

This guide reviews common backend interview topics, explaining TCP TIME_WAIT behavior, multi‑port listening, full page load steps, Redis data types, Kafka consumer sizing and at‑most‑once semantics, the CAP theorem, Singleton usage, C++ std::map complexity, and an O(n) doubly‑linked list reversal algorithm.

AlgorithmsC++CAP theorem
0 likes · 12 min read
Technical Interview Q&A: TCP, Redis, Kafka, CAP Theorem, Singleton, C++ STL, and Algorithms
php中文网 Courses
php中文网 Courses
Apr 24, 2025 · Backend Development

Introduction to Socket Programming in Python: TCP and UDP Examples

This article explains the fundamentals of socket programming in Python, covering basic concepts such as IP addresses, ports, and protocols, and provides complete TCP and UDP server/client code examples along with common troubleshooting tips and advanced modules for building robust network applications.

NetworkPythonSocket Programming
0 likes · 7 min read
Introduction to Socket Programming in Python: TCP and UDP Examples
Deepin Linux
Deepin Linux
Apr 21, 2025 · Fundamentals

TCP Protocol: Overview, Mechanisms, and Practical Usage

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

C++ Socketcongestion controlflow control
0 likes · 42 min read
TCP Protocol: Overview, Mechanisms, and Practical Usage
Cognitive Technology Team
Cognitive Technology Team
Apr 14, 2025 · Operations

TCP Out‑of‑Memory on AWS EC2: Diagnosis and Kernel Parameter Tuning

An AWS EC2 instance behind an Elastic Load Balancer became unresponsive due to repeated TCP out‑of‑memory errors, which were resolved by examining kernel messages, adjusting tcp_mem‑related kernel parameters, and rebooting the server after a long uptime.

AWSEC2Linux
0 likes · 6 min read
TCP Out‑of‑Memory on AWS EC2: Diagnosis and Kernel Parameter Tuning
Deepin Linux
Deepin Linux
Mar 1, 2025 · Backend Development

Comprehensive Guide to C++ Network Programming Interview Questions

This article provides an extensive overview of C++ network programming concepts frequently asked in interviews, covering sockets, TCP/UDP differences, I/O multiplexing models, handshake mechanisms, packet framing issues, concurrency strategies, code examples for servers and clients, and performance optimization techniques.

C++ConcurrencyNetwork Programming
0 likes · 85 min read
Comprehensive Guide to C++ Network Programming Interview Questions
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.

C++LinuxNetwork Programming
0 likes · 35 min read
Understanding Linux Kernel Sockets: Concepts, Types, and API Functions
IT Services Circle
IT Services Circle
Dec 2, 2024 · Backend Development

Debugging a TCP Packet Length Bug That Blocks Production at 70% Progress

The article analyzes a mysterious production stall caused by a TCP communication bug where the D4 and D5 stages are merged, leading to a mis‑aligned length field that makes the server read an incorrect payload size, and presents two concrete fixes.

Minabackenddebugging
0 likes · 11 min read
Debugging a TCP Packet Length Bug That Blocks Production at 70% Progress
Architecture Development Notes
Architecture Development Notes
Nov 27, 2024 · Databases

Designing a Minimalist Client API for a Rust Database with TCP Serialization

This article explains how to expose a lightweight, dependency‑free client API for a Rust‑based database by defining a simple TCP‑based JSON serialization protocol, detailing non‑functional and functional requirements, the Message and Command structures, and providing a concrete Ping command implementation in Rust.

APICommandDatabase
0 likes · 7 min read
Designing a Minimalist Client API for a Rust Database with TCP Serialization
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.

backenddebugginglength field bug
0 likes · 10 min read
Debugging a TCP Communication Bug That Stops Device Production at 70% Due to Length Field Misalignment
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++Database
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++ exampleReliable Transmissioncongestion control
0 likes · 39 min read
TCP Reliable Transmission Mechanisms and Implementation Details
IT Services Circle
IT Services Circle
Oct 2, 2024 · Fundamentals

Understanding TCP/UDP Packet Fragmentation, MSS/MTU, Nagle Algorithm, and Sticky Packet Issues

This article explains how TCP and UDP handle packet fragmentation, the differences between MSS and MTU, why data slicing is needed, how the Nagle algorithm works, the causes of sticky packet problems, and practical methods to avoid or resolve them in network programming.

Nagle algorithmUDPnetwork fundamentals
0 likes · 17 min read
Understanding TCP/UDP Packet Fragmentation, MSS/MTU, Nagle Algorithm, and Sticky Packet Issues
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 5, 2024 · Databases

Analyzing and Resolving OceanBase Connection Timeout via OBProxy Logs and Packet Capture

This article walks through a production‑level OceanBase connection‑timeout incident, detailing how to examine OBProxy logs, capture and analyze network packets with tcpdump and Wireshark, identify a blocked random port, and apply kernel‑parameter fixes to prevent the issue.

DatabaseLinuxOBproxy
0 likes · 10 min read
Analyzing and Resolving OceanBase Connection Timeout via OBProxy Logs and Packet Capture
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++ConcurrencyGo
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.

CDNCGIDatabase Scaling
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
Architect's Guide
Architect's Guide
Jul 26, 2024 · Fundamentals

Maximum Concurrent TCP Connections: Theory, Limits, and Practical Considerations

This article explains how TCP connections are identified, the theoretical maximum numbers for client and server sides, and why real‑world limits are governed by system resources, port reuse, and server architecture rather than the 65,535 port ceiling.

ConcurrencyLinuxnetworking
0 likes · 15 min read
Maximum Concurrent TCP Connections: Theory, Limits, and Practical Considerations