CC_CDG(4)
π CC_CDG(4) β cc_cdg π
welcome to the kernel interfaces manual, bestie. this is the whole group-chat-friendly rundown of cc_cdg, and we are keeping every single detail β no cap. π«Άβ¨
β¨ NAME β¨
cc_cdg β CDG Congestion Control Algorithm
π DESCRIPTION π
okay so CAIA-Delay Gradient (CDG) is a hybrid congestion control algorithm which reacts to both packet loss and inferred queuing delay. it attempts to operate as a delay-based algorithm where possible, but utilises heuristics to detect loss-based TCP cross traffic and will compete effectively as required. CDG is therefore incrementally deployable and suitable for use on shared networks. slay. π
during delay-based operation, CDG uses a delay-gradient based probabilistic backoff mechanism, and will also try to infer non congestion related packet losses and avoid backing off when they occur. during loss-based operation, CDG essentially reverts to cc_newreno(4)-like behaviour. iconic.
CDG switches to loss-based operation when it detects that a configurable number of consecutive delay-based backoffs have had no measurable effect. it periodically attempts to return to delay-based operation, but will keep switching back to loss-based operation as required. the duality, honestly. π¦
π§ MIB Variables π§
the algorithm exposes the following variables in the net.inet.tcp.cc.cdg branch of the sysctl(3) MIB:
versionβ current algorithm/implementation version number. πbeta_delayβ delay-based window decrease factor as a percentage (on delay-based backoff,w = w * beta_delay / 100). default is70.beta_lossβ loss-based window decrease factor as a percentage (on loss-based backoff,w = w * beta_loss / 100). default is50.exp_backoff_scaleβ scaling parameter for the probabilistic exponential backoff. default is2.smoothing_factorβ number of samples used for moving average smoothing (0means no smoothing). default is8.loss_compete_consec_congβ number of consecutive delay-gradient based congestion episodes which will trigger loss-based CC compatibility. default is5.loss_compete_hold_backoffβ number of consecutive delay-gradient based congestion episodes to hold the window backoff for loss-based CC compatibility. default is5.alpha_incβ if non-zero, this enables an experimental mode where CDG's window increase factor (alpha) is increased by1 MSSeveryalpha_incRTTs during congestion avoidance mode. (settingalpha_incto1results in the most aggressive growth of the window increase factor over time. use higheralpha_incvalues for slower growth.) default is0.
π₯ SEE ALSO π₯
cc_chd(4)cc_cubic(4)cc_dctcp(4)cc_hd(4)cc_htcp(4)cc_newreno(4)cc_vegas(4)h_ertt(4)mod_cc(4)tcp(4)khelp(9)mod_cc(9)
also the research paper vibes:
- D. A. Hayes and G. Armitage, βRevisiting TCP Congestion Control using Delay Gradientsβ, Networking 2011 Proceedings, Part II, 328-341, May 2011.
- N. Khademi and G. Armitage, Minimising RTT across homogeneous 802.11 WLANs with CAIA Delay-Gradient TCP (v0.1), CAIA Technical Report 121113A, http://caia.swin.edu.au/reports/121113A/CAIA-TR-121113A.pdf, November 2012.
π ACKNOWLEDGEMENTS π
development and testing of this software were made possible in part by grants from the FreeBSD Foundation and The Cisco University Research Program Fund, a corporate advised fund of Silicon Valley Community Foundation. iconic support, fr fr. π
π¦ HISTORY π¦
the cc_cdg congestion control module first appeared in FreeBSD 9.2.
the module was first released in 2011 by David Hayes whilst working on the NewTCP research project at Swinburne University of Technology's Centre for Advanced Internet Architectures, Melbourne, Australia. more details are available at:
http://caia.swin.edu.au/urp/newtcp/
π AUTHORS π
the cc_cdg congestion control module was written by David Hayes <david.hayes@ieee.org>. this manual page was written by Lawrence Stewart <lstewart@FreeBSD.org> and Grenville Armitage <garmitage@swin.edu.au>. periodt. π
π BUGS π
the underlying algorithm and parameter values are still a work in progress and may not be optimal for some network scenarios. not me pretending it's perfect β it literally says work in progress, bestie. π
π that's the page, bestie β sourced from the Debian manual, dated May 13, 2021, for CC_CDG(4). π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2013 Swinburne University of Technology, Melbourne, Australia
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms