CC_DCTCP(4)
π¦ cc_dctcp β the DCTCP Congestion Control Algorithm π¦
okay bestie so this is a page from the Kernel Interfaces Manual, and it's literally about the DCTCP congestion control algorithm. buckle up, it's giving data center energy β¨
π NAME π
cc_dctcp β the DCTCP Congestion Control Algorithm. that's it, that's the whole name. iconic.
πΈ DESCRIPTION πΈ
so DCTCP stands for data center TCP, and its whole thing β its main character mission β is to maximise throughput and minimise latency in data center networks. how? by using the proportion of Explicit Congestion Notification (ECN) marks it gets from hardware that's capable of doing that, as a congestion signal. slay π
DCTCP uses the fraction of ECN marked packets to update the congestion window. the window reduction ratio is always <= 1/2. like, only when all of the packets are marked does the congestion window get halved. periodt.
so to keep the ECN marked fraction accurate, 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. no cap, it's the same system π«Ά
the FreeBSD DCTCP implementation has two minor modifications for the one-sided deployment:
- considering the situation where DCTCP is used as sender and classic ECN is used as receiver β DCTCP sets the CWR flag as the reaction to the ECE flag β¨
- also, when classic ECN is used as sender and DCTCP is used as receiver, DCTCP avoids mirroring 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. go look, 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 used to estimate the congestion on the link. 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, default is4, which results in an effective gain of1 / ( 2 ^ shift_g ), or1/16th. math girlie hours π₯slowstartβ a flag for whether the congestion window should be reduced by one half after slow start. valid settings0and1, default0. πect1β controls whether a DCTCP session should use IPECT(0)marking when sending out segments (this is the default), orECT(1)marking, making use of L4S infrastructure. changes to this setting will only affect new sessions β existing sessions will retain their previous marking value. so like, no takesie-backsies for sessions already in flight π
π SEE ALSO π
cc_cdg(4)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)
and the reading list, because citations are cute actually π:
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. π
and the module was first released in 2014 by Midori Kato, studying at Keio University, Japan. she ate and left no crumbs π
π 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. teamwork makes the dream work fr fr π«Ά
and that's the whole page bestie!! big shoutout to Debian, this version is dated November 8, 2022 β mwah, love u, go read cc_cubic(4) next πβ¨π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2014 Midori Kato <katoon@sfc.wide.ad.jp>
- Copyright (c) 2014 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms