CC_HD(4)

๐Ÿ“ฆ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

๐Ÿ’… CC_HD(4) โ€” the cc_hd girlies' manual page โœจ

okay so bestie, you're looking at cc_hd(4), section 4 of the Kernel Interfaces Manual โ€” yes it's a driver-ish/manual page situation, no cap, and it's all about the HD Congestion Control Algorithm. Buckle up ๐ŸŽ€


๐ŸŒธ NAME ๐ŸŒธ

cc_hd โ€” the HD Congestion Control Algorithm. that's it, that's the name, periodt ๐Ÿ’…


โœจ DESCRIPTION โœจ

okay so the HD congestion control algorithm is literally an implementation of the Hamilton Institute's delay-based congestion control, and its whole vibe is keeping network queuing delays below a particular threshold (queue_threshold). iconic behavior honestly ๐Ÿฆ‹

HD probabilistically reduces the congestion window (cwnd) based on its estimate of the network queuing delay. so the probability of reducing cwnd is zero at hd_qmin or less, rising to a maximum at queue_threshold, and then back to zero at the maximum queuing delay. it's giving bell curve, it's giving main character energy ๐Ÿ“ˆ

Loss-based congestion control algorithms such as NewReno probe for network capacity by filling queues until there is a packet loss. not cute of them tbh. HD competes with loss-based congestion control algorithms by allowing its probability of reducing cwnd to drop from a maximum at queue_threshold to be zero at the maximum queuing delay. this has been shown to work well when the bottleneck link is highly multiplexed. slay ๐Ÿ’€โœจ

๐Ÿซถ MIB Variables ๐Ÿซถ

the algorithm exposes the following tunable variables in the net.inet.tcp.cc.hd branch of the sysctl(3) MIB:

  • queue_threshold โ€” queueing congestion threshold (qth) in ticks. default is 20. ๐Ÿ‘‘
  • pmax โ€” per packet maximum backoff probability as a percentage. default is 5. ๐Ÿ”ฅ
  • qmin โ€” minimum queuing delay threshold (qmin) in ticks. default is 5. ๐ŸŒธ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹


๐Ÿ’– ACKNOWLEDGEMENTS ๐Ÿ’–

development and testing of this software were made possible in part by grants from the FreeBSD Foundation and Cisco University Research Program Fund at Community Foundation Silicon Valley. funding besties, we love to see it ๐Ÿซถ๐Ÿ’ธ


๐Ÿ”ฎ FUTURE WORK ๐Ÿ”ฎ

the Hamilton Institute have recently made some improvements to the algorithm implemented by this module and have called it Coexistent-TCP (C-TCP). the improvements should be evaluated and potentially incorporated into this module. so likeโ€ฆ homework for future you, bestie ๐Ÿ“โœจ


๐ŸŒˆ HISTORY ๐ŸŒˆ

the cc_hd congestion control module first appeared in FreeBSD 9.0. vintage. iconic. ๐Ÿ’…

the module was first released in 2010 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_hd congestion control module and this manual page were written by David Hayes <david.hayes@ieee.org>. king behavior honestly ๐Ÿซก๐Ÿ’œ


and that's the whole page bestie โ€” this edition came from Debian, dated May 13, 2021, CC_HD(4), and it ate, no crumbs left ๐ŸŒธโœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from