CC_NEWRENO(4)
π cc_newreno(4) β NewReno Congestion Control Algorithm π
okay so bestie, you're reading a kernel interfaces manual page (that's the "4" in CC_NEWRENO(4) btw, iykyk) and it's literally about the NewReno congestion control algorithm. yes it's old, yes it's iconic, and yes it ATE. let's get into it π«Ά
β¨ NAME β¨
cc_newreno β the NewReno Congestion Control Algorithm. main character energy, honestly π
πΈ SYNOPSIS πΈ
#include <netinet/cc/cc_newreno.h>
that's it, that's the vibe check π
π¦ DESCRIPTION π¦
so if you want the actual algorithm tea, all the details live in RFC5681 β go read that, it's giving source material π
π Socket Options π
the cc_newreno module is lowkey stacked with socket options under TCP_CCALGOOPT β and if you need the full deets on that, go check tcp(4) and mod_cc(9), they've got you π. you set these bad boys with setsockopt(2) and you test them with getsockopt(2).
the cc_newreno socket options use this structure, which is defined in <sys/netinet/cc/cc_newreno.h>:
struct cc_newreno_opts {
int name;
uint32_t val;
}
(no cap, that's the exact struct, don't @ me π«Ά)
CC_NEWRENO_BETAβ the multiplicative window decrease factor, specified as a percentage, applied to the congestion window in response to a congestion signal per:cwnd = (cwnd * CC_NEWRENO_BETA) / 100. default is50. β¨CC_NEWRENO_BETA_ECNβ the multiplicative window decrease factor, specified as a percentage, applied to the congestion window in response to an ECN congestion signal whennet.inet.tcp.cc.abe=1per:cwnd = (cwnd * CC_NEWRENO_BETA_ECN) / 100. default is80. π
okay important side note bestie: currently the only way to enable hystart++ is to enable it via socket option. when you enable it, a value of1will enable precise internet-draft (version 4) behavior (subject to any MIB variable settings), and the other settings (2and3) are experimental. π
also hi, another caveat: hystart++ requires the TCP stack be able to call to the congestion controller with both thenewroundfunction as well as therttsamplefunction. currently the only TCP stacks that provide this feedback to the congestion controller israck. so likeβ¦ keep that in mind π
π§ MIB Variables π§
the algorithm exposes these variables in the net.inet.tcp.cc.newreno branch of the sysctl(3) MIB:
betaβ the multiplicative window decrease factor, specified as a percentage, applied to the congestion window in response to a congestion signal per:cwnd = (cwnd * beta) / 100. default is50. πbeta_ecnβ the multiplicative window decrease factor, specified as a percentage, applied to the congestion window in response to an ECN congestion signal whennet.inet.tcp.cc.abe=1per:cwnd = (cwnd * beta_ecn) / 100. default is80. π
π₯ SEE ALSO π₯
cc_cdg(4)cc_chd(4)cc_cubic(4)cc_dctcp(4)cc_hd(4)cc_htcp(4)cc_vegas(4)mod_cc(4)tcp(4)mod_cc(9)
Mark Allman, Vern Paxson, and Ethan Blanton, TCP Congestion Control, RFC 5681. π
Naeem Khademi, Michael Welzl, Grenville Armitage, and Gorry Fairhurst, TCP Alternative Backoff with ECN (ABE), RFC 8511. π
β 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 at Community Foundation Silicon Valley. shoutout, fr fr π«Άπ
π HISTORY π
the cc_newreno congestion control algorithm first appeared in its modular form in FreeBSD 9.0. β
this was the default congestion control algorithm in FreeBSD before version FreeBSD 14.0, after which cc_cubic(4) replaced it. so yeah, it passed the crown ππ
the module was first released in 2007 by James Healy and Lawrence Stewart whilst working on the NewTCP research project at Swinburne University of Technology's Centre for Advanced Internet Architectures, Melbourne, Australia, which was made possible in part by a grant from the Cisco University Research Program Fund at Community Foundation Silicon Valley. more details are available at:
http://caia.swin.edu.au/urp/newtcp/
π AUTHORS π
the cc_newreno congestion control module was written by James Healy <jimmy@deefa.com>, Lawrence Stewart <lstewart@FreeBSD.org> and David Hayes <david.hayes@ieee.org>. π
support for TCP ABE was added by Tom Jones <tj@enoti.me>. π
this manual page was written by Lawrence Stewart <lstewart@FreeBSD.org>. π¦
and that's the whole page bestie, you ate that reading session ngl πβ¨ this was a Debian production, dated February 4, 2023 β mwah, go touch some grass now πππ
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2009 Lawrence Stewart <lstewart@FreeBSD.org>
- Copyright (c) 2011 The FreeBSD Foundation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms