Menu

Post image 1
Post image 2
1 / 2
0

Linux network tuning: TCP BBR, NIC ring buffers, and SFTP throughput

DEV Community·Odilon HUGONNOT·about 1 month ago
#knstqcP0
#tcp#proftpd#linux#bbr#fullscreen#enter
Reading 0:00
15s threshold

The server is on a Gbit link. ethtool confirms 1000 Mbps on the interface. And yet every SFTP transfer caps out somewhere around 800 KB/s. Not 80 MB/s — 800 kilobytes per second. Less than 1% of the theoretical capacity. The problem isn't bandwidth. It's a stack of bad defaults: a congestion control algorithm designed for year-2000 networks, microscopically small NIC ring buffers, and application socket buffers sized for DSL lines. Here are the five tweaks that fixed it. TCP BBR: replacing CUBIC CUBIC has been Linux's default congestion control algorithm since 2006. It works by growing the congestion window ( cwnd ) until it detects a packet loss, then cutting it in half. On modern low-latency, high-bandwidth networks, this loss-triggered reaction is a problem: a single dropped packet (thermal noise, NIC buffer overflow) causes a 50% throughput drop followed by a slow recovery.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More