Refining Core Development Skills
Author

Refining Core Development Skills

Fei has over 10 years of development experience at Tencent and Sogou. Through this account, he shares his deep insights on performance.

143
Articles
0
Likes
432
Views
0
Comments
Recent Articles

Latest from Refining Core Development Skills

100 recent articles max
Refining Core Development Skills
Refining Core Development Skills
Sep 8, 2021 · Fundamentals

How tcpdump Captures Packets Inside the Linux Kernel

This article explains the internal mechanisms of tcpdump, showing how it registers a virtual protocol in the kernel's ptype_all list to intercept packets during both receive and transmit paths, how netfilter interacts with these paths, and provides guidance for building a custom packet‑capture program.

Packet Capturelibpcapnetfilter
0 likes · 10 min read
How tcpdump Captures Packets Inside the Linux Kernel
Refining Core Development Skills
Refining Core Development Skills
Aug 9, 2021 · Backend Development

Analyzing TCP Handshake Anomalies: Port Exhaustion, Connection Queue Overflow, and Performance Mitigation

This article examines common TCP handshake anomalies in backend systems, detailing how client port exhaustion and server-side connection queue overflows cause packet loss and latency spikes, while providing kernel-level insights and practical configuration strategies to optimize network performance and ensure reliable service availability.

Linux kernelSystem TuningTCP handshake
0 likes · 14 min read
Analyzing TCP Handshake Anomalies: Port Exhaustion, Connection Queue Overflow, and Performance Mitigation
Refining Core Development Skills
Refining Core Development Skills
Jul 22, 2021 · Backend Development

Deep Dive into the TCP Three‑Way Handshake: Kernel Queues, Syncookies and Code Walkthrough

This article explains the complete kernel‑level implementation of the TCP three‑way handshake, covering server listen queue allocation, client connect state handling, SYN/SYN‑ACK processing, syncookie protection, timer management, socket creation, and the accept path, with detailed code examples.

KernelLinuxNetworking
0 likes · 16 min read
Deep Dive into the TCP Three‑Way Handshake: Kernel Queues, Syncookies and Code Walkthrough
Refining Core Development Skills
Refining Core Development Skills
Jul 19, 2021 · Backend Development

An In‑Depth Introduction to Sogou’s Workflow C++ Server Framework

This article presents a comprehensive overview of the open‑source Workflow framework by Sogou, highlighting its high‑performance asynchronous architecture, rich feature set, practical C++ code examples for building servers and clients, and detailed explanations of its task‑flow and timer implementations for backend developers.

AsynchronousC++Network
0 likes · 12 min read
An In‑Depth Introduction to Sogou’s Workflow C++ Server Framework
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.

KernelLinuxNetworking
0 likes · 21 min read
How Linux Determines the Client Port for TCP Connections