CC_VEGAS(4)
π cc_vegas β the Vegas Congestion Control Algorithm π°β¨
okay so this is the man page for cc_vegas(4), a section 4 kernel interfaces manual page, and bestie I promise it's less scary than it looks π«Ά
NAME πΈ
cc_vegas β the Vegas Congestion Control Algorithm, literally right there in the name, no notes π
DESCRIPTION π
okay so the Vegas congestion control algorithm is doing math and honestly? it ate. it uses what the authors call the actual transmission rate and the expected transmission rate to figure out whether there's congestion hanging out along the network path. it's giving:
actual rate = (total data sent in a RTT) / RTT
expected rate = cwnd / RTTmin
diff = expected - actual
where RTT is the measured instantaneous round trip time and RTTmin is the smallest round trip time observed during the connection. tiny little baby RTT. the smallest one. π₯Ί
the algorithm's whole goal β its main character energy, if you will β is to keep diff between two parameters called alpha and beta, like so:
alpha < diff < beta
so if diff > beta, congestion is inferred (uh oh π) and cwnd gets decremented by one packet (or the maximum TCP segment size, whichever). but if diff < alpha? then cwnd is incremented by one packet. slay. and the way that alpha and beta govern the amount of buffering along the path? iconic, honestly.
the implementation was done in a clean-room fashion (very demure, very mindful) and is based on the paper referenced in the SEE ALSO section below π
IMPLEMENTATION NOTES π§
the time from the transmission of a marked packet until the receipt of an acknowledgement for that packet is measured once per RTT. periodt.
this implementation does not implement Brakmo's and Peterson's original duplicate ACK policy, and the reason is kind of a vibe check on modern hardware: clock ticks in today's machines are not as coarse as they were (i.e. 500ms) when Vegas was originally designed. we simply don't live in that timeline anymore π
also note bestie: modern TCP recovery processes such as fast retransmit and SACK are enabled by default in the TCP stack. no cap.
MIB Variables π₯
the algorithm exposes the following tunable variables in the net.inet.tcp.cc.vegas branch of the sysctl(3) MIB:
alphaβ query or set the Vegas alpha parameter as a number of buffers on the path. when you're settingalpha, the value must satisfy:0 < alpha < beta. default is1.betaβ query or set the Vegas beta parameter as a number of buffers on the path. when you're settingbeta, the value must satisfy:0 < alpha < beta. default is3.
(notice the constraint is literally the same for both and it's the same as the algorithm's whole deal? we love consistency π)
SEE ALSO π
cc_cdg(4)cc_chd(4)cc_cubic(4)cc_dctcp(4)cc_hd(4)cc_htcp(4)cc_newreno(4)h_ertt(4)mod_cc(4)tcp(4)khelp(9)mod_cc(9)
and the actual academic source, the moment, the blueprint:
L. S. Brakmo and L. L. Peterson, βTCP Vegas: end to end congestion avoidance on a global internetβ, IEEE J. Sel. Areas Commun., 8, 13, 1465-1480, October 1995.
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. we stan funding, fr fr π
HISTORY β
the cc_vegas congestion control module first appeared in FreeBSD 9.0.
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_vegas congestion control module and this manual page were written by David Hayes <david.hayes@ieee.org>. an absolute legend, we love to see it π«‘
okay that's the whole page, bestie, you're officially a Vegas expert π also tiny sign-off moment: this page comes from the Debian source, dated May 13, 2021, and it's CC_VEGAS(4), which we already established, but it felt right to say it one more time πβ¨ go forth and not congest π¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 2010-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