Linux Networking: Let the Page Fly [Part 1]

Linux Networking: Let the Page Fly [Part 1]

While troubleshooting an issue related to a network device, I finally found the root cause. The phenomenon is that <span>dmesg</span> keeps printing the following log: page_pool_release_retry() stalled pool shutdown 1 inflight 2899 sec Root cause: The Kafka Go library IBM/sarama[1] has a TCP connection leak issue (Client SeekBroker Connection Leak[2]). TL;DR: The leaked TCP connections … Read more

Socket Communication on Specified Network Interface in Linux

In many devices running Linux, there are multiple network interfaces. How can we ensure that our program’s Socket communication is only effective on a specified network interface?We can bind the Socket to the desired network interface (e.g., eth1, modify as needed) using the following code: #define INTERFAXENAME "eth1" struct ifreq interface;strncpy(interface.ifr_ifrn.ifrn_name, INTERFAXENAME, sizeof(INTERFAXENAME));if (setsockopt(sock, SOL_SOCKET, … Read more

Understanding TCP, HTTP, Socket, and Socket Connection Pool

Understanding TCP, HTTP, Socket, and Socket Connection Pool

Every evening at 18:00, let's grow together! Source: sf.gg/a/1190000014044351 Introduction As developers, we often hear terms like <span>HTTP protocol, TCP/IP protocol, UDP protocol, Socket, Socket long connection, Socket connection pool</span>. However, not everyone can clearly understand their relationships, differences, and principles. This article will explain their relationships step by step, starting from the basics of … Read more

Introduction to Python: Network Programming

Introduction to Python: Network Programming

Python provides two levels of network services: low-level Socket and high-level SocketServer. These services assist developers in network communication and simplify server-side development. What is a Socket? Socket is an endpoint for communication between applications, primarily used for data exchange over a network. It is an interface provided by the operating system that allows applications … Read more

Architecture Design of HTTP and Optimization Techniques

Architecture Design of HTTP and Optimization Techniques

This article is authored by Author: Yan Zhenjie Link: https://yanzhenjie.blog.csdn.net/article/details/93098495 This article is published with the author’s permission. This article primarily helps readers understand the collaborative principles of HTTP, the various layers of protocols related to HTTP, architectural design on both the server and client sides, and some optimization techniques. The main focus is on … Read more

Http Server: A Struggling Student’s Comeback

Http Server: A Struggling Student's Comeback

When I graduated, the country still had a system of job allocation. My best friend Xiaoming was assigned to a big city called Database, where he could sit in a high-end data center every day, specializing in SQL query optimization. His job was stable and comfortable. In the neighboring dorm, Xiaobai was sent to Compiler … Read more

Reflections on CPU Sockets and the Era of SoC

Reflections on CPU Sockets and the Era of SoC

You cannot just take any processor and plug it into a motherboard; this involves key factors such as the brand of the product and the type of socket. Traditional CPUs require various independent components to function, while SoCs integrate the CPU, GPU, RAM, peripheral interfaces, and more into a single silicon chip. The benefits of … Read more