WeChat Client Technology Team
WeChat Client Technology Team
Jan 4, 2017 · Backend Development

How WeChat Optimizes Mobile TCP Connections: Timeout, Strategies, and IP Sorting

This article examines WeChat's Mars STN module, detailing TCP connection timeout handling, the trade‑offs between serial, concurrent and composite connection strategies, and the evolution of IP‑Port sorting algorithms—from random combinations to history‑aware and forgetting mechanisms—to achieve high performance, low load, and high availability on mobile networks.

IP sortingMarsMobile Networking
0 likes · 18 min read
How WeChat Optimizes Mobile TCP Connections: Timeout, Strategies, and IP Sorting
Tencent TDS Service
Tencent TDS Service
Dec 15, 2016 · Operations

Why Mobile Apps Need Their Own Timeout Strategy Beyond TCP

This article examines the design of read/write timeout mechanisms in WeChat's STN module, comparing TCP/IP layer retransmission with application‑level strategies, presenting experimental data from Android and iOS devices, and proposing total, first‑packet, packet‑gap, and dynamic timeout solutions to improve reliability on mobile networks.

Application LayerMobile NetworkingNetwork Reliability
0 likes · 15 min read
Why Mobile Apps Need Their Own Timeout Strategy Beyond TCP
WeChat Client Technology Team
WeChat Client Technology Team
Dec 9, 2016 · Operations

How WeChat’s STN Manages Read/Write Timeouts in Mobile Networks

This article explores the design and experimentation of read/write timeout mechanisms in WeChat's STN module, detailing TCP/IP timeout behavior, mobile platform variations, and three layered application‑level strategies—total, stepwise, and dynamic—to improve reliability and user experience on unstable networks.

Mobile NetworkingSTNTCP
0 likes · 13 min read
How WeChat’s STN Manages Read/Write Timeouts in Mobile Networks