CC_DCTCP(4)
π cc_dctcp β the DCTCP Congestion Control Algorithm π
okay bestie, welcome to cc_dctcp(4), straight outta the Kernel Interfaces Manual β¨ this is your girl explaining data center TCP like we're texting at 2am, but fr fr every detail is here, no cap π«Ά
πΈ DESCRIPTION πΈ
So. The DCTCP (that's data center TCP) congestion control algorithm is literally that girl β she's trying to maximise throughput AND minimise latency in data center networks, which is giving main character energy β¨ and she does it by utilising the proportion of Explicit Congestion Notification (ECN) marks she receives from capable hardware as a congestion signal. iconic behavior, honestly π
DCTCP uses the fraction of ECN marked packets to update the congestion window. The window reduction ratio is always <= 1/2 β like, she never goes below half, periodt. Only when all of the packets are marked does the congestion window get halved. π
To keep the accuracy of the ECN marked fraction, a DCTCP receiver mirrors back incoming (or missing) CE marks by setting (or clearing) ECE marks. This feedback methodology is also adopted when the receiver uses delayed ACK. she's thorough, we love that π
The FreeBSD DCTCP implementation includes two minor modifications for the one-sided deployment:
- When DCTCP is used as sender and classic ECN is used as receiver, DCTCP sets the CWR flag as the reaction to the ECE flag. π₯
- When classic ECN is used as sender and DCTCP is used as receiver, DCTCP avoids to mirror back ACKs only when the CWR flag is set in the incoming packet. π¦
The other specifications are based on the paper and the RFC referenced in the βSEE ALSOβ section below. iykyk π
π§ MIB Variables π§
The algorithm exposes the following tunable variables in the net.inet.tcp.cc.dctcp branch of the sysctl(3) MIB:
alphaβ the initial value to estimate the congestion on the link. The valid range is from0to1024, where1024reduces the congestion window to half, if a CE is observed in the first window andalphacould not yet adjust to the congestion level on that path. Default is1024. β¨shift_gβ an estimation gain in thealphacalculation. This influences the responsiveness when adjustingalphato the most recent observed window. Valid range from0to10, the default is4, resulting in an effective gain of1 / ( 2 ^ shift_g ), or1/16th. πslowstartβ a flag if the congestion window should be reduced by one half after slow start. Valid settings0and1, default0. πΈ
π₯ SEE ALSO π₯
cc_chd(4), cc_cubic(4), cc_hd(4), cc_htcp(4), cc_newreno(4), cc_vegas(4), mod_cc(4), tcp(4), mod_cc(9)
Mohammad Alizadeh, Albert Greenberg, David A. Maltz, Jitendra Padhye, Parveen Patel, Balaji Prabhakar, Sudipta Sengupta, and Murari Sridharan, βData Center TCP (DCTCP)β, ACM SIGCOMM 2010, http://research.microsoft.com/pubs/121386/dctcp-public.pdf, 63-74, July 2010.
Stephen Bensley, Dave Thaler, Praveen Balasubramanian, Lars Eggert, and Glenn Judd, Data Center TCP (DCTCP): TCP Congestion Control for Data Centers, https://tools.ietf.org/html/rfc8257.
β HISTORY β
The cc_dctcp congestion control module first appeared in FreeBSD 11.0. π
The module was first released in 2014 by Midori Kato studying at Keio University, Japan. ππ
π AUTHORS π
The cc_dctcp congestion control module and this manual page were written by Midori Kato katoon@sfc.wide.ad.jp and Lars Eggert lars@netapp.com with help and modifications from Hiren Panchasara hiren@FreeBSD.org π«Ά
and that's the whole vibe check bestie β shoutout to the Debian crew, this page is dated July 29, 2019, and yes it's still out here as CC_DCTCP(4) in the Kernel Interfaces Manual πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2014 Midori Kato <katoon@sfc.wide.ad.jp>
- Copyright (c) 2014 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms